@gramlot/gramlot 0.3.33 → 0.3.34

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 (79) hide show
  1. package/dist/components/audio/__init__.py +1 -1
  2. package/dist/components/audio/assets/collection.js +2 -2
  3. package/dist/components/audio/assets/index.js +1 -1
  4. package/dist/components/charts/__init__.py +2 -2
  5. package/dist/components/charts/assets/collection.js +10 -44
  6. package/dist/components/charts/assets/index.js +1 -1
  7. package/dist/components/charts/assets/modules/chunk-USZCUBTC.js +1 -0
  8. package/dist/components/charts/assets/modules/echarts-gl.min-N6L67H2M.js +4282 -0
  9. package/dist/components/charts/assets/modules/echarts.esm.min-VHLRZDVQ.js +61 -0
  10. package/dist/components/charts/assets/modules/{plotly.min-4LB7HE7P.js → plotly.min-SSDU2DOH.js} +1 -1
  11. package/dist/components/charts/assets/modules/{uPlot.esm-5JJNHHRF.js → uPlot.esm-Q2UYUQHJ.js} +1 -1
  12. package/dist/components/charts/assets/modules/{uPlot.min-N3E3FA74.js → uPlot.min-XXHNQFXH.js} +1 -1
  13. package/dist/components/charts/assets/modules/{vega.module-2QCOVQ3A.js → vega.module-Y5CWNSZO.js} +1 -1
  14. package/dist/components/chat/__init__.py +1 -1
  15. package/dist/components/chat/assets/collection.js +3 -3
  16. package/dist/components/chat/assets/index.js +1 -1
  17. package/dist/components/drawing/__init__.py +1 -1
  18. package/dist/components/drawing/assets/collection.js +3 -24
  19. package/dist/components/drawing/assets/index.js +1 -1
  20. package/dist/components/editors/__init__.py +2 -2
  21. package/dist/components/editors/assets/collection.js +2 -47
  22. package/dist/components/editors/assets/index.js +1 -1
  23. package/dist/components/editors/assets/modules/{jodit-engine-MTSA4GZ3.js → jodit-engine-CXRSFV47.js} +6 -6
  24. package/dist/components/grid/__init__.py +2 -2
  25. package/dist/components/grid/assets/collection.js +6 -28
  26. package/dist/components/grid/assets/index.js +1 -1
  27. package/dist/components/grid/assets/modules/{browser-LVJHKBBV.js → browser-Y2BRNI3P.js} +1 -1
  28. package/dist/components/grid/assets/modules/chunk-BLMUM44K.js +1 -0
  29. package/dist/components/grouplets/__init__.py +1 -1
  30. package/dist/components/grouplets/assets/collection.js +3 -3
  31. package/dist/components/grouplets/assets/index.js +1 -1
  32. package/dist/components/inputs/__init__.py +1 -1
  33. package/dist/components/inputs/assets/collection.js +8 -65
  34. package/dist/components/inputs/assets/index.js +1 -1
  35. package/dist/components/layout/__init__.py +1 -1
  36. package/dist/components/layout/assets/collection.js +9 -30
  37. package/dist/components/layout/assets/index.js +1 -1
  38. package/dist/components/selection_trial/__init__.py +1 -1
  39. package/dist/components/selection_trial/assets/collection.js +3 -3
  40. package/dist/components/selection_trial/assets/index.js +1 -1
  41. package/dist/components/tree/__init__.py +1 -1
  42. package/dist/components/tree/assets/collection.js +6 -27
  43. package/dist/components/tree/assets/index.js +1 -1
  44. package/dist/components/typst/__init__.py +1 -1
  45. package/dist/components/typst/assets/collection.js +3 -3
  46. package/dist/components/typst/assets/index.js +1 -1
  47. package/dist/components/uploads/__init__.py +1 -1
  48. package/dist/components/uploads/assets/collection.js +3 -30
  49. package/dist/components/uploads/assets/index.js +1 -1
  50. package/dist/components/vizabi/__init__.py +1 -1
  51. package/dist/components/vizabi/assets/collection.js +3 -21
  52. package/dist/components/vizabi/assets/index.js +1 -1
  53. package/dist/gramlot.js +1577 -49
  54. package/dist/gramlot.min.js +49 -48
  55. package/dist/libraries.json +126 -0
  56. package/dist/runtime-notices.json +4 -0
  57. package/dist/standard-collections.js +1 -1
  58. package/package.json +2 -2
  59. package/src/components/chart-engines/echarts.js +10 -4
  60. package/src/components/chart-engines/plotly.js +3 -2
  61. package/src/components/chart-engines/uplot.js +5 -3
  62. package/src/components/chart-engines/vega.js +2 -1
  63. package/src/components/chart-gauge.js +7 -3
  64. package/src/components/chart-renderer.js +1 -1
  65. package/src/components/code-mirror.js +2 -1
  66. package/src/components/grid-tools.js +2 -1
  67. package/src/components/html-editor.js +2 -1
  68. package/src/components/markdown-editor.js +2 -1
  69. package/src/components/typst-preview.js +2 -1
  70. package/src/index.d.ts +16 -0
  71. package/src/index.js +5 -0
  72. package/src/libraries.js +83 -0
  73. package/src/server/gramlot-server.d.ts +8 -0
  74. package/src/server/gramlot-server.js +40 -4
  75. package/src/shared-modules.js +79 -0
  76. package/dist/components/charts/assets/modules/chunk-2CCTLZE7.js +0 -76
  77. package/dist/components/charts/assets/modules/chunk-RMRBEYTI.js +0 -1
  78. package/dist/components/charts/assets/modules/echarts-gl-CXVTZA6G.js +0 -4409
  79. package/dist/components/grid/assets/modules/chunk-RMRBEYTI.js +0 -1
package/dist/gramlot.js CHANGED
@@ -5454,12 +5454,12 @@ var require_sax = __commonJS({
5454
5454
  var domBuilder = this.domBuilder;
5455
5455
  domBuilder.startDocument();
5456
5456
  _copy(defaultNSMap, defaultNSMap = /* @__PURE__ */ Object.create(null));
5457
- parse2(source, defaultNSMap, entityMap, domBuilder, this.errorHandler);
5457
+ parse3(source, defaultNSMap, entityMap, domBuilder, this.errorHandler);
5458
5458
  domBuilder.endDocument();
5459
5459
  }
5460
5460
  };
5461
5461
  var ENTITY_REG = /&#?\w+;?/g;
