@push.rocks/taskbuffer 3.1.3 → 3.1.5

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.
@@ -28,23 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
32
- var require_dist_ts = __commonJS({
33
- "node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) {
34
- "use strict";
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.uni = void 0;
37
- var uni2 = (prefix = "uni") => {
38
- return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
39
- const r = Math.random() * 16 | 0;
40
- const v = c === "x" ? r : r & 3 | 8;
41
- return v.toString(16);
42
- })}`;
43
- };
44
- exports.uni = uni2;
45
- }
46
- });
47
-
48
31
  // node_modules/.pnpm/dayjs@1.11.9/node_modules/dayjs/dayjs.min.js
49
32
  var require_dayjs_min = __commonJS({
50
33
  "node_modules/.pnpm/dayjs@1.11.9/node_modules/dayjs/dayjs.min.js"(exports, module) {
@@ -52,7 +35,7 @@ var require_dayjs_min = __commonJS({
52
35
  "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
53
36
  }(exports, function() {
54
37
  "use strict";
55
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
38
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f2 = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
56
39
  var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
57
40
  return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
58
41
  } }, m = function(t2, e2, n2) {
@@ -69,7 +52,7 @@ var require_dayjs_min = __commonJS({
69
52
  }, a: function(t2) {
70
53
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
71
54
  }, p: function(t2) {
72
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
55
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
73
56
  }, u: function(t2) {
74
57
  return void 0 === t2;
75
58
  } }, g = "en", D = {};
@@ -144,13 +127,13 @@ var require_dayjs_min = __commonJS({
144
127
  }, m2.valueOf = function() {
145
128
  return this.$d.getTime();
146
129
  }, m2.startOf = function(t2, e2) {
147
- var n2 = this, r2 = !!O.u(e2) || e2, f2 = O.p(t2), l2 = function(t3, e3) {
130
+ var n2 = this, r2 = !!O.u(e2) || e2, f3 = O.p(t2), l2 = function(t3, e3) {
148
131
  var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
149
132
  return r2 ? i2 : i2.endOf(a);
150
133
  }, $2 = function(t3, e3) {
151
134
  return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
152
135
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
153
- switch (f2) {
136
+ switch (f3) {
154
137
  case h:
155
138
  return r2 ? l2(1, 0) : l2(31, 11);
156
139
  case c:
@@ -173,7 +156,7 @@ var require_dayjs_min = __commonJS({
173
156
  }, m2.endOf = function(t2) {
174
157
  return this.startOf(t2, false);
175
158
  }, m2.$set = function(t2, e2) {
176
- var n2, o2 = O.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
159
+ var n2, o2 = O.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f3 + "Date", n2[d] = f3 + "Date", n2[c] = f3 + "Month", n2[h] = f3 + "FullYear", n2[u] = f3 + "Hours", n2[s] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
177
160
  if (o2 === c || o2 === h) {
178
161
  var y2 = this.clone().set(d, 1);
179
162
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
@@ -184,10 +167,10 @@ var require_dayjs_min = __commonJS({
184
167
  return this.clone().$set(t2, e2);
185
168
  }, m2.get = function(t2) {
186
169
  return this[O.p(t2)]();
187
- }, m2.add = function(r2, f2) {
170
+ }, m2.add = function(r2, f3) {
188
171
  var d2, l2 = this;
189
172
  r2 = Number(r2);
190
- var $2 = O.p(f2), y2 = function(t2) {
173
+ var $2 = O.p(f3), y2 = function(t2) {
191
174
  var e2 = w(l2);
192
175
  return O.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
193
176
  };
@@ -207,11 +190,11 @@ var require_dayjs_min = __commonJS({
207
190
  var e2 = this, n2 = this.$locale();
208
191
  if (!this.isValid())
209
192
  return n2.invalidDate || l;
210
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
193
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f3 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
211
194
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
212
195
  }, d2 = function(t3) {
213
196
  return O.s(s2 % 12 || 12, t3, "0");
214
- }, $2 = f2 || function(t3, e3, n3) {
197
+ }, $2 = f3 || function(t3, e3, n3) {
215
198
  var r3 = t3 < 12 ? "AM" : "PM";
216
199
  return n3 ? r3.toLowerCase() : r3;
217
200
  };
@@ -283,7 +266,7 @@ var require_dayjs_min = __commonJS({
283
266
  case c:
284
267
  $2 = D2();
285
268
  break;
286
- case f:
269
+ case f2:
287
270
  $2 = D2() / 3;
288
271
  break;
289
272
  case o:
@@ -1178,10 +1161,24 @@ var require_SymbolTree = __commonJS({
1178
1161
  }
1179
1162
  });
1180
1163
 
1181
- // ts/taskbuffer.plugins.ts
1182
- var isounique2 = __toESM(require_dist_ts(), 1);
1164
+ // node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js
1165
+ var require_dist_ts = __commonJS({
1166
+ "node_modules/.pnpm/@push.rocks+isounique@1.0.5/node_modules/@push.rocks/isounique/dist_ts/index.js"(exports) {
1167
+ "use strict";
1168
+ Object.defineProperty(exports, "__esModule", { value: true });
1169
+ exports.uni = void 0;
1170
+ var uni3 = (prefix = "uni") => {
1171
+ return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
1172
+ const r = Math.random() * 16 | 0;
1173
+ const v = c === "x" ? r : r & 3 | 8;
1174
+ return v.toString(16);
1175
+ })}`;
1176
+ };
1177
+ exports.uni = uni3;
1178
+ }
1179
+ });
1183
1180
 
