@design.estate/dees-domtools 2.0.39 → 2.0.41

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.
@@ -34,14 +34,14 @@ var require_dist_ts = __commonJS({
34
34
  "use strict";
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.uni = void 0;
37
- var uni3 = (prefix = "uni") => {
37
+ var uni2 = (prefix = "uni") => {
38
38
  return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c3) => {
39
39
  const r4 = Math.random() * 16 | 0;
40
40
  const v2 = c3 === "x" ? r4 : r4 & 3 | 8;
41
41
  return v2.toString(16);
42
42
  })}`;
43
43
  };
44
- exports.uni = uni3;
44
+ exports.uni = uni2;
45
45
  }
46
46
  });
47
47
 
@@ -1453,16 +1453,16 @@ var require_ieee754 = __commonJS({
1453
1453
  var require_buffer = __commonJS({
1454
1454
  "node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.js"(exports) {
1455
1455
  "use strict";
1456
- var base643 = require_base64_js();
1456
+ var base642 = require_base64_js();
1457
1457
  var ieee754 = require_ieee754();
1458
1458
  var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
1459
- exports.Buffer = Buffer4;
1459
+ exports.Buffer = Buffer3;
1460
1460
  exports.SlowBuffer = SlowBuffer;
1461
1461
  exports.INSPECT_MAX_BYTES = 50;
1462
1462
  var K_MAX_LENGTH = 2147483647;
1463
1463
  exports.kMaxLength = K_MAX_LENGTH;
1464
- Buffer4.TYPED_ARRAY_SUPPORT = typedArraySupport();
1465
- if (!Buffer4.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
1464
+ Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
1465
+ if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
1466
1466
  console.error(
1467
1467
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
1468
1468
  );
@@ -1480,18 +1480,18 @@ var require_buffer = __commonJS({
1480
1480
  return false;
1481
1481
  }
1482
1482
  }
1483
- Object.defineProperty(Buffer4.prototype, "parent", {
1483
+ Object.defineProperty(Buffer3.prototype, "parent", {
1484
1484
  enumerable: true,
1485
1485
  get: function() {
1486
- if (!Buffer4.isBuffer(this))
1486
+ if (!Buffer3.isBuffer(this))
1487
1487
  return void 0;
1488
1488
  return this.buffer;
1489
1489
  }
1490
1490
  });
1491
- Object.defineProperty(Buffer4.prototype, "offset", {
1491
+ Object.defineProperty(Buffer3.prototype, "offset", {
1492
1492
  enumerable: true,
1493
1493
  get: function() {
1494
- if (!Buffer4.isBuffer(this))
1494
+ if (!Buffer3.isBuffer(this))
1495
1495
  return void 0;
1496
1496
  return this.byteOffset;
1497
1497
  }
@@ -1501,10 +1501,10 @@ var require_buffer = __commonJS({
1501
1501
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
1502
1502
  }
1503
1503
  const buf = new Uint8Array(length);
1504
- Object.setPrototypeOf(buf, Buffer4.prototype);
1504
+ Object.setPrototypeOf(buf, Buffer3.prototype);
1505
1505
  return buf;
1506
1506
  }
1507
- function Buffer4(arg, encodingOrOffset, length) {
1507
+ function Buffer3(arg, encodingOrOffset, length) {
1508
1508
  if (typeof arg === "number") {
1509
1509
  if (typeof encodingOrOffset === "string") {
1510
1510
  throw new TypeError(
@@ -1515,7 +1515,7 @@ var require_buffer = __commonJS({
1515
1515
  }
1516
1516
  return from2(arg, encodingOrOffset, length);
1517
1517
  }
1518
- Buffer4.poolSize = 8192;
1518
+ Buffer3.poolSize = 8192;
1519
1519
  function from2(value, encodingOrOffset, length) {
1520
1520
  if (typeof value === "string") {
1521
1521
  return fromString(value, encodingOrOffset);
@@ -1541,23 +1541,23 @@ var require_buffer = __commonJS({
1541
1541
  }
1542
1542
  const valueOf = value.valueOf && value.valueOf();
1543
1543
  if (valueOf != null && valueOf !== value) {
1544
- return Buffer4.from(valueOf, encodingOrOffset, length);
1544
+ return Buffer3.from(valueOf, encodingOrOffset, length);
1545
1545
  }
1546
1546
  const b2 = fromObject(value);
1547
1547
  if (b2)
1548
1548
  return b2;
1549
1549
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
1550
- return Buffer4.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
1550
+ return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
1551
1551
  }
1552
1552
  throw new TypeError(
1553
1553
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
1554
1554
  );
1555
1555
  }
1556
- Buffer4.from = function(value, encodingOrOffset, length) {
1556
+ Buffer3.from = function(value, encodingOrOffset, length) {
1557
1557
  return from2(value, encodingOrOffset, length);
1558
1558
  };
1559
- Object.setPrototypeOf(Buffer4.prototype, Uint8Array.prototype);
1560
- Object.setPrototypeOf(Buffer4, Uint8Array);
1559
+ Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
1560
+ Object.setPrototypeOf(Buffer3, Uint8Array);
1561
1561
  function assertSize(size) {
1562
1562
  if (typeof size !== "number") {
1563
1563
  throw new TypeError('"size" argument must be of type number');
@@ -1575,24 +1575,24 @@ var require_buffer = __commonJS({
1575
1575
  }
1576
1576
  return createBuffer(size);
1577
1577
  }
1578
- Buffer4.alloc = function(size, fill, encoding) {
1578
+ Buffer3.alloc = function(size, fill, encoding) {
1579
1579
  return alloc(size, fill, encoding);
1580
1580
  };
1581
1581
  function allocUnsafe(size) {
1582
1582
  assertSize(size);
1583
1583
  return createBuffer(size < 0 ? 0 : checked(size) | 0);
1584
1584
  }
1585
- Buffer4.allocUnsafe = function(size) {
1585
+ Buffer3.allocUnsafe = function(size) {
1586
1586
  return allocUnsafe(size);
1587
1587
  };
1588
- Buffer4.allocUnsafeSlow = function(size) {
1588
+ Buffer3.allocUnsafeSlow = function(size) {
1589
1589
  return allocUnsafe(size);
1590
1590
  };
1591
1591
  function fromString(string, encoding) {
1592
1592
  if (typeof encoding !== "string" || encoding === "") {
1593
1593
  encoding = "utf8";
1594
1594
  }
1595
- if (!Buffer4.isEncoding(encoding)) {
1595
+ if (!Buffer3.isEncoding(encoding)) {
1596
1596
  throw new TypeError("Unknown encoding: " + encoding);
1597
1597
  }
1598
1598
  const length = byteLength(string, encoding) | 0;
@@ -1633,11 +1633,11 @@ var require_buffer = __commonJS({
1633
1633
  } else {
1634
1634
  buf = new Uint8Array(array, byteOffset, length);
1635
1635
  }
1636
- Object.setPrototypeOf(buf, Buffer4.prototype);
1636
+ Object.setPrototypeOf(buf, Buffer3.prototype);
1637
1637
  return buf;
1638
1638
  }
1639
1639
  function fromObject(obj) {
1640
- if (Buffer4.isBuffer(obj)) {
1640
+ if (Buffer3.isBuffer(obj)) {
1641
1641
  const len = checked(obj.length) | 0;
1642
1642
  const buf = createBuffer(len);
1643
1643
  if (buf.length === 0) {
@@ -1666,17 +1666,17 @@ var require_buffer = __commonJS({
1666
1666
  if (+length != length) {
1667
1667
  length = 0;
1668
1668
  }
1669
- return Buffer4.alloc(+length);
1669
+ return Buffer3.alloc(+length);
1670
1670
  }
1671
- Buffer4.isBuffer = function isBuffer(b2) {
1672
- return b2 != null && b2._isBuffer === true && b2 !== Buffer4.prototype;
1671
+ Buffer3.isBuffer = function isBuffer(b2) {
1672
+ return b2 != null && b2._isBuffer === true && b2 !== Buffer3.prototype;
1673
1673
  };
1674
- Buffer4.compare = function compare(a3, b2) {
1674
+ Buffer3.compare = function compare(a3, b2) {
1675
1675
  if (isInstance(a3, Uint8Array))
1676
- a3 = Buffer4.from(a3, a3.offset, a3.byteLength);
1676
+ a3 = Buffer3.from(a3, a3.offset, a3.byteLength);
1677
1677
  if (isInstance(b2, Uint8Array))
1678
- b2 = Buffer4.from(b2, b2.offset, b2.byteLength);
1679
- if (!Buffer4.isBuffer(a3) || !Buffer4.isBuffer(b2)) {
1678
+ b2 = Buffer3.from(b2, b2.offset, b2.byteLength);
1679
+ if (!Buffer3.isBuffer(a3) || !Buffer3.isBuffer(b2)) {
1680
1680
  throw new TypeError(
1681
1681
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
1682
1682
  );
@@ -1698,7 +1698,7 @@ var require_buffer = __commonJS({
1698
1698
  return 1;
1699
1699
  return 0;
1700
1700
  };
1701
- Buffer4.isEncoding = function isEncoding(encoding) {
1701
+ Buffer3.isEncoding = function isEncoding(encoding) {
1702
1702
  switch (String(encoding).toLowerCase()) {
1703
1703
  case "hex":
1704
1704
  case "utf8":
@@ -1716,12 +1716,12 @@ var require_buffer = __commonJS({
1716
1716
  return false;
1717
1717
  }
1718
1718
  };
1719
- Buffer4.concat = function concat2(list, length) {
1719
+ Buffer3.concat = function concat2(list, length) {
1720
1720
  if (!Array.isArray(list)) {
1721
1721
  throw new TypeError('"list" argument must be an Array of Buffers');
1722
1722
  }
1723
1723
  if (list.length === 0) {
1724
- return Buffer4.alloc(0);
1724
+ return Buffer3.alloc(0);
1725
1725
  }
1726
1726
  let i3;
1727
1727
  if (length === void 0) {
@@ -1730,14 +1730,14 @@ var require_buffer = __commonJS({
1730
1730
  length += list[i3].length;
1731
1731
  }
1732
1732
  }
1733
- const buffer = Buffer4.allocUnsafe(length);
1733
+ const buffer = Buffer3.allocUnsafe(length);
1734
1734
  let pos = 0;
1735
1735
  for (i3 = 0; i3 < list.length; ++i3) {
1736
1736
  let buf = list[i3];
1737
1737
  if (isInstance(buf, Uint8Array)) {
1738
1738
  if (pos + buf.length > buffer.length) {
1739
- if (!Buffer4.isBuffer(buf))
1740
- buf = Buffer4.from(buf);
1739
+ if (!Buffer3.isBuffer(buf))
1740
+ buf = Buffer3.from(buf);
1741
1741
  buf.copy(buffer, pos);
1742
1742
  } else {
1743
1743
  Uint8Array.prototype.set.call(
@@ -1746,7 +1746,7 @@ var require_buffer = __commonJS({
1746
1746
  pos
1747
1747
  );
1748
1748
  }
1749
- } else if (!Buffer4.isBuffer(buf)) {
1749
+ } else if (!Buffer3.isBuffer(buf)) {
1750
1750
  throw new TypeError('"list" argument must be an Array of Buffers');
1751
1751
  } else {
1752
1752
  buf.copy(buffer, pos);
@@ -1756,7 +1756,7 @@ var require_buffer = __commonJS({
1756
1756
  return buffer;
1757
1757
  };
1758
1758
  function byteLength(string, encoding) {
1759
- if (Buffer4.isBuffer(string)) {
1759
+ if (Buffer3.isBuffer(string)) {
1760
1760
  return string.length;
1761
1761
  }
1762
1762
  if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
@@ -1799,7 +1799,7 @@ var require_buffer = __commonJS({
1799
1799
  }
1800
1800
  }
1801
1801
  }
1802
- Buffer4.byteLength = byteLength;
1802
+ Buffer3.byteLength = byteLength;
1803
1803
  function slowToString(encoding, start, end) {
1804
1804
  let loweredCase = false;
1805
1805
  if (start === void 0 || start < 0) {
@@ -1848,13 +1848,13 @@ var require_buffer = __commonJS({
1848
1848
  }
1849
1849
  }
1850
1850
  }
1851
- Buffer4.prototype._isBuffer = true;
1851
+ Buffer3.prototype._isBuffer = true;
1852
1852
  function swap(b2, n5, m2) {
1853
1853
  const i3 = b2[n5];
1854
1854
  b2[n5] = b2[m2];
1855
1855
  b2[m2] = i3;
1856
1856
  }
1857
- Buffer4.prototype.swap16 = function swap16() {
1857
+ Buffer3.prototype.swap16 = function swap16() {
1858
1858
  const len = this.length;
1859
1859
  if (len % 2 !== 0) {
1860
1860
  throw new RangeError("Buffer size must be a multiple of 16-bits");
@@ -1864,7 +1864,7 @@ var require_buffer = __commonJS({
1864
1864
  }
1865
1865
  return this;
1866
1866
  };
1867
- Buffer4.prototype.swap32 = function swap32() {
1867
+ Buffer3.prototype.swap32 = function swap32() {
1868
1868
  const len = this.length;
1869
1869
  if (len % 4 !== 0) {
1870
1870
  throw new RangeError("Buffer size must be a multiple of 32-bits");
@@ -1875,7 +1875,7 @@ var require_buffer = __commonJS({
1875
1875
  }
1876
1876
  return this;
1877
1877
  };
1878
- Buffer4.prototype.swap64 = function swap64() {
1878
+ Buffer3.prototype.swap64 = function swap64() {
1879
1879
  const len = this.length;
1880
1880
  if (len % 8 !== 0) {
1881
1881
  throw new RangeError("Buffer size must be a multiple of 64-bits");
@@ -1888,7 +1888,7 @@ var require_buffer = __commonJS({
1888
1888
  }
1889
1889
  return this;
1890
1890
  };
1891
- Buffer4.prototype.toString = function toString() {
1891
+ Buffer3.prototype.toString = function toString() {
1892
1892
  const length = this.length;
1893
1893
  if (length === 0)
1894
1894
  return "";
@@ -1896,15 +1896,15 @@ var require_buffer = __commonJS({
1896
1896
  return utf8Slice(this, 0, length);
1897
1897
  return slowToString.apply(this, arguments);
1898
1898
  };
1899
- Buffer4.prototype.toLocaleString = Buffer4.prototype.toString;
1900
- Buffer4.prototype.equals = function equals(b2) {
1901
- if (!Buffer4.isBuffer(b2))
1899
+ Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
1900
+ Buffer3.prototype.equals = function equals(b2) {
1901
+ if (!Buffer3.isBuffer(b2))
1902
1902
  throw new TypeError("Argument must be a Buffer");
1903
1903
  if (this === b2)
1904
1904
  return true;
1905
- return Buffer4.compare(this, b2) === 0;
1905
+ return Buffer3.compare(this, b2) === 0;
1906
1906
  };
1907
- Buffer4.prototype.inspect = function inspect() {
1907
+ Buffer3.prototype.inspect = function inspect() {
1908
1908
  let str = "";
1909
1909
  const max = exports.INSPECT_MAX_BYTES;
1910
1910
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
@@ -1913,13 +1913,13 @@ var require_buffer = __commonJS({
1913
1913
  return "<Buffer " + str + ">";
1914
1914
  };
1915
1915
  if (customInspectSymbol) {
1916
- Buffer4.prototype[customInspectSymbol] = Buffer4.prototype.inspect;
1916
+ Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
1917
1917
  }
1918
- Buffer4.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
1918
+ Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
1919
1919
  if (isInstance(target, Uint8Array)) {
1920
- target = Buffer4.from(target, target.offset, target.byteLength);
1920
+ target = Buffer3.from(target, target.offset, target.byteLength);
1921
1921
  }
1922
- if (!Buffer4.isBuffer(target)) {
1922
+ if (!Buffer3.isBuffer(target)) {
1923
1923
  throw new TypeError(
1924
1924
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
1925
1925
  );
@@ -2001,9 +2001,9 @@ var require_buffer = __commonJS({
2001
2001
  return -1;
2002
2002
  }
2003
2003
  if (typeof val === "string") {
2004
- val = Buffer4.from(val, encoding);
2004
+ val = Buffer3.from(val, encoding);
2005
2005
  }
2006
- if (Buffer4.isBuffer(val)) {
2006
+ if (Buffer3.isBuffer(val)) {
2007
2007
  if (val.length === 0) {
2008
2008
  return -1;
2009
2009
  }
@@ -2076,13 +2076,13 @@ var require_buffer = __commonJS({
2076
2076
  }
2077
2077
  return -1;
2078
2078
  }
2079
- Buffer4.prototype.includes = function includes(val, byteOffset, encoding) {
2079
+ Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
2080
2080
  return this.indexOf(val, byteOffset, encoding) !== -1;
2081
2081
  };
2082
- Buffer4.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
2082
+ Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
2083
2083
  return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
2084
2084
  };
2085
- Buffer4.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
2085
+ Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
2086
2086
  return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
2087
2087
  };
2088
2088
  function hexWrite(buf, string, offset, length) {
@@ -2121,7 +2121,7 @@ var require_buffer = __commonJS({
2121
2121
  function ucs2Write(buf, string, offset, length) {
2122
2122
  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
2123
2123
  }
2124
- Buffer4.prototype.write = function write(string, offset, length, encoding) {
2124
+ Buffer3.prototype.write = function write(string, offset, length, encoding) {
2125
2125
  if (offset === void 0) {
2126
2126
  encoding = "utf8";
2127
2127
  length = this.length;
@@ -2180,7 +2180,7 @@ var require_buffer = __commonJS({
2180
2180
  }
2181
2181
  }
2182
2182
  };
2183
- Buffer4.prototype.toJSON = function toJSON() {
2183
+ Buffer3.prototype.toJSON = function toJSON() {
2184
2184
  return {
2185
2185
  type: "Buffer",
2186
2186
  data: Array.prototype.slice.call(this._arr || this, 0)
@@ -2188,9 +2188,9 @@ var require_buffer = __commonJS({
2188
2188
  };
2189
2189
  function base64Slice(buf, start, end) {
2190
2190
  if (start === 0 && end === buf.length) {
2191
- return base643.fromByteArray(buf);
2191
+ return base642.fromByteArray(buf);
2192
2192
  } else {
2193
- return base643.fromByteArray(buf.slice(start, end));
2193
+ return base642.fromByteArray(buf.slice(start, end));
2194
2194
  }
2195
2195
  }
2196
2196
  function utf8Slice(buf, start, end) {
@@ -2305,7 +2305,7 @@ var require_buffer = __commonJS({
2305
2305
  }
2306
2306
  return res;
2307
2307
  }
2308
- Buffer4.prototype.slice = function slice(start, end) {
2308
+ Buffer3.prototype.slice = function slice(start, end) {
2309
2309
  const len = this.length;
2310
2310
  start = ~~start;
2311
2311
  end = end === void 0 ? len : ~~end;
@@ -2326,7 +2326,7 @@ var require_buffer = __commonJS({
2326
2326
  if (end < start)
2327
2327
  end = start;
2328
2328
  const newBuf = this.subarray(start, end);
2329
- Object.setPrototypeOf(newBuf, Buffer4.prototype);
2329
+ Object.setPrototypeOf(newBuf, Buffer3.prototype);
2330
2330
  return newBuf;
2331
2331
  };
2332
2332
  function checkOffset(offset, ext, length) {
@@ -2335,7 +2335,7 @@ var require_buffer = __commonJS({
2335
2335
  if (offset + ext > length)
2336
2336
  throw new RangeError("Trying to access beyond buffer length");
2337
2337
  }
2338
- Buffer4.prototype.readUintLE = Buffer4.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
2338
+ Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
2339
2339
  offset = offset >>> 0;
2340
2340
  byteLength2 = byteLength2 >>> 0;
2341
2341
  if (!noAssert)
@@ -2348,7 +2348,7 @@ var require_buffer = __commonJS({
2348
2348
  }
2349
2349
  return val;
2350
2350
  };
2351
- Buffer4.prototype.readUintBE = Buffer4.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
2351
+ Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
2352
2352
  offset = offset >>> 0;
2353
2353
  byteLength2 = byteLength2 >>> 0;
2354
2354
  if (!noAssert) {
@@ -2361,37 +2361,37 @@ var require_buffer = __commonJS({
2361
2361
  }
2362
2362
  return val;
2363
2363
  };
2364
- Buffer4.prototype.readUint8 = Buffer4.prototype.readUInt8 = function readUInt8(offset, noAssert) {
2364
+ Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
2365
2365
  offset = offset >>> 0;
2366
2366
  if (!noAssert)
2367
2367
  checkOffset(offset, 1, this.length);
2368
2368
  return this[offset];
2369
2369
  };
2370
- Buffer4.prototype.readUint16LE = Buffer4.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
2370
+ Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
2371
2371
  offset = offset >>> 0;
2372
2372
  if (!noAssert)
2373
2373
  checkOffset(offset, 2, this.length);
2374
2374
  return this[offset] | this[offset + 1] << 8;
2375
2375
  };
2376
- Buffer4.prototype.readUint16BE = Buffer4.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
2376
+ Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
2377
2377
  offset = offset >>> 0;
2378
2378
  if (!noAssert)
2379
2379
  checkOffset(offset, 2, this.length);
2380
2380
  return this[offset] << 8 | this[offset + 1];
2381
2381
  };
2382
- Buffer4.prototype.readUint32LE = Buffer4.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
2382
+ Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
2383
2383
  offset = offset >>> 0;
2384
2384
  if (!noAssert)
2385
2385
  checkOffset(offset, 4, this.length);
2386
2386
  return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
2387
2387
  };
2388
- Buffer4.prototype.readUint32BE = Buffer4.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
2388
+ Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
2389
2389
  offset = offset >>> 0;
2390
2390
  if (!noAssert)
2391
2391
  checkOffset(offset, 4, this.length);
2392
2392
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
2393
2393
  };
2394
- Buffer4.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
2394
+ Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
2395
2395
  offset = offset >>> 0;
2396
2396
  validateNumber(offset, "offset");
2397
2397
  const first = this[offset];
@@ -2403,7 +2403,7 @@ var require_buffer = __commonJS({
2403
2403
  const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last2 * 2 ** 24;
2404
2404
  return BigInt(lo) + (BigInt(hi) << BigInt(32));
2405
2405
  });
2406
- Buffer4.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
2406
+ Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
2407
2407
  offset = offset >>> 0;
2408
2408
  validateNumber(offset, "offset");
2409
2409
  const first = this[offset];
@@ -2415,7 +2415,7 @@ var require_buffer = __commonJS({
2415
2415
  const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last2;
2416
2416
  return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2417
2417
  });
2418
- Buffer4.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
2418
+ Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
2419
2419
  offset = offset >>> 0;
2420
2420
  byteLength2 = byteLength2 >>> 0;
2421
2421
  if (!noAssert)
@@ -2431,7 +2431,7 @@ var require_buffer = __commonJS({
2431
2431
  val -= Math.pow(2, 8 * byteLength2);
2432
2432
  return val;
2433
2433
  };
2434
- Buffer4.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
2434
+ Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
2435
2435
  offset = offset >>> 0;
2436
2436
  byteLength2 = byteLength2 >>> 0;
2437
2437
  if (!noAssert)
@@ -2447,7 +2447,7 @@ var require_buffer = __commonJS({
2447
2447
  val -= Math.pow(2, 8 * byteLength2);
2448
2448
  return val;
2449
2449
  };
2450
- Buffer4.prototype.readInt8 = function readInt8(offset, noAssert) {
2450
+ Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
2451
2451
  offset = offset >>> 0;
2452
2452
  if (!noAssert)
2453
2453
  checkOffset(offset, 1, this.length);
@@ -2455,33 +2455,33 @@ var require_buffer = __commonJS({
2455
2455
  return this[offset];
2456
2456
  return (255 - this[offset] + 1) * -1;
2457
2457
  };
2458
- Buffer4.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
2458
+ Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
2459
2459
  offset = offset >>> 0;
2460
2460
  if (!noAssert)
2461
2461
  checkOffset(offset, 2, this.length);
2462
2462
  const val = this[offset] | this[offset + 1] << 8;
2463
2463
  return val & 32768 ? val | 4294901760 : val;
2464
2464
  };
2465
- Buffer4.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
2465
+ Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
2466
2466
  offset = offset >>> 0;
2467
2467
  if (!noAssert)
2468
2468
  checkOffset(offset, 2, this.length);
2469
2469
  const val = this[offset + 1] | this[offset] << 8;
2470
2470
  return val & 32768 ? val | 4294901760 : val;
2471
2471
  };
2472
- Buffer4.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
2472
+ Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
2473
2473
  offset = offset >>> 0;
2474
2474
  if (!noAssert)
2475
2475
  checkOffset(offset, 4, this.length);
2476
2476
  return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
2477
2477
  };
2478
- Buffer4.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
2478
+ Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
2479
2479
  offset = offset >>> 0;
2480
2480
  if (!noAssert)
2481
2481
  checkOffset(offset, 4, this.length);
2482
2482
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
2483
2483
  };
2484
- Buffer4.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
2484
+ Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
2485
2485
  offset = offset >>> 0;
2486
2486
  validateNumber(offset, "offset");
2487
2487
  const first = this[offset];
@@ -2492,7 +2492,7 @@ var require_buffer = __commonJS({
2492
2492
  const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last2 << 24);
2493
2493
  return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
2494
2494
  });
2495
- Buffer4.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
2495
+ Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
2496
2496
  offset = offset >>> 0;
2497
2497
  validateNumber(offset, "offset");
2498
2498
  const first = this[offset];
@@ -2504,39 +2504,39 @@ var require_buffer = __commonJS({
2504
2504
  this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
2505
2505
  return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last2);
2506
2506
  });
2507
- Buffer4.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
2507
+ Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
2508
2508
  offset = offset >>> 0;
2509
2509
  if (!noAssert)
2510
2510
  checkOffset(offset, 4, this.length);
2511
2511
  return ieee754.read(this, offset, true, 23, 4);
2512
2512
  };
2513
- Buffer4.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
2513
+ Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
2514
2514
  offset = offset >>> 0;
2515
2515
  if (!noAssert)
2516
2516
  checkOffset(offset, 4, this.length);
2517
2517
  return ieee754.read(this, offset, false, 23, 4);
2518
2518
  };
2519
- Buffer4.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
2519
+ Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
2520
2520
  offset = offset >>> 0;
2521
2521
  if (!noAssert)
2522
2522
  checkOffset(offset, 8, this.length);
2523
2523
  return ieee754.read(this, offset, true, 52, 8);
2524
2524
  };
2525
- Buffer4.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
2525
+ Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
2526
2526
  offset = offset >>> 0;
2527
2527
  if (!noAssert)
2528
2528
  checkOffset(offset, 8, this.length);
2529
2529
  return ieee754.read(this, offset, false, 52, 8);
2530
2530
  };
2531
2531
  function checkInt(buf, value, offset, ext, max, min) {
2532
- if (!Buffer4.isBuffer(buf))
2532
+ if (!Buffer3.isBuffer(buf))
2533
2533
  throw new TypeError('"buffer" argument must be a Buffer instance');
2534
2534
  if (value > max || value < min)
2535
2535
  throw new RangeError('"value" argument is out of bounds');
2536
2536
  if (offset + ext > buf.length)
2537
2537
  throw new RangeError("Index out of range");
2538
2538
  }
2539
- Buffer4.prototype.writeUintLE = Buffer4.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
2539
+ Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
2540
2540
  value = +value;
2541
2541
  offset = offset >>> 0;
2542
2542
  byteLength2 = byteLength2 >>> 0;
@@ -2552,7 +2552,7 @@ var require_buffer = __commonJS({
2552
2552
  }
2553
2553
  return offset + byteLength2;
2554
2554
  };
2555
- Buffer4.prototype.writeUintBE = Buffer4.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
2555
+ Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
2556
2556
  value = +value;
2557
2557
  offset = offset >>> 0;
2558
2558
  byteLength2 = byteLength2 >>> 0;
@@ -2568,7 +2568,7 @@ var require_buffer = __commonJS({
2568
2568
  }
2569
2569
  return offset + byteLength2;
2570
2570
  };
2571
- Buffer4.prototype.writeUint8 = Buffer4.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
2571
+ Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
2572
2572
  value = +value;
2573
2573
  offset = offset >>> 0;
2574
2574
  if (!noAssert)
@@ -2576,7 +2576,7 @@ var require_buffer = __commonJS({
2576
2576
  this[offset] = value & 255;
2577
2577
  return offset + 1;
2578
2578
  };
2579
- Buffer4.prototype.writeUint16LE = Buffer4.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
2579
+ Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
2580
2580
  value = +value;
2581
2581
  offset = offset >>> 0;
2582
2582
  if (!noAssert)
@@ -2585,7 +2585,7 @@ var require_buffer = __commonJS({
2585
2585
  this[offset + 1] = value >>> 8;
2586
2586
  return offset + 2;
2587
2587
  };
2588
- Buffer4.prototype.writeUint16BE = Buffer4.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
2588
+ Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
2589
2589
  value = +value;
2590
2590
  offset = offset >>> 0;
2591
2591
  if (!noAssert)
@@ -2594,7 +2594,7 @@ var require_buffer = __commonJS({
2594
2594
  this[offset + 1] = value & 255;
2595
2595
  return offset + 2;
2596
2596
  };
2597
- Buffer4.prototype.writeUint32LE = Buffer4.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
2597
+ Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
2598
2598
  value = +value;
2599
2599
  offset = offset >>> 0;
2600
2600
  if (!noAssert)
@@ -2605,7 +2605,7 @@ var require_buffer = __commonJS({
2605
2605
  this[offset] = value & 255;
2606
2606
  return offset + 4;
2607
2607
  };
2608
- Buffer4.prototype.writeUint32BE = Buffer4.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
2608
+ Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
2609
2609
  value = +value;
2610
2610
  offset = offset >>> 0;
2611
2611
  if (!noAssert)
@@ -2656,13 +2656,13 @@ var require_buffer = __commonJS({
2656
2656
  buf[offset] = hi;
2657
2657
  return offset + 8;
2658
2658
  }
2659
- Buffer4.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
2659
+ Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
2660
2660
  return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
2661
2661
  });
2662
- Buffer4.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
2662
+ Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
2663
2663
  return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
2664
2664
  });
2665
- Buffer4.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
2665
+ Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
2666
2666
  value = +value;
2667
2667
  offset = offset >>> 0;
2668
2668
  if (!noAssert) {
@@ -2681,7 +2681,7 @@ var require_buffer = __commonJS({
2681
2681
  }
2682
2682
  return offset + byteLength2;
2683
2683
  };
2684
- Buffer4.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
2684
+ Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
2685
2685
  value = +value;
2686
2686
  offset = offset >>> 0;
2687
2687
  if (!noAssert) {
@@ -2700,7 +2700,7 @@ var require_buffer = __commonJS({
2700
2700
  }
2701
2701
  return offset + byteLength2;
2702
2702
  };
2703
- Buffer4.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
2703
+ Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
2704
2704
  value = +value;
2705
2705
  offset = offset >>> 0;
2706
2706
  if (!noAssert)
@@ -2710,7 +2710,7 @@ var require_buffer = __commonJS({
2710
2710
  this[offset] = value & 255;
2711
2711
  return offset + 1;
2712
2712
  };
2713
- Buffer4.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
2713
+ Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
2714
2714
  value = +value;
2715
2715
  offset = offset >>> 0;
2716
2716
  if (!noAssert)
@@ -2719,7 +2719,7 @@ var require_buffer = __commonJS({
2719
2719
  this[offset + 1] = value >>> 8;
2720
2720
  return offset + 2;
2721
2721
  };
2722
- Buffer4.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
2722
+ Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
2723
2723
  value = +value;
2724
2724
  offset = offset >>> 0;
2725
2725
  if (!noAssert)
@@ -2728,7 +2728,7 @@ var require_buffer = __commonJS({
2728
2728
  this[offset + 1] = value & 255;
2729
2729
  return offset + 2;
2730
2730
  };
2731
- Buffer4.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
2731
+ Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
2732
2732
  value = +value;
2733
2733
  offset = offset >>> 0;
2734
2734
  if (!noAssert)
@@ -2739,7 +2739,7 @@ var require_buffer = __commonJS({
2739
2739
  this[offset + 3] = value >>> 24;
2740
2740
  return offset + 4;
2741
2741
  };
2742
- Buffer4.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
2742
+ Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
2743
2743
  value = +value;
2744
2744
  offset = offset >>> 0;
2745
2745
  if (!noAssert)
@@ -2752,10 +2752,10 @@ var require_buffer = __commonJS({
2752
2752
  this[offset + 3] = value & 255;
2753
2753
  return offset + 4;
2754
2754
  };
2755
- Buffer4.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
2755
+ Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
2756
2756
  return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
2757
2757
  });
2758
- Buffer4.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
2758
+ Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
2759
2759
  return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
2760
2760
  });
2761
2761
  function checkIEEE754(buf, value, offset, ext, max, min) {
@@ -2773,10 +2773,10 @@ var require_buffer = __commonJS({
2773
2773
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
2774
2774
  return offset + 4;
2775
2775
  }
2776
- Buffer4.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
2776
+ Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
2777
2777
  return writeFloat(this, value, offset, true, noAssert);
2778
2778
  };
2779
- Buffer4.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
2779
+ Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
2780
2780
  return writeFloat(this, value, offset, false, noAssert);
2781
2781
  };
2782
2782
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
@@ -2788,14 +2788,14 @@ var require_buffer = __commonJS({
2788
2788
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
2789
2789
  return offset + 8;
2790
2790
  }
2791
- Buffer4.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
2791
+ Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
2792
2792
  return writeDouble(this, value, offset, true, noAssert);
2793
2793
  };
2794
- Buffer4.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
2794
+ Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
2795
2795
  return writeDouble(this, value, offset, false, noAssert);
2796
2796
  };
2797
- Buffer4.prototype.copy = function copy(target, targetStart, start, end) {
2798
- if (!Buffer4.isBuffer(target))
2797
+ Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
2798
+ if (!Buffer3.isBuffer(target))
2799
2799
  throw new TypeError("argument should be a Buffer");
2800
2800
  if (!start)
2801
2801
  start = 0;
@@ -2835,7 +2835,7 @@ var require_buffer = __commonJS({
2835
2835
  }
2836
2836
  return len;
2837
2837
  };
2838
- Buffer4.prototype.fill = function fill(val, start, end, encoding) {
2838
+ Buffer3.prototype.fill = function fill(val, start, end, encoding) {
2839
2839
  if (typeof val === "string") {
2840
2840
  if (typeof start === "string") {
2841
2841
  encoding = start;
@@ -2848,7 +2848,7 @@ var require_buffer = __commonJS({
2848
2848
  if (encoding !== void 0 && typeof encoding !== "string") {
2849
2849
  throw new TypeError("encoding must be a string");
2850
2850
  }
2851
- if (typeof encoding === "string" && !Buffer4.isEncoding(encoding)) {
2851
+ if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
2852
2852
  throw new TypeError("Unknown encoding: " + encoding);
2853
2853
  }
2854
2854
  if (val.length === 1) {
@@ -2878,7 +2878,7 @@ var require_buffer = __commonJS({
2878
2878
  this[i3] = val;
2879
2879
  }
2880
2880
  } else {
2881
- const bytes = Buffer4.isBuffer(val) ? val : Buffer4.from(val, encoding);
2881
+ const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
2882
2882
  const len = bytes.length;
2883
2883
  if (len === 0) {
2884
2884
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
@@ -3017,8 +3017,8 @@ var require_buffer = __commonJS({
3017
3017
  }
3018
3018
  return str;
3019
3019
  }
3020
- function utf8ToBytes(string, units3) {
3021
- units3 = units3 || Infinity;
3020
+ function utf8ToBytes(string, units2) {
3021
+ units2 = units2 || Infinity;
3022
3022
  let codePoint;
3023
3023
  const length = string.length;
3024
3024
  let leadSurrogate = null;
@@ -3028,11 +3028,11 @@ var require_buffer = __commonJS({
3028
3028
  if (codePoint > 55295 && codePoint < 57344) {
3029
3029
  if (!leadSurrogate) {
3030
3030
  if (codePoint > 56319) {
3031
- if ((units3 -= 3) > -1)
3031
+ if ((units2 -= 3) > -1)
3032
3032
  bytes.push(239, 191, 189);
3033
3033
  continue;
3034
3034
  } else if (i3 + 1 === length) {
3035
- if ((units3 -= 3) > -1)
3035
+ if ((units2 -= 3) > -1)
3036
3036
  bytes.push(239, 191, 189);
3037
3037
  continue;
3038
3038
  }
@@ -3040,30 +3040,30 @@ var require_buffer = __commonJS({
3040
3040
  continue;
3041
3041
  }
3042
3042
  if (codePoint < 56320) {
3043
- if ((units3 -= 3) > -1)
3043
+ if ((units2 -= 3) > -1)
3044
3044
  bytes.push(239, 191, 189);
3045
3045
  leadSurrogate = codePoint;
3046
3046
  continue;
3047
3047
  }
3048
3048
  codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
3049
3049
  } else if (leadSurrogate) {
3050
- if ((units3 -= 3) > -1)
3050
+ if ((units2 -= 3) > -1)
3051
3051
  bytes.push(239, 191, 189);
3052
3052
  }
3053
3053
  leadSurrogate = null;
3054
3054
  if (codePoint < 128) {
3055
- if ((units3 -= 1) < 0)
3055
+ if ((units2 -= 1) < 0)
3056
3056
  break;
3057
3057
  bytes.push(codePoint);
3058
3058
  } else if (codePoint < 2048) {
3059
- if ((units3 -= 2) < 0)
3059
+ if ((units2 -= 2) < 0)
3060
3060
  break;
3061
3061
  bytes.push(
3062
3062
  codePoint >> 6 | 192,
3063
3063
  codePoint & 63 | 128
3064
3064
  );
3065
3065
  } else if (codePoint < 65536) {
3066
- if ((units3 -= 3) < 0)
3066
+ if ((units2 -= 3) < 0)
3067
3067
  break;
3068
3068
  bytes.push(
3069
3069
  codePoint >> 12 | 224,
@@ -3071,7 +3071,7 @@ var require_buffer = __commonJS({
3071
3071
  codePoint & 63 | 128
3072
3072
  );
3073
3073
  } else if (codePoint < 1114112) {
3074
- if ((units3 -= 4) < 0)
3074
+ if ((units2 -= 4) < 0)
3075
3075
  break;
3076
3076
  bytes.push(
3077
3077
  codePoint >> 18 | 240,
@@ -3092,11 +3092,11 @@ var require_buffer = __commonJS({
3092
3092
  }
3093
3093
  return byteArray;
3094
3094
  }
3095
- function utf16leToBytes(str, units3) {
3095
+ function utf16leToBytes(str, units2) {
3096
3096
  let c3, hi, lo;
3097
3097
  const byteArray = [];
3098
3098
  for (let i3 = 0; i3 < str.length; ++i3) {
3099
- if ((units3 -= 2) < 0)
3099
+ if ((units2 -= 2) < 0)
3100
3100
  break;
3101
3101
  c3 = str.charCodeAt(i3);
3102
3102
  hi = c3 >> 8;
@@ -3107,7 +3107,7 @@ var require_buffer = __commonJS({
3107
3107
  return byteArray;
3108
3108
  }
3109
3109
  function base64ToBytes(str) {
3110
- return base643.toByteArray(base64clean(str));
3110
+ return base642.toByteArray(base64clean(str));
3111
3111
  }
3112
3112
  function blitBuffer(src, dst, offset, length) {
3113
3113
  let i3;
@@ -4028,7 +4028,7 @@ var require_object_inspect = __commonJS({
4028
4028
  if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
4029
4029
  return isArray2(obj) ? "[Array]" : "[Object]";
4030
4030
  }
4031
- var indent3 = getIndent(opts, depth);
4031
+ var indent2 = getIndent(opts, depth);
4032
4032
  if (typeof seen === "undefined") {
4033
4033
  seen = [];
4034
4034
  } else if (indexOf(seen, obj) >= 0) {
@@ -4077,8 +4077,8 @@ var require_object_inspect = __commonJS({
4077
4077
  return "[]";
4078
4078
  }
4079
4079
  var xs = arrObjKeys(obj, inspect);
4080
- if (indent3 && !singleLineValues(xs)) {
4081
- return "[" + indentedJoin(xs, indent3) + "]";
4080
+ if (indent2 && !singleLineValues(xs)) {
4081
+ return "[" + indentedJoin(xs, indent2) + "]";
4082
4082
  }
4083
4083
  return "[ " + $join.call(xs, ", ") + " ]";
4084
4084
  }
@@ -4106,7 +4106,7 @@ var require_object_inspect = __commonJS({
4106
4106
  mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
4107
4107
  });
4108
4108
  }
4109
- return collectionOf("Map", mapSize.call(obj), mapParts, indent3);
4109
+ return collectionOf("Map", mapSize.call(obj), mapParts, indent2);
4110
4110
  }
4111
4111
  if (isSet(obj)) {
4112
4112
  var setParts = [];
@@ -4115,7 +4115,7 @@ var require_object_inspect = __commonJS({
4115
4115
  setParts.push(inspect(value, obj));
4116
4116
  });
4117
4117
  }
4118
- return collectionOf("Set", setSize.call(obj), setParts, indent3);
4118
+ return collectionOf("Set", setSize.call(obj), setParts, indent2);
4119
4119
  }
4120
4120
  if (isWeakMap(obj)) {
4121
4121
  return weakCollectionOf("WeakMap");
@@ -4148,8 +4148,8 @@ var require_object_inspect = __commonJS({
4148
4148
  if (ys.length === 0) {
4149
4149
  return tag + "{}";
4150
4150
  }
4151
- if (indent3) {
4152
- return tag + "{" + indentedJoin(ys, indent3) + "}";
4151
+ if (indent2) {
4152
+ return tag + "{" + indentedJoin(ys, indent2) + "}";
4153
4153
  }
4154
4154
  return tag + "{ " + $join.call(ys, ", ") + " }";
4155
4155
  }
@@ -4354,8 +4354,8 @@ var require_object_inspect = __commonJS({
4354
4354
  function weakCollectionOf(type5) {
4355
4355
  return type5 + " { ? }";
4356
4356
  }
4357
- function collectionOf(type5, size, entries, indent3) {
4358
- var joinedEntries = indent3 ? indentedJoin(entries, indent3) : $join.call(entries, ", ");
4357
+ function collectionOf(type5, size, entries, indent2) {
4358
+ var joinedEntries = indent2 ? indentedJoin(entries, indent2) : $join.call(entries, ", ");
4359
4359
  return type5 + " (" + size + ") {" + joinedEntries + "}";
4360
4360
  }
4361
4361
  function singleLineValues(xs) {
@@ -4380,12 +4380,12 @@ var require_object_inspect = __commonJS({
4380
4380
  prev: $join.call(Array(depth + 1), baseIndent)
4381
4381
  };
4382
4382
  }
4383
- function indentedJoin(xs, indent3) {
4383
+ function indentedJoin(xs, indent2) {
4384
4384
  if (xs.length === 0) {
4385
4385
  return "";
4386
4386
  }
4387
- var lineJoiner = "\n" + indent3.prev + indent3.base;
4388
- return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent3.prev;
4387
+ var lineJoiner = "\n" + indent2.prev + indent2.base;
4388
+ return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent2.prev;
4389
4389
  }
4390
4390
  function arrObjKeys(obj, inspect) {
4391
4391
  var isArr = isArray2(obj);
@@ -4817,7 +4817,7 @@ var require_stringify = __commonJS({
4817
4817
  return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
4818
4818
  };
4819
4819
  var sentinel = {};
4820
- var stringify3 = function stringify4(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
4820
+ var stringify2 = function stringify3(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter2, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
4821
4821
  var obj = object;
4822
4822
  var tmpSc = sideChannel;
4823
4823
  var step = 0;
@@ -4888,7 +4888,7 @@ var require_stringify = __commonJS({
4888
4888
  sideChannel.set(object, step);
4889
4889
  var valueSideChannel = getSideChannel();
4890
4890
  valueSideChannel.set(sentinel, sideChannel);
4891
- pushToArray(values, stringify4(
4891
+ pushToArray(values, stringify3(
4892
4892
  value,
4893
4893
  keyPrefix,
4894
4894
  generateArrayPrefix,
@@ -4991,7 +4991,7 @@ var require_stringify = __commonJS({
4991
4991
  if (options.skipNulls && obj[key] === null) {
4992
4992
  continue;
4993
4993
  }
4994
- pushToArray(keys, stringify3(
4994
+ pushToArray(keys, stringify2(
4995
4995
  obj[key],
4996
4996
  key,
4997
4997
  generateArrayPrefix,
@@ -5230,20 +5230,20 @@ var require_parse = __commonJS({
5230
5230
  var require_lib = __commonJS({
5231
5231
  "node_modules/.pnpm/qs@6.11.2/node_modules/qs/lib/index.js"(exports, module) {
5232
5232
  "use strict";
5233
- var stringify3 = require_stringify();
5234
- var parse4 = require_parse();
5233
+ var stringify2 = require_stringify();
5234
+ var parse3 = require_parse();
5235
5235
  var formats = require_formats();
5236
5236
  module.exports = {
5237
5237
  formats,
5238
- parse: parse4,
5239
- stringify: stringify3
5238
+ parse: parse3,
5239
+ stringify: stringify2
5240
5240
  };
5241
5241
  }
5242
5242
  });
5243
5243
 
5244
- // node_modules/.pnpm/url@0.11.1/node_modules/url/url.js
5244
+ // node_modules/.pnpm/url@0.11.2/node_modules/url/url.js
5245
5245
  var require_url = __commonJS({
5246
- "node_modules/.pnpm/url@0.11.1/node_modules/url/url.js"(exports) {
5246
+ "node_modules/.pnpm/url@0.11.2/node_modules/url/url.js"(exports) {
5247
5247
  "use strict";
5248
5248
  var punycode = require_punycode();
5249
5249
  function Url() {
@@ -5318,24 +5318,24 @@ var require_url = __commonJS({
5318
5318
  "file:": true
5319
5319
  };
5320
5320
  var querystring = require_lib();
5321
- function urlParse(url3, parseQueryString, slashesDenoteHost) {
5322
- if (url3 && typeof url3 === "object" && url3 instanceof Url) {
5323
- return url3;
5321
+ function urlParse(url2, parseQueryString, slashesDenoteHost) {
5322
+ if (url2 && typeof url2 === "object" && url2 instanceof Url) {
5323
+ return url2;
5324
5324
  }
5325
5325
  var u3 = new Url();
5326
- u3.parse(url3, parseQueryString, slashesDenoteHost);
5326
+ u3.parse(url2, parseQueryString, slashesDenoteHost);
5327
5327
  return u3;
5328
5328
  }
5329
- Url.prototype.parse = function(url3, parseQueryString, slashesDenoteHost) {
5330
- if (typeof url3 !== "string") {
5331
- throw new TypeError("Parameter 'url' must be a string, not " + typeof url3);
5329
+ Url.prototype.parse = function(url2, parseQueryString, slashesDenoteHost) {
5330
+ if (typeof url2 !== "string") {
5331
+ throw new TypeError("Parameter 'url' must be a string, not " + typeof url2);
5332
5332
  }
5333
- var queryIndex = url3.indexOf("?"), splitter = queryIndex !== -1 && queryIndex < url3.indexOf("#") ? "?" : "#", uSplit = url3.split(splitter), slashRegex = /\\/g;
5333
+ var queryIndex = url2.indexOf("?"), splitter = queryIndex !== -1 && queryIndex < url2.indexOf("#") ? "?" : "#", uSplit = url2.split(splitter), slashRegex = /\\/g;
5334
5334
  uSplit[0] = uSplit[0].replace(slashRegex, "/");
5335
- url3 = uSplit.join(splitter);
5336
- var rest = url3;
5335
+ url2 = uSplit.join(splitter);
5336
+ var rest = url2;
5337
5337
  rest = rest.trim();
5338
- if (!slashesDenoteHost && url3.split("#").length === 1) {
5338
+ if (!slashesDenoteHost && url2.split("#").length === 1) {
5339
5339
  var simplePath = simplePathPattern.exec(rest);
5340
5340
  if (simplePath) {
5341
5341
  this.path = rest;
@@ -5525,7 +5525,11 @@ var require_url = __commonJS({
5525
5525
  }
5526
5526
  }
5527
5527
  if (this.query && typeof this.query === "object" && Object.keys(this.query).length) {
5528
- query = querystring.stringify(this.query);
5528
+ query = querystring.stringify(this.query, {
5529
+ arrayFormat: "repeat",
5530
+ encodeValuesOnly: true,
5531
+ addQueryPrefix: false
5532
+ });
5529
5533
  }
5530
5534
  var search = this.search || query && "?" + query || "";
5531
5535
  if (protocol && protocol.substr(-1) !== ":") {
@@ -6010,7 +6014,7 @@ var require_randomatic = __commonJS({
6010
6014
  var isNumber = require_is_number();
6011
6015
  var typeOf = require_kind_of();
6012
6016
  var mathRandom = require_browser();
6013
- module.exports = randomatic3;
6017
+ module.exports = randomatic2;
6014
6018
  module.exports.isCrypto = !!mathRandom.cryptographic;
6015
6019
  var type5 = {
6016
6020
  lower: "abcdefghijklmnopqrstuvwxyz",
@@ -6019,7 +6023,7 @@ var require_randomatic = __commonJS({
6019
6023
  special: "~!@#$%^&()_+-={}[];',."
6020
6024
  };
6021
6025
  type5.all = type5.lower + type5.upper + type5.number + type5.special;
6022
- function randomatic3(pattern, length, options) {
6026
+ function randomatic2(pattern, length, options) {
6023
6027
  if (typeof pattern === "undefined") {
6024
6028
  throw new Error("randomatic expects a string or number.");
6025
6029
  }
@@ -6204,7 +6208,7 @@ var require_lodash = __commonJS({
6204
6208
  var reIsNative = RegExp(
6205
6209
  "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6206
6210
  );
6207
- var Buffer4 = moduleExports ? root.Buffer : void 0;
6211
+ var Buffer3 = moduleExports ? root.Buffer : void 0;
6208
6212
  var Symbol2 = root.Symbol;
6209
6213
  var Uint8Array2 = root.Uint8Array;
6210
6214
  var getPrototype = overArg(Object.getPrototypeOf, Object);
@@ -6212,7 +6216,7 @@ var require_lodash = __commonJS({
6212
6216
  var propertyIsEnumerable = objectProto.propertyIsEnumerable;
6213
6217
  var splice = arrayProto.splice;
6214
6218
  var nativeGetSymbols = Object.getOwnPropertySymbols;
6215
- var nativeIsBuffer = Buffer4 ? Buffer4.isBuffer : void 0;
6219
+ var nativeIsBuffer = Buffer3 ? Buffer3.isBuffer : void 0;
6216
6220
  var nativeKeys = overArg(Object.keys, Object);
6217
6221
  var DataView2 = getNative(root, "DataView");
6218
6222
  var Map2 = getNative(root, "Map");
@@ -6713,7 +6717,7 @@ var require_fast_json_stable_stringify = __commonJS({
6713
6717
  };
6714
6718
  }(opts.cmp);
6715
6719
  var seen = [];
6716
- return function stringify3(node) {
6720
+ return function stringify2(node) {
6717
6721
  if (node && node.toJSON && typeof node.toJSON === "function") {
6718
6722
  node = node.toJSON();
6719
6723
  }
@@ -6729,7 +6733,7 @@ var require_fast_json_stable_stringify = __commonJS({
6729
6733
  for (i3 = 0; i3 < node.length; i3++) {
6730
6734
  if (i3)
6731
6735
  out += ",";
6732
- out += stringify3(node[i3]) || "null";
6736
+ out += stringify2(node[i3]) || "null";
6733
6737
  }
6734
6738
  return out + "]";
6735
6739
  }
@@ -6745,7 +6749,7 @@ var require_fast_json_stable_stringify = __commonJS({
6745
6749
  out = "";
6746
6750
  for (i3 = 0; i3 < keys.length; i3++) {
6747
6751
  var key = keys[i3];
6748
- var value = stringify3(node[key]);
6752
+ var value = stringify2(node[key]);
6749
6753
  if (!value)
6750
6754
  continue;
6751
6755
  if (out)
@@ -6762,10 +6766,10 @@ var require_fast_json_stable_stringify = __commonJS({
6762
6766
  // node_modules/.pnpm/buffer-json@2.0.0/node_modules/buffer-json/index.js
6763
6767
  var require_buffer_json = __commonJS({
6764
6768
  "node_modules/.pnpm/buffer-json@2.0.0/node_modules/buffer-json/index.js"(exports, module) {
6765
- function stringify3(value, space) {
6769
+ function stringify2(value, space) {
6766
6770
  return JSON.stringify(value, replacer, space);
6767
6771
  }
6768
- function parse4(text) {
6772
+ function parse3(text) {
6769
6773
  return JSON.parse(text, reviver);
6770
6774
  }
6771
6775
  function replacer(key, value) {
@@ -6806,8 +6810,8 @@ var require_buffer_json = __commonJS({
6806
6810
  return typeof x2 === "object" && x2 !== null;
6807
6811
  }
6808
6812
  module.exports = {
6809
- stringify: stringify3,
6810
- parse: parse4,
6813
+ stringify: stringify2,
6814
+ parse: parse3,
6811
6815
  replacer,
6812
6816
  reviver
6813
6817
  };
@@ -6820,113 +6824,6 @@ var require_node = __commonJS({
6820
6824
  }
6821
6825
  });
6822
6826
 
6823
- // node_modules/.pnpm/@apiglobal+typedrequest-interfaces@1.0.20/node_modules/@apiglobal/typedrequest-interfaces/dist/index.js
6824
- var require_dist = __commonJS({
6825
- "node_modules/.pnpm/@apiglobal+typedrequest-interfaces@1.0.20/node_modules/@apiglobal/typedrequest-interfaces/dist/index.js"(exports) {
6826
- "use strict";
6827
- Object.defineProperty(exports, "__esModule", { value: true });
6828
- }
6829
- });
6830
-
6831
- // node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js
6832
- var require_dist_ts3 = __commonJS({
6833
- "node_modules/.pnpm/@pushrocks+isounique@1.0.5/node_modules/@pushrocks/isounique/dist_ts/index.js"(exports) {
6834
- "use strict";
6835
- Object.defineProperty(exports, "__esModule", { value: true });
6836
- exports.uni = void 0;
6837
- var uni3 = (prefix = "uni") => {
6838
- return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c3) => {
6839
- const r4 = Math.random() * 16 | 0;
6840
- const v2 = c3 === "x" ? r4 : r4 & 3 | 8;
6841
- return v2.toString(16);
6842
- })}`;
6843
- };
6844
- exports.uni = uni3;
6845
- }
6846
- });
6847
-
6848
- // node_modules/.pnpm/@pushrocks+smartdelay@2.0.13/node_modules/@pushrocks/smartdelay/dist_ts/index.js
6849
- var require_dist_ts4 = __commonJS({
6850
- "node_modules/.pnpm/@pushrocks+smartdelay@2.0.13/node_modules/@pushrocks/smartdelay/dist_ts/index.js"(exports) {
6851
- "use strict";
6852
- var __createBinding = exports && exports.__createBinding || (Object.create ? function(o5, m2, k2, k22) {
6853
- if (k22 === void 0)
6854
- k22 = k2;
6855
- Object.defineProperty(o5, k22, { enumerable: true, get: function() {
6856
- return m2[k2];
6857
- } });
6858
- } : function(o5, m2, k2, k22) {
6859
- if (k22 === void 0)
6860
- k22 = k2;
6861
- o5[k22] = m2[k2];
6862
- });
6863
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o5, v2) {
6864
- Object.defineProperty(o5, "default", { enumerable: true, value: v2 });
6865
- } : function(o5, v2) {
6866
- o5["default"] = v2;
6867
- });
6868
- var __importStar = exports && exports.__importStar || function(mod) {
6869
- if (mod && mod.__esModule)
6870
- return mod;
6871
- var result = {};
6872
- if (mod != null) {
6873
- for (var k2 in mod)
6874
- if (k2 !== "default" && Object.hasOwnProperty.call(mod, k2))
6875
- __createBinding(result, mod, k2);
6876
- }
6877
- __setModuleDefault(result, mod);
6878
- return result;
6879
- };
6880
- Object.defineProperty(exports, "__esModule", { value: true });
6881
- exports.Timeout = exports.delayForRandom = exports.delayFor = void 0;
6882
- var smartpromise6 = __importStar(require_dist_ts2());
6883
- exports.delayFor = async (timeInMillisecondArg, passOnArg, unrefedArg = false) => {
6884
- const timeout = new Timeout3(timeInMillisecondArg, null, unrefedArg);
6885
- await timeout.promise;
6886
- return passOnArg;
6887
- };
6888
- exports.delayForRandom = async (timeMinInMillisecondArg, timeMaxInMillisecondArg, passOnArg, unrefedArg = false) => {
6889
- await exports.delayFor(Math.random() * (timeMaxInMillisecondArg - timeMinInMillisecondArg) + timeMinInMillisecondArg, null, unrefedArg);
6890
- return passOnArg;
6891
- };
6892
- var Timeout3 = class {
6893
- constructor(timeInMillisecondArg, passOn, unrefedArg = false) {
6894
- this._cancelled = false;
6895
- this.timeoutInMillis = timeInMillisecondArg;
6896
- this._deferred = smartpromise6.defer();
6897
- this.promise = this._deferred.promise;
6898
- this._timeout = setTimeout(() => {
6899
- if (!this._cancelled) {
6900
- this._deferred.resolve(passOn);
6901
- }
6902
- }, timeInMillisecondArg);
6903
- this.started = Date.now();
6904
- if (unrefedArg) {
6905
- this.makeUnrefed();
6906
- }
6907
- }
6908
- /**
6909
- * unreffing a timeout causes the node process to not wait for completion before exit
6910
- */
6911
- makeUnrefed() {
6912
- this._timeout.unref();
6913
- }
6914
- /**
6915
- * cancels the timer
6916
- */
6917
- cancel() {
6918
- this._cancelled = true;
6919
- clearTimeout(this._timeout);
6920
- }
6921
- getTimeLeft() {
6922
- const result = this.started + this.timeoutInMillis - Date.now();
6923
- return result > 0 ? result : 0;
6924
- }
6925
- };
6926
- exports.Timeout = Timeout3;
6927
- }
6928
- });
6929
-
6930
6827
  // node_modules/.pnpm/sweet-scroll@4.0.0/node_modules/sweet-scroll/sweet-scroll.js
