@mongoosejs/studio 0.0.29 → 0.0.30

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 (30) hide show
  1. package/backend/actions/Dashboard/createDashboard.js +22 -0
  2. package/backend/actions/Dashboard/getDashboard.js +41 -8
  3. package/backend/actions/Dashboard/index.js +1 -0
  4. package/backend/db/dashboardSchema.js +4 -1
  5. package/frontend/public/app.js +381 -46
  6. package/frontend/public/index.html +1 -0
  7. package/frontend/public/tw.css +323 -0
  8. package/frontend/src/api.js +6 -0
  9. package/frontend/src/create-dashboard/create-dashboard.html +43 -0
  10. package/frontend/src/create-dashboard/create-dashboard.js +40 -0
  11. package/frontend/src/dashboard/dashboard.html +16 -7
  12. package/frontend/src/dashboard/dashboard.js +4 -4
  13. package/frontend/src/dashboard-result/dashboard-chart/dashboard-chart.html +8 -0
  14. package/frontend/src/dashboard-result/dashboard-chart/dashboard-chart.js +20 -0
  15. package/frontend/src/dashboard-result/dashboard-document/dashboard-document.html +8 -0
  16. package/frontend/src/dashboard-result/dashboard-document/dashboard-document.js +29 -0
  17. package/frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html +8 -0
  18. package/frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js +24 -0
  19. package/frontend/src/dashboard-result/dashboard-result.html +18 -0
  20. package/frontend/src/dashboard-result/dashboard-result.js +30 -0
  21. package/frontend/src/dashboards/dashboards.html +77 -3
  22. package/frontend/src/dashboards/dashboards.js +2 -3
  23. package/frontend/src/document/document.css +0 -16
  24. package/frontend/src/document/document.html +5 -34
  25. package/frontend/src/document/document.js +0 -34
  26. package/frontend/src/document-details/document-details.css +18 -0
  27. package/frontend/src/document-details/document-details.html +36 -0
  28. package/frontend/src/document-details/document-details.js +59 -0
  29. package/frontend/src/index.js +6 -0
  30. package/package.json +1 -1
@@ -30,6 +30,9 @@ if (typeof config__setAuthorizationHeaderFrom === 'string' && config__setAuthori
30
30
 
31
31
  if (false) {} else {
32
32
  exports.Dashboard = {
33
+ createDashboard: function createDashboard(params) {
34
+ return client.post('/Dashboard/createDashboard', params).then(res => res.data);
35
+ },
33
36
  getDashboard: function getDashboard(params) {
34
37
  return client.get('/Dashboard/getDashboard', params).then(res => res.data);
35
38
  },
@@ -178,6 +181,56 @@ module.exports = app => app.component('charts', {
178
181
 
179
182
  /***/ }),
180
183
 
184
+ /***/ "./frontend/src/create-dashboard/create-dashboard.js":
185
+ /*!***********************************************************!*\
186
+ !*** ./frontend/src/create-dashboard/create-dashboard.js ***!
187
+ \***********************************************************/
188
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
189
+
190
+ "use strict";
191
+
192
+
193
+ const api = __webpack_require__(/*! ../api */ "./frontend/src/api.js");
194
+
195
+ const template = __webpack_require__(/*! ./create-dashboard.html */ "./frontend/src/create-dashboard/create-dashboard.html")
196
+
197
+ module.exports = app => app.component('create-dashboard', {
198
+ template,
199
+ data: function() {
200
+ return {
201
+ title: '',
202
+ code: '',
203
+ errors: []
204
+ }
205
+ },
206
+ methods: {
207
+ async createDashboard() {
208
+ this.code = this._editor.getValue();
209
+ const { dashboard } = await api.Dashboard.createDashboard({ code: this.code, title: this.title }).catch(err => {
210
+ if (err.response?.data?.message) {
211
+ console.log(err.response.data);
212
+ const message = err.response.data.message.split(": ").slice(1).join(": ");
213
+ this.errors = message.split(',').map(error => {
214
+ return error.split(': ').slice(1).join(': ').trim();
215
+ })
216
+ throw new Error(err.response?.data?.message);
217
+ }
218
+ throw err;
219
+ });
220
+ this.errors.length = 0;
221
+ this.$emit('close', dashboard);
222
+ },
223
+ },
224
+ mounted: function() {
225
+ this._editor = CodeMirror.fromTextArea(this.$refs.codeEditor, {
226
+ mode: 'javascript',
227
+ lineNumbers: true
228
+ });
229
+ },
230
+ })
231
+
232
+ /***/ }),
233
+
181
234
  /***/ "./frontend/src/create-document/create-document.js":
182
235
  /*!*********************************************************!*\
183
236
  !*** ./frontend/src/create-document/create-document.js ***!
@@ -247,6 +300,153 @@ module.exports = app => app.component('create-document', {
247
300
  },
248
301
  })
249
302
 
303
+ /***/ }),
304
+
305
+ /***/ "./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.js":
306
+ /*!**************************************************************************!*\
307
+ !*** ./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.js ***!
308
+ \**************************************************************************/
309
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
310
+
311
+ "use strict";
312
+
313
+
314
+ const template = __webpack_require__(/*! ./dashboard-chart.html */ "./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.html");
315
+
316
+ module.exports = app => app.component('dashboard-chart', {
317
+ template: template,
318
+ props: ['value'],
319
+ mounted() {
320
+ const ctx = this.$refs.chart.getContext('2d');
321
+ const chart = new Chart(ctx, this.value.$chart);
322
+ },
323
+ computed: {
324
+ header() {
325
+ if (this.value != null && this.value.$chart.header) {
326
+ return this.value.$chart.header;
327
+ }
328
+ return null;
329
+ }
330
+ }
331
+ });
332
+
333
+
334
+ /***/ }),
335
+
336
+ /***/ "./frontend/src/dashboard-result/dashboard-document/dashboard-document.js":
337
+ /*!********************************************************************************!*\
338
+ !*** ./frontend/src/dashboard-result/dashboard-document/dashboard-document.js ***!
339
+ \********************************************************************************/
340
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
341
+
342
+ "use strict";
343
+
344
+
345
+
346
+
347
+ const template = __webpack_require__(/*! ./dashboard-document.html */ "./frontend/src/dashboard-result/dashboard-document/dashboard-document.html");
348
+
349
+ module.exports = app => app.component('dashboard-document', {
350
+ template: template,
351
+ props: ['value'],
352
+ computed: {
353
+ header() {
354
+ if (this.value != null && this.value.$document.header) {
355
+ return this.value.$document.header;
356
+ }
357
+ return null;
358
+ },
359
+ schemaPaths() {
360
+ return Object.keys(this.value.$document.schemaPaths).sort((k1, k2) => {
361
+ if (k1 === '_id' && k2 !== '_id') {
362
+ return -1;
363
+ }
364
+ if (k1 !== '_id' && k2 === '_id') {
365
+ return 1;
366
+ }
367
+ return 0;
368
+ }).map(key => this.value.$document.schemaPaths[key]);
369
+ }
370
+ }
371
+ });
372
+
373
+
374
+ /***/ }),
375
+
376
+ /***/ "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js":
377
+ /*!**********************************************************************************!*\
378
+ !*** ./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js ***!
379
+ \**********************************************************************************/
380
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
381
+
382
+ "use strict";
383
+
384
+
385
+
386
+
387
+ const template = __webpack_require__(/*! ./dashboard-primitive.html */ "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html");
388
+
389
+ module.exports = app => app.component('dashboard-primitive', {
390
+ template: template,
391
+ props: ['value'],
392
+ computed: {
393
+ header() {
394
+ if (this.value != null && this.value.$primitive.header) {
395
+ return this.value.$primitive.header;
396
+ }
397
+ return null;
398
+ },
399
+ displayValue() {
400
+ if (this.value != null && this.value.$primitive) {
401
+ return this.value.$primitive.value;
402
+ }
403
+ return this.value;
404
+ }
405
+ }
406
+ });
407
+
408
+
409
+ /***/ }),
410
+
411
+ /***/ "./frontend/src/dashboard-result/dashboard-result.js":
412
+ /*!***********************************************************!*\
413
+ !*** ./frontend/src/dashboard-result/dashboard-result.js ***!
414
+ \***********************************************************/
415
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
416
+
417
+ "use strict";
418
+
419
+
420
+
421
+
422
+ const api = __webpack_require__(/*! ../api */ "./frontend/src/api.js");
423
+ const template = __webpack_require__(/*! ./dashboard-result.html */ "./frontend/src/dashboard-result/dashboard-result.html");
424
+
425
+ module.exports = app => app.component('dashboard-result', {
426
+ template: template,
427
+ props: ['result'],
428
+ mounted: async function() {
429
+ },
430
+ methods: {
431
+ getComponentForValue(value) {
432
+ console.log('X', value);
433
+ if (typeof value !== 'object' || value == null) {
434
+ return 'dashboard-primitive';
435
+ }
436
+ if (value.$primitive) {
437
+ return 'dashboard-primitive';
438
+ }
439
+ if (value.$chart) {
440
+ return 'dashboard-chart';
441
+ }
442
+ if (value.$document) {
443
+ return 'dashboard-document';
444
+ }
445
+ }
446
+ }
447
+ });
448
+
449
+
250
450
  /***/ }),
251
451
 
252
452
  /***/ "./frontend/src/dashboard/dashboard.js":