1184
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/index.js
1181
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/index.js
1185
1182
  var dist_ts_exports5 = {};
1186
1183
  __export(dist_ts_exports5, {
1187
1184
  AsyncExecutionStack: () => AsyncExecutionStack,
@@ -1558,7 +1555,7 @@ function __generator(thisArg, body) {
1558
1555
  if (t[0] & 1)
1559
1556
  throw t[1];
1560
1557
  return t[1];
1561
- }, trys: [], ops: [] }, f, y, t, g;
1558
+ }, trys: [], ops: [] }, f2, y, t, g;
1562
1559
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
1563
1560
  return this;
1564
1561
  }), g;
@@ -1568,11 +1565,11 @@ function __generator(thisArg, body) {
1568
1565
  };
1569
1566
  }
1570
1567
  function step(op) {
1571
- if (f)
1568
+ if (f2)
1572
1569
  throw new TypeError("Generator is already executing.");
1573
1570
  while (g && (g = 0, op[0] && (_ = 0)), _)
1574
1571
  try {
1575
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
1572
+ if (f2 = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
1576
1573
  return t;
1577
1574
  if (y = 0, t)
1578
1575
  op = [op[0] & 2, t.value];
@@ -1622,7 +1619,7 @@ function __generator(thisArg, body) {
1622
1619
  op = [6, e];
1623
1620
  y = 0;
1624
1621
  } finally {
1625
- f = t = 0;
1622
+ f2 = t = 0;
1626
1623
  }
1627
1624
  if (op[0] & 5)
1628
1625
  throw op[1];
@@ -1709,8 +1706,8 @@ function __asyncGenerator(thisArg, _arguments, generator) {
1709
1706
  function reject(value) {
1710
1707
  resume("throw", value);
1711
1708
  }
1712
- function settle(f, v) {
1713
- if (f(v), q.shift(), q.length)
1709
+ function settle(f2, v) {
1710
+ if (f2(v), q.shift(), q.length)
1714
1711
  resume(q[0][0], q[0][1]);
1715
1712
  }
1716
1713
  }
@@ -3702,7 +3699,7 @@ var ObservableIntake = class {
3702
3699
  }
3703
3700
  };
3704
3701
 
3705
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/index.js
3702
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/index.js
3706
3703
  var dist_ts_exports6 = {};
3707
3704
  __export(dist_ts_exports6, {
3708
3705
  CronJob: () => CronJob,
@@ -4332,7 +4329,7 @@ Cron.prototype._next = function(prev) {
4332
4329
  Cron.Cron = Cron;
4333
4330
  Cron.scheduledJobs = scheduledJobs;
4334
4331
 
4335
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
4332
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
4336
4333
  var import_dayjs = __toESM(require_dayjs_min(), 1);
4337
4334
  var import_isToday = __toESM(require_isToday(), 1);
4338
4335
 
@@ -4438,10 +4435,10 @@ function prettyMilliseconds(milliseconds, options = {}) {
4438
4435
  return options.colonNotation ? result.join("") : result.join(" ");
4439
4436
  }
4440
4437
 
4441
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
4438
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.plugins.js
4442
4439
  import_dayjs.default.extend(import_isToday.default);
4443
4440
 
4444
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js
4441
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronjob.js
4445
4442
  var CronJob = class {
4446
4443
  constructor(cronManager, cronExpressionArg, jobFunction) {
4447
4444
  this.status = "initial";
@@ -4483,7 +4480,7 @@ var CronJob = class {
4483
4480
  }
4484
4481
  };
4485
4482
 
4486
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js
4483
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.units.js
4487
4484
  var units = {
4488
4485
  years: (timesArg = 1) => {
4489
4486
  return timesArg * 3154e7;
@@ -4502,6 +4499,9 @@ var units = {
4502
4499
  },
4503
4500
  minutes: (timesArg = 1) => {
4504
4501
  return timesArg * 6e4;
4502
+ },
4503
+ seconds: (timesArg = 1) => {
4504
+ return timesArg * 1e3;
4505
4505
  }
4506
4506
  };
4507
4507
  var getMilliSecondsFromUnits = (combinationArg) => {
@@ -4527,13 +4527,16 @@ var getMilliSecondsFromUnits = (combinationArg) => {
4527
4527
  if (combinationArg.minutes) {
4528
4528
  addMilliSeconds(units.minutes(combinationArg.minutes));
4529
4529
  }
4530
+ if (combinationArg.seconds) {
4531
+ addMilliSeconds(units.seconds(combinationArg.seconds));
4532
+ }
4530
4533
  return timeInMilliseconds;
4531
4534
  };
4532
4535
  var getMilliSecondsAsHumanReadableString = (milliSecondsArg) => {
4533
4536
  return prettyMilliseconds(milliSecondsArg);
4534
4537
  };
4535
4538
 
4536
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
4539
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.cronmanager.js
4537
4540
  var CronManager = class {
4538
4541
  constructor() {
4539
4542
  this.status = "stopped";
@@ -4599,7 +4602,7 @@ var CronManager = class {
4599
4602
  }
4600
4603
  };
4601
4604
 
4602
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
4605
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.extendeddate.js
4603
4606
  var ExtendedDate = class extends Date {
4604
4607
  // STATIC factories
4605
4608
  static fromMillis(milliSeconds) {
@@ -4712,7 +4715,7 @@ var ExtendedDate = class extends Date {
4712
4715
  }
4713
4716
  };
4714
4717
 
4715
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
4718
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.hrtmeasurement.js
4716
4719
  var HrtMeasurement = class {
4717
4720
  constructor() {
4718
4721
  this.nanoSeconds = null;
@@ -4753,7 +4756,7 @@ var HrtMeasurement = class {
4753
4756
  }
4754
4757
  };
4755
4758
 
4756
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js
4759
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.interval.js
4757
4760
  var Interval = class {
4758
4761
  constructor(intervalMillisencondsArg) {
4759
4762
  this.status = "initial";
@@ -4787,7 +4790,7 @@ var Interval = class {
4787
4790
  }
4788
4791
  };
4789
4792
 
4790
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js
4793
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timestamp.js
4791
4794
  var TimeStamp = class {
4792
4795
  /**
4793
4796
  * returns new TimeStamp from milliseconds
@@ -4857,7 +4860,7 @@ var TimeStamp = class {
4857
4860
  }
4858
4861
  };
4859
4862
 
4860
- // node_modules/.pnpm/@push.rocks+smarttime@4.0.4/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js
4863
+ // node_modules/.pnpm/@push.rocks+smarttime@4.0.5/node_modules/@push.rocks/smarttime/dist_ts/smarttime.classes.timer.js
4861
4864
  var Timer = class {
4862
4865
  get timeLeft() {
4863
4866
  return this.timeInMilliseconds - this.pausedAt.change;
@@ -4904,13 +4907,14 @@ var Timer = class {
4904
4907
  }
4905
4908
  };
4906
4909
 
4907
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.plugins.js
4910
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.plugins.js
4908
4911
  var import_symbol_tree = __toESM(require_SymbolTree(), 1);
4909
4912
 
4910
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.asyncexecutionstack.js
4913
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.asyncexecutionstack.js
4911
4914
  var AsyncExecutionStack = class {
4912
4915
  constructor() {
4913
4916
  this.executionSlots = [];
4917
+ this.isProcessing = false;
4914
4918
  }
4915
4919
  async getExclusiveExecutionSlot(funcArg, timeoutArg) {
4916
4920
  const executionDeferred = dist_ts_exports.defer();
@@ -4937,45 +4941,67 @@ var AsyncExecutionStack = class {
4937
4941
  return executionDeferred.promise;
4938
4942
  }
4939
4943
  async processExecutionSlots() {
4940
- if (this.currentlyExecutingDeferred) {
4944
+ if (this.isProcessing) {
4941
4945
  return;
4942
4946
  }
4943
- this.currentlyExecutingDeferred = dist_ts_exports.defer();
4944
- let nonExclusiveRunningSlots = [];
4945
- const checkNonExclusiveRunningSlots = async (cleanArg = false) => {
4946
- if (nonExclusiveRunningSlots.length > 100 || cleanArg) {
4947
- await Promise.all(nonExclusiveRunningSlots.map((nonExclusiveRunningSlotArg) => nonExclusiveRunningSlotArg.executionDeferred.promise));
4948
- nonExclusiveRunningSlots = [];
4949
- }
4950
- };
4947
+ this.isProcessing = true;
4951
4948
  while (this.executionSlots.length > 0) {
4952
- const nextExecutionSlot = this.executionSlots.shift();
4953
- const runNextExecution = async () => {
4954
- if (nextExecutionSlot.timeout) {
4949
+ const currentSlot = this.executionSlots[0];
4950
+ if (currentSlot.mode === "exclusive") {
4951
+ await this.executeExclusiveSlot(currentSlot);
4952
+ this.executionSlots.shift();
4953
+ } else {
4954
+ const nonExclusiveSlots = [];
4955
+ while (this.executionSlots.length > 0 && this.executionSlots[0].mode === "nonexclusive") {
4956
+ nonExclusiveSlots.push(this.executionSlots.shift());
4957
+ }
4958
+ await this.executeNonExclusiveSlots(nonExclusiveSlots);
4959
+ }
4960
+ }
4961
+ this.isProcessing = false;
4962
+ }
4963
+ async executeExclusiveSlot(slot) {
4964
+ try {
4965
+ if (slot.timeout) {
4966
+ const result = await Promise.race([
4967
+ slot.funcToExecute(),
4968
+ dist_ts_exports2.delayFor(slot.timeout).then(() => {
4969
+ throw new Error("Timeout reached");
4970
+ })
4971
+ ]);
4972
+ slot.executionDeferred.resolve(result);
4973
+ } else {
4974
+ const result = await slot.funcToExecute();
4975
+ slot.executionDeferred.resolve(result);
4976
+ }
4977
+ } catch (error) {
4978
+ slot.executionDeferred.reject(error);
4979
+ }
4980
+ }
4981
+ async executeNonExclusiveSlots(slots) {
4982
+ const promises = slots.map(async (slot) => {
4983
+ try {
4984
+ if (slot.timeout) {
4955
4985
  const result = await Promise.race([
4956
- nextExecutionSlot.funcToExecute(),
4957
- dist_ts_exports2.delayFor(nextExecutionSlot.timeout)
4986
+ slot.funcToExecute(),
4987
+ dist_ts_exports2.delayFor(slot.timeout).then(() => {
4988
+ throw new Error("Timeout reached");
4989
+ })
4958
4990
  ]);
4959
- nextExecutionSlot.executionDeferred.resolve(result);
4991
+ slot.executionDeferred.resolve(result);
4960
4992
  } else {
4961
- nextExecutionSlot.executionDeferred.resolve(await nextExecutionSlot.funcToExecute());
4993
+ const result = await slot.funcToExecute();
4994
+ slot.executionDeferred.resolve(result);
4962
4995
  }
4963
- };
4964
- if (nextExecutionSlot.mode === "exclusive") {
4965
- await checkNonExclusiveRunningSlots(true);
4966
- await runNextExecution();
4967
- } else {
4968
- nonExclusiveRunningSlots.push(nextExecutionSlot);
4969
- await checkNonExclusiveRunningSlots(false);
4970
- runNextExecution();
4996
+ } catch (error) {
4997
+ slot.executionDeferred.reject(error);
4971
4998
  }
4972
- }
4973
- this.currentlyExecutingDeferred.resolve();
4974
- this.currentlyExecutingDeferred = null;
4999
+ });
5000
+ await Promise.all(promises);
4975
5001
  }
4976
5002
  };
4977
5003
 
4978
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.fastmap.js
5004
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.fastmap.js
4979
5005
  var FastMap = class {
4980
5006
  constructor() {
4981
5007
  this.mapObject = {};
@@ -5049,7 +5075,7 @@ var FastMap = class {
5049
5075
  }
5050
5076
  };
5051
5077
 
5052
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.objectmap.js
5078
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.objectmap.js
5053
5079
  var uni = (prefix = "uni") => {
5054
5080
  return `${prefix}xxxxxxxxxxx`.replace(/[xy]/g, (c) => {
5055
5081
  const r = Math.random() * 16 | 0;
@@ -5248,7 +5274,7 @@ var ObjectMap = class {
5248
5274
  }
5249
5275
  };
5250
5276
 
5251
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.interest.js
5277
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.interest.js
5252
5278
  var Interest = class {
5253
5279
  /**
5254
5280
  * quick access to a string that makes the interest comparable for checking for similar interests
@@ -5310,7 +5336,7 @@ var Interest = class {
5310
5336
  }
5311
5337
  };
5312
5338
 
5313
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.js
5339
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.interestmap.js
5314
5340
  var InterestMap = class {
5315
5341
  constructor(comparisonFuncArg, optionsArg = {}) {
5316
5342
  this.interestObjectMap = new ObjectMap();
@@ -5397,7 +5423,7 @@ var InterestMap = class {
5397
5423
  }
5398
5424
  };
5399
5425
 
5400
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.limitedarray.js
5426
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.limitedarray.js
5401
5427
  var LimitedArray = class {
5402
5428
  constructor(limitArg) {
5403
5429
  this.array = [];
@@ -5434,7 +5460,7 @@ var LimitedArray = class {
5434
5460
  }
5435
5461
  };
5436
5462
 
5437
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.looptracker.js
5463
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.looptracker.js
5438
5464
  var LoopTracker = class {
5439
5465
  constructor() {
5440
5466
  this.referenceObjectMap = new ObjectMap();
@@ -5453,7 +5479,7 @@ var LoopTracker = class {
5453
5479
  }
5454
5480
  };
5455
5481
 
5456
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.stringmap.js
5482
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.stringmap.js
5457
5483
  var Stringmap = class {
5458
5484
  constructor() {
5459
5485
  this._stringArray = [];
@@ -5557,7 +5583,7 @@ var Stringmap = class {
5557
5583
  }
5558
5584
  };
5559
5585
 
5560
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.timedaggregator.js
5586
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.timedaggregator.js
5561
5587
  var TimedAggregtor = class {
5562
5588
  constructor(optionsArg) {
5563
5589
  this.storageArray = [];
@@ -5588,7 +5614,7 @@ var TimedAggregtor = class {
5588
5614
  }
5589
5615
  };
5590
5616
 
5591
- // node_modules/.pnpm/@push.rocks+lik@6.0.3/node_modules/@push.rocks/lik/dist_ts/lik.tree.js
5617
+ // node_modules/.pnpm/@push.rocks+lik@6.0.5/node_modules/@push.rocks/lik/dist_ts/lik.tree.js
5592
5618
  var Tree = class {
5593
5619
  constructor() {
5594
5620
  this.symbolTree = new import_symbol_tree.default();
@@ -5861,6 +5887,525 @@ var LogGroup = class {
5861
5887
  }
5862
5888
  };
5863
5889
 
5890
+ // node_modules/.pnpm/@push.rocks+smartunique@3.0.6/node_modules/@push.rocks/smartunique/dist_ts/index.js
5891
+ var dist_ts_exports10 = {};
5892
+ __export(dist_ts_exports10, {
5893
+ shortId: () => shortId,
5894
+ uni: () => uni2,
5895
+ uuid4: () => uuid4,
5896
+ uuid5: () => uuid5
5897
+ });
5898
+
5899
+ // node_modules/.pnpm/nanoid@4.0.2/node_modules/nanoid/index.browser.js
5900
+ var index_browser_exports = {};
5901
+ __export(index_browser_exports, {
5902
+ customAlphabet: () => customAlphabet,
5903
+ customRandom: () => customRandom,
5904
+ nanoid: () => nanoid,
5905
+ random: () => random,
5906
+ urlAlphabet: () => urlAlphabet
5907
+ });
5908
+
5909
+ // node_modules/.pnpm/nanoid@4.0.2/node_modules/nanoid/url-alphabet/index.js
5910
+ var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
5911
+
5912
+ // node_modules/.pnpm/nanoid@4.0.2/node_modules/nanoid/index.browser.js
5913
+ var random = (bytes) => crypto.getRandomValues(new Uint8Array(bytes));
5914
+ var customRandom = (alphabet, defaultSize, getRandom) => {
5915
+ let mask = (2 << Math.log(alphabet.length - 1) / Math.LN2) - 1;
5916
+ let step = -~(1.6 * mask * defaultSize / alphabet.length);
5917
+ return (size = defaultSize) => {
5918
+ let id = "";
5919
+ while (true) {
5920
+ let bytes = getRandom(step);
5921
+ let j = step;
5922
+ while (j--) {
5923
+ id += alphabet[bytes[j] & mask] || "";
5924
+ if (id.length === size)
5925
+ return id;
5926
+ }
5927
+ }
5928
+ };
5929
+ };
5930
+ var customAlphabet = (alphabet, size = 21) => customRandom(alphabet, size, random);
5931
+ var nanoid = (size = 21) => crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
5932
+ byte &= 63;
5933
+ if (byte < 36) {
5934
+ id += byte.toString(36);
5935
+ } else if (byte < 62) {
5936
+ id += (byte - 26).toString(36).toUpperCase();
5937
+ } else if (byte > 62) {
5938
+ id += "-";
5939
+ } else {
5940
+ id += "_";
5941
+ }
5942
+ return id;
5943
+ }, "");
5944
+
5945
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/index.js
5946
+ var esm_browser_exports = {};
5947
+ __export(esm_browser_exports, {
5948
+ NIL: () => nil_default,
5949
+ parse: () => parse_default,
5950
+ stringify: () => stringify_default,
5951
+ v1: () => v1_default,
5952
+ v3: () => v3_default,
5953
+ v4: () => v4_default,
5954
+ v5: () => v5_default,
5955
+ validate: () => validate_default,
5956
+ version: () => version_default
5957
+ });
5958
+
5959
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/rng.js
5960
+ var getRandomValues;
5961
+ var rnds8 = new Uint8Array(16);
5962
+ function rng() {
5963
+ if (!getRandomValues) {
5964
+ getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
5965
+ if (!getRandomValues) {
5966
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5967
+ }
5968
+ }
5969
+ return getRandomValues(rnds8);
5970
+ }
5971
+
5972
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/regex.js
5973
+ var regex_default = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
5974
+
5975
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/validate.js
5976
+ function validate(uuid) {
5977
+ return typeof uuid === "string" && regex_default.test(uuid);
5978
+ }
5979
+ var validate_default = validate;
5980
+
5981
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/stringify.js
5982
+ var byteToHex = [];
5983
+ for (let i = 0; i < 256; ++i) {
5984
+ byteToHex.push((i + 256).toString(16).slice(1));
5985
+ }
5986
+ function unsafeStringify(arr, offset = 0) {
5987
+ return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
5988
+ }
5989
+ function stringify(arr, offset = 0) {
5990
+ const uuid = unsafeStringify(arr, offset);
5991
+ if (!validate_default(uuid)) {
5992
+ throw TypeError("Stringified UUID is invalid");
5993
+ }
5994
+ return uuid;
5995
+ }
5996
+ var stringify_default = stringify;
5997
+
5998
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v1.js
5999
+ var _nodeId;
6000
+ var _clockseq;
6001
+ var _lastMSecs = 0;
6002
+ var _lastNSecs = 0;
6003
+ function v1(options, buf, offset) {
6004
+ let i = buf && offset || 0;
6005
+ const b = buf || new Array(16);
6006
+ options = options || {};
6007
+ let node = options.node || _nodeId;
6008
+ let clockseq = options.clockseq !== void 0 ? options.clockseq : _clockseq;
6009
+ if (node == null || clockseq == null) {
6010
+ const seedBytes = options.random || (options.rng || rng)();
6011
+ if (node == null) {
6012
+ node = _nodeId = [seedBytes[0] | 1, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
6013
+ }
6014
+ if (clockseq == null) {
6015
+ clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 16383;
6016
+ }
6017
+ }
6018
+ let msecs = options.msecs !== void 0 ? options.msecs : Date.now();
6019
+ let nsecs = options.nsecs !== void 0 ? options.nsecs : _lastNSecs + 1;
6020
+ const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
6021
+ if (dt < 0 && options.clockseq === void 0) {
6022
+ clockseq = clockseq + 1 & 16383;
6023
+ }
6024
+ if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === void 0) {
6025
+ nsecs = 0;
6026
+ }
6027
+ if (nsecs >= 1e4) {
6028
+ throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
6029
+ }
6030
+ _lastMSecs = msecs;
6031
+ _lastNSecs = nsecs;
6032
+ _clockseq = clockseq;
6033
+ msecs += 122192928e5;
6034
+ const tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
6035
+ b[i++] = tl >>> 24 & 255;
6036
+ b[i++] = tl >>> 16 & 255;
6037
+ b[i++] = tl >>> 8 & 255;
6038
+ b[i++] = tl & 255;
6039
+ const tmh = msecs / 4294967296 * 1e4 & 268435455;
6040
+ b[i++] = tmh >>> 8 & 255;
6041
+ b[i++] = tmh & 255;
6042
+ b[i++] = tmh >>> 24 & 15 | 16;
6043
+ b[i++] = tmh >>> 16 & 255;
6044
+ b[i++] = clockseq >>> 8 | 128;
6045
+ b[i++] = clockseq & 255;
6046
+ for (let n = 0; n < 6; ++n) {
6047
+ b[i + n] = node[n];
6048
+ }
6049
+ return buf || unsafeStringify(b);
6050
+ }
6051
+ var v1_default = v1;
6052
+
6053
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/parse.js
6054
+ function parse(uuid) {
6055
+ if (!validate_default(uuid)) {
6056
+ throw TypeError("Invalid UUID");
6057
+ }
6058
+ let v;
6059
+ const arr = new Uint8Array(16);
6060
+ arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
6061
+ arr[1] = v >>> 16 & 255;
6062
+ arr[2] = v >>> 8 & 255;
6063
+ arr[3] = v & 255;
6064
+ arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
6065
+ arr[5] = v & 255;
6066
+ arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
6067
+ arr[7] = v & 255;
6068
+ arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
6069
+ arr[9] = v & 255;
6070
+ arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
6071
+ arr[11] = v / 4294967296 & 255;
6072
+ arr[12] = v >>> 24 & 255;
6073
+ arr[13] = v >>> 16 & 255;
6074
+ arr[14] = v >>> 8 & 255;
6075
+ arr[15] = v & 255;
6076
+ return arr;
6077
+ }
6078
+ var parse_default = parse;
6079
+
6080
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v35.js
6081
+ function stringToBytes(str) {
6082
+ str = unescape(encodeURIComponent(str));
6083
+ const bytes = [];
6084
+ for (let i = 0; i < str.length; ++i) {
6085
+ bytes.push(str.charCodeAt(i));
6086
+ }
6087
+ return bytes;
6088
+ }
6089
+ var DNS = "6ba7b810-9dad-11d1-80b4-00c04fd430c8";
6090
+ var URL = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
6091
+ function v35(name, version2, hashfunc) {
6092
+ function generateUUID(value, namespace, buf, offset) {
6093
+ var _namespace;
6094
+ if (typeof value === "string") {
6095
+ value = stringToBytes(value);
6096
+ }
6097
+ if (typeof namespace === "string") {
6098
+ namespace = parse_default(namespace);
6099
+ }
6100
+ if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {
6101
+ throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
6102
+ }
6103
+ let bytes = new Uint8Array(16 + value.length);
6104
+ bytes.set(namespace);
6105
+ bytes.set(value, namespace.length);
6106
+ bytes = hashfunc(bytes);
6107
+ bytes[6] = bytes[6] & 15 | version2;
6108
+ bytes[8] = bytes[8] & 63 | 128;
6109
+ if (buf) {
6110
+ offset = offset || 0;
6111
+ for (let i = 0; i < 16; ++i) {
6112
+ buf[offset + i] = bytes[i];
6113
+ }
6114
+ return buf;
6115
+ }
6116
+ return unsafeStringify(bytes);
6117
+ }
6118
+ try {
6119
+ generateUUID.name = name;
6120
+ } catch (err) {
6121
+ }
6122
+ generateUUID.DNS = DNS;
6123
+ generateUUID.URL = URL;
6124
+ return generateUUID;
6125
+ }
6126
+
6127
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/md5.js
6128
+ function md5(bytes) {
6129
+ if (typeof bytes === "string") {
6130
+ const msg = unescape(encodeURIComponent(bytes));
6131
+ bytes = new Uint8Array(msg.length);
6132
+ for (let i = 0; i < msg.length; ++i) {
6133
+ bytes[i] = msg.charCodeAt(i);
6134
+ }
6135
+ }
6136
+ return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
6137
+ }
6138
+ function md5ToHexEncodedArray(input) {
6139
+ const output = [];
6140
+ const length32 = input.length * 32;
6141
+ const hexTab = "0123456789abcdef";
6142
+ for (let i = 0; i < length32; i += 8) {
6143
+ const x = input[i >> 5] >>> i % 32 & 255;
6144
+ const hex = parseInt(hexTab.charAt(x >>> 4 & 15) + hexTab.charAt(x & 15), 16);
6145
+ output.push(hex);
6146
+ }
6147
+ return output;
6148
+ }
6149
+ function getOutputLength(inputLength8) {
6150
+ return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
6151
+ }
6152
+ function wordsToMd5(x, len) {
6153
+ x[len >> 5] |= 128 << len % 32;
6154
+ x[getOutputLength(len) - 1] = len;
6155
+ let a = 1732584193;
6156
+ let b = -271733879;
6157
+ let c = -1732584194;
6158
+ let d = 271733878;
6159
+ for (let i = 0; i < x.length; i += 16) {
6160
+ const olda = a;
6161
+ const oldb = b;
6162
+ const oldc = c;
6163
+ const oldd = d;
6164
+ a = md5ff(a, b, c, d, x[i], 7, -680876936);
6165
+ d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
6166
+ c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
6167
+ b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
6168
+ a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
6169
+ d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
6170
+ c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
6171
+ b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
6172
+ a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
6173
+ d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
6174
+ c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
6175
+ b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
6176
+ a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
6177
+ d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
6178
+ c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
6179
+ b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
6180
+ a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
6181
+ d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
6182
+ c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
6183
+ b = md5gg(b, c, d, a, x[i], 20, -373897302);
6184
+ a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
6185
+ d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
6186
+ c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
6187
+ b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
6188
+ a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
6189
+ d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
6190
+ c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
6191
+ b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
6192
+ a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
6193
+ d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
6194
+ c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
6195
+ b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
6196
+ a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
6197
+ d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
6198
+ c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
6199
+ b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
6200
+ a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
6201
+ d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
6202
+ c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
6203
+ b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
6204
+ a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
6205
+ d = md5hh(d, a, b, c, x[i], 11, -358537222);
6206
+ c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
6207
+ b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
6208
+ a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
6209
+ d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
6210
+ c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
6211
+ b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
6212
+ a = md5ii(a, b, c, d, x[i], 6, -198630844);
6213
+ d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
6214
+ c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
6215
+ b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
6216
+ a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
6217
+ d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
6218
+ c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
6219
+ b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
6220
+ a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
6221
+ d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
6222
+ c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
6223
+ b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
6224
+ a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
6225
+ d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
6226
+ c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
6227
+ b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
6228
+ a = safeAdd(a, olda);
6229
+ b = safeAdd(b, oldb);
6230
+ c = safeAdd(c, oldc);
6231
+ d = safeAdd(d, oldd);
6232
+ }
6233
+ return [a, b, c, d];
6234
+ }
6235
+ function bytesToWords(input) {
6236
+ if (input.length === 0) {
6237
+ return [];
6238
+ }
6239
+ const length8 = input.length * 8;
6240
+ const output = new Uint32Array(getOutputLength(length8));
6241
+ for (let i = 0; i < length8; i += 8) {
6242
+ output[i >> 5] |= (input[i / 8] & 255) << i % 32;
6243
+ }
6244
+ return output;
6245
+ }
6246
+ function safeAdd(x, y) {
6247
+ const lsw = (x & 65535) + (y & 65535);
6248
+ const msw = (x >> 16) + (y >> 16) + (lsw >> 16);
6249
+ return msw << 16 | lsw & 65535;
6250
+ }
6251
+ function bitRotateLeft(num, cnt) {
6252
+ return num << cnt | num >>> 32 - cnt;
6253
+ }
6254
+ function md5cmn(q, a, b, x, s, t) {
6255
+ return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
6256
+ }
6257
+ function md5ff(a, b, c, d, x, s, t) {
6258
+ return md5cmn(b & c | ~b & d, a, b, x, s, t);
6259
+ }
6260
+ function md5gg(a, b, c, d, x, s, t) {
6261
+ return md5cmn(b & d | c & ~d, a, b, x, s, t);
6262
+ }
6263
+ function md5hh(a, b, c, d, x, s, t) {
6264
+ return md5cmn(b ^ c ^ d, a, b, x, s, t);
6265
+ }
6266
+ function md5ii(a, b, c, d, x, s, t) {
6267
+ return md5cmn(c ^ (b | ~d), a, b, x, s, t);
6268
+ }
6269
+ var md5_default = md5;
6270
+
6271
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v3.js
6272
+ var v3 = v35("v3", 48, md5_default);
6273
+ var v3_default = v3;
6274
+
6275
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/native.js
6276
+ var randomUUID = typeof crypto !== "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
6277
+ var native_default = {
6278
+ randomUUID
6279
+ };
6280
+
6281
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v4.js
6282
+ function v4(options, buf, offset) {
6283
+ if (native_default.randomUUID && !buf && !options) {
6284
+ return native_default.randomUUID();
6285
+ }
6286
+ options = options || {};
6287
+ const rnds = options.random || (options.rng || rng)();
6288
+ rnds[6] = rnds[6] & 15 | 64;
6289
+ rnds[8] = rnds[8] & 63 | 128;
6290
+ if (buf) {
6291
+ offset = offset || 0;
6292
+ for (let i = 0; i < 16; ++i) {
6293
+ buf[offset + i] = rnds[i];
6294
+ }
6295
+ return buf;
6296
+ }
6297
+ return unsafeStringify(rnds);
6298
+ }
6299
+ var v4_default = v4;
6300
+
6301
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/sha1.js
6302
+ function f(s, x, y, z) {
6303
+ switch (s) {
6304
+ case 0:
6305
+ return x & y ^ ~x & z;
6306
+ case 1:
6307
+ return x ^ y ^ z;
6308
+ case 2:
6309
+ return x & y ^ x & z ^ y & z;
6310
+ case 3:
6311
+ return x ^ y ^ z;
6312
+ }
6313
+ }
6314
+ function ROTL(x, n) {
6315
+ return x << n | x >>> 32 - n;
6316
+ }
6317
+ function sha1(bytes) {
6318
+ const K = [1518500249, 1859775393, 2400959708, 3395469782];
6319
+ const H = [1732584193, 4023233417, 2562383102, 271733878, 3285377520];
6320
+ if (typeof bytes === "string") {
6321
+ const msg = unescape(encodeURIComponent(bytes));
6322
+ bytes = [];
6323
+ for (let i = 0; i < msg.length; ++i) {
6324
+ bytes.push(msg.charCodeAt(i));
6325
+ }
6326
+ } else if (!Array.isArray(bytes)) {
6327
+ bytes = Array.prototype.slice.call(bytes);
6328
+ }
6329
+ bytes.push(128);
6330
+ const l = bytes.length / 4 + 2;
6331
+ const N = Math.ceil(l / 16);
6332
+ const M = new Array(N);
6333
+ for (let i = 0; i < N; ++i) {
6334
+ const arr = new Uint32Array(16);
6335
+ for (let j = 0; j < 16; ++j) {
6336
+ arr[j] = bytes[i * 64 + j * 4] << 24 | bytes[i * 64 + j * 4 + 1] << 16 | bytes[i * 64 + j * 4 + 2] << 8 | bytes[i * 64 + j * 4 + 3];
6337
+ }
6338
+ M[i] = arr;
6339
+ }
6340
+ M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
6341
+ M[N - 1][14] = Math.floor(M[N - 1][14]);
6342
+ M[N - 1][15] = (bytes.length - 1) * 8 & 4294967295;
6343
+ for (let i = 0; i < N; ++i) {
6344
+ const W = new Uint32Array(80);
6345
+ for (let t = 0; t < 16; ++t) {
6346
+ W[t] = M[i][t];
6347
+ }
6348
+ for (let t = 16; t < 80; ++t) {
6349
+ W[t] = ROTL(W[t - 3] ^ W[t - 8] ^ W[t - 14] ^ W[t - 16], 1);
6350
+ }
6351
+ let a = H[0];
6352
+ let b = H[1];
6353
+ let c = H[2];
6354
+ let d = H[3];
6355
+ let e = H[4];
6356
+ for (let t = 0; t < 80; ++t) {
6357
+ const s = Math.floor(t / 20);
6358
+ const T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[t] >>> 0;
6359
+ e = d;
6360
+ d = c;
6361
+ c = ROTL(b, 30) >>> 0;
6362
+ b = a;
6363
+ a = T;
6364
+ }
6365
+ H[0] = H[0] + a >>> 0;
6366
+ H[1] = H[1] + b >>> 0;
6367
+ H[2] = H[2] + c >>> 0;
6368
+ H[3] = H[3] + d >>> 0;
6369
+ H[4] = H[4] + e >>> 0;
6370
+ }
6371
+ return [H[0] >> 24 & 255, H[0] >> 16 & 255, H[0] >> 8 & 255, H[0] & 255, H[1] >> 24 & 255, H[1] >> 16 & 255, H[1] >> 8 & 255, H[1] & 255, H[2] >> 24 & 255, H[2] >> 16 & 255, H[2] >> 8 & 255, H[2] & 255, H[3] >> 24 & 255, H[3] >> 16 & 255, H[3] >> 8 & 255, H[3] & 255, H[4] >> 24 & 255, H[4] >> 16 & 255, H[4] >> 8 & 255, H[4] & 255];
6372
+ }
6373
+ var sha1_default = sha1;
6374
+
6375
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/v5.js
6376
+ var v5 = v35("v5", 80, sha1_default);
6377
+ var v5_default = v5;
6378
+
6379
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/nil.js
6380
+ var nil_default = "00000000-0000-0000-0000-000000000000";
6381
+
6382
+ // node_modules/.pnpm/uuid@9.0.0/node_modules/uuid/dist/esm-browser/version.js
6383
+ function version(uuid) {
6384
+ if (!validate_default(uuid)) {
6385
+ throw TypeError("Invalid UUID");
6386
+ }
6387
+ return parseInt(uuid.slice(14, 15), 16);
6388
+ }
6389
+ var version_default = version;
6390
+
6391
+ // node_modules/.pnpm/@push.rocks+smartunique@3.0.6/node_modules/@push.rocks/smartunique/dist_ts/index.js
6392
+ var shortId = (sizeArg) => {
6393
+ return index_browser_exports.nanoid(sizeArg);
6394
+ };
6395
+ var uuid4 = () => {
6396
+ return esm_browser_exports.v4();
6397
+ };
6398
+ var uuid5 = (customStringArg, namespaceArg = esm_browser_exports.v5.DNS) => {
6399
+ return esm_browser_exports.v5(customStringArg, namespaceArg);
6400
+ };
6401
+ var uni2 = (prefix = "uni") => {
6402
+ return `${prefix}_${`xxxxxxxxxxxxxxxxxxxxxxxx`.replace(/[xy]/g, (c) => {
6403
+ const r = Math.random() * 16 | 0;
6404
+ const v = c === "x" ? r : r & 3 | 8;
6405
+ return v.toString(16);
6406
+ })}`;
6407
+ };
6408
+
5864
6409
  // ts/taskbuffer.classes.bufferrunner.ts
5865
6410
  var BufferRunner = class {
5866
6411
  constructor(taskArg) {
@@ -6131,7 +6676,7 @@ var AbstractDistributedCoordinator = class {
6131
6676
  // ts/taskbuffer.classes.taskmanager.ts
6132
6677
  var TaskManager = class {
6133
6678
  constructor(options = {}) {
6134
- this.randomId = isounique2.uni();
6679
+ this.randomId = dist_ts_exports10.shortId();
6135
6680
  this.taskMap = new dist_ts_exports5.ObjectMap();
6136
6681
  this.cronJobManager = new dist_ts_exports6.CronManager();
6137
6682
  this.options = {
@@ -6197,6 +6742,7 @@ var TaskManager = class {
6197
6742
  console.log("Found a distributed coordinator, performing consultation.");
6198
6743
  return this.options.distributedCoordinator.fireDistributedTaskRequest({
6199
6744
  submitterId: this.randomId,
6745
+ requestResponseId: dist_ts_exports10.shortId(),
6200
6746
  status: "requesting",
6201
6747
  taskExecutionParallel: 1,
6202
6748
  taskExecutionTime: triggerTime,