6931
6828
  var require_sweet_scroll = __commonJS({
6932
6829
  "node_modules/.pnpm/sweet-scroll@4.0.0/node_modules/sweet-scroll/sweet-scroll.js"(exports, module) {
@@ -11035,12 +10932,12 @@ var ExtendedDate = class _ExtendedDate extends Date {
11035
10932
  }
11036
10933
  //
11037
10934
  exportToEuropeanDate() {
11038
- const units3 = this.exportToUnits();
11039
- return `${units3.dayString}.${units3.monthString}.${units3.yearString}`;
10935
+ const units2 = this.exportToUnits();
10936
+ return `${units2.dayString}.${units2.monthString}.${units2.yearString}`;
11040
10937
  }
11041
10938
  exportToHyphedSortableDate() {
11042
- const units3 = this.exportToUnits();
11043
- return `${units3.yearString}-${units3.monthString}-${units3.dayString}`;
10939
+ const units2 = this.exportToUnits();
10940
+ return `${units2.yearString}-${units2.monthString}-${units2.dayString}`;
11044
10941
  }
11045
10942
  /**
11046
10943
  * exports units
@@ -12110,7 +12007,7 @@ var Tree = class {
12110
12007
  }
12111
12008
  };
12112
12009
 
12113
- // node_modules/.pnpm/@push.rocks+webrequest@3.0.32/node_modules/@push.rocks/webrequest/dist_ts/index.js
12010
+ // node_modules/.pnpm/@push.rocks+webrequest@3.0.33/node_modules/@push.rocks/webrequest/dist_ts/index.js
12114
12011
  var dist_ts_exports12 = {};
12115
12012
  __export(dist_ts_exports12, {
12116
12013
  WebRequest: () => WebRequest
@@ -12258,7 +12155,7 @@ __export(dist_ts_exports9, {
12258
12155
  stringifyPretty: () => stringifyPretty
12259
12156
  });
12260
12157
 
12261
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/index.js
12158
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/index.js
12262
12159
  var dist_ts_exports8 = {};
12263
12160
  __export(dist_ts_exports8, {
12264
12161
  Base64: () => Base64,
@@ -12272,14 +12169,14 @@ __export(dist_ts_exports8, {
12272
12169
  type: () => smartstring_type_exports
12273
12170
  });
12274
12171
 
12275
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
12172
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
12276
12173
  var smartstring_create_exports = {};
12277
12174
  __export(smartstring_create_exports, {
12278
12175
  createCryptoRandomString: () => createCryptoRandomString,
12279
12176
  createRandomString: () => createRandomString
12280
12177
  });
12281
12178
 
12282
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
12179
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
12283
12180
  var isounique = __toESM(require_dist_ts(), 1);
12284
12181
  var import_buffer = __toESM(require_buffer(), 1);
12285
12182
  var url = __toESM(require_url(), 1);
@@ -12444,11 +12341,11 @@ var gBase64 = {
12444
12341
  // node_modules/.pnpm/strip-indent@4.0.0/node_modules/strip-indent/index.js
12445
12342
  var import_min_indent = __toESM(require_min_indent(), 1);
12446
12343
  function stripIndent(string) {
12447
- const indent3 = (0, import_min_indent.default)(string);
12448
- if (indent3 === 0) {
12344
+ const indent2 = (0, import_min_indent.default)(string);
12345
+ if (indent2 === 0) {
12449
12346
  return string;
12450
12347
  }
12451
- const regex = new RegExp(`^[ \\t]{${indent3}}`, "gm");
12348
+ const regex = new RegExp(`^[ \\t]{${indent2}}`, "gm");
12452
12349
  return string.replace(regex, "");
12453
12350
  }
12454
12351
 
@@ -12462,14 +12359,14 @@ function normalizeNewline(input) {
12462
12359
  return Buffer.isBuffer(input) ? (0, import_replace_buffer.default)(input, CRLF, "\n") : input.replace(new RegExp(CRLF, "g"), "\n");
12463
12360
  }
12464
12361
 
12465
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
12362
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.plugins.js
12466
12363
  var import_randomatic = __toESM(require_randomatic(), 1);
12467
12364
  var smartenvInstance = new Smartenv();
12468
12365
  if (smartenvInstance.isBrowser) {
12469
12366
  globalThis.Buffer = import_buffer.Buffer;
12470
12367
  }
12471
12368
 
12472
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
12369
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.create.js
12473
12370
  var createRandomString = (patternArg, lengthArg, optionsArg) => {
12474
12371
  return import_randomatic.default(patternArg, lengthArg, optionsArg);
12475
12372
  };
@@ -12477,7 +12374,7 @@ var createCryptoRandomString = () => {
12477
12374
  return isounique.uni();
12478
12375
  };
12479
12376
 
12480
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
12377
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.docker.js
12481
12378
  var smartstring_docker_exports = {};
12482
12379
  __export(smartstring_docker_exports, {
12483
12380
  makeEnvObject: () => makeEnvObject
@@ -12494,7 +12391,7 @@ var makeEnvObject = function(envArrayArg) {
12494
12391
  return returnObject;
12495
12392
  };
12496
12393
 
12497
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
12394
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.indent.js
12498
12395
  var smartstring_indent_exports = {};
12499
12396
  __export(smartstring_indent_exports, {
12500
12397
  indent: () => indent,
@@ -12560,7 +12457,7 @@ var normalize = (stringArg) => {
12560
12457
  return resultString;
12561
12458
  };
12562
12459
 
12563
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
12460
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.normalize.js
12564
12461
  var smartstring_normalize_exports = {};
12565
12462
  __export(smartstring_normalize_exports, {
12566
12463
  replaceAll: () => replaceAll,
@@ -12569,21 +12466,34 @@ __export(smartstring_normalize_exports, {
12569
12466
  var replaceAll = (stringArg, searchPattern, replacementString) => {
12570
12467
  return stringArg.replace(new RegExp(searchPattern, "g"), replacementString);
12571
12468
  };
12572
- var standard = (stringArg) => {
12573
- let fix1 = stripIndent(stringArg);
12574
- let fix2 = normalizeNewline(fix1);
12575
- let fix3 = replaceAll(fix2, " /", " ");
12576
- return fix3;
12469
+ var standard = (stringArg, options) => {
12470
+ let result = stringArg;
12471
+ if (!options || options.stripIndent) {
12472
+ result = stripIndent(result);
12473
+ }
12474
+ if (!options || options.normalizeNewline) {
12475
+ result = normalizeNewline(result);
12476
+ }
12477
+ if (!options || options.replaceTabs) {
12478
+ result = replaceAll(result, " /", " ");
12479
+ }
12480
+ if (!options || options.stripLeadingTrailingEmptyLines) {
12481
+ result = result.replace(/^\s*[\r\n]/gm, "").replace(/\s*[\r\n]$/gm, "");
12482
+ }
12483
+ if (!options || options.stripAllEmptyLines) {
12484
+ result = result.replace(/^\s*[\r\n]/gm, "");
12485
+ }
12486
+ return result;
12577
12487
  };
12578
12488
 
12579
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
12489
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
12580
12490
  var smartstring_type_exports = {};
12581
12491
  __export(smartstring_type_exports, {
12582
12492
  isBase64: () => isBase64,
12583
12493
  isUtf8: () => isUtf8
12584
12494
  });
12585
12495
 
12586
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
12496
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.base64.js
12587
12497
  var Base64 = class {
12588
12498
  constructor(inputStringArg, typeArg) {
12589
12499
  switch (typeArg) {
@@ -12646,7 +12556,7 @@ var base64 = {
12646
12556
  }
12647
12557
  };
12648
12558
 
12649
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
12559
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.type.js
12650
12560
  var isUtf8 = (stringArg) => {
12651
12561
  const bytes = Buffer.from(stringArg);
12652
12562
  let i3 = 0;
@@ -12697,7 +12607,7 @@ var isBase64 = (stringArg) => {
12697
12607
  return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && stringArg[len - 1] === "=";
12698
12608
  };
12699
12609
 
12700
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
12610
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.domain.js
12701
12611
  var Domain = class {
12702
12612
  constructor(domainStringArg) {
12703
12613
  this.protocol = this._protocolRegex(domainStringArg);
@@ -12758,7 +12668,7 @@ var Domain = class {
12758
12668
  }
12759
12669
  };
12760
12670
 
12761
- // node_modules/.pnpm/@push.rocks+smartstring@4.0.8/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
12671
+ // node_modules/.pnpm/@push.rocks+smartstring@4.0.9/node_modules/@push.rocks/smartstring/dist_ts/smartstring.git.js
12762
12672
  var GitRepo = class {
12763
12673
  constructor(stringArg, tokenArg) {
12764
12674
  let regexMatches = gitRegex(stringArg);
@@ -13208,7 +13118,7 @@ var TypedrequestCache = class {
13208
13118
  }
13209
13119
  };
13210
13120
 
13211
- // node_modules/.pnpm/@push.rocks+webrequest@3.0.32/node_modules/@push.rocks/webrequest/dist_ts/index.js
13121
+ // node_modules/.pnpm/@push.rocks+webrequest@3.0.33/node_modules/@push.rocks/webrequest/dist_ts/index.js
13212
13122
  var WebRequest = class {
13213
13123
  constructor(optionsArg = {}) {
13214
13124
  this.optionsArg = optionsArg;
@@ -14414,2869 +14324,92 @@ var DeesComms = class {
14414
14324
  }
14415
14325
  };
14416
14326
 
14417
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/index.js
14418
- var dist_ts_exports27 = {};
14419
- __export(dist_ts_exports27, {
14420
- TypedHandler: () => TypedHandler2,
14421
- TypedRequest: () => TypedRequest2,
14422
- TypedResponseError: () => TypedResponseError2,
14423
- TypedRouter: () => TypedRouter2,
14424
- TypedTarget: () => TypedTarget2
14425
- });
14426
-
14427
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.plugins.js
14428
- var typedRequestInterfaces = __toESM(require_dist(), 1);
14429
- var isounique4 = __toESM(require_dist_ts3(), 1);
14430
-
14431
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/index.js
14432
- var dist_ts_exports19 = {};
14433
- __export(dist_ts_exports19, {
14434
- AsyncExecutionStack: () => AsyncExecutionStack2,
14435
- FastMap: () => FastMap2,
14436
- Interest: () => Interest2,
14437
- InterestMap: () => InterestMap2,
14438
- LimitedArray: () => LimitedArray2,
14439
- LoopTracker: () => LoopTracker2,
14440
- ObjectMap: () => ObjectMap2,
14441
- Stringmap: () => Stringmap2,
14442
- TimedAggregtor: () => TimedAggregtor2,
14443
- Tree: () => Tree2,
14444
- uni: () => uni2
14445
- });
14446
-
14447
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
14448
- var smartdelay2 = __toESM(require_dist_ts4(), 1);
14449
-
14450
- // node_modules/.pnpm/@pushrocks+smartmatch@2.0.0/node_modules/@pushrocks/smartmatch/dist_ts/index.js
14327
+ // node_modules/.pnpm/@push.rocks+smartrouter@1.0.16/node_modules/@push.rocks/smartrouter/dist_ts/index.js
14451
14328
  var dist_ts_exports16 = {};
14452
14329
  __export(dist_ts_exports16, {
14453
- SmartMatch: () => SmartMatch2
14454
- });
14455
- var SmartMatch2 = class {
14456
- constructor(wildcardArg) {
14457
- this.wildcard = wildcardArg;
14458
- }
14459
- match(matchStringArg) {
14460
- return matcher_exports.isMatch(matchStringArg, this.wildcard);
14461
- }
14462
- };
14463
-
14464
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
14465
- var smartpromise3 = __toESM(require_dist_ts2(), 1);
14466
-
14467
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/index.js
14468
- var dist_ts_exports18 = {};
14469
- __export(dist_ts_exports18, {
14470
- ObservableIntake: () => ObservableIntake2,
14471
- Observablemap: () => Observablemap2,
14472
- rxjs: () => smartrx_plugins_rxjs_exports2
14330
+ SmartRouter: () => SmartRouter
14473
14331
  });
14474
14332
 
14475
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
14476
- var dist_ts_exports17 = {};
14477
- __export(dist_ts_exports17, {
14478
- CumulativeDeferred: () => CumulativeDeferred2,
14479
- Deferred: () => Deferred2,
14480
- cumulativeDefer: () => cumulativeDefer2,
14481
- defer: () => defer2,
14482
- getFirstTrueOrFalse: () => getFirstTrueOrFalse2,
14483
- map: () => map3,
14484
- rejectedPromise: () => rejectedPromise2,
14485
- resolvedPromise: () => resolvedPromise2,
14486
- timeoutAndContinue: () => timeoutAndContinue2,
14487
- timeoutWrap: () => timeoutWrap2
14333
+ // node_modules/.pnpm/path-to-regexp@6.2.1/node_modules/path-to-regexp/dist.es2015/index.js
14334
+ var dist_exports = {};
14335
+ __export(dist_exports, {
14336
+ compile: () => compile,
14337
+ match: () => match,
14338
+ parse: () => parse2,
14339
+ pathToRegexp: () => pathToRegexp,
14340
+ regexpToFunction: () => regexpToFunction,
14341
+ tokensToFunction: () => tokensToFunction,
14342
+ tokensToRegexp: () => tokensToRegexp
14488
14343
  });
14489
-
14490
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.deferred.js
14491
- var Deferred2 = class {
14492
- claim() {
14493
- if (this.claimed) {
14494
- throw new Error("Deferred already claimed");
14344
+ function lexer(str) {
14345
+ var tokens = [];
14346
+ var i3 = 0;
14347
+ while (i3 < str.length) {
14348
+ var char = str[i3];
14349
+ if (char === "*" || char === "+" || char === "?") {
14350
+ tokens.push({ type: "MODIFIER", index: i3, value: str[i3++] });
14351
+ continue;
14495
14352
  }
14496
- this.claimed = true;
14497
- }
14498
- get duration() {
14499
- if (this.stoppedAt) {
14500
- return this.stoppedAt - this.startedAt;
14501
- } else {
14502
- return Date.now() - this.startedAt;
14353
+ if (char === "\\") {
14354
+ tokens.push({ type: "ESCAPED_CHAR", index: i3++, value: str[i3++] });
14355
+ continue;
14503
14356
  }
14504
- }
14505
- constructor() {
14506
- this.claimed = false;
14507
- this.promise = new Promise((resolve, reject) => {
14508
- this.resolve = (valueArg) => {
14509
- this.status = "fulfilled";
14510
- this.stoppedAt = Date.now();
14511
- resolve(valueArg);
14512
- };
14513
- this.reject = (reason) => {
14514
- this.status = "rejected";
14515
- this.stoppedAt = Date.now();
14516
- reject(reason);
14517
- };
14518
- this.startedAt = Date.now();
14519
- this.status = "pending";
14520
- });
14521
- }
14522
- };
14523
- var defer2 = () => {
14524
- return new Deferred2();
14525
- };
14526
-
14527
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js
14528
- var CumulativeDeferred2 = class {
14529
- constructor() {
14530
- this.accumulatedPromises = [];
14531
- this.deferred = defer2();
14532
- this.promise = this.deferred.promise;
14533
- setTimeout(async () => {
14534
- while (this.accumulatedPromises.length > 0) {
14535
- const poppedPromise = this.accumulatedPromises.shift();
14536
- await poppedPromise;
14357
+ if (char === "{") {
14358
+ tokens.push({ type: "OPEN", index: i3, value: str[i3++] });
14359
+ continue;
14360
+ }
14361
+ if (char === "}") {
14362
+ tokens.push({ type: "CLOSE", index: i3, value: str[i3++] });
14363
+ continue;
14364
+ }
14365
+ if (char === ":") {
14366
+ var name = "";
14367
+ var j = i3 + 1;
14368
+ while (j < str.length) {
14369
+ var code = str.charCodeAt(j);
14370
+ if (
14371
+ // `0-9`
14372
+ code >= 48 && code <= 57 || // `A-Z`
14373
+ code >= 65 && code <= 90 || // `a-z`
14374
+ code >= 97 && code <= 122 || // `_`
14375
+ code === 95
14376
+ ) {
14377
+ name += str[j++];
14378
+ continue;
14379
+ }
14380
+ break;
14537
14381
  }
14538
- this.deferred.resolve();
14539
- }, 0);
14540
- }
14541
- addPromise(promiseArg) {
14542
- this.accumulatedPromises.push(promiseArg);
14543
- }
14544
- };
14545
- var cumulativeDefer2 = () => {
14546
- return new CumulativeDeferred2();
14547
- };
14548
-
14549
- // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
14550
- var resolvedPromise2 = (value) => {
14551
- return Promise.resolve(value);
14552
- };
14553
- var rejectedPromise2 = (err) => {
14554
- return Promise.reject(err);
14555
- };
14556
- var map3 = async (inputArg, functionArg) => {
14557
- const promiseArray = [];
14558
- const resultArray = [];
14559
- for (const item of inputArg) {
14560
- const promise = functionArg(item);
14561
- promiseArray.push(promise);
14562
- promise.then((x2) => {
14563
- resultArray.push(x2);
14564
- });
14565
- }
14566
- await Promise.all(promiseArray);
14567
- return resultArray;
14568
- };
14569
- var timeoutWrap2 = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
14570
- return new Promise((resolve, reject) => {
14571
- setTimeout(() => {
14572
- if (rejectArg) {
14573
- reject(new Error("timeout"));
14574
- } else {
14575
- resolve(null);
14382
+ if (!name)
14383
+ throw new TypeError("Missing parameter name at ".concat(i3));
14384
+ tokens.push({ type: "NAME", index: i3, value: name });
14385
+ i3 = j;
14386
+ continue;
14387
+ }
14388
+ if (char === "(") {
14389
+ var count = 1;
14390
+ var pattern = "";
14391
+ var j = i3 + 1;
14392
+ if (str[j] === "?") {
14393
+ throw new TypeError('Pattern cannot start with "?" at '.concat(j));
14576
14394
  }
14577
- }, timeoutInMsArg);
14578
- promiseArg.then(resolve, reject);
14579
- });
14580
- };
14581
- var timeoutAndContinue2 = async (promiseArg, timeoutInMsArg = 6e4) => {
14582
- return timeoutWrap2(promiseArg, timeoutInMsArg, false);
14583
- };
14584
- var getFirstTrueOrFalse2 = async (promisesArg) => {
14585
- const done = defer2();
14586
- for (const promiseArg of promisesArg) {
14587
- promiseArg.then((resultArg) => {
14588
- if (resultArg === true) {
14589
- done.resolve(true);
14590
- }
14591
- });
14592
- }
14593
- Promise.all(promisesArg).then(() => {
14594
- done.resolve(false);
14595
- });
14596
- return done.promise;
14597
- };
14598
-
14599
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.plugins.rxjs.js
14600
- var smartrx_plugins_rxjs_exports2 = {};
14601
- __export(smartrx_plugins_rxjs_exports2, {
14602
- Observable: () => Observable,
14603
- ReplaySubject: () => ReplaySubject,
14604
- Subject: () => Subject,
14605
- Subscription: () => Subscription,
14606
- fromEvent: () => fromEvent,
14607
- ops: () => ops2
14608
- });
14609
- var ops2 = {
14610
- debounce,
14611
- debounceTime,
14612
- map: map2,
14613
- startWith,
14614
- takeUntil,
14615
- throttleTime
14616
- };
14617
-
14618
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.classes.observablemap.js
14619
- var Observablemap2 = class {
14620
- constructor() {
14621
- this.observableEventEmitterBundleArray = new Array();
14622
- this.observableEventTargetBundleArray = new Array();
14623
- }
14624
- /**
14625
- * creates a hot subject if not yet registered for the event.
14626
- * In case event has been registered before the same observable is returned.
14627
- */
14628
- getSubjectForEmitterEvent(emitterArg, eventArg) {
14629
- const existingBundle = this.observableEventEmitterBundleArray.find((bundleArg) => {
14630
- return bundleArg.eventRef === emitterArg && bundleArg.event === eventArg;
14631
- });
14632
- if (existingBundle) {
14633
- return existingBundle.subject;
14634
- } else {
14635
- const emitterObservable = fromEvent(emitterArg, eventArg);
14636
- const emitterSubject = new Subject();
14637
- emitterObservable.subscribe(emitterSubject);
14638
- const newBundle = {
14639
- subject: emitterSubject,
14640
- eventRef: emitterArg,
14641
- event: eventArg
14642
- };
14643
- this.observableEventEmitterBundleArray.push(newBundle);
14644
- return newBundle.subject;
14645
- }
14646
- }
14647
- getSubjectForEventTarget(eventTargetArg, eventNameArg) {
14648
- const existingBundle = this.observableEventTargetBundleArray.find((bundleArg) => {
14649
- return bundleArg.eventRef === eventTargetArg && bundleArg.event === eventNameArg;
14650
- });
14651
- if (existingBundle) {
14652
- return existingBundle.subject;
14653
- } else {
14654
- const emitterSubject = new Subject();
14655
- const newBundle = {
14656
- subject: emitterSubject,
14657
- eventRef: eventTargetArg,
14658
- event: eventNameArg
14659
- };
14660
- this.observableEventTargetBundleArray.push(newBundle);
14661
- return newBundle.subject;
14662
- }
14663
- }
14664
- };
14665
-
14666
- // node_modules/.pnpm/@pushrocks+smartrx@3.0.2/node_modules/@pushrocks/smartrx/dist_ts/smartrx.classes.observableintake.js
14667
- var ObservableIntake2 = class {
14668
- constructor() {
14669
- this.observableFunctions = {
14670
- next: (payloadArg) => {
14671
- },
14672
- complete: (payloadArg) => {
14673
- }
14674
- };
14675
- this.generator = null;
14676
- this.buffered = false;
14677
- this.payloadBuffer = [];
14678
- this.observable = new Observable((observerArg) => {
14679
- this.observableFunctions.next = (...args) => {
14680
- return observerArg.next(args);
14681
- };
14682
- this.observableFunctions.complete = () => {
14683
- this.completedDeffered.resolve();
14684
- return observerArg.complete();
14685
- };
14686
- });
14687
- this.completedDeffered = dist_ts_exports17.defer();
14688
- this.completed = this.completedDeffered.promise;
14689
- }
14690
- setObservable(observableFunc) {
14691
- this.observable = observableFunc;
14692
- }
14693
- push(payloadArg) {
14694
- if (this.buffered) {
14695
- this.payloadBuffer.push(payloadArg);
14696
- } else {
14697
- this.internalPush(payloadArg);
14698
- }
14699
- }
14700
- /**
14701
- * pushes many payloads as array
14702
- * @param payloadArgArray
14703
- */
14704
- pushMany(payloadArgArray) {
14705
- for (const item of payloadArgArray) {
14706
- this.push(item);
14707
- }
14708
- }
14709
- /**
14710
- * sets a generator to query the next pushed value
14711
- * @param generatorArg
14712
- */
14713
- setGenerator(generatorArg) {
14714
- this.generator = generatorArg;
14715
- }
14716
- makeBuffered() {
14717
- this.buffered = true;
14718
- }
14719
- subscribe(...args) {
14720
- return this.observable.subscribe(...args);
14721
- }
14722
- /**
14723
- * request the next values in the quantity specified
14724
- * @param howManyArg if a generator is set, of a buffer exists, this allows retrieving values
14725
- */
14726
- request(howManyArg) {
14727
- if (howManyArg === 0) {
14728
- return;
14729
- } else {
14730
- for (let i3 = 0; i3 !== howManyArg; i3++) {
14731
- if (this.payloadBuffer.length > 0) {
14732
- this.internalPush(this.payloadBuffer.shift());
14733
- } else {
14734
- const nextPayload = this.generator.next();
14735
- this.internalPush(nextPayload.value);
14736
- }
14737
- }
14738
- }
14739
- }
14740
- /**
14741
- * signals the completion of this observable
14742
- */
14743
- signalComplete() {
14744
- this.observableFunctions.complete();
14745
- }
14746
- internalPush(payloadArg) {
14747
- this.observableFunctions.next(payloadArg);
14748
- }
14749
- };
14750
-
14751
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/index.js
14752
- var dist_ts_exports20 = {};
14753
- __export(dist_ts_exports20, {
14754
- CronJob: () => CronJob2,
14755
- CronManager: () => CronManager2,
14756
- ExtendedDate: () => ExtendedDate2,
14757
- HrtMeasurement: () => HrtMeasurement2,
14758
- Interval: () => Interval2,
14759
- TimeStamp: () => TimeStamp2,
14760
- Timer: () => Timer2,
14761
- getMilliSecondsAsHumanReadableString: () => getMilliSecondsAsHumanReadableString2,
14762
- getMilliSecondsFromUnits: () => getMilliSecondsFromUnits2,
14763
- units: () => units2
14764
- });
14765
-
14766
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.plugins.js
14767
- var smartdelay = __toESM(require_dist_ts4(), 1);
14768
- var smartpromise2 = __toESM(require_dist_ts2(), 1);
14769
- var import_dayjs2 = __toESM(require_dayjs_min(), 1);
14770
- var import_isToday2 = __toESM(require_isToday(), 1);
14771
- import_dayjs2.default.extend(import_isToday2.default);
14772
-
14773
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.cronjob.js
14774
- var CronJob2 = class {
14775
- constructor(cronManager, cronExpressionArg, jobFunction) {
14776
- this.status = "initial";
14777
- this.nextExecutionUnix = 0;
14778
- this.cronExpression = cronExpressionArg;
14779
- this.jobFunction = jobFunction;
14780
- this.cronParser = Cron(cronExpressionArg);
14781
- }
14782
- /**
14783
- * checks wether the cronjob needs to be executed
14784
- */
14785
- checkExecution() {
14786
- if (this.nextExecutionUnix === 0) {
14787
- this.getNextExecutionTime();
14788
- }
14789
- if (Date.now() > this.nextExecutionUnix) {
14790
- const maybePromise = this.jobFunction(this.nextExecutionUnix);
14791
- if (maybePromise instanceof Promise) {
14792
- maybePromise.catch((e4) => console.log(e4));
14793
- }
14794
- this.nextExecutionUnix = this.getNextExecutionTime();
14795
- }
14796
- return this.nextExecutionUnix;
14797
- }
14798
- getNextExecutionTime() {
14799
- return this.nextExecutionUnix = Date.now() + this.getTimeToNextExecution();
14800
- }
14801
- /**
14802
- * gets the time to next execution
14803
- */
14804
- getTimeToNextExecution() {
14805
- return this.cronParser.msToNext();
14806
- }
14807
- start() {
14808
- this.status = "started";
14809
- }
14810
- stop() {
14811
- this.status = "stopped";
14812
- }
14813
- };
14814
-
14815
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.units.js
14816
- var units2 = {
14817
- years: (timesArg = 1) => {
14818
- return timesArg * 3154e7;
14819
- },
14820
- months: (timesArg = 1) => {
14821
- return timesArg * 2628e6;
14822
- },
14823
- weeks: (timesArg = 1) => {
14824
- return timesArg * 6048e5;
14825
- },
14826
- days: (timesArg = 1) => {
14827
- return timesArg * 864e5;
14828
- },
14829
- hours: (timesArg = 1) => {
14830
- return timesArg * 36e5;
14831
- },
14832
- minutes: (timesArg = 1) => {
14833
- return timesArg * 6e4;
14834
- }
14835
- };
14836
- var getMilliSecondsFromUnits2 = (combinationArg) => {
14837
- let timeInMilliseconds = 0;
14838
- let addMilliSeconds = (milliSecondsArg) => {
14839
- timeInMilliseconds = timeInMilliseconds + milliSecondsArg;
14840
- };
14841
- if (combinationArg.years) {
14842
- addMilliSeconds(units2.years(combinationArg.years));
14843
- }
14844
- if (combinationArg.months) {
14845
- addMilliSeconds(units2.months(combinationArg.months));
14846
- }
14847
- if (combinationArg.weeks) {
14848
- addMilliSeconds(units2.weeks(combinationArg.weeks));
14849
- }
14850
- if (combinationArg.days) {
14851
- addMilliSeconds(units2.days(combinationArg.days));
14852
- }
14853
- if (combinationArg.hours) {
14854
- addMilliSeconds(units2.hours(combinationArg.hours));
14855
- }
14856
- if (combinationArg.minutes) {
14857
- addMilliSeconds(units2.minutes(combinationArg.minutes));
14858
- }
14859
- return timeInMilliseconds;
14860
- };
14861
- var getMilliSecondsAsHumanReadableString2 = (milliSecondsArg) => {
14862
- return prettyMilliseconds(milliSecondsArg);
14863
- };
14864
-
14865
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
14866
- var CronManager2 = class {
14867
- constructor() {
14868
- this.status = "stopped";
14869
- this.cronjobs = new dist_ts_exports19.ObjectMap();
14870
- }
14871
- addCronjob(cronIdentifierArg, cronFunctionArg) {
14872
- const newCronJob = new CronJob2(this, cronIdentifierArg, cronFunctionArg);
14873
- this.cronjobs.add(newCronJob);
14874
- if (this.status === "started") {
14875
- newCronJob.start();
14876
- }
14877
- return newCronJob;
14878
- }
14879
- removeCronjob(cronjobArg) {
14880
- cronjobArg.stop();
14881
- this.cronjobs.remove(cronjobArg);
14882
- }
14883
- /**
14884
- * starts the cronjob
14885
- */
14886
- start() {
14887
- if (this.status !== "started") {
14888
- this.status = "started";
14889
- for (const cronJob of this.cronjobs.getArray()) {
14890
- cronJob.start();
14891
- }
14892
- const runCronCycle = async () => {
14893
- this.executionTimeout = new smartdelay.Timeout(0);
14894
- do {
14895
- let nextRunningCronjob;
14896
- for (const cronJob of this.cronjobs.getArray()) {
14897
- cronJob.checkExecution();
14898
- if (!nextRunningCronjob || cronJob.getTimeToNextExecution() < nextRunningCronjob.getTimeToNextExecution()) {
14899
- nextRunningCronjob = cronJob;
14900
- }
14901
- }
14902
- if (nextRunningCronjob) {
14903
- this.executionTimeout = new smartdelay.Timeout(nextRunningCronjob.getTimeToNextExecution());
14904
- console.log(`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString2(this.executionTimeout.getTimeLeft())}`);
14905
- } else {
14906
- this.executionTimeout = new smartdelay.Timeout(1e3);
14907
- console.log("no cronjobs specified! Checking again in 1 second");
14908
- }
14909
- await this.executionTimeout.promise;
14910
- } while (this.status === "started");
14911
- };
14912
- runCronCycle();
14913
- }
14914
- }
14915
- /**
14916
- * stops all cronjobs
14917
- */
14918
- stop() {
14919
- if (this.status === "started") {
14920
- this.status = "stopped";
14921
- this.executionTimeout.cancel();
14922
- } else {
14923
- console.log(`You tried to stop a CronManager that was not actually started.`);
14924
- }
14925
- for (const cron of this.cronjobs.getArray()) {
14926
- cron.stop();
14927
- }
14928
- }
14929
- };
14930
-
14931
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
14932
- var ExtendedDate2 = class _ExtendedDate extends Date {
14933
- // STATIC factories
14934
- static fromMillis(milliSeconds) {
14935
- return new _ExtendedDate(milliSeconds);
14936
- }
14937
- static fromDate(dateArg) {
14938
- return new _ExtendedDate(dateArg.getTime());
14939
- }
14940
- static fromEuropeanDate(europeanDate) {
14941
- const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDate);
14942
- const date = new Date(
14943
- parseFloat(dateArray[3]),
14944
- // year
14945
- parseFloat(dateArray[2]) - 1,
14946
- // month
14947
- parseFloat(dateArray[1])
14948
- // day
14949
- );
14950
- const unixMilli = date.getTime();
14951
- return new _ExtendedDate(unixMilli);
14952
- }
14953
- /**
14954
- * creates an Extended date from a hypedDate like "2018-03-28"
14955
- * @param dateString
14956
- */
14957
- static fromHyphedDate(dateString) {
14958
- const dateMillis = new Date(dateString).getTime();
14959
- return new _ExtendedDate(dateMillis);
14960
- }
14961
- /**
14962
- * Same as .fromEuropeanDate(), but accepts additional timeArg and zoneArg
14963
- */
14964
- static fromEuropeanDateAndTime(europeanDateArg, timeArg = "12:00:00", zoneArg = "Europe/Berlin") {
14965
- const dateArray = /(.*)\.(.*)\.(.*)/.exec(europeanDateArg);
14966
- const sliceDate = (dateString) => {
14967
- return `0${dateString}`.slice(-2);
14968
- };
14969
- const dateTimeString = `${dateArray[3]}-${sliceDate(dateArray[2])}-${sliceDate(dateArray[1])}T${timeArg}`;
14970
- const date = import_dayjs2.default(dateTimeString);
14971
- const unixMilli = date.toDate().getTime();
14972
- return new _ExtendedDate(unixMilli);
14973
- }
14974
- constructor(unixMilli = Date.now()) {
14975
- super(unixMilli);
14976
- }
14977
- //
14978
- exportToEuropeanDate() {
14979
- const units3 = this.exportToUnits();
14980
- return `${units3.dayString}.${units3.monthString}.${units3.yearString}`;
14981
- }
14982
- exportToHyphedSortableDate() {
14983
- const units3 = this.exportToUnits();
14984
- return `${units3.yearString}-${units3.monthString}-${units3.dayString}`;
14985
- }
14986
- /**
14987
- * exports units
14988
- */
14989
- exportToUnits() {
14990
- const monthsArray = [
14991
- "January",
14992
- "February",
14993
- "March",
14994
- "April",
14995
- "May",
14996
- "June",
14997
- "July",
14998
- "August",
14999
- "September",
15000
- "October",
15001
- "November",
15002
- "December"
15003
- ];
15004
- const daysArray = [
15005
- "Monday",
15006
- "Tuesday",
15007
- "Wednesday",
15008
- "Thursday",
15009
- "Friday",
15010
- "Saturday",
15011
- "Sunday"
15012
- ];
15013
- return {
15014
- year: this.getFullYear(),
15015
- yearString: `${this.getFullYear()}`,
15016
- month: this.getMonth() + 1,
15017
- monthString: ("0" + (this.getMonth() + 1)).slice(-2),
15018
- monthName: monthsArray[this.getMonth()],
15019
- day: this.getDate(),
15020
- dayString: ("0" + this.getDate()).slice(-2),
15021
- dayOfTheWeek: this.getDay(),
15022
- dayOfTheWeekName: daysArray[this.getDay()]
15023
- };
15024
- }
15025
- format(formatArg) {
15026
- return import_dayjs2.default(this.getTime()).format(formatArg);
15027
- }
15028
- /**
15029
- * boolean checks
15030
- */
15031
- isToday() {
15032
- return import_dayjs2.default(this.getTime()).isToday();
15033
- }
15034
- lessTimePassedToNow(unitArgs) {
15035
- const maxPassedUnixTime = getMilliSecondsFromUnits2(unitArgs);
15036
- const actualPassedUnixTime = Date.now() - this.getTime();
15037
- return actualPassedUnixTime < maxPassedUnixTime;
15038
- }
15039
- moreTimePassedToNow(unitArgs) {
15040
- return !this.lessTimePassedToNow(unitArgs);
15041
- }
15042
- };
15043
-
15044
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
15045
- var HrtMeasurement2 = class {
15046
- constructor() {
15047
- this.nanoSeconds = null;
15048
- this.milliSeconds = null;
15049
- this._milliStart = null;
15050
- this._milliDiff = null;
15051
- this._started = false;
15052
- }
15053
- /**
15054
- * start the measurement
15055
- */
15056
- start() {
15057
- this._started = true;
15058
- this._milliStart = Date.now();
15059
- }
15060
- /**
15061
- * stop the measurement
15062
- */
15063
- stop() {
15064
- if (this._started === false) {
15065
- console.log("Hasn't started yet");
15066
- return;
15067
- }
15068
- this._milliDiff = Date.now() - this._milliStart;
15069
- this.nanoSeconds = this._milliDiff * 1e3;
15070
- this.milliSeconds = this._milliDiff;
15071
- return this;
15072
- }
15073
- /**
15074
- * reset the measurement
15075
- */
15076
- reset() {
15077
- this.nanoSeconds = null;
15078
- this.milliSeconds = null;
15079
- this._milliStart = null;
15080
- this._milliDiff = null;
15081
- this._started = false;
15082
- }
15083
- };
15084
-
15085
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.interval.js
15086
- var Interval2 = class {
15087
- constructor(intervalMillisencondsArg) {
15088
- this.status = "initial";
15089
- this.statusAuthorization = null;
15090
- this.intervalJobs = [];
15091
- this.intervalMilliseconds = intervalMillisencondsArg;
15092
- }
15093
- start() {
15094
- this.status = "started";
15095
- const statusAuth = /* @__PURE__ */ new Date();
15096
- this.statusAuthorization = statusAuth;
15097
- const runInterval = async () => {
15098
- while (this.status === "started" && this.statusAuthorization === statusAuth) {
15099
- await smartdelay.delayFor(this.intervalMilliseconds);
15100
- this.executeIntervalJobs();
15101
- }
15102
- };
15103
- runInterval();
15104
- }
15105
- stop() {
15106
- this.status = "stopped";
15107
- this.statusAuthorization = null;
15108
- }
15109
- addIntervalJob(funcArg) {
15110
- this.intervalJobs.push(funcArg);
15111
- }
15112
- executeIntervalJobs() {
15113
- for (const funcArg of this.intervalJobs) {
15114
- funcArg();
15115
- }
15116
- }
15117
- };
15118
-
15119
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.timestamp.js
15120
- var TimeStamp2 = class _TimeStamp {
15121
- /**
15122
- * returns new TimeStamp from milliseconds
15123
- */
15124
- static fromMilliSeconds(milliSecondsArg) {
15125
- return new _TimeStamp(milliSecondsArg);
15126
- }
15127
- /**
15128
- * returns new TimeStamp for now with change set
15129
- * @param timeStampArg
15130
- */
15131
- static fromTimeStamp(timeStampArg) {
15132
- const localTimeStamp = new _TimeStamp();
15133
- localTimeStamp.change = localTimeStamp.milliSeconds - timeStampArg.milliSeconds;
15134
- return localTimeStamp;
15135
- }
15136
- constructor(creatorArg) {
15137
- this.change = null;
15138
- if (!creatorArg) {
15139
- this.date = /* @__PURE__ */ new Date();
15140
- } else if (typeof creatorArg === "number") {
15141
- this.date = new Date(creatorArg);
15142
- }
15143
- this.milliSeconds = this.date.getTime();
15144
- this.epochtime = Math.floor(this.milliSeconds / 1e3);
15145
- }
15146
- /**
15147
- * returns a boolean for wether the timestamp is older than another timestamp
15148
- * @param TimeStampArg
15149
- * @param tresholdTimeArg
15150
- */
15151
- isOlderThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) {
15152
- if (this.milliSeconds < TimeStampArg.milliSeconds - tresholdTimeArg) {
15153
- return true;
15154
- } else {
15155
- return false;
15156
- }
15157
- }
15158
- /**
15159
- * Is the current instance older than the argument
15160
- * @param TimeStampArg
15161
- */
15162
- isOlderThan(TimeStampArg, tresholdTimeArg = 0) {
15163
- if (this.milliSeconds + tresholdTimeArg < TimeStampArg.milliSeconds) {
15164
- return true;
15165
- } else {
15166
- return false;
15167
- }
15168
- }
15169
- /**
15170
- * returns a boolean for wether the timestamp is younger than another timestamp
15171
- * @param TimeStampArg
15172
- * @param tresholdTimeArg
15173
- */
15174
- isYoungerThanOtherTimeStamp(TimeStampArg, tresholdTimeArg = 0) {
15175
- if (this.milliSeconds > TimeStampArg.milliSeconds + tresholdTimeArg) {
15176
- return true;
15177
- } else {
15178
- return false;
15179
- }
15180
- }
15181
- isYoungerThanMilliSeconds(millisecondArg) {
15182
- const nowTimeStamp = new _TimeStamp();
15183
- const compareEpochTime = nowTimeStamp.epochtime - millisecondArg;
15184
- const compareTimeStamp = new _TimeStamp(compareEpochTime);
15185
- return this.isYoungerThanOtherTimeStamp(compareTimeStamp);
15186
- }
15187
- };
15188
-
15189
- // node_modules/.pnpm/@pushrocks+smarttime@4.0.1/node_modules/@pushrocks/smarttime/dist_ts/smarttime.classes.timer.js
15190
- var Timer2 = class {
15191
- get timeLeft() {
15192
- return this.timeInMilliseconds - this.pausedAt.change;
15193
- }
15194
- constructor(timeInMillisecondsArg) {
15195
- this.state = "initiated";
15196
- this.completedDeferred = smartpromise2.defer();
15197
- this.timeInMilliseconds = timeInMillisecondsArg;
15198
- this.completed = this.completedDeferred.promise;
15199
- }
15200
- /**
15201
- * starts the timer
15202
- */
15203
- start() {
15204
- if (!this.startedAt) {
15205
- this.currentTimeout = setTimeout(() => {
15206
- this.completedDeferred.resolve();
15207
- }, this.timeInMilliseconds);
15208
- this.startedAt = new TimeStamp2();
15209
- } else {
15210
- throw new Error("timer has been started before. Please use resume instead");
15211
- }
15212
- }
15213
- pause() {
15214
- if (this.startedAt) {
15215
- clearTimeout(this.currentTimeout);
15216
- this.currentTimeout = null;
15217
- this.pausedAt = TimeStamp2.fromTimeStamp(this.startedAt);
15218
- }
15219
- }
15220
- resume() {
15221
- if (this.startedAt) {
15222
- this.currentTimeout = setTimeout(() => {
15223
- this.completedDeferred.resolve();
15224
- }, this.timeLeft);
15225
- } else {
15226
- throw new Error("timer has NOT been started before. Please use .start() instead");
15227
- }
15228
- }
15229
- reset() {
15230
- this.pause();
15231
- this.startedAt = null;
15232
- this.pausedAt = null;
15233
- }
15234
- };
15235
-
15236
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.plugins.js
15237
- var import_symbol_tree2 = __toESM(require_SymbolTree(), 1);
15238
-
15239
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.asyncexecutionstack.js
15240
- var AsyncExecutionStack2 = class {
15241
- constructor() {
15242
- this.executionSlots = [];
15243
- }
15244
- async getExclusiveExecutionSlot(funcArg, timeoutArg) {
15245
- const executionDeferred = smartpromise3.defer();
15246
- const executionSlot = {
15247
- funcToExecute: funcArg,
15248
- executionDeferred,
15249
- timeout: timeoutArg,
15250
- mode: "exclusive"
15251
- };
15252
- this.executionSlots.push(executionSlot);
15253
- this.processExecutionSlots();
15254
- return executionDeferred.promise;
15255
- }
15256
- async getNonExclusiveExecutionSlot(funcArg, timeoutArg) {
15257
- const executionDeferred = smartpromise3.defer();
15258
- const executionSlot = {
15259
- funcToExecute: funcArg,
15260
- executionDeferred,
15261
- timeout: timeoutArg,
15262
- mode: "nonexclusive"
15263
- };
15264
- this.executionSlots.push(executionSlot);
15265
- this.processExecutionSlots();
15266
- return executionDeferred.promise;
15267
- }
15268
- async processExecutionSlots() {
15269
- if (this.currentlyExecutingDeferred) {
15270
- return;
15271
- }
15272
- this.currentlyExecutingDeferred = smartpromise3.defer();
15273
- let nonExclusiveRunningSlots = [];
15274
- const checkNonExclusiveRunningSlots = async (cleanArg = false) => {
15275
- if (nonExclusiveRunningSlots.length > 100 || cleanArg) {
15276
- await Promise.all(nonExclusiveRunningSlots.map((nonExclusiveRunningSlotArg) => nonExclusiveRunningSlotArg.executionDeferred.promise));
15277
- nonExclusiveRunningSlots = [];
15278
- }
15279
- };
15280
- while (this.executionSlots.length > 0) {
15281
- const nextExecutionSlot = this.executionSlots.shift();
15282
- const runNextExecution = async () => {
15283
- if (nextExecutionSlot.timeout) {
15284
- const result = await Promise.race([
15285
- nextExecutionSlot.funcToExecute(),
15286
- smartdelay2.delayFor(nextExecutionSlot.timeout)
15287
- ]);
15288
- nextExecutionSlot.executionDeferred.resolve(result);
15289
- } else {
15290
- nextExecutionSlot.executionDeferred.resolve(await nextExecutionSlot.funcToExecute());
15291
- }
15292
- };
15293
- if (nextExecutionSlot.mode === "exclusive") {
15294
- await checkNonExclusiveRunningSlots(true);
15295
- await runNextExecution();
15296
- } else {
15297
- nonExclusiveRunningSlots.push(nextExecutionSlot);
15298
- await checkNonExclusiveRunningSlots(false);
15299
- runNextExecution();
15300
- }
15301
- }
15302
- this.currentlyExecutingDeferred.resolve();
15303
- this.currentlyExecutingDeferred = null;
15304
- }
15305
- };
15306
-
15307
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.fastmap.js
15308
- var FastMap2 = class _FastMap {
15309
- constructor() {
15310
- this.mapObject = {};
15311
- }
15312
- isUniqueKey(keyArg) {
15313
- return this.mapObject[keyArg] ? false : true;
15314
- }
15315
- addToMap(keyArg, objectArg, optionsArg) {
15316
- if (this.isUniqueKey(keyArg) || optionsArg && optionsArg.force) {
15317
- this.mapObject[keyArg] = objectArg;
15318
- return true;
15319
- } else {
15320
- return false;
15321
- }
15322
- }
15323
- getByKey(keyArg) {
15324
- return this.mapObject[keyArg];
15325
- }
15326
- removeFromMap(keyArg) {
15327
- const removedItem = this.getByKey(keyArg);
15328
- delete this.mapObject[keyArg];
15329
- return removedItem;
15330
- }
15331
- getKeys() {
15332
- const keys = [];
15333
- for (const keyArg in this.mapObject) {
15334
- if (this.mapObject[keyArg]) {
15335
- keys.push(keyArg);
15336
- }
15337
- }
15338
- return keys;
15339
- }
15340
- clean() {
15341
- this.mapObject = {};
15342
- }
15343
- /**
15344
- * returns a new Fastmap that includes all values from this and all from the fastmap in the argument
15345
- */
15346
- concat(fastMapArg) {
15347
- const concatedFastmap = new _FastMap();
15348
- for (const key of this.getKeys()) {
15349
- concatedFastmap.addToMap(key, this.getByKey(key));
15350
- }
15351
- for (const key of fastMapArg.getKeys()) {
15352
- concatedFastmap.addToMap(key, fastMapArg.getByKey(key), {
15353
- force: true
15354
- });
15355
- }
15356
- return concatedFastmap;
15357
- }
15358
- /**
15359
- * tries to merge another Fastmap
15360
- * Note: uniqueKeyCollisions will cause overwrite
15361
- * @param fastMapArg
15362
- */
15363
- addAllFromOther(fastMapArg) {
15364
- for (const key of fastMapArg.getKeys()) {
15365
- this.addToMap(key, fastMapArg.getByKey(key), {
15366
- force: true
15367
- });
15368
- }
15369
- }
15370
- async find(findFunctionArg) {
15371
- for (const key of this.getKeys()) {
15372
- const item = this.getByKey(key);
15373
- const findFunctionResult = await findFunctionArg(item);
15374
- if (findFunctionResult) {
15375
- return item;
15376
- }
15377
- }
15378
- }
15379
- };
15380
-
15381
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.objectmap.js
15382
- var uni2 = (prefix = "uni") => {
15383
- return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c3) => {
15384
- const r4 = Math.random() * 16 | 0;
15385
- const v2 = c3 === "x" ? r4 : r4 & 3 | 8;
15386
- return v2.toString(16);
15387
- });
15388
- };
15389
- var ObjectMap2 = class _ObjectMap {
15390
- /**
15391
- * returns a new instance
15392
- */
15393
- constructor() {
15394
- this.fastMap = new FastMap2();
15395
- this.eventSubject = new dist_ts_exports18.rxjs.Subject();
15396
- }
15397
- /**
15398
- * adds an object mapped to a string
15399
- * the string must be unique
15400
- */
15401
- addMappedUnique(uniqueKeyArg, objectArg) {
15402
- this.fastMap.addToMap(uniqueKeyArg, objectArg);
15403
- }
15404
- /**
15405
- * fastest way to get an object from the map
15406
- * @param uniqueKey
15407
- */
15408
- getMappedUnique(uniqueKeyArg) {
15409
- return this.fastMap.getByKey(uniqueKeyArg);
15410
- }
15411
- /**
15412
- * remove key
15413
- * @param functionArg
15414
- */
15415
- removeMappedUnique(uniqueKey) {
15416
- const object = this.getMappedUnique(uniqueKey);
15417
- }
15418
- /**
15419
- * add object to Objectmap
15420
- * returns false if the object is already in the map
15421
- * returns true if the object was added successfully
15422
- */
15423
- add(objectArg) {
15424
- for (const keyArg of this.fastMap.getKeys()) {
15425
- const object = this.fastMap.getByKey(keyArg);
15426
- if (object === objectArg) {
15427
- return keyArg;
15428
- }
15429
- }
15430
- const uniqueKey = uni2("key");
15431
- this.addMappedUnique(uniqueKey, objectArg);
15432
- this.eventSubject.next({
15433
- operation: "add",
15434
- payload: objectArg
15435
- });
15436
- return uniqueKey;
15437
- }
15438
- /**
15439
- * like .add but adds an whole array of objects
15440
- */
15441
- addArray(objectArrayArg) {
15442
- for (const item of objectArrayArg) {
15443
- this.add(item);
15444
- }
15445
- }
15446
- /**
15447
- * check if object is in Objectmap
15448
- */
15449
- checkForObject(objectArg) {
15450
- return !!this.getKeyForObject(objectArg);
15451
- }
15452
- /**
15453
- * get key for object
15454
- * @param findFunction
15455
- */
15456
- getKeyForObject(objectArg) {
15457
- let foundKey = null;
15458
- for (const keyArg of this.fastMap.getKeys()) {
15459
- if (!foundKey && this.fastMap.getByKey(keyArg) === objectArg) {
15460
- foundKey = keyArg;
15461
- } else {
15462
- continue;
15463
- }
15464
- }
15465
- return foundKey;
15466
- }
15467
- /**
15468
- * find object
15469
- */
15470
- async find(findFunction) {
15471
- return this.fastMap.find(findFunction);
15472
- }
15473
- findSync(findFunction) {
15474
- for (const keyArg of this.fastMap.getKeys()) {
15475
- if (findFunction(this.fastMap.getByKey(keyArg))) {
15476
- return this.getMappedUnique(keyArg);
15477
- }
15478
- }
15479
- }
15480
- /**
15481
- * finds a specific element and then removes it
15482
- */
15483
- async findOneAndRemove(findFunction) {
15484
- const foundElement = await this.find(findFunction);
15485
- if (foundElement) {
15486
- this.remove(foundElement);
15487
- }
15488
- return foundElement;
15489
- }
15490
- findOneAndRemoveSync(findFunction) {
15491
- const foundElement = this.findSync(findFunction);
15492
- if (foundElement) {
15493
- this.remove(foundElement);
15494
- }
15495
- return foundElement;
15496
- }
15497
- /**
15498
- * run function for each item in Objectmap
15499
- */
15500
- async forEach(functionArg) {
15501
- for (const keyArg of this.fastMap.getKeys()) {
15502
- await functionArg(this.fastMap.getByKey(keyArg));
15503
- }
15504
- }
15505
- /**
15506
- * gets an object in the Observablemap and removes it, so it can't be retrieved again
15507
- */
15508
- getOneAndRemove() {
15509
- const keys = this.fastMap.getKeys();
15510
- if (keys.length === 0) {
15511
- return null;
15512
- } else {
15513
- const keyToUse = keys[0];
15514
- const removedItem = this.fastMap.removeFromMap(keyToUse);
15515
- this.eventSubject.next({
15516
- operation: "remove",
15517
- payload: removedItem
15518
- });
15519
- return removedItem;
15520
- }
15521
- }
15522
- /**
15523
- * returns a cloned array of all the objects currently in the Objectmap
15524
- */
15525
- getArray() {
15526
- const returnArray = [];
15527
- for (const keyArg of this.fastMap.getKeys()) {
15528
- returnArray.push(this.fastMap.getByKey(keyArg));
15529
- }
15530
- return returnArray;
15531
- }
15532
- /**
15533
- * check if Objectmap ist empty
15534
- */
15535
- isEmpty() {
15536
- return this.fastMap.getKeys().length === 0;
15537
- }
15538
- /**
15539
- * remove object from Objectmap
15540
- */
15541
- remove(objectArg) {
15542
- if (this.checkForObject(objectArg)) {
15543
- const keyArg = this.getKeyForObject(objectArg);
15544
- const removedObject = this.fastMap.removeFromMap(keyArg);
15545
- this.eventSubject.next({
15546
- operation: "remove",
15547
- payload: removedObject
15548
- });
15549
- return removedObject;
15550
- }
15551
- return null;
15552
- }
15553
- /**
15554
- * wipe Objectmap
15555
- */
15556
- wipe() {
15557
- for (const keyArg of this.fastMap.getKeys()) {
15558
- this.fastMap.removeFromMap(keyArg);
15559
- }
15560
- }
15561
- /**
15562
- * returns a new Objectmap that includes
15563
- */
15564
- concat(objectMapArg) {
15565
- const concattedObjectMap = new _ObjectMap();
15566
- concattedObjectMap.fastMap.addAllFromOther(this.fastMap);
15567
- concattedObjectMap.fastMap.addAllFromOther(objectMapArg.fastMap);
15568
- return concattedObjectMap;
15569
- }
15570
- /**
15571
- * tries to merge another Objectmap
15572
- * Note: uniqueKeyCollisions will cause overwrite
15573
- * @param objectMapArg
15574
- */
15575
- addAllFromOther(objectMapArg) {
15576
- this.fastMap.addAllFromOther(objectMapArg.fastMap);
15577
- }
15578
- };
15579
-
15580
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.interestmap.interest.js
15581
- var Interest2 = class {
15582
- /**
15583
- * quick access to a string that makes the interest comparable for checking for similar interests
15584
- */
15585
- get comparisonString() {
15586
- return this.comparisonFunc(this.originalInterest);
15587
- }
15588
- /**
15589
- * fullfill the interest
15590
- */
15591
- fullfillInterest(objectArg) {
15592
- this.isFullfilled = true;
15593
- this.fullfillmentStore = [];
15594
- this.interestDeferred.resolve(objectArg);
15595
- }
15596
- /**
15597
- *
15598
- */
15599
- constructor(interestMapArg, interestArg, comparisonFuncArg, optionsArg) {
15600
- this.destructionTimer = new dist_ts_exports20.Timer(1e4);
15601
- this.isFullfilled = false;
15602
- this.fullfillmentStore = [];
15603
- this.interestDeferred = new smartpromise3.Deferred();
15604
- this.interestFullfilled = this.interestDeferred.promise;
15605
- this.interestMapRef = interestMapArg;
15606
- this.originalInterest = interestArg;
15607
- this.comparisonFunc = comparisonFuncArg;
15608
- this.options = optionsArg;
15609
- this.destructionTimer.completed.then(() => {
15610
- this.destroy();
15611
- });
15612
- if (this.options?.markLostAfterDefault) {
15613
- smartdelay2.delayFor(this.options.markLostAfterDefault).then(this.markLost);
15614
- }
15615
- }
15616
- // ===============================
15617
- // LIFECYCLE MANAGEMENT
15618
- // ===============================
15619
- /**
15620
- * self destructs the interest
15621
- */
15622
- destroy() {
15623
- this.interestMapRef.removeInterest(this);
15624
- if (!this.isFullfilled && this.options.defaultFullfillment) {
15625
- this.fullfillInterest(this.options.defaultFullfillment);
15626
- }
15627
- }
15628
- /**
15629
- * notifies the interest that the interest in it has been lost
15630
- */
15631
- markLost() {
15632
- this.destructionTimer.start();
15633
- }
15634
- /**
15635
- * notifies the interest that the interest in it has been restored
15636
- */
15637
- renew() {
15638
- this.destructionTimer.reset();
15639
- }
15640
- };
15641
-
15642
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.interestmap.js
15643
- var InterestMap2 = class {
15644
- constructor(comparisonFuncArg, optionsArg = {}) {
15645
- this.interestObjectMap = new ObjectMap2();
15646
- this.interestObservable = new dist_ts_exports18.ObservableIntake();
15647
- this.comparisonFunc = comparisonFuncArg;
15648
- this.options = optionsArg;
15649
- }
15650
- /**
15651
- * adds an interest to the InterestMap
15652
- * @param interestId
15653
- */
15654
- async addInterest(interestId, defaultFullfillmentArg) {
15655
- const comparisonString = this.comparisonFunc(interestId);
15656
- let returnInterest;
15657
- const newInterest = new Interest2(this, interestId, this.comparisonFunc, {
15658
- markLostAfterDefault: this.options.markLostAfterDefault,
15659
- defaultFullfillment: defaultFullfillmentArg
15660
- });
15661
- let interestExists = false;
15662
- await this.interestObjectMap.forEach((interestArg) => {
15663
- if (!interestExists && interestArg.comparisonString === newInterest.comparisonString) {
15664
- console.log("info", `interest already exists for ${newInterest.comparisonString}`);
15665
- interestExists = true;
15666
- returnInterest = interestArg;
15667
- returnInterest.renew();
15668
- }
15669
- });
15670
- if (!returnInterest) {
15671
- returnInterest = newInterest;
15672
- this.interestObjectMap.add(returnInterest);
15673
- }
15674
- this.interestObservable.push(returnInterest);
15675
- return returnInterest;
15676
- }
15677
- /**
15678
- * removes an interest from the interest map
15679
- */
15680
- removeInterest(interestArg) {
15681
- const interestToRemove = this.interestObjectMap.findOneAndRemoveSync((interestArg2) => {
15682
- return interestArg.comparisonString === interestArg2.comparisonString;
15683
- });
15684
- }
15685
- /**
15686
- * check interest
15687
- */
15688
- checkInterest(objectArg) {
15689
- const comparisonString = this.comparisonFunc(objectArg);
15690
- return this.checkInterestByString(comparisonString);
15691
- }
15692
- /**
15693
- * checks an interest
15694
- * @param comparisonStringArg
15695
- */
15696
- checkInterestByString(comparisonStringArg) {
15697
- const foundInterest = this.interestObjectMap.findSync((interest) => {
15698
- return interest.comparisonString === comparisonStringArg;
15699
- });
15700
- if (foundInterest) {
15701
- return true;
15702
- } else {
15703
- return false;
15704
- }
15705
- }
15706
- /**
15707
- * inform lost interest
15708
- * @param interestId
15709
- */
15710
- informLostInterest(interestId) {
15711
- const wantedInterest = this.findInterest(interestId);
15712
- if (wantedInterest) {
15713
- wantedInterest.markLost();
15714
- }
15715
- }
15716
- /**
15717
- * finds an interest
15718
- * @param interestId
15719
- */
15720
- findInterest(interestId) {
15721
- const comparableString = this.comparisonFunc(interestId);
15722
- const interest = this.interestObjectMap.findSync((interestArg) => {
15723
- return interestArg.comparisonString === comparableString;
15724
- });
15725
- return interest;
15726
- }
15727
- };
15728
-
15729
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.limitedarray.js
15730
- var LimitedArray2 = class {
15731
- constructor(limitArg) {
15732
- this.array = [];
15733
- this.arrayLimit = limitArg;
15734
- }
15735
- addOne(objectArg) {
15736
- this.array.unshift(objectArg);
15737
- if (this.array.length > this.arrayLimit) {
15738
- this.array.length = this.arrayLimit;
15739
- }
15740
- }
15741
- addMany(objectArrayArg) {
15742
- for (let objectArg of objectArrayArg) {
15743
- this.addOne(objectArg);
15744
- }
15745
- }
15746
- setLimit(limitArg) {
15747
- this.arrayLimit = limitArg;
15748
- if (this.array.length > this.arrayLimit) {
15749
- this.array.length = this.arrayLimit;
15750
- }
15751
- }
15752
- getAverage() {
15753
- if (typeof this.array[0] === "number") {
15754
- let sum = 0;
15755
- for (let localNumber of this.array) {
15756
- let localNumberAny = localNumber;
15757
- sum = sum + localNumberAny;
15758
- }
15759
- return sum / this.array.length;
15760
- } else {
15761
- return null;
15762
- }
15763
- }
15764
- };
15765
-
15766
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.looptracker.js
15767
- var LoopTracker2 = class {
15768
- constructor() {
15769
- this.referenceObjectMap = new ObjectMap2();
15770
- }
15771
- /**
15772
- * checks and tracks an object
15773
- * @param objectArg
15774
- */
15775
- checkAndTrack(objectArg) {
15776
- if (!this.referenceObjectMap.checkForObject(objectArg)) {
15777
- this.referenceObjectMap.add(objectArg);
15778
- return true;
15779
- } else {
15780
- return false;
15781
- }
15782
- }
15783
- };
15784
-
15785
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.stringmap.js
15786
- var Stringmap2 = class {
15787
- constructor() {
15788
- this._stringArray = [];
15789
- this._triggerUntilTrueFunctionArray = [];
15790
- }
15791
- /**
15792
- * add a string to the Stringmap
15793
- */
15794
- addString(stringArg) {
15795
- this._stringArray.push(stringArg);
15796
- this.notifyTrigger();
15797
- }
15798
- /**
15799
- * like addString, but accepts an array of strings
15800
- */
15801
- addStringArray(stringArrayArg) {
15802
- for (const stringItem of stringArrayArg) {
15803
- this.addString(stringItem);
15804
- }
15805
- }
15806
- /**
15807
- * removes a string from Stringmap
15808
- */
15809
- removeString(stringArg) {
15810
- for (const keyArg in this._stringArray) {
15811
- if (this._stringArray[keyArg] === stringArg) {
15812
- this._stringArray.splice(parseInt(keyArg), 1);
15813
- }
15814
- }
15815
- this.notifyTrigger();
15816
- }
15817
- /**
15818
- * wipes the Stringmap
15819
- */
15820
- wipe() {
15821
- this._stringArray = [];
15822
- this.notifyTrigger();
15823
- }
15824
- /**
15825
- * check if string is in Stringmap
15826
- */
15827
- checkString(stringArg) {
15828
- return this._stringArray.indexOf(stringArg) !== -1;
15829
- }
15830
- /**
15831
- * checks stringPresence with minimatch
15832
- */
15833
- checkMinimatch(miniMatchStringArg) {
15834
- const smartMatchInstance = new dist_ts_exports16.SmartMatch(miniMatchStringArg);
15835
- let foundMatch = false;
15836
- for (const stringItem of this._stringArray) {
15837
- if (smartMatchInstance.match(stringItem)) {
15838
- foundMatch = true;
15839
- }
15840
- }
15841
- return foundMatch;
15842
- }
15843
- /**
15844
- * checks if the Stringmap is empty
15845
- */
15846
- checkIsEmpty() {
15847
- return this._stringArray.length === 0;
15848
- }
15849
- /**
15850
- * gets a cloned copy of the current string Array
15851
- */
15852
- getStringArray() {
15853
- const returnArray = [];
15854
- for (const stringItem of this._stringArray) {
15855
- returnArray.push(stringItem);
15856
- }
15857
- return returnArray;
15858
- }
15859
- // trigger registering
15860
- /**
15861
- * register a new trigger
15862
- */
15863
- registerUntilTrue(functionArg, callbackArg) {
15864
- const trueDeferred = smartpromise3.defer();
15865
- this._triggerUntilTrueFunctionArray.push(() => {
15866
- const result = functionArg(this.getStringArray());
15867
- if (result === true) {
15868
- if (callbackArg) {
15869
- callbackArg();
15870
- }
15871
- trueDeferred.resolve();
15872
- }
15873
- return result;
15874
- });
15875
- this.notifyTrigger();
15876
- return trueDeferred.promise;
15877
- }
15878
- /**
15879
- * notifies triggers
15880
- */
15881
- notifyTrigger() {
15882
- const filteredArray = this._triggerUntilTrueFunctionArray.filter((functionArg) => {
15883
- return !functionArg();
15884
- });
15885
- this._triggerUntilTrueFunctionArray = filteredArray;
15886
- }
15887
- };
15888
-
15889
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.timedaggregator.js
15890
- var TimedAggregtor2 = class {
15891
- constructor(optionsArg) {
15892
- this.storageArray = [];
15893
- this.options = optionsArg;
15894
- }
15895
- checkAggregationStatus() {
15896
- const addAggregationTimer = () => {
15897
- this.aggregationTimer = new dist_ts_exports20.Timer(this.options.aggregationIntervalInMillis);
15898
- this.aggregationTimer.completed.then(() => {
15899
- const aggregateForProcessing = this.storageArray;
15900
- if (aggregateForProcessing.length === 0) {
15901
- this.aggregationTimer = null;
15902
- return;
15903
- }
15904
- this.storageArray = [];
15905
- addAggregationTimer();
15906
- this.options.functionForAggregation(aggregateForProcessing);
15907
- });
15908
- this.aggregationTimer.start();
15909
- };
15910
- if (!this.aggregationTimer) {
15911
- addAggregationTimer();
15912
- }
15913
- }
15914
- add(aggregationArg) {
15915
- this.storageArray.push(aggregationArg);
15916
- this.checkAggregationStatus();
15917
- }
15918
- };
15919
-
15920
- // node_modules/.pnpm/@pushrocks+lik@6.0.2/node_modules/@pushrocks/lik/dist_ts/lik.tree.js
15921
- var Tree2 = class {
15922
- constructor() {
15923
- this.symbolTree = new import_symbol_tree2.default();
15924
- }
15925
- // =======================================
15926
- // Functions that map to the functionality of symbol-tree
15927
- // =======================================
15928
- /**
15929
- *
15930
- * @param objectArg
15931
- */
15932
- initialize(objectArg) {
15933
- return this.symbolTree.initialize(objectArg);
15934
- }
15935
- hasChildren(objectArg) {
15936
- return this.symbolTree.hasChildren(objectArg);
15937
- }
15938
- firstChild(objectArg) {
15939
- return this.symbolTree.firstChild(objectArg);
15940
- }
15941
- lastChild(objectArg) {
15942
- return this.symbolTree.lastChild(objectArg);
15943
- }
15944
- previousSibling(objectArg) {
15945
- return this.symbolTree.previousSibling(objectArg);
15946
- }
15947
- nextSibling(objectArg) {
15948
- return this.symbolTree.nextSibling(objectArg);
15949
- }
15950
- parent(objectArg) {
15951
- return this.symbolTree.parent(objectArg);
15952
- }
15953
- lastInclusiveDescendant(objectArg) {
15954
- return this.symbolTree.lastInclusiveDescendant(objectArg);
15955
- }
15956
- preceding(objectArg, optionsArg) {
15957
- return this.symbolTree.preceding(objectArg, optionsArg);
15958
- }
15959
- following(object, optionsArg) {
15960
- return this.symbolTree.following(object, optionsArg);
15961
- }
15962
- childrenToArray(parentArg, optionsArg) {
15963
- return this.symbolTree.childrenToArray(parentArg, optionsArg);
15964
- }
15965
- ancestorsToArray(objectArg, optionsArg) {
15966
- return this.symbolTree.ancestorsToArray(objectArg, optionsArg);
15967
- }
15968
- treeToArray(rootArg, optionsArg) {
15969
- return this.symbolTree.treeToArray(rootArg, optionsArg);
15970
- }
15971
- childrenIterator(parentArg, optionsArg) {
15972
- return this.symbolTree.childrenIterator(parentArg, optionsArg);
15973
- }
15974
- previousSiblingsIterator(objectArg) {
15975
- return this.symbolTree.previousSiblingsIterator(objectArg);
15976
- }
15977
- nextSiblingsIterator(objectArg) {
15978
- return this.symbolTree.nextSiblingsIterator();
15979
- }
15980
- ancestorsIterator(objectArg) {
15981
- this.symbolTree.ancestorsIterator();
15982
- }
15983
- treeIterator(rootArg, optionsArg) {
15984
- return this.symbolTree.treeIterator(rootArg);
15985
- }
15986
- index(childArg) {
15987
- return this.symbolTree.index(childArg);
15988
- }
15989
- childrenCount(parentArg) {
15990
- return this.symbolTree.childrenCount(parentArg);
15991
- }
15992
- compareTreePosition(leftArg, rightArg) {
15993
- return this.compareTreePosition(leftArg, rightArg);
15994
- }
15995
- remove(removeObjectArg) {
15996
- return this.symbolTree.remove(removeObjectArg);
15997
- }
15998
- insertBefore(referenceObjectArg, newObjectArg) {
15999
- return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg);
16000
- }
16001
- insertAfter(referenceObject, newObjectArg) {
16002
- return this.symbolTree.insertAfter(referenceObject, newObjectArg);
16003
- }
16004
- prependChild(referenceObjectArg, newObjectArg) {
16005
- return this.symbolTree.prependChild(referenceObjectArg, newObjectArg);
16006
- }
16007
- appendChild(referenceObjectArg, newObjectArg) {
16008
- return this.symbolTree.appendChild(referenceObjectArg, newObjectArg);
16009
- }
16010
- // ===========================================
16011
- // Functionionality that extends symbol-tree
16012
- // ===========================================
16013
- /**
16014
- * returns a branch of the tree as JSON
16015
- * can be user
16016
- */
16017
- toJsonWithHierachy(rootElement) {
16018
- const treeIterable = this.treeIterator(rootElement, {});
16019
- for (const treeItem of treeIterable) {
16020
- console.log(treeItem);
16021
- }
16022
- }
16023
- /**
16024
- * builds a tree from a JSON with hierachy
16025
- * @param rootElement
16026
- */
16027
- fromJsonWithHierachy(rootElement) {
16028
- }
16029
- };
16030
-
16031
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.plugins.js
16032
- var smartdelay3 = __toESM(require_dist_ts4(), 1);
16033
- var smartpromise5 = __toESM(require_dist_ts2(), 1);
16034
-
16035
- // node_modules/.pnpm/@pushrocks+webrequest@3.0.28/node_modules/@pushrocks/webrequest/dist_ts/index.js
16036
- var dist_ts_exports26 = {};
16037
- __export(dist_ts_exports26, {
16038
- WebRequest: () => WebRequest2
16039
- });
16040
-
16041
- // node_modules/.pnpm/@pushrocks+smartdelay@3.0.1/node_modules/@pushrocks/smartdelay/dist_ts/index.js
16042
- var dist_ts_exports21 = {};
16043
- __export(dist_ts_exports21, {
16044
- Timeout: () => Timeout2,
16045
- delayFor: () => delayFor2,
16046
- delayForRandom: () => delayForRandom2
16047
- });
16048
- var delayFor2 = async (timeInMillisecondArg, passOnArg, unrefedArg = false) => {
16049
- const timeout = new Timeout2(timeInMillisecondArg, null, unrefedArg);
16050
- await timeout.promise;
16051
- return passOnArg;
16052
- };
16053
- var delayForRandom2 = async (timeMinInMillisecondArg, timeMaxInMillisecondArg, passOnArg, unrefedArg = false) => {
16054
- await delayFor2(Math.random() * (timeMaxInMillisecondArg - timeMinInMillisecondArg) + timeMinInMillisecondArg, null, unrefedArg);
16055
- return passOnArg;
16056
- };
16057
- var Timeout2 = class {
16058
- constructor(timeInMillisecondArg, passOn, unrefedArg = false) {
16059
- this._cancelled = false;
16060
- this.timeoutInMillis = timeInMillisecondArg;
16061
- this._deferred = defer2();
16062
- this.promise = this._deferred.promise;
16063
- this._timeout = setTimeout(() => {
16064
- if (!this._cancelled) {
16065
- this._deferred.resolve(passOn);
16066
- }
16067
- }, timeInMillisecondArg);
16068
- this.started = Date.now();
16069
- if (unrefedArg) {
16070
- this.makeUnrefed();
16071
- }
16072
- }
16073
- /**
16074
- * unreffing a timeout causes the node process to not wait for completion before exit
16075
- */
16076
- makeUnrefed() {
16077
- this._timeout.unref();
16078
- }
16079
- /**
16080
- * cancels the timer
16081
- */
16082
- cancel() {
16083
- this._cancelled = true;
16084
- clearTimeout(this._timeout);
16085
- }
16086
- getTimeLeft() {
16087
- const result = this.started + this.timeoutInMillis - Date.now();
16088
- return result > 0 ? result : 0;
16089
- }
16090
- };
16091
-
16092
- // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/index.js
16093
- var dist_ts_exports22 = {};
16094
- __export(dist_ts_exports22, {
16095
- Smartenv: () => Smartenv2
16096
- });
16097
-
16098
- // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.plugins.js
16099
- var smartpromise4 = __toESM(require_dist_ts2(), 1);
16100
-
16101
- // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.classes.smartenv.js
16102
- var Smartenv2 = class {
16103
- constructor() {
16104
- this.loadedScripts = [];
16105
- }
16106
- async getEnvAwareModule(optionsArg) {
16107
- if (this.isNode) {
16108
- const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
16109
- return moduleResult;
16110
- } else if (this.isBrowser) {
16111
- const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
16112
- return moduleResult;
16113
- } else {
16114
- console.error("platform for loading not supported by smartenv");
16115
- }
16116
- }
16117
- async getSafeNodeModule(moduleNameArg) {
16118
- if (!this.isNode) {
16119
- console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
16120
- return;
16121
- }
16122
- return new Function(`return import('${moduleNameArg}')`)();
16123
- }
16124
- async getSafeWebModule(urlArg, getFunctionArg) {
16125
- if (!this.isBrowser) {
16126
- console.error("You tried to load a web module in a wrong context");
16127
- return;
16128
- }
16129
- if (this.loadedScripts.includes(urlArg)) {
16130
- return getFunctionArg();
16131
- } else {
16132
- this.loadedScripts.push(urlArg);
16133
- }
16134
- const done = smartpromise4.defer();
16135
- if (globalThis.importScripts) {
16136
- globalThis.importScripts(urlArg);
16137
- done.resolve();
16138
- } else {
16139
- const script = document.createElement("script");
16140
- script.onload = () => {
16141
- done.resolve();
16142
- };
16143
- script.src = urlArg;
16144
- document.head.appendChild(script);
16145
- }
16146
- await done.promise;
16147
- return getFunctionArg();
16148
- }
16149
- get runtimeEnv() {
16150
- if (typeof process !== "undefined") {
16151
- return "node";
16152
- } else {
16153
- return "browser";
16154
- }
16155
- }
16156
- get isBrowser() {
16157
- return !this.isNode;
16158
- }
16159
- get userAgent() {
16160
- if (this.isBrowser) {
16161
- return navigator.userAgent;
16162
- } else {
16163
- return "undefined";
16164
- }
16165
- }
16166
- get isNode() {
16167
- return this.runtimeEnv === "node";
16168
- }
16169
- get nodeVersion() {
16170
- return process.version;
16171
- }
16172
- get isCI() {
16173
- if (this.isNode) {
16174
- if (process.env.CI) {
16175
- return true;
16176
- } else {
16177
- return false;
16178
- }
16179
- } else {
16180
- return false;
16181
- }
16182
- }
16183
- async isMacAsync() {
16184
- if (this.isNode) {
16185
- const os = await this.getSafeNodeModule("os");
16186
- return os.platform() === "darwin";
16187
- } else {
16188
- return false;
16189
- }
16190
- }
16191
- async isWindowsAsync() {
16192
- if (this.isNode) {
16193
- const os = await this.getSafeNodeModule("os");
16194
- return os.platform() === "win32";
16195
- } else {
16196
- return false;
16197
- }
16198
- }
16199
- async isLinuxAsync() {
16200
- if (this.isNode) {
16201
- const os = await this.getSafeNodeModule("os");
16202
- return os.platform() === "linux";
16203
- } else {
16204
- return false;
16205
- }
16206
- }
16207
- /**
16208
- * prints the environment to console
16209
- */
16210
- async printEnv() {
16211
- if (this.isNode) {
16212
- console.log("running on NODE");
16213
- console.log("node version is " + this.nodeVersion);
16214
- } else {
16215
- console.log("running on BROWSER");
16216
- console.log("browser is " + this.userAgent);
16217
- }
16218
- }
16219
- };
16220
-
16221
- // node_modules/.pnpm/@pushrocks+smartjson@5.0.6/node_modules/@pushrocks/smartjson/dist_ts/index.js
16222
- var dist_ts_exports24 = {};
16223
- __export(dist_ts_exports24, {
16224
- Smartjson: () => Smartjson2,
16225
- deepEqualObjects: () => deepEqualObjects2,
16226
- foldDec: () => foldDec2,
16227
- parse: () => parse2,
16228
- parseBase64: () => parseBase642,
16229
- stringify: () => stringify2,
16230
- stringifyBase64: () => stringifyBase642
16231
- });
16232
-
16233
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/index.js
16234
- var dist_ts_exports23 = {};
16235
- __export(dist_ts_exports23, {
16236
- Base64: () => Base642,
16237
- Domain: () => Domain2,
16238
- GitRepo: () => GitRepo2,
16239
- base64: () => base642,
16240
- create: () => smartstring_create_exports2,
16241
- docker: () => smartstring_docker_exports2,
16242
- indent: () => smartstring_indent_exports2,
16243
- normalize: () => smartstring_normalize_exports2,
16244
- type: () => smartstring_type_exports2
16245
- });
16246
-
16247
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.create.js
16248
- var smartstring_create_exports2 = {};
16249
- __export(smartstring_create_exports2, {
16250
- createCryptoRandomString: () => createCryptoRandomString2,
16251
- createRandomString: () => createRandomString2
16252
- });
16253
-
16254
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.plugins.js
16255
- var isounique3 = __toESM(require_dist_ts3(), 1);
16256
- var import_buffer2 = __toESM(require_buffer(), 1);
16257
- var url2 = __toESM(require_url(), 1);
16258
- var import_randomatic2 = __toESM(require_randomatic(), 1);
16259
- var smartenvInstance2 = new Smartenv2();
16260
- if (smartenvInstance2.isBrowser) {
16261
- globalThis.Buffer = import_buffer2.Buffer;
16262
- }
16263
-
16264
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.create.js
16265
- var createRandomString2 = (patternArg, lengthArg, optionsArg) => {
16266
- return import_randomatic2.default(patternArg, lengthArg, optionsArg);
16267
- };
16268
- var createCryptoRandomString2 = () => {
16269
- return isounique3.uni();
16270
- };
16271
-
16272
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.docker.js
16273
- var smartstring_docker_exports2 = {};
16274
- __export(smartstring_docker_exports2, {
16275
- makeEnvObject: () => makeEnvObject2
16276
- });
16277
- var makeEnvObject2 = function(envArrayArg) {
16278
- let returnObject = {};
16279
- let regexString = /(.*)=(.*)/;
16280
- if (typeof envArrayArg !== "undefined") {
16281
- for (let envKey in envArrayArg) {
16282
- let regexMatches = regexString.exec(envArrayArg[envKey]);
16283
- returnObject[regexMatches[1]] = regexMatches[2];
16284
- }
16285
- }
16286
- return returnObject;
16287
- };
16288
-
16289
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.indent.js
16290
- var smartstring_indent_exports2 = {};
16291
- __export(smartstring_indent_exports2, {
16292
- indent: () => indent2,
16293
- indentWithPrefix: () => indentWithPrefix2,
16294
- normalize: () => normalize2
16295
- });
16296
- var splitStringAtLineBreak2 = (stringArg) => {
16297
- let resultArray = stringArg.split("\n");
16298
- return cleanStringArray2(resultArray);
16299
- };
16300
- var joinStringWithLineBreaks2 = (stringArrayArg) => {
16301
- let resultString = "";
16302
- for (let line of stringArrayArg) {
16303
- resultString = resultString + line + "\n";
16304
- }
16305
- return resultString;
16306
- };
16307
- var cleanStringArray2 = (stringArrayArg) => {
16308
- let testRegex = /^[\s]*$/;
16309
- if (testRegex.test(stringArrayArg[0])) {
16310
- stringArrayArg.shift();
16311
- }
16312
- if (testRegex.test(stringArrayArg[stringArrayArg.length - 1])) {
16313
- stringArrayArg.pop();
16314
- }
16315
- return stringArrayArg;
16316
- };
16317
- var indent2 = (stringArg, spaceAmount) => {
16318
- let localStringArray = splitStringAtLineBreak2(stringArg);
16319
- for (let stringArg2 of localStringArray) {
16320
- stringArg2 = " ".repeat(spaceAmount) + stringArg2;
16321
- }
16322
- let resultString = joinStringWithLineBreaks2(localStringArray);
16323
- return resultString;
16324
- };
16325
- var indentWithPrefix2 = (stringArg, prefixArg) => {
16326
- let resultString;
16327
- let stringArray = splitStringAtLineBreak2(stringArg);
16328
- let resultArray = [];
16329
- for (let stringItem of stringArray) {
16330
- resultArray.push(prefixArg + stringItem);
16331
- }
16332
- resultString = joinStringWithLineBreaks2(resultArray);
16333
- return resultString;
16334
- };
16335
- var normalize2 = (stringArg) => {
16336
- let resultString;
16337
- let splitStringArray = splitStringAtLineBreak2(stringArg);
16338
- let minCommonLeftOffset;
16339
- const deIndentRegex = /^(\s*)/;
16340
- const emptyLineRegex = /^(\s*)$/;
16341
- for (let stringItem of splitStringArray) {
16342
- let offsetString = deIndentRegex.exec(stringItem)[1];
16343
- if ((typeof minCommonLeftOffset === "undefined" || offsetString.length < minCommonLeftOffset) && !emptyLineRegex.test(stringItem)) {
16344
- minCommonLeftOffset = offsetString.length;
16345
- }
16346
- }
16347
- let resultSplitStringArray = [];
16348
- for (let stringItem of splitStringArray) {
16349
- resultSplitStringArray.push(stringItem.substr(minCommonLeftOffset));
16350
- }
16351
- resultString = joinStringWithLineBreaks2(resultSplitStringArray);
16352
- return resultString;
16353
- };
16354
-
16355
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.normalize.js
16356
- var smartstring_normalize_exports2 = {};
16357
- __export(smartstring_normalize_exports2, {
16358
- replaceAll: () => replaceAll2,
16359
- standard: () => standard2
16360
- });
16361
- var replaceAll2 = (stringArg, searchPattern, replacementString) => {
16362
- return stringArg.replace(new RegExp(searchPattern, "g"), replacementString);
16363
- };
16364
- var standard2 = (stringArg) => {
16365
- let fix1 = stripIndent(stringArg);
16366
- let fix2 = normalizeNewline(fix1);
16367
- let fix3 = replaceAll2(fix2, " /", " ");
16368
- return fix3;
16369
- };
16370
-
16371
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.type.js
16372
- var smartstring_type_exports2 = {};
16373
- __export(smartstring_type_exports2, {
16374
- isBase64: () => isBase642,
16375
- isUtf8: () => isUtf82
16376
- });
16377
-
16378
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.base64.js
16379
- var Base642 = class {
16380
- constructor(inputStringArg, typeArg) {
16381
- switch (typeArg) {
16382
- case "string":
16383
- this.refString = inputStringArg;
16384
- break;
16385
- case "base64":
16386
- this.refString = base642.decode(inputStringArg);
16387
- break;
16388
- case "base64uri":
16389
- this.refString = base642.decode(inputStringArg);
16390
- }
16391
- }
16392
- /**
16393
- * the simple string (unencoded)
16394
- */
16395
- get simpleString() {
16396
- return this.refString;
16397
- }
16398
- /**
16399
- * the base64 encoded version of the original string
16400
- */
16401
- get base64String() {
16402
- return base642.encode(this.refString);
16403
- }
16404
- /**
16405
- * the base64uri encoded version of the original string
16406
- */
16407
- get base64UriString() {
16408
- return base642.encodeUri(this.refString);
16409
- }
16410
- };
16411
- var base642 = {
16412
- /**
16413
- * encodes the string
16414
- */
16415
- encode: (stringArg) => {
16416
- return gBase64.encode(stringArg);
16417
- },
16418
- /**
16419
- * encodes a stringArg to base64 uri style
16420
- */
16421
- encodeUri: (stringArg) => {
16422
- return gBase64.encodeURI(stringArg);
16423
- },
16424
- /**
16425
- * decodes a base64 encoded string
16426
- */
16427
- decode: (stringArg) => {
16428
- return gBase64.decode(stringArg);
16429
- },
16430
- /**
16431
- *
16432
- * @param stringArg
16433
- * checks wether the string is base64 encoded
16434
- */
16435
- isBase64: (stringArg) => {
16436
- const regex = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/;
16437
- return regex.test(stringArg);
16438
- }
16439
- };
16440
-
16441
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.type.js
16442
- var isUtf82 = (stringArg) => {
16443
- const bytes = Buffer.from(stringArg);
16444
- let i3 = 0;
16445
- while (i3 < bytes.length) {
16446
- if (
16447
- // ASCII
16448
- bytes[i3] === 9 || bytes[i3] === 10 || bytes[i3] === 13 || 32 <= bytes[i3] && bytes[i3] <= 126
16449
- ) {
16450
- i3 += 1;
16451
- continue;
16452
- }
16453
- if (
16454
- // non-overlong 2-byte
16455
- 194 <= bytes[i3] && bytes[i3] <= 223 && 128 <= bytes[i3 + 1] && bytes[i3 + 1] <= 191
16456
- ) {
16457
- i3 += 2;
16458
- continue;
16459
- }
16460
- if (
16461
- // excluding overlongs
16462
- bytes[i3] === 224 && 160 <= bytes[i3 + 1] && bytes[i3 + 1] <= 191 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191 || // straight 3-byte
16463
- (225 <= bytes[i3] && bytes[i3] <= 236 || bytes[i3] === 238 || bytes[i3] === 239) && 128 <= bytes[i3 + 1] && bytes[i3 + 1] <= 191 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191 || // excluding surrogates
16464
- bytes[i3] === 237 && 128 <= bytes[i3 + 1] && bytes[i3 + 1] <= 159 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191
16465
- ) {
16466
- i3 += 3;
16467
- continue;
16468
- }
16469
- if (
16470
- // planes 1-3
16471
- bytes[i3] === 240 && 144 <= bytes[i3 + 1] && bytes[i3 + 1] <= 191 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191 && 128 <= bytes[i3 + 3] && bytes[i3 + 3] <= 191 || // planes 4-15
16472
- 241 <= bytes[i3] && bytes[i3] <= 243 && 128 <= bytes[i3 + 1] && bytes[i3 + 1] <= 191 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191 && 128 <= bytes[i3 + 3] && bytes[i3 + 3] <= 191 || // plane 16
16473
- bytes[i3] === 244 && 128 <= bytes[i3 + 1] && bytes[i3 + 1] <= 143 && 128 <= bytes[i3 + 2] && bytes[i3 + 2] <= 191 && 128 <= bytes[i3 + 3] && bytes[i3 + 3] <= 191
16474
- ) {
16475
- i3 += 4;
16476
- continue;
16477
- }
16478
- return false;
16479
- }
16480
- return true;
16481
- };
16482
- var isBase642 = (stringArg) => {
16483
- const notBase64 = /[^A-Z0-9+\/=]/i;
16484
- const len = stringArg.length;
16485
- if (!len || len % 4 !== 0 || notBase64.test(stringArg)) {
16486
- return false;
16487
- }
16488
- const firstPaddingChar = stringArg.indexOf("=");
16489
- return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && stringArg[len - 1] === "=";
16490
- };
16491
-
16492
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.domain.js
16493
- var Domain2 = class {
16494
- constructor(domainStringArg) {
16495
- this.protocol = this._protocolRegex(domainStringArg);
16496
- if (!this.protocol) {
16497
- domainStringArg = `https://${domainStringArg}`;
16498
- }
16499
- this.nodeParsedUrl = url2.parse(domainStringArg);
16500
- this.port = this.nodeParsedUrl.port;
16501
- const regexMatches = this._domainRegex(domainStringArg.replace(this.nodeParsedUrl.pathname, ""));
16502
- this.fullName = "";
16503
- for (let i3 = 1; i3 <= 5; i3++) {
16504
- if (regexMatches[i3 - 1]) {
16505
- const localMatch = regexMatches[i3 - 1];
16506
- this["level" + i3.toString()] = localMatch;
16507
- if (this.fullName === "") {
16508
- this.fullName = localMatch;
16509
- } else {
16510
- this.fullName = localMatch + "." + this.fullName;
16511
- }
16512
- } else {
16513
- this["level" + i3.toString()] = void 0;
16514
- }
16515
- }
16516
- this.zoneName = this.level2 + "." + this.level1;
16517
- this.topLevel = this.level1;
16518
- this.domainName = this.level2;
16519
- this.subDomain = this.level3;
16520
- }
16521
- // helper functions
16522
- /** */
16523
- _domainRegex(stringArg) {
16524
- const regexString = /([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}([a-zA-Z0-9\-\_]*)\.{0,1}$/;
16525
- const regexMatches = regexString.exec(stringArg);
16526
- regexMatches.reverse();
16527
- regexMatches.pop();
16528
- const regexMatchesFiltered = regexMatches.filter(function(stringArg2) {
16529
- return stringArg2 !== "";
16530
- });
16531
- return regexMatchesFiltered;
16532
- }
16533
- _protocolRegex(stringArg) {
16534
- const regexString = /^([a-zA-Z0-9]*):\/\//;
16535
- const regexMatches = regexString.exec(stringArg);
16536
- if (regexMatches) {
16537
- return regexMatches[1];
16538
- } else {
16539
- return void 0;
16540
- }
16541
- }
16542
- _portRegex(stringArg) {
16543
- const regexString = /^([a-zA-Z0-9]*):\/\//;
16544
- const regexMatches = regexString.exec(stringArg);
16545
- if (regexMatches) {
16546
- return regexMatches[1];
16547
- } else {
16548
- return void 0;
16549
- }
16550
- }
16551
- };
16552
-
16553
- // node_modules/.pnpm/@pushrocks+smartstring@4.0.7/node_modules/@pushrocks/smartstring/dist_ts/smartstring.git.js
16554
- var GitRepo2 = class {
16555
- constructor(stringArg, tokenArg) {
16556
- let regexMatches = gitRegex2(stringArg);
16557
- this.host = regexMatches[1];
16558
- this.user = regexMatches[2];
16559
- this.repo = regexMatches[3];
16560
- this.accessToken = tokenArg;
16561
- this.sshUrl = gitLink2(this.host, this.user, this.repo, this.accessToken, "ssh");
16562
- this.httpsUrl = gitLink2(this.host, this.user, this.repo, this.accessToken, "https");
16563
- }
16564
- };
16565
- var gitRegex2 = function(stringArg) {
16566
- const regexString = /([a-zA-Z0-9\-_\.]*)(?:\/|\:)([a-zA-Z0-9\-_\.]*)(?:\/)([a-zA-Z0-9\-_\.]*)(?:\.git)/;
16567
- let regexMatches = regexString.exec(stringArg);
16568
- return regexMatches;
16569
- };
16570
- var gitLink2 = function(hostArg, userArg, repoArg, tokenArg = "", linkTypeArg) {
16571
- let returnString;
16572
- if (tokenArg !== "") {
16573
- tokenArg = tokenArg + "@";
16574
- }
16575
- switch (linkTypeArg) {
16576
- case "https":
16577
- returnString = "https://" + tokenArg + hostArg + "/" + userArg + "/" + repoArg + ".git";
16578
- break;
16579
- case "ssh":
16580
- returnString = "git@" + hostArg + ":" + userArg + "/" + repoArg + ".git";
16581
- break;
16582
- default:
16583
- console.error("Link Type " + linkTypeArg + " not known");
16584
- break;
16585
- }
16586
- return returnString;
16587
- };
16588
-
16589
- // node_modules/.pnpm/@pushrocks+smartjson@5.0.6/node_modules/@pushrocks/smartjson/dist_ts/smartjson.plugins.js
16590
- var import_lodash2 = __toESM(require_lodash(), 1);
16591
- var import_fast_json_stable_stringify2 = __toESM(require_fast_json_stable_stringify(), 1);
16592
- var import_buffer_json2 = __toESM(require_buffer_json(), 1);
16593
- var stableJson3 = import_fast_json_stable_stringify2.default;
16594
-
16595
- // node_modules/.pnpm/@pushrocks+smartjson@5.0.6/node_modules/@pushrocks/smartjson/dist_ts/index.js
16596
- var parse2 = import_buffer_json2.default.parse;
16597
- var stringify2 = (objArg, simpleOrderArray, optionsArg = {}) => {
16598
- const bufferedJson = import_buffer_json2.default.stringify(objArg);
16599
- objArg = JSON.parse(bufferedJson);
16600
- let returnJson = stableJson3(objArg, optionsArg);
16601
- return returnJson;
16602
- };
16603
- var stringifyBase642 = (...args) => {
16604
- const stringifiedResult = stringify2(...args);
16605
- return dist_ts_exports23.base64.encodeUri(stringifiedResult);
16606
- };
16607
- var parseBase642 = (base64JsonStringArg) => {
16608
- const simpleStringified = dist_ts_exports23.base64.decode(base64JsonStringArg);
16609
- return parse2(simpleStringified);
16610
- };
16611
- var Smartjson2 = class _Smartjson {
16612
- /**
16613
- * enfolds data from an object
16614
- */
16615
- static enfoldFromObject(objectArg) {
16616
- const newInstance = new this();
16617
- for (const keyName in objectArg) {
16618
- if (newInstance.saveableProperties.indexOf(keyName) !== -1) {
16619
- newInstance[keyName] = objectArg[keyName];
16620
- }
16621
- }
16622
- return newInstance;
16623
- }
16624
- /**
16625
- * enfold from json
16626
- */
16627
- static enfoldFromJson(jsonArg) {
16628
- const objectFromJson = parse2(jsonArg);
16629
- return this.enfoldFromObject(objectFromJson);
16630
- }
16631
- /**
16632
- * folds a class into an object
16633
- */
16634
- foldToObject() {
16635
- const newFoldedObject = {};
16636
- const trackMap = [];
16637
- for (const keyName of this.saveableProperties) {
16638
- let value = this[keyName];
16639
- if (value instanceof _Smartjson) {
16640
- if (trackMap.includes(value)) {
16641
- throw new Error("cycle detected");
16642
- }
16643
- trackMap.push(value);
16644
- value = value.foldToObject();
16645
- }
16646
- newFoldedObject[keyName] = import_lodash2.default(value);
16647
- }
16648
- return newFoldedObject;
16649
- }
16650
- /**
16651
- * folds a class into an object
16652
- */
16653
- foldToJson() {
16654
- const foldedObject = this.foldToObject();
16655
- return stringify2(foldedObject);
16656
- }
16657
- };
16658
- var foldDec2 = () => {
16659
- return (target, key) => {
16660
- if (!target.saveableProperties) {
16661
- target.saveableProperties = [];
16662
- }
16663
- target.saveableProperties.push(key);
16664
- };
16665
- };
16666
- var deepEqualObjects2 = (object1, object2) => {
16667
- const object1String = stringify2(object1);
16668
- const object2String = stringify2(object2);
16669
- return object1String === object2String;
16670
- };
16671
-
16672
- // node_modules/.pnpm/@pushrocks+webstore@2.0.8/node_modules/@pushrocks/webstore/dist_ts/index.js
16673
- var dist_ts_exports25 = {};
16674
- __export(dist_ts_exports25, {
16675
- TypedrequestCache: () => TypedrequestCache2,
16676
- WebStore: () => WebStore2
16677
- });
16678
-
16679
- // node_modules/.pnpm/@pushrocks+webstore@2.0.8/node_modules/@pushrocks/webstore/dist_ts/webstore.classes.webstore.js
16680
- var WebStore2 = class {
16681
- constructor(optionsArg) {
16682
- this.initCalled = false;
16683
- this.readyDeferred = dist_ts_exports17.defer();
16684
- this.options = optionsArg;
16685
- }
16686
- async init() {
16687
- if (this.initCalled) {
16688
- await this.readyDeferred.promise;
16689
- return;
16690
- }
16691
- this.initCalled = true;
16692
- const smartenv = new dist_ts_exports22.Smartenv();
16693
- if (!smartenv.isBrowser && !globalThis.indexedDB) {
16694
- console.log("hey");
16695
- console.log(globalThis.indexedDB);
16696
- await smartenv.getSafeNodeModule("fake-indexeddb/auto");
16697
- if (!globalThis.indexedDB) {
16698
- const mod = await smartenv.getSafeNodeModule("fake-indexeddb");
16699
- globalThis.indexedDB = new mod.IDBFactory();
16700
- }
16701
- }
16702
- this.db = await build_exports.openDB(this.options.dbName, 1, {
16703
- upgrade: (db) => {
16704
- db.createObjectStore(this.options.storeName);
16705
- }
16706
- });
16707
- this.readyDeferred.resolve();
16708
- return;
16709
- }
16710
- async get(key) {
16711
- await this.init();
16712
- return this.db.get(this.options.storeName, key);
16713
- }
16714
- async check(keyArg) {
16715
- await this.init();
16716
- const result = await this.get(keyArg);
16717
- return !!result;
16718
- }
16719
- async set(key, val) {
16720
- await this.init();
16721
- return this.db.put(this.options.storeName, val, key);
16722
- }
16723
- async delete(key) {
16724
- await this.init();
16725
- return this.db.delete(this.options.storeName, key);
16726
- }
16727
- async clear() {
16728
- await this.init();
16729
- return this.db.clear(this.options.storeName);
16730
- }
16731
- async keys() {
16732
- await this.init();
16733
- return this.db.getAllKeys(this.options.storeName);
16734
- }
16735
- };
16736
-
16737
- // node_modules/.pnpm/@pushrocks+webstore@2.0.8/node_modules/@pushrocks/webstore/dist_ts/webstore.classes.typedrequestcache.js
16738
- var TypedrequestCache2 = class {
16739
- constructor(domainArg = "default") {
16740
- this.webstore = new WebStore2({
16741
- dbName: "trStore",
16742
- storeName: `trStore-${domainArg}`
16743
- });
16744
- }
16745
- buildKey(requestArg) {
16746
- return dist_ts_exports24.stringify({
16747
- method: requestArg.method,
16748
- request: requestArg.request
16749
- });
16750
- }
16751
- /**
16752
- * stores by request
16753
- * @param typedrequestarg
16754
- */
16755
- async setByRequest(typedrequestArg) {
16756
- if (!typedrequestArg.response) {
16757
- throw new Error("You cannot store requests without a response present");
16758
- }
16759
- await this.webstore.set(this.buildKey(typedrequestArg), typedrequestArg);
16760
- }
16761
- /**
16762
- * get by full tyoedrequest by partial typedrequest
16763
- * @param typedrequestarg
16764
- */
16765
- async getByRequest(typedrequestArg) {
16766
- const result = await this.webstore.get(this.buildKey(typedrequestArg));
16767
- return result;
16768
- }
16769
- };
16770
-
16771
- // node_modules/.pnpm/@pushrocks+webrequest@3.0.28/node_modules/@pushrocks/webrequest/dist_ts/index.js
16772
- var _WebRequest = class _WebRequest {
16773
- /**
16774
- * loads the needed polyfill
16775
- * @returns
16776
- */
16777
- static async loadNeededPolyfills() {
16778
- if (this.polyfillStatusEvaluated) {
16779
- return this.neededPolyfillsLoadedDeferred.promise;
16780
- }
16781
- this.polyfillStatusEvaluated = true;
16782
- const smartenv = new dist_ts_exports22.Smartenv();
16783
- if (!smartenv.isBrowser) {
16784
- this.polyfillStatusEvaluated = true;
16785
- const fetchMod = await smartenv.getSafeNodeModule("@adobe/fetch");
16786
- this.neededPolyfillsLoadedDeferred.resolve({
16787
- fetch: fetchMod.fetch,
16788
- Response: fetchMod.Response,
16789
- helixTimeout: fetchMod.timeoutSignal
16790
- });
16791
- } else {
16792
- this.neededPolyfillsLoadedDeferred.resolve({
16793
- fetch: (...args) => {
16794
- return fetch(...args);
16795
- },
16796
- Response: globalThis.Response,
16797
- AbortController: globalThis.AbortController
16798
- });
16799
- }
16800
- }
16801
- constructor(optionsArg = {}) {
16802
- this.optionsArg = optionsArg;
16803
- this.cacheStore = new dist_ts_exports25.WebStore({
16804
- dbName: "webrequest",
16805
- storeName: "webrequest"
16806
- });
16807
- this.options = {
16808
- logging: true,
16809
- ...optionsArg
16810
- };
16811
- _WebRequest.loadNeededPolyfills();
16812
- }
16813
- async getJson(urlArg, useCacheArg = false) {
16814
- await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16815
- const response = await this.request(urlArg, {
16816
- method: "GET",
16817
- useCache: useCacheArg
16818
- });
16819
- const responseText = await response.text();
16820
- const responseResult = dist_ts_exports24.parse(responseText);
16821
- return responseResult;
16822
- }
16823
- /**
16824
- * postJson
16825
- */
16826
- async postJson(urlArg, requestBody, useCacheArg = false) {
16827
- await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16828
- const response = await this.request(urlArg, {
16829
- method: "POST",
16830
- headers: {
16831
- "Content-Type": "application/json"
16832
- },
16833
- body: dist_ts_exports24.stringify(requestBody),
16834
- useCache: useCacheArg
16835
- });
16836
- const responseText = await response.text();
16837
- const responseResult = dist_ts_exports24.parse(responseText);
16838
- return responseResult;
16839
- }
16840
- /**
16841
- * put js
16842
- */
16843
- async putJson(urlArg, requestBody, useStoreAsFallback = false) {
16844
- await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16845
- const response = await this.request(urlArg, {
16846
- method: "PUT",
16847
- headers: {
16848
- "Content-Type": "application/json"
16849
- },
16850
- body: dist_ts_exports24.stringify(requestBody)
16851
- });
16852
- const responseText = await response.text();
16853
- const responseResult = dist_ts_exports24.parse(responseText);
16854
- return responseResult;
16855
- }
16856
- /**
16857
- * put js
16858
- */
16859
- async deleteJson(urlArg, useStoreAsFallback = false) {
16860
- await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16861
- const response = await this.request(urlArg, {
16862
- headers: {
16863
- "Content-Type": "application/json"
16864
- },
16865
- method: "GET"
16866
- });
16867
- const responseText = await response.text();
16868
- const responseResult = dist_ts_exports24.parse(responseText);
16869
- return responseResult;
16870
- }
16871
- async request(urlArg, optionsArg) {
16872
- optionsArg = {
16873
- timeoutMs: 6e4,
16874
- useCache: false,
16875
- ...optionsArg
16876
- };
16877
- const fetchObject = await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16878
- let controller;
16879
- if (optionsArg.timeoutMs) {
16880
- if (fetchObject.AbortController) {
16881
- controller = new fetchObject.AbortController();
16882
- dist_ts_exports21.delayFor(optionsArg.timeoutMs).then(() => {
16883
- controller.abort();
16884
- });
16885
- } else {
16886
- controller = {
16887
- signal: fetchObject.helixTimeout(optionsArg.timeoutMs)
16888
- };
16889
- }
16890
- }
16891
- let cachedResponseDeferred = dist_ts_exports17.defer();
16892
- let cacheUsed = false;
16893
- if (optionsArg.useCache && await this.cacheStore.check(urlArg)) {
16894
- const responseBuffer = await this.cacheStore.get(urlArg);
16895
- cachedResponseDeferred.resolve(new Response(responseBuffer, {}));
16896
- } else {
16897
- cachedResponseDeferred.resolve(null);
16898
- }
16899
- let response = await fetchObject.fetch(urlArg, {
16900
- signal: controller ? controller.signal : null,
16901
- method: optionsArg.method,
16902
- headers: {
16903
- ...optionsArg.headers || {}
16904
- },
16905
- body: optionsArg.body
16906
- }).catch(async (err) => {
16907
- if (optionsArg.useCache && await cachedResponseDeferred.promise) {
16908
- cacheUsed = true;
16909
- const cachedResponse = cachedResponseDeferred.promise;
16910
- return cachedResponse;
16911
- } else {
16912
- return err;
16913
- }
16914
- });
16915
- if (optionsArg.useCache && await cachedResponseDeferred.promise && response.status === 500) {
16916
- cacheUsed = true;
16917
- response = await cachedResponseDeferred.promise;
16918
- }
16919
- if (!cacheUsed && optionsArg.useCache && response.status < 300) {
16920
- const buffer = await response.clone().arrayBuffer();
16921
- await this.cacheStore.set(urlArg, buffer);
16922
- }
16923
- this.log(`${urlArg} answers with status: ${response.status}`);
16924
- return response;
16925
- }
16926
- /**
16927
- * a multi endpoint, fault tolerant request function
16928
- */
16929
- async requestMultiEndpoint(urlArg, optionsArg) {
16930
- await _WebRequest.neededPolyfillsLoadedDeferred.promise;
16931
- let allUrls;
16932
- let usedUrlIndex = 0;
16933
- if (Array.isArray(urlArg)) {
16934
- allUrls = urlArg;
16935
- } else {
16936
- allUrls = [urlArg];
16937
- }
16938
- const requestHistory = [];
16939
- const doHistoryCheck = async (historyEntryTypeArg) => {
16940
- requestHistory.push(historyEntryTypeArg);
16941
- if (historyEntryTypeArg === "429") {
16942
- console.log("got 429, so waiting a little bit.");
16943
- await dist_ts_exports21.delayFor(Math.floor(Math.random() * (2e3 - 1e3 + 1)) + 1e3);
16944
- }
16945
- let numOfHistoryType = 0;
16946
- for (const entry of requestHistory) {
16947
- if (entry === historyEntryTypeArg)
16948
- numOfHistoryType++;
16949
- }
16950
- if (numOfHistoryType > 2 * allUrls.length * usedUrlIndex) {
16951
- usedUrlIndex++;
16952
- }
16953
- };
16954
- const doRequest = async (urlToUse) => {
16955
- if (!urlToUse) {
16956
- throw new Error("request failed permanently");
16957
- }
16958
- this.log(`Getting ${urlToUse} with method ${optionsArg.method}`);
16959
- const response = await fetch(urlToUse, {
16960
- method: optionsArg.method,
16961
- headers: {
16962
- "Content-Type": "application/json",
16963
- ...optionsArg.headers || {}
16964
- },
16965
- body: optionsArg.body
16966
- });
16967
- this.log(`${urlToUse} answers with status: ${response.status}`);
16968
- if (response.status >= 200 && response.status < 300) {
16969
- return response;
16970
- } else {
16971
- await doHistoryCheck(response.status.toString());
16972
- const result = await doRequest(allUrls[usedUrlIndex]);
16973
- return result;
16974
- }
16975
- };
16976
- const finalResponse = await doRequest(allUrls[usedUrlIndex]);
16977
- return finalResponse;
16978
- }
16979
- log(logArg) {
16980
- if (this.options.logging) {
16981
- console.log(logArg);
16982
- }
16983
- }
16984
- };
16985
- _WebRequest.polyfillStatusEvaluated = false;
16986
- _WebRequest.neededPolyfillsLoadedDeferred = dist_ts_exports17.defer();
16987
- var WebRequest2 = _WebRequest;
16988
-
16989
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.classes.typedresponseerror.js
16990
- var TypedResponseError2 = class {
16991
- constructor(errorTextArg, errorDataArg) {
16992
- this.errorText = errorTextArg;
16993
- this.errorData = errorDataArg;
16994
- }
16995
- };
16996
-
16997
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.classes.typedhandler.js
16998
- var TypedHandler2 = class {
16999
- constructor(methodArg, handlerFunctionArg) {
17000
- this.method = methodArg;
17001
- this.handlerFunction = handlerFunctionArg;
17002
- }
17003
- /**
17004
- * adds a response to the typedRequest
17005
- * @param typedRequestArg
17006
- */
17007
- async addResponse(typedRequestArg) {
17008
- if (typedRequestArg.method !== this.method) {
17009
- throw new Error("this handler has been given a wrong method to answer to. Please use a TypedRouter to filter requests");
17010
- }
17011
- let typedResponseError;
17012
- const response = await this.handlerFunction(typedRequestArg.request).catch((e4) => {
17013
- if (e4 instanceof TypedResponseError2) {
17014
- typedResponseError = e4;
17015
- } else {
17016
- console.log(e4);
17017
- }
17018
- });
17019
- if (typedResponseError) {
17020
- typedRequestArg.error = {
17021
- text: typedResponseError.errorText,
17022
- data: typedResponseError.errorData
17023
- };
17024
- }
17025
- if (response) {
17026
- typedRequestArg.response = response;
17027
- }
17028
- typedRequestArg?.correlation?.phase ? typedRequestArg.correlation.phase = "response" : null;
17029
- return typedRequestArg;
17030
- }
17031
- };
17032
-
17033
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.classes.typedrouter.js
17034
- var TypedRouter2 = class {
17035
- constructor() {
17036
- this.routerMap = new dist_ts_exports19.ObjectMap();
17037
- this.handlerMap = new dist_ts_exports19.ObjectMap();
17038
- this.fireEventInterestMap = new dist_ts_exports19.InterestMap((correlationId) => correlationId);
17039
- }
17040
- /**
17041
- * adds the handler to the routing map
17042
- * @param typedHandlerArg
17043
- */
17044
- addTypedHandler(typedHandlerArg) {
17045
- const existingTypedHandler = this.getTypedHandlerForMethod(typedHandlerArg.method);
17046
- if (existingTypedHandler) {
17047
- throw new Error(`a TypedHandler for ${typedHandlerArg.method} alredy exists! Can't add another one.`);
17048
- }
17049
- this.handlerMap.add(typedHandlerArg);
17050
- }
17051
- /**
17052
- * adds another sub typedRouter
17053
- * @param typedRequest
17054
- */
17055
- addTypedRouter(typedRouterArg) {
17056
- const routerExists = this.routerMap.findSync((routerArg) => routerArg === typedRouterArg);
17057
- if (!routerExists) {
17058
- this.routerMap.add(typedRouterArg);
17059
- typedRouterArg.addTypedRouter(this);
17060
- }
17061
- }
17062
- checkForTypedHandler(methodArg) {
17063
- return !!this.getTypedHandlerForMethod(methodArg);
17064
- }
17065
- /**
17066
- * gets a typed Router from the router chain, upstream and downstream
17067
- * @param methodArg
17068
- * @param checkUpstreamRouter
17069
- */
17070
- getTypedHandlerForMethod(methodArg, checkedRouters = []) {
17071
- checkedRouters.push(this);
17072
- let typedHandler;
17073
- typedHandler = this.handlerMap.findSync((handler) => {
17074
- return handler.method === methodArg;
17075
- });
17076
- if (!typedHandler) {
17077
- this.routerMap.getArray().forEach((typedRouterArg) => {
17078
- if (!typedHandler && !checkedRouters.includes(typedRouterArg)) {
17079
- typedHandler = typedRouterArg.getTypedHandlerForMethod(methodArg, checkedRouters);
17080
- }
17081
- });
17082
- }
17083
- return typedHandler;
17084
- }
17085
- /**
17086
- * if typedrequest object has correlation.phase === 'request' -> routes a typed request object to a handler
17087
- * if typedrequest object has correlation.phase === 'response' -> routes a typed request object to request fire event
17088
- * @param typedRequestArg
17089
- */
17090
- async routeAndAddResponse(typedRequestArg, localRequestArg = false) {
17091
- if (typedRequestArg?.correlation?.phase === "request" || localRequestArg) {
17092
- const typedHandler = this.getTypedHandlerForMethod(typedRequestArg.method);
17093
- if (!typedHandler) {
17094
- console.log(`Cannot find handler for methodname ${typedRequestArg.method}`);
17095
- typedRequestArg.error = {
17096
- text: "There is no available method for this call on the server side",
17097
- data: {}
17098
- };
17099
- typedRequestArg.correlation.phase = "response";
17100
- return typedRequestArg;
17101
- }
17102
- typedRequestArg = await typedHandler.addResponse(typedRequestArg);
17103
- return typedRequestArg;
17104
- } else if (typedRequestArg?.correlation?.phase === "response") {
17105
- this.fireEventInterestMap.findInterest(typedRequestArg.correlation.id)?.fullfillInterest(typedRequestArg);
17106
- return null;
17107
- } else {
17108
- console.log("received weirdly shaped request");
17109
- console.log(typedRequestArg);
17110
- return null;
17111
- }
17112
- }
17113
- };
17114
-
17115
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.classes.typedtarget.js
17116
- var TypedTarget2 = class {
17117
- constructor(optionsArg) {
17118
- if (optionsArg.postMethodWithTypedRouter && !optionsArg.typedRouterRef) {
17119
- throw new Error("you have to specify a typedrouter when using postmethod with typedrouter");
17120
- }
17121
- this.options = optionsArg;
17122
- }
17123
- async post(payloadArg) {
17124
- let responseInterest;
17125
- if (this.options.typedRouterRef) {
17126
- responseInterest = await this.options.typedRouterRef.fireEventInterestMap.addInterest(payloadArg.correlation.id, payloadArg);
17127
- }
17128
- const postMethod = this.options.postMethod || this.options.postMethodWithTypedRouter;
17129
- const postMethodReturnValue = await postMethod(payloadArg);
17130
- let responseBody;
17131
- if (responseInterest) {
17132
- responseBody = await responseInterest.interestFullfilled;
17133
- } else if (postMethodReturnValue) {
17134
- responseBody = postMethodReturnValue;
17135
- } else {
17136
- responseBody = payloadArg;
17137
- }
17138
- return responseBody;
17139
- }
17140
- };
17141
-
17142
- // node_modules/.pnpm/@apiglobal+typedrequest@2.0.12/node_modules/@apiglobal/typedrequest/dist_ts/typedrequest.classes.typedrequest.js
17143
- var webrequestInstance2 = new dist_ts_exports26.WebRequest();
17144
- var TypedRequest2 = class {
17145
- /**
17146
- * note the overloading is thought to deal with promises
17147
- * @param postEndPointArg
17148
- * @param methodArg
17149
- */
17150
- constructor(postTarget, methodArg) {
17151
- if (typeof postTarget === "string") {
17152
- this.urlEndPoint = postTarget;
17153
- } else {
17154
- this.typedTarget = postTarget;
17155
- }
17156
- this.method = methodArg;
17157
- }
17158
- /**
17159
- * fires the request
17160
- */
17161
- async fire(fireArg, useCacheArg = false) {
17162
- const payload = {
17163
- method: this.method,
17164
- request: fireArg,
17165
- response: null,
17166
- correlation: {
17167
- id: isounique4.uni(),
17168
- phase: "request"
17169
- }
17170
- };
17171
- let responseBody;
17172
- if (this.urlEndPoint) {
17173
- const response = await webrequestInstance2.postJson(this.urlEndPoint, payload, useCacheArg);
17174
- responseBody = response;
17175
- } else {
17176
- responseBody = await this.typedTarget.post(payload);
17177
- }
17178
- if (responseBody.error) {
17179
- console.error(`Got an error ${responseBody.error.text} with data ${JSON.stringify(responseBody.error.data)}`);
17180
- if (!responseBody.retry) {
17181
- throw new TypedResponseError2(responseBody.error.text, responseBody.error.data);
17182
- }
17183
- return null;
17184
- }
17185
- if (responseBody.retry) {
17186
- console.log(`server requested retry for the following reason: ${responseBody.retry.reason}`);
17187
- await smartdelay3.delayFor(responseBody.retry.waitForMs);
17188
- return await this.fire(fireArg);
17189
- }
17190
- return responseBody.response;
17191
- }
17192
- };
17193
-
17194
- // node_modules/.pnpm/@push.rocks+smartrouter@1.0.16/node_modules/@push.rocks/smartrouter/dist_ts/index.js
17195
- var dist_ts_exports28 = {};
17196
- __export(dist_ts_exports28, {
17197
- SmartRouter: () => SmartRouter
17198
- });
17199
-
17200
- // node_modules/.pnpm/path-to-regexp@6.2.1/node_modules/path-to-regexp/dist.es2015/index.js
17201
- var dist_exports = {};
17202
- __export(dist_exports, {
17203
- compile: () => compile,
17204
- match: () => match,
17205
- parse: () => parse3,
17206
- pathToRegexp: () => pathToRegexp,
17207
- regexpToFunction: () => regexpToFunction,
17208
- tokensToFunction: () => tokensToFunction,
17209
- tokensToRegexp: () => tokensToRegexp
17210
- });
17211
- function lexer(str) {
17212
- var tokens = [];
17213
- var i3 = 0;
17214
- while (i3 < str.length) {
17215
- var char = str[i3];
17216
- if (char === "*" || char === "+" || char === "?") {
17217
- tokens.push({ type: "MODIFIER", index: i3, value: str[i3++] });
17218
- continue;
17219
- }
17220
- if (char === "\\") {
17221
- tokens.push({ type: "ESCAPED_CHAR", index: i3++, value: str[i3++] });
17222
- continue;
17223
- }
17224
- if (char === "{") {
17225
- tokens.push({ type: "OPEN", index: i3, value: str[i3++] });
17226
- continue;
17227
- }
17228
- if (char === "}") {
17229
- tokens.push({ type: "CLOSE", index: i3, value: str[i3++] });
17230
- continue;
17231
- }
17232
- if (char === ":") {
17233
- var name = "";
17234
- var j = i3 + 1;
17235
- while (j < str.length) {
17236
- var code = str.charCodeAt(j);
17237
- if (
17238
- // `0-9`
17239
- code >= 48 && code <= 57 || // `A-Z`
17240
- code >= 65 && code <= 90 || // `a-z`
17241
- code >= 97 && code <= 122 || // `_`
17242
- code === 95
17243
- ) {
17244
- name += str[j++];
17245
- continue;
17246
- }
17247
- break;
17248
- }
17249
- if (!name)
17250
- throw new TypeError("Missing parameter name at ".concat(i3));
17251
- tokens.push({ type: "NAME", index: i3, value: name });
17252
- i3 = j;
17253
- continue;
17254
- }
17255
- if (char === "(") {
17256
- var count = 1;
17257
- var pattern = "";
17258
- var j = i3 + 1;
17259
- if (str[j] === "?") {
17260
- throw new TypeError('Pattern cannot start with "?" at '.concat(j));
17261
- }
17262
- while (j < str.length) {
17263
- if (str[j] === "\\") {
17264
- pattern += str[j++] + str[j++];
17265
- continue;
17266
- }
17267
- if (str[j] === ")") {
17268
- count--;
17269
- if (count === 0) {
17270
- j++;
17271
- break;
17272
- }
17273
- } else if (str[j] === "(") {
17274
- count++;
17275
- if (str[j + 1] !== "?") {
17276
- throw new TypeError("Capturing groups are not allowed at ".concat(j));
17277
- }
17278
- }
17279
- pattern += str[j++];
14395
+ while (j < str.length) {
14396
+ if (str[j] === "\\") {
14397
+ pattern += str[j++] + str[j++];
14398
+ continue;
14399
+ }
14400
+ if (str[j] === ")") {
14401
+ count--;
14402
+ if (count === 0) {
14403
+ j++;
14404
+ break;
14405
+ }
14406
+ } else if (str[j] === "(") {
14407
+ count++;
14408
+ if (str[j + 1] !== "?") {
14409
+ throw new TypeError("Capturing groups are not allowed at ".concat(j));
14410
+ }
14411
+ }
14412
+ pattern += str[j++];
17280
14413
  }
17281
14414
  if (count)
17282
14415
  throw new TypeError("Unbalanced pattern at ".concat(i3));
@@ -17291,7 +14424,7 @@ function lexer(str) {
17291
14424
  tokens.push({ type: "END", index: i3, value: "" });
17292
14425
  return tokens;
17293
14426
  }
17294
- function parse3(str, options) {
14427
+ function parse2(str, options) {
17295
14428
  if (options === void 0) {
17296
14429
  options = {};
17297
14430
  }
@@ -17374,7 +14507,7 @@ function parse3(str, options) {
17374
14507
  return result;
17375
14508
  }
17376
14509
  function compile(str, options) {
17377
- return tokensToFunction(parse3(str, options), options);
14510
+ return tokensToFunction(parse2(str, options), options);
17378
14511
  }
17379
14512
  function tokensToFunction(tokens, options) {
17380
14513
  if (options === void 0) {
@@ -17502,7 +14635,7 @@ function arrayToRegexp(paths, keys, options) {
17502
14635
  return new RegExp("(?:".concat(parts.join("|"), ")"), flags(options));
17503
14636
  }
17504
14637
  function stringToRegexp(path, keys, options) {
17505
- return tokensToRegexp(parse3(path, options), keys, options);
14638
+ return tokensToRegexp(parse2(path, options), keys, options);
17506
14639
  }
17507
14640
  function tokensToRegexp(tokens, keys, options) {
17508
14641
  if (options === void 0) {
@@ -17571,100 +14704,231 @@ function pathToRegexp(path, keys, options) {
17571
14704
  var QueryParams = class {
17572
14705
  constructor() {
17573
14706
  }
17574
- getAllAsObject() {
17575
- const urlSearchParams = new URLSearchParams(window.location.search);
17576
- return Object.fromEntries(urlSearchParams.entries());
14707
+ getAllAsObject() {
14708
+ const urlSearchParams = new URLSearchParams(window.location.search);
14709
+ return Object.fromEntries(urlSearchParams.entries());
14710
+ }
14711
+ setQueryParam(queryKeyArg, queryContentArg, pushOrReplaceArg = "replace") {
14712
+ var queryParams = new URLSearchParams(window.location.search);
14713
+ queryParams.set(queryKeyArg, queryContentArg);
14714
+ pushOrReplaceArg === "push" ? history.pushState(null, null, "?" + queryParams.toString()) : history.replaceState(null, null, "?" + queryParams.toString());
14715
+ }
14716
+ deleteQueryParam(queryKeyArg, pushOrReplaceArg = "replace") {
14717
+ var queryParams = new URLSearchParams(window.location.search);
14718
+ queryParams.delete(queryKeyArg);
14719
+ pushOrReplaceArg === "push" ? history.pushState(null, null, "?" + queryParams.toString()) : history.replaceState(null, null, "?" + queryParams.toString());
14720
+ }
14721
+ getQueryParam(queryParamName) {
14722
+ const queryParams = this.getAllAsObject();
14723
+ return queryParams[queryParamName];
14724
+ }
14725
+ };
14726
+
14727
+ // node_modules/.pnpm/@push.rocks+smartrouter@1.0.16/node_modules/@push.rocks/smartrouter/dist_ts/smartrouter.classes.smartrouter.js
14728
+ var SmartRouter = class {
14729
+ /**
14730
+ * Creates an instance of Router.
14731
+ */
14732
+ constructor(optionsArg) {
14733
+ this.options = {
14734
+ debug: false
14735
+ };
14736
+ this.queryParams = new QueryParams();
14737
+ this.routes = [];
14738
+ this.options = {
14739
+ ...this.options,
14740
+ ...optionsArg
14741
+ };
14742
+ window.addEventListener("popstate", (popStateEventArg) => {
14743
+ popStateEventArg.preventDefault();
14744
+ this._handleRouteState();
14745
+ });
14746
+ }
14747
+ /**
14748
+ * Push route state to history stack
14749
+ */
14750
+ async pushUrl(url2 = "/", state = {}) {
14751
+ if (url2 !== window.location.pathname) {
14752
+ window.history.pushState(state, window.document.title, url2);
14753
+ } else {
14754
+ window.history.replaceState(state, window.document.title, url2);
14755
+ }
14756
+ await this._handleRouteState();
14757
+ }
14758
+ /**
14759
+ * Attach route with handler
14760
+ * @param {string|RegExp} routeArg
14761
+ * @param {function} handlerArg
14762
+ */
14763
+ on(routeArg, handlerArg) {
14764
+ this.routes.push({
14765
+ matchFunction: dist_exports.match(routeArg),
14766
+ handler: handlerArg
14767
+ });
14768
+ }
14769
+ /**
14770
+ * Apply routes handler to current route
14771
+ */
14772
+ async _handleRouteState() {
14773
+ const currentLocation = window.location.pathname;
14774
+ const wantedRoutes = this.routes.filter((routeArg) => {
14775
+ return !!routeArg.matchFunction(currentLocation);
14776
+ });
14777
+ for (const wantedRoute of wantedRoutes) {
14778
+ const routeResult = wantedRoute.matchFunction(currentLocation);
14779
+ wantedRoute.handler({
14780
+ ...routeResult.valueOf(),
14781
+ queryParams: this.queryParams.getAllAsObject()
14782
+ // TODO check wether entries is supported in typings
14783
+ });
14784
+ }
14785
+ }
14786
+ };
14787
+
14788
+ // node_modules/.pnpm/@push.rocks+smartstate@2.0.8/node_modules/@push.rocks/smartstate/dist_ts/index.js
14789
+ var dist_ts_exports19 = {};
14790
+ __export(dist_ts_exports19, {
14791
+ Smartstate: () => Smartstate,
14792
+ StateAction: () => StateAction,
14793
+ StatePart: () => StatePart
14794
+ });
14795
+
14796
+ // node_modules/.pnpm/@push.rocks+isohash@2.0.1/node_modules/@push.rocks/isohash/dist_ts/index.js
14797
+ var dist_ts_exports18 = {};
14798
+ __export(dist_ts_exports18, {
14799
+ sha256FromString: () => sha256FromString
14800
+ });
14801
+
14802
+ // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/index.js
14803
+ var dist_ts_exports17 = {};
14804
+ __export(dist_ts_exports17, {
14805
+ Smartenv: () => Smartenv2
14806
+ });
14807
+
14808
+ // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.plugins.js
14809
+ var smartpromise2 = __toESM(require_dist_ts2(), 1);
14810
+
14811
+ // node_modules/.pnpm/@pushrocks+smartenv@5.0.5/node_modules/@pushrocks/smartenv/dist_ts/smartenv.classes.smartenv.js
14812
+ var Smartenv2 = class {
14813
+ constructor() {
14814
+ this.loadedScripts = [];
14815
+ }
14816
+ async getEnvAwareModule(optionsArg) {
14817
+ if (this.isNode) {
14818
+ const moduleResult = await this.getSafeNodeModule(optionsArg.nodeModuleName);
14819
+ return moduleResult;
14820
+ } else if (this.isBrowser) {
14821
+ const moduleResult = await this.getSafeWebModule(optionsArg.webUrlArg, optionsArg.getFunction);
14822
+ return moduleResult;
14823
+ } else {
14824
+ console.error("platform for loading not supported by smartenv");
14825
+ }
14826
+ }
14827
+ async getSafeNodeModule(moduleNameArg) {
14828
+ if (!this.isNode) {
14829
+ console.error(`You tried to load a node module in a wrong context: ${moduleNameArg}`);
14830
+ return;
14831
+ }
14832
+ return new Function(`return import('${moduleNameArg}')`)();
14833
+ }
14834
+ async getSafeWebModule(urlArg, getFunctionArg) {
14835
+ if (!this.isBrowser) {
14836
+ console.error("You tried to load a web module in a wrong context");
14837
+ return;
14838
+ }
14839
+ if (this.loadedScripts.includes(urlArg)) {
14840
+ return getFunctionArg();
14841
+ } else {
14842
+ this.loadedScripts.push(urlArg);
14843
+ }
14844
+ const done = smartpromise2.defer();
14845
+ if (globalThis.importScripts) {
14846
+ globalThis.importScripts(urlArg);
14847
+ done.resolve();
14848
+ } else {
14849
+ const script = document.createElement("script");
14850
+ script.onload = () => {
14851
+ done.resolve();
14852
+ };
14853
+ script.src = urlArg;
14854
+ document.head.appendChild(script);
14855
+ }
14856
+ await done.promise;
14857
+ return getFunctionArg();
14858
+ }
14859
+ get runtimeEnv() {
14860
+ if (typeof process !== "undefined") {
14861
+ return "node";
14862
+ } else {
14863
+ return "browser";
14864
+ }
17577
14865
  }
17578
- setQueryParam(queryKeyArg, queryContentArg, pushOrReplaceArg = "replace") {
17579
- var queryParams = new URLSearchParams(window.location.search);
17580
- queryParams.set(queryKeyArg, queryContentArg);
17581
- pushOrReplaceArg === "push" ? history.pushState(null, null, "?" + queryParams.toString()) : history.replaceState(null, null, "?" + queryParams.toString());
14866
+ get isBrowser() {
14867
+ return !this.isNode;
17582
14868
  }
17583
- deleteQueryParam(queryKeyArg, pushOrReplaceArg = "replace") {
17584
- var queryParams = new URLSearchParams(window.location.search);
17585
- queryParams.delete(queryKeyArg);
17586
- pushOrReplaceArg === "push" ? history.pushState(null, null, "?" + queryParams.toString()) : history.replaceState(null, null, "?" + queryParams.toString());
14869
+ get userAgent() {
14870
+ if (this.isBrowser) {
14871
+ return navigator.userAgent;
14872
+ } else {
14873
+ return "undefined";
14874
+ }
17587
14875
  }
17588
- getQueryParam(queryParamName) {
17589
- const queryParams = this.getAllAsObject();
17590
- return queryParams[queryParamName];
14876
+ get isNode() {
14877
+ return this.runtimeEnv === "node";
17591
14878
  }
17592
- };
17593
-
17594
- // node_modules/.pnpm/@push.rocks+smartrouter@1.0.16/node_modules/@push.rocks/smartrouter/dist_ts/smartrouter.classes.smartrouter.js
17595
- var SmartRouter = class {
17596
- /**
17597
- * Creates an instance of Router.
17598
- */
17599
- constructor(optionsArg) {
17600
- this.options = {
17601
- debug: false
17602
- };
17603
- this.queryParams = new QueryParams();
17604
- this.routes = [];
17605
- this.options = {
17606
- ...this.options,
17607
- ...optionsArg
17608
- };
17609
- window.addEventListener("popstate", (popStateEventArg) => {
17610
- popStateEventArg.preventDefault();
17611
- this._handleRouteState();
17612
- });
14879
+ get nodeVersion() {
14880
+ return process.version;
17613
14881
  }
17614
- /**
17615
- * Push route state to history stack
17616
- */
17617
- async pushUrl(url3 = "/", state = {}) {
17618
- if (url3 !== window.location.pathname) {
17619
- window.history.pushState(state, window.document.title, url3);
14882
+ get isCI() {
14883
+ if (this.isNode) {
14884
+ if (process.env.CI) {
14885
+ return true;
14886
+ } else {
14887
+ return false;
14888
+ }
17620
14889
  } else {
17621
- window.history.replaceState(state, window.document.title, url3);
14890
+ return false;
17622
14891
  }
17623
- await this._handleRouteState();
17624
14892
  }
17625
- /**
17626
- * Attach route with handler
17627
- * @param {string|RegExp} routeArg
17628
- * @param {function} handlerArg
17629
- */
17630
- on(routeArg, handlerArg) {
17631
- this.routes.push({
17632
- matchFunction: dist_exports.match(routeArg),
17633
- handler: handlerArg
17634
- });
14893
+ async isMacAsync() {
14894
+ if (this.isNode) {
14895
+ const os = await this.getSafeNodeModule("os");
14896
+ return os.platform() === "darwin";
14897
+ } else {
14898
+ return false;
14899
+ }
14900
+ }
14901
+ async isWindowsAsync() {
14902
+ if (this.isNode) {
14903
+ const os = await this.getSafeNodeModule("os");
14904
+ return os.platform() === "win32";
14905
+ } else {
14906
+ return false;
14907
+ }
14908
+ }
14909
+ async isLinuxAsync() {
14910
+ if (this.isNode) {
14911
+ const os = await this.getSafeNodeModule("os");
14912
+ return os.platform() === "linux";
14913
+ } else {
14914
+ return false;
14915
+ }
17635
14916
  }
17636
14917
  /**
17637
- * Apply routes handler to current route
14918
+ * prints the environment to console
17638
14919
  */
17639
- async _handleRouteState() {
17640
- const currentLocation = window.location.pathname;
17641
- const wantedRoutes = this.routes.filter((routeArg) => {
17642
- return !!routeArg.matchFunction(currentLocation);
17643
- });
17644
- for (const wantedRoute of wantedRoutes) {
17645
- const routeResult = wantedRoute.matchFunction(currentLocation);
17646
- wantedRoute.handler({
17647
- ...routeResult.valueOf(),
17648
- queryParams: this.queryParams.getAllAsObject()
17649
- // TODO check wether entries is supported in typings
17650
- });
14920
+ async printEnv() {
14921
+ if (this.isNode) {
14922
+ console.log("running on NODE");
14923
+ console.log("node version is " + this.nodeVersion);
14924
+ } else {
14925
+ console.log("running on BROWSER");
14926
+ console.log("browser is " + this.userAgent);
17651
14927
  }
17652
14928
  }
17653
14929
  };
17654
14930
 
17655
- // node_modules/.pnpm/@push.rocks+smartstate@2.0.8/node_modules/@push.rocks/smartstate/dist_ts/index.js
17656
- var dist_ts_exports30 = {};
17657
- __export(dist_ts_exports30, {
17658
- Smartstate: () => Smartstate,
17659
- StateAction: () => StateAction,
17660
- StatePart: () => StatePart
17661
- });
17662
-
17663
14931
  // node_modules/.pnpm/@push.rocks+isohash@2.0.1/node_modules/@push.rocks/isohash/dist_ts/index.js
17664
- var dist_ts_exports29 = {};
17665
- __export(dist_ts_exports29, {
17666
- sha256FromString: () => sha256FromString
17667
- });
17668
14932
  var hex = (buffer) => {
17669
14933
  const hexCodes = [];
17670
14934
  const view = new DataView(buffer);
@@ -17678,7 +14942,7 @@ var hex = (buffer) => {
17678
14942
  return hexCodes.join("");
17679
14943
  };
17680
14944
  var sha256FromString = async (stringArg) => {
17681
- const smartenv = new dist_ts_exports22.Smartenv();
14945
+ const smartenv = new dist_ts_exports17.Smartenv();
17682
14946
  if (smartenv.isBrowser) {
17683
14947
  const buffer = new TextEncoder().encode(stringArg);
17684
14948
  const hash = await crypto.subtle.digest("SHA-256", buffer);
@@ -17728,7 +14992,7 @@ var StatePart = class {
17728
14992
  */
17729
14993
  notifyChange() {
17730
14994
  const createStateHash = (stateArg) => {
17731
- return dist_ts_exports29.sha256FromString(dist_ts_exports9.stringify(stateArg));
14995
+ return dist_ts_exports18.sha256FromString(dist_ts_exports9.stringify(stateArg));
17732
14996
  };
17733
14997
  if (this.stateStore && this.lastStateNotificationPayloadHash && createStateHash(this.stateStore) === this.lastStateNotificationPayloadHash) {
17734
14998
  return;
@@ -17839,8 +15103,8 @@ var Smartstate = class {
17839
15103
  };
17840
15104
 
17841
15105
  // node_modules/.pnpm/@push.rocks+smarturl@3.0.7/node_modules/@push.rocks/smarturl/dist_ts/index.js
17842
- var dist_ts_exports31 = {};
17843
- __export(dist_ts_exports31, {
15106
+ var dist_ts_exports20 = {};
15107
+ __export(dist_ts_exports20, {
17844
15108
  Smarturl: () => Smarturl
17845
15109
  });
17846
15110
 
@@ -17925,6 +15189,130 @@ var Smarturl = class _Smarturl {
17925
15189
  }
17926
15190
  };
17927
15191
 
15192
+ // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
15193
+ var dist_ts_exports21 = {};
15194
+ __export(dist_ts_exports21, {
15195
+ CumulativeDeferred: () => CumulativeDeferred2,
15196
+ Deferred: () => Deferred2,
15197
+ cumulativeDefer: () => cumulativeDefer2,
15198
+ defer: () => defer2,
15199
+ getFirstTrueOrFalse: () => getFirstTrueOrFalse2,
15200
+ map: () => map3,
15201
+ rejectedPromise: () => rejectedPromise2,
15202
+ resolvedPromise: () => resolvedPromise2,
15203
+ timeoutAndContinue: () => timeoutAndContinue2,
15204
+ timeoutWrap: () => timeoutWrap2
15205
+ });
15206
+
15207
+ // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.deferred.js
15208
+ var Deferred2 = class {
15209
+ claim() {
15210
+ if (this.claimed) {
15211
+ throw new Error("Deferred already claimed");
15212
+ }
15213
+ this.claimed = true;
15214
+ }
15215
+ get duration() {
15216
+ if (this.stoppedAt) {
15217
+ return this.stoppedAt - this.startedAt;
15218
+ } else {
15219
+ return Date.now() - this.startedAt;
15220
+ }
15221
+ }
15222
+ constructor() {
15223
+ this.claimed = false;
15224
+ this.promise = new Promise((resolve, reject) => {
15225
+ this.resolve = (valueArg) => {
15226
+ this.status = "fulfilled";
15227
+ this.stoppedAt = Date.now();
15228
+ resolve(valueArg);
15229
+ };
15230
+ this.reject = (reason) => {
15231
+ this.status = "rejected";
15232
+ this.stoppedAt = Date.now();
15233
+ reject(reason);
15234
+ };
15235
+ this.startedAt = Date.now();
15236
+ this.status = "pending";
15237
+ });
15238
+ }
15239
+ };
15240
+ var defer2 = () => {
15241
+ return new Deferred2();
15242
+ };
15243
+
15244
+ // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/smartpromise.classes.cumulativedeferred.js
15245
+ var CumulativeDeferred2 = class {
15246
+ constructor() {
15247
+ this.accumulatedPromises = [];
15248
+ this.deferred = defer2();
15249
+ this.promise = this.deferred.promise;
15250
+ setTimeout(async () => {
15251
+ while (this.accumulatedPromises.length > 0) {
15252
+ const poppedPromise = this.accumulatedPromises.shift();
15253
+ await poppedPromise;
15254
+ }
15255
+ this.deferred.resolve();
15256
+ }, 0);
15257
+ }
15258
+ addPromise(promiseArg) {
15259
+ this.accumulatedPromises.push(promiseArg);
15260
+ }
15261
+ };
15262
+ var cumulativeDefer2 = () => {
15263
+ return new CumulativeDeferred2();
15264
+ };
15265
+
15266
+ // node_modules/.pnpm/@pushrocks+smartpromise@4.0.2/node_modules/@pushrocks/smartpromise/dist_ts/index.js
15267
+ var resolvedPromise2 = (value) => {
15268
+ return Promise.resolve(value);
15269
+ };
15270
+ var rejectedPromise2 = (err) => {
15271
+ return Promise.reject(err);
15272
+ };
15273
+ var map3 = async (inputArg, functionArg) => {
15274
+ const promiseArray = [];
15275
+ const resultArray = [];
15276
+ for (const item of inputArg) {
15277
+ const promise = functionArg(item);
15278
+ promiseArray.push(promise);
15279
+ promise.then((x2) => {
15280
+ resultArray.push(x2);
15281
+ });
15282
+ }
15283
+ await Promise.all(promiseArray);
15284
+ return resultArray;
15285
+ };
15286
+ var timeoutWrap2 = async (promiseArg, timeoutInMsArg, rejectArg = true) => {
15287
+ return new Promise((resolve, reject) => {
15288
+ setTimeout(() => {
15289
+ if (rejectArg) {
15290
+ reject(new Error("timeout"));
15291
+ } else {
15292
+ resolve(null);
15293
+ }
15294
+ }, timeoutInMsArg);
15295
+ promiseArg.then(resolve, reject);
15296
+ });
15297
+ };
15298
+ var timeoutAndContinue2 = async (promiseArg, timeoutInMsArg = 6e4) => {
15299
+ return timeoutWrap2(promiseArg, timeoutInMsArg, false);
15300
+ };
15301
+ var getFirstTrueOrFalse2 = async (promisesArg) => {
15302
+ const done = defer2();
15303
+ for (const promiseArg of promisesArg) {
15304
+ promiseArg.then((resultArg) => {
15305
+ if (resultArg === true) {
15306
+ done.resolve(true);
15307
+ }
15308
+ });
15309
+ }
15310
+ Promise.all(promisesArg).then(() => {
15311
+ done.resolve(false);
15312
+ });
15313
+ return done.promise;
15314
+ };
15315
+
17928
15316
  // node_modules/.pnpm/@push.rocks+websetup@3.0.19/node_modules/@push.rocks/websetup/dist_ts/websetup.classes.tag.js
17929
15317
  var Tag = class {
17930
15318
  appendToDom() {
@@ -18196,8 +15584,8 @@ var TagManager = class {
18196
15584
  var WebSetup = class {
18197
15585
  constructor(optionsArg) {
18198
15586
  this.tagManager = new TagManager();
18199
- this.readyDeferred = dist_ts_exports17.defer();
18200
- this.readyForSmartssrDeferred = dist_ts_exports17.defer();
15587
+ this.readyDeferred = dist_ts_exports21.defer();
15588
+ this.readyForSmartssrDeferred = dist_ts_exports21.defer();
18201
15589
  this.readyPromise = this.readyDeferred.promise;
18202
15590
  this.readyForSmartssrPromise = this.readyForSmartssrDeferred.promise;
18203
15591
  this.options = optionsArg;
@@ -18501,19 +15889,19 @@ var DomTools2 = class _DomTools {
18501
15889
  title: "loading..."
18502
15890
  }
18503
15891
  });
18504
- this.smartstate = new dist_ts_exports30.Smartstate();
15892
+ this.smartstate = new dist_ts_exports19.Smartstate();
18505
15893
  this.domToolsStatePart = this.smartstate.getStatePart("domtools", {
18506
15894
  virtualViewport: "native",
18507
15895
  jwt: null
18508
15896
  });
18509
- this.router = new dist_ts_exports28.SmartRouter({
15897
+ this.router = new dist_ts_exports16.SmartRouter({
18510
15898
  debug: false
18511
15899
  });
18512
15900
  this.convenience = {
18513
- typedrequest: dist_ts_exports27,
15901
+ typedrequest: dist_ts_exports14,
18514
15902
  smartdelay: dist_ts_exports2,
18515
15903
  smartjson: dist_ts_exports9,
18516
- smarturl: dist_ts_exports31
15904
+ smarturl: dist_ts_exports20
18517
15905
  };
18518
15906
  this.deesComms = new dist_ts_exports15.DeesComms();
18519
15907
  this.scroller = new import_sweet_scroll.default({
@@ -19386,11 +16774,13 @@ var plugins3 = {
19386
16774
  smartdelay: dist_ts_exports2,
19387
16775
  smartpromise: dist_ts_exports,
19388
16776
  SweetScroll: import_sweet_scroll.default,
19389
- smartstate: dist_ts_exports30
16777
+ smartstate: dist_ts_exports19,
16778
+ smartrx: dist_ts_exports4,
16779
+ smarturl: dist_ts_exports20
19390
16780
  };
19391
16781
  export {
19392
16782
  DomTools2 as DomTools,
19393
- TypedRequest2 as TypedRequest,
16783
+ TypedRequest,
19394
16784
  domtools_css_breakpoints_exports as breakpoints,
19395
16785
  domtools_css_exports as css,
19396
16786
  domtools_elementbasic_exports as elementBasic,