@@ -267,9 +467,9 @@ module.exports = app => app.component('dashboard', {
267
467
  return {
268
468
  status: 'loading',
269
469
  code: '',
270
- name: '',
271
470
  showEditor: false,
272
- dashboard: null
471
+ dashboard: null,
472
+ result: null
273
473
  }
274
474
  },
275
475
  methods: {
@@ -282,13 +482,13 @@ module.exports = app => app.component('dashboard', {
282
482
  },
283
483
  mounted: async function() {
284
484
  const dashboardId = this.$route.query.dashboardId;
285
- const { dashboard } = await api.Dashboard.getDashboard({ params: { dashboardId: dashboardId } });
485
+ const { dashboard, result } = await api.Dashboard.getDashboard({ params: { dashboardId: dashboardId, evaluate: true } });
286
486
  if (!dashboard) {
287
487
  return;
288
488
  }
289
489
  this.dashboard = dashboard;
290
- this.name = this.dashboard.name;
291
490
  this.code = this.dashboard.code;
491
+ this.result = result;
292
492
  this.status = 'loaded';
293
493
  }
294
494
  });
@@ -371,14 +571,13 @@ const template = __webpack_require__(/*! ./dashboards.html */ "./frontend/src/da
371
571
  module.exports = app => app.component('dashboards', {
372
572
  template: template,
373
573
  data: () => ({
574
+ status: 'loading',
374
575
  dashboards: [],
576
+ showCreateDashboardModal: false
375
577
  }),
376
578
  async mounted() {
377
579
  const { dashboards } = await api.Dashboard.getDashboards();
378
580
  this.dashboards = dashboards;
379
- if (!this.$route.query.dashboardId) {
380
- return;
381
- }
382
581
  this.status = 'loaded';
383
582
  },
384
583
  });
@@ -396,13 +595,17 @@ module.exports = app => app.component('dashboards', {
396
595
 
397
596
 
398
597
  const template = __webpack_require__(/*! ./detail-array.html */ "./frontend/src/detail-array/detail-array.html");
598
+ const { inspect } = __webpack_require__(/*! node-inspect-extracted */ "./node_modules/node-inspect-extracted/dist/inspect.js");
399
599
 
400
600
  module.exports = app => app.component('detail-array', {
401
601
  template: template,
402
602
  props: ['value'],
403
603
  computed: {
404
604
  displayValue() {
405
- return JSON.stringify(this.value, null, ' ').trim();
605
+ if (this.value == null) {
606
+ return this.value;
607
+ }
608
+ return inspect(this.value, { maxArrayLength: 50 });
406
609
  }
407
610
  },
408
611
  mounted() {
@@ -441,6 +644,75 @@ module.exports = app => app.component('detail-default', {
441
644
 
442
645
  /***/ }),
443
646
 
647
+ /***/ "./frontend/src/document-details/document-details.js":
648
+ /*!***********************************************************!*\
649
+ !*** ./frontend/src/document-details/document-details.js ***!
650
+ \***********************************************************/
651
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
652
+
653
+ "use strict";
654
+
655
+
656
+ const mpath = __webpack_require__(/*! mpath */ "./node_modules/mpath/index.js");
657
+ const template = __webpack_require__(/*! ./document-details.html */ "./frontend/src/document-details/document-details.html")
658
+
659
+ const appendCSS = __webpack_require__(/*! ../appendCSS */ "./frontend/src/appendCSS.js");
660
+
661
+ appendCSS(__webpack_require__(/*! ./document-details.css */ "./frontend/src/document-details/document-details.css"));
662
+
663
+ module.exports = app => app.component('document-details', {
664
+ template,
665
+ props: ['document', 'schemaPaths', 'editting', 'changes'],
666
+ methods: {
667
+ getComponentForPath(schemaPath) {
668
+ if (schemaPath.instance === 'Array') {
669
+ return 'detail-array';
670
+ }
671
+ return 'detail-default';
672
+ },
673
+ getEditComponentForPath(path) {
674
+ if (path.instance == 'Date') {
675
+ return 'edit-date';
676
+ }
677
+ if (path.instance == 'Number') {
678
+ return 'edit-number';
679
+ }
680
+ if (path.instance === 'Array') {
681
+ return 'edit-array';
682
+ }
683
+ return 'edit-default';
684
+ },
685
+ getValueForPath(path) {
686
+ return mpath.get(path, this.document);
687
+ },
688
+ getEditValueForPath({ path }) {
689
+ if (!this.changes) {
690
+ return;
691
+ }
692
+ return path in this.changes ? this.changes[path] : mpath.get(path, this.document);
693
+ }
694
+ },
695
+ computed: {
696
+ virtuals() {
697
+ if (this.schemaPaths == null) {
698
+ return [];
699
+ }
700
+ const exists = this.schemaPaths.map(x => x.path);
701
+ const docKeys = Object.keys(this.document);
702
+ const result = [];
703
+ for (let i = 0; i < docKeys.length; i++) {
704
+ if (!exists.includes(docKeys[i])) {
705
+ result.push({ name: docKeys[i], value: this.document[docKeys[i]] });
706
+ }
707
+ }
708
+
709
+ return result;
710
+ }
711
+ }
712
+ })
713
+
714
+ /***/ }),
715
+
444
716
  /***/ "./frontend/src/document/confirm-changes/confirm-changes.js":
445
717
  /*!******************************************************************!*\
446
718
  !*** ./frontend/src/document/confirm-changes/confirm-changes.js ***!
@@ -520,43 +792,9 @@ module.exports = app => app.component('document', {
520
792
  }
521
793
  return 0;
522
794
  }).map(key => schemaPaths[key]);
523
- this.getVirtuals();
524
795
  this.status = 'loaded';
525
796
  },
526
797
  methods: {
527
- getComponentForPath(schemaPath) {
528
- if (schemaPath.instance === 'Array') {
529
- return 'detail-array';
530
- }
531
- return 'detail-default';
532
- },
533
- getEditComponentForPath(path) {
534
- if (path.instance == 'Date') {
535
- return 'edit-date';
536
- }
537
- if (path.instance == 'Number') {
538
- return 'edit-number';
539
- }
540
- if (path.instance === 'Array') {
541
- return 'edit-array';
542
- }
543
- return 'edit-default';
544
- },
545
- getValueForPath(path) {
546
- return mpath.get(path, this.document);
547
- },
548
- getEditValueForPath({ path }) {
549
- return path in this.changes ? this.changes[path] : mpath.get(path, this.document);
550
- },
551
- getVirtuals() {
552
- const exists = this.schemaPaths.map(x => x.path);
553
- const docKeys = Object.keys(this.document);
554
- for (let i = 0; i < docKeys.length; i++) {
555
- if (!exists.includes(docKeys[i])) {
556
- this.virtuals.push({ name: docKeys[i], value: this.document[docKeys[i]] });
557
- }
558
- }
559
- },
560
798
  cancelEdit() {
561
799
  this.changes = {};
562
800
  this.editting = false;
@@ -1880,6 +2118,16 @@ module.exports = function stringToParts(str) {
1880
2118
 
1881
2119
  /***/ }),
1882
2120
 
2121
+ /***/ "./node_modules/node-inspect-extracted/dist/inspect.js":
2122
+ /*!*************************************************************!*\
2123
+ !*** ./node_modules/node-inspect-extracted/dist/inspect.js ***!
2124
+ \*************************************************************/
2125
+ /***/ (function(module) {
2126
+
2127
+ !function(t,e){ true?module.exports=e():0}(this,(()=>(()=>{"use strict";var t={765:(t,e)=>{function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,o(n.key),n)}}function o(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==r(e)?e:e+""}var i=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},e=[{key:"hexSlice",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return Array.prototype.map.call(this.slice(t,e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")}}],e&&n(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();e.h=i},339:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){var o;return o=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e),(e="symbol"==n(o)?o:o+"")in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u,p,f=r(951),y=f.internalBinding,s=f.Array,g=f.ArrayIsArray,d=f.ArrayPrototypeFilter,b=f.ArrayPrototypeForEach,h=f.ArrayPrototypeIncludes,v=f.ArrayPrototypeIndexOf,m=f.ArrayPrototypeJoin,S=f.ArrayPrototypeMap,P=f.ArrayPrototypePop,x=f.ArrayPrototypePush,O=f.ArrayPrototypePushApply,w=f.ArrayPrototypeSlice,A=f.ArrayPrototypeSort,j=f.ArrayPrototypeSplice,E=f.ArrayPrototypeUnshift,_=f.BigIntPrototypeValueOf,F=f.BooleanPrototypeValueOf,L=f.DatePrototypeGetTime,R=f.DatePrototypeToISOString,k=f.DatePrototypeToString,T=f.ErrorPrototypeToString,I=f.FunctionPrototypeBind,z=f.FunctionPrototypeCall,M=f.FunctionPrototypeToString,B=f.JSONStringify,N=f.MapPrototypeEntries,D=f.MapPrototypeGetSize,C=f.MathFloor,H=f.MathMax,G=f.MathMin,W=f.MathRound,V=f.MathSqrt,U=f.MathTrunc,$=f.Number,Z=f.NumberIsFinite,q=f.NumberIsNaN,K=f.NumberParseFloat,Y=f.NumberParseInt,J=f.NumberPrototypeToString,Q=f.NumberPrototypeValueOf,X=f.Object,tt=f.ObjectAssign,et=f.ObjectDefineProperty,rt=f.ObjectGetOwnPropertyDescriptor,nt=f.ObjectGetOwnPropertyNames,ot=f.ObjectGetOwnPropertySymbols,it=f.ObjectGetPrototypeOf,at=f.ObjectIs,ct=f.ObjectKeys,lt=f.ObjectPrototypeHasOwnProperty,ut=f.ObjectPrototypePropertyIsEnumerable,pt=f.ObjectSeal,ft=f.ObjectSetPrototypeOf,yt=f.ReflectApply,st=f.ReflectOwnKeys,gt=f.RegExp,dt=f.RegExpPrototypeExec,bt=f.RegExpPrototypeSymbolReplace,ht=f.RegExpPrototypeSymbolSplit,vt=f.RegExpPrototypeToString,mt=f.SafeMap,St=f.SafeSet,Pt=f.SafeStringIterator,xt=f.SetPrototypeGetSize,Ot=f.SetPrototypeValues,wt=f.String,At=f.StringPrototypeCharCodeAt,jt=f.StringPrototypeCodePointAt,Et=f.StringPrototypeEndsWith,_t=f.StringPrototypeIncludes,Ft=f.StringPrototypeIndexOf,Lt=f.StringPrototypeLastIndexOf,Rt=f.StringPrototypeNormalize,kt=f.StringPrototypePadEnd,Tt=f.StringPrototypePadStart,It=f.StringPrototypeRepeat,zt=f.StringPrototypeReplaceAll,Mt=f.StringPrototypeSlice,Bt=f.StringPrototypeSplit,Nt=f.StringPrototypeStartsWith,Dt=f.StringPrototypeToLowerCase,Ct=f.StringPrototypeTrim,Ht=f.StringPrototypeValueOf,Gt=f.SymbolPrototypeToString,Wt=f.SymbolPrototypeValueOf,Vt=f.SymbolIterator,Ut=f.SymbolToStringTag,$t=f.TypedArrayPrototypeGetLength,Zt=f.TypedArrayPrototypeGetSymbolToStringTag,qt=f.Uint8Array,Kt=f.globalThis,Yt=f.uncurryThis,Jt=r(763),Qt=Jt.constants,Xt=Qt.ALL_PROPERTIES,te=Qt.ONLY_ENUMERABLE,ee=Qt.kPending,re=Qt.kRejected,ne=Jt.getOwnNonIndexProperties,oe=Jt.getPromiseDetails,ie=Jt.getProxyDetails,ae=Jt.previewEntries,ce=Jt.getConstructorName,le=Jt.getExternalValue,ue=Jt.Proxy,pe=r(641),fe=pe.customInspectSymbol,ye=pe.isError,se=pe.join,ge=pe.removeColors,de=r(638).isStackOverflowError,be=r(567),he=be.isAsyncFunction,ve=be.isGeneratorFunction,me=be.isAnyArrayBuffer,Se=be.isArrayBuffer,Pe=be.isArgumentsObject,xe=be.isBoxedPrimitive,Oe=be.isDataView,we=be.isExternal,Ae=be.isMap,je=be.isMapIterator,Ee=be.isModuleNamespaceObject,_e=be.isNativeError,Fe=be.isPromise,Le=be.isSet,Re=be.isSetIterator,ke=be.isWeakMap,Te=be.isWeakSet,Ie=be.isRegExp,ze=be.isDate,Me=be.isTypedArray,Be=be.isStringObject,Ne=be.isNumberObject,De=be.isBooleanObject,Ce=be.isBigIntObject,He=r(783),Ge=r(111).BuiltinModule,We=r(322),Ve=We.validateObject,Ue=We.validateString,$e=We.kValidateObjectAllowArray;var Ze,qe,Ke,Ye,Je,Qe=new St(d(nt(Kt),(function(t){return null!==dt(/^[A-Z][a-zA-Z0-9]+$/,t)}))),Xe=function(t){return void 0===t&&void 0!==t},tr=pt({showHidden:!1,depth:2,colors:!1,customInspect:!0,showProxy:!1,maxArrayLength:100,maxStringLength:1e4,breakLength:80,compact:3,sorted:!1,getters:!1,numericSeparator:!1}),er=0,rr=1,nr=2;try{Ze=new gt("[\\x00-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]"),qe=new gt("[\0-\\x1f\\x27\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]","g"),Ke=new gt("[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]"),Ye=new gt("[\\x00-\\x1f\\x5c\\x7f-\\x9f]|[\\ud800-\\udbff](?![\\udc00-\\udfff])|(?<![\\ud800-\\udbff])[\\udc00-\\udfff]","g");var or=new gt("(?<=\\n)");Je=function(t){return ht(or,t)}}catch(t){Ze=/[\x00-\x1f\x27\x5c\x7f-\x9f]/,qe=/[\x00-\x1f\x27\x5c\x7f-\x9f]/g,Ke=/[\x00-\x1f\x5c\x7f-\x9f]/,Ye=/[\x00-\x1f\x5c\x7f-\x9f]/g,Je=function(t){var e=ht(/\n/,t),r=P(e),n=S(e,(function(t){return t+"\n"}));return""!==r&&n.push(r),n}}var ir,ar=/^[a-zA-Z_][a-zA-Z_0-9]*$/,cr=/^(0|[1-9][0-9]*)$/,lr=/^ {4}at (?:[^/\\(]+ \(|)node:(.+):\d+:\d+\)?$/,ur=/[/\\]node_modules[/\\](.+?)(?=[/\\])/g,pr=/^(\s+[^(]*?)\s*{/,fr=/(\/\/.*?\n)|(\/\*(.|\n)*?\*\/)/g,yr=16,sr=0,gr=1,dr=2,br=["\\x00","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\x07","\\b","\\t","\\n","\\x0B","\\f","\\r","\\x0E","\\x0F","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1A","\\x1B","\\x1C","\\x1D","\\x1E","\\x1F","","","","","","","","\\'","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\x7F","\\x80","\\x81","\\x82","\\x83","\\x84","\\x85","\\x86","\\x87","\\x88","\\x89","\\x8A","\\x8B","\\x8C","\\x8D","\\x8E","\\x8F","\\x90","\\x91","\\x92","\\x93","\\x94","\\x95","\\x96","\\x97","\\x98","\\x99","\\x9A","\\x9B","\\x9C","\\x9D","\\x9E","\\x9F"],hr=new gt("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))","g");function vr(t,e){var r={budget:{},indentationLvl:0,seen:[],currentDepth:0,stylize:jr,showHidden:tr.showHidden,depth:tr.depth,colors:tr.colors,customInspect:tr.customInspect,showProxy:tr.showProxy,maxArrayLength:tr.maxArrayLength,maxStringLength:tr.maxStringLength,breakLength:tr.breakLength,compact:tr.compact,sorted:tr.sorted,getters:tr.getters,numericSeparator:tr.numericSeparator};if(arguments.length>1)if(arguments.length>2&&(void 0!==arguments[2]&&(r.depth=arguments[2]),arguments.length>3&&void 0!==arguments[3]&&(r.colors=arguments[3])),"boolean"==typeof e)r.showHidden=e;else if(e)for(var n=ct(e),o=0;o<n.length;++o){var i=n[o];lt(tr,i)||"stylize"===i?r[i]=e[i]:void 0===r.userOptions&&(r.userOptions=e)}return r.colors&&(r.stylize=Ar),null===r.maxArrayLength&&(r.maxArrayLength=1/0),null===r.maxStringLength&&(r.maxStringLength=1/0),Ir(r,t,0)}vr.custom=fe,et(vr,"defaultOptions",{__proto__:null,get:function(){return tr},set:function(t){return Ve(t,"options"),tt(tr,t)}});var mr=39,Sr=49;function Pr(t,e){et(vr.colors,e,{__proto__:null,get:function(){return this[t]},set:function(e){this[t]=e},configurable:!0,enumerable:!1})}function xr(t,e){return-1===e?'"'.concat(t,'"'):-2===e?"`".concat(t,"`"):"'".concat(t,"'")}function Or(t){var e=At(t);return br.length>e?br[e]:"\\u".concat(J(e,16))}function wr(t){var e=Ze,r=qe,n=39;if(_t(t,"'")&&(_t(t,'"')?_t(t,"`")||_t(t,"${")||(n=-2):n=-1,39!==n&&(e=Ke,r=Ye)),t.length<5e3&&null===dt(e,t))return xr(t,n);if(t.length>100)return xr(t=bt(r,t,Or),n);for(var o="",i=0,a=0;a<t.length;a++){var c=At(t,a);if(c===n||92===c||c<32||c>126&&c<160)o+=i===a?br[c]:"".concat(Mt(t,i,a)).concat(br[c]),i=a+1;else if(c>=55296&&c<=57343){if(c<=56319&&a+1<t.length){var l=At(t,a+1);if(l>=56320&&l<=57343){a++;continue}}o+="".concat(Mt(t,i,a),"\\u").concat(J(c,16)),i=a+1}}return i!==t.length&&(o+=Mt(t,i)),xr(o,n)}function Ar(t,e){var r=vr.styles[e];if(void 0!==r){var n=vr.colors[r];if(void 0!==n)return"[".concat(n[0],"m").concat(t,"[").concat(n[1],"m")}return t}function jr(t){return t}function Er(){return[]}function _r(t,e){try{return t instanceof e}catch(t){return!1}}function Fr(t,e,r,n){for(var o,i=t;t||Xe(t);){var a=rt(t,"constructor");if(void 0!==a&&"function"==typeof a.value&&""!==a.value.name&&_r(i,a.value))return void 0===n||o===t&&Qe.has(a.value.name)||Lr(e,i,o||i,r,n),wt(a.value.name);t=it(t),void 0===o&&(o=t)}if(null===o)return null;var l=ce(i);if(r>e.depth&&null!==e.depth)return"".concat(l," <Complex prototype>");var u=Fr(o,e,r+1,n);return null===u?"".concat(l," <").concat(vr(o,c(c({},e),{},{customInspect:!1,depth:-1})),">"):"".concat(l," <").concat(u,">")}function Lr(t,e,r,n,i){var a,c,l=0;do{if(0!==l||e===r){if(null===(r=it(r)))return;var u=rt(r,"constructor");if(void 0!==u&&"function"==typeof u.value&&Qe.has(u.value.name))return}0===l?c=new St:b(a,(function(t){return c.add(t)})),a=st(r),x(t.seen,e);var p,f=o(a);try{for(f.s();!(p=f.n()).done;){var y=p.value;if(!("constructor"===y||lt(e,y)||0!==l&&c.has(y))){var s=rt(r,y);if("function"!=typeof s.value){var g=an(t,r,n,y,er,s,e);t.colors?x(i,"".concat(g,"")):x(i,g)}}}}catch(t){f.e(t)}finally{f.f()}P(t.seen)}while(3!=++l)}function Rr(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return null===t?""!==e&&r!==e?"[".concat(r).concat(n,": null prototype] [").concat(e,"] "):"[".concat(r).concat(n,": null prototype] "):""!==e&&t!==e?"".concat(t).concat(n," [").concat(e,"] "):"".concat(t).concat(n," ")}function kr(t,e){var r,n=ot(t);if(e)r=nt(t),0!==n.length&&O(r,n);else{try{r=ct(t)}catch(e){He(_e(e)&&"ReferenceError"===e.name&&Ee(t)),r=nt(t)}0!==n.length&&O(r,d(n,(function(e){return ut(t,e)})))}return r}function Tr(t,e,r){var n="";return null===e&&(n=ce(t))===r&&(n="Object"),Rr(e,r,n)}function Ir(t,e,i,a){if("object"!==n(e)&&"function"!=typeof e&&!Xe(e))return Vr(t.stylize,e,t);if(null===e)return t.stylize("null","null");var l=e,u=ie(e,!!t.showProxy);if(void 0!==u){if(null===u||null===u[0])return t.stylize("<Revoked Proxy>","special");if(t.showProxy)return function(t,e,r){if(r>t.depth&&null!==t.depth)return t.stylize("Proxy [Array]","special");r+=1,t.indentationLvl+=2;var n=[Ir(t,e[0],r),Ir(t,e[1],r)];return t.indentationLvl-=2,ln(t,n,"",["Proxy [","]"],nr,r)}(t,u,i);e=u}if(t.customInspect){var y=e[fe];if("function"==typeof y&&y!==vr&&(!e.constructor||e.constructor.prototype!==e)){var s=null===t.depth?null:t.depth-i,d=z(y,l,s,function(t,e){var r=c({stylize:t.stylize,showHidden:t.showHidden,depth:t.depth,colors:t.colors,customInspect:t.customInspect,showProxy:t.showProxy,maxArrayLength:t.maxArrayLength,maxStringLength:t.maxStringLength,breakLength:t.breakLength,compact:t.compact,sorted:t.sorted,getters:t.getters,numericSeparator:t.numericSeparator},t.userOptions);if(e){ft(r,null);var i,a=o(ct(r));try{for(a.s();!(i=a.n()).done;){var l=i.value;"object"!==n(r[l])&&"function"!=typeof r[l]||null===r[l]||delete r[l]}}catch(t){a.e(t)}finally{a.f()}r.stylize=ft((function(e,r){var n;try{n="".concat(t.stylize(e,r))}catch(t){}return"string"!=typeof n?e:n}),null)}return r}(t,void 0!==u||!(l instanceof X)),vr);if(d!==l)return"string"!=typeof d?Ir(t,d,i):zt(d,"\n","\n".concat(It(" ",t.indentationLvl)))}}if(t.seen.includes(e)){var b=1;return void 0===t.circular?(t.circular=new mt,t.circular.set(e,b)):void 0===(b=t.circular.get(e))&&(b=t.circular.size+1,t.circular.set(e,b)),t.stylize("[Circular *".concat(b,"]"),"special")}return function(t,e,n,i){var a,c;t.showHidden&&(n<=t.depth||null===t.depth)&&(c=[]);var l=Fr(e,t,n,c);void 0!==c&&0===c.length&&(c=void 0);var u=e[Ut];("string"!=typeof u||""!==u&&(t.showHidden?lt:ut)(e,Ut))&&(u="");var y,s,d="",b=Er,S=!0,P=0,T=t.showHidden?Xt:te,z=er;if(Vt in e||null===l)if(S=!1,g(e)){var B="Array"!==l||""!==u?Rr(l,u,"Array","(".concat(e.length,")")):"";if(a=ne(e,T),y=["".concat(B,"["),"]"],0===e.length&&0===a.length&&void 0===c)return"".concat(y[0],"]");z=nr,b=qr}else if(Le(e)){var C=xt(e),H=Rr(l,u,"Set","(".concat(C,")"));if(a=kr(e,t.showHidden),b=I(Yr,null,null!==l?e:Ot(e)),0===C&&0===a.length&&void 0===c)return"".concat(H,"{}");y=["".concat(H,"{"),"}"]}else if(Ae(e)){var G=D(e),W=Rr(l,u,"Map","(".concat(G,")"));if(a=kr(e,t.showHidden),b=I(Jr,null,null!==l?e:N(e)),0===G&&0===a.length&&void 0===c)return"".concat(W,"{}");y=["".concat(W,"{"),"}"]}else if(Me(e)){a=ne(e,T);var V=e,U="";null===l&&(U=Zt(e),V=new f[U](e));var $=$t(e),Z=Rr(l,u,U,"(".concat($,")"));if(y=["".concat(Z,"["),"]"],0===e.length&&0===a.length&&!t.showHidden)return"".concat(y[0],"]");b=I(Kr,null,V,$),z=nr}else je(e)?(a=kr(e,t.showHidden),y=zr("Map",u),b=I(nn,null,y)):Re(e)?(a=kr(e,t.showHidden),y=zr("Set",u),b=I(nn,null,y)):S=!0;if(S)if(a=kr(e,t.showHidden),y=["{","}"],"Object"===l){if(Pe(e)?y[0]="[Arguments] {":""!==u&&(y[0]="".concat(Rr(l,u,"Object"),"{")),0===a.length&&void 0===c)return"".concat(y[0],"}")}else if("function"==typeof e){if(d=function(t,e,r){var n=M(t);if(Nt(n,"class")&&Et(n,"}")){var o=Mt(n,5,-1),i=Ft(o,"{");if(-1!==i&&(!_t(Mt(o,0,i),"(")||null!==dt(pr,bt(fr,o))))return function(t,e,r){var n=lt(t,"name")&&t.name||"(anonymous)",o="class ".concat(n);if("Function"!==e&&null!==e&&(o+=" [".concat(e,"]")),""!==r&&e!==r&&(o+=" [".concat(r,"]")),null!==e){var i=it(t).name;i&&(o+=" extends ".concat(i))}else o+=" extends [null prototype]";return"[".concat(o,"]")}(t,e,r)}var a="Function";ve(t)&&(a="Generator".concat(a)),he(t)&&(a="Async".concat(a));var c="[".concat(a);return null===e&&(c+=" (null prototype)"),""===t.name?c+=" (anonymous)":c+=": ".concat(t.name),c+="]",e!==a&&null!==e&&(c+=" ".concat(e)),""!==r&&e!==r&&(c+=" [".concat(r,"]")),c}(e,l,u),0===a.length&&void 0===c)return t.stylize(d,"special")}else if(Ie(e)){d=vt(null!==l?e:new gt(e));var K=Rr(l,u,"RegExp");if("RegExp "!==K&&(d="".concat(K).concat(d)),0===a.length&&void 0===c||n>t.depth&&null!==t.depth)return t.stylize(d,"regexp")}else if(ze(e)){d=q(L(e))?k(e):R(e);var Y=Rr(l,u,"Date");if("Date "!==Y&&(d="".concat(Y).concat(d)),0===a.length&&void 0===c)return t.stylize(d,"date")}else if(ye(e)){if(d=function(t,e,n,i,a){var c=null!=t.name?wt(t.name):"Error",l=Br(t);(function(t,e,r,n){if(!t.showHidden&&0!==e.length)for(var o=0,i=["name","message","stack"];o<i.length;o++){var a=i[o],c=v(e,a);-1!==c&&_t(n,r[a])&&j(e,c,1)}})(i,a,t,l),!("cause"in t)||0!==a.length&&h(a,"cause")||x(a,"cause"),!g(t.errors)||0!==a.length&&h(a,"errors")||x(a,"errors"),l=function(t,e,r,n){var o=r.length;if(null===e||Et(r,"Error")&&Nt(t,r)&&(t.length===o||":"===t[o]||"\n"===t[o])){var i="Error";if(null===e){var a=dt(/^([A-Z][a-z_ A-Z0-9[\]()-]+)(?::|\n {4}at)/,t)||dt(/^([a-z_A-Z0-9-]*Error)$/,t);o=(i=a&&a[1]||"").length,i=i||"Error"}var c=Mt(Rr(e,n,i),0,-1);r!==c&&(t=_t(c,r)?0===o?"".concat(c,": ").concat(t):"".concat(c).concat(Mt(t,o)):"".concat(c," [").concat(r,"]").concat(Mt(t,o)))}return t}(l,e,c,n);var u=t.message&&Ft(l,t.message)||-1;-1!==u&&(u+=t.message.length);var f,y=Ft(l,"\n at",u);if(-1===y)l="[".concat(l,"]");else{var s=Mt(l,0,y),d=function(t,e,r){var n,o=Bt(r,"\n");try{n=e.cause}catch(t){}if(null!=n&&ye(n)){var i=Br(n),a=Ft(i,"\n at");if(-1!==a){var c=Mr(o,Bt(Mt(i,a+1),"\n")),l=c.len,u=c.offset;if(l>0){var p=l-2,f=" ... ".concat(p," lines matching cause stack trace ...");o.splice(u+1,p,t.stylize(f,"undefined"))}}}return o}(i,t,Mt(l,y+1));if(i.colors){var b,S,P=function(){var t;try{t=process.cwd()}catch(t){return}return t}(),O=o(d);try{for(O.s();!(S=O.n()).done;){var w=S.value,A=dt(lr,w);if(null!==A&&Ge.exists(A[1]))s+="\n".concat(i.stylize(w,"undefined"));else{if(s+="\n",w=Nr(i,w),void 0!==P){var E=Dr(i,w,P);E===w&&(E=Dr(i,w,b=null==b?(f=P,(p=null==p?r(976):p).pathToFileURL(f).href):b)),w=E}s+=w}}}catch(t){O.e(t)}finally{O.f()}}else s+="\n".concat(m(d,"\n"));l=s}if(0!==i.indentationLvl){var _=It(" ",i.indentationLvl);l=zt(l,"\n","\n".concat(_))}return l}(e,l,u,t,a),0===a.length&&void 0===c)return d}else if(me(e)){var J=Rr(l,u,Se(e)?"ArrayBuffer":"SharedArrayBuffer");if(void 0===i)b=Zr;else if(0===a.length&&void 0===c)return J+"{ byteLength: ".concat(Gr(t.stylize,e.byteLength,!1)," }");y[0]="".concat(J,"{"),E(a,"byteLength")}else if(Oe(e))y[0]="".concat(Rr(l,u,"DataView"),"{"),E(a,"byteLength","byteOffset","buffer");else if(Fe(e))y[0]="".concat(Rr(l,u,"Promise"),"{"),b=on;else if(Te(e))y[0]="".concat(Rr(l,u,"WeakSet"),"{"),b=t.showHidden?en:tn;else if(ke(e))y[0]="".concat(Rr(l,u,"WeakMap"),"{"),b=t.showHidden?rn:tn;else if(Ee(e))y[0]="".concat(Rr(l,u,"Module"),"{"),b=Ur.bind(null,a);else if(xe(e)){if(d=function(t,e,r,n,o){var i,a;Ne(t)?(i=Q,a="Number"):Be(t)?(i=Ht,a="String",r.splice(0,t.length)):De(t)?(i=F,a="Boolean"):Ce(t)?(i=_,a="BigInt"):(i=Wt,a="Symbol");var c="[".concat(a);return a!==n&&(c+=null===n?" (null prototype)":" (".concat(n,")")),c+=": ".concat(Vr(jr,i(t),e),"]"),""!==o&&o!==n&&(c+=" [".concat(o,"]")),0!==r.length||e.stylize===jr?c:e.stylize(c,Dt(a))}(e,t,a,l,u),0===a.length&&void 0===c)return d}else{if(0===a.length&&void 0===c){if(we(e)){var X=le(e).toString(16);return t.stylize("[External: ".concat(X,"]"),"special")}return"".concat(Tr(e,l,u),"{}")}y[0]="".concat(Tr(e,l,u),"{")}if(n>t.depth&&null!==t.depth){var tt=Mt(Tr(e,l,u),0,-1);return null!==l&&(tt="[".concat(tt,"]")),t.stylize(tt,"special")}n+=1,t.seen.push(e),t.currentDepth=n;var et=t.indentationLvl;try{for(s=b(t,e,n),P=0;P<a.length;P++)x(s,an(t,e,n,a[P],z));void 0!==c&&O(s,c)}catch(r){return function(t,e,r,n){if(de(e))return t.seen.pop(),t.indentationLvl=n,t.stylize("[".concat(r,": Inspection interrupted ")+"prematurely. Maximum call stack size exceeded.]","special");He.fail(e.stack)}(t,r,Mt(Tr(e,l,u),0,-1),et)}if(void 0!==t.circular){var rt=t.circular.get(e);if(void 0!==rt){var nt=t.stylize("<ref *".concat(rt,">"),"special");!0!==t.compact?d=""===d?nt:"".concat(nt," ").concat(d):y[0]="".concat(nt," ").concat(y[0])}}if(t.seen.pop(),t.sorted){var ot=!0===t.sorted?void 0:t.sorted;if(z===er)A(s,ot);else if(a.length>1){var at=A(w(s,s.length-a.length),ot);E(at,s,s.length-a.length,a.length),yt(j,null,at)}}var ct=ln(t,s,d,y,z,n,e),pt=(t.budget[t.indentationLvl]||0)+ct.length;return t.budget[t.indentationLvl]=pt,pt>Math.pow(2,27)&&(t.depth=-1),ct}(t,e,i,a)}function zr(t,e){return e!=="".concat(t," Iterator")&&(""!==e&&(e+="] ["),e+="".concat(t," Iterator")),["[".concat(e,"] {"),"}"]}function Mr(t,e){for(var r=0;r<t.length-3;r++){var n=v(e,t[r]);if(-1!==n){var o=e.length-n;if(o>3){for(var i=1,a=G(t.length-r,o);a>i&&t[r+i]===e[n+i];)i++;if(i>3)return{len:i,offset:r}}}}return{len:0,offset:0}}function Br(t){return t.stack?wt(t.stack):T(t)}function Nr(t,e){for(var r,n="",o=0;null!==(r=ur.exec(e));)n+=Mt(e,o,r.index+14),n+=t.stylize(r[1],"module"),o=r.index+r[0].length;return 0!==o&&(e=n+Mt(e,o)),e}function Dr(t,e,r){var n=Ft(e,r),o="",i=r.length;if(-1!==n){"file://"===Mt(e,n-7,n)&&(i+=7,n-=7);var a="("===e[n-1]?n-1:n,c=a!==n&&Et(e,")")?-1:e.length,l=n+i+1,u=Mt(e,a,l);o+=Mt(e,0,a),o+=t.stylize(u,"undefined"),o+=Mt(e,l,c),-1===c&&(o+=t.stylize(")","undefined"))}else o+=e;return o}function Cr(t){for(var e="",r=t.length,n=Nt(t,"-")?1:0;r>=n+4;r-=3)e="_".concat(Mt(t,r-3,r)).concat(e);return r===t.length?t:"".concat(Mt(t,0,r)).concat(e)}vr.colors={__proto__:null,reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],blink:[5,25],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],doubleunderline:[21,24],black:[30,mr],red:[31,mr],green:[32,mr],yellow:[33,mr],blue:[34,mr],magenta:[35,mr],cyan:[36,mr],white:[37,mr],bgBlack:[40,Sr],bgRed:[41,Sr],bgGreen:[42,Sr],bgYellow:[43,Sr],bgBlue:[44,Sr],bgMagenta:[45,Sr],bgCyan:[46,Sr],bgWhite:[47,Sr],framed:[51,54],overlined:[53,55],gray:[90,mr],redBright:[91,mr],greenBright:[92,mr],yellowBright:[93,mr],blueBright:[94,mr],magentaBright:[95,mr],cyanBright:[96,mr],whiteBright:[97,mr],bgGray:[100,Sr],bgRedBright:[101,Sr],bgGreenBright:[102,Sr],bgYellowBright:[103,Sr],bgBlueBright:[104,Sr],bgMagentaBright:[105,Sr],bgCyanBright:[106,Sr],bgWhiteBright:[107,Sr]},Pr("gray","grey"),Pr("gray","blackBright"),Pr("bgGray","bgGrey"),Pr("bgGray","bgBlackBright"),Pr("dim","faint"),Pr("strikethrough","crossedout"),Pr("strikethrough","strikeThrough"),Pr("strikethrough","crossedOut"),Pr("hidden","conceal"),Pr("inverse","swapColors"),Pr("inverse","swapcolors"),Pr("doubleunderline","doubleUnderline"),vr.styles=tt({__proto__:null},{special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red",module:"underline"});var Hr=function(t){return"... ".concat(t," more item").concat(t>1?"s":"")};function Gr(t,e,r){if(!r)return at(e,-0)?t("-0","number"):t("".concat(e),"number");var n=U(e),o=wt(n);return n===e?!Z(e)||_t(o,"e")?t(o,"number"):t("".concat(Cr(o)),"number"):q(e)?t(o,"number"):t("".concat(Cr(o),".").concat(function(t){for(var e="",r=0;r<t.length-3;r+=3)e+="".concat(Mt(t,r,r+3),"_");return 0===r?t:"".concat(e).concat(Mt(t,r))}(Mt(wt(e),o.length+1))),"number")}function Wr(t,e,r){var n=wt(e);return t("".concat(r?Cr(n):n,"n"),"bigint")}function Vr(t,e,r){if("string"==typeof e){var n="";if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength;e=Mt(e,0,r.maxStringLength),n="... ".concat(o," more character").concat(o>1?"s":"")}return!0!==r.compact&&e.length>yr&&e.length>r.breakLength-r.indentationLvl-4?m(S(Je(e),(function(e){return t(wr(e),"string")}))," +\n".concat(It(" ",r.indentationLvl+2)))+n:t(wr(e),"string")+n}return"number"==typeof e?Gr(t,e,r.numericSeparator):"bigint"==typeof e?Wr(t,e,r.numericSeparator):"boolean"==typeof e?t("".concat(e),"boolean"):void 0===e?t("undefined","undefined"):t(Gt(e),"symbol")}function Ur(t,e,r,n){for(var o=new s(t.length),i=0;i<t.length;i++)try{o[i]=an(e,r,n,t[i],er)}catch(r){He(_e(r)&&"ReferenceError"===r.name);var a=l({},t[i],"");o[i]=an(e,a,n,t[i],er);var c=Lt(o[i]," ");o[i]=Mt(o[i],0,c+1)+e.stylize("<uninitialized>","special")}return t.length=0,o}function $r(t,e,r,n,o,i){for(var a=ct(e),c=i;i<a.length&&o.length<n;i++){var l=a[i],u=+l;if(u>Math.pow(2,32)-2)break;if("".concat(c)!==l){if(null===dt(cr,l))break;var p=u-c,f=p>1?"s":"",y="<".concat(p," empty item").concat(f,">");if(x(o,t.stylize(y,"undefined")),c=u,o.length===n)break}x(o,an(t,e,r,l,rr)),c++}var s=e.length-c;if(o.length!==n){if(s>0){var g=s>1?"s":"",d="<".concat(s," empty item").concat(g,">");x(o,t.stylize(d,"undefined"))}}else s>0&&x(o,Hr(s));return o}function Zr(t,e){var n;try{n=new qt(e)}catch(e){return[t.stylize("(detached)","special")]}void 0===u&&(u=Yt(r(765).h.prototype.hexSlice));var o=Ct(bt(/(.{2})/g,u(n,0,G(t.maxArrayLength,n.length)),"$1 ")),i=n.length-t.maxArrayLength;return i>0&&(o+=" ... ".concat(i," more byte").concat(i>1?"s":"")),["".concat(t.stylize("[Uint8Contents]","special"),": <").concat(o,">")]}function qr(t,e,r){for(var n=e.length,o=G(H(0,t.maxArrayLength),n),i=n-o,a=[],c=0;c<o;c++){if(!lt(e,c))return $r(t,e,r,o,a,c);x(a,an(t,e,r,c,rr))}return i>0&&x(a,Hr(i)),a}function Kr(t,e,r,n,o){for(var i=G(H(0,r.maxArrayLength),e),a=t.length-i,c=new s(i),l=t.length>0&&"number"==typeof t[0]?Gr:Wr,u=0;u<i;++u)c[u]=l(r.stylize,t[u],r.numericSeparator);if(a>0&&(c[i]=Hr(a)),r.showHidden){r.indentationLvl+=2;for(var p=0,f=["BYTES_PER_ELEMENT","length","byteLength","byteOffset","buffer"];p<f.length;p++){var y=f[p],g=Ir(r,t[y],o,!0);x(c,"[".concat(y,"]: ").concat(g))}r.indentationLvl-=2}return c}function Yr(t,e,r,n){var i=t.size,a=G(H(0,e.maxArrayLength),i),c=i-a,l=[];e.indentationLvl+=2;var u,p=0,f=o(t);try{for(f.s();!(u=f.n()).done;){var y=u.value;if(p>=a)break;x(l,Ir(e,y,n)),p++}}catch(t){f.e(t)}finally{f.f()}return c>0&&x(l,Hr(c)),e.indentationLvl-=2,l}function Jr(t,e,r,n){var i=t.size,a=G(H(0,e.maxArrayLength),i),c=i-a,l=[];e.indentationLvl+=2;var u,p=0,f=o(t);try{for(f.s();!(u=f.n()).done;){var y=u.value,s=y[0],g=y[1];if(p>=a)break;x(l,"".concat(Ir(e,s,n)," => ").concat(Ir(e,g,n))),p++}}catch(t){f.e(t)}finally{f.f()}return c>0&&x(l,Hr(c)),e.indentationLvl-=2,l}function Qr(t,e,r,n){var o=H(t.maxArrayLength,0),i=G(o,r.length),a=new s(i);t.indentationLvl+=2;for(var c=0;c<i;c++)a[c]=Ir(t,r[c],e);t.indentationLvl-=2,n!==sr||t.sorted||A(a);var l=r.length-i;return l>0&&x(a,Hr(l)),a}function Xr(t,e,r,n){var o=H(t.maxArrayLength,0),i=r.length/2,a=i-o,c=G(o,i),l=new s(c),u=0;if(t.indentationLvl+=2,n===sr){for(;u<c;u++){var p=2*u;l[u]="".concat(Ir(t,r[p],e)," => ").concat(Ir(t,r[p+1],e))}t.sorted||A(l)}else for(;u<c;u++){var f=2*u,y=[Ir(t,r[f],e),Ir(t,r[f+1],e)];l[u]=ln(t,y,"",["[","]"],nr,e)}return t.indentationLvl-=2,a>0&&x(l,Hr(a)),l}function tn(t){return[t.stylize("<items unknown>","special")]}function en(t,e,r){return Qr(t,r,ae(e),sr)}function rn(t,e,r){return Xr(t,r,ae(e),sr)}function nn(t,e,r,n){var o=ae(r,!0),i=o[0];return o[1]?(t[0]=bt(/ Iterator] {$/,t[0]," Entries] {"),Xr(e,n,i,dr)):Qr(e,n,i,gr)}function on(t,e,r){var n,o=oe(e),i=o[0],a=o[1];if(i===ee)n=[t.stylize("<pending>","special")];else{t.indentationLvl+=2;var c=Ir(t,a,r);t.indentationLvl-=2,n=[i===re?"".concat(t.stylize("<rejected>","special")," ").concat(c):c]}return n}function an(t,e,r,o,i,a){var c,l,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e,p=" ";if(void 0!==(a=a||rt(e,o)||{value:e[o],enumerable:!0}).value){var f=!0!==t.compact||i!==er?2:3;t.indentationLvl+=f,l=Ir(t,a.value,r),3===f&&t.breakLength<ir(l,t.colors)&&(p="\n".concat(It(" ",t.indentationLvl))),t.indentationLvl-=f}else if(void 0!==a.get){var y=void 0!==a.set?"Getter/Setter":"Getter",s=t.stylize,g="special";if(t.getters&&(!0===t.getters||"get"===t.getters&&void 0===a.set||"set"===t.getters&&void 0!==a.set))try{var d=z(a.get,u);if(t.indentationLvl+=2,null===d)l="".concat(s("[".concat(y,":"),g)," ").concat(s("null","null")).concat(s("]",g));else if("object"===n(d))l="".concat(s("[".concat(y,"]"),g)," ").concat(Ir(t,d,r));else{var b=Vr(s,d,t);l="".concat(s("[".concat(y,":"),g)," ").concat(b).concat(s("]",g))}t.indentationLvl-=2}catch(t){var h="<Inspection threw (".concat(t.message,")>");l="".concat(s("[".concat(y,":"),g)," ").concat(h).concat(s("]",g))}else l=t.stylize("[".concat(y,"]"),g)}else l=void 0!==a.set?t.stylize("[Setter]","special"):t.stylize("undefined","undefined");if(i===rr)return l;if("symbol"===n(o)){var v=bt(qe,Gt(o),Or);c="[".concat(t.stylize(v,"symbol"),"]")}else if("__proto__"===o)c="['__proto__']";else if(!1===a.enumerable){var m=bt(qe,o,Or);c="[".concat(m,"]")}else c=null!==dt(ar,o)?t.stylize(o,"name"):t.stylize(wr(o),"string");return"".concat(c,":").concat(p).concat(l)}function cn(t,e,r,n){var o=e.length+r;if(o+e.length>t.breakLength)return!1;for(var i=0;i<e.length;i++)if(t.colors?o+=ge(e[i]).length:o+=e[i].length,o>t.breakLength)return!1;return""===n||!_t(n,"\n")}function ln(t,e,r,n,o,i,a){if(!0!==t.compact){if("number"==typeof t.compact&&t.compact>=1){var c=e.length;if(o===nr&&c>6&&(e=function(t,e,r){var n=0,o=0,i=0,a=e.length;t.maxArrayLength<e.length&&a--;for(var c=new s(a);i<a;i++){var l=ir(e[i],t.colors);c[i]=l,n+=l+2,o<l&&(o=l)}var u=o+2;if(3*u+t.indentationLvl<t.breakLength&&(n/u>5||o<=6)){var p=V(u-n/e.length),f=H(u-3-p,1),y=G(W(V(2.5*f*a)/f),C((t.breakLength-t.indentationLvl)/u),4*t.compact,15);if(y<=1)return e;for(var g=[],d=[],b=0;b<y;b++){for(var h=0,v=b;v<e.length;v+=y)c[v]>h&&(h=c[v]);h+=2,d[b]=h}var m=Tt;if(void 0!==r)for(var S=0;S<e.length;S++)if("number"!=typeof r[S]&&"bigint"!=typeof r[S]){m=kt;break}for(var P=0;P<a;P+=y){for(var O=G(P+y,a),w="",A=P;A<O-1;A++){var j=d[A-P]+e[A].length-c[A];w+=m("".concat(e[A],", "),j," ")}if(m===Tt){var E=d[A-P]+e[A].length-c[A]-2;w+=Tt(e[A],E," ")}else w+=e[A];x(g,w)}t.maxArrayLength<e.length&&x(g,e[a]),e=g}return e}(t,e,a)),t.currentDepth-i<t.compact&&c===e.length&&cn(t,e,e.length+t.indentationLvl+n[0].length+r.length+10,r)){var l=se(e,", ");if(!_t(l,"\n"))return"".concat(r?"".concat(r," "):"").concat(n[0]," ").concat(l)+" ".concat(n[1])}}var u="\n".concat(It(" ",t.indentationLvl));return"".concat(r?"".concat(r," "):"").concat(n[0]).concat(u," ")+"".concat(se(e,",".concat(u," "))).concat(u).concat(n[1])}if(cn(t,e,0,r))return"".concat(n[0]).concat(r?" ".concat(r):""," ").concat(se(e,", ")," ")+n[1];var p=It(" ",t.indentationLvl),f=""===r&&1===n[0].length?" ":"".concat(r?" ".concat(r):"","\n").concat(p," ");return"".concat(n[0]).concat(f).concat(se(e,",\n".concat(p," "))," ").concat(n[1])}function un(t){var e=ie(t,!1);if(void 0!==e){if(null===e)return!0;t=e}if("function"!=typeof t.toString)return!0;if(lt(t,"toString"))return!1;var r=t;do{r=it(r)}while(!lt(r,"toString"));var n=rt(r,"constructor");return void 0!==n&&"function"==typeof n.value&&Qe.has(n.value.name)}var pn,fn=function(t){return Bt(t.message,"\n",1)[0]};function yn(t){try{return B(t)}catch(t){if(!pn)try{var e={};e.a=e,B(e)}catch(t){pn=fn(t)}if("TypeError"===t.name&&fn(t)===pn)return"[Circular]";throw t}}function sn(t,e){var r;return Gr(jr,t,null!==(r=null==e?void 0:e.numericSeparator)&&void 0!==r?r:tr.numericSeparator)}function gn(t,e){var r;return Wr(jr,t,null!==(r=null==e?void 0:e.numericSeparator)&&void 0!==r?r:tr.numericSeparator)}function dn(t,e){var r=e[0],o=0,i="",a="";if("string"==typeof r){if(1===e.length)return r;for(var l,u=0,p=0;p<r.length-1;p++)if(37===At(r,p)){var f=At(r,++p);if(o+1!==e.length){switch(f){case 115:var y=e[++o];l="number"==typeof y?sn(y,t):"bigint"==typeof y?gn(y,t):"object"===n(y)&&null!==y&&un(y)?vr(y,c(c({},t),{},{compact:3,colors:!1,depth:0})):wt(y);break;case 106:l=yn(e[++o]);break;case 100:var s=e[++o];l="bigint"==typeof s?gn(s,t):"symbol"===n(s)?"NaN":sn($(s),t);break;case 79:l=vr(e[++o],t);break;case 111:l=vr(e[++o],c(c({},t),{},{showHidden:!0,showProxy:!0,depth:4}));break;case 105:var g=e[++o];l="bigint"==typeof g?gn(g,t):"symbol"===n(g)?"NaN":sn(Y(g),t);break;case 102:var d=e[++o];l="symbol"===n(d)?"NaN":sn(K(d),t);break;case 99:o+=1,l="";break;case 37:i+=Mt(r,u,p),u=p+1;continue;default:continue}u!==p-1&&(i+=Mt(r,u,p-1)),i+=l,u=p+1}else 37===f&&(i+=Mt(r,u,p),u=p+1)}0!==u&&(o++,a=" ",u<r.length&&(i+=Mt(r,u)))}for(;o<e.length;){var b=e[o];i+=a,i+="string"!=typeof b?vr(b,t):b,a=" ",o++}return i}function bn(t){return t<=31||t>=127&&t<=159||t>=768&&t<=879||t>=8203&&t<=8207||t>=8400&&t<=8447||t>=65024&&t<=65039||t>=65056&&t<=65071||t>=917760&&t<=917999}if(y("config").hasIntl)He(!1);else{ir=function(t){var e=0;(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(t=vn(t)),t=Rt(t,"NFC");var r,n=o(new Pt(t));try{for(n.s();!(r=n.n()).done;){var i=r.value,a=jt(i,0);hn(a)?e+=2:bn(a)||e++}}catch(t){n.e(t)}finally{n.f()}return e};var hn=function(t){return t>=4352&&(t<=4447||9001===t||9002===t||t>=11904&&t<=12871&&12351!==t||t>=12880&&t<=19903||t>=19968&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65131||t>=65281&&t<=65376||t>=65504&&t<=65510||t>=110592&&t<=110593||t>=127488&&t<=127569||t>=127744&&t<=128591||t>=131072&&t<=262141)}}function vn(t){return Ue(t,"str"),bt(hr,t,"")}var mn={34:"&quot;",38:"&amp;",39:"&apos;",60:"&lt;",62:"&gt;",160:"&nbsp;"};function Sn(t){return t.replace(/[\u0000-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u00FF]/g,(function(t){var e=wt(t.charCodeAt(0));return mn[e]||"&#"+e+";"}))}t.exports={identicalSequenceRange:Mr,inspect:vr,inspectDefaultOptions:tr,format:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return dn(void 0,e)},formatWithOptions:function(t){Ve(t,"inspectOptions",$e);for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return dn(t,r)},getStringWidth:ir,stripVTControlCharacters:vn,isZeroWidthCodePoint:bn,stylizeWithColor:Ar,stylizeWithHTML:function(t,e){var r=vr.styles[e];return void 0!==r?'<span style="color:'.concat(r,';">').concat(Sn(t),"</span>"):Sn(t)},Proxy:ue}},783:t=>{function e(t){if(!t)throw new Error("Assertion failed")}e.fail=function(t){throw new Error(t)},t.exports=e},111:(t,e)=>{var r=["_http_agent","_http_client","_http_common","_http_incoming","_http_outgoing","_http_server","_stream_duplex","_stream_passthrough","_stream_readable","_stream_transform","_stream_wrap","_stream_writable","_tls_common","_tls_wrap","assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","module","Module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];e.BuiltinModule={exists:function(t){return t.startsWith("internal/")||-1!==r.indexOf(t)}}},840:t=>{t.exports={CHAR_DOT:46,CHAR_FORWARD_SLASH:47,CHAR_BACKWARD_SLASH:92}},638:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i,a,c=r(951),l=c.ArrayIsArray,u=c.ArrayPrototypeIncludes,p=c.ArrayPrototypeIndexOf,f=c.ArrayPrototypeJoin,y=c.ArrayPrototypePop,s=c.ArrayPrototypePush,g=c.ArrayPrototypeSplice,d=c.ErrorCaptureStackTrace,b=c.ObjectDefineProperty,h=c.ReflectApply,v=c.RegExpPrototypeTest,m=c.SafeMap,S=c.StringPrototypeEndsWith,P=c.StringPrototypeIncludes,x=c.StringPrototypeSlice,O=c.StringPrototypeToLowerCase,w=new m,A={},j=/^([A-Z][a-z0-9]*)+$/,E=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_=null;function F(){return _||(_=r(339)),_}var L=R((function(t,e,r){(t=D(t)).name="".concat(e," [").concat(r,"]"),t.stack,delete t.name}));function R(t){var e="__node_internal_"+t.name;return b(t,"name",{value:e}),t}var k,T,I,z,M,B,N,D=R((function(t){return i=Error.stackTraceLimit,Error.stackTraceLimit=1/0,d(t),Error.stackTraceLimit=i,t}));t.exports={codes:A,hideStackFrames:R,isStackOverflowError:function(t){if(void 0===T)try{!function t(){t()}()}catch(t){T=t.message,k=t.name}return t&&t.name===k&&t.message===T}},I="ERR_INVALID_ARG_TYPE",z=function(t,e,r){a("string"==typeof t,"'name' must be a string"),l(e)||(e=[e]);var i="The ";if(S(t," argument"))i+="".concat(t," ");else{var c=P(t,".")?"property":"argument";i+='"'.concat(t,'" ').concat(c," ")}i+="must be ";var d,b=[],h=[],m=[],w=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}(e);try{for(w.s();!(d=w.n()).done;){var A=d.value;a("string"==typeof A,"All expected entries have to be of type string"),u(E,A)?s(b,O(A)):v(j,A)?s(h,A):(a("object"!==A,'The value "object" should be written as "Object"'),s(m,A))}}catch(t){w.e(t)}finally{w.f()}if(h.length>0){var _=p(b,"object");-1!==_&&(g(b,_,1),s(h,"Object"))}if(b.length>0){if(b.length>2){var L=y(b);i+="one of type ".concat(f(b,", "),", or ").concat(L)}else i+=2===b.length?"one of type ".concat(b[0]," or ").concat(b[1]):"of type ".concat(b[0]);(h.length>0||m.length>0)&&(i+=" or ")}if(h.length>0){if(h.length>2){var R=y(h);i+="an instance of ".concat(f(h,", "),", or ").concat(R)}else i+="an instance of ".concat(h[0]),2===h.length&&(i+=" or ".concat(h[1]));m.length>0&&(i+=" or ")}if(m.length>0)if(m.length>2){var k=y(m);i+="one of ".concat(f(m,", "),", or ").concat(k)}else 2===m.length?i+="one of ".concat(m[0]," or ").concat(m[1]):(O(m[0])!==m[0]&&(i+="an "),i+="".concat(m[0]));if(null==r)i+=". Received ".concat(r);else if("function"==typeof r&&r.name)i+=". Received function ".concat(r.name);else if("object"===n(r))if(r.constructor&&r.constructor.name)i+=". Received an instance of ".concat(r.constructor.name);else{var T=F().inspect(r,{depth:-1});i+=". Received ".concat(T)}else{var I=F().inspect(r,{colors:!1});I.length>25&&(I="".concat(x(I,0,25),"...")),i+=". Received type ".concat(n(r)," (").concat(I,")")}return i},M=TypeError,w.set(I,z),A[I]=(B=M,N=I,function(){var t=Error.stackTraceLimit;Error.stackTraceLimit=0;var e=new B;Error.stackTraceLimit=t;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var c=function(t,e,n){var o=w.get(t);return void 0===a&&(a=r(783)),a("function"==typeof o),a(o.length<=e.length,"Code: ".concat(t,"; The provided arguments length (").concat(e.length,") does not ")+"match the required ones (".concat(o.length,").")),h(o,n,e)}(N,o,e);return b(e,"message",{value:c,enumerable:!1,writable:!0,configurable:!0}),b(e,"toString",{value:function(){return"".concat(this.name," [").concat(N,"]: ").concat(this.message)},enumerable:!1,writable:!0,configurable:!0}),L(e,B.name,N),e.code=N,e})},976:(t,e,r)=>{var n=r(951),o=n.StringPrototypeCharCodeAt,i=n.StringPrototypeIncludes,a=n.StringPrototypeReplace,c=r(840).CHAR_FORWARD_SLASH,l=r(948),u=/%/g,p=/\\/g,f=/\n/g,y=/\r/g,s=/\t/g;t.exports={pathToFileURL:function(t){var e=new URL("file://"),r=l.resolve(t);return o(t,t.length-1)===c&&r[r.length-1]!==l.sep&&(r+="/"),e.pathname=function(t){return i(t,"%")&&(t=a(t,u,"%25")),i(t,"\\")&&(t=a(t,p,"%5C")),i(t,"\n")&&(t=a(t,f,"%0A")),i(t,"\r")&&(t=a(t,y,"%0D")),i(t,"\t")&&(t=a(t,s,"%09")),t}(r),e}}},641:t=>{var e=/\u001b\[\d\d?m/g;t.exports={customInspectSymbol:Symbol.for("nodejs.util.inspect.custom"),isError:function(t){return t instanceof Error},join:Array.prototype.join.call.bind(Array.prototype.join),removeColors:function(t){return String.prototype.replace.call(t,e,"")}}},567:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(763).getConstructorName;function i(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];for(var a=0,c=r;a<c.length;a++){var l=c[a],u=globalThis[l];if(u&&t instanceof u)return!0}for(;t;){if("object"!==n(t))return!1;if(r.indexOf(o(t))>=0)return!0;t=Object.getPrototypeOf(t)}return!1}function a(t){return function(e){if(!i(e,t.name))return!1;try{t.prototype.valueOf.call(e)}catch(t){return!1}return!0}}"object"!==("undefined"==typeof globalThis?"undefined":n(globalThis))&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var c=a(String),l=a(Number),u=a(Boolean),p=a(BigInt),f=a(Symbol);t.exports={isAsyncFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).startsWith("async")},isGeneratorFunction:function(t){return"function"==typeof t&&Function.prototype.toString.call(t).match(/^(async\s+)?function *\*/)},isAnyArrayBuffer:function(t){return i(t,"ArrayBuffer","SharedArrayBuffer")},isArrayBuffer:function(t){return i(t,"ArrayBuffer")},isArgumentsObject:function(t){if(null!==t&&"object"===n(t)&&!Array.isArray(t)&&"number"==typeof t.length&&t.length===(0|t.length)&&t.length>=0){var e=Object.getOwnPropertyDescriptor(t,"callee");return e&&!e.enumerable}return!1},isBoxedPrimitive:function(t){return l(t)||c(t)||u(t)||p(t)||f(t)},isDataView:function(t){return i(t,"DataView")},isExternal:function(t){return"object"===n(t)&&Object.isFrozen(t)&&null==Object.getPrototypeOf(t)},isMap:function(t){if(!i(t,"Map"))return!1;try{t.has()}catch(t){return!1}return!0},isMapIterator:function(t){return"[object Map Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isModuleNamespaceObject:function(t){return t&&"object"===n(t)&&"Module"===t[Symbol.toStringTag]},isNativeError:function(t){return t instanceof Error&&i(t,"Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError")},isPromise:function(t){return i(t,"Promise")},isSet:function(t){if(!i(t,"Set"))return!1;try{t.has()}catch(t){return!1}return!0},isSetIterator:function(t){return"[object Set Iterator]"===Object.prototype.toString.call(Object.getPrototypeOf(t))},isWeakMap:function(t){return i(t,"WeakMap")},isWeakSet:function(t){return i(t,"WeakSet")},isRegExp:function(t){return i(t,"RegExp")},isDate:function(t){if(i(t,"Date"))try{return Date.prototype.getTime.call(t),!0}catch(t){}return!1},isTypedArray:function(t){return i(t,"Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array")},isStringObject:c,isNumberObject:l,isBooleanObject:u,isBigIntObject:p,isSymbolObject:f}},322:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=r(951).ArrayIsArray,i=r(638),a=i.hideStackFrames,c=i.codes.ERR_INVALID_ARG_TYPE,l=a((function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===r){if(null===t||o(t))throw new c(e,"Object",t);if("object"!==n(t))throw new c(e,"Object",t)}else{if(!(1&r)&&null===t)throw new c(e,"Object",t);if(!(2&r)&&o(t))throw new c(e,"Object",t);var i=!(4&r),a=n(t);if("object"!==a&&(i||"function"!==a))throw new c(e,"Object",t)}}));t.exports={kValidateObjectNone:0,kValidateObjectAllowNullable:1,kValidateObjectAllowArray:2,kValidateObjectAllowFunction:4,validateObject:l,validateString:function(t,e){if("string"!=typeof t)throw new c(e,"string",t)}}},948:(t,e,r)=>{var n=r(951),o=n.StringPrototypeCharCodeAt,i=n.StringPrototypeLastIndexOf,a=n.StringPrototypeSlice,c=r(840),l=c.CHAR_DOT,u=c.CHAR_FORWARD_SLASH,p=r(322).validateString;function f(t){return t===u}t.exports={resolve:function(){for(var t="",e=!1,r=arguments.length-1;r>=-1&&!e;r--){var n=r>=0?r<0||arguments.length<=r?void 0:arguments[r]:"/";p(n,"path"),0!==n.length&&(t="".concat(n,"/").concat(t),e=o(n,0)===u)}return t=function(t,e,r,n){for(var c="",p=0,f=-1,y=0,s=0,g=0;g<=t.length;++g){if(g<t.length)s=o(t,g);else{if(n(s))break;s=u}if(n(s)){if(f===g-1||1===y);else if(2===y){if(c.length<2||2!==p||o(c,c.length-1)!==l||o(c,c.length-2)!==l){if(c.length>2){var d=i(c,r);-1===d?(c="",p=0):p=(c=a(c,0,d)).length-1-i(c,r),f=g,y=0;continue}if(0!==c.length){c="",p=0,f=g,y=0;continue}}e&&(c+=c.length>0?"".concat(r,".."):"..",p=2)}else c.length>0?c+="".concat(r).concat(a(t,f+1,g)):c=a(t,f+1,g),p=g-f-1;f=g,y=0}else s===l&&-1!==y?++y:y=-1}return c}(t,!e,"/",f),e?"/".concat(t):t.length>0?t:"."}}},951:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e,r){return e=u(e),function(t,e){if(e&&("object"===n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,r||[],u(t).constructor):e.apply(t,r))}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function a(t){var e="function"==typeof Map?new Map:void 0;return a=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return function(t,e,r){if(c())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&l(o,r.prototype),o}(t,arguments,u(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,t)},a(t)}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function y(t,e,r){return e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}var g=function(t,e){var r=function(){return y((function e(r){p(this,e),this._iterator=t(r)}),[{key:"next",value:function(){return e(this._iterator)}},{key:Symbol.iterator,value:function(){return this}}])}();return Object.setPrototypeOf(r.prototype,null),Object.freeze(r.prototype),Object.freeze(r),r};function d(t,e){return Function.prototype.call.bind(t.prototype.__lookupGetter__(e))}function b(t){return Function.prototype.call.bind(t)}var h=function(t,e){Array.prototype.forEach.call(Reflect.ownKeys(t),(function(r){Reflect.getOwnPropertyDescriptor(e,r)||Reflect.defineProperty(e,r,Reflect.getOwnPropertyDescriptor(t,r))}))},v=function(t,e){if(Symbol.iterator in t.prototype){var r,n=new t;Array.prototype.forEach.call(Reflect.ownKeys(t.prototype),(function(o){if(!Reflect.getOwnPropertyDescriptor(e.prototype,o)){var i=Reflect.getOwnPropertyDescriptor(t.prototype,o);if("function"==typeof i.value&&0===i.value.length&&Symbol.iterator in(Function.prototype.call.call(i.value,n)||{})){var a=b(i.value);null==r&&(r=b(a(n).next));var c=g(a,r);i.value=function(){return new c(this)}}Reflect.defineProperty(e.prototype,o,i)}}))}else h(t.prototype,e.prototype);return h(t,e),Object.setPrototypeOf(e.prototype,null),Object.freeze(e.prototype),Object.freeze(e),e},m=Function.prototype.call.bind(String.prototype[Symbol.iterator]),S=Reflect.getPrototypeOf(m(""));if(t.exports={makeSafe:v,internalBinding:function(t){if("config"===t)return{hasIntl:!1};throw new Error('unknown module: "'.concat(t,'"'))},Array,ArrayIsArray:Array.isArray,ArrayPrototypeFilter:Function.prototype.call.bind(Array.prototype.filter),ArrayPrototypeForEach:Function.prototype.call.bind(Array.prototype.forEach),ArrayPrototypeIncludes:Function.prototype.call.bind(Array.prototype.includes),ArrayPrototypeIndexOf:Function.prototype.call.bind(Array.prototype.indexOf),ArrayPrototypeJoin:Function.prototype.call.bind(Array.prototype.join),ArrayPrototypeMap:Function.prototype.call.bind(Array.prototype.map),ArrayPrototypePop:Function.prototype.call.bind(Array.prototype.pop),ArrayPrototypePush:Function.prototype.call.bind(Array.prototype.push),ArrayPrototypePushApply:Function.apply.bind(Array.prototype.push),ArrayPrototypeSlice:Function.prototype.call.bind(Array.prototype.slice),ArrayPrototypeSort:Function.prototype.call.bind(Array.prototype.sort),ArrayPrototypeSplice:Function.prototype.call.bind(Array.prototype.splice),ArrayPrototypeUnshift:Function.prototype.call.bind(Array.prototype.unshift),BigIntPrototypeValueOf:Function.prototype.call.bind(BigInt.prototype.valueOf),BooleanPrototypeValueOf:Function.prototype.call.bind(Boolean.prototype.valueOf),DatePrototypeGetTime:Function.prototype.call.bind(Date.prototype.getTime),DatePrototypeToISOString:Function.prototype.call.bind(Date.prototype.toISOString),DatePrototypeToString:Function.prototype.call.bind(Date.prototype.toString),ErrorCaptureStackTrace:function(t){var e=(new Error).stack;t.stack=e.replace(/.*\n.*/,"$1")},ErrorPrototypeToString:Function.prototype.call.bind(Error.prototype.toString),FunctionPrototypeBind:Function.prototype.call.bind(Function.prototype.bind),FunctionPrototypeCall:Function.prototype.call.bind(Function.prototype.call),FunctionPrototypeToString:Function.prototype.call.bind(Function.prototype.toString),globalThis:"undefined"==typeof globalThis?r.g:globalThis,JSONStringify:JSON.stringify,MapPrototypeGetSize:d(Map,"size"),MapPrototypeEntries:Function.prototype.call.bind(Map.prototype.entries),MathFloor:Math.floor,MathMax:Math.max,MathMin:Math.min,MathRound:Math.round,MathSqrt:Math.sqrt,MathTrunc:Math.trunc,Number,NumberIsFinite:Number.isFinite,NumberIsNaN:Number.isNaN,NumberParseFloat:Number.parseFloat,NumberParseInt:Number.parseInt,NumberPrototypeToString:Function.prototype.call.bind(Number.prototype.toString),NumberPrototypeValueOf:Function.prototype.call.bind(Number.prototype.valueOf),Object,ObjectAssign:Object.assign,ObjectCreate:Object.create,ObjectDefineProperty:Object.defineProperty,ObjectGetOwnPropertyDescriptor:Object.getOwnPropertyDescriptor,ObjectGetOwnPropertyNames:Object.getOwnPropertyNames,ObjectGetOwnPropertySymbols:Object.getOwnPropertySymbols,ObjectGetPrototypeOf:Object.getPrototypeOf,ObjectIs:Object.is,ObjectKeys:Object.keys,ObjectPrototypeHasOwnProperty:Function.prototype.call.bind(Object.prototype.hasOwnProperty),ObjectPrototypePropertyIsEnumerable:Function.prototype.call.bind(Object.prototype.propertyIsEnumerable),ObjectSeal:Object.seal,ObjectSetPrototypeOf:Object.setPrototypeOf,ReflectApply:Reflect.apply,ReflectOwnKeys:Reflect.ownKeys,RegExp,RegExpPrototypeExec:Function.prototype.call.bind(RegExp.prototype.exec),RegExpPrototypeSymbolReplace:Function.prototype.call.bind(RegExp.prototype[Symbol.replace]),RegExpPrototypeSymbolSplit:Function.prototype.call.bind(RegExp.prototype[Symbol.split]),RegExpPrototypeTest:Function.prototype.call.bind(RegExp.prototype.test),RegExpPrototypeToString:Function.prototype.call.bind(RegExp.prototype.toString),SafeStringIterator:g(m,Function.prototype.call.bind(S.next)),SafeMap:v(Map,function(t){function e(t){return p(this,e),o(this,e,[t])}return i(e,t),y(e)}(a(Map))),SafeSet:v(Set,function(t){function e(t){return p(this,e),o(this,e,[t])}return i(e,t),y(e)}(a(Set))),SetPrototypeGetSize:d(Set,"size"),SetPrototypeValues:Function.prototype.call.bind(Set.prototype.values),String,StringPrototypeCharCodeAt:Function.prototype.call.bind(String.prototype.charCodeAt),StringPrototypeCodePointAt:Function.prototype.call.bind(String.prototype.codePointAt),StringPrototypeEndsWith:Function.prototype.call.bind(String.prototype.endsWith),StringPrototypeIncludes:Function.prototype.call.bind(String.prototype.includes),StringPrototypeIndexOf:Function.prototype.call.bind(String.prototype.indexOf),StringPrototypeLastIndexOf:Function.prototype.call.bind(String.prototype.lastIndexOf),StringPrototypeNormalize:Function.prototype.call.bind(String.prototype.normalize),StringPrototypePadEnd:Function.prototype.call.bind(String.prototype.padEnd),StringPrototypePadStart:Function.prototype.call.bind(String.prototype.padStart),StringPrototypeRepeat:Function.prototype.call.bind(String.prototype.repeat),StringPrototypeReplace:Function.prototype.call.bind(String.prototype.replace),StringPrototypeReplaceAll:Function.prototype.call.bind(String.prototype.replaceAll),StringPrototypeSlice:Function.prototype.call.bind(String.prototype.slice),StringPrototypeSplit:Function.prototype.call.bind(String.prototype.split),StringPrototypeStartsWith:Function.prototype.call.bind(String.prototype.startsWith),StringPrototypeToLowerCase:Function.prototype.call.bind(String.prototype.toLowerCase),StringPrototypeTrim:Function.prototype.call.bind(String.prototype.trim),StringPrototypeValueOf:Function.prototype.call.bind(String.prototype.valueOf),SymbolPrototypeToString:Function.prototype.call.bind(Symbol.prototype.toString),SymbolPrototypeValueOf:Function.prototype.call.bind(Symbol.prototype.valueOf),SymbolIterator:Symbol.iterator,SymbolFor:Symbol.for,SymbolToStringTag:Symbol.toStringTag,TypedArrayPrototypeGetLength:("length",function(t){return t.constructor.prototype.__lookupGetter__("length").call(t)}),Uint8Array,uncurryThis:b},!String.prototype.replaceAll){var P=function(t){if(null==t)throw new TypeError("Can't call method on "+t);return t},x=function(t,e,r,n,o,i){var a=r+t.length,c=n.length,l=/\$([$&'`]|\d{1,2})/;return void 0!==o&&(o=Object(P(o)),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g),i.replace(l,(function(i,l){var u;switch(l.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":u=o[l.slice(1,-1)];break;default:var p=+l;if(0===p)return i;if(p>c){var f=Math.floor(p/10);return 0===f?i:f<=c?void 0===n[f-1]?l.charAt(1):n[f-1]+l.charAt(1):i}u=n[p-1]}return void 0===u?"":u}))};t.exports.StringPrototypeReplaceAll=function(t,e,r){var n,o,i=P(t),a=0,c=0,l="";if(null!=e){if(e instanceof RegExp&&!~e.flags.indexOf("g"))throw new TypeError("`.replaceAll` does not allow non-global regexes");if(n=e[Symbol.replace])return n.call(e,i,r)}var u=String(i),p=String(e),f="function"==typeof r;f||(r=String(r));var y=p.length,s=Math.max(1,y);for(a=u.indexOf(p,0);-1!==a;)o=f?String(r(p,a,u)):x(p,u,a,[],void 0,r),l+=u.slice(c,a)+o,c=a+y,a=u.indexOf(p,a+s);return c<u.length&&(l+=u.slice(c)),l}}},975:t=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function n(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(r)?r:r+""}var o=new WeakMap,i=function(){return t=function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=new Proxy(e,r);return o.set(n,[e,r]),n},e=[{key:"getProxyDetails",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=o.get(t);if(r)return e?r:r[0]}},{key:"revocable",value:function(t,e){var r=Proxy.revocable(t,e);o.set(r.proxy,[t,e]);var n=r.revoke;return r.revoke=function(){o.set(r.proxy,[null,null]),n()},r}}],null&&0,e&&r(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();t.exports={getProxyDetails:i.getProxyDetails.bind(i),Proxy:i}},763:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var a=r(975),c=Symbol("kPending"),l=Symbol("kRejected");t.exports={constants:{kPending:c,kRejected:l,ALL_PROPERTIES:0,ONLY_ENUMERABLE:2},getOwnNonIndexProperties:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=Object.getOwnPropertyDescriptors(t),n=[],i=0,a=Object.entries(r);i<a.length;i++){var c=(p=a[i],f=2,function(t){if(Array.isArray(t))return t}(p)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(p,f)||o(p,f)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=c[0],u=c[1];if(!/^(0|[1-9][0-9]*)$/.test(l)||parseInt(l,10)>=Math.pow(2,32)-1){if(2===e&&!u.enumerable)continue;n.push(l)}}var p,f,y,s=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=o(t))){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return c=t.done,t},e:function(t){l=!0,a=t},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw a}}}}(Object.getOwnPropertySymbols(t));try{for(s.s();!(y=s.n()).done;){var g=y.value,d=Object.getOwnPropertyDescriptor(t,g);(2!==e||d.enumerable)&&n.push(g)}}catch(t){s.e(t)}finally{s.f()}return n},getPromiseDetails:function(){return[c,void 0]},getProxyDetails:a.getProxyDetails,Proxy:a.Proxy,previewEntries:function(t){return[[],!1]},getConstructorName:function(t){if(!t||"object"!==n(t))throw new Error("Invalid object");if(t.constructor&&t.constructor.name)return t.constructor.name;var e=Object.prototype.toString.call(t).match(/^\[object ([^\]]+)\]/);return e?e[1]:"Object"},getExternalValue:function(){return BigInt(0)}}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(339)})()));
2128
+
2129
+ /***/ }),
2130
+
1883
2131
  /***/ "./node_modules/vanillatoasts/vanillatoasts.js":
