@nxgt/material 3.63.0 → 3.65.0

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 (83) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/dist/{alert-dialog-RHm6WtQj.js → alert-dialog-C0nGUSCP.js} +1 -1
  3. package/dist/{async-slice-DmX59NyA.js → async-slice-CyansBvD.js} +1 -1
  4. package/dist/{button-DfS_amfQ.js → button-D5k3K-gM.js} +1 -1
  5. package/dist/charts.js +818 -807
  6. package/dist/{chip-Cbndukko.js → chip-lWXIJkqo.js} +2 -2
  7. package/dist/{code-editor-B0tN8Ha_.js → code-editor-aXG4CdY-.js} +403 -393
  8. package/dist/code-editor.js +5 -5
  9. package/dist/{code-language-items-andgHKrM.js → code-language-items-CsaXyApg.js} +2 -2
  10. package/dist/components/ui/display/chip/chip-soft.css +19 -5
  11. package/dist/{components-Cm2doOJS.js → components-DNcTvjlv.js} +15083 -14933
  12. package/dist/components.js +21 -21
  13. package/dist/{dialog-Bd7Hid2L.js → dialog-DWNaxpa-.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-_SyVmSuy.js → dropdown-menu-ChvAIQIW.js} +1 -1
  16. package/dist/editor.js +10 -10
  17. package/dist/{empty-state-D-2ZMXXJ.js → empty-state-CFLcVzKL.js} +2 -2
  18. package/dist/{field-blur-DyOByjzw.js → field-blur-CV9orzdJ.js} +1 -1
  19. package/dist/{field-blur-context-DPe5_Nv5.js → field-blur-context-C8BX8IBy.js} +1 -1
  20. package/dist/{hooks-a7_exKWS.js → hooks-DilW-3jc.js} +2 -2
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-D_0smKBQ.js → hover-card-IeS_1RPH.js} +1 -1
  23. package/dist/i18n.js +3 -3
  24. package/dist/{icon-badge-CBCU3ySF.js → icon-badge-Bf4SoA2i.js} +3 -3
  25. package/dist/{icon-button-hKHsWTAt.js → icon-button-l3dQTRrC.js} +1 -1
  26. package/dist/lib/components/ui/actions/load-more-footer/load-more-footer.d.ts +11 -2
  27. package/dist/lib/components/ui/actions/load-more-footer/use-footer-focus.d.ts +15 -0
  28. package/dist/lib/components/ui/actions/load-more-footer/use-last-page.d.ts +9 -0
  29. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-chips.d.ts +11 -0
  30. package/dist/lib/components/ui/collections/filter/bar/partials/filter-inline-list.d.ts +6 -0
  31. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
  32. package/dist/lib/components/ui/collections/server-table/partials/server-table-grid-paging.d.ts +9 -0
  33. package/dist/lib/components/ui/collections/server-table/partials/server-table-load-more.d.ts +17 -0
  34. package/dist/lib/components/ui/collections/server-table/past-end.d.ts +3 -0
  35. package/dist/lib/components/ui/collections/server-table/types-paging.d.ts +10 -0
  36. package/dist/lib/components/ui/collections/server-table/types.d.ts +2 -2
  37. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
  38. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  39. package/dist/lib/components/ui/widgets/code-editor/code-editor-field.d.ts +7 -6
  40. package/dist/lib/components/ui/widgets/code-editor/code-editor-types.d.ts +6 -0
  41. package/dist/lib/components/ui/widgets/code-editor/use-code-editor-instance.d.ts +12 -1
  42. package/dist/lib/components/ui/widgets/education/questions/partials/question-content.d.ts +1 -1
  43. package/dist/lib/components/ui/widgets/education/questions/question-long-text.d.ts +2 -2
  44. package/dist/lib/components/ui/widgets/education/questions/question.d.ts +1 -1
  45. package/dist/lib/components/ui/widgets/education/questions/types.d.ts +14 -0
  46. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +16 -2
  47. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  48. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  49. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  50. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  51. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  52. package/dist/lib/i18n/translator.d.ts +1 -1
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +25 -25
  55. package/dist/map.js +8 -8
  56. package/dist/material.css +1 -1
  57. package/dist/pdf-reader.js +1 -1
  58. package/dist/print.js +1 -1
  59. package/dist/{public-D8JGp3PH.js → public-B-greXGt.js} +9 -9
  60. package/dist/{rich-code-block-0R3bidsM.js → rich-code-block-Cv6s59vB.js} +5 -5
  61. package/dist/{sortable-provider-B75v53sB.js → sortable-provider-DVmZcglU.js} +2 -2
  62. package/dist/{spinner-CAnpF3RK.js → spinner-OQAweH2r.js} +1 -1
  63. package/dist/theme-picker.js +2 -2
  64. package/dist/{theme-toggle-pQ5F602V.js → theme-toggle-DPx44p6a.js} +1 -1
  65. package/dist/{toolbar-items-_ezD5B0r.js → toolbar-items-CQ3S_XZw.js} +3 -3
  66. package/dist/{translate-material-CvZK8_S6.js → translate-material-BHL4g2UB.js} +1 -1
  67. package/dist/{translator-Caf-d96e.js → translator-BJsjXcAp.js} +2 -0
  68. package/dist/{typography-CEK19bj8.js → typography-CwhEwPay.js} +1 -1
  69. package/dist/{use-chat-composer-Dpvi_-CR.js → use-chat-composer-R0vng5RU.js} +16 -16
  70. package/dist/{use-heading-spy-mmcyEGmm.js → use-heading-spy-Brcn0l_J.js} +4 -4
  71. package/dist/{use-material-translation-C_1cWRzW.js → use-material-translation-mY3U83TV.js} +1 -1
  72. package/dist/{use-return-focus-1ZIchrBM.js → use-return-focus-BQ413TNG.js} +1 -1
  73. package/docs/components/buttons-and-actions.md +2 -2
  74. package/docs/components/data-table-filter-and-lists.md +111 -2
  75. package/docs/components/navigation-and-layout.md +9 -5
  76. package/docs/components/rich-widgets.md +4 -1
  77. package/docs/guides/charts.md +1 -1
  78. package/docs/guides/code-editor.md +14 -0
  79. package/docs/guides/i18n.md +3 -1
  80. package/docs/roadmap.md +4 -0
  81. package/docs/troubleshooting.md +9 -7
  82. package/lib/components/ui/display/chip/chip-soft.css +19 -5
  83. package/package.json +2 -2
@@ -1,38 +1,39 @@
1
1
  import { r as e } from "./rolldown-runtime-BFFgcFxR.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { a as n } from "./dist-lmHmz_bu.js";
4
- import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-_SyVmSuy.js";
5
- import { a as c, i as l, n as u } from "./field-blur-context-DPe5_Nv5.js";
6
- import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-_ezD5B0r.js";
4
+ import { c as r, d as i, f as a, n as o, t as s } from "./dropdown-menu-ChvAIQIW.js";
5
+ import { a as c, i as l, n as u } from "./field-blur-context-C8BX8IBy.js";
6
+ import { a as d, d as f, r as p, t as m, u as h } from "./toolbar-items-CQ3S_XZw.js";
7
7
  import { t as g } from "./is-production-GLw59WU8.js";
8
- import { t as _ } from "./use-material-translation-C_1cWRzW.js";
9
- import { i as v, n as y, o as b, t as x } from "./code-language-items-andgHKrM.js";
8
+ import { t as _ } from "./use-material-translation-mY3U83TV.js";
9
+ import { i as v, n as y, o as b, t as x } from "./code-language-items-CsaXyApg.js";
10
10
  import { t as S } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
11
11
  import { n as C, t as w } from "./escape-owner-DpaP0lm1.js";
12
12
  import { t as T } from "./skeleton-DSdtr2qc.js";
13
13
  import { t as E } from "./react-node-text-Crkpfpco.js";
14
14
  import D, { memo as O, useCallback as ee, useEffect as k, useId as A, useImperativeHandle as j, useMemo as M, useRef as N, useState as P } from "react";
15
- import { Fragment as te, jsx as F, jsxs as I } from "react/jsx-runtime";
16
- import { Check as L, ChevronDown as R, CircleAlert as ne, Copy as re, FileCode2 as ie, Lock as ae, Maximize2 as oe, Minimize2 as se, Search as ce, TriangleAlert as le, WandSparkles as ue, WrapText as de } from "lucide-react";
15
+ import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
16
+ import { Check as R, ChevronDown as te, CircleAlert as ne, Copy as re, FileCode2 as ie, Lock as ae, Maximize2 as oe, Minimize2 as se, Search as ce, TriangleAlert as le, WandSparkles as ue, WrapText as de } from "lucide-react";
17
17
  import { inertOthers as fe } from "@nxgt/material-core/inert-others";
18
+ import { describedBy as pe } from "@nxgt/material-core/described-by";
18
19
  //#region ../../node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