5462
- function parse2(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) {
5462
+ function parse3(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) {
5463
5463
  var isHTML = isHTMLMimeType(domBuilder.mimeType);
5464
5464
  if (source.indexOf(g.UNICODE_REPLACEMENT_CHARACTER) >= 0) {
5465
5465
  errorHandler.warning("Unicode replacement character detected, source encoding issues?");
@@ -6722,7 +6722,36 @@ var ServerAdapter = class {
6722
6722
  }
6723
6723
  };
6724
6724
 
6725
+ // node_modules/@genrojs/tytx/js/src/index.js
6726
+ var src_exports = {};
6727
+ __export(src_exports, {
6728
+ CONTENT_TYPES: () => CONTENT_TYPES,
6729
+ __version__: () => __version__,
6730
+ createDecimal: () => createDecimal,
6731
+ fetchTytx: () => fetchTytx,
6732
+ fromTytx: () => fromTytx,
6733
+ fromTytxIter: () => fromTytxIter,
6734
+ getDateType: () => getDateType,
6735
+ getDecimalLibrary: () => getDecimalLibrary,
6736
+ getRegisteredType: () => getRegisteredType,
6737
+ getSubtypeDict: () => getSubtypeDict,
6738
+ getTransport: () => getTransport,
6739
+ isDecimal: () => isDecimal2,
6740
+ registerClass: () => registerClass,
6741
+ registerSubtype: () => registerSubtype,
6742
+ registerType: () => registerType,
6743
+ setDecimalLibrary: () => setDecimalLibrary,
6744
+ setSubtypeDict: () => setSubtypeDict,
6745
+ toTytx: () => toTytx,
6746
+ toTytxIter: () => toTytxIter
6747
+ });
6748
+
6725
6749
  // node_modules/decimal.js/decimal.mjs
6750
+ var decimal_exports = {};
6751
+ __export(decimal_exports, {
6752
+ Decimal: () => Decimal,
6753
+ default: () => decimal_default
6754
+ });
6726
6755
  /*!
6727
6756
  * decimal.js v10.6.0
6728
6757
  * An arbitrary-precision Decimal type for JavaScript.
@@ -8923,35 +8952,35 @@ var P2 = {};
8923
8952
  var UNDEFINED = void 0;
8924
8953
  var NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
8925
8954
  function _Big_() {
8926
- function Big2(n) {
8955
+ function Big3(n) {
8927
8956
  var x = this;
8928
- if (!(x instanceof Big2)) return n === UNDEFINED ? _Big_() : new Big2(n);
8929
- if (n instanceof Big2) {
8957
+ if (!(x instanceof Big3)) return n === UNDEFINED ? _Big_() : new Big3(n);
8958
+ if (n instanceof Big3) {
8930
8959
  x.s = n.s;
8931
8960
  x.e = n.e;
8932
8961
  x.c = n.c.slice();
8933
8962
  } else {
8934
8963
  if (typeof n !== "string") {
8935
- if (Big2.strict === true && typeof n !== "bigint") {
8964
+ if (Big3.strict === true && typeof n !== "bigint") {
8936
8965
  throw TypeError(INVALID + "value");
8937
8966
  }
8938
8967
  n = n === 0 && 1 / n < 0 ? "-0" : String(n);
8939
8968
  }
8940
8969
  parse(x, n);
8941
8970
  }
8942
- x.constructor = Big2;
8971
+ x.constructor = Big3;
8943
8972
  }
8944
- Big2.prototype = P2;
8945
- Big2.DP = DP;
8946
- Big2.RM = RM;
8947
- Big2.NE = NE;
8948
- Big2.PE = PE;
8949
- Big2.strict = STRICT;
8950
- Big2.roundDown = 0;
8951
- Big2.roundHalfUp = 1;
8952
- Big2.roundHalfEven = 2;
8953
- Big2.roundUp = 3;
8954
- return Big2;
8973
+ Big3.prototype = P2;
8974
+ Big3.DP = DP;
8975
+ Big3.RM = RM;
8976
+ Big3.NE = NE;
8977
+ Big3.PE = PE;
8978
+ Big3.strict = STRICT;
8979
+ Big3.roundDown = 0;
8980
+ Big3.roundHalfUp = 1;
8981
+ Big3.roundHalfEven = 2;
8982
+ Big3.roundUp = 3;
8983
+ return Big3;
8955
8984
  }
8956
8985
  function parse(x, n) {
8957
8986
  var e, i, nl;
@@ -9047,7 +9076,7 @@ P2.cmp = function(y) {
9047
9076
  return k == l ? 0 : k > l ^ isneg ? 1 : -1;
9048
9077
  };
9049
9078
  P2.div = function(y) {
9050
- var x = this, Big2 = x.constructor, a = x.c, b = (y = new Big2(y)).c, k = x.s == y.s ? 1 : -1, dp = Big2.DP;
9079
+ var x = this, Big3 = x.constructor, a = x.c, b = (y = new Big3(y)).c, k = x.s == y.s ? 1 : -1, dp = Big3.DP;
9051
9080
  if (dp !== ~~dp || dp < 0 || dp > MAX_DP) {
9052
9081
  throw Error(INVALID_DP);
9053
9082
  }
@@ -9100,7 +9129,7 @@ P2.div = function(y) {
9100
9129
  q.e--;
9101
9130
  p--;
9102
9131
  }
9103
- if (qi > p) round2(q, p, Big2.RM, r[0] !== UNDEFINED);
9132
+ if (qi > p) round2(q, p, Big3.RM, r[0] !== UNDEFINED);
9104
9133
  return q;
9105
9134
  };
9106
9135
  P2.eq = function(y) {
@@ -9119,7 +9148,7 @@ P2.lte = function(y) {
9119
9148
  return this.cmp(y) < 1;
9120
9149
  };
9121
9150
  P2.minus = P2.sub = function(y) {
9122
- var i, j, t, xlty, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
9151
+ var i, j, t, xlty, x = this, Big3 = x.constructor, a = x.s, b = (y = new Big3(y)).s;
9123
9152
  if (a != b) {
9124
9153
  y.s = -b;
9125
9154
  return x.plus(y);
@@ -9129,7 +9158,7 @@ P2.minus = P2.sub = function(y) {
9129
9158
  if (yc[0]) {
9130
9159
  y.s = -b;
9131
9160
  } else if (xc[0]) {
9132
- y = new Big2(x);
9161
+ y = new Big3(x);
9133
9162
  } else {
9134
9163
  y.s = 1;
9135
9164
  }
@@ -9184,7 +9213,7 @@ P2.minus = P2.sub = function(y) {
9184
9213
  return y;
9185
9214
  };
9186
9215
  P2.mod = function(y) {
9187
- var ygtx, x = this, Big2 = x.constructor, a = x.s, b = (y = new Big2(y)).s;
9216
+ var ygtx, x = this, Big3 = x.constructor, a = x.s, b = (y = new Big3(y)).s;
9188
9217
  if (!y.c[0]) {
9189
9218
  throw Error(DIV_BY_ZERO);
9190
9219
  }
@@ -9192,13 +9221,13 @@ P2.mod = function(y) {
9192
9221
  ygtx = y.cmp(x) == 1;
9193
9222
  x.s = a;
9194
9223
  y.s = b;
9195
- if (ygtx) return new Big2(x);
9196
- a = Big2.DP;
9197
- b = Big2.RM;
9198
- Big2.DP = Big2.RM = 0;
9224
+ if (ygtx) return new Big3(x);
9225
+ a = Big3.DP;
9226
+ b = Big3.RM;
9227
+ Big3.DP = Big3.RM = 0;
9199
9228
  x = x.div(y);
9200
- Big2.DP = a;
9201
- Big2.RM = b;
9229
+ Big3.DP = a;
9230
+ Big3.RM = b;
9202
9231
  return this.minus(x.times(y));
9203
9232
  };
9204
9233
  P2.neg = function() {
@@ -9207,8 +9236,8 @@ P2.neg = function() {
9207
9236
  return x;
9208
9237
  };
9209
9238
  P2.plus = P2.add = function(y) {
9210
- var e, k, t, x = this, Big2 = x.constructor;
9211
- y = new Big2(y);
9239
+ var e, k, t, x = this, Big3 = x.constructor;
9240
+ y = new Big3(y);
9212
9241
  if (x.s != y.s) {
9213
9242
  y.s = -y.s;
9214
9243
  return x.minus(y);
@@ -9217,7 +9246,7 @@ P2.plus = P2.add = function(y) {
9217
9246
  if (!xc[0] || !yc[0]) {
9218
9247
  if (!yc[0]) {
9219
9248
  if (xc[0]) {
9220
- y = new Big2(x);
9249
+ y = new Big3(x);
9221
9250
  } else {
9222
9251
  y.s = x.s;
9223
9252
  }
@@ -9281,8 +9310,8 @@ P2.round = function(dp, rm) {
9281
9310
  return round2(new this.constructor(this), dp + this.e + 1, rm);
9282
9311
  };
9283
9312
  P2.sqrt = function() {
9284
- var r, c, t, x = this, Big2 = x.constructor, s = x.s, e = x.e, half = new Big2("0.5");
9285
- if (!x.c[0]) return new Big2(x);
9313
+ var r, c, t, x = this, Big3 = x.constructor, s = x.s, e = x.e, half = new Big3("0.5");
9314
+ if (!x.c[0]) return new Big3(x);
9286
9315
  if (s < 0) {
9287
9316
  throw Error(NAME + "No square root");
9288
9317
  }
@@ -9292,19 +9321,19 @@ P2.sqrt = function() {
9292
9321
  if (!(c.length + e & 1)) c += "0";
9293
9322
  s = Math.sqrt(c);
9294
9323
  e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
9295
- r = new Big2((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
9324
+ r = new Big3((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
9296
9325
  } else {
9297
- r = new Big2(s + "");
9326
+ r = new Big3(s + "");
9298
9327
  }
9299
- e = r.e + (Big2.DP += 4);
9328
+ e = r.e + (Big3.DP += 4);
9300
9329
  do {
9301
9330
  t = r;
9302
9331
  r = half.times(t.plus(x.div(t)));
9303
9332
  } while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
9304
- return round2(r, (Big2.DP -= 4) + r.e + 1, Big2.RM);
9333
+ return round2(r, (Big3.DP -= 4) + r.e + 1, Big3.RM);
9305
9334
  };
9306
9335
  P2.times = P2.mul = function(y) {
9307
- var c, x = this, Big2 = x.constructor, xc = x.c, yc = (y = new Big2(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
9336
+ var c, x = this, Big3 = x.constructor, xc = x.c, yc = (y = new Big3(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
9308
9337
  y.s = x.s == y.s ? 1 : -1;
9309
9338
  if (!xc[0] || !yc[0]) {
9310
9339
  y.c = [y.e = 0];
@@ -9358,8 +9387,8 @@ P2.toFixed = function(dp, rm) {
9358
9387
  return stringify(x, false, !!n);
9359
9388
  };
9360
9389
  P2[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = P2.toJSON = P2.toString = function() {
9361
- var x = this, Big2 = x.constructor;
9362
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, !!x.c[0]);
9390
+ var x = this, Big3 = x.constructor;
9391
+ return stringify(x, x.e <= Big3.NE || x.e >= Big3.PE, !!x.c[0]);
9363
9392
  };
9364
9393
  P2.toNumber = function() {
9365
9394
  var n = +stringify(this, true, true);
@@ -9369,22 +9398,22 @@ P2.toNumber = function() {
9369
9398
  return n;
9370
9399
  };
9371
9400
  P2.toPrecision = function(sd, rm) {
9372
- var x = this, Big2 = x.constructor, n = x.c[0];
9401
+ var x = this, Big3 = x.constructor, n = x.c[0];
9373
9402
  if (sd !== UNDEFINED) {
9374
9403
  if (sd !== ~~sd || sd < 1 || sd > MAX_DP) {
9375
9404
  throw Error(INVALID + "precision");
9376
9405
  }
9377
- x = round2(new Big2(x), sd, rm);
9406
+ x = round2(new Big3(x), sd, rm);
9378
9407
  for (; x.c.length < sd; ) x.c.push(0);
9379
9408
  }
9380
- return stringify(x, sd <= x.e || x.e <= Big2.NE || x.e >= Big2.PE, !!n);
9409
+ return stringify(x, sd <= x.e || x.e <= Big3.NE || x.e >= Big3.PE, !!n);
9381
9410
  };
9382
9411
  P2.valueOf = function() {
9383
- var x = this, Big2 = x.constructor;
9384
- if (Big2.strict === true) {
9412
+ var x = this, Big3 = x.constructor;
9413
+ if (Big3.strict === true) {
9385
9414
  throw Error(NAME + "valueOf disallowed");
9386
9415
  }
9387
- return stringify(x, x.e <= Big2.NE || x.e >= Big2.PE, true);
9416
+ return stringify(x, x.e <= Big3.NE || x.e >= Big3.PE, true);
9388
9417
  };
9389
9418
  var Big = _Big_();
9390
9419
  var big_default = Big;
@@ -11140,6 +11169,16 @@ function toTytx(value, transport = null, { raw = false, qs = false, _forceSuffix
11140
11169
  throw new Error(`Unknown transport: ${transport}`);
11141
11170
  }
11142
11171
  }
11172
+ function toTytxIter(records) {
11173
+ if (Symbol.asyncIterator in records) {
11174
+ return (async function* encodeAsync() {
11175
+ for await (const record2 of records) yield _preprocessValue(record2)[0];
11176
+ })();
11177
+ }
11178
+ return (function* encode2() {
11179
+ for (const record2 of records) yield _preprocessValue(record2)[0];
11180
+ })();
11181
+ }
11143
11182
 
11144
11183
  // node_modules/@genrojs/tytx/js/src/xml.js
11145
11184
  var DOMParser3;
@@ -11366,6 +11405,18 @@ function fromQs(data) {
11366
11405
  // node_modules/@genrojs/tytx/js/src/registry.js
11367
11406
  var DecimalClass = DecimalJS || BigJS || Number;
11368
11407
  var decimalLibrary = DecimalJS ? "decimal.js" : BigJS ? "big.js" : "number";
11408
+ function setDecimalLibrary(name) {
11409
+ if (name === "decimal.js" && DecimalJS) {
11410
+ DecimalClass = DecimalJS;
11411
+ decimalLibrary = "decimal.js";
11412
+ } else if (name === "big.js" && BigJS) {
11413
+ DecimalClass = BigJS;
11414
+ decimalLibrary = "big.js";
11415
+ } else {
11416
+ DecimalClass = Number;
11417
+ decimalLibrary = "number";
11418
+ }
11419
+ }
11369
11420
  function getDecimalLibrary() {
11370
11421
  return decimalLibrary;
11371
11422
  }
@@ -11548,12 +11599,134 @@ function registerType(cls, suffix, serializer, deserializer, jsonNative = false)
11548
11599
  CUSTOM_TYPES.push([cls, suffix, serializer, jsonNative]);
11549
11600
  SUFFIX_TO_TYPE[suffix] = [cls, deserializer];
11550
11601
  }
11602
+ function registerClass(cls) {
11603
+ if (!cls.tytxSuffix) {
11604
+ throw new Error(`registerClass: ${cls.name} is missing a static tytxSuffix`);
11605
+ }
11606
+ if (typeof cls.prototype?.toTytx !== "function") {
11607
+ throw new Error(`registerClass: ${cls.name} is missing a toTytx method`);
11608
+ }
11609
+ if (typeof cls.fromTytx !== "function") {
11610
+ throw new Error(`registerClass: ${cls.name} is missing a static fromTytx method`);
11611
+ }
11612
+ registerType(
11613
+ cls,
11614
+ cls.tytxSuffix,
11615
+ (obj) => obj.toTytx(),
11616
+ (s) => cls.fromTytx(s),
11617
+ cls.tytxJsonNative || false
11618
+ );
11619
+ return cls;
11620
+ }
11551
11621
  function setSubtypeDict(suffix, subtypes) {
11552
11622
  SUBTYPE_DICTS.set(suffix, subtypes);
11553
11623
  }
11554
11624
  function getSubtypeDict(suffix) {
11555
11625
  return SUBTYPE_DICTS.has(suffix) ? SUBTYPE_DICTS.get(suffix) : {};
11556
11626
  }
11627
+ function registerSubtype(suffix, cls, name = cls.name) {
11628
+ const subtypes = getSubtypeDict(suffix);
11629
+ if ((subtypes[name] ?? cls) !== cls) {
11630
+ throw new Error(
11631
+ `TYTX subtype name '${name}' is already registered for suffix '${suffix}' by ${subtypes[name].name}`
11632
+ );
11633
+ }
11634
+ setSubtypeDict(suffix, { ...subtypes, [name]: cls });
11635
+ }
11636
+
11637
+ // node_modules/@genrojs/tytx/js/src/http.js
11638
+ var CONTENT_TYPES = {
11639
+ json: "application/json",
11640
+ xml: "application/xml",
11641
+ msgpack: "application/msgpack"
11642
+ };
11643
+ function getTransport(contentType) {
11644
+ if (!contentType) return null;
11645
+ const ct = contentType.toLowerCase();
11646
+ if (ct.includes("jsonl")) return "jsonl";
11647
+ if (ct.includes("json")) return "json";
11648
+ if (ct.includes("xml")) return "xml";
11649
+ if (ct.includes("msgpack")) return "msgpack";
11650
+ return null;
11651
+ }
11652
+ async function fetchTytx(url, options = {}) {
11653
+ const {
11654
+ body,
11655
+ transport = "json",
11656
+ method = body !== void 0 ? "POST" : "GET",
11657
+ headers = {},
11658
+ ...fetchOptions
11659
+ } = options;
11660
+ const requestHeaders = {
11661
+ "X-TYTX-Transport": transport,
11662
+ ...headers
11663
+ };
11664
+ let requestBody;
11665
+ if (body !== void 0) {
11666
+ requestHeaders["Content-Type"] = CONTENT_TYPES[transport];
11667
+ const encoded2 = toTytx(body, transport);
11668
+ if (transport === "msgpack") {
11669
+ requestBody = encoded2;
11670
+ } else {
11671
+ requestBody = encoded2;
11672
+ }
11673
+ }
11674
+ const response = await fetch(url, {
11675
+ method,
11676
+ headers: requestHeaders,
11677
+ body: requestBody,
11678
+ ...fetchOptions
11679
+ });
11680
+ if (!response.ok) {
11681
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
11682
+ }
11683
+ const responseContentType = response.headers.get("Content-Type") || "";
11684
+ const responseTransport = getTransport(responseContentType) || transport;
11685
+ let responseData;
11686
+ if (responseTransport === "msgpack") {
11687
+ const buffer = await response.arrayBuffer();
11688
+ responseData = fromTytx(Buffer.from(buffer), responseTransport);
11689
+ } else {
11690
+ const text3 = await response.text();
11691
+ responseData = fromTytx(text3, responseTransport);
11692
+ }
11693
+ return responseData;
11694
+ }
11695
+
11696
+ // node_modules/@genrojs/tytx/js/src/index.js
11697
+ var __version__ = "0.16.4";
11698
+
11699
+ // node_modules/@genrojs/builders/src/index.js
11700
+ var src_exports3 = {};
11701
+ __export(src_exports3, {
11702
+ BuilderBase: () => BuilderBase,
11703
+ Collection: () => Collection,
11704
+ CustomTypes: () => CustomTypes,
11705
+ DATA_ELEMENT_FIELDS: () => DATA_ELEMENT_FIELDS,
11706
+ DATA_ROOT: () => DATA_ROOT,
11707
+ HtmlBuilder: () => HtmlBuilder,
11708
+ HtmlRenderer: () => HtmlRenderer,
11709
+ META_ATTRS: () => META_ATTRS,
11710
+ RendererBase: () => RendererBase,
11711
+ SOURCE_ROOT: () => SOURCE_ROOT,
11712
+ SourceBag: () => SourceBag,
11713
+ SourceBagNode: () => SourceBagNode,
11714
+ SvgBuilder: () => SvgBuilder,
11715
+ SvgRenderer: () => SvgRenderer,
11716
+ VALUE: () => VALUE,
11717
+ XmlRenderer: () => XmlRenderer,
11718
+ pointerDependencies: () => pointerDependencies,
11719
+ pointerExpression: () => pointerExpression,
11720
+ pointerTemplate: () => pointerTemplate,
11721
+ pointerTransform: () => pointerTransform,
11722
+ resolveRenderTag: () => resolveRenderTag,
11723
+ sourceAttributeItems: () => sourceAttributeItems,
11724
+ sourceBagFromTytx: () => sourceBagFromTytx,
11725
+ sourceBagToTytx: () => sourceBagToTytx,
11726
+ sourceTarget: () => sourceTarget,
11727
+ svgAttributes: () => svgAttributes,
11728
+ wrapSource: () => wrapSource
11729
+ });
11557
11730
 
11558
11731
  // node_modules/@genrojs/builders/src/pointers.js
11559
11732
  function pointerTransform(value) {
@@ -11709,6 +11882,24 @@ function pointerDependencies(node, raw) {
11709
11882
  return seen;
11710
11883
  }
11711
11884
 
11885
+ // node_modules/@genrojs/bag/src/index.js
11886
+ var src_exports2 = {};
11887
+ __export(src_exports2, {
11888
+ Bag: () => Bag,
11889
+ BagCbResolver: () => BagCbResolver,
11890
+ BagException: () => BagException,
11891
+ BagNode: () => BagNode,
11892
+ BagNodeContainer: () => BagNodeContainer,
11893
+ BagResolver: () => BagResolver,
11894
+ BagSerializationError: () => BagSerializationError,
11895
+ OpaqueResolver: () => OpaqueResolver,
11896
+ RETRY_POLICIES: () => RETRY_POLICIES,
11897
+ StorageResolver: () => StorageResolver,
11898
+ UrlResolver: () => UrlResolver,
11899
+ UuidResolver: () => UuidResolver,
11900
+ registerResolver: () => registerResolver
11901
+ });
11902
+
11712
11903
  // node_modules/@genrojs/bag/src/resolver.js
11713
11904
  var RETRY_POLICIES = {
11714
11905
  network: {
@@ -15478,6 +15669,243 @@ BagResolver.registerBagClass(Bag);
15478
15669
  registerType(Bag, "X", (bag) => bag._toTytxPayload(), (payload) => Bag._fromTytxPayload(payload));
15479
15670
  setSubtypeDict(Bag.tytxSuffix, { ...getSubtypeDict(Bag.tytxSuffix), Bag });
15480
15671
 
15672
+ // node_modules/@genrojs/bag/src/resolvers/UrlResolver.js
15673
+ var UrlResolver = class extends BagResolver {
15674
+ static classKwargs = {
15675
+ cacheTime: 300,
15676
+ readOnly: true,
15677
+ retryPolicy: {
15678
+ maxAttempts: 3,
15679
+ delay: 1,
15680
+ backoff: 2,
15681
+ jitter: true,
15682
+ on: ["TypeError", "NetworkError", "AbortError"]
15683
+ },
15684
+ asBag: false,
15685
+ url: null,
15686
+ method: "get",
15687
+ qs: null,
15688
+ body: null,
15689
+ timeout: 5,
15690
+ // seconds (same unit as Python)
15691
+ transport: "json"
15692
+ };
15693
+ static classArgs = ["url"];
15694
+ static internalParams = /* @__PURE__ */ new Set([
15695
+ "cacheTime",
15696
+ "readOnly",
15697
+ "retryPolicy",
15698
+ "asBag"
15699
+ ]);
15700
+ /**
15701
+ * Create a URL resolver.
15702
+ *
15703
+ * @param {string|Object} urlOrKwargs - URL string or options object.
15704
+ * @param {Object} [kwargs] - Additional options if first arg is URL.
15705
+ */
15706
+ constructor(urlOrKwargs, kwargs = {}) {
15707
+ if (typeof urlOrKwargs === "string") {
15708
+ kwargs = { ...kwargs, url: urlOrKwargs };
15709
+ } else {
15710
+ kwargs = urlOrKwargs || {};
15711
+ }
15712
+ super(kwargs);
15713
+ }
15714
+ /**
15715
+ * Load data from URL.
15716
+ *
15717
+ * @param {Object} kwargs - Parameters for this load call.
15718
+ * @returns {Promise<*>} Response data.
15719
+ */
15720
+ async load(kwargs) {
15721
+ let url = kwargs.url;
15722
+ const method = kwargs.method;
15723
+ const qs = kwargs.qs;
15724
+ const timeout = kwargs.timeout;
15725
+ const transport = kwargs.transport;
15726
+ let body = kwargs.body;
15727
+ if (kwargs._body !== void 0) {
15728
+ body = kwargs._body;
15729
+ }
15730
+ const pathArgs = [];
15731
+ const extraQs = {};
15732
+ for (const [key2, value] of Object.entries(kwargs)) {
15733
+ if (key2.startsWith("arg_") && value !== null && value !== void 0) {
15734
+ const idx = parseInt(key2.slice(4), 10);
15735
+ if (!isNaN(idx)) {
15736
+ while (pathArgs.length <= idx) {
15737
+ pathArgs.push(null);
15738
+ }
15739
+ pathArgs[idx] = value;
15740
+ }
15741
+ } else if (!this.constructor.classKwargs.hasOwnProperty(key2) && !this.constructor.internalParams.has(key2) && !key2.startsWith("_")) {
15742
+ if (value !== null && value !== void 0) {
15743
+ extraQs[key2] = value;
15744
+ }
15745
+ }
15746
+ }
15747
+ if (pathArgs.length > 0 && url.includes("{")) {
15748
+ const placeholders = url.match(/\{([^}]+)\}/g) || [];
15749
+ placeholders.forEach((placeholder, i) => {
15750
+ if (i < pathArgs.length && pathArgs[i] !== null) {
15751
+ url = url.replace(placeholder, String(pathArgs[i]));
15752
+ }
15753
+ });
15754
+ }
15755
+ const mergedQs = {};
15756
+ if (qs) {
15757
+ Object.assign(mergedQs, this._qsToDict(qs));
15758
+ }
15759
+ Object.assign(mergedQs, extraQs);
15760
+ if (Object.keys(mergedQs).length > 0) {
15761
+ const params = new URLSearchParams();
15762
+ for (const [key2, value] of Object.entries(mergedQs)) {
15763
+ if (value !== null && value !== void 0) {
15764
+ params.append(key2, String(value));
15765
+ }
15766
+ }
15767
+ const separator = url.includes("?") ? "&" : "?";
15768
+ url = `${url}${separator}${params.toString()}`;
15769
+ }
15770
+ const fetchOptions = {
15771
+ method: method.toUpperCase(),
15772
+ transport
15773
+ };
15774
+ if (timeout) {
15775
+ fetchOptions.signal = AbortSignal.timeout(timeout * 1e3);
15776
+ }
15777
+ if (body !== null && body !== void 0) {
15778
+ fetchOptions.body = body;
15779
+ }
15780
+ const response = await fetchTytx(url, fetchOptions);
15781
+ return response;
15782
+ }
15783
+ /**
15784
+ * Convert query string source to dict, filtering null/undefined values.
15785
+ *
15786
+ * @param {Object|Map} qs - Query string parameters.
15787
+ * @returns {Object} Parameters with null/undefined values removed.
15788
+ * @private
15789
+ */
15790
+ _qsToDict(qs) {
15791
+ if (!qs) return {};
15792
+ if (typeof qs.keys === "function" && typeof qs.getItem === "function") {
15793
+ const result2 = {};
15794
+ for (const k of qs.keys()) {
15795
+ const v = qs.getItem(k);
15796
+ if (v !== null && v !== void 0) {
15797
+ result2[k] = v;
15798
+ }
15799
+ }
15800
+ return result2;
15801
+ }
15802
+ const result = {};
15803
+ for (const [k, v] of Object.entries(qs)) {
15804
+ if (v !== null && v !== void 0) {
15805
+ result[k] = v;
15806
+ }
15807
+ }
15808
+ return result;
15809
+ }
15810
+ };
15811
+
15812
+ // node_modules/@genrojs/bag/src/resolvers/UuidResolver.js
15813
+ var UuidResolver = class extends BagResolver {
15814
+ static classKwargs = {
15815
+ cacheTime: -1,
15816
+ readOnly: false,
15817
+ asBag: false,
15818
+ retryPolicy: null,
15819
+ version: "uuid4"
15820
+ };
15821
+ static classArgs = ["version"];
15822
+ static internalParams = /* @__PURE__ */ new Set([
15823
+ "cacheTime",
15824
+ "readOnly",
15825
+ "asBag",
15826
+ "retryPolicy",
15827
+ "version"
15828
+ ]);
15829
+ load() {
15830
+ return globalThis.crypto.randomUUID();
15831
+ }
15832
+ };
15833
+
15834
+ // node_modules/@genrojs/bag/src/resolvers/StorageResolver.js
15835
+ var StorageResolver = class extends BagResolver {
15836
+ static classKwargs = {
15837
+ cacheTime: -1,
15838
+ readOnly: true,
15839
+ asBag: false,
15840
+ retryPolicy: null,
15841
+ key: null,
15842
+ storageType: "local",
15843
+ defaultValue: null,
15844
+ dtype: null
15845
+ };
15846
+ static classArgs = ["key"];
15847
+ static internalParams = /* @__PURE__ */ new Set([
15848
+ "cacheTime",
15849
+ "readOnly",
15850
+ "asBag",
15851
+ "retryPolicy"
15852
+ ]);
15853
+ /**
15854
+ * Create a StorageResolver.
15855
+ *
15856
+ * @param {string|Object} keyOrKwargs - Storage key or options object.
15857
+ * @param {Object} [kwargs] - Additional options if first arg is key.
15858
+ */
15859
+ constructor(keyOrKwargs, kwargs = {}) {
15860
+ if (typeof keyOrKwargs === "string") {
15861
+ kwargs = { ...kwargs, key: keyOrKwargs };
15862
+ } else {
15863
+ kwargs = keyOrKwargs || {};
15864
+ }
15865
+ super(kwargs);
15866
+ }
15867
+ /**
15868
+ * Get the storage backend.
15869
+ *
15870
+ * @returns {Storage|null} localStorage or sessionStorage, or null if unavailable.
15871
+ * @private
15872
+ */
15873
+ _getStorage(kwargs) {
15874
+ const type = kwargs.storageType || "local";
15875
+ if (type === "session") {
15876
+ return typeof sessionStorage !== "undefined" ? sessionStorage : null;
15877
+ }
15878
+ return typeof localStorage !== "undefined" ? localStorage : null;
15879
+ }
15880
+ /**
15881
+ * Load value from Web Storage.
15882
+ *
15883
+ * @param {Object} kwargs - Parameters (key can be overridden via node attrs).
15884
+ * @returns {*} The stored value, or defaultValue if not found.
15885
+ */
15886
+ load(kwargs) {
15887
+ const key2 = kwargs.key;
15888
+ const defaultValue = kwargs.defaultValue;
15889
+ const storage = key2 ? this._getStorage(kwargs) : null;
15890
+ const stored = storage ? storage.getItem(key2) : null;
15891
+ const value = stored !== null ? stored : defaultValue;
15892
+ if (kwargs.dtype == null || value == null) return value;
15893
+ const text3 = String(value);
15894
+ if (kwargs.dtype === "L" && !/^[+-]?\d+(?:_\d+)*$/.test(text3.trim())) {
15895
+ throw new TypeError(`Invalid integer in Web Storage: ${text3}`);
15896
+ }
15897
+ if (kwargs.dtype === "R" && !/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i.test(text3.trim())) {
15898
+ throw new TypeError(`Invalid real number in Web Storage: ${text3}`);
15899
+ }
15900
+ const input = kwargs.dtype === "L" ? text3.replaceAll("_", "") : text3;
15901
+ const converted = fromTytx(`${input}::${kwargs.dtype}`);
15902
+ if (typeof converted === "number" && Number.isNaN(converted) || converted instanceof Date && Number.isNaN(converted.getTime())) {
15903
+ throw new TypeError(`Invalid ${kwargs.dtype} value in Web Storage: ${text3}`);
15904
+ }
15905
+ return converted;
15906
+ }
15907
+ };
15908
+
15481
15909
  // node_modules/@genrojs/builders/src/utils.js