1884
2132
  /*!*****************************************************!*\
1885
2133
  !*** ./node_modules/vanillatoasts/vanillatoasts.js ***!
@@ -2096,6 +2344,17 @@ module.exports = "<div class=\"charts\">\n <h1>Charts</h1>\n <div>\n Descri
2096
2344
 
2097
2345
  /***/ }),
2098
2346
 
2347
+ /***/ "./frontend/src/create-dashboard/create-dashboard.html":
2348
+ /*!*************************************************************!*\
2349
+ !*** ./frontend/src/create-dashboard/create-dashboard.html ***!
2350
+ \*************************************************************/
2351
+ /***/ ((module) => {
2352
+
2353
+ "use strict";
2354
+ module.exports = "<div>\n <div class=\"mt-4 text-gray-900 font-semibold\">\n Create New Dashboard\n </div>\n <div class=\"mt-4\">\n <label class=\"block text-sm font-medium leading-6 text-gray-900\">Title</label>\n <div class=\"mt-2\">\n <div class=\"w-full flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-teal-600\">\n <input type=\"text\" v-model=\"title\" class=\"outline-none block flex-1 border-0 bg-transparent py-1.5 pl-1 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6\" placeholder=\"ACME-123\">\n </div>\n </div>\n </div>\n <div class=\"my-4\">\n <label class=\"block text-sm font-medium leading-6 text-gray-900\">Code</label>\n <div class=\"border border-gray-200\">\n <textarea class=\"p-2 h-[300px] w-full\" ref=\"codeEditor\"></textarea>\n </div>\n </div>\n <async-button\n @click=\"createDashboard()\"\n class=\"rounded-md bg-teal-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">\n Submit\n </async-button>\n <div v-if=\"errors.length > 0\" class=\"rounded-md bg-red-50 p-4 mt-1\">\n <div class=\"flex\">\n <div class=\"flex-shrink-0\">\n <svg class=\"h-5 w-5 text-red-400\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path fill-rule=\"evenodd\" d=\"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z\" clip-rule=\"evenodd\" />\n </svg>\n </div>\n <div class=\"ml-3\">\n <h3 class=\"text-sm font-medium text-red-800\">There were {{errors.length}} errors with your submission</h3>\n <div class=\"mt-2 text-sm text-red-700\">\n <ul role=\"list\" class=\"list-disc space-y-1 pl-5\">\n <li v-for=\"error in errors\">\n {{error}}\n </li>\n </ul>\n </div>\n </div>\n </div>\n </div>\n</div>";
2355
+
2356
+ /***/ }),
2357
+
2099
2358
  /***/ "./frontend/src/create-document/create-document.css":