19
- function pe(e, t) {
20
+ function me(e, t) {
20
21
  (t == null || t > e.length) && (t = e.length);
21
22
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
22
23
  return r;
23
24
  }
24
- function me(e) {
25
+ function he(e) {
25
26
  if (Array.isArray(e)) return e;
26
27
  }
27
- function he(e, t, n) {
28
- return (t = we(t)) in e ? Object.defineProperty(e, t, {
28
+ function ge(e, t, n) {
29
+ return (t = Te(t)) in e ? Object.defineProperty(e, t, {
29
30
  value: n,
30
31
  enumerable: !0,
31
32
  configurable: !0,
32
33
  writable: !0
33
34
  }) : e[t] = n, e;
34
35
  }
35
- function ge(e, t) {
36
+ function _e(e, t) {
36
37
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
37
38
  if (n != null) {
38
39
  var r, i, a, o, s = [], c = !0, l = !1;
@@ -50,10 +51,10 @@ function ge(e, t) {
50
51
  return s;
51
52
  }
52
53
  }
53
- function _e() {
54
+ function ve() {
54
55
  throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55
56
  }
56
- function ve(e, t) {
57
+ function ye(e, t) {
57
58
  var n = Object.keys(e);
58
59
  if (Object.getOwnPropertySymbols) {
59
60
  var r = Object.getOwnPropertySymbols(e);
@@ -63,27 +64,27 @@ function ve(e, t) {
63
64
  }
64
65
  return n;
65
66
  }
66
- function ye(e) {
67
+ function be(e) {
67
68
  for (var t = 1; t < arguments.length; t++) {
68
69
  var n = arguments[t] == null ? {} : arguments[t];
69
- t % 2 ? ve(Object(n), !0).forEach(function(t) {
70
- he(e, t, n[t]);
71
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ve(Object(n)).forEach(function(t) {
70
+ t % 2 ? ye(Object(n), !0).forEach(function(t) {
71
+ ge(e, t, n[t]);
72
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ye(Object(n)).forEach(function(t) {
72
73
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
73
74
  });
74
75
  }
75
76
  return e;
76
77
  }
77
- function be(e, t) {
78
+ function xe(e, t) {
78
79
  if (e == null) return {};
79
- var n, r, i = xe(e, t);
80
+ var n, r, i = Se(e, t);
80
81
  if (Object.getOwnPropertySymbols) {
81
82
  var a = Object.getOwnPropertySymbols(e);
82
83
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
83
84
  }
84
85
  return i;
85
86
  }
86
- function xe(e, t) {
87
+ function Se(e, t) {
87
88
  if (e == null) return {};
88
89
  var n = {};
89
90
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -92,10 +93,10 @@ function xe(e, t) {
92
93
  }
93
94
  return n;
94
95
  }
95
- function Se(e, t) {
96
- return me(e) || ge(e, t) || Te(e, t) || _e();
97
- }
98
96
  function Ce(e, t) {
97
+ return he(e) || _e(e, t) || Ee(e, t) || ve();
98
+ }
99
+ function we(e, t) {
99
100
  if (typeof e != "object" || !e) return e;
100
101
  var n = e[Symbol.toPrimitive];
101
102
  if (n !== void 0) {
@@ -105,20 +106,20 @@ function Ce(e, t) {
105
106
  }
106
107
  return (t === "string" ? String : Number)(e);
107
108
  }
108
- function we(e) {
109
- var t = Ce(e, "string");
109
+ function Te(e) {
110
+ var t = we(e, "string");
110
111
  return typeof t == "symbol" ? t : t + "";
111
112
  }
112
- function Te(e, t) {
113
+ function Ee(e, t) {
113
114
  if (e) {
114
- if (typeof e == "string") return pe(e, t);
115
+ if (typeof e == "string") return me(e, t);
115
116
  var n = {}.toString.call(e).slice(8, -1);
116
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? pe(e, t) : void 0;
117
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? me(e, t) : void 0;
117
118
  }
118
119
  }
119
120
  //#endregion
120
121
  //#region ../../node_modules/state-local/lib/es/state-local.js
121
- function Ee(e, t, n) {
122
+ function De(e, t, n) {
122
123
  return t in e ? Object.defineProperty(e, t, {
123
124
  value: n,
124
125
  enumerable: !0,
@@ -126,7 +127,7 @@ function Ee(e, t, n) {
126
127
  writable: !0
127
128
  }) : e[t] = n, e;
128
129
  }
129
- function De(e, t) {
130
+ function Oe(e, t) {
130
131
  var n = Object.keys(e);
131
132
  if (Object.getOwnPropertySymbols) {
132
133
  var r = Object.getOwnPropertySymbols(e);
@@ -136,18 +137,18 @@ function De(e, t) {
136
137
  }
137
138
  return n;
138
139
  }
139
- function Oe(e) {
140
+ function ke(e) {
140
141
  for (var t = 1; t < arguments.length; t++) {
141
142
  var n = arguments[t] == null ? {} : arguments[t];
142
- t % 2 ? De(Object(n), !0).forEach(function(t) {
143
- Ee(e, t, n[t]);
144
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : De(Object(n)).forEach(function(t) {
143
+ t % 2 ? Oe(Object(n), !0).forEach(function(t) {
144
+ De(e, t, n[t]);
145
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Oe(Object(n)).forEach(function(t) {
145
146
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
146
147
  });
147
148
  }
148
149
  return e;
149
150
  }
150
- function ke() {
151
+ function Ae() {
151
152
  var e = [...arguments];
152
153
  return function(t) {
153
154
  return e.reduceRight(function(e, t) {
@@ -167,35 +168,35 @@ function z(e) {
167
168
  function B(e) {
168
169
  return {}.toString.call(e).includes("Object");
169
170
  }
170
- function Ae(e) {
171
+ function je(e) {
171
172
  return !Object.keys(e).length;
172
173
  }
173
174
  function V(e) {
174
175
  return typeof e == "function";
175
176
  }
176
- function je(e, t) {
177
+ function Me(e, t) {
177
178
  return Object.prototype.hasOwnProperty.call(e, t);
178
179
  }
179
- function Me(e, t) {
180
+ function Ne(e, t) {
180
181
  return B(t) || H("changeType"), Object.keys(t).some(function(t) {
181
- return !je(e, t);
182
+ return !Me(e, t);
182
183
  }) && H("changeField"), t;
183
184
  }
184
- function Ne(e) {
185
+ function Pe(e) {
185
186
  V(e) || H("selectorType");
186
187
  }
187
- function Pe(e) {
188
+ function Fe(e) {
188
189
  V(e) || B(e) || H("handlerType"), B(e) && Object.values(e).some(function(e) {
189
190
  return !V(e);
190
191
  }) && H("handlersType");
191
192
  }
192
- function Fe(e) {
193
- e || H("initialIsRequired"), B(e) || H("initialType"), Ae(e) && H("initialContent");
193
+ function Ie(e) {
194
+ e || H("initialIsRequired"), B(e) || H("initialType"), je(e) && H("initialContent");
194
195
  }
195
- function Ie(e, t) {
196
+ function Le(e, t) {
196
197
  throw Error(e[t] || e.default);
197
198
  }
198
- var H = z(Ie)({
199
+ var H = z(Le)({
199
200
  initialIsRequired: "initial state is required",
200
201
  initialType: "initial state should be an object",
201
202
  initialContent: "initial state shouldn't be an empty object",
@@ -206,15 +207,15 @@ var H = z(Ie)({
206
207
  changeField: "it seams you want to change a field in the state which is not specified in the \"initial\" state",
207
208
  default: "an unknown error accured in `state-local` package"
208
209
  }), U = {
209
- changes: Me,
210
- selector: Ne,
211
- handler: Pe,
212
- initial: Fe
210
+ changes: Ne,
211
+ selector: Pe,
212
+ handler: Fe,
213
+ initial: Ie
213
214
  };
214
- function Le(e) {
215
+ function Re(e) {
215
216
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
216
217
  U.initial(e), U.handler(t);
217
- var n = { current: e }, r = z(Be)(n, t), i = z(ze)(n), a = z(U.changes)(e), o = z(Re)(n);
218
+ var n = { current: e }, r = z(Ve)(n, t), i = z(Be)(n), a = z(U.changes)(e), o = z(ze)(n);
218
219
  function s() {
219
220
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(e) {
220
221
  return e;
@@ -222,25 +223,25 @@ function Le(e) {
222
223
  return U.selector(e), e(n.current);
223
224
  }
224
225
  function c(e) {
225
- ke(r, i, a, o)(e);
226
+ Ae(r, i, a, o)(e);
226
227
  }
227
228
  return [s, c];
228
229
  }
229
- function Re(e, t) {
230
+ function ze(e, t) {
230
231
  return V(t) ? t(e.current) : t;
231
232
  }
232
- function ze(e, t) {
233
- return e.current = Oe(Oe({}, e.current), t), t;
233
+ function Be(e, t) {
234
+ return e.current = ke(ke({}, e.current), t), t;
234
235
  }
235
- function Be(e, t, n) {
236
+ function Ve(e, t, n) {
236
237
  return V(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
237
238
  return t[n]?.call(t, e.current[n]);
238
239
  }), n;
239
240
  }
240
- var Ve = { create: Le }, He = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
241
+ var He = { create: Re }, Ue = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
241
242
  //#endregion
242
243
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/curry.js
243
- function Ue(e) {
244
+ function We(e) {
244
245
  return function t() {
245
246
  var n = this, r = [...arguments];
246
247
  return r.length >= e.length ? e.apply(this, r) : function() {
@@ -251,26 +252,26 @@ function Ue(e) {
251
252
  }
252
253
  //#endregion
253
254
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
254
- function We(e) {
255
+ function Ge(e) {
255
256
  return {}.toString.call(e).includes("Object");
256
257
  }
257
258
  //#endregion
258
259
  //#region ../../node_modules/@monaco-editor/loader/lib/es/validators/index.js
259
- function Ge(e) {
260
- return e || Ye("configIsRequired"), We(e) || Ye("configType"), e.urls ? (Ke(), { paths: { vs: e.urls.monacoBase } }) : e;
260
+ function Ke(e) {
261
+ return e || Xe("configIsRequired"), Ge(e) || Xe("configType"), e.urls ? (qe(), { paths: { vs: e.urls.monacoBase } }) : e;
261
262
  }
262
- function Ke() {
263
- console.warn(Je.deprecation);
263
+ function qe() {
264
+ console.warn(Ye.deprecation);
264
265
  }
265
- function qe(e, t) {
266
+ function Je(e, t) {
266
267
  throw Error(e[t] || e.default);
267
268
  }
268
- var Je = {
269
+ var Ye = {
269
270
  configIsRequired: "the configuration object is required",
270
271
  configType: "the configuration object should be an object",
271
272
  default: "an unknown error accured in `@monaco-editor/loader` package",
272
273
  deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
273
- }, Ye = Ue(qe)(Je), Xe = { config: Ge }, Ze = function() {
274
+ }, Xe = We(Je)(Ye), Ze = { config: Ke }, Qe = function() {
274
275
  var e = [...arguments];
275
276
  return function(t) {
276
277
  return e.reduceRight(function(e, t) {
@@ -280,21 +281,21 @@ var Je = {
280
281
  };
281
282
  //#endregion
282
283
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
283
- function Qe(e, t) {
284
+ function $e(e, t) {
284
285
  return Object.keys(t).forEach(function(n) {
285
- t[n] instanceof Object && e[n] && Object.assign(t[n], Qe(e[n], t[n]));
286
- }), ye(ye({}, e), t);
286
+ t[n] instanceof Object && e[n] && Object.assign(t[n], $e(e[n], t[n]));
287
+ }), be(be({}, e), t);
287
288
  }
288
289
  //#endregion
289
290
  //#region ../../node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
290
- var $e = {
291
+ var et = {
291
292
  type: "cancelation",
292
293
  msg: "operation is manually canceled"
293
294
  };
294
- function et(e) {
295
+ function tt(e) {
295
296
  var t = !1, n = new Promise(function(n, r) {
296
297
  e.then(function(e) {
297
- return t ? r($e) : n(e);
298
+ return t ? r(et) : n(e);
298
299
  }), e.catch(r);
299
300
  });
300
301
  return n.cancel = function() {
@@ -303,23 +304,23 @@ function et(e) {
303
304
  }
304
305
  //#endregion
305
306
  //#region ../../node_modules/@monaco-editor/loader/lib/es/loader/index.js
306
- var tt = ["monaco"], nt = Se(Ve.create({
307
- config: He,
307
+ var nt = ["monaco"], rt = Ce(He.create({
308
+ config: Ue,
308
309
  isInitialized: !1,
309
310
  resolve: null,
310
311
  reject: null,
311
312
  monaco: null
312
- }), 2), W = nt[0], G = nt[1];
313
- function rt(e) {
314
- var t = Xe.config(e), n = t.monaco, r = be(t, tt);
313
+ }), 2), W = rt[0], G = rt[1];
314
+ function it(e) {
315
+ var t = Ze.config(e), n = t.monaco, r = xe(t, nt);
315
316
  G(function(e) {
316
317
  return {
317
- config: Qe(e.config, r),
318
+ config: $e(e.config, r),
318
319
  monaco: n
319
320
  };
320
321
  });
321
322
  }
322
- function it() {
323
+ function at() {
323
324
  var e = W(function(e) {
324
325
  return {
325
326
  monaco: e.monaco,
@@ -328,31 +329,31 @@ function it() {
328
329
  };
329
330
  });
330
331
  if (!e.isInitialized) {
331
- if (G({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), et(dt);
332
- if (window.monaco && window.monaco.editor) return lt(window.monaco), e.resolve(window.monaco), et(dt);
333
- Ze(at, st)(ct);
332
+ if (G({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), tt(ft);
333
+ if (window.monaco && window.monaco.editor) return ut(window.monaco), e.resolve(window.monaco), tt(ft);
334
+ Qe(ot, ct)(lt);
334
335
  }
335
- return et(dt);
336
+ return tt(ft);
336
337
  }
337
- function at(e) {
338
+ function ot(e) {
338
339
  return document.body.appendChild(e);
339
340
  }
340
- function ot(e) {
341
+ function st(e) {
341
342
  var t = document.createElement("script");
342
343
  return e && (t.src = e), t;
343
344
  }
344
- function st(e) {
345
+ function ct(e) {
345
346
  var t = W(function(e) {
346
347
  return {
347
348
  config: e.config,
348
349
  reject: e.reject
349
350
  };
350
- }), n = ot(`${t.config.paths.vs}/loader.js`);
351
+ }), n = st(`${t.config.paths.vs}/loader.js`);
351
352
  return n.onload = function() {
352
353
  return e();
353
354
  }, n.onerror = t.reject, n;
354
355
  }
355
- function ct() {
356
+ function lt() {
356
357
  var e = W(function(e) {
357
358
  return {
358
359
  config: e.config,
@@ -362,29 +363,29 @@ function ct() {
362
363
  }), t = window.require;
363
364
  t.config(e.config), t(["vs/editor/editor.main"], function(t) {
364
365
  var n = t.m || t;
365
- lt(n), e.resolve(n);
366
+ ut(n), e.resolve(n);
366
367
  }, function(t) {
367
368
  e.reject(t);
368
369
  });
369
370
  }
370
- function lt(e) {
371
+ function ut(e) {
371
372
  W().monaco || G({ monaco: e });
372
373
  }
373
- function ut() {
374
+ function dt() {
374
375
  return W(function(e) {
375
376
  return e.monaco;
376
377
  });
377
378
  }
378
- var dt = new Promise(function(e, t) {
379
+ var ft = new Promise(function(e, t) {
379
380
  return G({
380
381
  resolve: e,
381
382
  reject: t
382
383
  });
383
- }), K = {
384
- config: rt,
385
- init: it,
386
- __getMonacoInstance: ut
387
- }, ft = {
384
+ }), pt = {
385
+ config: it,
386
+ init: at,
387
+ __getMonacoInstance: dt
388
+ }, mt = {
388
389
  wrapper: {
389
390
  display: "flex",
390
391
  position: "relative",
@@ -392,99 +393,99 @@ var dt = new Promise(function(e, t) {
392
393
  },
393
394
  fullWidth: { width: "100%" },
394
395
  hide: { display: "none" }
395
- }, pt = { container: {
396
+ }, ht = { container: {
396
397
  display: "flex",
397
398
  height: "100%",
398
399
  width: "100%",
399
400
  justifyContent: "center",
400
401
  alignItems: "center"
401
402
  } };
402
- function mt({ children: e }) {
403
- return D.createElement("div", { style: pt.container }, e);
403
+ function gt({ children: e }) {
404
+ return D.createElement("div", { style: ht.container }, e);
404
405
  }
405
- var ht = mt;
406
- function gt({ width: e, height: t, isEditorReady: n, loading: r, _ref: i, className: a, wrapperProps: o }) {
406
+ var _t = gt;
407
+ function vt({ width: e, height: t, isEditorReady: n, loading: r, _ref: i, className: a, wrapperProps: o }) {
407
408
  return D.createElement("section", {
408
409
  style: {
409
- ...ft.wrapper,
410
+ ...mt.wrapper,
410
411
  width: e,
411
412
  height: t
412
413
  },
413
414
  ...o
414
- }, !n && D.createElement(ht, null, r), D.createElement("div", {
415
+ }, !n && D.createElement(_t, null, r), D.createElement("div", {
415
416
  ref: i,
416
417
  style: {
417
- ...ft.fullWidth,
418
- ...!n && ft.hide
418
+ ...mt.fullWidth,
419
+ ...!n && mt.hide
419
420
  },
420
421
  className: a
421
422
  }));
422
423
  }
423
- var _t = O(gt);
424
- function vt(e) {
424
+ var yt = O(vt);
425
+ function bt(e) {
425
426
  k(e, []);
426
427
  }
427
- var yt = vt;
428
- function bt(e, t, n = !0) {
428
+ var xt = bt;
429
+ function St(e, t, n = !0) {
429
430
  let r = N(!0);
430
431
  k(r.current || !n ? () => {
431
432
  r.current = !1;
432
433
  } : e, t);
433
434
  }
434
- var q = bt;
435
- function J() {}
436
- function Y(e, t, n, r) {
437
- return xt(e, r) || St(e, t, n, r);
435
+ var K = St;
436
+ function q() {}
437
+ function J(e, t, n, r) {
438
+ return Ct(e, r) || wt(e, t, n, r);
438
439
  }
439
- function xt(e, t) {
440
- return e.editor.getModel(Ct(e, t));
440
+ function Ct(e, t) {
441
+ return e.editor.getModel(Tt(e, t));
441
442
  }
442
- function St(e, t, n, r) {
443
- return e.editor.createModel(t, n, r ? Ct(e, r) : void 0);
443
+ function wt(e, t, n, r) {
444
+ return e.editor.createModel(t, n, r ? Tt(e, r) : void 0);
444
445
  }
445
- function Ct(e, t) {
446
+ function Tt(e, t) {
446
447
  return e.Uri.parse(t);
447
448
  }
448
- function wt({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: c = !1, theme: l = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: m, wrapperProps: h = {}, beforeMount: g = J, onMount: _ = J }) {
449
+ function Et({ original: e, modified: t, language: n, originalLanguage: r, modifiedLanguage: i, originalModelPath: a, modifiedModelPath: o, keepCurrentOriginalModel: s = !1, keepCurrentModifiedModel: c = !1, theme: l = "light", loading: u = "Loading...", options: d = {}, height: f = "100%", width: p = "100%", className: m, wrapperProps: h = {}, beforeMount: g = q, onMount: _ = q }) {
449
450
  let [v, y] = P(!1), [b, x] = P(!0), S = N(null), C = N(null), w = N(null), T = N(_), E = N(g), O = N(!1);
450
- yt(() => {
451
- let e = K.init();
451
+ xt(() => {
452
+ let e = pt.init();
452
453
  return e.then((e) => (C.current = e) && x(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => S.current ? M() : e.cancel();
453
- }), q(() => {
454
+ }), K(() => {
454
455
  if (S.current && C.current) {
455
- let t = S.current.getOriginalEditor(), i = Y(C.current, e || "", r || n || "text", a || "");
456
+ let t = S.current.getOriginalEditor(), i = J(C.current, e || "", r || n || "text", a || "");
456
457
  i !== t.getModel() && t.setModel(i);
457
458
  }
458
- }, [a], v), q(() => {
459
+ }, [a], v), K(() => {
459
460
  if (S.current && C.current) {
460
- let e = S.current.getModifiedEditor(), r = Y(C.current, t || "", i || n || "text", o || "");
461
+ let e = S.current.getModifiedEditor(), r = J(C.current, t || "", i || n || "text", o || "");
461
462
  r !== e.getModel() && e.setModel(r);
462
463
  }
463
- }, [o], v), q(() => {
464
+ }, [o], v), K(() => {
464
465
  let e = S.current.getModifiedEditor();
465
466
  e.getOption(C.current.editor.EditorOption.readOnly) ? e.setValue(t || "") : t !== e.getValue() && (e.executeEdits("", [{
466
467
  range: e.getModel().getFullModelRange(),
467
468
  text: t || "",
468
469
  forceMoveMarkers: !0
469
470
  }]), e.pushUndoStop());
470
- }, [t], v), q(() => {
471
+ }, [t], v), K(() => {
471
472
  S.current?.getModel()?.original.setValue(e || "");
472
- }, [e], v), q(() => {
473
+ }, [e], v), K(() => {
473
474
  let { original: e, modified: t } = S.current.getModel();
474
475
  C.current.editor.setModelLanguage(e, r || n || "text"), C.current.editor.setModelLanguage(t, i || n || "text");
475
476
  }, [
476
477
  n,
477
478
  r,
478
479
  i
479
- ], v), q(() => {
480
+ ], v), K(() => {
480
481
  C.current?.editor.setTheme(l);
481
- }, [l], v), q(() => {
482
+ }, [l], v), K(() => {
482
483
  S.current?.updateOptions(d);
483
484
  }, [d], v);
484
485
  let A = ee(() => {
485
486
  if (!C.current) return;
486
487
  E.current(C.current);
487
- let s = Y(C.current, e || "", r || n || "text", a || ""), c = Y(C.current, t || "", i || n || "text", o || "");
488
+ let s = J(C.current, e || "", r || n || "text", a || ""), c = J(C.current, t || "", i || n || "text", o || "");
488
489
  S.current?.setModel({
489
490
  original: s,
490
491
  modified: c
@@ -520,7 +521,7 @@ function wt({ original: e, modified: t, language: n, originalLanguage: r, modifi
520
521
  let e = S.current?.getModel();
521
522
  s || e?.original?.dispose(), c || e?.modified?.dispose(), S.current?.dispose();
522
523
  }
523
- return D.createElement(_t, {
524
+ return D.createElement(yt, {
524
525
  width: p,
525
526
  height: f,
526
527
  isEditorReady: v,
@@ -530,47 +531,47 @@ function wt({ original: e, modified: t, language: n, originalLanguage: r, modifi
530
531
  wrapperProps: h
531
532
  });
532
533
  }
533
- var Tt = O(wt);
534
- function Et(e) {
534
+ var Dt = O(Et);
535
+ function Ot(e) {
535
536
  let t = N();
536
537
  return k(() => {
537
538
  t.current = e;
538
539
  }, [e]), t.current;
539
540
  }
540
- var Dt = Et, Ot = /* @__PURE__ */ new Map();
541
- function kt({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: i, path: a, theme: o = "light", line: s, loading: c = "Loading...", options: l = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: m = "100%", className: h, wrapperProps: g = {}, beforeMount: _ = J, onMount: v = J, onChange: y, onValidate: b = J }) {
542
- let [x, S] = P(!1), [C, w] = P(!0), T = N(null), E = N(null), O = N(null), A = N(v), j = N(_), M = N(), te = N(r), F = Dt(a), I = N(!1), L = N(!1);
543
- yt(() => {
544
- let e = K.init();
541
+ var kt = Ot, Y = /* @__PURE__ */ new Map();
542
+ function At({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, language: i, path: a, theme: o = "light", line: s, loading: c = "Loading...", options: l = {}, overrideServices: u = {}, saveViewState: d = !0, keepCurrentModel: f = !1, width: p = "100%", height: m = "100%", className: h, wrapperProps: g = {}, beforeMount: _ = q, onMount: v = q, onChange: y, onValidate: b = q }) {
543
+ let [x, S] = P(!1), [C, w] = P(!0), T = N(null), E = N(null), O = N(null), A = N(v), j = N(_), M = N(), F = N(r), I = kt(a), L = N(!1), R = N(!1);
544
+ xt(() => {
545
+ let e = pt.init();
545
546
  return e.then((e) => (T.current = e) && w(!1)).catch((e) => e?.type !== "cancelation" && console.error("Monaco initialization: error:", e)), () => E.current ? ne() : e.cancel();
546
- }), q(() => {
547
- let o = Y(T.current, e || r || "", t || i || "", a || n || "");
548
- o !== E.current?.getModel() && (d && Ot.set(F, E.current?.saveViewState()), E.current?.setModel(o), d && E.current?.restoreViewState(Ot.get(a)));
549
- }, [a], x), q(() => {
547
+ }), K(() => {
548
+ let o = J(T.current, e || r || "", t || i || "", a || n || "");
549
+ o !== E.current?.getModel() && (d && Y.set(I, E.current?.saveViewState()), E.current?.setModel(o), d && E.current?.restoreViewState(Y.get(a)));
550
+ }, [a], x), K(() => {
550
551
  E.current?.updateOptions(l);
551
- }, [l], x), q(() => {
552
- !E.current || r === void 0 || (E.current.getOption(T.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (L.current = !0, E.current.executeEdits("", [{
552
+ }, [l], x), K(() => {
553
+ !E.current || r === void 0 || (E.current.getOption(T.current.editor.EditorOption.readOnly) ? E.current.setValue(r) : r !== E.current.getValue() && (R.current = !0, E.current.executeEdits("", [{
553
554
  range: E.current.getModel().getFullModelRange(),
554
555
  text: r,
555
556
  forceMoveMarkers: !0
556
- }]), E.current.pushUndoStop(), L.current = !1));
557
- }, [r], x), q(() => {
557
+ }]), E.current.pushUndoStop(), R.current = !1));
558
+ }, [r], x), K(() => {
558
559
  let e = E.current?.getModel();
559
560
  e && i && T.current?.editor.setModelLanguage(e, i);
560
- }, [i], x), q(() => {
561
+ }, [i], x), K(() => {
561
562
  s !== void 0 && E.current?.revealLine(s);
562
- }, [s], x), q(() => {
563
+ }, [s], x), K(() => {
563
564
  T.current?.editor.setTheme(o);
564
565
  }, [o], x);
565
- let R = ee(() => {
566
- if (!(!O.current || !T.current) && !I.current) {
566
+ let te = ee(() => {
567
+ if (!(!O.current || !T.current) && !L.current) {
567
568
  j.current(T.current);
568
- let c = a || n, f = Y(T.current, r || e || "", t || i || "", c || "");
569
+ let c = a || n, f = J(T.current, r || e || "", t || i || "", c || "");
569
570
  E.current = T.current?.editor.create(O.current, {
570
571
  model: f,
571
572
  automaticLayout: !0,
572
573
  ...l
573
- }, u), d && E.current.restoreViewState(Ot.get(c)), T.current.editor.setTheme(o), s !== void 0 && E.current.revealLine(s), S(!0), I.current = !0;
574
+ }, u), d && E.current.restoreViewState(Y.get(c)), T.current.editor.setTheme(o), s !== void 0 && E.current.revealLine(s), S(!0), L.current = !0;
574
575
  }
575
576
  }, [
576
577
  e,
@@ -588,14 +589,14 @@ function kt({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
588
589
  k(() => {
589
590
  x && A.current(E.current, T.current);
590
591
  }, [x]), k(() => {
591
- !C && !x && R();
592
+ !C && !x && te();
592
593
  }, [
593
594
  C,
594
595
  x,
595
- R
596
- ]), te.current = r, k(() => {
596
+ te
597
+ ]), F.current = r, k(() => {
597
598
  x && y && (M.current?.dispose(), M.current = E.current?.onDidChangeModelContent((e) => {
598
- L.current || y(E.current.getValue(), e);
599
+ R.current || y(E.current.getValue(), e);
599
600
  }));
600
601
  }, [x, y]), k(() => {
601
602
  if (x) {
@@ -613,9 +614,9 @@ function kt({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
613
614
  return () => {};
614
615
  }, [x, b]);
615
616
  function ne() {
616
- M.current?.dispose(), f ? d && Ot.set(a, E.current.saveViewState()) : E.current.getModel()?.dispose(), E.current.dispose();
617
+ M.current?.dispose(), f ? d && Y.set(a, E.current.saveViewState()) : E.current.getModel()?.dispose(), E.current.dispose();
617
618
  }
618
- return D.createElement(_t, {
619
+ return D.createElement(yt, {
619
620
  width: p,
620
621
  height: m,
621
622
  isEditorReady: x,
@@ -625,12 +626,12 @@ function kt({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, lan
625
626
  wrapperProps: g
626
627
  });
627
628
  }
628
- var At = O(kt);
629
+ var jt = O(At);
629
630
  //#endregion
630
631
  //#region lib/components/ui/display/code/monaco-load-failed.tsx
631
- function jt({ height: e }) {
632
+ function Mt({ height: e }) {
632
633
  let { t } = _();
633
- return /* @__PURE__ */ F("p", {
634
+ return /* @__PURE__ */ I("p", {
634
635
  role: "alert",
635
636
  style: { height: e },
636
637
  className: "grid w-full place-items-center text-sm opacity-80",
@@ -639,11 +640,11 @@ function jt({ height: e }) {
639
640
  }
640
641
  //#endregion
641
642
  //#region lib/components/ui/display/code/use-monaco-load-failed.ts
642
- function Mt() {
643
+ function Nt() {
643
644
  let [e, t] = P(!1);
644
645
  return k(() => {
645
646
  let e = !0;
646
- return K.init().catch((n) => {
647
+ return pt.init().catch((n) => {
647
648
  let r = n?.type;
648
649
  e && r !== "cancelation" && t(!0);
649
650
  }), () => {
@@ -653,7 +654,7 @@ function Mt() {
653
654
  }
654
655
  //#endregion
655
656
  //#region lib/components/ui/widgets/code-editor/theme/token-rules.ts
656
- var Nt = [
657
+ var Pt = [
657
658
  "comment",
658
659
  "keyword",
659
660
  "string",
@@ -667,7 +668,7 @@ var Nt = [
667
668
  "attribute",
668
669
  "regexp",
669
670
  "invalid"
670
- ], Pt = [
671
+ ], Ft = [
671
672
  ["comment", "comment"],
672
673
  ["keyword", "keyword"],
673
674
  ["string", "string"],
@@ -690,7 +691,7 @@ var Nt = [
690
691
  ["key", "attribute"],
691
692
  ["regexp", "regexp"],
692
693
  ["invalid", "invalid"]
693
- ], Ft = [
694
+ ], It = [
694
695
  ["namespace", "type"],
695
696
  ["class", "type"],
696
697
  ["enum", "type"],
@@ -706,38 +707,38 @@ var Nt = [
706
707
  ["macro", "function"],
707
708
  ["decorator", "function"],
708
709
  ["modifier", "keyword"]
709
- ], It = [...Pt, ...Ft], Lt = Object.fromEntries(Nt.map((e, t) => [e, (1056816 + (t + 1) * 65793).toString(16)])), Rt = "0f0f0f", zt = "fefefe";
710
- function Bt() {
710
+ ], Lt = [...Ft, ...It], Rt = Object.fromEntries(Pt.map((e, t) => [e, (1056816 + (t + 1) * 65793).toString(16)])), zt = "0f0f0f", Bt = "fefefe";
711
+ function Vt() {
711
712
  return [{
712
713
  token: "",
713
- foreground: Rt,
714
- background: zt
715
- }, ...It.map(([e, t]) => ({
714
+ foreground: zt,
715
+ background: Bt
716
+ }, ...Lt.map(([e, t]) => ({
716
717
  token: e,
717
- foreground: Lt[t],
718
+ foreground: Rt[t],
718
719
  ...t === "comment" ? { fontStyle: "italic" } : {}
719
720
  }))];
720
721
  }
721
722
  //#endregion
722
723
  //#region lib/components/ui/widgets/code-editor/theme/structural-theme.ts
723
- var Vt = "nxgt-structural", Ht = /* @__PURE__ */ new WeakSet();
724
- function Ut(e) {
725
- Ht.has(e) || (e.editor.defineTheme(Vt, {
724
+ var Ht = "nxgt-structural", Ut = /* @__PURE__ */ new WeakSet();
725
+ function Wt(e) {
726
+ Ut.has(e) || (e.editor.defineTheme(Ht, {
726
727
  base: "vs",
727
728
  inherit: !1,
728
- rules: Bt(),
729
+ rules: Vt(),
729
730
  colors: {
730
- "editor.background": `#${zt}`,
731
- "editor.foreground": `#${Rt}`
731
+ "editor.background": `#${Bt}`,
732
+ "editor.foreground": `#${zt}`
732
733
  }
733
- }), Ht.add(e));
734
+ }), Ut.add(e));
734
735
  }
735
- function Wt(e) {
736
- Ut(e), e.editor.setTheme(Vt);
736
+ function Gt(e) {
737
+ Wt(e), e.editor.setTheme(Ht);
737
738
  }
738
739
  //#endregion
739
740
  //#region lib/components/ui/widgets/code-editor/code-editor-options.ts
740
- var Gt = {
741
+ var Kt = {
741
742
  minimap: { enabled: !1 },
742
743
  overviewRulerLanes: 0,
743
744
  overviewRulerBorder: !1,
@@ -754,18 +755,18 @@ var Gt = {
754
755
  fontSize: 13,
755
756
  lineHeight: 20,
756
757
  fixedOverflowWidgets: !0
757
- }, Kt = {
758
+ }, qt = {
758
759
  renderLineHighlight: "none",
759
760
  matchBrackets: "never",
760
761
  occurrencesHighlight: "off",
761
762
  selectionHighlight: !1,
762
763
  cursorBlinking: "solid"
763
764
  };
764
- function qt({ disabled: e, readOnly: t, lineNumbers: n = !0, minimap: r = !1, tabSize: i = 2, fontSize: a = 13, required: o, wordWrap: s, label: c, overflowWidgetsDomNode: l }) {
765
+ function Jt({ disabled: e, readOnly: t, lineNumbers: n = !0, minimap: r = !1, tabSize: i = 2, fontSize: a = 13, required: o, wordWrap: s, label: c, overflowWidgetsDomNode: l }) {
765
766
  return {
766
- ...Gt,
767
+ ...Kt,
767
768
  overflowWidgetsDomNode: l,
768
- ...t && Kt,
769
+ ...t && qt,
769
770
  readOnly: e || t,
770
771
  domReadOnly: e || t,
771
772
  ariaRequired: o,
@@ -784,9 +785,9 @@ function qt({ disabled: e, readOnly: t, lineNumbers: n = !0, minimap: r = !1, ta
784
785
  }
785
786
  //#endregion
786
787
  //#region lib/components/ui/widgets/code-editor/use-monaco-options.ts
787
- function Jt(e) {
788
+ function Yt(e) {
788
789
  let { disabled: t, required: n, wordWrap: r, readOnly: i, lineNumbers: a, minimap: o, tabSize: s, fontSize: c, label: l, overflowWidgetsDomNode: u } = e;
789
- return M(() => qt({
790
+ return M(() => Jt({
790
791
  disabled: t,
791
792
  required: n,
792
793
  wordWrap: r,
@@ -810,7 +811,7 @@ function Jt(e) {
810
811
  u
811
812
  ]);
812
813
  }
813
- function Yt(e, t) {
814
+ function Xt(e, t) {
814
815
  let n = t ?? 2;
815
816
  k(() => {
816
817
  if (!e) return;
@@ -825,10 +826,10 @@ function Yt(e, t) {
825
826
  }
826
827
  //#endregion
827
828
  //#region lib/components/ui/widgets/code-editor/code-editor-monaco.tsx
828
- function Xt({ language: e, height: t, value: n, defaultValue: r, onChange: i, onBlur: a, disabled: o, required: s, wordWrap: c, labelText: l, overflowWidgetsDomNode: u, onInstance: d, path: f, panel: p, ...m }) {
829
- let h = Mt(), g = N(a);
829
+ function Zt({ language: e, height: t, value: n, defaultValue: r, onChange: i, onBlur: a, disabled: o, required: s, wordWrap: c, labelText: l, overflowWidgetsDomNode: u, onInstance: d, path: f, panel: p, ...m }) {
830
+ let h = Nt(), g = N(a);
830
831
  g.current = a;
831
- let _ = Jt({
832
+ let _ = Yt({
832
833
  disabled: o,
833
834
  required: s,
834
835
  wordWrap: c,
@@ -836,10 +837,10 @@ function Xt({ language: e, height: t, value: n, defaultValue: r, onChange: i, on
836
837
  overflowWidgetsDomNode: u,
837
838
  ...m
838
839
  }), [v, y] = P();
839
- return Yt(v, m.tabSize), h ? /* @__PURE__ */ F(jt, { height: t }) : /* @__PURE__ */ F(At, {
840
+ return Xt(v, m.tabSize), h ? /* @__PURE__ */ I(Mt, { height: t }) : /* @__PURE__ */ I(jt, {
840
841
  language: e,
841
842
  height: t,
842
- theme: Vt,
843
+ theme: Ht,
843
844
  path: f,
844
845
  value: n,
845
846
  defaultValue: r,
@@ -849,15 +850,15 @@ function Xt({ language: e, height: t, value: n, defaultValue: r, onChange: i, on
849
850
  role: "tabpanel",
850
851
  "aria-labelledby": p.labelledBy
851
852
  },
852
- beforeMount: Ut,
853
+ beforeMount: Wt,
853
854
  onMount: (e, t) => {
854
- Wt(t), e.onDidBlurEditorWidget(() => g.current?.()), y(e), d({
855
+ Gt(t), e.onDidBlurEditorWidget(() => g.current?.()), y(e), d({
855
856
  editor: e,
856
857
  monaco: t
857
858
  });
858
859
  },
859
860
  options: _,
860
- loading: /* @__PURE__ */ F(T, {
861
+ loading: /* @__PURE__ */ I(T, {
861
862
  style: { height: t },
862
863
  className: "w-full"
863
864
  })
@@ -865,10 +866,10 @@ function Xt({ language: e, height: t, value: n, defaultValue: r, onChange: i, on
865
866
  }
866
867
  //#endregion
867
868
  //#region lib/components/ui/widgets/code-editor/code-editor-body.tsx
868
- function Zt({ props: e, code: t, view: n, language: r, wordWrap: i, readOnly: a, withTabs: o, overflow: s, fullscreen: c }) {
869
- return /* @__PURE__ */ F("div", {
869
+ function Qt({ props: e, code: t, view: n, language: r, wordWrap: i, readOnly: a, withTabs: o, overflow: s, fullscreen: c }) {
870
+ return /* @__PURE__ */ I("div", {
870
871
  className: "nxgt-code-body",
871
- children: /* @__PURE__ */ F(Xt, {
872
+ children: /* @__PURE__ */ I(Zt, {
872
873
  language: r,
873
874
  height: c ? "100%" : e.height ?? 300,
874
875
  path: t.path,
@@ -893,19 +894,20 @@ function Zt({ props: e, code: t, view: n, language: r, wordWrap: i, readOnly: a,
893
894
  }
894
895
  //#endregion
895
896
  //#region lib/components/ui/widgets/code-editor/code-editor-field.tsx
896
- function Qt({ label: e, required: n, helperText: r, invalid: i, className: a, children: o }) {
897
- return /* @__PURE__ */ I("div", {
897
+ function $t({ props: { label: e, required: n, helperText: r, className: i }, view: { helperId: a, invalid: o }, children: s }) {
898
+ return /* @__PURE__ */ L("div", {
898
899
  ref: u(),
899
900
  "data-slot": "code-editor",
900
- className: t("grid w-full min-w-0 max-w-full gap-1.5", a),
901
+ className: t("grid w-full min-w-0 max-w-full gap-1.5", i),
901
902
  children: [
902
- /* @__PURE__ */ F(l, {
903
+ /* @__PURE__ */ I(l, {
903
904
  withAsterisk: n,
904
905
  children: e
905
906
  }),
906
- o,
907
- r && /* @__PURE__ */ F(c, {
908
- error: i,
907
+ s,
908
+ r && /* @__PURE__ */ I(c, {
909
+ id: a,
910
+ error: o,
909
911
  children: r
910
912
  })
911
913
  ]
@@ -913,28 +915,28 @@ function Qt({ label: e, required: n, helperText: r, invalid: i, className: a, ch
913
915
  }
914
916
  //#endregion
915
917
  //#region lib/components/ui/widgets/code-editor/fullscreen/fullscreen-scrim.tsx
916
- var $t = "code-editor-scrim";
917
- function en({ onClose: e }) {
918
- return /* @__PURE__ */ F("div", {
918
+ var en = "code-editor-scrim";
919
+ function tn({ onClose: e }) {
920
+ return /* @__PURE__ */ I("div", {
919
921
  "aria-hidden": !0,
920
- "data-slot": $t,
922
+ "data-slot": en,
921
923
  className: "nxgt-scrim fixed inset-0 z-50",
922
924
  onClick: e
923
925
  });
924
926
  }
925
927
  //#endregion
926
928
  //#region lib/components/ui/widgets/code-editor/fullscreen/page-scroll-lock.ts
927
- var tn = 0, nn = "";
928
- function rn(e = document.documentElement) {
929
- tn++ === 0 && (nn = e.style.getPropertyValue("overflow"), e.style.setProperty("overflow", "hidden"));
929
+ var nn = 0, rn = "";
930
+ function an(e = document.documentElement) {
931
+ nn++ === 0 && (rn = e.style.getPropertyValue("overflow"), e.style.setProperty("overflow", "hidden"));
930
932
  let t = !1;
931
933
  return () => {
932
- t || (t = !0, !(--tn > 0) && (nn ? e.style.setProperty("overflow", nn) : e.style.removeProperty("overflow")));
934
+ t || (t = !0, !(--nn > 0) && (rn ? e.style.setProperty("overflow", rn) : e.style.removeProperty("overflow")));
933
935
  };
934
936
  }
935
937
  //#endregion
936
938
  //#region lib/components/ui/widgets/code-editor/fullscreen/use-code-fullscreen.ts
937
- var an = [
939
+ var on = [
938
940
  "button:not(:disabled)",
939
941
  "[href]",
940
942
  "input:not(:disabled)",
@@ -944,13 +946,13 @@ var an = [
944
946
  "[contenteditable=\"true\"]",
945
947
  "[tabindex]:not([tabindex=\"-1\"])"
946
948
  ].join(", ");
947
- function on(e, t) {
948
- let n = [...t.querySelectorAll(an)].filter((e) => e.getClientRects().length > 0);
949
+ function sn(e, t) {
950
+ let n = [...t.querySelectorAll(on)].filter((e) => e.getClientRects().length > 0);
949
951
  if (!n.length) return;
950
952
  let r = n[0], i = n[n.length - 1], a = document.activeElement;
951
953
  e.shiftKey && (a === r || a === t) ? (e.preventDefault(), i.focus()) : !e.shiftKey && a === i && (e.preventDefault(), r.focus());
952
954
  }
953
- function sn(e, t, r) {
955
+ function cn(e, t, r) {
954
956
  let [i, a] = n({
955
957
  prop: r?.fullscreen,
956
958
  defaultProp: !1,
@@ -963,7 +965,7 @@ function sn(e, t, r) {
963
965
  n.contains(r) || n.focus();
964
966
  let a = t?.parentElement;
965
967
  t && n.appendChild(t);
966
- let o = rn(), s = n.parentElement?.querySelector(`:scope > [data-slot="${$t}"]`), c = fe(n, [s]);
968
+ let o = an(), s = n.parentElement?.querySelector(`:scope > [data-slot="${en}"]`), c = fe(n, [s]);
967
969
  return () => {
968
970
  c(), t && a && n.isConnected && a.appendChild(t), o();
969
971
  let e = document.activeElement;
@@ -976,7 +978,7 @@ function sn(e, t, r) {
976
978
  ]);
977
979
  let o = (t) => {
978
980
  let n = e.current, r = t.nativeEvent.defaultPrevented && !C(t.nativeEvent);
979
- !i || !n || r || n.contains(t.target) && (t.key === "Escape" ? (t.preventDefault(), a(!1)) : t.key === "Tab" && on(t, n));
981
+ !i || !n || r || n.contains(t.target) && (t.key === "Escape" ? (t.preventDefault(), a(!1)) : t.key === "Tab" && sn(t, n));
980
982
  };
981
983
  return {
982
984
  fullscreen: i,
@@ -996,28 +998,28 @@ function sn(e, t, r) {
996
998
  }
997
999
  //#endregion
998
1000
  //#region lib/components/ui/widgets/code-editor/status/code-editor-status.tsx
999
- function cn({ language: e, position: t, markers: n, onReveal: r, readOnly: i }) {
1001
+ function ln({ language: e, position: t, markers: n, onReveal: r, readOnly: i }) {
1000
1002
  let { t: a } = _(), o = n.filter((e) => e.severity === "error").length, s = n.filter((e) => e.severity === "warning").length, c = n.find((e) => e.severity !== "info"), l = o ? a("material.code.errors", "{count, plural, one {# error} other {# errors}}", { count: o }) : a("material.code.warnings", "{count, plural, one {# warning} other {# warnings}}", { count: s });
1001
- return /* @__PURE__ */ I("div", {
1003
+ return /* @__PURE__ */ L("div", {
1002
1004
  "data-slot": "code-editor-status",
1003
1005
  className: "nxgt-code-status",
1004
1006
  children: [
1005
- i && /* @__PURE__ */ I("span", {
1007
+ i && /* @__PURE__ */ L("span", {
1006
1008
  className: "nxgt-code-read-only",
1007
- children: [/* @__PURE__ */ F(ae, { "aria-hidden": !0 }), a("material.code.read-only", "Read-only")]
1009
+ children: [/* @__PURE__ */ I(ae, { "aria-hidden": !0 }), a("material.code.read-only", "Read-only")]
1008
1010
  }),
1009
- c && /* @__PURE__ */ I("button", {
1011
+ c && /* @__PURE__ */ L("button", {
1010
1012
  type: "button",
1011
1013
  className: "nxgt-code-problem",
1012
1014
  "data-severity": o ? "error" : "warning",
1013
1015
  title: c.message,
1014
1016
  onClick: () => r(c),
1015
1017
  children: [
1016
- F(o ? ne : le, { "aria-hidden": !0 }),
1017
- /* @__PURE__ */ F("span", { children: l }),
1018
- /* @__PURE__ */ I("span", {
1018
+ I(o ? ne : le, { "aria-hidden": !0 }),
1019
+ /* @__PURE__ */ I("span", { children: l }),
1020
+ /* @__PURE__ */ L("span", {
1019
1021
  className: "nxgt-code-problem-msg",
1020
- children: [/* @__PURE__ */ F("span", {
1022
+ children: [/* @__PURE__ */ I("span", {
1021
1023
  "aria-hidden": !0,
1022
1024
  children: "· "
1023
1025
  }), a("material.code.problem-at", "Line {line}: {message}", {
@@ -1027,29 +1029,29 @@ function cn({ language: e, position: t, markers: n, onReveal: r, readOnly: i })
1027
1029
  })
1028
1030
  ]
1029
1031
  }),
1030
- /* @__PURE__ */ F("span", { className: "nxgt-code-status-gap" }),
1031
- /* @__PURE__ */ F("span", { children: i ? a("material.code.lines", "{lines, plural, one {# line} other {# lines}}", t) : a("material.code.position", "Ln {line}, Col {column}", t) }),
1032
- e && /* @__PURE__ */ F("span", { children: v(e) })
1032
+ /* @__PURE__ */ I("span", { className: "nxgt-code-status-gap" }),
1033
+ /* @__PURE__ */ I("span", { children: i ? a("material.code.lines", "{lines, plural, one {# line} other {# lines}}", t) : a("material.code.position", "Ln {line}, Col {column}", t) }),
1034
+ e && /* @__PURE__ */ I("span", { children: v(e) })
1033
1035
  ]
1034
1036
  });
1035
1037
  }
1036
1038
  //#endregion
1037
1039
  //#region lib/components/ui/widgets/code-editor/tabs/code-file-tabs.tsx
1038
- var ln = (e, t) => `${e}-tab-${t}`, un = (e) => `${e}-panel`, dn = {
1040
+ var un = (e, t) => `${e}-tab-${t}`, dn = (e) => `${e}-panel`, fn = {
1039
1041
  ArrowRight: (e, t) => (e + 1) % t,
1040
1042
  ArrowLeft: (e, t) => (e - 1 + t) % t,
1041
1043
  Home: () => 0,
1042
1044
  End: (e, t) => t - 1
1043
1045
  };
1044
- function fn({ files: e, activePath: t, onActivePathChange: n, baseId: r }) {
1046
+ function pn({ files: e, activePath: t, onActivePathChange: n, baseId: r }) {
1045
1047
  let { t: i } = _(), a = N(null);
1046
- return /* @__PURE__ */ F("div", {
1048
+ return /* @__PURE__ */ I("div", {
1047
1049
  ref: a,
1048
1050
  role: "tablist",
1049
1051
  "aria-label": i("material.code.files", "Files"),
1050
1052
  className: "nxgt-code-tabs",
1051
1053
  onKeyDown: (r) => {
1052
- let i = dn[r.key];
1054
+ let i = fn[r.key];
1053
1055
  if (!i) return;
1054
1056
  r.preventDefault();
1055
1057
  let o = e.findIndex((e) => e.path === t), s = e[i(Math.max(o, 0), e.length)];
@@ -1057,24 +1059,24 @@ function fn({ files: e, activePath: t, onActivePathChange: n, baseId: r }) {
1057
1059
  },
1058
1060
  children: e.map((e, a) => {
1059
1061
  let o = e.path === t;
1060
- return /* @__PURE__ */ I("button", {
1061
- id: ln(r, a),
1062
+ return /* @__PURE__ */ L("button", {
1063
+ id: un(r, a),
1062
1064
  type: "button",
1063
1065
  role: "tab",
1064
1066
  "data-path": e.path,
1065
1067
  "aria-selected": o,
1066
- "aria-controls": o ? un(r) : void 0,
1068
+ "aria-controls": o ? dn(r) : void 0,
1067
1069
  tabIndex: o ? 0 : -1,
1068
1070
  className: "nxgt-code-tab",
1069
1071
  title: e.path,
1070
1072
  onClick: () => n(e.path),
1071
- children: [/* @__PURE__ */ F("span", {
1073
+ children: [/* @__PURE__ */ I("span", {
1072
1074
  className: "nxgt-code-tab-name",
1073
1075
  children: e.label ?? e.path.split("/").pop()
1074
- }), e.dirty && /* @__PURE__ */ I(te, { children: [/* @__PURE__ */ F("i", {
1076
+ }), e.dirty && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I("i", {
1075
1077
  className: "nxgt-code-dirty",
1076
1078
  "aria-hidden": !0
1077
- }), /* @__PURE__ */ F("span", {
1079
+ }), /* @__PURE__ */ I("span", {
1078
1080
  className: "sr-only",
1079
1081
  children: i("material.code.unsaved", "unsaved changes")
1080
1082
  })] })]
@@ -1084,14 +1086,14 @@ function fn({ files: e, activePath: t, onActivePathChange: n, baseId: r }) {
1084
1086
  }
1085
1087
  //#endregion
1086
1088
  //#region lib/components/ui/widgets/code-editor/tabs/use-code-files.ts
1087
- function pn(e, t, n) {
1089
+ function mn(e, t, n) {
1088
1090
  return new Set(n.map((n) => e.parse(t + n.path).toString()));
1089
1091
  }
1090
- function mn(e, t) {
1092
+ function hn(e, t) {
1091
1093
  let { files: n, onFileChange: r, onChange: i } = e, a = A().replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), o = `inmemory://nxgt-${a}/`, s = n?.length ? n.find((t) => t.path === e.activePath) ?? n[0] : void 0;
1092
1094
  if (k(() => {
1093
1095
  if (!t) return;
1094
- let e = pn(t.Uri, o, n ?? []);
1096
+ let e = mn(t.Uri, o, n ?? []);
1095
1097
  for (let n of t.editor.getModels()) {
1096
1098
  let t = n.uri.toString();
1097
1099
  t.startsWith(o) && !e.has(t) && !n.isAttachedToEditor() && n.dispose();
@@ -1119,8 +1121,8 @@ function mn(e, t) {
1119
1121
  baseId: a
1120
1122
  },
1121
1123
  panel: {
1122
- id: un(a),
1123
- labelledBy: ln(a, n.indexOf(s))
1124
+ id: dn(a),
1125
+ labelledBy: un(a, n.indexOf(s))
1124
1126
  },
1125
1127
  path: o + s.path,
1126
1128
  value: s.value,
@@ -1131,9 +1133,9 @@ function mn(e, t) {
1131
1133
  }
1132
1134
  //#endregion
1133
1135
  //#region lib/components/ui/widgets/code-editor/theme/color.ts
1134
- var hn = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
1135
- function gn(e) {
1136
- let t = hn.exec(e.trim());
1136
+ var gn = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
1137
+ function _n(e) {
1138
+ let t = gn.exec(e.trim());
1137
1139
  if (!t) return;
1138
1140
  let n = t[1];
1139
1141
  n.length <= 4 && (n = [...n].map((e) => e + e).join(""));
@@ -1149,8 +1151,8 @@ function X([e, t, n, r]) {
1149
1151
  let i = (e) => Math.round(Math.min(1, Math.max(0, e)) * 255).toString(16).padStart(2, "0");
1150
1152
  return `#${i(e)}${i(t)}${i(n)}${r < 1 ? i(r) : ""}`;
1151
1153
  }
1152
- var Z = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, _n = (e) => e <= .0031308 ? e * 12.92 : 1.055 * e ** (1 / 2.4) - .055;
1153
- function vn([e, t, n]) {
1154
+ var Z = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, vn = (e) => e <= .0031308 ? e * 12.92 : 1.055 * e ** (1 / 2.4) - .055;
1155
+ function yn([e, t, n]) {
1154
1156
  let [r, i, a] = [
1155
1157
  Z(e),
1156
1158
  Z(t),
@@ -1162,54 +1164,54 @@ function vn([e, t, n]) {
1162
1164
  .0259040371 * o + .7827717662 * s - .808675766 * c
1163
1165
  ];
1164
1166
  }
1165
- function yn([e, t, n], r) {
1167
+ function bn([e, t, n], r) {
1166
1168
  let i = (e + .3963377774 * t + .2158037573 * n) ** 3, a = (e - .1055613458 * t - .0638541728 * n) ** 3, o = (e - .0894841775 * t - 1.291485548 * n) ** 3;
1167
1169
  return [
1168
- _n(4.0767416621 * i - 3.3077115913 * a + .2309699292 * o),
1169
- _n(-1.2684380046 * i + 2.6097574011 * a - .3413193965 * o),
1170
- _n(-.0041960863 * i - .7034186147 * a + 1.707614701 * o),
1170
+ vn(4.0767416621 * i - 3.3077115913 * a + .2309699292 * o),
1171
+ vn(-1.2684380046 * i + 2.6097574011 * a - .3413193965 * o),
1172
+ vn(-.0041960863 * i - .7034186147 * a + 1.707614701 * o),
1171
1173
  r
1172
1174
  ];
1173
1175
  }
1174
1176
  function Q(e, t, n) {
1175
- let [r, i] = [vn(e), vn(t)];
1176
- return yn([
1177
+ let [r, i] = [yn(e), yn(t)];
1178
+ return bn([
1177
1179
  0,
1178
1180
  1,
1179
1181
  2
1180
1182
  ].map((e) => r[e] * n + i[e] * (1 - n)), 1);
1181
1183
  }
1182
- function bn(e, t) {
1184
+ function xn(e, t) {
1183
1185
  return [
1184
1186
  0,
1185
1187
  1,
1186
1188
  2
1187
1189
  ].map((n) => e[n] * e[3] + t[n] * (1 - e[3])).concat(1);
1188
1190
  }
1189
- function xn([e, t, n]) {
1191
+ function Sn([e, t, n]) {
1190
1192
  return .2126 * Z(e) + .7152 * Z(t) + .0722 * Z(n);
1191
1193
  }
1192
- function Sn(e, t) {
1193
- let [n, r] = [xn(e), xn(t)].sort((e, t) => t - e);
1194
+ function Cn(e, t) {
1195
+ let [n, r] = [Sn(e), Sn(t)].sort((e, t) => t - e);
1194
1196
  return (n + .05) / (r + .05);
1195
1197
  }
1196
1198
  //#endregion
1197
1199
  //#region lib/components/ui/widgets/code-editor/theme/check-contrast.ts
1198
- var Cn = [
1199
- ...Nt,
1200
+ var wn = [
1201
+ ...Pt,
1200
1202
  "fg",
1201
1203
  "gutter",
1202
1204
  "error"
1203
1205
  ];
1204
- function wn(e, t) {
1205
- let n = (t) => gn(e[`--code-${t}`]), r = n("bg"), i = {
1206
+ function Tn(e, t) {
1207
+ let n = (t) => _n(e[`--code-${t}`]), r = n("bg"), i = {
1206
1208
  background: r,
1207
- line: bn(n("line"), r)
1209
+ line: xn(n("line"), r)
1208
1210
  }, a = [];
1209
- for (let e of Cn) {
1210
- let o = bn(n(e), r);
1211
+ for (let e of wn) {
1212
+ let o = xn(n(e), r);
1211
1213
  for (let [n, r] of Object.entries(i)) {
1212
- let i = Sn(o, r);
1214
+ let i = Cn(o, r);
1213
1215
  i < 4.5 && a.push({
1214
1216
  scheme: t,
1215
1217
  token: e,
@@ -1222,23 +1224,23 @@ function wn(e, t) {
1222
1224
  }
1223
1225
  //#endregion
1224
1226
  //#region lib/components/ui/widgets/code-editor/theme/derive-variables.ts
1225
- var Tn = {
1227
+ var En = {
1226
1228
  light: "#b3261e",
1227
1229
  dark: "#ffb4ab"
1228
1230
  };
1229
1231
  function $(e, t) {
1230
- let n = e[t], r = n === void 0 ? void 0 : gn(n);
1232
+ let n = e[t], r = n === void 0 ? void 0 : _n(n);
1231
1233
  if (!r) throw TypeError(`defineCodeTheme: "${String(t)}" must be a hex colour (#rgb or #rrggbb), got ${JSON.stringify(n)}`);
1232
1234
  return r;
1233
1235
  }
1234
- var En = (e, t) => X([
1236
+ var Dn = (e, t) => X([
1235
1237
  e[0],
1236
1238
  e[1],
1237
1239
  e[2],
1238
1240
  t
1239
1241
  ]);
1240
- function Dn(e, t) {
1241
- let n = (t, n) => e[t] === void 0 ? n() : $(e, t), r = $(e, "background"), i = $(e, "foreground"), a = $(e, "keyword"), o = $(e, "function"), s = $(e, "variable"), c = $(e, "comment"), l = n("error", () => gn(Tn[t])), u = {
1242
+ function On(e, t) {
1243
+ let n = (t, n) => e[t] === void 0 ? n() : $(e, t), r = $(e, "background"), i = $(e, "foreground"), a = $(e, "keyword"), o = $(e, "function"), s = $(e, "variable"), c = $(e, "comment"), l = n("error", () => _n(En[t])), u = {
1242
1244
  comment: c,
1243
1245
  keyword: a,
1244
1246
  string: $(e, "string"),
@@ -1266,16 +1268,16 @@ function Dn(e, t) {
1266
1268
  "--code-widget-border": X(Q(i, r, .16)),
1267
1269
  "--code-chrome": X(Q(a, r, .1)),
1268
1270
  "--code-error": X(l),
1269
- "--code-inserted": En(u.string, .18),
1270
- "--code-removed": En(l, .18)
1271
+ "--code-inserted": Dn(u.string, .18),
1272
+ "--code-removed": Dn(l, .18)
1271
1273
  };
1272
1274
  for (let [e, t] of Object.entries(u)) d[`--code-${e}`] = X(t);
1273
1275
  return d;
1274
1276
  }
1275
1277
  //#endregion
1276
1278
  //#region lib/components/ui/widgets/code-editor/theme/define-code-theme.ts
1277
- function On(e) {
1278
- let t = Dn(e.light, "light"), n = Dn(e.dark, "dark"), r = [...wn(t, "light"), ...wn(n, "dark")];
1279
+ function kn(e) {
1280
+ let t = On(e.light, "light"), n = On(e.dark, "dark"), r = [...Tn(t, "light"), ...Tn(n, "dark")];
1279
1281
  return r.length > 0 && !g() && console.warn(`defineCodeTheme: ${r.length} colour(s) under 4.5:1 — ${r.map((e) => `${e.scheme} ${e.token} on ${e.on} ${e.ratio.toFixed(2)}:1`).join(", ")}`), {
1280
1282
  kind: "code-theme",
1281
1283
  light: t,
@@ -1283,18 +1285,18 @@ function On(e) {
1283
1285
  issues: r
1284
1286
  };
1285
1287
  }
1286
- function kn(e) {
1288
+ function An(e) {
1287
1289
  return typeof e == "object" && !!e && e.kind === "code-theme";
1288
1290
  }
1289
1291
  //#endregion
1290
1292
  //#region lib/components/ui/widgets/code-editor/theme/code-theme-scope.ts
1291
- var An = [
1293
+ var jn = [
1292
1294
  "app",
1293
1295
  "moonlight",
1294
1296
  "soft"
1295
1297
  ];
1296
- function jn(e, t) {
1297
- if (kn(e)) {
1298
+ function Mn(e, t) {
1299
+ if (An(e)) {
1298
1300
  let n = {};
1299
1301
  for (let [t, r] of Object.entries(e.light)) n[t.replace("--code-", "--code-light-")] = r;
1300
1302
  for (let [t, r] of Object.entries(e.dark)) n[t.replace("--code-", "--code-dark-")] = r;
@@ -1312,24 +1314,24 @@ function jn(e, t) {
1312
1314
  dark: n === "app" && t === "dark"
1313
1315
  };
1314
1316
  }
1315
- function Mn(e, t, n) {
1317
+ function Nn(e, t, n) {
1316
1318
  for (let r of Object.keys(n?.variables ?? {})) (!t.variables || !(r in t.variables)) && e.style.removeProperty(r);
1317
1319
  for (let [n, r] of Object.entries(t.variables ?? {})) e.style.setProperty(n, r);
1318
1320
  }
1319
- function Nn(e, t, n) {
1320
- e.dataset.codeTheme = t["data-code-theme"], t["data-code-scheme"] ? e.dataset.codeScheme = t["data-code-scheme"] : delete e.dataset.codeScheme, e.classList.toggle("dark", t.dark), Mn(e, t, n);
1321
+ function Pn(e, t, n) {
1322
+ e.dataset.codeTheme = t["data-code-theme"], t["data-code-scheme"] ? e.dataset.codeScheme = t["data-code-scheme"] : delete e.dataset.codeScheme, e.classList.toggle("dark", t.dark), Nn(e, t, n);
1321
1323
  }
1322
1324
  //#endregion
1323
1325
  //#region lib/components/ui/widgets/code-editor/theme/use-code-theme.ts
1324
- function Pn() {
1326
+ function Fn() {
1325
1327
  let e = document.createElement("div");
1326
1328
  return e.className = "monaco-editor nxgt-code-overflow", e.dataset.slot = "code-editor-overflow", e;
1327
1329
  }
1328
- function Fn(e, t) {
1329
- let n = M(() => jn(e, t), [e, t]), r = N(null), [i] = P(() => typeof document > "u" ? void 0 : Pn()), a = N(void 0);
1330
+ function In(e, t) {
1331
+ let n = M(() => Mn(e, t), [e, t]), r = N(null), [i] = P(() => typeof document > "u" ? void 0 : Fn()), a = N(void 0);
1330
1332
  return S(() => {
1331
1333
  let e = r.current;
1332
- e && Mn(e, n, a.current), i && Nn(i, n, a.current), a.current = n;
1334
+ e && Nn(e, n, a.current), i && Pn(i, n, a.current), a.current = n;
1333
1335
  }, [n, i]), S(() => {
1334
1336
  if (i) return (r.current?.parentElement?.closest("[role=\"dialog\"]") ?? document.body).appendChild(i), () => i.remove();
1335
1337
  }, [i]), {
@@ -1345,29 +1347,29 @@ function Fn(e, t) {
1345
1347
  }
1346
1348
  //#endregion
1347
1349
  //#region lib/components/ui/widgets/code-editor/tabs/code-file-picker.tsx
1348
- var In = (e) => e.path.split("/").pop() ?? e.path, Ln = (e) => e.label ?? In(e);
1349
- function Rn({ files: e, activePath: t, onActivePathChange: n }) {
1350
+ var Ln = (e) => e.path.split("/").pop() ?? e.path, Rn = (e) => e.label ?? Ln(e);
1351
+ function zn({ files: e, activePath: t, onActivePathChange: n }) {
1350
1352
  let { t: c } = _(), l = Math.max(e.findIndex((e) => e.path === t), 0), u = e[l];
1351
- return /* @__PURE__ */ I(s, { children: [/* @__PURE__ */ F(r, {
1353
+ return /* @__PURE__ */ L(s, { children: [/* @__PURE__ */ I(r, {
1352
1354
  asChild: !0,
1353
- children: /* @__PURE__ */ I("button", {
1355
+ children: /* @__PURE__ */ L("button", {
1354
1356
  type: "button",
1355
1357
  className: "nxgt-code-picker",
1356
1358
  "aria-label": c("material.code.file-of", "File: {name}, {index} of {count}", {
1357
- name: E(u.label) || In(u),
1359
+ name: E(u.label) || Ln(u),
1358
1360
  index: l + 1,
1359
1361
  count: e.length
1360
1362
  }),
1361
1363
  children: [
1362
- /* @__PURE__ */ F("span", {
1364
+ /* @__PURE__ */ I("span", {
1363
1365
  className: "nxgt-code-picker-name",
1364
- children: Ln(u)
1366
+ children: Rn(u)
1365
1367
  }),
1366
- u.dirty && /* @__PURE__ */ F("i", {
1368
+ u.dirty && /* @__PURE__ */ I("i", {
1367
1369
  className: "nxgt-code-dirty",
1368
1370
  "aria-hidden": !0
1369
1371
  }),
1370
- /* @__PURE__ */ I("span", {
1372
+ /* @__PURE__ */ L("span", {
1371
1373
  className: "nxgt-code-picker-count",
1372
1374
  "aria-hidden": !0,
1373
1375
  children: [
@@ -1376,21 +1378,21 @@ function Rn({ files: e, activePath: t, onActivePathChange: n }) {
1376
1378
  e.length
1377
1379
  ]
1378
1380
  }),
1379
- /* @__PURE__ */ F(R, { "aria-hidden": !0 })
1381
+ /* @__PURE__ */ I(te, { "aria-hidden": !0 })
1380
1382
  ]
1381
1383
  })
1382
- }), /* @__PURE__ */ F(o, {
1384
+ }), /* @__PURE__ */ I(o, {
1383
1385
  align: "start",
1384
1386
  className: "max-h-80",
1385
- children: /* @__PURE__ */ F(i, {
1387
+ children: /* @__PURE__ */ I(i, {
1386
1388
  value: u.path,
1387
1389
  onValueChange: n,
1388
- children: e.map((e) => /* @__PURE__ */ I(a, {
1390
+ children: e.map((e) => /* @__PURE__ */ L(a, {
1389
1391
  value: e.path,
1390
- children: [/* @__PURE__ */ F("span", {
1392
+ children: [/* @__PURE__ */ I("span", {
1391
1393
  className: "truncate",
1392
1394
  children: e.path
1393
- }), e.dirty && /* @__PURE__ */ F("span", {
1395
+ }), e.dirty && /* @__PURE__ */ I("span", {
1394
1396
  className: "ms-auto text-xs opacity-80",
1395
1397
  children: c("material.code.unsaved", "unsaved changes")
1396
1398
  })]
@@ -1400,20 +1402,20 @@ function Rn({ files: e, activePath: t, onActivePathChange: n }) {
1400
1402
  }
1401
1403
  //#endregion
1402
1404
  //#region lib/components/ui/widgets/code-editor/toolbar/code-copy-tool.tsx
1403
- function zn({ reader: e, status: t, disabled: n, onCopy: r }) {
1404
- let { t: i } = _(), a = i("material.code.copy", "Copy"), o = F(t === "copied" ? L : re, {});
1405
- return e ? /* @__PURE__ */ F(d, {
1405
+ function Bn({ reader: e, status: t, disabled: n, onCopy: r }) {
1406
+ let { t: i } = _(), a = i("material.code.copy", "Copy"), o = I(t === "copied" ? R : re, {});
1407
+ return e ? /* @__PURE__ */ I(d, {
1406
1408
  label: a,
1407
1409
  fit: !1,
1408
1410
  priority: "pinned",
1409
- children: /* @__PURE__ */ I("button", {
1411
+ children: /* @__PURE__ */ L("button", {
1410
1412
  type: "button",
1411
1413
  className: "nxgt-code-copy-cta nxgt-touch-target",
1412
1414
  disabled: n,
1413
1415
  onClick: r,
1414
- children: [o, /* @__PURE__ */ F("span", { children: t === "copied" ? i("material.code.copied", "Copied") : a })]
1416
+ children: [o, /* @__PURE__ */ I("span", { children: t === "copied" ? i("material.code.copied", "Copied") : a })]
1415
1417
  })
1416
- }) : /* @__PURE__ */ F(m, {
1418
+ }) : /* @__PURE__ */ I(m, {
1417
1419
  icon: o,
1418
1420
  label: a,
1419
1421
  priority: 2,
@@ -1423,14 +1425,14 @@ function zn({ reader: e, status: t, disabled: n, onCopy: r }) {
1423
1425
  }
1424
1426
  //#endregion
1425
1427
  //#region lib/components/ui/widgets/code-editor/toolbar/code-language-menu.tsx
1426
- function Bn({ language: e, onLanguageChange: t, disabled: n }) {
1427
- let { t: i } = _(), a = v(e), c = i("material.code.language-is", "Language: {name}", { name: a }), l = /* @__PURE__ */ F(x, {
1428
+ function Vn({ language: e, onLanguageChange: t, disabled: n }) {
1429
+ let { t: i } = _(), a = v(e), c = i("material.code.language-is", "Language: {name}", { name: a }), l = /* @__PURE__ */ I(x, {
1428
1430
  language: e,
1429
1431
  onChange: t
1430
1432
  });
1431
- return /* @__PURE__ */ I(s, { children: [/* @__PURE__ */ F(r, {
1433
+ return /* @__PURE__ */ L(s, { children: [/* @__PURE__ */ I(r, {
1432
1434
  asChild: !0,
1433
- children: /* @__PURE__ */ F(d, {
1435
+ children: /* @__PURE__ */ I(d, {
1434
1436
  label: c,
1435
1437
  fit: !1,
1436
1438
  priority: 9,
@@ -1439,22 +1441,22 @@ function Bn({ language: e, onLanguageChange: t, disabled: n }) {
1439
1441
  content: l,
1440
1442
  value: a
1441
1443
  },
1442
- children: /* @__PURE__ */ I("button", {
1444
+ children: /* @__PURE__ */ L("button", {
1443
1445
  type: "button",
1444
1446
  className: "nxgt-code-lang nxgt-touch-target",
1445
1447
  disabled: n,
1446
1448
  "aria-label": c,
1447
1449
  children: [
1448
- /* @__PURE__ */ F(ie, { "aria-hidden": !0 }),
1449
- /* @__PURE__ */ F("span", { children: a }),
1450
- /* @__PURE__ */ F(R, {
1450
+ /* @__PURE__ */ I(ie, { "aria-hidden": !0 }),
1451
+ /* @__PURE__ */ I("span", { children: a }),
1452
+ /* @__PURE__ */ I(te, {
1451
1453
  "aria-hidden": !0,
1452
1454
  className: "nxgt-code-lang-chevron"
1453
1455
  })
1454
1456
  ]
1455
1457
  })
1456
1458
  })
1457
- }), /* @__PURE__ */ F(o, {
1459
+ }), /* @__PURE__ */ I(o, {
1458
1460
  align: "end",
1459
1461
  className: "max-h-80",
1460
1462
  children: l
@@ -1462,27 +1464,27 @@ function Bn({ language: e, onLanguageChange: t, disabled: n }) {
1462
1464
  }
1463
1465
  //#endregion
1464
1466
  //#region lib/components/ui/widgets/code-editor/toolbar/code-view-tools.tsx
1465
- function Vn({ disabled: e, wordWrap: t, onWordWrapChange: n, fullscreen: r, onFullscreenChange: i, onFind: a }) {
1467
+ function Hn({ disabled: e, wordWrap: t, onWordWrapChange: n, fullscreen: r, onFullscreenChange: i, onFind: a }) {
1466
1468
  let { t: o } = _();
1467
- return /* @__PURE__ */ I(h, {
1469
+ return /* @__PURE__ */ L(h, {
1468
1470
  label: o("material.code.view", "View"),
1469
1471
  priority: 3,
1470
1472
  children: [
1471
- /* @__PURE__ */ F(m, {
1472
- icon: /* @__PURE__ */ F(ce, {}),
1473
+ /* @__PURE__ */ I(m, {
1474
+ icon: /* @__PURE__ */ I(ce, {}),
1473
1475
  label: o("material.code.find", "Find"),
1474
1476
  disabled: e,
1475
1477
  onClick: a
1476
1478
  }),
1477
- /* @__PURE__ */ F(p, {
1478
- icon: /* @__PURE__ */ F(de, {}),
1479
+ /* @__PURE__ */ I(p, {
1480
+ icon: /* @__PURE__ */ I(de, {}),
1479
1481
  label: o("material.code.word-wrap", "Word wrap"),
1480
1482
  pressed: t,
1481
1483
  disabled: e,
1482
1484
  onPressedChange: n
1483
1485
  }),
1484
- i && /* @__PURE__ */ F(p, {
1485
- icon: F(r ? se : oe, {}),
1486
+ i && /* @__PURE__ */ I(p, {
1487
+ icon: I(r ? se : oe, {}),
1486
1488
  label: o("material.code.fullscreen", "Full screen"),
1487
1489
  pressed: !!r,
1488
1490
  disabled: e,
@@ -1493,12 +1495,12 @@ function Vn({ disabled: e, wordWrap: t, onWordWrapChange: n, fullscreen: r, onFu
1493
1495
  }
1494
1496
  //#endregion
1495
1497
  //#region lib/components/ui/widgets/code-editor/toolbar/use-can-format.ts
1496
- var Hn = "editor.action.formatDocument";
1497
- function Un(e) {
1498
+ var Un = "editor.action.formatDocument";
1499
+ function Wn(e) {
1498
1500
  let [t, n] = P(!1);
1499
1501
  return k(() => {
1500
1502
  if (!e) return;
1501
- let t = () => n(!!e.getAction(Hn)?.isSupported());
1503
+ let t = () => n(!!e.getAction(Un)?.isSupported());
1502
1504
  t();
1503
1505
  let r = [
1504
1506
  e.onDidChangeModelLanguage(t),
@@ -1515,11 +1517,11 @@ function Un(e) {
1515
1517
  }
1516
1518
  //#endregion
1517
1519
  //#region lib/components/ui/widgets/code-editor/toolbar/code-editor-toolbar.tsx
1518
- function Wn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWrapChange: i, fallbackCode: a = "", readOnly: o, disabled: s, fullscreen: c, onFullscreenChange: l }) {
1519
- let { t: u } = _(), { status: d, copy: p } = b(), h = Un(e), g = (t) => {
1520
+ function Gn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWrapChange: i, fallbackCode: a = "", readOnly: o, disabled: s, fullscreen: c, onFullscreenChange: l }) {
1521
+ let { t: u } = _(), { status: d, copy: p } = b(), h = Wn(e), g = (t) => {
1520
1522
  e?.focus(), e?.getAction(t)?.run();
1521
1523
  };
1522
- return /* @__PURE__ */ I(te, { children: [/* @__PURE__ */ I(f, {
1524
+ return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L(f, {
1523
1525
  label: u("material.code.tools", "Code tools"),
1524
1526
  variant: "floating",
1525
1527
  selectedLook: "morph",
@@ -1529,12 +1531,12 @@ function Wn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWr
1529
1531
  moreLabel: u("material.code.more-tools", "More code tools"),
1530
1532
  className: "nxgt-code-toolbar",
1531
1533
  children: [
1532
- n && !o && /* @__PURE__ */ F(Bn, {
1534
+ n && !o && /* @__PURE__ */ I(Vn, {
1533
1535
  disabled: s,
1534
1536
  language: t,
1535
1537
  onLanguageChange: n
1536
1538
  }),
1537
- /* @__PURE__ */ F(Vn, {
1539
+ /* @__PURE__ */ I(Hn, {
1538
1540
  disabled: s,
1539
1541
  wordWrap: r,
1540
1542
  onWordWrapChange: i,
@@ -1542,37 +1544,37 @@ function Wn({ editor: e, language: t, onLanguageChange: n, wordWrap: r, onWordWr
1542
1544
  onFullscreenChange: l,
1543
1545
  onFind: () => g("actions.find")
1544
1546
  }),
1545
- h && !o && /* @__PURE__ */ F(m, {
1546
- icon: /* @__PURE__ */ F(ue, {}),
1547
+ h && !o && /* @__PURE__ */ I(m, {
1548
+ icon: /* @__PURE__ */ I(ue, {}),
1547
1549
  label: u("material.code.format", "Format document"),
1548
1550
  priority: 1,
1549
1551
  disabled: s,
1550
1552
  onClick: () => g("editor.action.formatDocument")
1551
1553
  }),
1552
- /* @__PURE__ */ F(zn, {
1554
+ /* @__PURE__ */ I(Bn, {
1553
1555
  reader: o,
1554
1556
  status: d,
1555
1557
  disabled: s,
1556
1558
  onCopy: () => void p(e?.getValue() ?? a)
1557
1559
  })
1558
1560
  ]
1559
- }), /* @__PURE__ */ F(y, {
1561
+ }), /* @__PURE__ */ I(y, {
1560
1562
  slot: "code-editor-copy-status",
1561
1563
  status: d
1562
1564
  })] });
1563
1565
  }
1564
- function Gn({ filename: e, tabs: t, ...n }) {
1565
- return /* @__PURE__ */ I("div", {
1566
+ function Kn({ filename: e, tabs: t, ...n }) {
1567
+ return /* @__PURE__ */ L("div", {
1566
1568
  className: "nxgt-code-head",
1567
- children: [t ? /* @__PURE__ */ I(te, { children: [/* @__PURE__ */ F(fn, { ...t }), /* @__PURE__ */ F(Rn, { ...t })] }) : e && /* @__PURE__ */ F("span", {
1569
+ children: [t ? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(pn, { ...t }), /* @__PURE__ */ I(zn, { ...t })] }) : e && /* @__PURE__ */ I("span", {
1568
1570
  className: "nxgt-code-filename",
1569
1571
  children: e
1570
- }), /* @__PURE__ */ F(Wn, { ...n })]
1572
+ }), /* @__PURE__ */ I(Gn, { ...n })]
1571
1573
  });
1572
1574
  }
1573
1575
  //#endregion
1574
1576
  //#region lib/components/ui/widgets/code-editor/use-code-editor-handle.ts
1575
- function Kn(e, t) {
1577
+ function qn(e, t) {
1576
1578
  j(e, () => {
1577
1579
  let e = t?.editor ?? null, n = (t, n) => {
1578
1580
  !e || !t || (e.pushUndoStop(), e.executeEdits("nxgt", [{
@@ -1596,7 +1598,7 @@ function Kn(e, t) {
1596
1598
  r && n(r, t), e?.focus();
1597
1599
  },
1598
1600
  format: async () => {
1599
- await e?.getAction(Hn)?.run();
1601
+ await e?.getAction(Un)?.run();
1600
1602
  },
1601
1603
  revealLine: (t) => {
1602
1604
  e?.revealLineInCenter(t), e?.setPosition({
@@ -1610,12 +1612,12 @@ function Kn(e, t) {
1610
1612
  }
1611
1613
  //#endregion
1612
1614
  //#region lib/components/ui/widgets/code-editor/status/code-markers.ts
1613
- var qn = "nxgt", Jn = {
1615
+ var Jn = "nxgt", Yn = {
1614
1616
  error: 8,
1615
1617
  warning: 4,
1616
1618
  info: 2
1617
1619
  };
1618
- function Yn(e, t) {
1620
+ function Xn(e, t) {
1619
1621
  let n = Math.min(Math.max(1, e.line), t.getLineCount()), r = Math.min(e.endLine ?? n, t.getLineCount());
1620
1622
  return {
1621
1623
  startLineNumber: n,
@@ -1623,11 +1625,11 @@ function Yn(e, t) {
1623
1625
  endLineNumber: r,
1624
1626
  endColumn: e.endColumn ?? t.getLineMaxColumn(r),
1625
1627
  message: e.message,
1626
- severity: Jn[e.severity ?? "error"],
1628
+ severity: Yn[e.severity ?? "error"],
1627
1629
  source: e.source
1628
1630
  };
1629
1631
  }
1630
- function Xn(e) {
1632
+ function Zn(e) {
1631
1633
  let t = e.severity >= 8 ? "error" : e.severity >= 4 ? "warning" : e.severity >= 2 ? "info" : void 0;
1632
1634
  if (t) return {
1633
1635
  line: e.startLineNumber,
@@ -1639,17 +1641,17 @@ function Xn(e) {
1639
1641
  source: e.source
1640
1642
  };
1641
1643
  }
1642
- var Zn = {
1644
+ var Qn = {
1643
1645
  error: 0,
1644
1646
  warning: 1,
1645
1647
  info: 2
1646
1648
  };
1647
- function Qn(e) {
1648
- return [...e].sort((e, t) => Zn[e.severity ?? "error"] - Zn[t.severity ?? "error"] || e.line - t.line || (e.column ?? 1) - (t.column ?? 1));
1649
+ function $n(e) {
1650
+ return [...e].sort((e, t) => Qn[e.severity ?? "error"] - Qn[t.severity ?? "error"] || e.line - t.line || (e.column ?? 1) - (t.column ?? 1));
1649
1651
  }
1650
1652
  //#endregion
1651
1653
  //#region lib/components/ui/widgets/code-editor/status/use-code-markers.ts
1652
- function $n(e) {
1654
+ function er(e) {
1653
1655
  let [t, n] = P(null);
1654
1656
  return k(() => {
1655
1657
  if (!e) return;
@@ -1658,24 +1660,24 @@ function $n(e) {
1658
1660
  return () => t.dispose();
1659
1661
  }, [e]), t;
1660
1662
  }
1661
- function er(e, t, n) {
1663
+ function tr(e, t, n) {
1662
1664
  let [r, i] = P([]), a = N(n);
1663
1665
  a.current = n;
1664
- let o = $n(e), s = JSON.stringify(t ?? []);
1666
+ let o = er(e), s = JSON.stringify(t ?? []);
1665
1667
  return k(() => {
1666
1668
  if (!e || !o) return;
1667
1669
  let t = JSON.parse(s);
1668
- e.monaco.editor.setModelMarkers(o, qn, t.map((e) => Yn(e, o)));
1670
+ e.monaco.editor.setModelMarkers(o, Jn, t.map((e) => Xn(e, o)));
1669
1671
  }, [
1670
1672
  e,
1671
1673
  o,
1672
1674
  s
1673
1675
  ]), k(() => {
1674
- if (!(!e || !o)) return () => e.monaco.editor.setModelMarkers(o, qn, []);
1676
+ if (!(!e || !o)) return () => e.monaco.editor.setModelMarkers(o, Jn, []);
1675
1677
  }, [e, o]), k(() => {
1676
1678
  if (!e || !o) return;
1677
1679
  let { monaco: t } = e, n = "", r = () => {
1678
- let e = Qn(t.editor.getModelMarkers({ resource: o.uri }).map(Xn).filter((e) => !!e)), r = JSON.stringify(e);
1680
+ let e = $n(t.editor.getModelMarkers({ resource: o.uri }).map(Zn).filter((e) => !!e)), r = JSON.stringify(e);
1679
1681
  r !== n && (n = r, i(e), a.current?.(e));
1680
1682
  };
1681
1683
  r();
@@ -1685,7 +1687,7 @@ function er(e, t, n) {
1685
1687
  return () => s.dispose();
1686
1688
  }, [e, o]), r;
1687
1689
  }
1688
- function tr(e, t) {
1690
+ function nr(e, t) {
1689
1691
  let n = {
1690
1692
  lineNumber: t.line,
1691
1693
  column: t.column ?? 1
@@ -1694,7 +1696,7 @@ function tr(e, t) {
1694
1696
  }
1695
1697
  //#endregion
1696
1698
  //#region lib/components/ui/widgets/code-editor/status/use-cursor-position.ts
1697
- function nr(e) {
1699
+ function rr(e) {
1698
1700
  let [t, n] = P({
1699
1701
  line: 1,
1700
1702
  column: 1,
@@ -1726,23 +1728,34 @@ function nr(e) {
1726
1728
  }
1727
1729
  //#endregion
1728
1730
  //#region lib/components/ui/widgets/code-editor/use-code-editor-instance.ts
1729
- function rr({ error: e, markers: t, onMarkersChange: n }) {
1730
- let [r, i] = P(null), a = er(r, t, n), o = nr(r?.editor), s = !!e || a.some((e) => e.severity === "error");
1731
+ function ir(e, t, n) {
1732
+ let r = pe(e, !!t && n)?.split(/\s+/);
1733
+ return r && [...new Set(r)].join(" ");
1734
+ }
1735
+ function ar(e, t) {
1736
+ t ? e?.setAttribute("aria-describedby", t) : e?.removeAttribute("aria-describedby");
1737
+ }
1738
+ function or({ error: e, helperText: t, "aria-describedby": n, markers: r, onMarkersChange: i }) {
1739
+ let a = A(), o = ir(n, t, a), [s, c] = P(null), l = tr(s, r, i), u = rr(s?.editor), d = !!e || l.some((e) => e.severity === "error");
1731
1740
  return k(() => {
1732
- let e = r?.editor.getDomNode()?.querySelector("textarea, .native-edit-context");
1733
- s ? e?.setAttribute("aria-invalid", "true") : e?.removeAttribute("aria-invalid");
1734
- }, [r, s]), {
1735
- instance: r,
1736
- setInstance: i,
1737
- allMarkers: a,
1738
- position: o,
1739
- invalid: s,
1740
- reveal: (e) => r && tr(r.editor, e)
1741
+ let e = s?.editor.getDomNode()?.querySelector("textarea, .native-edit-context");
1742
+ d ? e?.setAttribute("aria-invalid", "true") : e?.removeAttribute("aria-invalid");
1743
+ }, [s, d]), k(() => {
1744
+ let e = s?.editor.getDomNode()?.querySelector("textarea, .native-edit-context");
1745
+ ar(e, o);
1746
+ }, [s, o]), {
1747
+ instance: s,
1748
+ helperId: a,
1749
+ setInstance: c,
1750
+ allMarkers: l,
1751
+ position: u,
1752
+ invalid: d,
1753
+ reveal: (e) => s && nr(s.editor, e)
1741
1754
  };
1742
1755
  }
1743
1756
  //#endregion
1744
1757
  //#region lib/components/ui/widgets/code-editor/use-word-wrap.ts
1745
- function ir(e, t = !1, r) {
1758
+ function sr(e, t = !1, r) {
1746
1759
  return n({
1747
1760
  prop: e,
1748
1761
  defaultProp: t,
@@ -1751,18 +1764,15 @@ function ir(e, t = !1, r) {
1751
1764
  }
1752
1765
  //#endregion
1753
1766
  //#region lib/components/ui/widgets/code-editor/code-editor.tsx
1754
- var ar = /* @__PURE__ */ e({ CodeEditor: () => or });
1755
- function or(e) {
1756
- let { disabled: n, showChrome: r = !0 } = e, i = Fn(e.theme, e.scheme), [a, o] = ir(e.wordWrap, e.defaultWordWrap, e.onWordWrapChange), s = rr(e);
1757
- Kn(e.ref, s.instance);
1758
- let c = e.readOnly && !n, l = mn(e, s.instance?.monaco), u = l.language ?? "json", d = sn(i.surfaceRef, i.overflow, e);
1759
- return /* @__PURE__ */ I(Qt, {
1760
- label: e.label,
1761
- required: e.required,
1762
- helperText: e.helperText,
1763
- invalid: s.invalid,
1764
- className: e.className,
1765
- children: [d.fullscreen && /* @__PURE__ */ F(en, { onClose: () => d.setFullscreen(!1) }), /* @__PURE__ */ I("div", {
1767
+ var cr = /* @__PURE__ */ e({ CodeEditor: () => lr });
1768
+ function lr(e) {
1769
+ let { disabled: n, showChrome: r = !0 } = e, i = In(e.theme, e.scheme), [a, o] = sr(e.wordWrap, e.defaultWordWrap, e.onWordWrapChange), s = or(e);
1770
+ qn(e.ref, s.instance);
1771
+ let c = e.readOnly && !n, l = hn(e, s.instance?.monaco), u = l.language ?? "json", d = cn(i.surfaceRef, i.overflow, e);
1772
+ return /* @__PURE__ */ L($t, {
1773
+ props: e,
1774
+ view: s,
1775
+ children: [d.fullscreen && /* @__PURE__ */ I(tn, { onClose: () => d.setFullscreen(!1) }), /* @__PURE__ */ L("div", {
1766
1776
  ref: i.surfaceRef,
1767
1777
  ...d.layerProps(E(e.label)),
1768
1778
  ...i.surfaceProps,
@@ -1772,7 +1782,7 @@ function or(e) {
1772
1782
  "data-pw": e.name ? `${e.name}-code-editor` : "code-editor",
1773
1783
  className: t("nxgt-code-frame", i.surfaceClass),
1774
1784
  children: [
1775
- r && /* @__PURE__ */ F(Gn, {
1785
+ r && /* @__PURE__ */ I(Kn, {
1776
1786
  filename: e.filename,
1777
1787
  tabs: l.tabs,
1778
1788
  editor: s.instance?.editor,
@@ -1786,7 +1796,7 @@ function or(e) {
1786
1796
  fullscreen: d.fullscreen,
1787
1797
  onFullscreenChange: d.setFullscreen
1788
1798
  }),
1789
- /* @__PURE__ */ F(Zt, {
1799
+ /* @__PURE__ */ I(Qt, {
1790
1800
  props: e,
1791
1801
  code: l,
1792
1802
  view: s,
@@ -1797,7 +1807,7 @@ function or(e) {
1797
1807
  overflow: i.overflow,
1798
1808
  fullscreen: d.fullscreen
1799
1809
  }),
1800
- r && /* @__PURE__ */ F(cn, {
1810
+ r && /* @__PURE__ */ I(ln, {
1801
1811
  language: u,
1802
1812
  position: s.position,
1803
1813
  markers: s.allMarkers,
@@ -1809,4 +1819,4 @@ function or(e) {
1809
1819
  });
1810
1820
  }
1811
1821
  //#endregion
1812
- export { An as a, Vt as c, Mt as d, jt as f, Fn as i, Wt as l, K as m, ar as n, On as o, Tt as p, zn as r, Gt as s, or as t, Ut as u };
1822
+ export { jn as a, Ht as c, Nt as d, Mt as f, In as i, Gt as l, pt as m, cr as n, kn as o, Dt as p, Bn as r, Kt as s, lr as t, Wt as u };