15482
15910
  var PYTHON_KEYWORDS = /* @__PURE__ */ new Set([
15483
15911
  "False",
@@ -15884,6 +16312,12 @@ function elementCall(builder, target, tag2, onBag) {
15884
16312
  return node.builder.wrapSource(node);
15885
16313
  };
15886
16314
  }
16315
+ function sourceBagToTytx(source, { transport = "json" } = {}) {
16316
+ if (!(source instanceof SourceBag)) {
16317
+ throw new TypeError("sourceBagToTytx requires a SourceBag");
16318
+ }
16319
+ return toTytx(source, transport === "json" ? null : transport);
16320
+ }
15887
16321
  function sourceBagFromTytx(payload, builder, { transport = "json" } = {}) {
15888
16322
  const source = fromTytx(payload, transport === "json" ? null : transport);
15889
16323
  if (!(source instanceof SourceBag)) {
@@ -22335,6 +22769,10 @@ var References = class {
22335
22769
  };
22336
22770
 
22337
22771
  // src/random-id.js
22772
+ var random_id_exports = {};
22773
+ __export(random_id_exports, {
22774
+ randomId: () => randomId
22775
+ });
22338
22776
  function randomId() {
22339
22777
  return Array.from(
22340
22778
  globalThis.crypto.getRandomValues(new Uint8Array(16)),
@@ -22935,7 +23373,23 @@ var NameSyntax = class _NameSyntax {
22935
23373
  };
22936
23374
  var NAME_SYNTAX = new NameSyntax(String.raw`[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*`);
22937
23375
 
23376
+ // src/view/labelbox.js
23377
+ var labelbox_exports = {};
23378
+ __export(labelbox_exports, {
23379
+ createLabelbox: () => createLabelbox,
23380
+ labelboxContent: () => labelboxContent,
23381
+ labelboxPositions: () => labelboxPositions,
23382
+ labelboxPresentation: () => labelboxPresentation,
23383
+ labelboxStyle: () => labelboxStyle,
23384
+ projectLabelbox: () => projectLabelbox
23385
+ });
23386
+
22938
23387
  // src/components/choices.js
23388
+ var choices_exports = {};
23389
+ __export(choices_exports, {
23390
+ choiceCaption: () => choiceCaption,
23391
+ parseChoices: () => parseChoices
23392
+ });
22939
23393
  function parseChoices(values, separator = ",") {
22940
23394
  if (typeof separator !== "string" || !separator) throw new TypeError("separator must be a nonempty string");
22941
23395
  if (values === "") return [];
@@ -23130,6 +23584,10 @@ function labelboxPresentation(content) {
23130
23584
  }
23131
23585
 
23132
23586
  // src/components/choice-field-styles.js
23587
+ var choice_field_styles_exports = {};
23588
+ __export(choice_field_styles_exports, {
23589
+ choiceFieldStyles: () => choiceFieldStyles
23590
+ });
23133
23591
  var choiceFieldStyles = `
23134
23592
  .choice-field{position:relative;min-width:0}
23135
23593
  .choice-field>input{box-sizing:border-box;width:100%;padding-inline-end:calc(var(--gramlot-choice-toggle-width,1.6em) + .4em)}
@@ -23312,7 +23770,20 @@ function defineCollection(options) {
23312
23770
  return new ComponentCollection(options);
23313
23771
  }
23314
23772
 
23773
+ // src/components/bases.js
23774
+ var bases_exports = {};
23775
+ __export(bases_exports, {
23776
+ ChoiceGroup: () => ChoiceGroup,
23777
+ NativeControl: () => NativeControl,
23778
+ controlElement: () => controlElement
23779
+ });
23780
+
23315
23781
  // src/components/parameters.js
23782
+ var parameters_exports = {};
23783
+ __export(parameters_exports, {
23784
+ parameterValues: () => parameterValues,
23785
+ projectParameters: () => projectParameters
23786
+ });
23316
23787
  function projectParameters(element, attrs) {
23317
23788
  element.parameters = parameterValues(element.constructor.gramlotComponent, attrs);
23318
23789
  return Object.fromEntries(Object.entries(attrs).filter(([name]) => !Object.hasOwn(element.parameters, name)));
@@ -23551,6 +24022,10 @@ ChoiceGroup.parameters = {
23551
24022
  };
23552
24023
 
23553
24024
  // src/components/popup.js
24025
+ var popup_exports = {};
24026
+ __export(popup_exports, {
24027
+ positionPopup: () => positionPopup
24028
+ });
23554
24029
  var VIEWPORT_MARGIN = 8;
23555
24030
  var ANCHOR_GAP = 3;
23556
24031
  function positionPopup(popup, anchor, { align = "start", matchWidth = false, inset = 0, placement = "bottom", point = null } = {}) {
@@ -23584,7 +24059,31 @@ function positionPopup(popup, anchor, { align = "start", matchWidth = false, ins
23584
24059
  popup.style.top = `${Math.max(VIEWPORT_MARGIN, Math.min(top, view.innerHeight - size.height - VIEWPORT_MARGIN))}px`;
23585
24060
  }
23586
24061
 
24062
+ // src/renderer/attributes.js
24063
+ var attributes_exports = {};
24064
+ __export(attributes_exports, {
24065
+ SVG_NS: () => SVG_NS,
24066
+ XHTML_NS: () => XHTML_NS,
24067
+ boundaryAttributes: () => boundaryAttributes,
24068
+ displayItem: () => displayItem,
24069
+ domNames: () => domNames,
24070
+ isExpression: () => isExpression,
24071
+ requireNoScriptAttributes: () => requireNoScriptAttributes,
24072
+ requireStyleClassAttributes: () => requireStyleClassAttributes,
24073
+ splitNativeAttributes: () => splitNativeAttributes,
24074
+ textValue: () => textValue,
24075
+ withDataSrcdocSandbox: () => withDataSrcdocSandbox,
24076
+ withoutBindingAttributes: () => withoutBindingAttributes,
24077
+ withoutNullValues: () => withoutNullValues
24078
+ });
24079
+
23587
24080
  // src/format.js
24081
+ var format_exports = {};
24082
+ __export(format_exports, {
24083
+ applyMask: () => applyMask,
24084
+ formatValue: () => formatValue,
24085
+ validateMask: () => validateMask
24086
+ });
23588
24087
  var intlFormatters = /* @__PURE__ */ new Map();
23589
24088
  function intlFormatter(temporal2, locale, options) {
23590
24089
  const key2 = JSON.stringify([temporal2, locale, options]);
@@ -24939,6 +25438,10 @@ var DropDownButton = defineComponent({
24939
25438
  var buttons_default = defineCollection({ name: "buttons", components: [Button, ToggleButton, DropDownButton, Menu, MenuLine, Spacer] });
24940
25439
 
24941
25440
  // src/validation-run.js
25441
+ var validation_run_exports = {};
25442
+ __export(validation_run_exports, {
25443
+ ValidationRun: () => ValidationRun
25444
+ });
24942
25445
  var ValidationRun = class {
24943
25446
  epoch = 0;
24944
25447
  controller = null;
@@ -28975,7 +29478,22 @@ var NativeEventBinding = class {
28975
29478
  }
28976
29479
  };
28977
29480
 
29481
+ // src/stores/bag-collection-view.js
29482
+ var bag_collection_view_exports = {};
29483
+ __export(bag_collection_view_exports, {
29484
+ BagCollectionView: () => BagCollectionView,
29485
+ parseSort: () => parseSort
29486
+ });
29487
+
28978
29488
  // src/stores/column-filter.js
29489
+ var column_filter_exports = {};
29490
+ __export(column_filter_exports, {
29491
+ columnDateMatches: () => columnDateMatches,
29492
+ columnDateRange: () => columnDateRange,
29493
+ columnSelection: () => columnSelection,
29494
+ columnValue: () => columnValue,
29495
+ columnValueKey: () => columnValueKey
29496
+ });
28979
29497
  function columnValue(value) {
28980
29498
  if (value == null || value === "") return null;
28981
29499
  if (typeof value === "string" || typeof value === "boolean" || typeof value === "number" && Number.isFinite(value) || value instanceof Date && Number.isFinite(value.getTime()) || isDecimal2(value) && value.isFinite()) return value;
@@ -29022,6 +29540,18 @@ function columnDateMatches(value, range) {
29022
29540
  return (!range.from || day >= range.from) && (!range.to || day <= range.to);
29023
29541
  }
29024
29542
 
29543
+ // src/stores/collection-filter.js
29544
+ var collection_filter_exports = {};
29545
+ __export(collection_filter_exports, {
29546
+ compileFilter: () => compileFilter
29547
+ });
29548
+
29549
+ // node_modules/@genrojs/toolbox/js/src/index.js
29550
+ var src_exports4 = {};
29551
+ __export(src_exports4, {
29552
+ parseDateExpression: () => parseDateExpression
29553
+ });
29554
+
29025
29555
  // node_modules/@genrojs/toolbox/js/src/dates/civil.js
29026
29556
  function daysInMonth(year, month) {
29027
29557
  if (month === 2) return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) ? 29 : 28;
@@ -29601,6 +30131,12 @@ function parseNumber(text3, locale) {
29601
30131
  }
29602
30132
 
29603
30133
  // src/stores/id-set.js
30134
+ var id_set_exports = {};
30135
+ __export(id_set_exports, {
30136
+ containsId: () => containsId,
30137
+ requireId: () => requireId,
30138
+ requireIdSet: () => requireIdSet
30139
+ });
29604
30140
  function containsId(value, id) {
29605
30141
  return ("," + value + ",").includes("," + id + ",");
29606
30142
  }
@@ -29614,6 +30150,11 @@ function requireId(id) {
29614
30150
  }
29615
30151
 
29616
30152
  // src/stores/bag-collection-store.js
30153
+ var bag_collection_store_exports = {};
30154
+ __export(bag_collection_store_exports, {
30155
+ BagCollectionStore: () => BagCollectionStore,
30156
+ publishCollection: () => publishCollection
30157
+ });
29617
30158
  var BagCollectionStore = class {
29618
30159
  #listeners = /* @__PURE__ */ new Set();
29619
30160
  constructor(bag, rowMode) {
@@ -30072,7 +30613,21 @@ var DataRouter = class {
30072
30613
  }
30073
30614
  };
30074
30615
 
30616
+ // src/components/grid-structure.js
30617
+ var grid_structure_exports = {};
30618
+ __export(grid_structure_exports, {
30619
+ GridStructure: () => GridStructure
30620
+ });
30621
+
30075
30622
  // src/components/grid-formulas.js
30623
+ var grid_formulas_exports = {};
30624
+ __export(grid_formulas_exports, {
30625
+ GridFormulas: () => GridFormulas,
30626
+ addNumeric: () => addNumeric,
30627
+ formulaDefinitions: () => formulaDefinitions,
30628
+ parseArithmetic: () => parseArithmetic,
30629
+ sameValue: () => sameValue
30630
+ });
30076
30631
  var SPECIAL_INDEX = "#";
30077
30632
  var IDENTIFIER2 = /[A-Za-z_$][\w$]*/g;
30078
30633
  function formulaDefinitions(columns) {
@@ -30210,6 +30765,297 @@ function tokenize(code) {
30210
30765
  result.push({ type: "eof", value: "" });
30211
30766
  return result;
30212
30767
  }
30768
+ function requireDecimalBackend() {
30769
+ if (getDecimalLibrary() === "number") throw new Error("A Decimal backend is required for exact grid formulas");
30770
+ }
30771
+ function decimalValue(value, Decimal2) {
30772
+ if (isDecimal2(value)) return value;
30773
+ if (value == null || value === "") return null;
30774
+ if (typeof value !== "number" && typeof value !== "string") throw new TypeError("Decimal arithmetic requires numeric values");
30775
+ return new Decimal2(String(value));
30776
+ }
30777
+ var OPERATORS = {
30778
+ "+": (a, b) => a + b,
30779
+ "-": (a, b) => a - b,
30780
+ "*": (a, b) => a * b,
30781
+ "/": (a, b) => a / b,
30782
+ "%": (a, b) => a % b,
30783
+ "**": (a, b) => a ** b
30784
+ };
30785
+ function evaluateNumber(node, scope) {
30786
+ if (node.kind === "number") return Number(node.value);
30787
+ if (node.kind === "name") {
30788
+ if (!Object.hasOwn(scope, node.value)) throw new ReferenceError(`${node.value} is not defined`);
30789
+ return scope[node.value];
30790
+ }
30791
+ if (node.kind === "unary") return node.operator === "-" ? -evaluateNumber(node.child, scope) : +evaluateNumber(node.child, scope);
30792
+ return OPERATORS[node.operator](evaluateNumber(node.left, scope), evaluateNumber(node.right, scope));
30793
+ }
30794
+ function evaluateDecimal(node, scope, Decimal2) {
30795
+ if (node.kind === "number") return new Decimal2(node.value);
30796
+ if (node.kind === "name") {
30797
+ if (!Object.hasOwn(scope, node.value)) throw new ReferenceError(`${node.value} is not defined`);
30798
+ return decimalValue(scope[node.value], Decimal2);
30799
+ }
30800
+ if (node.kind === "unary") {
30801
+ const value = evaluateDecimal(node.child, scope, Decimal2);
30802
+ if (value == null) return null;
30803
+ return node.operator === "-" ? value.neg() : value;
30804
+ }
30805
+ const left = evaluateDecimal(node.left, scope, Decimal2);
30806
+ const right = evaluateDecimal(node.right, scope, Decimal2);
30807
+ if (left == null || right == null) return null;
30808
+ if (node.operator === "**") return left.pow(Number(right.toString()));
30809
+ const method = { "+": "plus", "-": "minus", "*": "times", "/": "div", "%": "mod" }[node.operator];
30810
+ return left[method](right);
30811
+ }
30812
+ function sameValue(left, right) {
30813
+ if (Object.is(left, right)) return true;
30814
+ return isDecimal2(left) && isDecimal2(right) && left.eq(right);
30815
+ }
30816
+ function addNumeric(left, right) {
30817
+ if (right == null || right === "") return left;
30818
+ if (isDecimal2(left) || isDecimal2(right)) {
30819
+ requireDecimalBackend();
30820
+ const Decimal2 = isDecimal2(left) ? left.constructor : right.constructor;
30821
+ return decimalValue(left, Decimal2).plus(decimalValue(right, Decimal2));
30822
+ }
30823
+ if (typeof right !== "number" || !Number.isFinite(right)) throw new TypeError("Grid aggregate formulas require numeric values");
30824
+ return left + right;
30825
+ }
30826
+ function dividePercent(value, total) {
30827
+ const zero = isDecimal2(total) ? total.eq(0) : Object.is(total, 0);
30828
+ if (value == null || value === "" || total == null || zero) return null;
30829
+ if (isDecimal2(value) || isDecimal2(total)) {
30830
+ const Decimal2 = isDecimal2(value) ? value.constructor : total.constructor;
30831
+ return decimalValue(value, Decimal2).div(decimalValue(total, Decimal2)).times(new Decimal2(100));
30832
+ }
30833
+ if (typeof value !== "number" || typeof total !== "number") throw new TypeError("Percentage formulas require numeric values");
30834
+ return value / total * 100;
30835
+ }
30836
+ var GridFormulas = class {
30837
+ #source;
30838
+ #formulas = formulaDefinitions([]);
30839
+ #fields = /* @__PURE__ */ new Set();
30840
+ #store = null;
30841
+ #view = null;
30842
+ #release = [];
30843
+ #registrations = [];
30844
+ #running = false;
30845
+ #errors = /* @__PURE__ */ new Map();
30846
+ #viewValues = null;
30847
+ constructor(source) {
30848
+ this.#source = source;
30849
+ }
30850
+ get source() {
30851
+ return this.#source;
30852
+ }
30853
+ get runtime() {
30854
+ return this.source.rootBuilder.binding;
30855
+ }
30856
+ /** The last error of each formula field, by field name. */
30857
+ get errors() {
30858
+ return new Map(this.#errors);
30859
+ }
30860
+ get formulas() {
30861
+ return this.#formulas;
30862
+ }
30863
+ /** The data formula fields: written into the row Bag. */
30864
+ get dataFields() {
30865
+ return new Set(this.formulas.order.filter((field) => !this.viewFields.has(field)));
30866
+ }
30867
+ /** The view-value fields: computed per grid, never written. */
30868
+ get viewFields() {
30869
+ return this.formulas.viewFields;
30870
+ }
30871
+ /** Adopt `structure` over `view`/`store`; a new structure or store runs the calculated data formulas. */
30872
+ configure(structure, view, store) {
30873
+ if (structure.formulas === this.#formulas && store === this.#store && view === this.#view && this.#release.length) return;
30874
+ this.disconnect();
30875
+ this.#formulas = structure.formulas;
30876
+ this.#fields = new Set(structure.fields);
30877
+ this.#store = store;
30878
+ this.#view = view;
30879
+ this.#errors.clear();
30880
+ if (!this.formulas.definitions.size) return;
30881
+ this.#release = [
30882
+ store.subscribe((change) => this.#storeChanged(change)),
30883
+ view.subscribe(() => {
30884
+ this.#viewValues = null;
30885
+ })
30886
+ ];
30887
+ for (const definition of this.formulas.definitions.values()) {
30888
+ for (const raw of definition.parameters.values()) {
30889
+ if (typeof raw !== "string" || !raw.startsWith("^")) continue;
30890
+ const [path, attr = null] = this.source.absDatapath(raw).split("?");
30891
+ this.#registrations.push(this.runtime.router.register({ path, attr, recipient: { receive: () => {
30892
+ this.#viewValues = null;
30893
+ this.recalculate(this.#closure([definition.field]));
30894
+ } } }));
30895
+ }
30896
+ }
30897
+ this.recalculate(this.#closure(this.#selected((definition) => definition.calculated)));
30898
+ }
30899
+ disconnect() {
30900
+ for (const release of this.#release) release();
30901
+ for (const registration of this.#registrations) registration.close();
30902
+ this.#release = [];
30903
+ this.#registrations = [];
30904
+ this.#store = null;
30905
+ this.#view = null;
30906
+ this.#viewValues = null;
30907
+ this.#formulas = formulaDefinitions([]);
30908
+ }
30909
+ /** The value shown by this grid: a view value, or the stored field. */
30910
+ value(node, field) {
30911
+ if (!this.viewFields.has(field)) return this.#store.value(node, field);
30912
+ const values = this.#computeViewValues().get(node);
30913
+ return values === void 0 ? null : values[field];
30914
+ }
30915
+ #selected(predicate) {
30916
+ return [...this.formulas.definitions.values()].filter(predicate).map((definition) => definition.field);
30917
+ }
30918
+ #closure(fields) {
30919
+ const result = new Set(fields);
30920
+ const pending = [...fields];
30921
+ while (pending.length) {
30922
+ for (const dependent of this.formulas.triggered.get(pending.shift()) ?? []) {
30923
+ if (!result.has(dependent)) {
30924
+ result.add(dependent);
30925
+ pending.push(dependent);
30926
+ }
30927
+ }
30928
+ }
30929
+ return result;
30930
+ }
30931
+ #storeChanged({ full, rows, event, field }) {
30932
+ this.#viewValues = null;
30933
+ if (this.#running) return;
30934
+ if (full) {
30935
+ this.recalculate(this.#closure(this.#selected((definition) => definition.calculated || definition.special)));
30936
+ return;
30937
+ }
30938
+ const [row] = rows;
30939
+ let fields;
30940
+ if (field !== null) fields = [field];
30941
+ else if (event.node === row) {
30942
+ fields = event.evt === "upd_attrs" ? Object.keys(event.attrs_diff) : [...this.formulas.triggered.keys()];
30943
+ } else fields = (Array.isArray(event.node) ? event.node : [event.node]).map((node) => node.label);
30944
+ const affected = /* @__PURE__ */ new Set();
30945
+ for (const name of fields) for (const formula of this.formulas.triggered.get(name) ?? []) affected.add(formula);
30946
+ const closure = this.#closure(affected);
30947
+ const global = [...closure].some((name) => this.formulas.definitions.get(name).special?.kind === "percent");
30948
+ this.recalculate(closure, global ? null : [row]);
30949
+ }
30950
+ #parameters(definition) {
30951
+ const result = {};
30952
+ for (const [name, raw] of definition.parameters) {
30953
+ result[name] = typeof raw === "string" && (raw.startsWith("^") || raw.startsWith("=")) ? this.source.getRelativeData(raw) : raw;
30954
+ }
30955
+ return result;
30956
+ }
30957
+ /** One formula on one row; `read(row, field)` gives the field values it may reference. */
30958
+ #evaluate(definition, row, index, aggregate, read) {
30959
+ if (definition.special?.kind === "index") return index;
30960
+ if (definition.special?.kind === "running") return addNumeric(aggregate, read(row, definition.special.field));
30961
+ if (definition.special?.kind === "percent") return dividePercent(read(row, definition.special.field), aggregate);
30962
+ const parameters2 = this.#parameters(definition);
30963
+ const scope = {};
30964
+ for (const name of definition.references) {
30965
+ if (Object.hasOwn(parameters2, name)) scope[name] = parameters2[name];
30966
+ else if (this.#fields.has(name) || this.#rowFields(row).has(name)) scope[name] = read(row, name) ?? null;
30967
+ }
30968
+ if (Object.values(scope).some((value) => value == null)) return null;
30969
+ const decimal = Object.values(scope).find(isDecimal2);
30970
+ if (definition.arithmetic) {
30971
+ if (decimal === void 0) return evaluateNumber(definition.arithmetic, scope);
30972
+ requireDecimalBackend();
30973
+ return evaluateDecimal(definition.arithmetic, scope, decimal.constructor);
30974
+ }
30975
+ if (decimal !== void 0) throw new Error("Decimal grid formulas support arithmetic expressions only");
30976
+ const names = [...Object.keys(scope), "_currcell", "_rowNode"];
30977
+ const run = this.runtime.inlineCompiler.compile(
30978
+ this.source,
30979
+ `struct.${definition.field}.formula`,
30980
+ definition.formula,
30981
+ names,
30982
+ `return (${definition.formula}
30983
+ );`
30984
+ );
30985
+ return run({ ...scope, _currcell: definition.column, _rowNode: row });
30986
+ }
30987
+ #rowFields(row) {
30988
+ if (this.#store.rowMode === "attributes") return new Set(Object.keys(row.getAttr()));
30989
+ return new Set(row.staticValue.keys());
30990
+ }
30991
+ #write(row, field, value) {
30992
+ if (sameValue(this.#store.value(row, field), value)) return;
30993
+ if (this.#store.rowMode === "attributes") row.setAttr({ [field]: value });
30994
+ else row.staticValue.setItem(field, value);
30995
+ }
30996
+ /** Recalculate the data formulas among `fields`, on `rows` or on every resident row. */
30997
+ recalculate(fields, rows = null) {
30998
+ if (this.#running || !fields.size || this.#store === null) return;
30999
+ this.#running = true;
31000
+ const read = (row, field) => this.#store.value(row, field);
31001
+ try {
31002
+ const resident = this.#store.getRows();
31003
+ for (const field of this.formulas.order) {
31004
+ const definition = this.formulas.definitions.get(field);
31005
+ if (!fields.has(field) || definition.view) continue;
31006
+ let aggregate = null, failure2 = null;
31007
+ if (definition.special?.kind === "percent") {
31008
+ try {
31009
+ aggregate = 0;
31010
+ for (const row of resident) aggregate = addNumeric(aggregate, read(row, definition.special.field));
31011
+ } catch (error) {
31012
+ aggregate = null;
31013
+ failure2 = error;
31014
+ }
31015
+ }
31016
+ for (const row of rows ?? resident) {
31017
+ let value = null;
31018
+ try {
31019
+ value = this.#evaluate(definition, row, null, aggregate, read);
31020
+ } catch (error) {
31021
+ failure2 = error;
31022
+ }
31023
+ this.#write(row, field, value);
31024
+ }
31025
+ if (failure2) this.#errors.set(field, failure2);
31026
+ else this.#errors.delete(field);
31027
+ }
31028
+ } finally {
31029
+ this.#running = false;
31030
+ }
31031
+ }
31032
+ /** View values of the visible rows in this grid's view order, cached until the next store or view change. */
31033
+ #computeViewValues() {
31034
+ if (this.#viewValues !== null) return this.#viewValues;
31035
+ const ordered = this.#view.getRows();
31036
+ const values = new Map(ordered.map((row) => [row, {}]));
31037
+ const read = (row, field) => this.viewFields.has(field) ? values.get(row)[field] : this.#store.value(row, field);
31038
+ for (const field of this.formulas.order) {
31039
+ const definition = this.formulas.definitions.get(field);
31040
+ if (!definition.view) continue;
31041
+ let aggregate = 0, failure2 = null;
31042
+ for (const [index, row] of ordered.entries()) {
31043
+ let value = null;
31044
+ try {
31045
+ value = this.#evaluate(definition, row, index + 1, aggregate, read);
31046
+ if (definition.special?.kind === "running") aggregate = value;
31047
+ } catch (error) {
31048
+ failure2 = error;
31049
+ }
31050
+ values.get(row)[field] = value;
31051
+ }
31052
+ if (failure2) this.#errors.set(field, failure2);
31053
+ else this.#errors.delete(field);
31054
+ }
31055
+ this.#viewValues = values;
31056
+ return values;
31057
+ }
31058
+ };
30213
31059
 
30214
31060
  // src/components/grid-structure.js
30215
31061
  var TYPES = /* @__PURE__ */ new Set(["T", "B", "L", "R", "N", "D", "H", "DHZ"]);
@@ -37119,6 +37965,10 @@ var SourceImport = class extends UploadTarget {
37119
37965
  };
37120
37966
 
37121
37967
  // node_modules/dompurify/dist/purify.es.mjs
37968
+ var purify_es_exports = {};
37969
+ __export(purify_es_exports, {
37970
+ default: () => purify_default
37971
+ });
37122
37972
  /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
37123
37973
  function _OverloadYield(e, d) {
37124
37974
  this.v = e, this.k = d;
@@ -38644,7 +39494,7 @@ function createDOMPurify() {
38644
39494
  }
38645
39495
  return original;
38646
39496
  };
38647
- for (let round3 = 0; ; round3++) {
39497
+ for (let round4 = 0; ; round4++) {
38648
39498
  const live = _collectLiveNodes(root);
38649
39499
  const containers = [root];
38650
39500
  let pending = false;
@@ -38653,7 +39503,7 @@ function createDOMPurify() {
38653
39503
  else if (!pending && !setHas(visited, node)) pending = setHas(getOriginal(), node);
38654
39504
  });
38655
39505
  if (!pending) return;
38656
- if (round3 >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate("the tree kept changing during in-place sanitization; refusing to return it");
39506
+ if (round4 >= MAX_UNVISITED_ROUNDS) throw typeErrorCreate("the tree kept changing during in-place sanitization; refusing to return it");
38657
39507
  arrayForEach(containers, (container, index) => {
38658
39508
  _sanitizeUnvisitedIn(container, index > 0, root, getOriginal());
38659
39509
  });
@@ -39246,6 +40096,10 @@ var NavigationResolver = class _NavigationResolver extends RemoteResolver {
39246
40096
  };
39247
40097
 
39248
40098
  // src/components/labelbox.js
40099
+ var labelbox_exports2 = {};
40100
+ __export(labelbox_exports2, {
40101
+ Labelbox: () => Labelbox
40102
+ });
39249
40103
  function Labelbox(Base) {
39250
40104
  return class extends Base {
39251
40105
  setLabelbox(layout) {
@@ -39275,7 +40129,18 @@ Labelbox.parameters = {
39275
40129
  lbl_position: { dtype: "T", default: "TL", binding: "read", enum: labelboxPositions }
39276
40130
  };
39277
40131
 
40132
+ // src/components/field-state.js
40133
+ var field_state_exports = {};
40134
+ __export(field_state_exports, {
40135
+ FieldState: () => FieldState
40136
+ });
40137
+
39278
40138
  // src/components/validation.js
40139
+ var validation_exports = {};
40140
+ __export(validation_exports, {
40141
+ validateInput: () => validateInput,
40142
+ validationParameters: () => validationParameters
40143
+ });
39279
40144
  var validationRules = ["select", "notnull", "empty", "case", "len", "min", "max", "email", "regex", "call", "remote"];
39280
40145
  var deferredRules = ["nodup", "exist", "gridnodup"];
39281
40146
  var empty = (value) => value == null || value === "";
@@ -39685,6 +40550,10 @@ async function verifyCollectionArtifact(metadata, files) {
39685
40550
  }
39686
40551
 
39687
40552
  // src/media-frame.js
40553
+ var media_frame_exports = {};
40554
+ __export(media_frame_exports, {
40555
+ captureVideoFrame: () => captureVideoFrame
40556
+ });
39688
40557
  function captureVideoFrame(document, video) {
39689
40558
  if (!video.videoWidth || !video.videoHeight) throw new Error("Video image is not ready");
39690
40559
  const canvas = document.createElement("canvas");
@@ -41528,6 +42397,662 @@ var VisualEditorLogic = class {
41528
42397
  node.SET(".selection", `${path}.${created.label}`);
41529
42398
  }
41530
42399
  };
42400
+
42401
+ // src/shared-modules.js
42402
+ var xmldom = __toESM(require_lib(), 1);
42403
+
42404
+ // node_modules/big.js/big.mjs
42405
+ var big_exports = {};
42406
+ __export(big_exports, {
42407
+ Big: () => Big2,
42408
+ default: () => big_default2
42409
+ });
42410
+ var DP2 = 20;
42411
+ var RM2 = 1;
42412
+ var MAX_DP2 = 1e6;
42413
+ var MAX_POWER2 = 1e6;
42414
+ var NE2 = -7;
42415
+ var PE2 = 21;
42416
+ var STRICT2 = false;
42417
+ var NAME3 = "[big.js] ";
42418
+ var INVALID2 = NAME3 + "Invalid ";
42419
+ var INVALID_DP2 = INVALID2 + "decimal places";
42420
+ var INVALID_RM2 = INVALID2 + "rounding mode";
42421
+ var DIV_BY_ZERO2 = NAME3 + "Division by zero";
42422
+ var P3 = {};
42423
+ var UNDEFINED2 = void 0;
42424
+ var NUMERIC2 = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
42425
+ function _Big_2() {
42426
+ function Big3(n) {
42427
+ var x = this;
42428
+ if (!(x instanceof Big3)) {
42429
+ return n === UNDEFINED2 && arguments.length === 0 ? _Big_2() : new Big3(n);
42430
+ }
42431
+ if (n instanceof Big3) {
42432
+ x.s = n.s;
42433
+ x.e = n.e;
42434
+ x.c = n.c.slice();
42435
+ } else {
42436
+ if (typeof n !== "string") {
42437
+ if (Big3.strict === true && typeof n !== "bigint") {
42438
+ throw TypeError(INVALID2 + "value");
42439
+ }
42440
+ n = n === 0 && 1 / n < 0 ? "-0" : String(n);
42441
+ }
42442
+ parse2(x, n);
42443
+ }
42444
+ x.constructor = Big3;
42445
+ }
42446
+ Big3.prototype = P3;
42447
+ Big3.DP = DP2;
42448
+ Big3.RM = RM2;
42449
+ Big3.NE = NE2;
42450
+ Big3.PE = PE2;
42451
+ Big3.strict = STRICT2;
42452
+ Big3.roundDown = 0;
42453
+ Big3.roundHalfUp = 1;
42454
+ Big3.roundHalfEven = 2;
42455
+ Big3.roundUp = 3;
42456
+ return Big3;
42457
+ }
42458
+ function parse2(x, n) {
42459
+ var e, i, nl;
42460
+ if (!NUMERIC2.test(n)) {
42461
+ throw Error(INVALID2 + "number");
42462
+ }
42463
+ x.s = n.charAt(0) == "-" ? (n = n.slice(1), -1) : 1;
42464
+ if ((e = n.indexOf(".")) > -1) n = n.replace(".", "");
42465
+ if ((i = n.search(/e/i)) > 0) {
42466
+ if (e < 0) e = i;
42467
+ e += +n.slice(i + 1);
42468
+ n = n.substring(0, i);
42469
+ } else if (e < 0) {
42470
+ e = n.length;
42471
+ }
42472
+ nl = n.length;
42473
+ for (i = 0; i < nl && n.charAt(i) == "0"; ) ++i;
42474
+ if (i == nl) {
42475
+ x.c = [x.e = 0];
42476
+ } else {
42477
+ for (; nl > 0 && n.charAt(--nl) == "0"; ) ;
42478
+ x.e = e - i - 1;
42479
+ x.c = [];
42480
+ for (e = 0; i <= nl; ) x.c[e++] = +n.charAt(i++);
42481
+ }
42482
+ return x;
42483
+ }
42484
+ function round3(x, sd, rm, more) {
42485
+ var xc = x.c;
42486
+ if (rm === UNDEFINED2) rm = x.constructor.RM;
42487
+ if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) {
42488
+ throw Error(INVALID_RM2);
42489
+ }
42490
+ if (sd < 1) {
42491
+ more = rm === 3 && (more || !!xc[0]) || sd === 0 && (rm === 1 && xc[0] >= 5 || rm === 2 && (xc[0] > 5 || xc[0] === 5 && (more || xc[1] !== UNDEFINED2)));
42492
+ xc.length = 1;
42493
+ if (more) {
42494
+ x.e = x.e - sd + 1;
42495
+ xc[0] = 1;
42496
+ } else {
42497
+ xc[0] = x.e = 0;
42498
+ }
42499
+ } else if (sd < xc.length) {
42500
+ more = rm === 1 && xc[sd] >= 5 || rm === 2 && (xc[sd] > 5 || xc[sd] === 5 && (more || xc[sd + 1] !== UNDEFINED2 || xc[sd - 1] & 1)) || rm === 3 && (more || !!xc[0]);
42501
+ xc.length = sd;
42502
+ if (more) {
42503
+ for (; ++xc[--sd] > 9; ) {
42504
+ xc[sd] = 0;
42505
+ if (sd === 0) {
42506
+ ++x.e;
42507
+ xc.unshift(1);
42508
+ break;
42509
+ }
42510
+ }
42511
+ }
42512
+ for (sd = xc.length; !xc[--sd]; ) xc.pop();
42513
+ }
42514
+ return x;
42515
+ }
42516
+ function stringify2(x, doExponential, isNonzero) {
42517
+ var e = x.e, s = x.c.join(""), n = s.length;
42518
+ if (doExponential) {
42519
+ s = s.charAt(0) + (n > 1 ? "." + s.slice(1) : "") + (e < 0 ? "e" : "e+") + e;
42520
+ } else if (e < 0) {
42521
+ for (; ++e; ) s = "0" + s;
42522
+ s = "0." + s;
42523
+ } else if (e > 0) {
42524
+ if (++e > n) {
42525
+ for (e -= n; e--; ) s += "0";
42526
+ } else if (e < n) {
42527
+ s = s.slice(0, e) + "." + s.slice(e);
42528
+ }
42529
+ } else if (n > 1) {
42530
+ s = s.charAt(0) + "." + s.slice(1);
42531
+ }
42532
+ return x.s < 0 && isNonzero ? "-" + s : s;
42533
+ }
42534
+ P3.abs = function() {
42535
+ var x = new this.constructor(this);
42536
+ x.s = 1;
42537
+ return x;
42538
+ };
42539
+ P3.cmp = function(y) {
42540
+ var isneg, x = this, xc = x.c, yc = (y = new x.constructor(y)).c, i = x.s, j = y.s, k = x.e, l = y.e;
42541
+ if (!xc[0] || !yc[0]) return !xc[0] ? !yc[0] ? 0 : -j : i;
42542
+ if (i != j) return i;
42543
+ isneg = i < 0;
42544
+ if (k != l) return k > l ^ isneg ? 1 : -1;
42545
+ j = (k = xc.length) < (l = yc.length) ? k : l;
42546
+ for (i = -1; ++i < j; ) {
42547
+ if (xc[i] != yc[i]) return xc[i] > yc[i] ^ isneg ? 1 : -1;
42548
+ }
42549
+ return k == l ? 0 : k > l ^ isneg ? 1 : -1;
42550
+ };
42551
+ P3.div = function(y) {
42552
+ var x = this, Big3 = x.constructor, a = x.c, b = (y = new Big3(y)).c, k = x.s == y.s ? 1 : -1, dp = Big3.DP;
42553
+ if (dp !== ~~dp || dp < 0 || dp > MAX_DP2) {
42554
+ throw Error(INVALID_DP2);
42555
+ }
42556
+ if (!b[0]) {
42557
+ throw Error(DIV_BY_ZERO2);
42558
+ }
42559
+ if (!a[0]) {
42560
+ y.s = k;
42561
+ y.c = [y.e = 0];
42562
+ return y;
42563
+ }
42564
+ var bl, bt, n, cmp, ri, bz = b.slice(), ai = bl = b.length, al = a.length, r = a.slice(0, bl), rl = r.length, q = y, qc = q.c = [], qi = 0, p = dp + (q.e = x.e - y.e) + 1;
42565
+ q.s = k;
42566
+ k = p < 0 ? 0 : p;
42567
+ bz.unshift(0);
42568
+ for (; rl++ < bl; ) r.push(0);
42569
+ do {
42570
+ for (n = 0; n < 10; n++) {
42571
+ if (bl != (rl = r.length)) {
42572
+ cmp = bl > rl ? 1 : -1;
42573
+ } else {
42574
+ for (ri = -1, cmp = 0; ++ri < bl; ) {
42575
+ if (b[ri] != r[ri]) {
42576
+ cmp = b[ri] > r[ri] ? 1 : -1;
42577
+ break;
42578
+ }
42579
+ }
42580
+ }
42581
+ if (cmp < 0) {
42582
+ for (bt = rl == bl ? b : bz; rl; ) {
42583
+ if (r[--rl] < bt[rl]) {
42584
+ ri = rl;
42585
+ for (; ri && !r[--ri]; ) r[ri] = 9;
42586
+ --r[ri];
42587
+ r[rl] += 10;
42588
+ }
42589
+ r[rl] -= bt[rl];
42590
+ }
42591
+ for (; !r[0]; ) r.shift();
42592
+ } else {
42593
+ break;
42594
+ }
42595
+ }
42596
+ qc[qi++] = cmp ? n : ++n;
42597
+ if (r[0] && cmp) r[rl] = a[ai] || 0;
42598
+ else r = [a[ai]];
42599
+ } while ((ai++ < al || r[0] !== UNDEFINED2) && k--);
42600
+ if (!qc[0] && qi != 1) {
42601
+ qc.shift();
42602
+ q.e--;
42603
+ p--;
42604
+ }
42605
+ if (qi > p) round3(q, p, Big3.RM, r[0] !== UNDEFINED2);
42606
+ return q;
42607
+ };
42608
+ P3.eq = function(y) {
42609
+ return this.cmp(y) === 0;
42610
+ };
42611
+ P3.gt = function(y) {
42612
+ return this.cmp(y) > 0;
42613
+ };
42614
+ P3.gte = function(y) {
42615
+ return this.cmp(y) > -1;
42616
+ };
42617
+ P3.lt = function(y) {
42618
+ return this.cmp(y) < 0;
42619
+ };
42620
+ P3.lte = function(y) {
42621
+ return this.cmp(y) < 1;
42622
+ };
42623
+ P3.minus = P3.sub = function(y) {
42624
+ var i, j, t, xlty, x = this, Big3 = x.constructor, a = x.s, b = (y = new Big3(y)).s;
42625
+ if (a != b) {
42626
+ y.s = -b;
42627
+ return x.plus(y);
42628
+ }
42629
+ var xc = x.c.slice(), xe = x.e, yc = y.c, ye = y.e;
42630
+ if (!xc[0] || !yc[0]) {
42631
+ if (yc[0]) {
42632
+ y.s = -b;
42633
+ } else if (xc[0]) {
42634
+ y = new Big3(x);
42635
+ } else {
42636
+ y.s = 1;
42637
+ }
42638
+ return y;
42639
+ }
42640
+ if (a = xe - ye) {
42641
+ if (xlty = a < 0) {
42642
+ a = -a;
42643
+ t = xc;
42644
+ } else {
42645
+ ye = xe;
42646
+ t = yc;
42647
+ }
42648
+ t.reverse();
42649
+ for (b = a; b--; ) t.push(0);
42650
+ t.reverse();
42651
+ } else {
42652
+ j = ((xlty = xc.length < yc.length) ? xc : yc).length;
42653
+ for (a = b = 0; b < j; b++) {
42654
+ if (xc[b] != yc[b]) {
42655
+ xlty = xc[b] < yc[b];
42656
+ break;
42657
+ }
42658
+ }
42659
+ }
42660
+ if (xlty) {
42661
+ t = xc;
42662
+ xc = yc;
42663
+ yc = t;
42664
+ y.s = -y.s;
42665
+ }
42666
+ if ((b = (j = yc.length) - (i = xc.length)) > 0) for (; b--; ) xc[i++] = 0;
42667
+ for (b = i; j > a; ) {
42668
+ if (xc[--j] < yc[j]) {
42669
+ for (i = j; i && !xc[--i]; ) xc[i] = 9;
42670
+ --xc[i];
42671
+ xc[j] += 10;
42672
+ }
42673
+ xc[j] -= yc[j];
42674
+ }
42675
+ for (; xc[--b] === 0; ) xc.pop();
42676
+ for (; xc[0] === 0; ) {
42677
+ xc.shift();
42678
+ --ye;
42679
+ }
42680
+ if (!xc[0]) {
42681
+ y.s = 1;
42682
+ xc = [ye = 0];
42683
+ }
42684
+ y.c = xc;
42685
+ y.e = ye;
42686
+ return y;
42687
+ };
42688
+ P3.mod = function(y) {
42689
+ var ygtx, x = this, Big3 = x.constructor, a = x.s, b = (y = new Big3(y)).s;
42690
+ if (!y.c[0]) {
42691
+ throw Error(DIV_BY_ZERO2);
42692
+ }
42693
+ x.s = y.s = 1;
42694
+ ygtx = y.cmp(x) == 1;
42695
+ x.s = a;
42696
+ y.s = b;
42697
+ if (ygtx) return new Big3(x);
42698
+ a = Big3.DP;
42699
+ b = Big3.RM;
42700
+ Big3.DP = Big3.RM = 0;
42701
+ x = x.div(y);
42702
+ Big3.DP = a;
42703
+ Big3.RM = b;
42704
+ return this.minus(x.times(y));
42705
+ };
42706
+ P3.neg = function() {
42707
+ var x = new this.constructor(this);
42708
+ x.s = -x.s;
42709
+ return x;
42710
+ };
42711
+ P3.plus = P3.add = function(y) {
42712
+ var e, k, t, x = this, Big3 = x.constructor;
42713
+ y = new Big3(y);
42714
+ if (x.s != y.s) {
42715
+ y.s = -y.s;
42716
+ return x.minus(y);
42717
+ }
42718
+ var xe = x.e, xc = x.c, ye = y.e, yc = y.c;
42719
+ if (!xc[0] || !yc[0]) {
42720
+ if (!yc[0]) {
42721
+ if (xc[0]) {
42722
+ y = new Big3(x);
42723
+ } else {
42724
+ y.s = x.s;
42725
+ }
42726
+ }
42727
+ return y;
42728
+ }
42729
+ xc = xc.slice();
42730
+ if (e = xe - ye) {
42731
+ if (e > 0) {
42732
+ ye = xe;
42733
+ t = yc;
42734
+ } else {
42735
+ e = -e;
42736
+ t = xc;
42737
+ }
42738
+ t.reverse();
42739
+ for (; e--; ) t.push(0);
42740
+ t.reverse();
42741
+ }
42742
+ if (xc.length - yc.length < 0) {
42743
+ t = yc;
42744
+ yc = xc;
42745
+ xc = t;
42746
+ }
42747
+ e = yc.length;
42748
+ for (k = 0; e; xc[e] %= 10) k = (xc[--e] = xc[e] + yc[e] + k) / 10 | 0;
42749
+ if (k) {
42750
+ xc.unshift(k);
42751
+ ++ye;
42752
+ }
42753
+ for (e = xc.length; xc[--e] === 0; ) xc.pop();
42754
+ y.c = xc;
42755
+ y.e = ye;
42756
+ return y;
42757
+ };
42758
+ P3.pow = function(n) {
42759
+ var x = this, one = new x.constructor("1"), y = one, isneg = n < 0;
42760
+ if (n !== ~~n || n < -MAX_POWER2 || n > MAX_POWER2) {
42761
+ throw Error(INVALID2 + "exponent");
42762
+ }
42763
+ if (isneg) n = -n;
42764
+ for (; ; ) {
42765
+ if (n & 1) y = y.times(x);
42766
+ n >>= 1;
42767
+ if (!n) break;
42768
+ x = x.times(x);
42769
+ }
42770
+ return isneg ? one.div(y) : y;
42771
+ };
42772
+ P3.prec = function(sd, rm) {
42773
+ if (sd !== ~~sd || sd < 1 || sd > MAX_DP2) {
42774
+ throw Error(INVALID2 + "precision");
42775
+ }
42776
+ return round3(new this.constructor(this), sd, rm);
42777
+ };
42778
+ P3.round = function(dp, rm) {
42779
+ if (dp === UNDEFINED2) dp = 0;
42780
+ else if (dp !== ~~dp || dp < -MAX_DP2 || dp > MAX_DP2) {
42781
+ throw Error(INVALID_DP2);
42782
+ }
42783
+ return round3(new this.constructor(this), dp + this.e + 1, rm);
42784
+ };
42785
+ P3.sqrt = function() {
42786
+ var r, c, t, x = this, Big3 = x.constructor, s = x.s, e = x.e, half = new Big3("0.5");
42787
+ if (!x.c[0]) return new Big3(x);
42788
+ if (s < 0) {
42789
+ throw Error(NAME3 + "No square root");
42790
+ }
42791
+ s = Math.sqrt(+stringify2(x, true, true));
42792
+ if (s === 0 || s === 1 / 0) {
42793
+ c = x.c.join("");
42794
+ if (!(c.length + e & 1)) c += "0";
42795
+ s = Math.sqrt(c);
42796
+ e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
42797
+ r = new Big3((s == 1 / 0 ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
42798
+ } else {
42799
+ r = new Big3(s + "");
42800
+ }
42801
+ e = r.e + (Big3.DP += 4);
42802
+ do {
42803
+ t = r;
42804
+ r = half.times(t.plus(x.div(t)));
42805
+ } while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
42806
+ return round3(r, (Big3.DP -= 4) + r.e + 1, Big3.RM);
42807
+ };
42808
+ P3.times = P3.mul = function(y) {
42809
+ var c, x = this, Big3 = x.constructor, xc = x.c, yc = (y = new Big3(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
42810
+ y.s = x.s == y.s ? 1 : -1;
42811
+ if (!xc[0] || !yc[0]) {
42812
+ y.c = [y.e = 0];
42813
+ return y;
42814
+ }
42815
+ y.e = i + j;
42816
+ if (a < b) {
42817
+ c = xc;
42818
+ xc = yc;
42819
+ yc = c;
42820
+ j = a;
42821
+ a = b;
42822
+ b = j;
42823
+ }
42824
+ for (c = new Array(j = a + b); j--; ) c[j] = 0;
42825
+ for (i = b; i--; ) {
42826
+ b = 0;
42827
+ for (j = a + i; j > i; ) {
42828
+ b = c[j] + yc[i] * xc[j - i - 1] + b;
42829
+ c[j--] = b % 10;
42830
+ b = b / 10 | 0;
42831
+ }
42832
+ c[j] = b;
42833
+ }
42834
+ if (b) ++y.e;
42835
+ else c.shift();
42836
+ for (i = c.length; !c[--i]; ) c.pop();
42837
+ y.c = c;
42838
+ return y;
42839
+ };
42840
+ P3.toExponential = function(dp, rm) {
42841
+ var x = this, n = x.c[0];
42842
+ if (dp !== UNDEFINED2) {
42843
+ if (dp !== ~~dp || dp < 0 || dp > MAX_DP2) {
42844
+ throw Error(INVALID_DP2);
42845
+ }
42846
+ x = round3(new x.constructor(x), ++dp, rm);
42847
+ for (; x.c.length < dp; ) x.c.push(0);
42848
+ }
42849
+ return stringify2(x, true, !!n);
42850
+ };
42851
+ P3.toFixed = function(dp, rm) {
42852
+ var x = this, n = x.c[0];
42853
+ if (dp !== UNDEFINED2) {
42854
+ if (dp !== ~~dp || dp < 0 || dp > MAX_DP2) {
42855
+ throw Error(INVALID_DP2);
42856
+ }
42857
+ x = round3(new x.constructor(x), dp + x.e + 1, rm);
42858
+ for (dp = dp + x.e + 1; x.c.length < dp; ) x.c.push(0);
42859
+ }
42860
+ return stringify2(x, false, !!n);
42861
+ };
42862
+ P3.toJSON = P3.toString = function() {
42863
+ var x = this, Big3 = x.constructor;
42864
+ return stringify2(x, x.e <= Big3.NE || x.e >= Big3.PE, !!x.c[0]);
42865
+ };
42866
+ if (typeof Symbol !== "undefined") {
42867
+ P3[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = P3.toJSON;
42868
+ }
42869
+ P3.toNumber = function() {
42870
+ var n = +stringify2(this, true, true);
42871
+ if (this.constructor.strict === true && !this.eq(n.toString())) {
42872
+ throw Error(NAME3 + "Imprecise conversion");
42873
+ }
42874
+ return n;
42875
+ };
42876
+ P3.toPrecision = function(sd, rm) {
42877
+ var x = this, Big3 = x.constructor, n = x.c[0];
42878
+ if (sd !== UNDEFINED2) {
42879
+ if (sd !== ~~sd || sd < 1 || sd > MAX_DP2) {
42880
+ throw Error(INVALID2 + "precision");
42881
+ }
42882
+ x = round3(new Big3(x), sd, rm);
42883
+ for (; x.c.length < sd; ) x.c.push(0);
42884
+ }
42885
+ return stringify2(x, sd <= x.e || x.e <= Big3.NE || x.e >= Big3.PE, !!n);
42886
+ };
42887
+ P3.valueOf = function() {
42888
+ var x = this, Big3 = x.constructor;
42889
+ if (Big3.strict === true) {
42890
+ throw Error(NAME3 + "valueOf disallowed");
42891
+ }
42892
+ return stringify2(x, x.e <= Big3.NE || x.e >= Big3.PE, true);
42893
+ };
42894
+ var Big2 = _Big_2();
42895
+ var big_default2 = Big2;
42896
+
42897
+ // src/libraries.js
42898
+ var libraries_exports = {};
42899
+ __export(libraries_exports, {
42900
+ libraries: () => libraries,
42901
+ loadLibrary: () => loadLibrary
42902
+ });
42903
+ var jsdelivr = (name, version, file) => `https://cdn.jsdelivr.net/npm/${name}@${version}/${file}`;
42904
+ var libraries = Object.freeze({
42905
+ echarts: Object.freeze({
42906
+ packages: { echarts: "6.1.0" },
42907
+ local: "echarts/dist/echarts.esm.min.mjs",
42908
+ url: jsdelivr("echarts", "6.1.0", "dist/echarts.esm.min.mjs"),
42909
+ integrity: "sha384-2svH5QplTeBKhRXWxXOJE2P6pRpgnqVq8l8U1dYXUBXvc2zJ/FMMardtnPnnCXnt",
42910
+ format: "module"
42911
+ }),
42912
+ echartsGl: Object.freeze({
42913
+ packages: { "echarts-gl": "2.1.0" },
42914
+ local: "echarts-gl/dist/echarts-gl.min.js",
42915
+ url: null,
42916
+ integrity: null,
42917
+ format: "script",
42918
+ global: "echarts-gl"
42919
+ }),
42920
+ uplot: Object.freeze({
42921
+ packages: { uplot: "1.6.32" },
42922
+ local: "uplot/dist/uPlot.esm.js",
42923
+ url: jsdelivr("uplot", "1.6.32", "dist/uPlot.esm.js"),
42924
+ integrity: "sha384-iUdBlEO5qc07+gOz+3rq/Besyud+KVIxM+xJEuUBObxLG3C/Dlkz8OYuPUcPrCGP",
42925
+ format: "module"
42926
+ }),
42927
+ uplotStyle: Object.freeze({
42928
+ packages: { uplot: "1.6.32" },
42929
+ local: "uplot/dist/uPlot.min.css",
42930
+ url: jsdelivr("uplot", "1.6.32", "dist/uPlot.min.css"),
42931
+ integrity: "sha384-IfV0B7MIOYuO95kO9G5ySKPz/85zqFNOAs8iy4tkK5zd9izhJAB8b7lHrwYqqmYE",
42932
+ format: "style"
42933
+ }),
42934
+ plotly: Object.freeze({
42935
+ packages: { "plotly.js-dist-min": "4.2.0" },
42936
+ local: "plotly.js-dist-min",
42937
+ url: null,
42938
+ integrity: null,
42939
+ format: "module"
42940
+ }),
42941
+ vega: Object.freeze({ packages: { vega: "6.4.0" }, local: "vega", url: null, integrity: null, format: "module" }),
42942
+ writeExcelFile: Object.freeze({
42943
+ packages: { "write-excel-file": "4.1.1" },
42944
+ local: "write-excel-file/browser",
42945
+ url: null,
42946
+ integrity: null,
42947
+ format: "module"
42948
+ }),
42949
+ jodit: Object.freeze({
42950
+ packages: { jodit: "4.18.10" },
42951
+ local: "./components/jodit-engine.js",
42952
+ url: null,
42953
+ integrity: null,
42954
+ format: "module"
42955
+ }),
42956
+ codemirror: Object.freeze({
42957
+ packages: {
42958
+ "@codemirror/autocomplete": "6.20.4",
42959
+ "@codemirror/commands": "6.11.1",
42960
+ "@codemirror/lang-css": "6.3.1",
42961
+ "@codemirror/lang-html": "6.4.12",
42962
+ "@codemirror/lang-javascript": "6.2.5",
42963
+ "@codemirror/lang-json": "6.0.2",
42964
+ "@codemirror/lang-markdown": "6.5.2",
42965
+ "@codemirror/lang-python": "6.2.1",
42966
+ "@codemirror/lang-sql": "6.10.0",
42967
+ "@codemirror/lang-xml": "6.1.0",
42968
+ "@codemirror/language": "6.13.1",
42969
+ "@codemirror/lint": "6.9.7",
42970
+ "@codemirror/search": "6.7.2",
42971
+ "@codemirror/state": "6.7.6",
42972
+ "@codemirror/view": "6.43.15",
42973
+ "@lezer/highlight": "1.2.5",
42974
+ "codemirror-lang-typst": "0.6.0"
42975
+ },
42976
+ local: "./components/code-mirror-engine.js",
42977
+ url: null,
42978
+ integrity: null,
42979
+ format: "module"
42980
+ }),
42981
+ prosemirror: Object.freeze({
42982
+ packages: {
42983
+ "prosemirror-commands": "1.6.2",
42984
+ "prosemirror-history": "1.4.1",
42985
+ "prosemirror-keymap": "1.2.2",
42986
+ "prosemirror-markdown": "1.13.1",
42987
+ "prosemirror-model": "1.25.12",
42988
+ "prosemirror-state": "1.4.3",
42989
+ "prosemirror-view": "1.42.6"
42990
+ },
42991
+ local: "./components/prose-mirror-engine.js",
42992
+ url: null,
42993
+ integrity: null,
42994
+ format: "module"
42995
+ }),
42996
+ typst: Object.freeze({
42997
+ packages: {
42998
+ "@myriaddreamin/typst.ts": "0.7.0",
42999
+ "@myriaddreamin/typst-ts-web-compiler": "0.7.0",
43000
+ "@myriaddreamin/typst-ts-renderer": "0.7.0"
43001
+ },
43002
+ local: "./components/typst-client.js",
43003
+ url: null,
43004
+ integrity: null,
43005
+ format: "module"
43006
+ })
43007
+ });
43008
+ async function loadLibrary(name, document, localImport) {
43009
+ if (!Object.hasOwn(libraries, name)) throw new Error(`Unknown third-party library: ${name}`);
43010
+ const library = libraries[name];
43011
+ const cdn = library.url !== null && document.documentElement.getAttribute("data-gramlot-library-source") === "cdn";
43012
+ if (library.format === "style") {
43013
+ if (!cdn) return (await localImport()).default;
43014
+ const response = await document.defaultView.fetch(library.url, { integrity: library.integrity });
43015
+ if (!response.ok) throw new Error(`${name}: ${library.url} answered ${response.status}`);
43016
+ return response.text();
43017
+ }
43018
+ const module = cdn ? await import(library.url) : await localImport();
43019
+ return library.format === "script" ? document.defaultView[library.global] : module;
43020
+ }
43021
+
43022
+ // src/shared-modules.js
43023
+ var sharedModules = Object.freeze({
43024
+ "@genrojs/bag": src_exports2,
43025
+ "@genrojs/builders": src_exports3,
43026
+ "@genrojs/toolbox": src_exports4,
43027
+ "@genrojs/tytx": src_exports,
43028
+ "@xmldom/xmldom": xmldom,
43029
+ "decimal.js": decimal_exports,
43030
+ "big.js": big_exports,
43031
+ "@msgpack/msgpack": dist_exports,
43032
+ "dompurify": purify_es_exports,
43033
+ "./random-id.js": random_id_exports,
43034
+ "./format.js": format_exports,
43035
+ "./libraries.js": libraries_exports,
43036
+ "./media-frame.js": media_frame_exports,
43037
+ "./validation-run.js": validation_run_exports,
43038
+ "./renderer/attributes.js": attributes_exports,
43039
+ "./view/labelbox.js": labelbox_exports,
43040
+ "./stores/column-filter.js": column_filter_exports,
43041
+ "./stores/collection-filter.js": collection_filter_exports,
43042
+ "./stores/id-set.js": id_set_exports,
43043
+ "./stores/bag-collection-store.js": bag_collection_store_exports,
43044
+ "./stores/bag-collection-view.js": bag_collection_view_exports,
43045
+ "./components/bases.js": bases_exports,
43046
+ "./components/choices.js": choices_exports,
43047
+ "./components/choice-field-styles.js": choice_field_styles_exports,
43048
+ "./components/field-state.js": field_state_exports,
43049
+ "./components/grid-formulas.js": grid_formulas_exports,
43050
+ "./components/grid-structure.js": grid_structure_exports,
43051
+ "./components/labelbox.js": labelbox_exports2,
43052
+ "./components/parameters.js": parameters_exports,
43053
+ "./components/popup.js": popup_exports,
43054
+ "./components/validation.js": validation_exports
43055
+ });
41531
43056
  export {
41532
43057
  Bag,
41533
43058
  BagNode,
@@ -41591,9 +43116,12 @@ export {
41591
43116
  fileSystemTree,
41592
43117
  fromTytx,
41593
43118
  fromTytxIter,
43119
+ libraries,
43120
+ loadLibrary,
41594
43121
  loadMarkdown,
41595
43122
  mountIndexPage,
41596
43123
  parseDateExpression,
43124
+ sharedModules,
41597
43125
  sourceTarget,
41598
43126
  toTytx,
41599
43127
  verifyCollectionArtifact,