2100
2359
  /*!**********************************************************!*\
2101
2360
  !*** ./frontend/src/create-document/create-document.css ***!
@@ -2118,6 +2377,50 @@ module.exports = "<div>\n <div class=\"mb-2\">\n <textarea class=\"border bo
2118
2377
 
2119
2378
  /***/ }),
2120
2379
 
2380
+ /***/ "./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.html":
2381
+ /*!****************************************************************************!*\
2382
+ !*** ./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.html ***!
2383
+ \****************************************************************************/
2384
+ /***/ ((module) => {
2385
+
2386
+ "use strict";
2387
+ module.exports = "<div class=\"py-2\">\n <div v-if=\"header\" class=\"border-b border-gray-100 px-2 pb-2 text-xl font-bold\">\n {{header}}\n </div>\n <div class=\"text-xl py-2\">\n <canvas ref=\"chart\"></canvas>\n </div>\n</div>";
2388
+
2389
+ /***/ }),
2390
+
2391
+ /***/ "./frontend/src/dashboard-result/dashboard-document/dashboard-document.html":
2392
+ /*!**********************************************************************************!*\
2393
+ !*** ./frontend/src/dashboard-result/dashboard-document/dashboard-document.html ***!
2394
+ \**********************************************************************************/
2395
+ /***/ ((module) => {
2396
+
2397
+ "use strict";
2398
+ module.exports = "<div class=\"py-2\">\n <div v-if=\"header\" class=\"border-b border-gray-100 px-2 pb-2 text-xl font-bold\">\n {{header}}\n </div>\n <div class=\"text-xl pb-2\">\n <document-details :document=\"value.$document.document\" :schemaPaths=\"schemaPaths\" />\n </div>\n</div>";
2399
+
2400
+ /***/ }),
2401
+
2402
+ /***/ "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html":
2403
+ /*!************************************************************************************!*\
2404
+ !*** ./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.html ***!
2405
+ \************************************************************************************/
2406
+ /***/ ((module) => {
2407
+
2408
+ "use strict";
2409
+ module.exports = "<div class=\"py-2\">\n <div v-if=\"header\" class=\"border-b border-gray-100 px-2 pb-2 text-xl font-bold\">\n {{header}}\n </div>\n <div class=\"text-xl p-2\">\n {{displayValue}}\n </div>\n</div>";
2410
+
2411
+ /***/ }),
2412
+
2413
+ /***/ "./frontend/src/dashboard-result/dashboard-result.html":
2414
+ /*!*************************************************************!*\
2415
+ !*** ./frontend/src/dashboard-result/dashboard-result.html ***!
2416
+ \*************************************************************/
2417
+ /***/ ((module) => {
2418
+
2419
+ "use strict";
2420
+ module.exports = "<div>\n <div v-if=\"Array.isArray(result)\">\n <div v-for=\"el in result\">\n <component\n class=\"bg-white shadow-sm ring-1 ring-gray-900/5 sm:rounded-xl\"\n :is=\"getComponentForValue(res)\"\n :value=\"res\">\n </component>\n </div>\n </div>\n <div v-else>\n <component\n class=\"bg-white shadow-sm ring-1 ring-gray-900/5 sm:rounded-xl\"\n :is=\"getComponentForValue(result)\"\n :value=\"result\">\n </component>\n </div>\n</div>";
2421
+
2422
+ /***/ }),
2423
+
2121
2424
  /***/ "./frontend/src/dashboard/dashboard.html":
