@cartanova/qgrid-cli 1.6.2 → 1.7.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 (27) hide show
  1. package/bundle/dist/application/qgrid/qgrid.dispatcher.js +13 -6
  2. package/bundle/dist/application/qgrid/qgrid.frame.js +5 -3
  3. package/bundle/dist/application/qgrid/qgrid.types.js +3 -2
  4. package/bundle/dist/application/request-log/request-log.model.js +3 -3
  5. package/bundle/src/application/qgrid/qgrid.dispatcher.ts +22 -5
  6. package/bundle/src/application/qgrid/qgrid.frame.ts +2 -1
  7. package/bundle/src/application/qgrid/qgrid.types.ts +1 -0
  8. package/bundle/src/application/request-log/request-log.model.ts +2 -2
  9. package/bundle/src/application/sonamu.generated.http +2 -1
  10. package/bundle/web-dist/client/assets/index-D-D8GkQh.css +1 -0
  11. package/bundle/web-dist/client/assets/{index-C1um9umC.js → index-DUmwX7rR.js} +2 -2
  12. package/bundle/web-dist/client/assets/{logs-Codp88zO.js → logs-ci_3vzTT.js} +1 -1
  13. package/bundle/web-dist/client/assets/{routes-fpJMuLAs.js → routes-Ch5LFN0K.js} +1 -1
  14. package/bundle/web-dist/client/assets/{services.generated-B2N0iPav.js → services.generated-BrB-RELO.js} +1 -1
  15. package/bundle/web-dist/client/assets/show-D3N15Krg.js +29 -0
  16. package/bundle/web-dist/client/assets/tokens-BAlIaa6X.js +1 -0
  17. package/bundle/web-dist/client/index.html +2 -2
  18. package/bundle/web-dist/server/assets/{logs-C7lTCP1X.js → logs-CDacVwTQ.js} +1 -1
  19. package/bundle/web-dist/server/assets/{routes-p2n4SfAB.js → routes-BLm-zF86.js} +1 -1
  20. package/bundle/web-dist/server/assets/{services.generated-DIeiDdqy.js → services.generated-wCfUuY7Z.js} +4 -3
  21. package/bundle/web-dist/server/assets/{show-DZ_U1u-N.js → show-DjJyZunM.js} +1841 -123
  22. package/bundle/web-dist/server/assets/{tokens-DTUDs-4D.js → tokens-rQIIgqMo.js} +3 -2
  23. package/bundle/web-dist/server/entry-server.generated.js +4 -4
  24. package/package.json +1 -1
  25. package/bundle/web-dist/client/assets/index-BkbCF47q.css +0 -1
  26. package/bundle/web-dist/client/assets/show-xk8Zz6U1.js +0 -29
  27. package/bundle/web-dist/client/assets/tokens-CPoiSVb6.js +0 -1
@@ -1,11 +1,1841 @@
1
1
  import { D as require_react, E as require_jsx_runtime, it as __exportAll, ot as __toESM, rt as __commonJSMin } from "./sd.generated-CIg_jf8e.js";
2
- import { n as RequestLogService } from "./services.generated-DIeiDdqy.js";
2
+ import { n as RequestLogService } from "./services.generated-wCfUuY7Z.js";
3
3
  import { a as Link } from "./lazyRouteComponent-BlvOfJIF.js";
4
4
  import { t as Route } from "../entry-server.generated.js";
5
5
  import { n as lucideCheck, t as lucideCopy } from "./copy-CKCGxwII.js";
6
6
  import minpath from "node:path";
7
7
  import minproc from "node:process";
8
8
  import { fileURLToPath as urlToPath } from "node:url";