2122
2425
  /*!***********************************************!*\
2123
2426
  !*** ./frontend/src/dashboard/dashboard.html ***!
@@ -2125,7 +2428,7 @@ module.exports = "<div>\n <div class=\"mb-2\">\n <textarea class=\"border bo
2125
2428
  /***/ ((module) => {
2126
2429
 
2127
2430
  "use strict";
2128
- module.exports = "<div class=\"dashboard\">\n <div v-if=\"dashboard\">\n <div>\n <h2>{{name}}</h2>\n </div>\n <div>\n <pre>{{code}}</pre>\n <button v-if=\"!showEditor\" @click=\"toggleEditor\" style=\"color: black;margin-right: 0.5em\">Edit</button>\n </div>\n <div v-if=\"showEditor\">\n <edit-dashboard :dashboardId=\"dashboard._id\" :code=\"code\" @close=\"showEditor=false;\" @update=\"updateCode\"></edit-dashboard>\n </div>\n </div>\n <div v-if=\"!dashboard && status === 'loaded'\">\n No dashboard with the given id could be found.\n </div>\n</div>";
2431
+ module.exports = "<div class=\"dashboard px-1\">\n <div v-if=\"dashboard\" class=\"max-w-5xl mx-auto\">\n <div class=\"flex items-center w-full\">\n <h2 class=\"mt-4 mb-4 text-gray-900 font-semibold text-xl grow shrink\">{{dashboard.title}}</h2>\n <div>\n <button\n v-if=\"!showEditor\"\n @click=\"showEditor = true\"\n type=\"button\"\n class=\"rounded-md bg-teal-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">\n <img src=\"images/edit.svg\" class=\"inline h-[1em]\" /> Edit\n </button>\n </div>\n </div>\n <div v-if=\"!showEditor\" class=\"mt-4 mb-4\">\n <dashboard-result :result=\"result\"></dashboard-result>\n </div>\n <div v-if=\"showEditor\">\n <edit-dashboard :dashboardId=\"dashboard._id\" :code=\"code\" @close=\"showEditor=false;\" @update=\"updateCode\"></edit-dashboard>\n </div>\n \n </div>\n <div v-if=\"!dashboard && status === 'loaded'\">\n No dashboard with the given id could be found.\n </div>\n</div>";
2129
2432
 
2130
2433
  /***/ }),
2131
2434
 
@@ -2147,7 +2450,7 @@ module.exports = "<div>\n <textarea ref=\"codeEditor\">{{code}}</textarea>\n
2147
2450
  /***/ ((module) => {
2148
2451
 
2149
2452
  "use strict";
2150
- module.exports = "<div class=\"dashboards\">\n <div v-for=\"dashboard in dashboards\" :key=\"dashboard._id\" @click=\"$router.push('dashboard?dashboardId=' + dashboard._id)\">\n {{dashboard.name}}, ID: {{ dashboard._id }}\n </div>\n</div>";
2453
+ module.exports = "<div class=\"dashboards max-w-5xl mx-auto mt-8\">\n <div v-if=\"status === 'loaded' && dashboards.length === 0\">\n <div class=\"text-center\">\n <h3 class=\"mt-2 text-sm font-semibold text-gray-900\">No dashboards yet</h3>\n <p class=\"mt-1 text-sm text-gray-500\">Get started by creating a new dashboard.</p>\n <div class=\"mt-6\">\n <button type=\"button\" class=\"inline-flex items-center rounded-md bg-teal-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">\n <svg class=\"-ml-0.5 mr-1.5 h-5 w-5\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M10.75 4.75a.75.75 0 00-1.5 0v4.5h-4.5a.75.75 0 000 1.5h4.5v4.5a.75.75 0 001.5 0v-4.5h4.5a.75.75 0 000-1.5h-4.5v-4.5z\" />\n </svg>\n New Dashboard\n </button>\n </div>\n </div>\n </div>\n\n\n <div class=\"px-4 sm:px-6 lg:px-8\">\n <div class=\"sm:flex sm:items-center\">\n <div class=\"sm:flex-auto\">\n <h1 class=\"text-base font-semibold leading-6 text-gray-900\">Dashboards</h1>\n </div>\n <div class=\"mt-4 sm:ml-16 sm:mt-0 sm:flex-none\">\n <button\n type=\"button\"\n @click=\"showCreateDashboardModal = true\"\n class=\"block rounded-md bg-teal-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">Create New Dashboard</button>\n </div>\n </div>\n <div class=\"mt-8 flow-root\">\n <div class=\"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8\">\n <div class=\"inline-block min-w-full py-2 align-middle\">\n <table class=\"min-w-full divide-y divide-gray-300\">\n <thead>\n <tr>\n <th scope=\"col\" class=\"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 lg:pl-8\">Title</th>\n <th scope=\"col\" class=\"px-3 py-3.5 text-left text-sm font-semibold text-gray-900 w-[50%]\">Description</th>\n <th scope=\"col\" class=\"relative py-3.5 pl-3 pr-4 sm:pr-6 lg:pr-8\">\n </th>\n <th scope=\"col\" class=\"relative py-3.5 pl-3 pr-4 sm:pr-6 lg:pr-8\">\n </th>\n </tr>\n </thead>\n <tbody class=\"divide-y divide-gray-200 bg-white\">\n <tr v-for=\"dashboard in dashboards\">\n <td class=\"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8\">{{dashboard.title}}</td>\n <td class=\"whitespace-nowrap px-3 py-4 text-sm text-gray-500 truncate w-[50%]\">{{dashboard.description}}</td>\n <td class=\"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6 lg:pr-8\">\n <router-link\n :to=\"'dashboard?edit=true&dashboardId=' + dashboard._id\"\n class=\"text-teal-600 hover:text-teal-900\">\n Edit\n </router-link>\n </td>\n <td class=\"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6 lg:pr-8\">\n <router-link\n :to=\"'dashboard?edit=true&dashboardId=' + dashboard._id\"\n class=\"text-teal-600 hover:text-teal-900\">\n View\n </router-link>\n </td>\n </tr>\n \n <!-- More people... -->\n </tbody>\n </table>\n </div>\n </div>\n </div>\n </div>\n\n <modal v-if=\"showCreateDashboardModal\">\n <template v-slot:body>\n <div class=\"modal-exit\" @click=\"showCreateDashboardModal = false;\">&times;</div>\n \n <create-dashboard></create-dashboard>\n </template>\n </modal>\n</div>";
2151
2454
 
2152
2455
  /***/ }),