9
+ //#region ../../node_modules/.pnpm/@babel+runtime@7.29.2/node_modules/@babel/runtime/helpers/extends.js
10
+ var require_extends = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11
+ function _extends() {
12
+ return module.exports = _extends = Object.assign ? Object.assign.bind() : function(n) {
13
+ for (var e = 1; e < arguments.length; e++) {
14
+ var t = arguments[e];
15
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
16
+ }
17
+ return n;
18
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends.apply(null, arguments);
19
+ }
20
+ module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
21
+ }));
22
+ //#endregion
23
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/ShowTools.js
24
+ var import_objectWithoutPropertiesLoose = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
25
+ function _objectWithoutPropertiesLoose(r, e) {
26
+ if (null == r) return {};
27
+ var t = {};
28
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
29
+ if (-1 !== e.indexOf(n)) continue;
30
+ t[n] = r[n];
31
+ }
32
+ return t;
33
+ }
34
+ module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports;
35
+ })))());
36
+ var import_extends = /* @__PURE__ */ __toESM(require_extends());
37
+ var import_react = /* @__PURE__ */ __toESM(require_react());
38
+ var import_jsx_runtime = require_jsx_runtime();
39
+ var initialState$5 = {};
40
+ var Context$5 = /* @__PURE__ */ (0, import_react.createContext)(initialState$5);
41
+ var reducer$5 = (state, action) => (0, import_extends.default)({}, state, action);
42
+ var useShowToolsStore = () => {
43
+ return (0, import_react.useContext)(Context$5);
44
+ };
45
+ var DispatchShowTools = /* @__PURE__ */ (0, import_react.createContext)(() => {});
46
+ DispatchShowTools.displayName = "JVR.DispatchShowTools";
47
+ function useShowTools() {
48
+ return (0, import_react.useReducer)(reducer$5, initialState$5);
49
+ }
50
+ function useShowToolsDispatch() {
51
+ return (0, import_react.useContext)(DispatchShowTools);
52
+ }
53
+ var ShowTools = (_ref) => {
54
+ var { initial, dispatch, children } = _ref;
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context$5.Provider, {
56
+ value: initial,
57
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchShowTools.Provider, {
58
+ value: dispatch,
59
+ children
60
+ })
61
+ });
62
+ };
63
+ ShowTools.displayName = "JVR.ShowTools";
64
+ //#endregion
65
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Expands.js
66
+ var initialState$4 = {};
67
+ var Context$4 = /* @__PURE__ */ (0, import_react.createContext)(initialState$4);
68
+ var reducer$4 = (state, action) => (0, import_extends.default)({}, state, action);
69
+ var useExpandsStore = () => {
70
+ return (0, import_react.useContext)(Context$4);
71
+ };
72
+ var DispatchExpands = /* @__PURE__ */ (0, import_react.createContext)(() => {});
73
+ DispatchExpands.displayName = "JVR.DispatchExpands";
74
+ function useExpands() {
75
+ return (0, import_react.useReducer)(reducer$4, initialState$4);
76
+ }
77
+ function useExpandsDispatch() {
78
+ return (0, import_react.useContext)(DispatchExpands);
79
+ }
80
+ var Expands = (_ref) => {
81
+ var { initial, dispatch, children } = _ref;
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context$4.Provider, {
83
+ value: initial,
84
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchExpands.Provider, {
85
+ value: dispatch,
86
+ children
87
+ })
88
+ });
89
+ };
90
+ Expands.displayName = "JVR.Expands";
91
+ //#endregion
92
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Types.js
93
+ var initialState$3 = {
94
+ Str: {
95
+ as: "span",
96
+ "data-type": "string",
97
+ style: { color: "var(--w-rjv-type-string-color, #cb4b16)" },
98
+ className: "w-rjv-type",
99
+ children: "string"
100
+ },
101
+ Url: {
102
+ as: "a",
103
+ style: { color: "var(--w-rjv-type-url-color, #0969da)" },
104
+ "data-type": "url",
105
+ className: "w-rjv-type",
106
+ children: "url"
107
+ },
108
+ Undefined: {
109
+ style: { color: "var(--w-rjv-type-undefined-color, #586e75)" },
110
+ as: "span",
111
+ "data-type": "undefined",
112
+ className: "w-rjv-type",
113
+ children: "undefined"
114
+ },
115
+ Null: {
116
+ style: { color: "var(--w-rjv-type-null-color, #d33682)" },
117
+ as: "span",
118
+ "data-type": "null",
119
+ className: "w-rjv-type",
120
+ children: "null"
121
+ },
122
+ Map: {
123
+ style: {
124
+ color: "var(--w-rjv-type-map-color, #268bd2)",
125
+ marginRight: 3
126
+ },
127
+ as: "span",
128
+ "data-type": "map",
129
+ className: "w-rjv-type",
130
+ children: "Map"
131
+ },
132
+ Nan: {
133
+ style: { color: "var(--w-rjv-type-nan-color, #859900)" },
134
+ as: "span",
135
+ "data-type": "nan",
136
+ className: "w-rjv-type",
137
+ children: "NaN"
138
+ },
139
+ Bigint: {
140
+ style: { color: "var(--w-rjv-type-bigint-color, #268bd2)" },
141
+ as: "span",
142
+ "data-type": "bigint",
143
+ className: "w-rjv-type",
144
+ children: "bigint"
145
+ },
146
+ Int: {
147
+ style: { color: "var(--w-rjv-type-int-color, #268bd2)" },
148
+ as: "span",
149
+ "data-type": "int",
150
+ className: "w-rjv-type",
151
+ children: "int"
152
+ },
153
+ Set: {
154
+ style: {
155
+ color: "var(--w-rjv-type-set-color, #268bd2)",
156
+ marginRight: 3
157
+ },
158
+ as: "span",
159
+ "data-type": "set",
160
+ className: "w-rjv-type",
161
+ children: "Set"
162
+ },
163
+ Float: {
164
+ style: { color: "var(--w-rjv-type-float-color, #859900)" },
165
+ as: "span",
166
+ "data-type": "float",
167
+ className: "w-rjv-type",
168
+ children: "float"
169
+ },
170
+ True: {
171
+ style: { color: "var(--w-rjv-type-boolean-color, #2aa198)" },
172
+ as: "span",
173
+ "data-type": "bool",
174
+ className: "w-rjv-type",
175
+ children: "bool"
176
+ },
177
+ False: {
178
+ style: { color: "var(--w-rjv-type-boolean-color, #2aa198)" },
179
+ as: "span",
180
+ "data-type": "bool",
181
+ className: "w-rjv-type",
182
+ children: "bool"
183
+ },
184
+ Date: {
185
+ style: { color: "var(--w-rjv-type-date-color, #268bd2)" },
186
+ as: "span",
187
+ "data-type": "date",
188
+ className: "w-rjv-type",
189
+ children: "date"
190
+ }
191
+ };
192
+ var Context$3 = /* @__PURE__ */ (0, import_react.createContext)(initialState$3);
193
+ var reducer$3 = (state, action) => (0, import_extends.default)({}, state, action);
194
+ var useTypesStore = () => {
195
+ return (0, import_react.useContext)(Context$3);
196
+ };
197
+ var DispatchTypes = /* @__PURE__ */ (0, import_react.createContext)(() => {});
198
+ DispatchTypes.displayName = "JVR.DispatchTypes";
199
+ function useTypes() {
200
+ return (0, import_react.useReducer)(reducer$3, initialState$3);
201
+ }
202
+ function useTypesDispatch() {
203
+ return (0, import_react.useContext)(DispatchTypes);
204
+ }
205
+ function Types(_ref) {
206
+ var { initial, dispatch, children } = _ref;
207
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context$3.Provider, {
208
+ value: initial,
209
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchTypes.Provider, {
210
+ value: dispatch,
211
+ children
212
+ })
213
+ });
214
+ }
215
+ Types.displayName = "JVR.Types";
216
+ //#endregion
217
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js
218
+ var _excluded$10 = ["style"];
219
+ function TriangleArrow(props) {
220
+ var { style } = props, reset = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$10);
221
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", (0, import_extends.default)({
222
+ viewBox: "0 0 24 24",
223
+ fill: "var(--w-rjv-arrow-color, currentColor)",
224
+ style: (0, import_extends.default)({
225
+ cursor: "pointer",
226
+ height: "1em",
227
+ width: "1em",
228
+ userSelect: "none",
229
+ display: "inline-flex"
230
+ }, style)
231
+ }, reset, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }) }));
232
+ }
233
+ TriangleArrow.displayName = "JVR.TriangleArrow";
234
+ //#endregion
235
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Symbols.js
236
+ var initialState$2 = {
237
+ Arrow: {
238
+ as: "span",
239
+ className: "w-rjv-arrow",
240
+ style: {
241
+ transform: "rotate(0deg)",
242
+ transition: "all 0.3s"
243
+ },
244
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleArrow, {})
245
+ },
246
+ Colon: {
247
+ as: "span",
248
+ style: {
249
+ color: "var(--w-rjv-colon-color, var(--w-rjv-color))",
250
+ marginLeft: 0,
251
+ marginRight: 2
252
+ },
253
+ className: "w-rjv-colon",
254
+ children: ":"
255
+ },
256
+ Quote: {
257
+ as: "span",
258
+ style: { color: "var(--w-rjv-quotes-color, #236a7c)" },
259
+ className: "w-rjv-quotes",
260
+ children: "\""
261
+ },
262
+ ValueQuote: {
263
+ as: "span",
264
+ style: { color: "var(--w-rjv-quotes-string-color, #cb4b16)" },
265
+ className: "w-rjv-quotes",
266
+ children: "\""
267
+ },
268
+ BracketsLeft: {
269
+ as: "span",
270
+ style: { color: "var(--w-rjv-brackets-color, #236a7c)" },
271
+ className: "w-rjv-brackets-start",
272
+ children: "["
273
+ },
274
+ BracketsRight: {
275
+ as: "span",
276
+ style: { color: "var(--w-rjv-brackets-color, #236a7c)" },
277
+ className: "w-rjv-brackets-end",
278
+ children: "]"
279
+ },
280
+ BraceLeft: {
281
+ as: "span",
282
+ style: { color: "var(--w-rjv-curlybraces-color, #236a7c)" },
283
+ className: "w-rjv-curlybraces-start",
284
+ children: "{"
285
+ },
286
+ BraceRight: {
287
+ as: "span",
288
+ style: { color: "var(--w-rjv-curlybraces-color, #236a7c)" },
289
+ className: "w-rjv-curlybraces-end",
290
+ children: "}"
291
+ }
292
+ };
293
+ var Context$2 = /* @__PURE__ */ (0, import_react.createContext)(initialState$2);
294
+ var reducer$2 = (state, action) => (0, import_extends.default)({}, state, action);
295
+ var useSymbolsStore = () => {
296
+ return (0, import_react.useContext)(Context$2);
297
+ };
298
+ var DispatchSymbols = /* @__PURE__ */ (0, import_react.createContext)(() => {});
299
+ DispatchSymbols.displayName = "JVR.DispatchSymbols";
300
+ function useSymbols() {
301
+ return (0, import_react.useReducer)(reducer$2, initialState$2);
302
+ }
303
+ function useSymbolsDispatch() {
304
+ return (0, import_react.useContext)(DispatchSymbols);
305
+ }
306
+ var Symbols = (_ref) => {
307
+ var { initial, dispatch, children } = _ref;
308
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context$2.Provider, {
309
+ value: initial,
310
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchSymbols.Provider, {
311
+ value: dispatch,
312
+ children
313
+ })
314
+ });
315
+ };
316
+ Symbols.displayName = "JVR.Symbols";
317
+ //#endregion
318
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store/Section.js
319
+ var initialState$1 = {
320
+ Copied: {
321
+ className: "w-rjv-copied",
322
+ style: {
323
+ height: "1em",
324
+ width: "1em",
325
+ cursor: "pointer",
326
+ verticalAlign: "middle",
327
+ marginLeft: 5
328
+ }
329
+ },
330
+ CountInfo: {
331
+ as: "span",
332
+ className: "w-rjv-object-size",
333
+ style: {
334
+ color: "var(--w-rjv-info-color, #0000004d)",
335
+ paddingLeft: 8,
336
+ fontStyle: "italic"
337
+ }
338
+ },
339
+ CountInfoExtra: {
340
+ as: "span",
341
+ className: "w-rjv-object-extra",
342
+ style: { paddingLeft: 8 }
343
+ },
344
+ Ellipsis: {
345
+ as: "span",
346
+ style: {
347
+ cursor: "pointer",
348
+ color: "var(--w-rjv-ellipsis-color, #cb4b16)",
349
+ userSelect: "none"
350
+ },
351
+ className: "w-rjv-ellipsis",
352
+ children: "..."
353
+ },
354
+ Row: {
355
+ as: "div",
356
+ className: "w-rjv-line"
357
+ },
358
+ KeyName: {
359
+ as: "span",
360
+ className: "w-rjv-object-key"
361
+ }
362
+ };
363
+ var Context$1 = /* @__PURE__ */ (0, import_react.createContext)(initialState$1);
364
+ var reducer$1 = (state, action) => (0, import_extends.default)({}, state, action);
365
+ var useSectionStore = () => {
366
+ return (0, import_react.useContext)(Context$1);
367
+ };
368
+ var DispatchSection = /* @__PURE__ */ (0, import_react.createContext)(() => {});
369
+ DispatchSection.displayName = "JVR.DispatchSection";
370
+ function useSection() {
371
+ return (0, import_react.useReducer)(reducer$1, initialState$1);
372
+ }
373
+ function useSectionDispatch() {
374
+ return (0, import_react.useContext)(DispatchSection);
375
+ }
376
+ var Section$1 = (_ref) => {
377
+ var { initial, dispatch, children } = _ref;
378
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context$1.Provider, {
379
+ value: initial,
380
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchSection.Provider, {
381
+ value: dispatch,
382
+ children
383
+ })
384
+ });
385
+ };
386
+ Section$1.displayName = "JVR.Section";
387
+ //#endregion
388
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/store.js
389
+ var initialState = {
390
+ objectSortKeys: false,
391
+ indentWidth: 15
392
+ };
393
+ var Context = /* @__PURE__ */ (0, import_react.createContext)(initialState);
394
+ Context.displayName = "JVR.Context";
395
+ var DispatchContext = /* @__PURE__ */ (0, import_react.createContext)(() => {});
396
+ DispatchContext.displayName = "JVR.DispatchContext";
397
+ function reducer(state, action) {
398
+ return (0, import_extends.default)({}, state, action);
399
+ }
400
+ var useStore = () => {
401
+ return (0, import_react.useContext)(Context);
402
+ };
403
+ var Provider = (_ref) => {
404
+ var { children, initialState: init, initialTypes } = _ref;
405
+ var [state, dispatch] = (0, import_react.useReducer)(reducer, Object.assign({}, initialState, init));
406
+ var [showTools, showToolsDispatch] = useShowTools();
407
+ var [expands, expandsDispatch] = useExpands();
408
+ var [types, typesDispatch] = useTypes();
409
+ var [symbols, symbolsDispatch] = useSymbols();
410
+ var [section, sectionDispatch] = useSection();
411
+ (0, import_react.useEffect)(() => dispatch((0, import_extends.default)({}, init)), [init]);
412
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Context.Provider, {
413
+ value: state,
414
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DispatchContext.Provider, {
415
+ value: dispatch,
416
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShowTools, {
417
+ initial: showTools,
418
+ dispatch: showToolsDispatch,
419
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Expands, {
420
+ initial: expands,
421
+ dispatch: expandsDispatch,
422
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Types, {
423
+ initial: (0, import_extends.default)({}, types, initialTypes),
424
+ dispatch: typesDispatch,
425
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Symbols, {
426
+ initial: symbols,
427
+ dispatch: symbolsDispatch,
428
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Section$1, {
429
+ initial: section,
430
+ dispatch: sectionDispatch,
431
+ children
432
+ })
433
+ })
434
+ })
435
+ })
436
+ })
437
+ })
438
+ });
439
+ };
440
+ Provider.displayName = "JVR.Provider";
441
+ //#endregion
442
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/index.js
443
+ var import_objectDestructuringEmpty = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
444
+ function _objectDestructuringEmpty(t) {
445
+ if (null == t) throw new TypeError("Cannot destructure " + t);
446
+ }
447
+ module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports;
448
+ })))());
449
+ var _excluded$9 = [
450
+ "isNumber",
451
+ "value",
452
+ "parentValue",
453
+ "keyName",
454
+ "keys"
455
+ ], _excluded2$5 = ["as", "render"], _excluded3$1 = ["as", "render"], _excluded4$1 = ["as", "render"], _excluded5$1 = [
456
+ "as",
457
+ "style",
458
+ "render"
459
+ ], _excluded6$1 = ["as", "render"], _excluded7$1 = ["as", "render"], _excluded8$1 = ["as", "render"], _excluded9$1 = ["as", "render"];
460
+ var Quote$1 = (props) => {
461
+ var { Quote: Comp = {} } = useSymbolsStore();
462
+ var { isNumber, value, parentValue, keyName, keys } = props, other = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$9);
463
+ if (isNumber) return null;
464
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2$5);
465
+ var Elm = as || "span";
466
+ var elmProps = (0, import_extends.default)({}, other, reset);
467
+ if (typeof elmProps.children === "string") elmProps.children = elmProps.children.trim() || void 0;
468
+ var child = render && typeof render === "function" && render(elmProps, {
469
+ value,
470
+ parentValue,
471
+ keyName,
472
+ keys: keys || (keyName ? [keyName] : [])
473
+ });
474
+ if (child) return child;
475
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, elmProps));
476
+ };
477
+ Quote$1.displayName = "JVR.Quote";
478
+ var ValueQuote$1 = (props) => {
479
+ var { ValueQuote: Comp = {} } = useSymbolsStore();
480
+ var other = (0, import_extends.default)({}, ((0, import_objectDestructuringEmpty.default)(props), props));
481
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded3$1);
482
+ var Elm = as || "span";
483
+ var elmProps = (0, import_extends.default)({}, other, reset);
484
+ var child = render && typeof render === "function" && render(elmProps, {});
485
+ if (child) return child;
486
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, elmProps));
487
+ };
488
+ ValueQuote$1.displayName = "JVR.ValueQuote";
489
+ var Colon$1 = (props) => {
490
+ var { value, parentValue, keyName, keys } = props;
491
+ var { Colon: Comp = {} } = useSymbolsStore();
492
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded4$1);
493
+ var Elm = as || "span";
494
+ var child = render && typeof render === "function" && render(reset, {
495
+ value,
496
+ parentValue,
497
+ keyName,
498
+ keys: keys || (keyName ? [keyName] : [])
499
+ });
500
+ if (child) return child;
501
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, reset));
502
+ };
503
+ Colon$1.displayName = "JVR.Colon";
504
+ var Arrow$1 = (props) => {
505
+ var { Arrow: Comp = {} } = useSymbolsStore();
506
+ var expands = useExpandsStore();
507
+ var { expandKey, style: resetStyle, value, parentValue, keyName, keys } = props;
508
+ var isExpanded = !!expands[expandKey];
509
+ var { as, style, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded5$1);
510
+ var Elm = as || "span";
511
+ var isRender = render && typeof render === "function";
512
+ var elmProps = (0, import_extends.default)({}, reset, {
513
+ "data-expanded": isExpanded,
514
+ style: (0, import_extends.default)({}, style, resetStyle)
515
+ });
516
+ var child = isRender && render(elmProps, {
517
+ value,
518
+ parentValue,
519
+ keyName,
520
+ keys: keys || (keyName ? [keyName] : [])
521
+ });
522
+ if (child) return child;
523
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, reset, { style: (0, import_extends.default)({}, style, resetStyle) }));
524
+ };
525
+ Arrow$1.displayName = "JVR.Arrow";
526
+ var BracketsOpen = (props) => {
527
+ var { isBrackets, value, parentValue, keyName, keys } = props;
528
+ var { BracketsLeft = {}, BraceLeft = {} } = useSymbolsStore();
529
+ var result = {
530
+ value,
531
+ parentValue,
532
+ keyName,
533
+ keys: keys || (keyName ? [keyName] : [])
534
+ };
535
+ if (isBrackets) {
536
+ var { as, render: _render } = BracketsLeft, reset = (0, import_objectWithoutPropertiesLoose.default)(BracketsLeft, _excluded6$1);
537
+ var BracketsLeftComp = as || "span";
538
+ var _child = _render && typeof _render === "function" && _render(reset, result);
539
+ if (_child) return _child;
540
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BracketsLeftComp, (0, import_extends.default)({}, reset));
541
+ }
542
+ var { as: elm, render } = BraceLeft, resetProps = (0, import_objectWithoutPropertiesLoose.default)(BraceLeft, _excluded7$1);
543
+ var BraceLeftComp = elm || "span";
544
+ var child = render && typeof render === "function" && render(resetProps, result);
545
+ if (child) return child;
546
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BraceLeftComp, (0, import_extends.default)({}, resetProps));
547
+ };
548
+ BracketsOpen.displayName = "JVR.BracketsOpen";
549
+ var BracketsClose = (props) => {
550
+ var { isBrackets, isVisiable, value, parentValue, keyName, keys } = props;
551
+ var result = {
552
+ value,
553
+ parentValue,
554
+ keyName,
555
+ keys: keys || (keyName ? [keyName] : [])
556
+ };
557
+ if (!isVisiable) return null;
558
+ var { BracketsRight = {}, BraceRight = {} } = useSymbolsStore();
559
+ if (isBrackets) {
560
+ var { as, render: _render2 } = BracketsRight, _reset = (0, import_objectWithoutPropertiesLoose.default)(BracketsRight, _excluded8$1);
561
+ var BracketsRightComp = as || "span";
562
+ var _child2 = _render2 && typeof _render2 === "function" && _render2(_reset, result);
563
+ if (_child2) return _child2;
564
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BracketsRightComp, (0, import_extends.default)({}, _reset));
565
+ }
566
+ var { as: elm, render } = BraceRight, reset = (0, import_objectWithoutPropertiesLoose.default)(BraceRight, _excluded9$1);
567
+ var BraceRightComp = elm || "span";
568
+ var child = render && typeof render === "function" && render(reset, result);
569
+ if (child) return child;
570
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BraceRightComp, (0, import_extends.default)({}, reset));
571
+ };
572
+ BracketsClose.displayName = "JVR.BracketsClose";
573
+ //#endregion
574
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/NestedClose.js
575
+ var NestedClose = (props) => {
576
+ var _expands$expandKey;
577
+ var { keyName, value, expandKey, parentValue, level, keys = [] } = props;
578
+ var expands = useExpandsStore();
579
+ var { collapsed, shouldExpandNodeInitially } = useStore();
580
+ var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
581
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
582
+ var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
583
+ value,
584
+ keys,
585
+ level,
586
+ keyName,
587
+ parentValue
588
+ });
589
+ if (shouldExpandNodeInitially && collapsed === false) {
590
+ if (expands[expandKey] === void 0 && !shouldExpand) return null;
591
+ } else if (expands[expandKey] === void 0 && shouldExpand) return null;
592
+ var len = Object.keys(value).length;
593
+ if (isExpanded || len === 0) return null;
594
+ var style = { paddingLeft: 4 };
595
+ var compProps = {
596
+ keyName,
597
+ value,
598
+ keys,
599
+ parentValue
600
+ };
601
+ var isArray = Array.isArray(value);
602
+ var isMySet = value instanceof Set;
603
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
604
+ style,
605
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BracketsClose, (0, import_extends.default)({ isBrackets: isArray || isMySet }, compProps, { isVisiable: true }))
606
+ });
607
+ };
608
+ NestedClose.displayName = "JVR.NestedClose";
609
+ //#endregion
610
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/index.js
611
+ var _excluded$8 = ["as", "render"], _excluded2$4 = ["as", "render"], _excluded3 = ["as", "render"], _excluded4 = ["as", "render"], _excluded5 = ["as", "render"], _excluded6 = ["as", "render"], _excluded7 = ["as", "render"], _excluded8 = ["as", "render"], _excluded9 = ["as", "render"], _excluded0 = ["as", "render"], _excluded1 = ["as", "render"], _excluded10 = ["as", "render"], _excluded11 = ["as", "render"];
612
+ var bigIntToString = (bi) => {
613
+ if (bi === void 0) return "0n";
614
+ else if (typeof bi === "string") try {
615
+ bi = BigInt(bi);
616
+ } catch (e) {
617
+ return "0n";
618
+ }
619
+ return bi ? bi.toString() + "n" : "0n";
620
+ };
621
+ var SetComp = (_ref) => {
622
+ var { value, keyName } = _ref;
623
+ var { Set: Comp = {}, displayDataTypes } = useTypesStore();
624
+ if (!(value instanceof Set) || !displayDataTypes) return null;
625
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded$8);
626
+ var type = render && typeof render === "function" && render(reset, {
627
+ type: "type",
628
+ value,
629
+ keyName
630
+ });
631
+ if (type) return type;
632
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(as || "span", (0, import_extends.default)({}, reset));
633
+ };
634
+ SetComp.displayName = "JVR.SetComp";
635
+ var MapComp = (_ref2) => {
636
+ var { value, keyName } = _ref2;
637
+ var { Map: Comp = {}, displayDataTypes } = useTypesStore();
638
+ if (!(value instanceof Map) || !displayDataTypes) return null;
639
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2$4);
640
+ var type = render && typeof render === "function" && render(reset, {
641
+ type: "type",
642
+ value,
643
+ keyName
644
+ });
645
+ if (type) return type;
646
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(as || "span", (0, import_extends.default)({}, reset));
647
+ };
648
+ MapComp.displayName = "JVR.MapComp";
649
+ var defalutStyle = {
650
+ opacity: .75,
651
+ paddingRight: 4
652
+ };
653
+ var TypeString = (_ref3) => {
654
+ var { children = "", keyName, keys } = _ref3;
655
+ var { Str = {}, displayDataTypes } = useTypesStore();
656
+ var { shortenTextAfterLength: length = 30, stringEllipsis = "..." } = useStore();
657
+ var { as, render } = Str, reset = (0, import_objectWithoutPropertiesLoose.default)(Str, _excluded3);
658
+ var childrenStr = children;
659
+ var [shorten, setShorten] = (0, import_react.useState)(length && childrenStr.length > length);
660
+ (0, import_react.useEffect)(() => setShorten(length && childrenStr.length > length), [length]);
661
+ var Comp = as || "span";
662
+ var style = (0, import_extends.default)({}, defalutStyle, Str.style || {});
663
+ if (length > 0) {
664
+ reset.style = (0, import_extends.default)({}, reset.style, { cursor: childrenStr.length <= length ? "initial" : "pointer" });
665
+ if (childrenStr.length > length) reset.onClick = () => {
666
+ setShorten(!shorten);
667
+ };
668
+ }
669
+ var text = shorten ? "" + childrenStr.slice(0, length) + stringEllipsis : childrenStr;
670
+ var isRender = render && typeof render === "function";
671
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
672
+ type: "type",
673
+ value: children,
674
+ keyName,
675
+ keys
676
+ });
677
+ var cls = shorten ? "w-rjv-value w-rjv-value-short" : "w-rjv-value";
678
+ var child = isRender && render((0, import_extends.default)({}, reset, {
679
+ children: text,
680
+ className: cls
681
+ }), {
682
+ type: "value",
683
+ value: children,
684
+ keyName,
685
+ keys
686
+ });
687
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [
688
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ValueQuote$1, {}),
689
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
690
+ className: cls,
691
+ children: text
692
+ })),
693
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ValueQuote$1, {})
694
+ ] })] });
695
+ };
696
+ TypeString.displayName = "JVR.TypeString";
697
+ var TypeTrue = (_ref4) => {
698
+ var { children, keyName, keys } = _ref4;
699
+ var { True = {}, displayDataTypes } = useTypesStore();
700
+ var { as, render } = True, reset = (0, import_objectWithoutPropertiesLoose.default)(True, _excluded4);
701
+ var Comp = as || "span";
702
+ var style = (0, import_extends.default)({}, defalutStyle, True.style || {});
703
+ var isRender = render && typeof render === "function";
704
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
705
+ type: "type",
706
+ value: children,
707
+ keyName,
708
+ keys
709
+ });
710
+ var child = isRender && render((0, import_extends.default)({}, reset, {
711
+ children,
712
+ className: "w-rjv-value"
713
+ }), {
714
+ type: "value",
715
+ value: children,
716
+ keyName,
717
+ keys
718
+ });
719
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
720
+ className: "w-rjv-value",
721
+ children: children == null ? void 0 : children.toString()
722
+ }))] });
723
+ };
724
+ TypeTrue.displayName = "JVR.TypeTrue";
725
+ var TypeFalse = (_ref5) => {
726
+ var { children, keyName, keys } = _ref5;
727
+ var { False = {}, displayDataTypes } = useTypesStore();
728
+ var { as, render } = False, reset = (0, import_objectWithoutPropertiesLoose.default)(False, _excluded5);
729
+ var Comp = as || "span";
730
+ var style = (0, import_extends.default)({}, defalutStyle, False.style || {});
731
+ var isRender = render && typeof render === "function";
732
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
733
+ type: "type",
734
+ value: children,
735
+ keyName,
736
+ keys
737
+ });
738
+ var child = isRender && render((0, import_extends.default)({}, reset, {
739
+ children,
740
+ className: "w-rjv-value"
741
+ }), {
742
+ type: "value",
743
+ value: children,
744
+ keyName,
745
+ keys
746
+ });
747
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
748
+ className: "w-rjv-value",
749
+ children: children == null ? void 0 : children.toString()
750
+ }))] });
751
+ };
752
+ TypeFalse.displayName = "JVR.TypeFalse";
753
+ var TypeFloat = (_ref6) => {
754
+ var { children, keyName, keys } = _ref6;
755
+ var { Float = {}, displayDataTypes } = useTypesStore();
756
+ var { as, render } = Float, reset = (0, import_objectWithoutPropertiesLoose.default)(Float, _excluded6);
757
+ var Comp = as || "span";
758
+ var style = (0, import_extends.default)({}, defalutStyle, Float.style || {});
759
+ var isRender = render && typeof render === "function";
760
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
761
+ type: "type",
762
+ value: children,
763
+ keyName,
764
+ keys
765
+ });
766
+ var child = isRender && render((0, import_extends.default)({}, reset, {
767
+ children,
768
+ className: "w-rjv-value"
769
+ }), {
770
+ type: "value",
771
+ value: children,
772
+ keyName,
773
+ keys
774
+ });
775
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
776
+ className: "w-rjv-value",
777
+ children: children == null ? void 0 : children.toString()
778
+ }))] });
779
+ };
780
+ TypeFloat.displayName = "JVR.TypeFloat";
781
+ var TypeInt = (_ref7) => {
782
+ var { children, keyName, keys } = _ref7;
783
+ var { Int = {}, displayDataTypes } = useTypesStore();
784
+ var { as, render } = Int, reset = (0, import_objectWithoutPropertiesLoose.default)(Int, _excluded7);
785
+ var Comp = as || "span";
786
+ var style = (0, import_extends.default)({}, defalutStyle, Int.style || {});
787
+ var isRender = render && typeof render === "function";
788
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
789
+ type: "type",
790
+ value: children,
791
+ keyName,
792
+ keys
793
+ });
794
+ var child = isRender && render((0, import_extends.default)({}, reset, {
795
+ children,
796
+ className: "w-rjv-value"
797
+ }), {
798
+ type: "value",
799
+ value: children,
800
+ keyName,
801
+ keys
802
+ });
803
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
804
+ className: "w-rjv-value",
805
+ children: children == null ? void 0 : children.toString()
806
+ }))] });
807
+ };
808
+ TypeInt.displayName = "JVR.TypeInt";
809
+ var TypeBigint = (_ref8) => {
810
+ var { children, keyName, keys } = _ref8;
811
+ var { Bigint: CompBigint = {}, displayDataTypes } = useTypesStore();
812
+ var { as, render } = CompBigint, reset = (0, import_objectWithoutPropertiesLoose.default)(CompBigint, _excluded8);
813
+ var Comp = as || "span";
814
+ var style = (0, import_extends.default)({}, defalutStyle, CompBigint.style || {});
815
+ var isRender = render && typeof render === "function";
816
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
817
+ type: "type",
818
+ value: children,
819
+ keyName,
820
+ keys
821
+ });
822
+ var child = isRender && render((0, import_extends.default)({}, reset, {
823
+ children,
824
+ className: "w-rjv-value"
825
+ }), {
826
+ type: "value",
827
+ value: children,
828
+ keyName,
829
+ keys
830
+ });
831
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
832
+ className: "w-rjv-value",
833
+ children: bigIntToString(children == null ? void 0 : children.toString())
834
+ }))] });
835
+ };
836
+ TypeBigint.displayName = "JVR.TypeFloat";
837
+ var TypeUrl = (_ref9) => {
838
+ var { children, keyName, keys } = _ref9;
839
+ var { Url = {}, displayDataTypes } = useTypesStore();
840
+ var { as, render } = Url, reset = (0, import_objectWithoutPropertiesLoose.default)(Url, _excluded9);
841
+ var Comp = as || "span";
842
+ var style = (0, import_extends.default)({}, defalutStyle, Url.style);
843
+ var isRender = render && typeof render === "function";
844
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
845
+ type: "type",
846
+ value: children,
847
+ keyName,
848
+ keys
849
+ });
850
+ var child = isRender && render((0, import_extends.default)({}, reset, {
851
+ children: children == null ? void 0 : children.href,
852
+ className: "w-rjv-value"
853
+ }), {
854
+ type: "value",
855
+ value: children,
856
+ keyName,
857
+ keys
858
+ });
859
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", (0, import_extends.default)({
860
+ href: children == null ? void 0 : children.href,
861
+ target: "_blank"
862
+ }, reset, {
863
+ className: "w-rjv-value",
864
+ children: [
865
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ValueQuote$1, {}),
866
+ children == null ? void 0 : children.href,
867
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ValueQuote$1, {})
868
+ ]
869
+ }))] });
870
+ };
871
+ TypeUrl.displayName = "JVR.TypeUrl";
872
+ var TypeDate = (_ref0) => {
873
+ var { children, keyName, keys } = _ref0;
874
+ var { Date: CompData = {}, displayDataTypes } = useTypesStore();
875
+ var { as, render } = CompData, reset = (0, import_objectWithoutPropertiesLoose.default)(CompData, _excluded0);
876
+ var Comp = as || "span";
877
+ var style = (0, import_extends.default)({}, defalutStyle, CompData.style || {});
878
+ var isRender = render && typeof render === "function";
879
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
880
+ type: "type",
881
+ value: children,
882
+ keyName,
883
+ keys
884
+ });
885
+ var childStr = children instanceof Date ? children.toLocaleString() : children;
886
+ var child = isRender && render((0, import_extends.default)({}, reset, {
887
+ children: childStr,
888
+ className: "w-rjv-value"
889
+ }), {
890
+ type: "value",
891
+ value: children,
892
+ keyName,
893
+ keys
894
+ });
895
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, {
896
+ className: "w-rjv-value",
897
+ children: childStr
898
+ }))] });
899
+ };
900
+ TypeDate.displayName = "JVR.TypeDate";
901
+ var TypeUndefined = (_ref1) => {
902
+ var { children, keyName, keys } = _ref1;
903
+ var { Undefined = {}, displayDataTypes } = useTypesStore();
904
+ var { as, render } = Undefined, reset = (0, import_objectWithoutPropertiesLoose.default)(Undefined, _excluded1);
905
+ var Comp = as || "span";
906
+ var style = (0, import_extends.default)({}, defalutStyle, Undefined.style || {});
907
+ var isRender = render && typeof render === "function";
908
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
909
+ type: "type",
910
+ value: children,
911
+ keyName,
912
+ keys
913
+ });
914
+ var child = isRender && render((0, import_extends.default)({}, reset, {
915
+ children,
916
+ className: "w-rjv-value"
917
+ }), {
918
+ type: "value",
919
+ value: children,
920
+ keyName,
921
+ keys
922
+ });
923
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child] });
924
+ };
925
+ TypeUndefined.displayName = "JVR.TypeUndefined";
926
+ var TypeNull = (_ref10) => {
927
+ var { children, keyName, keys } = _ref10;
928
+ var { Null = {}, displayDataTypes } = useTypesStore();
929
+ var { as, render } = Null, reset = (0, import_objectWithoutPropertiesLoose.default)(Null, _excluded10);
930
+ var Comp = as || "span";
931
+ var style = (0, import_extends.default)({}, defalutStyle, Null.style || {});
932
+ var isRender = render && typeof render === "function";
933
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
934
+ type: "type",
935
+ value: children,
936
+ keyName,
937
+ keys
938
+ });
939
+ var child = isRender && render((0, import_extends.default)({}, reset, {
940
+ children,
941
+ className: "w-rjv-value"
942
+ }), {
943
+ type: "value",
944
+ value: children,
945
+ keyName,
946
+ keys
947
+ });
948
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child] });
949
+ };
950
+ TypeNull.displayName = "JVR.TypeNull";
951
+ var TypeNan = (_ref11) => {
952
+ var { children, keyName, keys } = _ref11;
953
+ var { Nan = {}, displayDataTypes } = useTypesStore();
954
+ var { as, render } = Nan, reset = (0, import_objectWithoutPropertiesLoose.default)(Nan, _excluded11);
955
+ var Comp = as || "span";
956
+ var style = (0, import_extends.default)({}, defalutStyle, Nan.style || {});
957
+ var isRender = render && typeof render === "function";
958
+ var type = isRender && render((0, import_extends.default)({}, reset, { style }), {
959
+ type: "type",
960
+ value: children,
961
+ keyName,
962
+ keys
963
+ });
964
+ var child = isRender && render((0, import_extends.default)({}, reset, {
965
+ children: children == null ? void 0 : children.toString(),
966
+ className: "w-rjv-value"
967
+ }), {
968
+ type: "value",
969
+ value: children,
970
+ keyName,
971
+ keys
972
+ });
973
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [displayDataTypes && (type || /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, (0, import_extends.default)({}, reset, { style }))), child] });
974
+ };
975
+ TypeNan.displayName = "JVR.TypeNan";
976
+ //#endregion
977
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/Value.js
978
+ var isFloat = (n) => Number(n) === n && n % 1 !== 0 || isNaN(n);
979
+ var Value = (props) => {
980
+ var { value, keyName, keys } = props;
981
+ var reset = {
982
+ keyName,
983
+ keys
984
+ };
985
+ if (value instanceof URL) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeUrl, (0, import_extends.default)({}, reset, { children: value }));
986
+ if (typeof value === "string") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeString, (0, import_extends.default)({}, reset, { children: value }));
987
+ if (value === true) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeTrue, (0, import_extends.default)({}, reset, { children: value }));
988
+ if (value === false) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeFalse, (0, import_extends.default)({}, reset, { children: value }));
989
+ if (value === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeNull, (0, import_extends.default)({}, reset, { children: value }));
990
+ if (value === void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeUndefined, (0, import_extends.default)({}, reset, { children: value }));
991
+ if (value instanceof Date) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeDate, (0, import_extends.default)({}, reset, { children: value }));
992
+ if (typeof value === "number" && isNaN(value)) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeNan, (0, import_extends.default)({}, reset, { children: value }));
993
+ else if (typeof value === "number" && isFloat(value)) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeFloat, (0, import_extends.default)({}, reset, { children: value }));
994
+ else if (typeof value === "bigint") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeBigint, (0, import_extends.default)({}, reset, { children: value }));
995
+ else if (typeof value === "number") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TypeInt, (0, import_extends.default)({}, reset, { children: value }));
996
+ return null;
997
+ };
998
+ Value.displayName = "JVR.Value";
999
+ //#endregion
1000
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/utils/useRender.js
1001
+ function useSymbolsRender(currentProps, props, key) {
1002
+ var dispatch = useSymbolsDispatch();
1003
+ var reset = (0, import_extends.default)({}, currentProps, props, {
1004
+ className: [currentProps.className, props.className].filter(Boolean).join(" "),
1005
+ style: (0, import_extends.default)({}, currentProps.style, props.style),
1006
+ children: props.children || currentProps.children
1007
+ });
1008
+ (0, import_react.useEffect)(() => dispatch({ [key]: reset }), [props]);
1009
+ }
1010
+ function useTypesRender(currentProps, props, key) {
1011
+ var dispatch = useTypesDispatch();
1012
+ var reset = (0, import_extends.default)({}, currentProps, props, {
1013
+ className: [currentProps.className, props.className].filter(Boolean).join(" "),
1014
+ style: (0, import_extends.default)({}, currentProps.style, props.style),
1015
+ children: props.children || currentProps.children
1016
+ });
1017
+ (0, import_react.useEffect)(() => dispatch({ [key]: reset }), [props]);
1018
+ }
1019
+ function useSectionRender(currentProps, props, key) {
1020
+ var dispatch = useSectionDispatch();
1021
+ var reset = (0, import_extends.default)({}, currentProps, props, {
1022
+ className: [currentProps.className, props.className].filter(Boolean).join(" "),
1023
+ style: (0, import_extends.default)({}, currentProps.style, props.style),
1024
+ children: props.children || currentProps.children
1025
+ });
1026
+ (0, import_react.useEffect)(() => dispatch({ [key]: reset }), [props]);
1027
+ }
1028
+ //#endregion
1029
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/KeyName.js
1030
+ var _excluded$7 = ["as", "render"];
1031
+ var KeyName = (props) => {
1032
+ var { KeyName: Comp = {} } = useSectionStore();
1033
+ useSectionRender(Comp, props, "KeyName");
1034
+ return null;
1035
+ };
1036
+ KeyName.displayName = "JVR.KeyName";
1037
+ var KeyNameComp = (props) => {
1038
+ var { children, value, parentValue, keyName, keys } = props;
1039
+ var style = { color: typeof children === "number" ? "var(--w-rjv-key-number, #268bd2)" : "var(--w-rjv-key-string, #002b36)" };
1040
+ var { KeyName: Comp = {} } = useSectionStore();
1041
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded$7);
1042
+ reset.style = (0, import_extends.default)({}, reset.style, style);
1043
+ var Elm = as || "span";
1044
+ var child = render && typeof render === "function" && render((0, import_extends.default)({}, reset, { children }), {
1045
+ value,
1046
+ parentValue,
1047
+ keyName,
1048
+ keys: keys || (keyName ? [keyName] : [])
1049
+ });
1050
+ if (child) return child;
1051
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, reset, { children }));
1052
+ };
1053
+ KeyNameComp.displayName = "JVR.KeyNameComp";
1054
+ //#endregion
1055
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Row.js
1056
+ var _excluded$6 = [
1057
+ "children",
1058
+ "value",
1059
+ "parentValue",
1060
+ "keyName",
1061
+ "keys"
1062
+ ], _excluded2$3 = [
1063
+ "as",
1064
+ "render",
1065
+ "children"
1066
+ ];
1067
+ var Row = (props) => {
1068
+ var { Row: Comp = {} } = useSectionStore();
1069
+ useSectionRender(Comp, props, "Row");
1070
+ return null;
1071
+ };
1072
+ Row.displayName = "JVR.Row";
1073
+ var RowComp = (props) => {
1074
+ var { children, value, parentValue, keyName, keys } = props, other = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$6);
1075
+ var { Row: Comp = {} } = useSectionStore();
1076
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2$3);
1077
+ var Elm = as || "div";
1078
+ var child = render && typeof render === "function" && render((0, import_extends.default)({}, other, reset, { children }), {
1079
+ value,
1080
+ keyName,
1081
+ parentValue,
1082
+ keys
1083
+ });
1084
+ if (child) return child;
1085
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, other, reset, { children }));
1086
+ };
1087
+ RowComp.displayName = "JVR.RowComp";
1088
+ //#endregion
1089
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/utils/useHighlight.js
1090
+ function usePrevious(value) {
1091
+ var ref = (0, import_react.useRef)();
1092
+ (0, import_react.useEffect)(() => {
1093
+ ref.current = value;
1094
+ });
1095
+ return ref.current;
1096
+ }
1097
+ function useHighlight(_ref) {
1098
+ var { value, highlightUpdates, highlightContainer } = _ref;
1099
+ var prevValue = usePrevious(value);
1100
+ var isHighlight = (0, import_react.useMemo)(() => {
1101
+ if (!highlightUpdates || prevValue === void 0) return false;
1102
+ if (typeof value !== typeof prevValue) return true;
1103
+ if (typeof value === "number") {
1104
+ if (isNaN(value) && isNaN(prevValue)) return false;
1105
+ return value !== prevValue;
1106
+ }
1107
+ if (Array.isArray(value) !== Array.isArray(prevValue)) return true;
1108
+ if (typeof value === "object" || typeof value === "function") return false;
1109
+ if (value !== prevValue) return true;
1110
+ }, [highlightUpdates, value]);
1111
+ (0, import_react.useEffect)(() => {
1112
+ if (highlightContainer && highlightContainer.current && isHighlight && "animate" in highlightContainer.current) highlightContainer.current.animate([{ backgroundColor: "var(--w-rjv-update-color, #ebcb8b)" }, { backgroundColor: "" }], {
1113
+ duration: 1e3,
1114
+ easing: "ease-in"
1115
+ });
1116
+ }, [
1117
+ isHighlight,
1118
+ value,
1119
+ highlightContainer
1120
+ ]);
1121
+ }
1122
+ //#endregion
1123
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/Copied.js
1124
+ var _excluded$5 = [
1125
+ "keyName",
1126
+ "value",
1127
+ "parentValue",
1128
+ "expandKey",
1129
+ "keys",
1130
+ "beforeCopy"
1131
+ ], _excluded2$2 = ["as", "render"];
1132
+ var Copied$1 = (props) => {
1133
+ var { keyName, value, parentValue, expandKey, keys, beforeCopy } = props, other = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$5);
1134
+ var { onCopied, enableClipboard, beforeCopy: globalBeforeCopy } = useStore();
1135
+ var isShowTools = useShowToolsStore()[expandKey];
1136
+ var [copied, setCopied] = (0, import_react.useState)(false);
1137
+ var { Copied: Comp = {} } = useSectionStore();
1138
+ var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;
1139
+ if (enableClipboard === false || !isShowTools) return null;
1140
+ var click = (event) => {
1141
+ event.stopPropagation();
1142
+ var copyText = "";
1143
+ if (typeof value === "number" && value === Infinity) copyText = "Infinity";
1144
+ else if (typeof value === "number" && isNaN(value)) copyText = "NaN";
1145
+ else if (typeof value === "bigint") copyText = bigIntToString(value);
1146
+ else if (value instanceof Date) copyText = value.toLocaleString();
1147
+ else copyText = JSON.stringify(value, (_, v) => typeof v === "bigint" ? bigIntToString(v) : v, 2);
1148
+ var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;
1149
+ if (finalBeforeCopy && typeof finalBeforeCopy === "function") copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);
1150
+ onCopied && onCopied(copyText, value);
1151
+ setCopied(true);
1152
+ (navigator.clipboard || { writeText(text) {
1153
+ return new Promise((reslove, reject) => {
1154
+ var textarea = document.createElement("textarea");
1155
+ textarea.style.position = "absolute";
1156
+ textarea.style.opacity = "0";
1157
+ textarea.style.left = "-99999999px";
1158
+ textarea.value = text;
1159
+ document.body.appendChild(textarea);
1160
+ textarea.select();
1161
+ if (!document.execCommand("copy")) reject();
1162
+ else reslove();
1163
+ textarea.remove();
1164
+ });
1165
+ } }).writeText(copyText).then(() => {
1166
+ var timer = setTimeout(() => {
1167
+ setCopied(false);
1168
+ clearTimeout(timer);
1169
+ }, 3e3);
1170
+ }).catch((error) => {});
1171
+ };
1172
+ var svgProps = {
1173
+ style: { display: "inline-flex" },
1174
+ fill: copied ? "var(--w-rjv-copied-success-color, #28a745)" : "var(--w-rjv-copied-color, currentColor)",
1175
+ onClick: click
1176
+ };
1177
+ var { render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2$2);
1178
+ var elmProps = (0, import_extends.default)({}, reset, other, svgProps, { style: (0, import_extends.default)({}, reset.style, other.style, svgProps.style) });
1179
+ var child = render && typeof render === "function" && render((0, import_extends.default)({}, elmProps, { "data-copied": copied }), {
1180
+ value,
1181
+ keyName,
1182
+ keys,
1183
+ parentValue
1184
+ });
1185
+ if (child) return child;
1186
+ if (copied) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", (0, import_extends.default)({ viewBox: "0 0 32 36" }, elmProps, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z" }) }));
1187
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", (0, import_extends.default)({ viewBox: "0 0 32 36" }, elmProps, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z" }) }));
1188
+ };
1189
+ Copied$1.displayName = "JVR.Copied";
1190
+ //#endregion
1191
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.js
1192
+ function useIdCompat() {
1193
+ var idRef = (0, import_react.useRef)(null);
1194
+ if (idRef.current === null) idRef.current = "custom-id-" + Math.random().toString(36).substr(2, 9);
1195
+ return idRef.current;
1196
+ }
1197
+ //#endregion
1198
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js
1199
+ var KeyValues = (props) => {
1200
+ var _expands$expandKey;
1201
+ var { keyName, value, expandKey = "", level, keys = [], parentValue } = props;
1202
+ var expands = useExpandsStore();
1203
+ var { objectSortKeys, indentWidth, collapsed, shouldExpandNodeInitially } = useStore();
1204
+ var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
1205
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
1206
+ var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
1207
+ value,
1208
+ keys,
1209
+ level,
1210
+ keyName,
1211
+ parentValue
1212
+ });
1213
+ if (shouldExpandNodeInitially && collapsed === false) {
1214
+ if (expands[expandKey] === void 0 && !shouldExpand) return null;
1215
+ } else if (expands[expandKey] === void 0 && shouldExpand) return null;
1216
+ if (isExpanded) return null;
1217
+ var entries = Array.isArray(value) ? Object.entries(value).map((m) => [Number(m[0]), m[1]]) : Object.entries(value);
1218
+ if (objectSortKeys) entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {
1219
+ var [a] = _ref;
1220
+ var [b] = _ref2;
1221
+ return typeof a === "string" && typeof b === "string" ? a.localeCompare(b) : 0;
1222
+ }) : entries.sort((_ref3, _ref4) => {
1223
+ var [a, valA] = _ref3;
1224
+ var [b, valB] = _ref4;
1225
+ return typeof a === "string" && typeof b === "string" ? objectSortKeys(a, b, valA, valB) : 0;
1226
+ });
1227
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
1228
+ className: "w-rjv-wrap",
1229
+ style: {
1230
+ borderLeft: "var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",
1231
+ paddingLeft: indentWidth,
1232
+ marginLeft: 6
1233
+ },
1234
+ children: entries.map((_ref5, idx) => {
1235
+ var [key, val] = _ref5;
1236
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KeyValuesItem, {
1237
+ parentValue: value,
1238
+ keyName: key,
1239
+ keys: [...keys, key],
1240
+ value: val,
1241
+ level
1242
+ }, idx);
1243
+ })
1244
+ });
1245
+ };
1246
+ KeyValues.displayName = "JVR.KeyValues";
1247
+ var KayName = (props) => {
1248
+ var { keyName, parentValue, keys, value } = props;
1249
+ var { highlightUpdates } = useStore();
1250
+ var isNumber = typeof keyName === "number";
1251
+ var highlightContainer = (0, import_react.useRef)(null);
1252
+ useHighlight({
1253
+ value,
1254
+ highlightUpdates,
1255
+ highlightContainer
1256
+ });
1257
+ var compProps = {
1258
+ keyName,
1259
+ value,
1260
+ keys,
1261
+ parentValue
1262
+ };
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
1264
+ ref: highlightContainer,
1265
+ children: [
1266
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Quote$1, (0, import_extends.default)({
1267
+ isNumber,
1268
+ "data-placement": "left"
1269
+ }, compProps)),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KeyNameComp, (0, import_extends.default)({}, compProps, { children: keyName })),
1271
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Quote$1, (0, import_extends.default)({
1272
+ isNumber,
1273
+ "data-placement": "right"
1274
+ }, compProps))
1275
+ ]
1276
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Colon$1, (0, import_extends.default)({}, compProps))] });
1277
+ };
1278
+ KayName.displayName = "JVR.KayName";
1279
+ var KeyValuesItem = (props) => {
1280
+ var { keyName, value, parentValue, level = 0, keys = [] } = props;
1281
+ var dispatch = useShowToolsDispatch();
1282
+ var subkeyid = useIdCompat();
1283
+ var isMyArray = Array.isArray(value);
1284
+ var isMySet = value instanceof Set;
1285
+ var isMyMap = value instanceof Map;
1286
+ var isDate = value instanceof Date;
1287
+ var isUrl = value instanceof URL;
1288
+ if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, {
1289
+ keyName,
1290
+ value: isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value,
1291
+ parentValue,
1292
+ initialValue: value,
1293
+ keys,
1294
+ level: level + 1
1295
+ });
1296
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(RowComp, (0, import_extends.default)({
1297
+ className: "w-rjv-line",
1298
+ value,
1299
+ keyName,
1300
+ keys,
1301
+ parentValue
1302
+ }, {
1303
+ onMouseEnter: () => dispatch({ [subkeyid]: true }),
1304
+ onMouseLeave: () => dispatch({ [subkeyid]: false })
1305
+ }, { children: [
1306
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KayName, {
1307
+ keyName,
1308
+ value,
1309
+ keys,
1310
+ parentValue
1311
+ }),
1312
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Value, {
1313
+ keyName,
1314
+ value,
1315
+ keys
1316
+ }),
1317
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Copied$1, {
1318
+ keyName,
1319
+ value,
1320
+ keys,
1321
+ parentValue,
1322
+ expandKey: subkeyid
1323
+ })
1324
+ ] }));
1325
+ };
1326
+ KeyValuesItem.displayName = "JVR.KeyValuesItem";
1327
+ //#endregion
1328
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.js
1329
+ var _excluded$4 = ["value", "keyName"], _excluded2$1 = ["as", "render"];
1330
+ var CountInfoExtra = (props) => {
1331
+ var { CountInfoExtra: Comp = {} } = useSectionStore();
1332
+ useSectionRender(Comp, props, "CountInfoExtra");
1333
+ return null;
1334
+ };
1335
+ CountInfoExtra.displayName = "JVR.CountInfoExtra";
1336
+ var CountInfoExtraComps = (props) => {
1337
+ var { value = {}, keyName } = props, other = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$4);
1338
+ var { CountInfoExtra: Comp = {} } = useSectionStore();
1339
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2$1);
1340
+ if (!render && !reset.children) return null;
1341
+ var Elm = as || "span";
1342
+ var isRender = render && typeof render === "function";
1343
+ var elmProps = (0, import_extends.default)({}, reset, other);
1344
+ var child = isRender && render(elmProps, {
1345
+ value,
1346
+ keyName
1347
+ });
1348
+ if (child) return child;
1349
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, elmProps));
1350
+ };
1351
+ CountInfoExtraComps.displayName = "JVR.CountInfoExtraComps";
1352
+ //#endregion
1353
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/CountInfo.js
1354
+ var _excluded$3 = ["value", "keyName"], _excluded2 = ["as", "render"];
1355
+ var CountInfo = (props) => {
1356
+ var { CountInfo: Comp = {} } = useSectionStore();
1357
+ useSectionRender(Comp, props, "CountInfo");
1358
+ return null;
1359
+ };
1360
+ CountInfo.displayName = "JVR.CountInfo";
1361
+ var CountInfoComp = (props) => {
1362
+ var { value = {}, keyName } = props, other = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$3);
1363
+ var { displayObjectSize } = useStore();
1364
+ var { CountInfo: Comp = {} } = useSectionStore();
1365
+ if (!displayObjectSize) return null;
1366
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded2);
1367
+ var Elm = as || "span";
1368
+ reset.style = (0, import_extends.default)({}, reset.style, props.style);
1369
+ var len = Object.keys(value).length;
1370
+ if (!reset.children) reset.children = len + " item" + (len === 1 ? "" : "s");
1371
+ var elmProps = (0, import_extends.default)({}, reset, other);
1372
+ var child = render && typeof render === "function" && render((0, import_extends.default)({}, elmProps, { "data-length": len }), {
1373
+ value,
1374
+ keyName
1375
+ });
1376
+ if (child) return child;
1377
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, elmProps));
1378
+ };
1379
+ CountInfoComp.displayName = "JVR.CountInfoComp";
1380
+ //#endregion
1381
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Ellipsis.js
1382
+ var _excluded$2 = ["as", "render"];
1383
+ var Ellipsis = (props) => {
1384
+ var { Ellipsis: Comp = {} } = useSectionStore();
1385
+ useSectionRender(Comp, props, "Ellipsis");
1386
+ return null;
1387
+ };
1388
+ Ellipsis.displayName = "JVR.Ellipsis";
1389
+ var EllipsisComp = (_ref) => {
1390
+ var { isExpanded, value, keyName } = _ref;
1391
+ var { Ellipsis: Comp = {} } = useSectionStore();
1392
+ var { as, render } = Comp, reset = (0, import_objectWithoutPropertiesLoose.default)(Comp, _excluded$2);
1393
+ var Elm = as || "span";
1394
+ var child = render && typeof render === "function" && render((0, import_extends.default)({}, reset, { "data-expanded": isExpanded }), {
1395
+ value,
1396
+ keyName
1397
+ });
1398
+ if (child) return child;
1399
+ if (!isExpanded || typeof value === "object" && Object.keys(value).length == 0) return null;
1400
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Elm, (0, import_extends.default)({}, reset));
1401
+ };
1402
+ EllipsisComp.displayName = "JVR.EllipsisComp";
1403
+ //#endregion
1404
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.js
1405
+ var NestedOpen = (props) => {
1406
+ var _expands$expandKey;
1407
+ var { keyName, expandKey, keys = [], initialValue, value, parentValue, level } = props;
1408
+ var expands = useExpandsStore();
1409
+ var dispatchExpands = useExpandsDispatch();
1410
+ var { onExpand, collapsed, shouldExpandNodeInitially } = useStore();
1411
+ var defaultExpanded = typeof collapsed === "boolean" ? collapsed : typeof collapsed === "number" ? level > collapsed : false;
1412
+ var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;
1413
+ var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {
1414
+ value,
1415
+ keys,
1416
+ level,
1417
+ keyName,
1418
+ parentValue
1419
+ });
1420
+ if (expands[expandKey] === void 0 && shouldExpandNodeInitially) isExpanded = !shouldExpand;
1421
+ var click = () => {
1422
+ var opt = {
1423
+ expand: !isExpanded,
1424
+ value,
1425
+ keyid: expandKey,
1426
+ keyName
1427
+ };
1428
+ onExpand && onExpand(opt);
1429
+ dispatchExpands({ [expandKey]: opt.expand });
1430
+ };
1431
+ var style = {
1432
+ display: "inline-flex",
1433
+ alignItems: "center"
1434
+ };
1435
+ var arrowStyle = {
1436
+ transform: "rotate(" + (!isExpanded ? "0" : "-90") + "deg)",
1437
+ transition: "all 0.3s"
1438
+ };
1439
+ var len = Object.keys(value).length;
1440
+ var isObject = typeof value === "object";
1441
+ var isArray = Array.isArray(value);
1442
+ var isMySet = value instanceof Set;
1443
+ var showArrow = len !== 0 && (isArray || isMySet || isObject);
1444
+ var reset = { style };
1445
+ if (showArrow) reset.onClick = click;
1446
+ var compProps = {
1447
+ keyName,
1448
+ value,
1449
+ keys,
1450
+ parentValue
1451
+ };
1452
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", (0, import_extends.default)({}, reset, { children: [
1453
+ showArrow && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow$1, (0, import_extends.default)({
1454
+ style: arrowStyle,
1455
+ expandKey
1456
+ }, compProps)),
1457
+ (keyName || typeof keyName === "number") && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KayName, (0, import_extends.default)({}, compProps)),
1458
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SetComp, {
1459
+ value: initialValue,
1460
+ keyName
1461
+ }),
1462
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MapComp, {
1463
+ value: initialValue,
1464
+ keyName
1465
+ }),
1466
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BracketsOpen, (0, import_extends.default)({ isBrackets: isArray || isMySet }, compProps)),
1467
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EllipsisComp, {
1468
+ keyName,
1469
+ value,
1470
+ isExpanded
1471
+ }),
1472
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BracketsClose, (0, import_extends.default)({
1473
+ isVisiable: isExpanded || !showArrow,
1474
+ isBrackets: isArray || isMySet
1475
+ }, compProps)),
1476
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CountInfoComp, {
1477
+ value,
1478
+ keyName
1479
+ }),
1480
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CountInfoExtraComps, {
1481
+ value,
1482
+ keyName
1483
+ }),
1484
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Copied$1, {
1485
+ keyName,
1486
+ value,
1487
+ expandKey,
1488
+ parentValue,
1489
+ keys
1490
+ })
1491
+ ] }));
1492
+ };
1493
+ NestedOpen.displayName = "JVR.NestedOpen";
1494
+ //#endregion
1495
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/Container.js
1496
+ var _excluded$1 = [
1497
+ "className",
1498
+ "children",
1499
+ "parentValue",
1500
+ "keyid",
1501
+ "level",
1502
+ "value",
1503
+ "initialValue",
1504
+ "keys",
1505
+ "keyName"
1506
+ ];
1507
+ var Container = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
1508
+ var { className = "", parentValue, level = 1, value, initialValue, keys, keyName } = props, elmProps = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded$1);
1509
+ var dispatch = useShowToolsDispatch();
1510
+ var subkeyid = useIdCompat();
1511
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", (0, import_extends.default)({
1512
+ className: [className, "w-rjv-inner"].filter(Boolean).join(" "),
1513
+ ref
1514
+ }, elmProps, {
1515
+ onMouseEnter: () => dispatch({ [subkeyid]: true }),
1516
+ onMouseLeave: () => dispatch({ [subkeyid]: false })
1517
+ }, { children: [
1518
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NestedOpen, {
1519
+ expandKey: subkeyid,
1520
+ value,
1521
+ level,
1522
+ keys,
1523
+ parentValue,
1524
+ keyName,
1525
+ initialValue
1526
+ }),
1527
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(KeyValues, {
1528
+ expandKey: subkeyid,
1529
+ value,
1530
+ level,
1531
+ keys,
1532
+ parentValue,
1533
+ keyName
1534
+ }),
1535
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NestedClose, {
1536
+ expandKey: subkeyid,
1537
+ value,
1538
+ level,
1539
+ keys,
1540
+ parentValue,
1541
+ keyName
1542
+ })
1543
+ ] }));
1544
+ });
1545
+ Container.displayName = "JVR.Container";
1546
+ //#endregion
1547
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.js
1548
+ var BraceLeft = (props) => {
1549
+ var { BraceLeft: Comp = {} } = useSymbolsStore();
1550
+ useSymbolsRender(Comp, props, "BraceLeft");
1551
+ return null;
1552
+ };
1553
+ BraceLeft.displayName = "JVR.BraceLeft";
1554
+ //#endregion
1555
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.js
1556
+ var BraceRight = (props) => {
1557
+ var { BraceRight: Comp = {} } = useSymbolsStore();
1558
+ useSymbolsRender(Comp, props, "BraceRight");
1559
+ return null;
1560
+ };
1561
+ BraceRight.displayName = "JVR.BraceRight";
1562
+ //#endregion
1563
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.js
1564
+ var BracketsLeft = (props) => {
1565
+ var { BracketsLeft: Comp = {} } = useSymbolsStore();
1566
+ useSymbolsRender(Comp, props, "BracketsLeft");
1567
+ return null;
1568
+ };
1569
+ BracketsLeft.displayName = "JVR.BracketsLeft";
1570
+ //#endregion
1571
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.js
1572
+ var BracketsRight = (props) => {
1573
+ var { BracketsRight: Comp = {} } = useSymbolsStore();
1574
+ useSymbolsRender(Comp, props, "BracketsRight");
1575
+ return null;
1576
+ };
1577
+ BracketsRight.displayName = "JVR.BracketsRight";
1578
+ //#endregion
1579
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Arrow.js
1580
+ var Arrow = (props) => {
1581
+ var { Arrow: Comp = {} } = useSymbolsStore();
1582
+ useSymbolsRender(Comp, props, "Arrow");
1583
+ return null;
1584
+ };
1585
+ Arrow.displayName = "JVR.Arrow";
1586
+ //#endregion
1587
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Colon.js
1588
+ var Colon = (props) => {
1589
+ var { Colon: Comp = {} } = useSymbolsStore();
1590
+ useSymbolsRender(Comp, props, "Colon");
1591
+ return null;
1592
+ };
1593
+ Colon.displayName = "JVR.Colon";
1594
+ //#endregion
1595
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/Quote.js
1596
+ var Quote = (props) => {
1597
+ var { Quote: Comp = {} } = useSymbolsStore();
1598
+ useSymbolsRender(Comp, props, "Quote");
1599
+ return null;
1600
+ };
1601
+ Quote.displayName = "JVR.Quote";
1602
+ //#endregion
1603
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.js
1604
+ var ValueQuote = (props) => {
1605
+ var { ValueQuote: Comp = {} } = useSymbolsStore();
1606
+ useSymbolsRender(Comp, props, "ValueQuote");
1607
+ return null;
1608
+ };
1609
+ ValueQuote.displayName = "JVR.ValueQuote";
1610
+ //#endregion
1611
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Bigint.js
1612
+ var Bigint = (props) => {
1613
+ var { Bigint: Comp = {} } = useTypesStore();
1614
+ useTypesRender(Comp, props, "Bigint");
1615
+ return null;
1616
+ };
1617
+ Bigint.displayName = "JVR.Bigint";
1618
+ //#endregion
1619
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Date.js
1620
+ var Date$1 = (props) => {
1621
+ var { Date: Comp = {} } = useTypesStore();
1622
+ useTypesRender(Comp, props, "Date");
1623
+ return null;
1624
+ };
1625
+ Date$1.displayName = "JVR.Date";
1626
+ //#endregion
1627
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/False.js
1628
+ var False = (props) => {
1629
+ var { False: Comp = {} } = useTypesStore();
1630
+ useTypesRender(Comp, props, "False");
1631
+ return null;
1632
+ };
1633
+ False.displayName = "JVR.False";
1634
+ //#endregion
1635
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Float.js
1636
+ var Float = (props) => {
1637
+ var { Float: Comp = {} } = useTypesStore();
1638
+ useTypesRender(Comp, props, "Float");
1639
+ return null;
1640
+ };
1641
+ Float.displayName = "JVR.Float";
1642
+ //#endregion
1643
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Int.js
1644
+ var Int = (props) => {
1645
+ var { Int: Comp = {} } = useTypesStore();
1646
+ useTypesRender(Comp, props, "Int");
1647
+ return null;
1648
+ };
1649
+ Int.displayName = "JVR.Int";
1650
+ //#endregion
1651
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Map.js
1652
+ var Map$1 = (props) => {
1653
+ var { Map: Comp = {} } = useTypesStore();
1654
+ useTypesRender(Comp, props, "Map");
1655
+ return null;
1656
+ };
1657
+ Map$1.displayName = "JVR.Map";
1658
+ //#endregion
1659
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Nan.js
1660
+ var Nan = (props) => {
1661
+ var { Nan: Comp = {} } = useTypesStore();
1662
+ useTypesRender(Comp, props, "Nan");
1663
+ return null;
1664
+ };
1665
+ Nan.displayName = "JVR.Nan";
1666
+ //#endregion
1667
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Null.js
1668
+ var Null = (props) => {
1669
+ var { Null: Comp = {} } = useTypesStore();
1670
+ useTypesRender(Comp, props, "Null");
1671
+ return null;
1672
+ };
1673
+ Null.displayName = "JVR.Null";
1674
+ //#endregion
1675
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Set.js
1676
+ var Set$1 = (props) => {
1677
+ var { Set: Comp = {} } = useTypesStore();
1678
+ useTypesRender(Comp, props, "Set");
1679
+ return null;
1680
+ };
1681
+ Set$1.displayName = "JVR.Set";
1682
+ //#endregion
1683
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/String.js
1684
+ var StringText = (props) => {
1685
+ var { Str: Comp = {} } = useTypesStore();
1686
+ useTypesRender(Comp, props, "Str");
1687
+ return null;
1688
+ };
1689
+ StringText.displayName = "JVR.StringText";
1690
+ //#endregion
1691
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/True.js
1692
+ var True = (props) => {
1693
+ var { True: Comp = {} } = useTypesStore();
1694
+ useTypesRender(Comp, props, "True");
1695
+ return null;
1696
+ };
1697
+ True.displayName = "JVR.True";
1698
+ //#endregion
1699
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Undefined.js
1700
+ var Undefined = (props) => {
1701
+ var { Undefined: Comp = {} } = useTypesStore();
1702
+ useTypesRender(Comp, props, "Undefined");
1703
+ return null;
1704
+ };
1705
+ Undefined.displayName = "JVR.Undefined";
1706
+ //#endregion
1707
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/types/Url.js
1708
+ var Url = (props) => {
1709
+ var { Url: Comp = {} } = useTypesStore();
1710
+ useTypesRender(Comp, props, "Url");
1711
+ return null;
1712
+ };
1713
+ Url.displayName = "JVR.Url";
1714
+ //#endregion
1715
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/section/Copied.js
1716
+ var Copied = (props) => {
1717
+ var { Copied: Comp = {} } = useSectionStore();
1718
+ useSectionRender(Comp, props, "Copied");
1719
+ return null;
1720
+ };
1721
+ Copied.displayName = "JVR.Copied";
1722
+ //#endregion
1723
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/index.js
1724
+ var _excluded = [
1725
+ "className",
1726
+ "style",
1727
+ "value",
1728
+ "children",
1729
+ "collapsed",
1730
+ "shouldExpandNodeInitially",
1731
+ "indentWidth",
1732
+ "displayObjectSize",
1733
+ "shortenTextAfterLength",
1734
+ "stringEllipsis",
1735
+ "highlightUpdates",
1736
+ "enableClipboard",
1737
+ "displayDataTypes",
1738
+ "objectSortKeys",
1739
+ "onExpand",
1740
+ "onCopied",
1741
+ "beforeCopy"
1742
+ ];
1743
+ var JsonView = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
1744
+ var { className = "", style, value, children, collapsed = false, shouldExpandNodeInitially, indentWidth = 15, displayObjectSize = true, shortenTextAfterLength = 30, stringEllipsis, highlightUpdates = true, enableClipboard = true, displayDataTypes = true, objectSortKeys = false, onExpand, onCopied, beforeCopy } = props, elmProps = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
1745
+ var defaultStyle = (0, import_extends.default)({
1746
+ lineHeight: 1.4,
1747
+ fontFamily: "var(--w-rjv-font-family, Menlo, monospace)",
1748
+ color: "var(--w-rjv-color, #002b36)",
1749
+ backgroundColor: "var(--w-rjv-background-color, #00000000)",
1750
+ fontSize: 13
1751
+ }, style);
1752
+ var cls = [
1753
+ "w-json-view-container",
1754
+ "w-rjv",
1755
+ className
1756
+ ].filter(Boolean).join(" ");
1757
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Provider, {
1758
+ initialState: {
1759
+ value,
1760
+ objectSortKeys,
1761
+ indentWidth,
1762
+ shouldExpandNodeInitially: collapsed === false ? shouldExpandNodeInitially : void 0,
1763
+ displayObjectSize,
1764
+ collapsed,
1765
+ enableClipboard,
1766
+ shortenTextAfterLength,
1767
+ stringEllipsis,
1768
+ highlightUpdates,
1769
+ onCopied,
1770
+ onExpand,
1771
+ beforeCopy
1772
+ },
1773
+ initialTypes: { displayDataTypes },
1774
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Container, (0, import_extends.default)({ value }, elmProps, {
1775
+ ref,
1776
+ className: cls,
1777
+ style: defaultStyle
1778
+ })), children]
1779
+ });
1780
+ });
1781
+ JsonView.Bigint = Bigint;
1782
+ JsonView.Date = Date$1;
1783
+ JsonView.False = False;
1784
+ JsonView.Float = Float;
1785
+ JsonView.Int = Int;
1786
+ JsonView.Map = Map$1;
1787
+ JsonView.Nan = Nan;
1788
+ JsonView.Null = Null;
1789
+ JsonView.Set = Set$1;
1790
+ JsonView.String = StringText;
1791
+ JsonView.True = True;
1792
+ JsonView.Undefined = Undefined;
1793
+ JsonView.Url = Url;
1794
+ JsonView.ValueQuote = ValueQuote;
1795
+ JsonView.Arrow = Arrow;
1796
+ JsonView.Colon = Colon;
1797
+ JsonView.Quote = Quote;
1798
+ JsonView.Ellipsis = Ellipsis;
1799
+ JsonView.BraceLeft = BraceLeft;
1800
+ JsonView.BraceRight = BraceRight;
1801
+ JsonView.BracketsLeft = BracketsLeft;
1802
+ JsonView.BracketsRight = BracketsRight;
1803
+ JsonView.Copied = Copied;
1804
+ JsonView.CountInfo = CountInfo;
1805
+ JsonView.CountInfoExtra = CountInfoExtra;
1806
+ JsonView.KeyName = KeyName;
1807
+ JsonView.Row = Row;
1808
+ JsonView.displayName = "JVR.JsonView";
1809
+ //#endregion
1810
+ //#region ../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.41_@babel+runtime@7.29.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@uiw/react-json-view/esm/theme/light.js
1811
+ var lightTheme = {
1812
+ "--w-rjv-font-family": "monospace",
1813
+ "--w-rjv-color": "#002b36",
1814
+ "--w-rjv-key-string": "#002b36",
1815
+ "--w-rjv-background-color": "#ffffff",
1816
+ "--w-rjv-line-color": "#ebebeb",
1817
+ "--w-rjv-arrow-color": "var(--w-rjv-color)",
1818
+ "--w-rjv-edit-color": "var(--w-rjv-color)",
1819
+ "--w-rjv-info-color": "#0000004d",
1820
+ "--w-rjv-update-color": "#ebcb8b",
1821
+ "--w-rjv-copied-color": "#002b36",
1822
+ "--w-rjv-copied-success-color": "#28a745",
1823
+ "--w-rjv-curlybraces-color": "#236a7c",
1824
+ "--w-rjv-colon-color": "#002b36",
1825
+ "--w-rjv-brackets-color": "#236a7c",
1826
+ "--w-rjv-quotes-color": "var(--w-rjv-key-string)",
1827
+ "--w-rjv-quotes-string-color": "var(--w-rjv-type-string-color)",
1828
+ "--w-rjv-type-string-color": "#cb4b16",
1829
+ "--w-rjv-type-int-color": "#268bd2",
1830
+ "--w-rjv-type-float-color": "#859900",
1831
+ "--w-rjv-type-bigint-color": "#268bd2",
1832
+ "--w-rjv-type-boolean-color": "#2aa198",
1833
+ "--w-rjv-type-date-color": "#586e75",
1834
+ "--w-rjv-type-url-color": "#0969da",
1835
+ "--w-rjv-type-null-color": "#d33682",
1836
+ "--w-rjv-type-nan-color": "#859900",
1837
+ "--w-rjv-type-undefined-color": "#586e75"
1838
+ };
9
1839
  //#endregion