2153
2456
 
@@ -2173,6 +2476,28 @@ module.exports = "<div>\n {{value}}\n</div>";
2173
2476
 
2174
2477
  /***/ }),
2175
2478
 
2479
+ /***/ "./frontend/src/document-details/document-details.css":
2480
+ /*!************************************************************!*\
2481
+ !*** ./frontend/src/document-details/document-details.css ***!
2482
+ \************************************************************/
2483
+ /***/ ((module) => {
2484
+
2485
+ "use strict";
2486
+ module.exports = ".document-details {\n width: 100%;\n}\n\n.document-details .value {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n\n.document-details .path-key {\n background-color: #f0f0f0;\n margin-bottom: 0.5em;\n}\n\n.document-details .path-type {\n color: rgba(0,0,0,.36);\n font-size: 0.8em;\n}";
2487
+
2488
+ /***/ }),
2489
+
2490
+ /***/ "./frontend/src/document-details/document-details.html":
2491
+ /*!*************************************************************!*\
2492
+ !*** ./frontend/src/document-details/document-details.html ***!
2493
+ \*************************************************************/
2494
+ /***/ ((module) => {
2495
+
2496
+ "use strict";
2497
+ module.exports = "<div class=\"document-details\">\n <div v-for=\"path in schemaPaths\" class=\"value\">\n <div class=\"path-key p-1\">\n {{path.path}}\n <span class=\"path-type\">\n ({{(path.instance || 'unknown').toLowerCase()}})\n </span> \n </div>\n <div v-if=\"editting && path.path !== '_id'\" class=\"pl-1\">\n <component\n :is=\"getEditComponentForPath(path)\"\n :value=\"getEditValueForPath(path)\"\n @input=\"changes[path.path] = $event; delete invalid[path.path];\"\n @error=\"invalid[path.path] = $event;\"\n >\n </component>\n </div>\n <div v-else class=\"pl-1\">\n <component :is=\"getComponentForPath(path)\" :value=\"getValueForPath(path.path)\"></component>\n </div>\n </div>\n <div v-for=\"path in virtuals\" class=\"mb-2\">\n <div class=\"p-1 mb-1 bg-slate-100\">\n {{path.name}}\n <span class=\"path-type\">\n (virtual)\n </span>\n </div>\n <div v-if=\"path.value == null\" class=\"text-sky-800\">\n {{'' + path.value}}\n </div>\n <div v-else>\n {{path.value}}\n </div>\n </div>\n</div>";
2498
+
2499
+ /***/ }),
2500
+
2176
2501
  /***/ "./frontend/src/document/confirm-changes/confirm-changes.html":
2177
2502
  /*!********************************************************************!*\
2178
2503
  !*** ./frontend/src/document/confirm-changes/confirm-changes.html ***!
@@ -2191,7 +2516,7 @@ module.exports = "<div>\n <h2>\n Are you sure you want to save the fol
2191
2516
  /***/ ((module) => {
2192
2517
 
2193
2518
  "use strict";
2194
- module.exports = ".document {\n max-width: 1200px;\n margin-left: auto;\n margin-right: auto;\n padding-top: 25px;\n}\n\n.document .value {\n padding-top: 10px;\n padding-bottom: 10px;\n}\n\n.document .path-key {\n background-color: #f0f0f0;\n padding: 0.25em;\n margin-bottom: 0.5em;\n}\n\n.document .path-type {\n color: rgba(0,0,0,.36);\n font-size: 0.8em;\n}\n\n.document .document-menu {\n display: flex;\n}\n\n.document .document-menu .left {\n flex-grow: 1;\n}\n\n.document .document-menu .right {\n flex-grow: 1;\n text-align: right;\n}\n\n.document .document-menu .right button:not(:last-child) {\n margin-right: 0.5em;\n}\n\n.document button img {\n height: 1em;\n}";
2519
+ module.exports = ".document {\n max-width: 1200px;\n margin-left: auto;\n margin-right: auto;\n padding-top: 25px;\n}\n\n.document .document-menu {\n display: flex;\n}\n\n.document .document-menu .left {\n flex-grow: 1;\n}\n\n.document .document-menu .right {\n flex-grow: 1;\n text-align: right;\n}\n\n.document .document-menu .right button:not(:last-child) {\n margin-right: 0.5em;\n}\n\n.document button img {\n height: 1em;\n}";
2195
2520
 
2196
2521
  /***/ }),
2197
2522
 
@@ -2202,7 +2527,7 @@ module.exports = ".document {\n max-width: 1200px;\n margin-left: auto;\n mar
2202
2527
  /***/ ((module) => {
2203
2528
 
2204
2529
  "use strict";
2205
- module.exports = "<div class=\"document\">\n <div class=\"document-menu\">\n <div class=\"left\">\n <button @click=\"$router.push('/model/' + this.model)\">\n &lsaquo; Back\n </button>\n </div>\n\n <div class=\"right\">\n <button\n v-if=\"!editting\"\n @click=\"editting = true\"\n type=\"button\"\n class=\"rounded-md bg-teal-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">\n <img src=\"images/edit.svg\" class=\"inline\" /> Edit\n </button>\n <button\n v-if=\"editting\"\n @click=\"editting = false\"\n type=\"button\"\n class=\"rounded-md bg-slate-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-slate-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-600\">\n &times; Cancel\n </button>\n <button\n v-if=\"editting\"\n @click=\"shouldShowConfirmModal=true;\"\n type=\"button\"\n class=\"rounded-md bg-green-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600\">\n <img src=\"images/save.svg\" class=\"inline\" /> Save\n </button>\n <button\n @click=\"remove\"\n type=\"button\"\n class=\"rounded-md bg-red-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600\">\n <img src=\"images/delete.svg\" class=\"inline\" /> Delete\n </button>\n </div>\n </div>\n <div v-if=\"status === 'loaded'\">\n <div v-for=\"path in schemaPaths\" class=\"value\">\n <div class=\"path-key\">\n {{path.path}}\n <span class=\"path-type\">\n ({{(path.instance || 'unknown').toLowerCase()}})\n </span> \n </div>\n <div v-if=\"editting && path.path !== '_id'\">\n <component\n :is=\"getEditComponentForPath(path)\"\n :value=\"getEditValueForPath(path)\"\n @input=\"changes[path.path] = $event; delete invalid[path.path];\"\n @error=\"invalid[path.path] = $event;\"\n >\n </component>\n </div>\n <div v-else>\n <component :is=\"getComponentForPath(path)\" :value=\"getValueForPath(path.path)\"></component>\n </div>\n </div>\n <div v-for=\"path in virtuals\" class=\"mb-2\">\n <div class=\"p-1 mb-1 bg-slate-100\">\n {{path.name}}\n <span class=\"path-type\">\n (virtual)\n </span>\n </div>\n <div v-if=\"path.value == null\" class=\"text-sky-800\">\n {{'' + path.value}}\n </div>\n <div v-else>\n {{path.value}}\n </div>\n </div>\n <modal v-if=\"shouldShowConfirmModal\">\n <template v-slot:body>\n <div class=\"modal-exit\" @click=\"shouldShowConfirmModal = false;\">&times;</div>\n <confirm-changes @close=\"shouldShowConfirmModal = false;\" @save=\"save\" :value=\"changes\"></confirm-changes>\n </template>\n </modal>\n </div>\n</div>\n";
2530
+ module.exports = "<div class=\"document\">\n <div class=\"document-menu\">\n <div class=\"left\">\n <button @click=\"$router.push('/model/' + this.model)\">\n &lsaquo; Back\n </button>\n </div>\n\n <div class=\"right\">\n <button\n v-if=\"!editting\"\n @click=\"editting = true\"\n type=\"button\"\n class=\"rounded-md bg-teal-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-teal-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-teal-600\">\n <img src=\"images/edit.svg\" class=\"inline\" /> Edit\n </button>\n <button\n v-if=\"editting\"\n @click=\"editting = false\"\n type=\"button\"\n class=\"rounded-md bg-slate-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-slate-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-600\">\n &times; Cancel\n </button>\n <button\n v-if=\"editting\"\n @click=\"shouldShowConfirmModal=true;\"\n type=\"button\"\n class=\"rounded-md bg-green-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600\">\n <img src=\"images/save.svg\" class=\"inline\" /> Save\n </button>\n <button\n @click=\"remove\"\n type=\"button\"\n class=\"rounded-md bg-red-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600\">\n <img src=\"images/delete.svg\" class=\"inline\" /> Delete\n </button>\n </div>\n </div>\n <div v-if=\"status === 'loaded'\">\n <document-details\n :document=\"document\"\n :schemaPaths=\"schemaPaths\"\n :editting=\"editting\"\n :changes=\"changes\"></document-details>\n <modal v-if=\"shouldShowConfirmModal\">\n <template v-slot:body>\n <div class=\"modal-exit\" @click=\"shouldShowConfirmModal = false;\">&times;</div>\n <confirm-changes @close=\"shouldShowConfirmModal = false;\" @save=\"save\" :value=\"changes\"></confirm-changes>\n </template>\n </modal>\n </div>\n</div>\n";
2206
2531
 
2207
2532
  /***/ }),
2208
2533
 
@@ -10123,6 +10448,10 @@ var __webpack_exports__ = {};
10123
10448
  \*******************************/
10124
10449
 
10125
10450
 
10451
+ if (typeof process === 'undefined') {
10452
+ __webpack_require__.g.process = { env: {} }; // To make `util` package work
10453
+ }
10454
+
10126
10455
  const vanillatoasts = __webpack_require__(/*! vanillatoasts */ "./node_modules/vanillatoasts/vanillatoasts.js");
10127
10456
 
10128
10457
  const app = Vue.createApp({
@@ -10131,14 +10460,20 @@ const app = Vue.createApp({
10131
10460
 
10132
10461
  __webpack_require__(/*! ./async-button/async-button */ "./frontend/src/async-button/async-button.js")(app);
10133
10462
  __webpack_require__(/*! ./charts/charts */ "./frontend/src/charts/charts.js")(app);
10463
+ __webpack_require__(/*! ./create-dashboard/create-dashboard */ "./frontend/src/create-dashboard/create-dashboard.js")(app);
10134
10464
  __webpack_require__(/*! ./create-document/create-document */ "./frontend/src/create-document/create-document.js")(app);
10135
10465
  __webpack_require__(/*! ./dashboards/dashboards */ "./frontend/src/dashboards/dashboards.js")(app);
10136
10466
  __webpack_require__(/*! ./dashboard/dashboard */ "./frontend/src/dashboard/dashboard.js")(app);
10467
+ __webpack_require__(/*! ./dashboard-result/dashboard-result */ "./frontend/src/dashboard-result/dashboard-result.js")(app);
10468
+ __webpack_require__(/*! ./dashboard-result/dashboard-chart/dashboard-chart */ "./frontend/src/dashboard-result/dashboard-chart/dashboard-chart.js")(app);
10469
+ __webpack_require__(/*! ./dashboard-result/dashboard-document/dashboard-document */ "./frontend/src/dashboard-result/dashboard-document/dashboard-document.js")(app);
10470
+ __webpack_require__(/*! ./dashboard-result/dashboard-primitive/dashboard-primitive */ "./frontend/src/dashboard-result/dashboard-primitive/dashboard-primitive.js")(app);
10137
10471
  __webpack_require__(/*! ./dashboard/edit-dashboard/edit-dashboard */ "./frontend/src/dashboard/edit-dashboard/edit-dashboard.js")(app)
10138
10472
  __webpack_require__(/*! ./detail-array/detail-array */ "./frontend/src/detail-array/detail-array.js")(app);
10139
10473
  __webpack_require__(/*! ./detail-default/detail-default */ "./frontend/src/detail-default/detail-default.js")(app);
10140
10474
  __webpack_require__(/*! ./document/document */ "./frontend/src/document/document.js")(app);
10141
10475
  __webpack_require__(/*! ./document/confirm-changes/confirm-changes */ "./frontend/src/document/confirm-changes/confirm-changes.js")(app);
10476
+ __webpack_require__(/*! ./document-details/document-details */ "./frontend/src/document-details/document-details.js")(app);
10142
10477
  __webpack_require__(/*! ./edit-array/edit-array */ "./frontend/src/edit-array/edit-array.js")(app);
10143
10478
  __webpack_require__(/*! ./edit-default/edit-default */ "./frontend/src/edit-default/edit-default.js")(app);
10144
10479
  __webpack_require__(/*! ./edit-number/edit-number */ "./frontend/src/edit-number/edit-number.js")(app);