10
1840
  //#region ../../node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
11
1841
  /**
@@ -5534,7 +7364,7 @@ function initializeContent(effects) {
5534
7364
  * Construct and its state.
5535
7365
  */
5536
7366
  /** @type {InitialConstruct} */
5537
- var document$1 = { tokenize: initializeDocument };
7367
+ var document$2 = { tokenize: initializeDocument };
5538
7368
  /** @type {Construct} */
5539
7369
  var containerConstruct = { tokenize: tokenizeContainer };
5540
7370
  /**
@@ -11595,7 +13425,7 @@ var constructs_exports = /* @__PURE__ */ __exportAll({
11595
13425
  attentionMarkers: () => attentionMarkers,
11596
13426
  contentInitial: () => contentInitial,
11597
13427
  disable: () => disable,
11598
- document: () => document,
13428
+ document: () => document$1,
11599
13429
  flow: () => flow,
11600
13430
  flowInitial: () => flowInitial,
11601
13431
  insideSpan: () => insideSpan,
@@ -11603,7 +13433,7 @@ var constructs_exports = /* @__PURE__ */ __exportAll({
11603
13433
  text: () => text$3
11604
13434
  });
11605
13435
  /** @satisfies {Extension['document']} */
11606
- var document = {
13436
+ var document$1 = {
11607
13437
  [42]: list$2,
11608
13438
  [43]: list$2,
11609
13439
  [45]: list$2,
@@ -12156,7 +13986,7 @@ function parse(options) {
12156
13986
  constructs: combineExtensions([constructs_exports, ...(options || {}).extensions || []]),
12157
13987
  content: create(content$1),
12158
13988
  defined: [],
12159
- document: create(document$1),
13989
+ document: create(document$2),
12160
13990
  flow: create(flow$1),
12161
13991
  lazy: {},
12162
13992
  string: create(string$1),
@@ -18109,8 +19939,6 @@ function isUint8Array(value) {
18109
19939
  * @returns {string | null | undefined}
18110
19940
  * Transformed URL (optional).
18111
19941
  */
18112
- var import_jsx_runtime = require_jsx_runtime();
18113
- var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
18114
19942
  /** @type {PluggableList} */
18115
19943
  var emptyPlugins = [];
18116
19944
  /** @type {Readonly<RemarkRehypeOptions>} */
@@ -23237,119 +25065,6 @@ function tryParseJson(text) {
23237
25065
  return null;
23238
25066
  }
23239
25067
  }
23240
- function JsonValue({ value, defaultOpen = true }) {
23241
- if (value === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23242
- className: "text-sand-400",
23243
- children: "null"
23244
- });
23245
- if (value === void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23246
- className: "text-sand-400",
23247
- children: "undefined"
23248
- });
23249
- if (typeof value === "boolean") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23250
- className: "text-amber-600",
23251
- children: String(value)
23252
- });
23253
- if (typeof value === "number") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23254
- className: "text-blue-600",
23255
- children: String(value)
23256
- });
23257
- if (typeof value === "string") {
23258
- if (value.length > 200) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("details", {
23259
- className: "inline",
23260
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("summary", {
23261
- className: "cursor-pointer text-sage-700",
23262
- children: [
23263
- "\"",
23264
- value.slice(0, 80),
23265
- "...\"",
23266
- " ",
23267
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
23268
- className: "text-sand-400 text-[10px]",
23269
- children: [
23270
- "(",
23271
- value.length,
23272
- " chars)"
23273
- ]
23274
- })
23275
- ]
23276
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("pre", {
23277
- className: "mt-1 ml-2 text-sage-700 whitespace-pre-wrap wrap-break-word",
23278
- children: [
23279
- "\"",
23280
- value,
23281
- "\""
23282
- ]
23283
- })]
23284
- });
23285
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
23286
- className: "text-sage-700",
23287
- children: [
23288
- "\"",
23289
- value,
23290
- "\""
23291
- ]
23292
- });
23293
- }
23294
- if (Array.isArray(value)) {
23295
- if (value.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23296
- className: "text-sand-500",
23297
- children: "[]"
23298
- });
23299
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("details", {
23300
- open: defaultOpen,
23301
- className: "inline-block w-full",
23302
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("summary", {
23303
- className: "cursor-pointer text-sand-500",
23304
- children: "[]"
23305
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23306
- className: "ml-4 border-l border-sand-200 pl-3",
23307
- children: value.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23308
- className: "py-0.5",
23309
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(JsonValue, {
23310
- value: item,
23311
- defaultOpen: true
23312
- })
23313
- }, i))
23314
- })]
23315
- });
23316
- }
23317
- if (typeof value === "object") {
23318
- const entries = Object.entries(value);
23319
- if (entries.length === 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23320
- className: "text-sand-500",
23321
- children: "{}"
23322
- });
23323
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("details", {
23324
- open: defaultOpen,
23325
- className: "inline-block w-full",
23326
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("summary", {
23327
- className: "cursor-pointer text-sand-500",
23328
- children: "{}"
23329
- }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23330
- className: "ml-4 border-l border-sand-200 pl-3",
23331
- children: entries.map(([key, val]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
23332
- className: "py-0.5",
23333
- children: [
23334
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23335
- className: "text-sienna-500 font-medium",
23336
- children: key
23337
- }),
23338
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
23339
- className: "text-sand-400",
23340
- children: ": "
23341
- }),
23342
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(JsonValue, {
23343
- value: val,
23344
- defaultOpen: true
23345
- })
23346
- ]
23347
- }, key))
23348
- })]
23349
- });
23350
- }
23351
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: String(value) });
23352
- }
23353
25068
  function CopyButton({ text }) {
23354
25069
  const [copied, setCopied] = (0, import_react.useState)(false);
23355
25070
  (0, import_react.useEffect)(() => {
@@ -23397,9 +25112,12 @@ function FormattedContent({ text, markdown }) {
23397
25112
  onClick: () => setMode("pretty"),
23398
25113
  children: "Pretty"
23399
25114
  })]
23400
- }), mode === "pretty" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
23401
- className: "text-sm font-mono leading-relaxed",
23402
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(JsonValue, { value: parsed })
25115
+ }), mode === "pretty" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(JsonView, {
25116
+ value: parsed,
25117
+ style: lightTheme,
25118
+ displayDataTypes: false,
25119
+ enableClipboard: true,
25120
+ collapsed: false
23403
25121
  }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
23404
25122
  className: "text-sm text-sand-800 whitespace-pre-wrap wrap-break-word font-mono leading-relaxed",
23405
25123
  children: JSON.stringify(parsed, null, 2)