@antcde/vue-utils 0.2.32-rc.2 → 0.2.33-rc.1

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.
package/dist/index.js CHANGED
@@ -1,10 +1,28 @@
1
- import { objectOmit as e, objectPick as t, useAsyncState as n, useColorMode as r, useMagicKeys as i, watchDebounced as a, whenever as o } from "@vueuse/core";
2
- import { computed as s, inject as c, onBeforeUnmount as l, onMounted as u, onScopeDispose as d, onUnmounted as f, readonly as p, ref as m, shallowRef as h, watch as g } from "vue";
3
- import { useI18n as _ } from "vue-i18n";
4
- import { clone as v, isAuthorizationRequired as y, newCommsClient as b, newCommsHost as ee } from "@antcde/connect-ts";
5
- import { BehaviorSubject as x, Subject as te, concat as ne, concatMap as re, debounceTime as ie, distinctUntilChanged as ae, filter as S, map as C } from "rxjs";
1
+ import { createSharedComposable as e, objectOmit as t, objectPick as n, useAsyncState as r, useColorMode as i, useMagicKeys as a, useMediaQuery as o, useWindowSize as s, watchDebounced as c, whenever as l } from "@vueuse/core";
2
+ import { computed as u, inject as d, onBeforeUnmount as f, onMounted as p, onScopeDispose as m, onUnmounted as h, readonly as g, ref as _, shallowRef as v, watch as y, watchEffect as b } from "vue";
3
+ import { useI18n as ee } from "vue-i18n";
4
+ import { clone as x, isAuthorizationRequired as te, newCommsClient as ne, newCommsHost as re } from "@antcde/connect-ts";
5
+ import { BehaviorSubject as ie, Subject as ae, concat as S, concatMap as C, debounceTime as oe, distinctUntilChanged as w, filter as se, map as ce } from "rxjs";
6
+ //#region src/apiErrorMessage.ts
7
+ function le(e, t) {
8
+ let n = e?.response?.data;
9
+ return (n?.errors ? Object.values(n.errors).flat().find((e) => typeof e == "string" && e.length > 0) : void 0) || (typeof n?.message == "string" && n.message.length ? n.message : t);
10
+ }
11
+ //#endregion
12
+ //#region src/deviceType.ts
13
+ var ue = {
14
+ tablet: "mdi-tablet",
15
+ kiosk: "mdi-monitor-dashboard",
16
+ display: "mdi-television",
17
+ handheld: "mdi-barcode-scan",
18
+ other: "mdi-devices"
19
+ };
20
+ function de(e) {
21
+ return ue[e] ?? ue.other;
22
+ }
23
+ //#endregion
6
24
  //#region src/formatDate.ts
7
- var w = "nl", T = {
25
+ var fe = "nl", pe = {
8
26
  short: {
9
27
  day: "2-digit",
10
28
  month: "2-digit",
@@ -40,43 +58,43 @@ var w = "nl", T = {
40
58
  minute: "2-digit",
41
59
  hour12: !1
42
60
  }
43
- }, oe = /* @__PURE__ */ new Set(["short", "shortDateTime"]);
44
- function se(e) {
61
+ }, me = /* @__PURE__ */ new Set(["short", "shortDateTime"]);
62
+ function he(e) {
45
63
  return e instanceof Date ? e : new Date(e);
46
64
  }
47
- function ce(e) {
65
+ function ge(e) {
48
66
  return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
49
67
  }
50
- function le(e, t = {}) {
51
- let { preset: n = "short", locale: r = w, fallback: i = "" } = t;
68
+ function _e(e, t = {}) {
69
+ let { preset: n = "short", locale: r = fe, fallback: i = "" } = t;
52
70
  if (e == null || e === "") return i;
53
- let a = se(e);
71
+ let a = he(e);
54
72
  if (Number.isNaN(a.getTime())) return i;
55
- if (n === "iso") return ce(a);
56
- let o = oe.has(n) && /^en\b/i.test(r) ? w : r;
57
- return new Intl.DateTimeFormat(o, T[n]).format(a);
73
+ if (n === "iso") return ge(a);
74
+ let o = me.has(n) && /^en\b/i.test(r) ? fe : r;
75
+ return new Intl.DateTimeFormat(o, pe[n]).format(a);
58
76
  }
59
- function ue(e, t, n = {}) {
60
- let { preset: r = "medium", locale: i = w, fallback: a = "" } = n, o = e == null || e === "" ? null : se(e), s = t == null || t === "" ? null : se(t), c = o && !Number.isNaN(o.getTime()) ? o : null, l = s && !Number.isNaN(s.getTime()) ? s : null;
77
+ function ve(e, t, n = {}) {
78
+ let { preset: r = "medium", locale: i = fe, fallback: a = "" } = n, o = e == null || e === "" ? null : he(e), s = t == null || t === "" ? null : he(t), c = o && !Number.isNaN(o.getTime()) ? o : null, l = s && !Number.isNaN(s.getTime()) ? s : null;
61
79
  if (!c && !l) return a;
62
- if (!c || !l || ce(c) === ce(l)) return le(c ?? l, {
80
+ if (!c || !l || ge(c) === ge(l)) return _e(c ?? l, {
63
81
  preset: r === "iso" ? "medium" : r,
64
82
  locale: i,
65
83
  fallback: a
66
84
  });
67
85
  let u = r === "iso" ? "medium" : r;
68
- return new Intl.DateTimeFormat(i, T[u]).formatRange(c, l);
86
+ return new Intl.DateTimeFormat(i, pe[u]).formatRange(c, l);
69
87
  }
70
88
  //#endregion
71
89
  //#region src/refreshLabel.ts
72
- var de = {
90
+ var ye = {
73
91
  1: "first",
74
92
  2: "second",
75
93
  3: "third",
76
94
  4: "fourth",
77
95
  [-1]: "last"
78
96
  };
79
- function fe(e, t) {
97
+ function be(e, t) {
80
98
  let { t: n, locale: r, prefix: i } = t, a = (e) => `${i}.${e}`;
81
99
  if (e.kind === "interval") return n(a(`interval.${e.preset}`), {});
82
100
  if (e.kind === "custom") {
@@ -122,7 +140,7 @@ function fe(e, t) {
122
140
  } else u = n(a("monthlyNth"), {
123
141
  count: s,
124
142
  time: l,
125
- nth: n(a(`nth.${de[e.nth]}`), {}),
143
+ nth: n(a(`nth.${ye[e.nth]}`), {}),
126
144
  weekday: c(e.weekday)
127
145
  }, s);
128
146
  }
@@ -134,7 +152,7 @@ function fe(e, t) {
134
152
  }
135
153
  //#endregion
136
154
  //#region src/refreshSchedule.ts
137
- var pe = [
155
+ var xe = [
138
156
  "MO",
139
157
  "TU",
140
158
  "WE",
@@ -142,18 +160,18 @@ var pe = [
142
160
  "FR",
143
161
  "SA",
144
162
  "SU"
145
- ], me = [
163
+ ], Se = [
146
164
  "hourly",
147
165
  "daily",
148
166
  "weekly",
149
167
  "monthly"
150
- ], he = [
168
+ ], Ce = [
151
169
  1,
152
170
  2,
153
171
  3,
154
172
  4,
155
173
  -1
156
- ], ge = /* @__PURE__ */ new Set([
174
+ ], we = /* @__PURE__ */ new Set([
157
175
  "FREQ",
158
176
  "INTERVAL",
159
177
  "BYDAY",
@@ -161,10 +179,10 @@ var pe = [
161
179
  "BYSETPOS",
162
180
  "WKST"
163
181
  ]);
164
- function _e() {
182
+ function Te() {
165
183
  return new Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
166
184
  }
167
- function ve(e = /* @__PURE__ */ new Date()) {
185
+ function Ee(e = /* @__PURE__ */ new Date()) {
168
186
  let t = (e) => String(e).padStart(2, "0");
169
187
  return {
170
188
  freq: "weekly",
@@ -173,49 +191,49 @@ function ve(e = /* @__PURE__ */ new Date()) {
173
191
  monthly: null,
174
192
  time: "06:00",
175
193
  startDate: `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}`,
176
- timezone: _e()
194
+ timezone: Te()
177
195
  };
178
196
  }
179
- function ye(e) {
197
+ function De(e) {
180
198
  return ((/* @__PURE__ */ new Date(`${e}T00:00:00Z`)).getUTCDay() + 6) % 7;
181
199
  }
182
- function be(e) {
200
+ function Oe(e) {
183
201
  let t = e.freq === "hourly" ? "00:00" : e.time ?? "00:00", n = `DTSTART;TZID=${e.timezone}:${e.startDate.replaceAll("-", "")}T${t.replace(":", "")}00`, r = [`FREQ=${e.freq.toUpperCase()}`, `INTERVAL=${Math.max(1, Math.trunc(e.interval))}`];
184
- return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) => pe[e]).join(",")}`), e.freq === "monthly" && e.monthly && r.push("day" in e.monthly ? `BYMONTHDAY=${e.monthly.day}` : `BYDAY=${pe[e.monthly.weekday]};BYSETPOS=${e.monthly.nth}`), `${n}\nRRULE:${r.join(";")}`;
202
+ return e.freq === "weekly" && e.weekdays.length && r.push(`BYDAY=${[...e.weekdays].sort((e, t) => e - t).map((e) => xe[e]).join(",")}`), e.freq === "monthly" && e.monthly && r.push("day" in e.monthly ? `BYMONTHDAY=${e.monthly.day}` : `BYDAY=${xe[e.monthly.weekday]};BYSETPOS=${e.monthly.nth}`), `${n}\nRRULE:${r.join(";")}`;
185
203
  }
186
- function xe(e) {
187
- let t = pe.indexOf(e);
204
+ function ke(e) {
205
+ let t = xe.indexOf(e);
188
206
  return t >= 0 ? t : null;
189
207
  }
190
- function Se(e, t) {
208
+ function Ae(e, t) {
191
209
  let n = e.get("BYMONTHDAY"), r = e.get("BYDAY");
192
210
  if (n && !r) {
193
211
  let e = Number(n);
194
212
  return Number.isInteger(e) && e >= 1 && e <= 31 ? { day: e } : null;
195
213
  }
196
214
  if (!r) return n ? null : { day: Number(t.slice(8, 10)) };
197
- let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ? xe(i[2]) : null, o = Number(i?.[1] ?? e.get("BYSETPOS"));
198
- return a !== null && he.includes(o) ? {
215
+ let i = /^([+-]?\d)?([A-Z]{2})$/.exec(r), a = i ? ke(i[2]) : null, o = Number(i?.[1] ?? e.get("BYSETPOS"));
216
+ return a !== null && Ce.includes(o) ? {
199
217
  nth: o,
200
218
  weekday: a
201
219
  } : null;
202
220
  }
203
- function Ce(e) {
221
+ function je(e) {
204
222
  let t = (e ?? "").trim().split(/\r?\n/).map((e) => e.trim()), n = /^DTSTART;TZID=([^:]+):(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})00$/.exec(t.find((e) => e.startsWith("DTSTART")) ?? ""), r = t.find((e) => e.startsWith("RRULE:"));
205
223
  if (!n || !r || t.length !== 2) return null;
206
224
  let i = new Map(r.slice(6).split(";").map((e) => e.split("=")));
207
- if ([...i.keys()].some((e) => !ge.has(e))) return null;
225
+ if ([...i.keys()].some((e) => !we.has(e))) return null;
208
226
  let a = (i.get("FREQ") ?? "").toLowerCase(), o = Number(i.get("INTERVAL") ?? 1);
209
- if (!me.includes(a) || !Number.isInteger(o) || o < 1) return null;
227
+ if (!Se.includes(a) || !Number.isInteger(o) || o < 1) return null;
210
228
  let s = `${n[2]}-${n[3]}-${n[4]}`, c = i.get("BYDAY");
211
229
  if ((a === "hourly" || a === "daily") && (c || i.has("BYMONTHDAY") || i.has("BYSETPOS"))) return null;
212
230
  let l = [];
213
231
  if (a === "weekly") {
214
- let e = c ? c.split(",").map(xe) : [ye(s)];
232
+ let e = c ? c.split(",").map(ke) : [De(s)];
215
233
  if (e.includes(null) || i.has("BYMONTHDAY") || i.has("BYSETPOS")) return null;
216
234
  l = e;
217
235
  }
218
- let u = a === "monthly" ? Se(i, s) : null;
236
+ let u = a === "monthly" ? Ae(i, s) : null;
219
237
  return a === "monthly" && !u ? null : {
220
238
  freq: a,
221
239
  interval: o,
@@ -226,13 +244,13 @@ function Ce(e) {
226
244
  timezone: n[1]
227
245
  };
228
246
  }
229
- function we(e, t = _e()) {
247
+ function Me(e, t = Te()) {
230
248
  if (!e) return null;
231
249
  if (e.kind === "interval") return {
232
250
  kind: "interval",
233
251
  preset: e.seconds
234
252
  };
235
- let n = Ce(e.rule);
253
+ let n = je(e.rule);
236
254
  return n ? {
237
255
  kind: "schedule",
238
256
  spec: n,
@@ -244,7 +262,7 @@ function we(e, t = _e()) {
244
262
  }
245
263
  //#endregion
246
264
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/weekday.js
247
- var Te = [
265
+ var Ne = [
248
266
  "MO",
249
267
  "TU",
250
268
  "WE",
@@ -252,66 +270,66 @@ var Te = [
252
270
  "FR",
253
271
  "SA",
254
272
  "SU"
255
- ], E = function() {
273
+ ], T = function() {
256
274
  function e(e, t) {
257
275
  if (t === 0) throw Error("Can't create weekday with n == 0");
258
276
  this.weekday = e, this.n = t;
259
277
  }
260
278
  return e.fromStr = function(t) {
261
- return new e(Te.indexOf(t));
279
+ return new e(Ne.indexOf(t));
262
280
  }, e.prototype.nth = function(t) {
263
281
  return this.n === t ? this : new e(this.weekday, t);
264
282
  }, e.prototype.equals = function(e) {
265
283
  return this.weekday === e.weekday && this.n === e.n;
266
284
  }, e.prototype.toString = function() {
267
- var e = Te[this.weekday];
285
+ var e = Ne[this.weekday];
268
286
  return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
269
287
  }, e.prototype.getJsWeekday = function() {
270
288
  return this.weekday === 6 ? 0 : this.weekday + 1;
271
289
  }, e;
272
- }(), D = function(e) {
290
+ }(), E = function(e) {
273
291
  return e != null;
274
- }, O = function(e) {
292
+ }, D = function(e) {
275
293
  return typeof e == "number";
276
- }, Ee = function(e) {
277
- return typeof e == "string" && Te.includes(e);
278
- }, k = Array.isArray, A = function(e, t) {
294
+ }, Pe = function(e) {
295
+ return typeof e == "string" && Ne.includes(e);
296
+ }, O = Array.isArray, k = function(e, t) {
279
297
  t === void 0 && (t = e), arguments.length === 1 && (t = e, e = 0);
280
298
  for (var n = [], r = e; r < t; r++) n.push(r);
281
299
  return n;
282
- }, j = function(e, t) {
300
+ }, A = function(e, t) {
283
301
  var n = 0, r = [];
284
- if (k(e)) for (; n < t; n++) r[n] = [].concat(e);
302
+ if (O(e)) for (; n < t; n++) r[n] = [].concat(e);
285
303
  else for (; n < t; n++) r[n] = e;
286
304
  return r;
287
- }, De = function(e) {
288
- return k(e) ? e : [e];
305
+ }, Fe = function(e) {
306
+ return O(e) ? e : [e];
289
307
  };
290
- function M(e, t, n) {
308
+ function j(e, t, n) {
291
309
  n === void 0 && (n = " ");
292
310
  var r = String(e);
293
- return t |= 0, r.length > t ? String(r) : (t -= r.length, t > n.length && (n += j(n, t / n.length)), n.slice(0, t) + String(r));
311
+ return t |= 0, r.length > t ? String(r) : (t -= r.length, t > n.length && (n += A(n, t / n.length)), n.slice(0, t) + String(r));
294
312
  }
295
- var Oe = function(e, t, n) {
313
+ var Ie = function(e, t, n) {
296
314
  var r = e.split(t);
297
315
  return n ? r.slice(0, n).concat([r.slice(n).join(t)]) : r;
298
- }, N = function(e, t) {
316
+ }, M = function(e, t) {
299
317
  var n = e % t;
300
318
  return n * t < 0 ? n + t : n;
301
- }, ke = function(e, t) {
319
+ }, Le = function(e, t) {
302
320
  return {
303
321
  div: Math.floor(e / t),
304
- mod: N(e, t)
322
+ mod: M(e, t)
305
323
  };
324
+ }, N = function(e) {
325
+ return !E(e) || e.length === 0;
306
326
  }, P = function(e) {
307
- return !D(e) || e.length === 0;
308
- }, F = function(e) {
309
- return !P(e);
310
- }, I = function(e, t) {
311
- return F(e) && e.indexOf(t) !== -1;
312
- }, L = function(e, t, n, r, i, a) {
327
+ return !N(e);
328
+ }, F = function(e, t) {
329
+ return P(e) && e.indexOf(t) !== -1;
330
+ }, I = function(e, t, n, r, i, a) {
313
331
  return r === void 0 && (r = 0), i === void 0 && (i = 0), a === void 0 && (a = 0), new Date(Date.UTC(e, t - 1, n, r, i, a));
314
- }, Ae = [
332
+ }, Re = [
315
333
  31,
316
334
  28,
317
335
  31,
@@ -324,7 +342,7 @@ var Oe = function(e, t, n) {
324
342
  31,
325
343
  30,
326
344
  31
327
- ], je = 864e5, Me = L(1970, 1, 1), Ne = [
345
+ ], ze = 864e5, Be = I(1970, 1, 1), Ve = [
328
346
  6,
329
347
  0,
330
348
  1,
@@ -332,59 +350,59 @@ var Oe = function(e, t, n) {
332
350
  3,
333
351
  4,
334
352
  5
335
- ], Pe = function(e) {
353
+ ], L = function(e) {
336
354
  return e % 4 == 0 && e % 100 != 0 || e % 400 == 0;
337
- }, Fe = function(e) {
355
+ }, He = function(e) {
338
356
  return e instanceof Date;
339
357
  }, R = function(e) {
340
- return Fe(e) && !isNaN(e.getTime());
341
- }, Ie = function(e, t) {
358
+ return He(e) && !isNaN(e.getTime());
359
+ }, Ue = function(e, t) {
342
360
  var n = e.getTime() - t.getTime();
343
- return Math.round(n / je);
344
- }, Le = function(e) {
345
- return Ie(e, Me);
346
- }, Re = function(e) {
347
- return new Date(Me.getTime() + e * je);
348
- }, ze = function(e) {
361
+ return Math.round(n / ze);
362
+ }, We = function(e) {
363
+ return Ue(e, Be);
364
+ }, Ge = function(e) {
365
+ return new Date(Be.getTime() + e * ze);
366
+ }, Ke = function(e) {
349
367
  var t = e.getUTCMonth();
350
- return t === 1 && Pe(e.getUTCFullYear()) ? 29 : Ae[t];
368
+ return t === 1 && L(e.getUTCFullYear()) ? 29 : Re[t];
351
369
  }, z = function(e) {
352
- return Ne[e.getUTCDay()];
353
- }, Be = function(e, t) {
354
- var n = L(e, t + 1, 1);
355
- return [z(n), ze(n)];
356
- }, Ve = function(e, t) {
370
+ return Ve[e.getUTCDay()];
371
+ }, qe = function(e, t) {
372
+ var n = I(e, t + 1, 1);
373
+ return [z(n), Ke(n)];
374
+ }, Je = function(e, t) {
357
375
  return t ||= e, new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
358
- }, He = function(e) {
376
+ }, Ye = function(e) {
359
377
  return new Date(e.getTime());
360
- }, Ue = function(e) {
361
- for (var t = [], n = 0; n < e.length; n++) t.push(He(e[n]));
378
+ }, Xe = function(e) {
379
+ for (var t = [], n = 0; n < e.length; n++) t.push(Ye(e[n]));
362
380
  return t;
363
381
  }, B = function(e) {
364
382
  e.sort(function(e, t) {
365
383
  return e.getTime() - t.getTime();
366
384
  });
367
- }, We = function(e, t) {
385
+ }, Ze = function(e, t) {
368
386
  t === void 0 && (t = !0);
369
387
  var n = new Date(e);
370
388
  return [
371
- M(n.getUTCFullYear().toString(), 4, "0"),
372
- M(n.getUTCMonth() + 1, 2, "0"),
373
- M(n.getUTCDate(), 2, "0"),
389
+ j(n.getUTCFullYear().toString(), 4, "0"),
390
+ j(n.getUTCMonth() + 1, 2, "0"),
391
+ j(n.getUTCDate(), 2, "0"),
374
392
  "T",
375
- M(n.getUTCHours(), 2, "0"),
376
- M(n.getUTCMinutes(), 2, "0"),
377
- M(n.getUTCSeconds(), 2, "0"),
393
+ j(n.getUTCHours(), 2, "0"),
394
+ j(n.getUTCMinutes(), 2, "0"),
395
+ j(n.getUTCSeconds(), 2, "0"),
378
396
  t ? "Z" : ""
379
397
  ].join("");
380
- }, Ge = function(e) {
398
+ }, Qe = function(e) {
381
399
  var t = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);
382
400
  if (!t) throw Error(`Invalid UNTIL value: ${e}`);
383
401
  return new Date(Date.UTC(parseInt(t[1], 10), parseInt(t[2], 10) - 1, parseInt(t[3], 10), parseInt(t[5], 10) || 0, parseInt(t[6], 10) || 0, parseInt(t[7], 10) || 0));
384
- }, Ke = function(e, t) {
402
+ }, $e = function(e, t) {
385
403
  return e.toLocaleString("sv-SE", { timeZone: t }).replace(" ", "T") + "Z";
386
- }, qe = function(e, t) {
387
- var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(Ke(e, n)), i = new Date(Ke(e, t ?? "UTC")).getTime() - r.getTime();
404
+ }, et = function(e, t) {
405
+ var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date($e(e, n)), i = new Date($e(e, t ?? "UTC")).getTime() - r.getTime();
388
406
  return new Date(e.getTime() - i);
389
407
  }, V = function() {
390
408
  function e(e, t) {
@@ -412,16 +430,16 @@ var Oe = function(e, t, n) {
412
430
  }, e.prototype.clone = function() {
413
431
  return new e(this.method, this.args);
414
432
  }, e;
415
- }(), Je = function(e, t) {
416
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
433
+ }(), tt = function(e, t) {
434
+ return tt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
417
435
  e.__proto__ = t;
418
436
  } || function(e, t) {
419
437
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
420
- }, Je(e, t);
438
+ }, tt(e, t);
421
439
  };
422
- function Ye(e, t) {
440
+ function nt(e, t) {
423
441
  if (typeof t != "function" && t !== null) throw TypeError("Class extends value " + String(t) + " is not a constructor or null");
424
- Je(e, t);
442
+ tt(e, t);
425
443
  function n() {
426
444
  this.constructor = e;
427
445
  }
@@ -439,8 +457,8 @@ function U(e, t, n) {
439
457
  }
440
458
  //#endregion
441
459
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/callbackiterresult.js
442
- var Xe = function(e) {
443
- Ye(t, e);
460
+ var rt = function(e) {
461
+ nt(t, e);
444
462
  function t(t, n, r) {
445
463
  var i = e.call(this, t, n) || this;
446
464
  return i.iterator = r, i;
@@ -448,7 +466,7 @@ var Xe = function(e) {
448
466
  return t.prototype.add = function(e) {
449
467
  return this.iterator(e, this._result.length) ? (this._result.push(e), !0) : !1;
450
468
  }, t;
451
- }(V), Ze = {
469
+ }(V), it = {
452
470
  dayNames: [
453
471
  "Sunday",
454
472
  "Monday",
@@ -516,15 +534,15 @@ var Xe = function(e) {
516
534
  december: /^dec(ember)?/i,
517
535
  comma: /^(,\s*|(and|or)\s*)+/i
518
536
  }
519
- }, Qe = function(e, t) {
537
+ }, at = function(e, t) {
520
538
  return e.indexOf(t) !== -1;
521
- }, $e = function(e) {
539
+ }, ot = function(e) {
522
540
  return e.toString();
523
- }, et = function(e, t, n) {
541
+ }, st = function(e, t, n) {
524
542
  return `${t} ${n}, ${e}`;
525
543
  }, W = function() {
526
544
  function e(e, t, n, r) {
527
- if (t === void 0 && (t = $e), n === void 0 && (n = Ze), r === void 0 && (r = et), this.text = [], this.language = n || Ze, this.gettext = t, this.dateFormatter = r, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
545
+ if (t === void 0 && (t = ot), n === void 0 && (n = it), r === void 0 && (r = st), this.text = [], this.language = n || it, this.gettext = t, this.dateFormatter = r, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
528
546
  var i = [].concat(this.options.bymonthday), a = [].concat(this.options.bynmonthday);
529
547
  i.sort(function(e, t) {
530
548
  return e - t;
@@ -532,8 +550,8 @@ var Xe = function(e) {
532
550
  return t - e;
533
551
  }), this.bymonthday = i.concat(a), this.bymonthday.length || (this.bymonthday = null);
534
552
  }
535
- if (D(this.origOptions.byweekday)) {
536
- var o = k(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(o);
553
+ if (E(this.origOptions.byweekday)) {
554
+ var o = O(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(o);
537
555
  this.byweekday = {
538
556
  allWeeks: o.filter(function(e) {
539
557
  return !e.n;
@@ -554,13 +572,13 @@ var Xe = function(e) {
554
572
  var n = !0;
555
573
  if (!(t.options.freq in e.IMPLEMENTED) || t.origOptions.until && t.origOptions.count) return !1;
556
574
  for (var r in t.origOptions) {
557
- if (Qe([
575
+ if (at([
558
576
  "dtstart",
559
577
  "tzid",
560
578
  "wkst",
561
579
  "freq"
562
580
  ], r)) return !0;
563
- if (!Qe(e.IMPLEMENTED[t.options.freq], r)) return !1;
581
+ if (!at(e.IMPLEMENTED[t.options.freq], r)) return !1;
564
582
  }
565
583
  return n;
566
584
  }, e.prototype.isFullyConvertible = function() {
@@ -628,7 +646,7 @@ var Xe = function(e) {
628
646
  }, e.prototype.monthtext = function(e) {
629
647
  return this.language.monthNames[e - 1];
630
648
  }, e.prototype.weekdaytext = function(e) {
631
- var t = O(e) ? (e + 1) % 7 : e.getJsWeekday();
649
+ var t = D(e) ? (e + 1) % 7 : e.getJsWeekday();
632
650
  return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[t];
633
651
  }, e.prototype.plural = function(e) {
634
652
  return e % 100 != 1;
@@ -636,7 +654,7 @@ var Xe = function(e) {
636
654
  return this.text.push(" "), this.text.push(e), this;
637
655
  }, e.prototype.list = function(e, t, n, r) {
638
656
  var i = this;
639
- r === void 0 && (r = ","), k(e) || (e = [e]);
657
+ r === void 0 && (r = ","), O(e) || (e = [e]);
640
658
  var a = function(e, t, n) {
641
659
  for (var r = "", i = 0; i < e.length; i++) i !== 0 && (i === e.length - 1 ? r += " " + n + " " : r += t + " "), r += e[i];
642
660
  return r;
@@ -649,7 +667,7 @@ var Xe = function(e) {
649
667
  };
650
668
  return n ? a(e.map(o), r, n) : e.map(o).join(r + " ");
651
669
  }, e;
652
- }(), tt = function() {
670
+ }(), ct = function() {
653
671
  function e(e) {
654
672
  this.done = !0, this.rules = e;
655
673
  }
@@ -690,9 +708,9 @@ var Xe = function(e) {
690
708
  throw Error("expected " + e + " but found " + this.symbol);
691
709
  }, e;
692
710
  }();
693
- function nt(e, t) {
694
- t === void 0 && (t = Ze);
695
- var n = {}, r = new tt(t.tokens);
711
+ function lt(e, t) {
712
+ t === void 0 && (t = it);
713
+ var n = {}, r = new ct(t.tokens);
696
714
  return r.start(e) ? (i(), n) : null;
697
715
  function i() {
698
716
  r.expect("every");
@@ -865,13 +883,13 @@ var G;
865
883
  (function(e) {
866
884
  e[e.YEARLY = 0] = "YEARLY", e[e.MONTHLY = 1] = "MONTHLY", e[e.WEEKLY = 2] = "WEEKLY", e[e.DAILY = 3] = "DAILY", e[e.HOURLY = 4] = "HOURLY", e[e.MINUTELY = 5] = "MINUTELY", e[e.SECONDLY = 6] = "SECONDLY";
867
885
  })(G ||= {});
868
- function rt(e) {
886
+ function ut(e) {
869
887
  return e < G.HOURLY;
870
888
  }
871
889
  //#endregion
872
890
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/nlp/index.js
873
- var it = function(e, t) {
874
- return t === void 0 && (t = Ze), new $(nt(e, t) || void 0);
891
+ var dt = function(e, t) {
892
+ return t === void 0 && (t = it), new $(lt(e, t) || void 0);
875
893
  }, K = [
876
894
  "count",
877
895
  "until",
@@ -881,9 +899,9 @@ var it = function(e, t) {
881
899
  "bymonth"
882
900
  ];
883
901
  W.IMPLEMENTED = [], W.IMPLEMENTED[G.HOURLY] = K, W.IMPLEMENTED[G.MINUTELY] = K, W.IMPLEMENTED[G.DAILY] = ["byhour"].concat(K), W.IMPLEMENTED[G.WEEKLY] = K, W.IMPLEMENTED[G.MONTHLY] = K, W.IMPLEMENTED[G.YEARLY] = ["byweekno", "byyearday"].concat(K);
884
- var at = function(e, t, n, r) {
902
+ var ft = function(e, t, n, r) {
885
903
  return new W(e, t, n, r).toString();
886
- }, ot = W.isFullyConvertible, st = function() {
904
+ }, pt = W.isFullyConvertible, mt = function() {
887
905
  function e(e, t, n, r) {
888
906
  this.hour = e, this.minute = t, this.second = n, this.millisecond = r || 0;
889
907
  }
@@ -898,8 +916,8 @@ var at = function(e, t, n, r) {
898
916
  }, e.prototype.getTime = function() {
899
917
  return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
900
918
  }, e;
901
- }(), ct = function(e) {
902
- Ye(t, e);
919
+ }(), ht = function(e) {
920
+ nt(t, e);
903
921
  function t(t, n, r, i, a, o, s) {
904
922
  var c = e.call(this, i, a, o, s) || this;
905
923
  return c.year = t, c.month = n, c.day = r, c;
@@ -920,7 +938,7 @@ var at = function(e, t, n, r) {
920
938
  this.year += e;
921
939
  }, t.prototype.addMonths = function(e) {
922
940
  if (this.month += e, this.month > 12) {
923
- var t = Math.floor(this.month / 12), n = N(this.month, 12);
941
+ var t = Math.floor(this.month / 12), n = M(this.month, 12);
924
942
  this.month = n, this.year += t, this.month === 0 && (this.month = 12, --this.year);
925
943
  }
926
944
  }, t.prototype.addWeekly = function(e, t) {
@@ -930,27 +948,27 @@ var at = function(e, t, n, r) {
930
948
  }, t.prototype.addHours = function(e, t, n) {
931
949
  for (t && (this.hour += Math.floor((23 - this.hour) / e) * e);;) {
932
950
  this.hour += e;
933
- var r = ke(this.hour, 24), i = r.div, a = r.mod;
934
- if (i && (this.hour = a, this.addDaily(i)), P(n) || I(n, this.hour)) break;
951
+ var r = Le(this.hour, 24), i = r.div, a = r.mod;
952
+ if (i && (this.hour = a, this.addDaily(i)), N(n) || F(n, this.hour)) break;
935
953
  }
936
954
  }, t.prototype.addMinutes = function(e, t, n, r) {
937
955
  for (t && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / e) * e);;) {
938
956
  this.minute += e;
939
- var i = ke(this.minute, 60), a = i.div, o = i.mod;
940
- if (a && (this.minute = o, this.addHours(a, !1, n)), (P(n) || I(n, this.hour)) && (P(r) || I(r, this.minute))) break;
957
+ var i = Le(this.minute, 60), a = i.div, o = i.mod;
958
+ if (a && (this.minute = o, this.addHours(a, !1, n)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute))) break;
941
959
  }
942
960
  }, t.prototype.addSeconds = function(e, t, n, r, i) {
943
961
  for (t && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / e) * e);;) {
944
962
  this.second += e;
945
- var a = ke(this.second, 60), o = a.div, s = a.mod;
946
- if (o && (this.second = s, this.addMinutes(o, !1, n, r)), (P(n) || I(n, this.hour)) && (P(r) || I(r, this.minute)) && (P(i) || I(i, this.second))) break;
963
+ var a = Le(this.second, 60), o = a.div, s = a.mod;
964
+ if (o && (this.second = s, this.addMinutes(o, !1, n, r)), (N(n) || F(n, this.hour)) && (N(r) || F(r, this.minute)) && (N(i) || F(i, this.second))) break;
947
965
  }
948
966
  }, t.prototype.fixDay = function() {
949
967
  if (!(this.day <= 28)) {
950
- var e = Be(this.year, this.month - 1)[1];
968
+ var e = qe(this.year, this.month - 1)[1];
951
969
  if (!(this.day <= e)) for (; this.day > e;) {
952
970
  if (this.day -= e, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > 9999)) return;
953
- e = Be(this.year, this.month - 1)[1];
971
+ e = qe(this.year, this.month - 1)[1];
954
972
  }
955
973
  }
956
974
  }, t.prototype.add = function(e, t) {
@@ -965,28 +983,28 @@ var at = function(e, t, n, r) {
965
983
  case G.SECONDLY: return this.addSeconds(r, t, a, o, s);
966
984
  }
967
985
  }, t;
968
- }(st);
986
+ }(mt);
969
987
  //#endregion
970
988
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parseoptions.js
971
- function lt(e) {
989
+ function gt(e) {
972
990
  for (var t = [], n = Object.keys(e), r = 0, i = n; r < i.length; r++) {
973
991
  var a = i[r];
974
- I(Yt, a) || t.push(a), Fe(e[a]) && !R(e[a]) && t.push(a);
992
+ F(nn, a) || t.push(a), He(e[a]) && !R(e[a]) && t.push(a);
975
993
  }
976
994
  if (t.length) throw Error("Invalid options: " + t.join(", "));
977
995
  return H({}, e);
978
996
  }
979
- function ut(e) {
980
- var t = H(H({}, Jt), lt(e));
981
- if (D(t.byeaster) && (t.freq = $.YEARLY), !(D(t.freq) && $.FREQUENCIES[t.freq])) throw Error(`Invalid frequency: ${t.freq} ${e.freq}`);
982
- if (t.dtstart ||= new Date((/* @__PURE__ */ new Date()).setMilliseconds(0)), D(t.wkst) ? O(t.wkst) || (t.wkst = t.wkst.weekday) : t.wkst = $.MO.weekday, D(t.bysetpos)) {
983
- O(t.bysetpos) && (t.bysetpos = [t.bysetpos]);
997
+ function _t(e) {
998
+ var t = H(H({}, tn), gt(e));
999
+ if (E(t.byeaster) && (t.freq = $.YEARLY), !(E(t.freq) && $.FREQUENCIES[t.freq])) throw Error(`Invalid frequency: ${t.freq} ${e.freq}`);
1000
+ if (t.dtstart ||= new Date((/* @__PURE__ */ new Date()).setMilliseconds(0)), E(t.wkst) ? D(t.wkst) || (t.wkst = t.wkst.weekday) : t.wkst = $.MO.weekday, E(t.bysetpos)) {
1001
+ D(t.bysetpos) && (t.bysetpos = [t.bysetpos]);
984
1002
  for (var n = 0; n < t.bysetpos.length; n++) {
985
1003
  var r = t.bysetpos[n];
986
1004
  if (r === 0 || !(r >= -366 && r <= 366)) throw Error("bysetpos must be between 1 and 366, or between -366 and -1");
987
1005
  }
988
1006
  }
989
- if (!(t.byweekno || F(t.byweekno) || F(t.byyearday) || t.bymonthday || F(t.bymonthday) || D(t.byweekday) || D(t.byeaster))) switch (t.freq) {
1007
+ if (!(t.byweekno || P(t.byweekno) || P(t.byyearday) || t.bymonthday || P(t.bymonthday) || E(t.byweekday) || E(t.byeaster))) switch (t.freq) {
990
1008
  case $.YEARLY:
991
1009
  t.bymonth ||= t.dtstart.getUTCMonth() + 1, t.bymonthday = t.dtstart.getUTCDate();
992
1010
  break;
@@ -995,67 +1013,67 @@ function ut(e) {
995
1013
  break;
996
1014
  case $.WEEKLY: t.byweekday = [z(t.dtstart)];
997
1015
  }
998
- if (D(t.bymonth) && !k(t.bymonth) && (t.bymonth = [t.bymonth]), D(t.byyearday) && !k(t.byyearday) && O(t.byyearday) && (t.byyearday = [t.byyearday]), !D(t.bymonthday)) t.bymonthday = [], t.bynmonthday = [];
999
- else if (k(t.bymonthday)) {
1016
+ if (E(t.bymonth) && !O(t.bymonth) && (t.bymonth = [t.bymonth]), E(t.byyearday) && !O(t.byyearday) && D(t.byyearday) && (t.byyearday = [t.byyearday]), !E(t.bymonthday)) t.bymonthday = [], t.bynmonthday = [];
1017
+ else if (O(t.bymonthday)) {
1000
1018
  for (var i = [], a = [], n = 0; n < t.bymonthday.length; n++) {
1001
1019
  var r = t.bymonthday[n];
1002
1020
  r > 0 ? i.push(r) : r < 0 && a.push(r);
1003
1021
  }
1004
1022
  t.bymonthday = i, t.bynmonthday = a;
1005
1023
  } else t.bymonthday < 0 ? (t.bynmonthday = [t.bymonthday], t.bymonthday = []) : (t.bynmonthday = [], t.bymonthday = [t.bymonthday]);
1006
- if (D(t.byweekno) && !k(t.byweekno) && (t.byweekno = [t.byweekno]), !D(t.byweekday)) t.bynweekday = null;
1007
- else if (O(t.byweekday)) t.byweekday = [t.byweekday], t.bynweekday = null;
1008
- else if (Ee(t.byweekday)) t.byweekday = [E.fromStr(t.byweekday).weekday], t.bynweekday = null;
1009
- else if (t.byweekday instanceof E) !t.byweekday.n || t.freq > $.MONTHLY ? (t.byweekday = [t.byweekday.weekday], t.bynweekday = null) : (t.bynweekday = [[t.byweekday.weekday, t.byweekday.n]], t.byweekday = null);
1024
+ if (E(t.byweekno) && !O(t.byweekno) && (t.byweekno = [t.byweekno]), !E(t.byweekday)) t.bynweekday = null;
1025
+ else if (D(t.byweekday)) t.byweekday = [t.byweekday], t.bynweekday = null;
1026
+ else if (Pe(t.byweekday)) t.byweekday = [T.fromStr(t.byweekday).weekday], t.bynweekday = null;
1027
+ else if (t.byweekday instanceof T) !t.byweekday.n || t.freq > $.MONTHLY ? (t.byweekday = [t.byweekday.weekday], t.bynweekday = null) : (t.bynweekday = [[t.byweekday.weekday, t.byweekday.n]], t.byweekday = null);
1010
1028
  else {
1011
1029
  for (var o = [], s = [], n = 0; n < t.byweekday.length; n++) {
1012
1030
  var c = t.byweekday[n];
1013
- O(c) ? o.push(c) : Ee(c) ? o.push(E.fromStr(c).weekday) : !c.n || t.freq > $.MONTHLY ? o.push(c.weekday) : s.push([c.weekday, c.n]);
1031
+ D(c) ? o.push(c) : Pe(c) ? o.push(T.fromStr(c).weekday) : !c.n || t.freq > $.MONTHLY ? o.push(c.weekday) : s.push([c.weekday, c.n]);
1014
1032
  }
1015
- t.byweekday = F(o) ? o : null, t.bynweekday = F(s) ? s : null;
1033
+ t.byweekday = P(o) ? o : null, t.bynweekday = P(s) ? s : null;
1016
1034
  }
1017
- return D(t.byhour) ? O(t.byhour) && (t.byhour = [t.byhour]) : t.byhour = t.freq < $.HOURLY ? [t.dtstart.getUTCHours()] : null, D(t.byminute) ? O(t.byminute) && (t.byminute = [t.byminute]) : t.byminute = t.freq < $.MINUTELY ? [t.dtstart.getUTCMinutes()] : null, D(t.bysecond) ? O(t.bysecond) && (t.bysecond = [t.bysecond]) : t.bysecond = t.freq < $.SECONDLY ? [t.dtstart.getUTCSeconds()] : null, { parsedOptions: t };
1035
+ return E(t.byhour) ? D(t.byhour) && (t.byhour = [t.byhour]) : t.byhour = t.freq < $.HOURLY ? [t.dtstart.getUTCHours()] : null, E(t.byminute) ? D(t.byminute) && (t.byminute = [t.byminute]) : t.byminute = t.freq < $.MINUTELY ? [t.dtstart.getUTCMinutes()] : null, E(t.bysecond) ? D(t.bysecond) && (t.bysecond = [t.bysecond]) : t.bysecond = t.freq < $.SECONDLY ? [t.dtstart.getUTCSeconds()] : null, { parsedOptions: t };
1018
1036
  }
1019
- function dt(e) {
1037
+ function vt(e) {
1020
1038
  var t = e.dtstart.getTime() % 1e3;
1021
- if (!rt(e.freq)) return [];
1039
+ if (!ut(e.freq)) return [];
1022
1040
  var n = [];
1023
1041
  return e.byhour.forEach(function(r) {
1024
1042
  e.byminute.forEach(function(i) {
1025
1043
  e.bysecond.forEach(function(e) {
1026
- n.push(new st(r, i, e, t));
1044
+ n.push(new mt(r, i, e, t));
1027
1045
  });
1028
1046
  });
1029
1047
  }), n;
1030
1048
  }
1031
1049
  //#endregion
1032
1050
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/parsestring.js
1033
- function ft(e) {
1034
- var t = e.split("\n").map(mt).filter(function(e) {
1051
+ function yt(e) {
1052
+ var t = e.split("\n").map(xt).filter(function(e) {
1035
1053
  return e !== null;
1036
1054
  });
1037
1055
  return H(H({}, t[0]), t[1]);
1038
1056
  }
1039
- function pt(e) {
1057
+ function bt(e) {
1040
1058
  var t = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);
1041
1059
  if (!n) return t;
1042
1060
  var r = n[1], i = n[2];
1043
- return r && (t.tzid = r), t.dtstart = Ge(i), t;
1061
+ return r && (t.tzid = r), t.dtstart = Qe(i), t;
1044
1062
  }
1045
- function mt(e) {
1063
+ function xt(e) {
1046
1064
  if (e = e.replace(/^\s+|\s+$/, ""), !e.length) return null;
1047
1065
  var t = /^([A-Z]+?)[:;]/.exec(e.toUpperCase());
1048
- if (!t) return ht(e);
1066
+ if (!t) return St(e);
1049
1067
  var n = t[1];
1050
1068
  switch (n.toUpperCase()) {
1051
1069
  case "RRULE":
1052
- case "EXRULE": return ht(e);
1053
- case "DTSTART": return pt(e);
1070
+ case "EXRULE": return St(e);
1071
+ case "DTSTART": return bt(e);
1054
1072
  default: throw Error(`Unsupported RFC prop ${n} in ${e}`);
1055
1073
  }
1056
1074
  }
1057
- function ht(e) {
1058
- var t = pt(e.replace(/^RRULE:/i, ""));
1075
+ function St(e) {
1076
+ var t = bt(e.replace(/^RRULE:/i, ""));
1059
1077
  return e.replace(/^(?:RRULE|EXRULE):/i, "").split(";").forEach(function(n) {
1060
1078
  var r = n.split("="), i = r[0], a = r[1];
1061
1079
  switch (i.toUpperCase()) {
@@ -1075,20 +1093,20 @@ function ht(e) {
1075
1093
  case "BYHOUR":
1076
1094
  case "BYMINUTE":
1077
1095
  case "BYSECOND":
1078
- var o = gt(a), s = i.toLowerCase();
1096
+ var o = Ct(a), s = i.toLowerCase();
1079
1097
  t[s] = o;
1080
1098
  break;
1081
1099
  case "BYWEEKDAY":
1082
1100
  case "BYDAY":
1083
- t.byweekday = vt(a);
1101
+ t.byweekday = Tt(a);
1084
1102
  break;
1085
1103
  case "DTSTART":
1086
1104
  case "TZID":
1087
- var c = pt(e);
1105
+ var c = bt(e);
1088
1106
  t.tzid = c.tzid, t.dtstart = c.dtstart;
1089
1107
  break;
1090
1108
  case "UNTIL":
1091
- t.until = Ge(a);
1109
+ t.until = Qe(a);
1092
1110
  break;
1093
1111
  case "BYEASTER":
1094
1112
  t.byeaster = Number(a);
@@ -1097,24 +1115,24 @@ function ht(e) {
1097
1115
  }
1098
1116
  }), t;
1099
1117
  }
1100
- function gt(e) {
1101
- return e.indexOf(",") === -1 ? _t(e) : e.split(",").map(_t);
1118
+ function Ct(e) {
1119
+ return e.indexOf(",") === -1 ? wt(e) : e.split(",").map(wt);
1102
1120
  }
1103
- function _t(e) {
1121
+ function wt(e) {
1104
1122
  return /^[+-]?\d+$/.test(e) ? Number(e) : e;
1105
1123
  }
1106
- function vt(e) {
1124
+ function Tt(e) {
1107
1125
  return e.split(",").map(function(e) {
1108
1126
  if (e.length === 2) return Q[e];
1109
1127
  var t = e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
1110
1128
  if (!t || t.length < 3) throw SyntaxError(`Invalid weekday string: ${e}`);
1111
1129
  var n = Number(t[1]), r = Q[t[2]].weekday;
1112
- return new E(r, n);
1130
+ return new T(r, n);
1113
1131
  });
1114
1132
  }
1115
1133
  //#endregion
1116
1134
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/datewithzone.js
1117
- var yt = function() {
1135
+ var Et = function() {
1118
1136
  function e(e, t) {
1119
1137
  if (isNaN(e.getTime())) throw RangeError("Invalid date passed to DateWithZone");
1120
1138
  this.date = e, this.tzid = t;
@@ -1126,39 +1144,39 @@ var yt = function() {
1126
1144
  enumerable: !1,
1127
1145
  configurable: !0
1128
1146
  }), e.prototype.toString = function() {
1129
- var e = We(this.date.getTime(), this.isUTC);
1147
+ var e = Ze(this.date.getTime(), this.isUTC);
1130
1148
  return this.isUTC ? `:${e}` : `;TZID=${this.tzid}:${e}`;
1131
1149
  }, e.prototype.getTime = function() {
1132
1150
  return this.date.getTime();
1133
1151
  }, e.prototype.rezonedDate = function() {
1134
- return this.isUTC ? this.date : qe(this.date, this.tzid);
1152
+ return this.isUTC ? this.date : et(this.date, this.tzid);
1135
1153
  }, e;
1136
1154
  }();
1137
1155
  //#endregion
1138
1156
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/optionstostring.js
1139
- function bt(e) {
1140
- for (var t = [], n = "", r = Object.keys(e), i = Object.keys(Jt), a = 0; a < r.length; a++) if (r[a] !== "tzid" && I(i, r[a])) {
1157
+ function Dt(e) {
1158
+ for (var t = [], n = "", r = Object.keys(e), i = Object.keys(tn), a = 0; a < r.length; a++) if (r[a] !== "tzid" && F(i, r[a])) {
1141
1159
  var o = r[a].toUpperCase(), s = e[r[a]], c = "";
1142
- if (!(!D(s) || k(s) && !s.length)) {
1160
+ if (!(!E(s) || O(s) && !s.length)) {
1143
1161
  switch (o) {
1144
1162
  case "FREQ":
1145
1163
  c = $.FREQUENCIES[e.freq];
1146
1164
  break;
1147
1165
  case "WKST":
1148
- c = O(s) ? new E(s).toString() : s.toString();
1166
+ c = D(s) ? new T(s).toString() : s.toString();
1149
1167
  break;
1150
1168
  case "BYWEEKDAY":
1151
- o = "BYDAY", c = De(s).map(function(e) {
1152
- return e instanceof E ? e : k(e) ? new E(e[0], e[1]) : new E(e);
1169
+ o = "BYDAY", c = Fe(s).map(function(e) {
1170
+ return e instanceof T ? e : O(e) ? new T(e[0], e[1]) : new T(e);
1153
1171
  }).toString();
1154
1172
  break;
1155
1173
  case "DTSTART":
1156
- n = xt(s, e.tzid);
1174
+ n = Ot(s, e.tzid);
1157
1175
  break;
1158
1176
  case "UNTIL":
1159
- c = We(s, !e.tzid);
1177
+ c = Ze(s, !e.tzid);
1160
1178
  break;
1161
- default: if (k(s)) {
1179
+ default: if (O(s)) {
1162
1180
  for (var l = [], u = 0; u < s.length; u++) l[u] = String(s[u]);
1163
1181
  c = l.toString();
1164
1182
  } else c = String(s);
@@ -1173,32 +1191,32 @@ function bt(e) {
1173
1191
  return !!e;
1174
1192
  }).join("\n");
1175
1193
  }
1176
- function xt(e, t) {
1177
- return e ? "DTSTART" + new yt(new Date(e), t).toString() : "";
1194
+ function Ot(e, t) {
1195
+ return e ? "DTSTART" + new Et(new Date(e), t).toString() : "";
1178
1196
  }
1179
1197
  //#endregion
1180
1198
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/cache.js
1181
- function St(e, t) {
1199
+ function kt(e, t) {
1182
1200
  return Array.isArray(e) ? !Array.isArray(t) || e.length !== t.length ? !1 : e.every(function(e, n) {
1183
1201
  return e.getTime() === t[n].getTime();
1184
1202
  }) : e instanceof Date ? t instanceof Date && e.getTime() === t.getTime() : e === t;
1185
1203
  }
1186
- var Ct = function() {
1204
+ var At = function() {
1187
1205
  function e() {
1188
1206
  this.all = !1, this.before = [], this.after = [], this.between = [];
1189
1207
  }
1190
1208
  return e.prototype._cacheAdd = function(e, t, n) {
1191
- t &&= t instanceof Date ? He(t) : Ue(t), e === "all" ? this.all = t : (n._value = t, this[e].push(n));
1209
+ t &&= t instanceof Date ? Ye(t) : Xe(t), e === "all" ? this.all = t : (n._value = t, this[e].push(n));
1192
1210
  }, e.prototype._cacheGet = function(e, t) {
1193
1211
  var n = !1, r = t ? Object.keys(t) : [], i = function(e) {
1194
1212
  for (var n = 0; n < r.length; n++) {
1195
1213
  var i = r[n];
1196
- if (!St(t[i], e[i])) return !0;
1214
+ if (!kt(t[i], e[i])) return !0;
1197
1215
  }
1198
1216
  return !1;
1199
1217
  }, a = this[e];
1200
1218
  if (e === "all") n = this.all;
1201
- else if (k(a)) for (var o = 0; o < a.length; o++) {
1219
+ else if (O(a)) for (var o = 0; o < a.length; o++) {
1202
1220
  var s = a[o];
1203
1221
  if (!(r.length && i(s))) {
1204
1222
  n = s._value;
@@ -1209,9 +1227,9 @@ var Ct = function() {
1209
1227
  for (var c = new V(e, t), o = 0; o < this.all.length && c.accept(this.all[o]); o++);
1210
1228
  n = c.getValue(), this._cacheAdd(e, n, t);
1211
1229
  }
1212
- return k(n) ? Ue(n) : n instanceof Date ? He(n) : n;
1230
+ return O(n) ? Xe(n) : n instanceof Date ? Ye(n) : n;
1213
1231
  }, e;
1214
- }(), wt = U(U(U(U(U(U(U(U(U(U(U(U(U([], j(1, 31), !0), j(2, 28), !0), j(3, 31), !0), j(4, 30), !0), j(5, 31), !0), j(6, 30), !0), j(7, 31), !0), j(8, 31), !0), j(9, 30), !0), j(10, 31), !0), j(11, 30), !0), j(12, 31), !0), j(1, 7), !0), Tt = U(U(U(U(U(U(U(U(U(U(U(U(U([], j(1, 31), !0), j(2, 29), !0), j(3, 31), !0), j(4, 30), !0), j(5, 31), !0), j(6, 30), !0), j(7, 31), !0), j(8, 31), !0), j(9, 30), !0), j(10, 31), !0), j(11, 30), !0), j(12, 31), !0), j(1, 7), !0), Et = A(1, 29), Dt = A(1, 30), q = A(1, 31), J = A(1, 32), Ot = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Dt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), kt = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Et, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), At = A(-28, 0), jt = A(-29, 0), Y = A(-30, 0), X = A(-31, 0), Mt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), jt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Nt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), At, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Pt = [
1232
+ }(), jt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 28), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Mt = U(U(U(U(U(U(U(U(U(U(U(U(U([], A(1, 31), !0), A(2, 29), !0), A(3, 31), !0), A(4, 30), !0), A(5, 31), !0), A(6, 30), !0), A(7, 31), !0), A(8, 31), !0), A(9, 30), !0), A(10, 31), !0), A(11, 30), !0), A(12, 31), !0), A(1, 7), !0), Nt = k(1, 29), Pt = k(1, 30), q = k(1, 31), J = k(1, 32), Ft = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Pt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), It = U(U(U(U(U(U(U(U(U(U(U(U(U([], J, !0), Nt, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J, !0), q, !0), J, !0), q, !0), J, !0), J.slice(0, 7), !0), Lt = k(-28, 0), Rt = k(-29, 0), Y = k(-30, 0), X = k(-31, 0), zt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), Rt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Bt = U(U(U(U(U(U(U(U(U(U(U(U(U([], X, !0), Lt, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X, !0), Y, !0), X, !0), Y, !0), X, !0), X.slice(0, 7), !0), Vt = [
1215
1233
  0,
1216
1234
  31,
1217
1235
  60,
@@ -1225,7 +1243,7 @@ var Ct = function() {
1225
1243
  305,
1226
1244
  335,
1227
1245
  366
1228
- ], Ft = [
1246
+ ], Ht = [
1229
1247
  0,
1230
1248
  31,
1231
1249
  59,
@@ -1239,24 +1257,24 @@ var Ct = function() {
1239
1257
  304,
1240
1258
  334,
1241
1259
  365
1242
- ], It = (function() {
1243
- for (var e = [], t = 0; t < 55; t++) e = e.concat(A(7));
1260
+ ], Ut = (function() {
1261
+ for (var e = [], t = 0; t < 55; t++) e = e.concat(k(7));
1244
1262
  return e;
1245
1263
  })();
1246
1264
  //#endregion
1247
1265
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/yearinfo.js
1248
- function Lt(e, t) {
1249
- var n = L(e, 1, 1), r = Pe(e) ? 366 : 365, i = Pe(e + 1) ? 366 : 365, a = Le(n), o = z(n), s = H(H({
1266
+ function Wt(e, t) {
1267
+ var n = I(e, 1, 1), r = L(e) ? 366 : 365, i = L(e + 1) ? 366 : 365, a = We(n), o = z(n), s = H(H({
1250
1268
  yearlen: r,
1251
1269
  nextyearlen: i,
1252
1270
  yearordinal: a,
1253
1271
  yearweekday: o
1254
- }, Rt(e)), { wnomask: null });
1255
- if (P(t.byweekno)) return s;
1256
- s.wnomask = j(0, r + 7);
1257
- var c, l, u = c = N(7 - o + t.wkst, 7);
1258
- u >= 4 ? (u = 0, l = s.yearlen + N(o - t.wkst, 7)) : l = r - u;
1259
- for (var d = Math.floor(l / 7), f = N(l, 7), p = Math.floor(d + f / 4), m = 0; m < t.byweekno.length; m++) {
1272
+ }, Gt(e)), { wnomask: null });
1273
+ if (N(t.byweekno)) return s;
1274
+ s.wnomask = A(0, r + 7);
1275
+ var c, l, u = c = M(7 - o + t.wkst, 7);
1276
+ u >= 4 ? (u = 0, l = s.yearlen + M(o - t.wkst, 7)) : l = r - u;
1277
+ for (var d = Math.floor(l / 7), f = M(l, 7), p = Math.floor(d + f / 4), m = 0; m < t.byweekno.length; m++) {
1260
1278
  var h = t.byweekno[m];
1261
1279
  if (h < 0 && (h += p + 1), h > 0 && h <= p) {
1262
1280
  var g = void 0;
@@ -1264,77 +1282,77 @@ function Lt(e, t) {
1264
1282
  for (var _ = 0; _ < 7 && (s.wnomask[g] = 1, g++, s.wdaymask[g] !== t.wkst); _++);
1265
1283
  }
1266
1284
  }
1267
- if (I(t.byweekno, 1)) {
1285
+ if (F(t.byweekno, 1)) {
1268
1286
  var g = u + p * 7;
1269
1287
  if (u !== c && (g -= 7 - c), g < r) for (var m = 0; m < 7 && (s.wnomask[g] = 1, g += 1, s.wdaymask[g] !== t.wkst); m++);
1270
1288
  }
1271
1289
  if (u) {
1272
1290
  var v = void 0;
1273
- if (I(t.byweekno, -1)) v = -1;
1291
+ if (F(t.byweekno, -1)) v = -1;
1274
1292
  else {
1275
- var y = z(L(e - 1, 1, 1)), b = N(7 - y.valueOf() + t.wkst, 7), ee = Pe(e - 1) ? 366 : 365, x = void 0;
1276
- b >= 4 ? (b = 0, x = ee + N(y - t.wkst, 7)) : x = r - u, v = Math.floor(52 + N(x, 7) / 4);
1293
+ var y = z(I(e - 1, 1, 1)), b = M(7 - y.valueOf() + t.wkst, 7), ee = L(e - 1) ? 366 : 365, x = void 0;
1294
+ b >= 4 ? (b = 0, x = ee + M(y - t.wkst, 7)) : x = r - u, v = Math.floor(52 + M(x, 7) / 4);
1277
1295
  }
1278
- if (I(t.byweekno, v)) for (var g = 0; g < u; g++) s.wnomask[g] = 1;
1296
+ if (F(t.byweekno, v)) for (var g = 0; g < u; g++) s.wnomask[g] = 1;
1279
1297
  }
1280
1298
  return s;
1281
1299
  }
1282
- function Rt(e) {
1283
- var t = Pe(e) ? 366 : 365, n = z(L(e, 1, 1));
1300
+ function Gt(e) {
1301
+ var t = L(e) ? 366 : 365, n = z(I(e, 1, 1));
1284
1302
  return t === 365 ? {
1285
- mmask: wt,
1286
- mdaymask: kt,
1287
- nmdaymask: Nt,
1288
- wdaymask: It.slice(n),
1289
- mrange: Ft
1303
+ mmask: jt,
1304
+ mdaymask: It,
1305
+ nmdaymask: Bt,
1306
+ wdaymask: Ut.slice(n),
1307
+ mrange: Ht
1290
1308
  } : {
1291
- mmask: Tt,
1292
- mdaymask: Ot,
1293
- nmdaymask: Mt,
1294
- wdaymask: It.slice(n),
1295
- mrange: Pt
1309
+ mmask: Mt,
1310
+ mdaymask: Ft,
1311
+ nmdaymask: zt,
1312
+ wdaymask: Ut.slice(n),
1313
+ mrange: Vt
1296
1314
  };
1297
1315
  }
1298
1316
  //#endregion
1299
1317
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/monthinfo.js
1300
- function zt(e, t, n, r, i, a) {
1318
+ function Kt(e, t, n, r, i, a) {
1301
1319
  var o = {
1302
1320
  lastyear: e,
1303
1321
  lastmonth: t,
1304
1322
  nwdaymask: []
1305
1323
  }, s = [];
1306
1324
  if (a.freq === $.YEARLY) {
1307
- if (P(a.bymonth)) s = [[0, n]];
1325
+ if (N(a.bymonth)) s = [[0, n]];
1308
1326
  else for (var c = 0; c < a.bymonth.length; c++) t = a.bymonth[c], s.push(r.slice(t - 1, t + 1));
1309
1327
  } else a.freq === $.MONTHLY && (s = [r.slice(t - 1, t + 1)]);
1310
- if (P(s)) return o;
1311
- o.nwdaymask = j(0, n);
1328
+ if (N(s)) return o;
1329
+ o.nwdaymask = A(0, n);
1312
1330
  for (var c = 0; c < s.length; c++) for (var l = s[c], u = l[0], d = l[1] - 1, f = 0; f < a.bynweekday.length; f++) {
1313
1331
  var p = void 0, m = a.bynweekday[f], h = m[0], g = m[1];
1314
- g < 0 ? (p = d + (g + 1) * 7, p -= N(i[p] - h, 7)) : (p = u + (g - 1) * 7, p += N(7 - i[p] + h, 7)), u <= p && p <= d && (o.nwdaymask[p] = 1);
1332
+ g < 0 ? (p = d + (g + 1) * 7, p -= M(i[p] - h, 7)) : (p = u + (g - 1) * 7, p += M(7 - i[p] + h, 7)), u <= p && p <= d && (o.nwdaymask[p] = 1);
1315
1333
  }
1316
1334
  return o;
1317
1335
  }
1318
1336
  //#endregion
1319
1337
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/easter.js
1320
- function Bt(e, t) {
1338
+ function qt(e, t) {
1321
1339
  t === void 0 && (t = 0);
1322
1340
  var n = e % 19, r = Math.floor(e / 100), i = e % 100, a = Math.floor(r / 4), o = r % 4, s = Math.floor((r + 8) / 25), c = Math.floor((r - s + 1) / 3), l = Math.floor(19 * n + r - a - c + 15) % 30, u = Math.floor(i / 4), d = i % 4, f = Math.floor(32 + 2 * o + 2 * u - l - d) % 7, p = Math.floor((n + 11 * l + 22 * f) / 451), m = Math.floor((l + f - 7 * p + 114) / 31), h = (l + f - 7 * p + 114) % 31 + 1, g = Date.UTC(e, m - 1, h + t);
1323
1341
  return [Math.ceil((g - Date.UTC(e, 0, 1)) / 864e5)];
1324
1342
  }
1325
1343
  //#endregion
1326
1344
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterinfo/index.js
1327
- var Vt = function() {
1345
+ var Jt = function() {
1328
1346
  function e(e) {
1329
1347
  this.options = e;
1330
1348
  }
1331
1349
  return e.prototype.rebuild = function(e, t) {
1332
1350
  var n = this.options;
1333
- if (e !== this.lastyear && (this.yearinfo = Lt(e, n)), F(n.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
1351
+ if (e !== this.lastyear && (this.yearinfo = Wt(e, n)), P(n.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
1334
1352
  var r = this.yearinfo, i = r.yearlen, a = r.mrange, o = r.wdaymask;
1335
- this.monthinfo = zt(e, t, i, a, o, n);
1353
+ this.monthinfo = Kt(e, t, i, a, o, n);
1336
1354
  }
1337
- D(n.byeaster) && (this.eastermask = Bt(e, n.byeaster));
1355
+ E(n.byeaster) && (this.eastermask = qt(e, n.byeaster));
1338
1356
  }, Object.defineProperty(e.prototype, "lastyear", {
1339
1357
  get: function() {
1340
1358
  return this.monthinfo ? this.monthinfo.lastyear : null;
@@ -1409,26 +1427,26 @@ var Vt = function() {
1409
1427
  configurable: !0
1410
1428
  }), e.prototype.ydayset = function() {
1411
1429
  return [
1412
- A(this.yearlen),
1430
+ k(this.yearlen),
1413
1431
  0,
1414
1432
  this.yearlen
1415
1433
  ];
1416
1434
  }, e.prototype.mdayset = function(e, t) {
1417
- for (var n = this.mrange[t - 1], r = this.mrange[t], i = j(null, this.yearlen), a = n; a < r; a++) i[a] = a;
1435
+ for (var n = this.mrange[t - 1], r = this.mrange[t], i = A(null, this.yearlen), a = n; a < r; a++) i[a] = a;
1418
1436
  return [
1419
1437
  i,
1420
1438
  n,
1421
1439
  r
1422
1440
  ];
1423
1441
  }, e.prototype.wdayset = function(e, t, n) {
1424
- for (var r = j(null, this.yearlen + 7), i = Le(L(e, t, n)) - this.yearordinal, a = i, o = 0; o < 7 && (r[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); o++);
1442
+ for (var r = A(null, this.yearlen + 7), i = We(I(e, t, n)) - this.yearordinal, a = i, o = 0; o < 7 && (r[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); o++);
1425
1443
  return [
1426
1444
  r,
1427
1445
  a,
1428
1446
  i
1429
1447
  ];
1430
1448
  }, e.prototype.ddayset = function(e, t, n) {
1431
- var r = j(null, this.yearlen), i = Le(L(e, t, n)) - this.yearordinal;
1449
+ var r = A(null, this.yearlen), i = We(I(e, t, n)) - this.yearordinal;
1432
1450
  return r[i] = i, [
1433
1451
  r,
1434
1452
  i,
@@ -1441,11 +1459,11 @@ var Vt = function() {
1441
1459
  }), B(a), a;
1442
1460
  }, e.prototype.mtimeset = function(e, t, n, r) {
1443
1461
  var i = this.options.bysecond.map(function(n) {
1444
- return new st(e, t, n, r);
1462
+ return new mt(e, t, n, r);
1445
1463
  });
1446
1464
  return B(i), i;
1447
1465
  }, e.prototype.stimeset = function(e, t, n, r) {
1448
- return [new st(e, t, n, r)];
1466
+ return [new mt(e, t, n, r)];
1449
1467
  }, e.prototype.getdayset = function(e) {
1450
1468
  switch (e) {
1451
1469
  case G.YEARLY: return this.ydayset.bind(this);
@@ -1464,85 +1482,85 @@ var Vt = function() {
1464
1482
  }();
1465
1483
  //#endregion
1466
1484
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/poslist.js
1467
- function Ht(e, t, n, r, i, a) {
1485
+ function Yt(e, t, n, r, i, a) {
1468
1486
  for (var o = [], s = 0; s < e.length; s++) {
1469
1487
  var c = void 0, l = void 0, u = e[s];
1470
- u < 0 ? (c = Math.floor(u / t.length), l = N(u, t.length)) : (c = Math.floor((u - 1) / t.length), l = N(u - 1, t.length));
1488
+ u < 0 ? (c = Math.floor(u / t.length), l = M(u, t.length)) : (c = Math.floor((u - 1) / t.length), l = M(u - 1, t.length));
1471
1489
  for (var d = [], f = n; f < r; f++) {
1472
1490
  var p = a[f];
1473
- D(p) && d.push(p);
1491
+ E(p) && d.push(p);
1474
1492
  }
1475
1493
  var m = void 0;
1476
1494
  m = c < 0 ? d.slice(c)[0] : d[c];
1477
- var h = t[l], g = Ve(Re(i.yearordinal + m), h);
1478
- I(o, g) || o.push(g);
1495
+ var h = t[l], g = Je(Ge(i.yearordinal + m), h);
1496
+ F(o, g) || o.push(g);
1479
1497
  }
1480
1498
  return B(o), o;
1481
1499
  }
1482
1500
  //#endregion
1483
1501
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iter/index.js
1484
- function Ut(e, t) {
1502
+ function Xt(e, t) {
1485
1503
  var n = t.dtstart, r = t.freq, i = t.interval, a = t.until, o = t.bysetpos, s = t.count;
1486
1504
  if (s === 0 || i === 0) return Z(e);
1487
- var c = ct.fromDate(n), l = new Vt(t);
1505
+ var c = ht.fromDate(n), l = new Jt(t);
1488
1506
  l.rebuild(c.year, c.month);
1489
- for (var u = qt(l, c, t);;) {
1490
- var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h = Kt(f, p, m, l, t);
1491
- if (F(o)) for (var g = Ht(o, u, p, m, l, f), _ = 0; _ < g.length; _++) {
1507
+ for (var u = en(l, c, t);;) {
1508
+ var d = l.getdayset(r)(c.year, c.month, c.day), f = d[0], p = d[1], m = d[2], h = $t(f, p, m, l, t);
1509
+ if (P(o)) for (var g = Yt(o, u, p, m, l, f), _ = 0; _ < g.length; _++) {
1492
1510
  var v = g[_];
1493
1511
  if (a && v > a) return Z(e);
1494
1512
  if (v >= n) {
1495
- var y = Gt(v, t);
1513
+ var y = Qt(v, t);
1496
1514
  if (!e.accept(y) || s && (--s, !s)) return Z(e);
1497
1515
  }
1498
1516
  }
1499
1517
  else for (var _ = p; _ < m; _++) {
1500
1518
  var b = f[_];
1501
- if (D(b)) for (var ee = Re(l.yearordinal + b), x = 0; x < u.length; x++) {
1502
- var te = u[x], v = Ve(ee, te);
1519
+ if (E(b)) for (var ee = Ge(l.yearordinal + b), x = 0; x < u.length; x++) {
1520
+ var te = u[x], v = Je(ee, te);
1503
1521
  if (a && v > a) return Z(e);
1504
1522
  if (v >= n) {
1505
- var y = Gt(v, t);
1523
+ var y = Qt(v, t);
1506
1524
  if (!e.accept(y) || s && (--s, !s)) return Z(e);
1507
1525
  }
1508
1526
  }
1509
1527
  }
1510
1528
  if (t.interval === 0 || (c.add(t, h), c.year > 9999)) return Z(e);
1511
- rt(r) || (u = l.gettimeset(r)(c.hour, c.minute, c.second, 0)), l.rebuild(c.year, c.month);
1529
+ ut(r) || (u = l.gettimeset(r)(c.hour, c.minute, c.second, 0)), l.rebuild(c.year, c.month);
1512
1530
  }
1513
1531
  }
1514
- function Wt(e, t, n) {
1532
+ function Zt(e, t, n) {
1515
1533
  var r = n.bymonth, i = n.byweekno, a = n.byweekday, o = n.byeaster, s = n.bymonthday, c = n.bynmonthday, l = n.byyearday;
1516
- return F(r) && !I(r, e.mmask[t]) || F(i) && !e.wnomask[t] || F(a) && !I(a, e.wdaymask[t]) || F(e.nwdaymask) && !e.nwdaymask[t] || o !== null && !I(e.eastermask, t) || (F(s) || F(c)) && !I(s, e.mdaymask[t]) && !I(c, e.nmdaymask[t]) || F(l) && (t < e.yearlen && !I(l, t + 1) && !I(l, -e.yearlen + t) || t >= e.yearlen && !I(l, t + 1 - e.yearlen) && !I(l, -e.nextyearlen + t - e.yearlen));
1534
+ return P(r) && !F(r, e.mmask[t]) || P(i) && !e.wnomask[t] || P(a) && !F(a, e.wdaymask[t]) || P(e.nwdaymask) && !e.nwdaymask[t] || o !== null && !F(e.eastermask, t) || (P(s) || P(c)) && !F(s, e.mdaymask[t]) && !F(c, e.nmdaymask[t]) || P(l) && (t < e.yearlen && !F(l, t + 1) && !F(l, -e.yearlen + t) || t >= e.yearlen && !F(l, t + 1 - e.yearlen) && !F(l, -e.nextyearlen + t - e.yearlen));
1517
1535
  }
1518
- function Gt(e, t) {
1519
- return new yt(e, t.tzid).rezonedDate();
1536
+ function Qt(e, t) {
1537
+ return new Et(e, t.tzid).rezonedDate();
1520
1538
  }
1521
1539
  function Z(e) {
1522
1540
  return e.getValue();
1523
1541
  }
1524
- function Kt(e, t, n, r, i) {
1542
+ function $t(e, t, n, r, i) {
1525
1543
  for (var a = !1, o = t; o < n; o++) {
1526
1544
  var s = e[o];
1527
- a = Wt(r, s, i), a && (e[s] = null);
1545
+ a = Zt(r, s, i), a && (e[s] = null);
1528
1546
  }
1529
1547
  return a;
1530
1548
  }
1531
- function qt(e, t, n) {
1549
+ function en(e, t, n) {
1532
1550
  var r = n.freq, i = n.byhour, a = n.byminute, o = n.bysecond;
1533
- return rt(r) ? dt(n) : r >= $.HOURLY && F(i) && !I(i, t.hour) || r >= $.MINUTELY && F(a) && !I(a, t.minute) || r >= $.SECONDLY && F(o) && !I(o, t.second) ? [] : e.gettimeset(r)(t.hour, t.minute, t.second, t.millisecond);
1551
+ return ut(r) ? vt(n) : r >= $.HOURLY && P(i) && !F(i, t.hour) || r >= $.MINUTELY && P(a) && !F(a, t.minute) || r >= $.SECONDLY && P(o) && !F(o, t.second) ? [] : e.gettimeset(r)(t.hour, t.minute, t.second, t.millisecond);
1534
1552
  }
1535
1553
  //#endregion
1536
1554
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrule.js
1537
1555
  var Q = {
1538
- MO: new E(0),
1539
- TU: new E(1),
1540
- WE: new E(2),
1541
- TH: new E(3),
1542
- FR: new E(4),
1543
- SA: new E(5),
1544
- SU: new E(6)
1545
- }, Jt = {
1556
+ MO: new T(0),
1557
+ TU: new T(1),
1558
+ WE: new T(2),
1559
+ TH: new T(3),
1560
+ FR: new T(4),
1561
+ SA: new T(5),
1562
+ SU: new T(6)
1563
+ }, tn = {
1546
1564
  freq: G.YEARLY,
1547
1565
  dtstart: null,
1548
1566
  interval: 1,
@@ -1562,26 +1580,26 @@ var Q = {
1562
1580
  byminute: null,
1563
1581
  bysecond: null,
1564
1582
  byeaster: null
1565
- }, Yt = Object.keys(Jt), $ = function() {
1583
+ }, nn = Object.keys(tn), $ = function() {
1566
1584
  function e(e, t) {
1567
- e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new Ct(), this.origOptions = lt(e);
1568
- var n = ut(e).parsedOptions;
1585
+ e === void 0 && (e = {}), t === void 0 && (t = !1), this._cache = t ? null : new At(), this.origOptions = gt(e);
1586
+ var n = _t(e).parsedOptions;
1569
1587
  this.options = n;
1570
1588
  }
1571
1589
  return e.parseText = function(e, t) {
1572
- return nt(e, t);
1590
+ return lt(e, t);
1573
1591
  }, e.fromText = function(e, t) {
1574
- return it(e, t);
1592
+ return dt(e, t);
1575
1593
  }, e.fromString = function(t) {
1576
1594
  return new e(e.parseString(t) || void 0);
1577
1595
  }, e.prototype._iter = function(e) {
1578
- return Ut(e, this.options);
1596
+ return Xt(e, this.options);
1579
1597
  }, e.prototype._cacheGet = function(e, t) {
1580
1598
  return this._cache ? this._cache._cacheGet(e, t) : !1;
1581
1599
  }, e.prototype._cacheAdd = function(e, t, n) {
1582
1600
  if (this._cache) return this._cache._cacheAdd(e, t, n);
1583
1601
  }, e.prototype.all = function(e) {
1584
- if (e) return this._iter(new Xe("all", {}, e));
1602
+ if (e) return this._iter(new rt("all", {}, e));
1585
1603
  var t = this._cacheGet("all");
1586
1604
  return t === !1 && (t = this._iter(new V("all", {})), this._cacheAdd("all", t)), t;
1587
1605
  }, e.prototype.between = function(e, t, n, r) {
@@ -1591,7 +1609,7 @@ var Q = {
1591
1609
  after: e,
1592
1610
  inc: n
1593
1611
  };
1594
- if (r) return this._iter(new Xe("between", i, r));
1612
+ if (r) return this._iter(new rt("between", i, r));
1595
1613
  var a = this._cacheGet("between", i);
1596
1614
  return a === !1 && (a = this._iter(new V("between", i)), this._cacheAdd("between", a, i)), a;
1597
1615
  }, e.prototype.before = function(e, t) {
@@ -1611,11 +1629,11 @@ var Q = {
1611
1629
  }, e.prototype.count = function() {
1612
1630
  return this.all().length;
1613
1631
  }, e.prototype.toString = function() {
1614
- return bt(this.origOptions);
1632
+ return Dt(this.origOptions);
1615
1633
  }, e.prototype.toText = function(e, t, n) {
1616
- return at(this, e, t, n);
1634
+ return ft(this, e, t, n);
1617
1635
  }, e.prototype.isFullyConvertibleToText = function() {
1618
- return ot(this);
1636
+ return pt(this);
1619
1637
  }, e.prototype.clone = function() {
1620
1638
  return new e(this.origOptions);
1621
1639
  }, e.FREQUENCIES = [
@@ -1626,11 +1644,11 @@ var Q = {
1626
1644
  "HOURLY",
1627
1645
  "MINUTELY",
1628
1646
  "SECONDLY"
1629
- ], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString = ft, e.optionsToString = bt, e;
1647
+ ], e.YEARLY = G.YEARLY, e.MONTHLY = G.MONTHLY, e.WEEKLY = G.WEEKLY, e.DAILY = G.DAILY, e.HOURLY = G.HOURLY, e.MINUTELY = G.MINUTELY, e.SECONDLY = G.SECONDLY, e.MO = Q.MO, e.TU = Q.TU, e.WE = Q.WE, e.TH = Q.TH, e.FR = Q.FR, e.SA = Q.SA, e.SU = Q.SU, e.parseString = yt, e.optionsToString = Dt, e;
1630
1648
  }();
1631
1649
  //#endregion
1632
1650
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/iterset.js
1633
- function Xt(e, t, n, r, i, a) {
1651
+ function rn(e, t, n, r, i, a) {
1634
1652
  var o = {}, s = e.accept;
1635
1653
  function c(e, t) {
1636
1654
  n.forEach(function(n) {
@@ -1640,7 +1658,7 @@ function Xt(e, t, n, r, i, a) {
1640
1658
  });
1641
1659
  }
1642
1660
  i.forEach(function(e) {
1643
- var t = new yt(e, a).rezonedDate();
1661
+ var t = new Et(e, a).rezonedDate();
1644
1662
  o[Number(t)] = !0;
1645
1663
  }), e.accept = function(e) {
1646
1664
  var t = Number(e);
@@ -1650,11 +1668,11 @@ function Xt(e, t, n, r, i, a) {
1650
1668
  return o[t] ? !0 : (o[t] = !0, s.call(this, e));
1651
1669
  });
1652
1670
  for (var l = 0; l < r.length; l++) {
1653
- var u = new yt(r[l], a).rezonedDate();
1671
+ var u = new Et(r[l], a).rezonedDate();
1654
1672
  if (!e.accept(new Date(u.getTime()))) break;
1655
1673
  }
1656
1674
  t.forEach(function(t) {
1657
- Ut(e, t.options);
1675
+ Xt(e, t.options);
1658
1676
  });
1659
1677
  var d = e._result;
1660
1678
  switch (B(d), e.method) {
@@ -1666,7 +1684,7 @@ function Xt(e, t, n, r, i, a) {
1666
1684
  }
1667
1685
  //#endregion
1668
1686
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rrulestr.js
1669
- var Zt = {
1687
+ var an = {
1670
1688
  dtstart: null,
1671
1689
  cache: !1,
1672
1690
  unfold: !1,
@@ -1674,26 +1692,26 @@ var Zt = {
1674
1692
  compatible: !1,
1675
1693
  tzid: null
1676
1694
  };
1677
- function Qt(e, t) {
1678
- var n = [], r = [], i = [], a = [], o = pt(e), s = o.dtstart, c = o.tzid;
1679
- return on(e, t.unfold).forEach(function(e) {
1695
+ function on(e, t) {
1696
+ var n = [], r = [], i = [], a = [], o = bt(e), s = o.dtstart, c = o.tzid;
1697
+ return pn(e, t.unfold).forEach(function(e) {
1680
1698
  if (e) {
1681
- var t = an(e), o = t.name, s = t.parms, l = t.value;
1699
+ var t = fn(e), o = t.name, s = t.parms, l = t.value;
1682
1700
  switch (o.toUpperCase()) {
1683
1701
  case "RRULE":
1684
1702
  if (s.length) throw Error(`unsupported RRULE parm: ${s.join(",")}`);
1685
- n.push(ft(e));
1703
+ n.push(yt(e));
1686
1704
  break;
1687
1705
  case "RDATE":
1688
1706
  var u = (/RDATE(?:;TZID=([^:=]+))?/i.exec(e) ?? [])[1];
1689
- u && !c && (c = u), r = r.concat(cn(l, s));
1707
+ u && !c && (c = u), r = r.concat(hn(l, s));
1690
1708
  break;
1691
1709
  case "EXRULE":
1692
1710
  if (s.length) throw Error(`unsupported EXRULE parm: ${s.join(",")}`);
1693
- i.push(ft(l));
1711
+ i.push(yt(l));
1694
1712
  break;
1695
1713
  case "EXDATE":
1696
- a = a.concat(cn(l, s));
1714
+ a = a.concat(hn(l, s));
1697
1715
  break;
1698
1716
  case "DTSTART": break;
1699
1717
  default: throw Error("unsupported property: " + o);
@@ -1708,52 +1726,52 @@ function Qt(e, t) {
1708
1726
  exdatevals: a
1709
1727
  };
1710
1728
  }
1711
- function $t(e, t) {
1712
- var n = Qt(e, t), r = n.rrulevals, i = n.rdatevals, a = n.exrulevals, o = n.exdatevals, s = n.dtstart, c = n.tzid, l = t.cache === !1;
1729
+ function sn(e, t) {
1730
+ var n = on(e, t), r = n.rrulevals, i = n.rdatevals, a = n.exrulevals, o = n.exdatevals, s = n.dtstart, c = n.tzid, l = t.cache === !1;
1713
1731
  if (t.compatible && (t.forceset = !0, t.unfold = !0), t.forceset || r.length > 1 || i.length || a.length || o.length) {
1714
- var u = new un(l);
1732
+ var u = new _n(l);
1715
1733
  return u.dtstart(s), u.tzid(c || void 0), r.forEach(function(e) {
1716
- u.rrule(new $(tn(e, s, c), l));
1734
+ u.rrule(new $(ln(e, s, c), l));
1717
1735
  }), i.forEach(function(e) {
1718
1736
  u.rdate(e);
1719
1737
  }), a.forEach(function(e) {
1720
- u.exrule(new $(tn(e, s, c), l));
1738
+ u.exrule(new $(ln(e, s, c), l));
1721
1739
  }), o.forEach(function(e) {
1722
1740
  u.exdate(e);
1723
1741
  }), t.compatible && t.dtstart && u.rdate(s), u;
1724
1742
  }
1725
1743
  var d = r[0] || {};
1726
- return new $(tn(d, d.dtstart || t.dtstart || s, d.tzid || t.tzid || c), l);
1744
+ return new $(ln(d, d.dtstart || t.dtstart || s, d.tzid || t.tzid || c), l);
1727
1745
  }
1728
- function en(e, t) {
1729
- return t === void 0 && (t = {}), $t(e, nn(t));
1746
+ function cn(e, t) {
1747
+ return t === void 0 && (t = {}), sn(e, un(t));
1730
1748
  }
1731
- function tn(e, t, n) {
1749
+ function ln(e, t, n) {
1732
1750
  return H(H({}, e), {
1733
1751
  dtstart: t,
1734
1752
  tzid: n
1735
1753
  });
1736
1754
  }
1737
- function nn(e) {
1738
- var t = [], n = Object.keys(e), r = Object.keys(Zt);
1755
+ function un(e) {
1756
+ var t = [], n = Object.keys(e), r = Object.keys(an);
1739
1757
  if (n.forEach(function(e) {
1740
- I(r, e) || t.push(e);
1758
+ F(r, e) || t.push(e);
1741
1759
  }), t.length) throw Error("Invalid options: " + t.join(", "));
1742
- return H(H({}, Zt), e);
1760
+ return H(H({}, an), e);
1743
1761
  }
1744
- function rn(e) {
1762
+ function dn(e) {
1745
1763
  if (e.indexOf(":") === -1) return {
1746
1764
  name: "RRULE",
1747
1765
  value: e
1748
1766
  };
1749
- var t = Oe(e, ":", 1);
1767
+ var t = Ie(e, ":", 1);
1750
1768
  return {
1751
1769
  name: t[0],
1752
1770
  value: t[1]
1753
1771
  };
1754
1772
  }
1755
- function an(e) {
1756
- var t = rn(e), n = t.name, r = t.value, i = n.split(";");
1773
+ function fn(e) {
1774
+ var t = dn(e), n = t.name, r = t.value, i = n.split(";");
1757
1775
  if (!i) throw Error("empty property name");
1758
1776
  return {
1759
1777
  name: i[0].toUpperCase(),
@@ -1761,7 +1779,7 @@ function an(e) {
1761
1779
  value: r
1762
1780
  };
1763
1781
  }
1764
- function on(e, t) {
1782
+ function pn(e, t) {
1765
1783
  if (t === void 0 && (t = !1), e &&= e.trim(), !e) throw Error("Invalid empty string");
1766
1784
  if (!t) return e.split(/\s/);
1767
1785
  for (var n = e.split("\n"), r = 0; r < n.length;) {
@@ -1770,19 +1788,19 @@ function on(e, t) {
1770
1788
  }
1771
1789
  return n;
1772
1790
  }
1773
- function sn(e) {
1791
+ function mn(e) {
1774
1792
  e.forEach(function(e) {
1775
1793
  if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e)) throw Error("unsupported RDATE/EXDATE parm: " + e);
1776
1794
  });
1777
1795
  }
1778
- function cn(e, t) {
1779
- return sn(t), e.split(",").map(function(e) {
1780
- return Ge(e);
1796
+ function hn(e, t) {
1797
+ return mn(t), e.split(",").map(function(e) {
1798
+ return Qe(e);
1781
1799
  });
1782
1800
  }
1783
1801
  //#endregion
1784
1802
  //#region ../../node_modules/.pnpm/rrule@2.8.1/node_modules/rrule/dist/esm/rruleset.js
1785
- function ln(e) {
1803
+ function gn(e) {
1786
1804
  var t = this;
1787
1805
  return function(n) {
1788
1806
  if (n !== void 0 && (t[`_${e}`] = n), t[`_${e}`] !== void 0) return t[`_${e}`];
@@ -1792,30 +1810,30 @@ function ln(e) {
1792
1810
  }
1793
1811
  };
1794
1812
  }
1795
- var un = function(e) {
1796
- Ye(t, e);
1813
+ var _n = function(e) {
1814
+ nt(t, e);
1797
1815
  function t(t) {
1798
1816
  t === void 0 && (t = !1);
1799
1817
  var n = e.call(this, {}, t) || this;
1800
- return n.dtstart = ln.apply(n, ["dtstart"]), n.tzid = ln.apply(n, ["tzid"]), n._rrule = [], n._rdate = [], n._exrule = [], n._exdate = [], n;
1818
+ return n.dtstart = gn.apply(n, ["dtstart"]), n.tzid = gn.apply(n, ["tzid"]), n._rrule = [], n._rdate = [], n._exrule = [], n._exdate = [], n;
1801
1819
  }
1802
1820
  return t.prototype._iter = function(e) {
1803
- return Xt(e, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
1821
+ return rn(e, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
1804
1822
  }, t.prototype.rrule = function(e) {
1805
- dn(e, this._rrule);
1823
+ vn(e, this._rrule);
1806
1824
  }, t.prototype.exrule = function(e) {
1807
- dn(e, this._exrule);
1825
+ vn(e, this._exrule);
1808
1826
  }, t.prototype.rdate = function(e) {
1809
- fn(e, this._rdate);
1827
+ yn(e, this._rdate);
1810
1828
  }, t.prototype.exdate = function(e) {
1811
- fn(e, this._exdate);
1829
+ yn(e, this._exdate);
1812
1830
  }, t.prototype.rrules = function() {
1813
1831
  return this._rrule.map(function(e) {
1814
- return en(e.toString());
1832
+ return cn(e.toString());
1815
1833
  });
1816
1834
  }, t.prototype.exrules = function() {
1817
1835
  return this._exrule.map(function(e) {
1818
- return en(e.toString());
1836
+ return cn(e.toString());
1819
1837
  });
1820
1838
  }, t.prototype.rdates = function() {
1821
1839
  return this._rdate.map(function(e) {
@@ -1827,7 +1845,7 @@ var un = function(e) {
1827
1845
  });
1828
1846
  }, t.prototype.valueOf = function() {
1829
1847
  var e = [];
1830
- return !this._rrule.length && this._dtstart && (e = e.concat(bt({ dtstart: this._dtstart }))), this._rrule.forEach(function(t) {
1848
+ return !this._rrule.length && this._dtstart && (e = e.concat(Dt({ dtstart: this._dtstart }))), this._rrule.forEach(function(t) {
1831
1849
  e = e.concat(t.toString().split("\n"));
1832
1850
  }), this._exrule.forEach(function(t) {
1833
1851
  e = e.concat(t.toString().split("\n").map(function(e) {
@@ -1835,7 +1853,7 @@ var un = function(e) {
1835
1853
  }).filter(function(e) {
1836
1854
  return !/^DTSTART/.test(e);
1837
1855
  }));
1838
- }), this._rdate.length && e.push(pn("RDATE", this._rdate, this.tzid())), this._exdate.length && e.push(pn("EXDATE", this._exdate, this.tzid())), e;
1856
+ }), this._rdate.length && e.push(bn("RDATE", this._rdate, this.tzid())), this._exdate.length && e.push(bn("EXDATE", this._exdate, this.tzid())), e;
1839
1857
  }, t.prototype.toString = function() {
1840
1858
  return this.valueOf().join("\n");
1841
1859
  }, t.prototype.clone = function() {
@@ -1851,28 +1869,28 @@ var un = function(e) {
1851
1869
  }), e;
1852
1870
  }, t;
1853
1871
  }($);
1854
- function dn(e, t) {
1872
+ function vn(e, t) {
1855
1873
  if (!(e instanceof $)) throw TypeError(String(e) + " is not RRule instance");
1856
- I(t.map(String), String(e)) || t.push(e);
1874
+ F(t.map(String), String(e)) || t.push(e);
1857
1875
  }
1858
- function fn(e, t) {
1876
+ function yn(e, t) {
1859
1877
  if (!(e instanceof Date)) throw TypeError(String(e) + " is not Date instance");
1860
- I(t.map(Number), Number(e)) || (t.push(e), B(t));
1878
+ F(t.map(Number), Number(e)) || (t.push(e), B(t));
1861
1879
  }
1862
- function pn(e, t, n) {
1880
+ function bn(e, t, n) {
1863
1881
  var r = !n || n.toUpperCase() === "UTC";
1864
1882
  return `${r ? `${e}:` : `${e};TZID=${n}:`}${t.map(function(e) {
1865
- return We(e.valueOf(), r);
1883
+ return Ze(e.valueOf(), r);
1866
1884
  }).join(",")}`;
1867
1885
  }
1868
1886
  //#endregion
1869
1887
  //#region src/refreshScheduleOccurrences.ts
1870
- var mn = {
1888
+ var xn = {
1871
1889
  hourly: $.HOURLY,
1872
1890
  daily: $.DAILY,
1873
1891
  weekly: $.WEEKLY,
1874
1892
  monthly: $.MONTHLY
1875
- }, hn = [
1893
+ }, Sn = [
1876
1894
  $.MO,
1877
1895
  $.TU,
1878
1896
  $.WE,
@@ -1881,7 +1899,7 @@ var mn = {
1881
1899
  $.SA,
1882
1900
  $.SU
1883
1901
  ];
1884
- function gn(e, t) {
1902
+ function Cn(e, t) {
1885
1903
  let n = new Intl.DateTimeFormat("en-US", {
1886
1904
  timeZone: t,
1887
1905
  hourCycle: "h23",
@@ -1894,61 +1912,61 @@ function gn(e, t) {
1894
1912
  }).formatToParts(new Date(e)), r = (e) => Number(n.find((t) => t.type === e)?.value);
1895
1913
  return Date.UTC(r("year"), r("month") - 1, r("day"), r("hour"), r("minute"), r("second")) - e;
1896
1914
  }
1897
- var _n = 864e5;
1898
- function vn(e, t) {
1899
- let n = e.getTime(), r = gn(n - _n, t), i = gn(n + _n, t), a = [n - r, n - i].filter((e) => e + gn(e, t) === n);
1915
+ var wn = 864e5;
1916
+ function Tn(e, t) {
1917
+ let n = e.getTime(), r = Cn(n - wn, t), i = Cn(n + wn, t), a = [n - r, n - i].filter((e) => e + Cn(e, t) === n);
1900
1918
  return new Date(a.length ? Math.min(...a) : n - r);
1901
1919
  }
1902
- function yn(e, t = 3, n = /* @__PURE__ */ new Date()) {
1920
+ function En(e, t = 3, n = /* @__PURE__ */ new Date()) {
1903
1921
  let [r, i] = (e.freq === "hourly" ? "00:00" : e.time ?? "00:00").split(":").map(Number), [a, o, s] = e.startDate.split("-").map(Number), c = e.freq === "weekly", l = e.freq === "monthly" ? e.monthly : null, u = new $({
1904
- freq: mn[e.freq],
1922
+ freq: xn[e.freq],
1905
1923
  interval: Math.max(1, e.interval),
1906
1924
  dtstart: new Date(Date.UTC(a, o - 1, s, r, i)),
1907
- byweekday: c ? (e.weekdays.length ? e.weekdays : [ye(e.startDate)]).map((e) => hn[e]) : l && "nth" in l ? [hn[l.weekday]] : null,
1925
+ byweekday: c ? (e.weekdays.length ? e.weekdays : [De(e.startDate)]).map((e) => Sn[e]) : l && "nth" in l ? [Sn[l.weekday]] : null,
1908
1926
  bysetpos: l && "nth" in l ? l.nth : null,
1909
1927
  bymonthday: l && "day" in l ? l.day : null
1910
- }), d = new Date(n.getTime() + gn(n.getTime(), e.timezone)), f = [], p = u.after(d, !0);
1928
+ }), d = new Date(n.getTime() + Cn(n.getTime(), e.timezone)), f = [], p = u.after(d, !0);
1911
1929
  for (; p && f.length < t;) f.push({
1912
- at: vn(p, e.timezone),
1930
+ at: Tn(p, e.timezone),
1913
1931
  wall: p
1914
1932
  }), p = u.after(p, !1);
1915
1933
  return f;
1916
1934
  }
1917
1935
  //#endregion
1918
1936
  //#region src/taskPriority.ts
1919
- var bn = [
1937
+ var Dn = [
1920
1938
  "low",
1921
1939
  "normal",
1922
1940
  "high",
1923
1941
  "urgent"
1924
- ], xn = {
1942
+ ], On = {
1925
1943
  low: "mdi-signal-cellular-1",
1926
1944
  normal: "mdi-signal-cellular-2",
1927
1945
  high: "mdi-signal-cellular-3",
1928
1946
  urgent: "mdi-alert"
1929
- }, Sn = {
1947
+ }, kn = {
1930
1948
  low: "blue-lighten-1",
1931
1949
  normal: "green-lighten-1",
1932
1950
  high: "yellow-lighten-1",
1933
1951
  urgent: "red-lighten-1"
1934
1952
  };
1935
- function Cn(e) {
1936
- return xn[e];
1953
+ function An(e) {
1954
+ return On[e];
1937
1955
  }
1938
- function wn(e) {
1939
- return Sn[e];
1956
+ function jn(e) {
1957
+ return kn[e];
1940
1958
  }
1941
1959
  //#endregion
1942
1960
  //#region src/useAntColorMode.ts
1943
- function Tn(e, n) {
1944
- let i = r(n), a = s(() => e.context.value.darkMode), o = s(() => {
1961
+ function Mn(e, t) {
1962
+ let r = i(t), a = u(() => e.context.value.darkMode), o = u(() => {
1945
1963
  switch (a.value) {
1946
1964
  case null: return "auto";
1947
1965
  case !0: return "dark";
1948
1966
  case !1: return "light";
1949
- default: return i.value;
1967
+ default: return r.value;
1950
1968
  }
1951
- }), c = s(() => {
1969
+ }), s = u(() => {
1952
1970
  switch (o.value) {
1953
1971
  case "light":
1954
1972
  case "auto": return !1;
@@ -1957,8 +1975,8 @@ function Tn(e, n) {
1957
1975
  });
1958
1976
  return Object.assign(o, {
1959
1977
  host: a,
1960
- isDark: c
1961
- }, t(i, [
1978
+ isDark: s
1979
+ }, n(r, [
1962
1980
  "state",
1963
1981
  "system",
1964
1982
  "store"
@@ -1966,22 +1984,22 @@ function Tn(e, n) {
1966
1984
  }
1967
1985
  //#endregion
1968
1986
  //#region src/useAntI18n.ts
1969
- function En(e, t) {
1970
- let n = _(t);
1971
- return g(() => e.context.value.user?.language, (e) => n.locale.value = e ?? "en", { immediate: !0 }), n;
1987
+ function Nn(e, t) {
1988
+ let n = ee(t);
1989
+ return y(() => e.context.value.user?.language, (e) => n.locale.value = e ?? "en", { immediate: !0 }), n;
1972
1990
  }
1973
1991
  //#endregion
1974
1992
  //#region src/useAppQueryParam.ts
1975
- function Dn(e) {
1993
+ function Pn(e) {
1976
1994
  let t = Array.isArray(e) ? e[0] : e;
1977
1995
  return typeof t == "string" && t !== "" ? t : null;
1978
1996
  }
1979
- function On(e, t, n = {}) {
1980
- let r = m(void 0), i = e.signal.receive((e) => {
1981
- e.route?.query && (r.value = Dn(e.route.query[t]));
1997
+ function Fn(e, t, n = {}) {
1998
+ let r = _(void 0), i = e.signal.receive((e) => {
1999
+ e.route?.query && (r.value = Pn(e.route.query[t]));
1982
2000
  });
1983
- return d(i), s({
1984
- get: () => r.value === void 0 ? Dn(e.context.value?.initialRouteQuery?.[t]) : r.value,
2001
+ return m(i), u({
2002
+ get: () => r.value === void 0 ? Pn(e.context.value?.initialRouteQuery?.[t]) : r.value,
1985
2003
  set: (i) => {
1986
2004
  r.value = i, e.signal({ route: {
1987
2005
  query: { [t]: i },
@@ -1992,22 +2010,22 @@ function On(e, t, n = {}) {
1992
2010
  }
1993
2011
  //#endregion
1994
2012
  //#region src/useAppTourMode.ts
1995
- var kn = m(!1), An = m(null);
1996
- function jn() {
2013
+ var In = _(!1), Ln = _(null);
2014
+ function Rn() {
1997
2015
  function e(e) {
1998
- g(() => e.value.tourMode, (e) => {
1999
- kn.value = !!e, e || (An.value = null);
2016
+ y(() => e.value.tourMode, (e) => {
2017
+ In.value = !!e, e || (Ln.value = null);
2000
2018
  }, { immediate: !0 });
2001
2019
  }
2002
2020
  function t(e) {
2003
- kn.value && (An.value = e);
2021
+ In.value && (Ln.value = e);
2004
2022
  }
2005
2023
  function n() {
2006
- kn.value = !1, An.value = null;
2024
+ In.value = !1, Ln.value = null;
2007
2025
  }
2008
2026
  return {
2009
- isActive: p(kn),
2010
- activeZoneId: p(An),
2027
+ isActive: g(In),
2028
+ activeZoneId: g(Ln),
2011
2029
  connectContext: e,
2012
2030
  setActiveZone: t,
2013
2031
  exit: n
@@ -2015,42 +2033,42 @@ function jn() {
2015
2033
  }
2016
2034
  //#endregion
2017
2035
  //#region src/useCommsClient.ts
2018
- function Mn(t, n, r) {
2019
- let i = m({}), a = b({
2036
+ function zn(e, n, r) {
2037
+ let i = _({}), a = ne({
2020
2038
  parent: window.parent,
2021
- connect: t,
2039
+ connect: e,
2022
2040
  manifest: r
2023
- }), o = m(""), c = s({
2041
+ }), o = _(""), s = u({
2024
2042
  get: () => o.value,
2025
2043
  set: (e) => a.appState.set(e)
2026
2044
  });
2027
- return a.context.subscribe((e) => i.value = e), ne(a.appState.get(), a.appState).subscribe((e) => o.value = e), Pn(a.signal, a, n), l(() => a.unsubscribe()), Object.assign(e(a, [
2045
+ return a.context.subscribe((e) => i.value = e), S(a.appState.get(), a.appState).subscribe((e) => o.value = e), Vn(a.signal, a, n), f(() => a.unsubscribe()), Object.assign(t(a, [
2028
2046
  "context",
2029
2047
  "toolbar",
2030
2048
  "appState"
2031
2049
  ]), {
2032
2050
  context: i,
2033
- toolbar: Nn(a),
2034
- appState: c
2051
+ toolbar: Bn(a),
2052
+ appState: s
2035
2053
  });
2036
2054
  }
2037
- function Nn(e) {
2038
- let t = m(""), n = {
2039
- title: s({
2055
+ function Bn(e) {
2056
+ let t = _(""), n = {
2057
+ title: u({
2040
2058
  get: () => e.toolbar.get().title,
2041
2059
  set: (t) => e.toolbar.set((e) => ({
2042
2060
  ...e,
2043
2061
  title: t
2044
2062
  }))
2045
2063
  }),
2046
- subtitle: s({
2064
+ subtitle: u({
2047
2065
  get: () => e.toolbar.get().subtitle,
2048
2066
  set: (t) => e.toolbar.set((e) => ({
2049
2067
  ...e,
2050
2068
  subtitle: t
2051
2069
  }))
2052
2070
  }),
2053
- searchEnabled: s({
2071
+ searchEnabled: u({
2054
2072
  get: () => e.toolbar.get().search.enabled,
2055
2073
  set: (t) => e.toolbar.set((e) => ({
2056
2074
  ...e,
@@ -2060,7 +2078,7 @@ function Nn(e) {
2060
2078
  }
2061
2079
  }))
2062
2080
  }),
2063
- search: s({
2081
+ search: u({
2064
2082
  get: () => t.value,
2065
2083
  set: (t) => e.toolbar.set((e) => ({
2066
2084
  ...e,
@@ -2070,14 +2088,14 @@ function Nn(e) {
2070
2088
  }
2071
2089
  }))
2072
2090
  }),
2073
- menu: s({
2091
+ menu: u({
2074
2092
  get: () => e.toolbar.get().menu ?? [],
2075
2093
  set: (t) => e.toolbar.set((e) => ({
2076
2094
  ...e,
2077
2095
  menu: t
2078
2096
  }))
2079
2097
  }),
2080
- isLoading: s({
2098
+ isLoading: u({
2081
2099
  get: () => e.toolbar.get().isLoading,
2082
2100
  set: (t) => e.toolbar.set((e) => ({
2083
2101
  ...e,
@@ -2085,69 +2103,105 @@ function Nn(e) {
2085
2103
  }))
2086
2104
  })
2087
2105
  };
2088
- return e.toolbar.pipe(C((e) => e.search.input ?? ""), ae(), ie(300)).forEach((e) => t.value = e), n;
2106
+ return e.toolbar.pipe(ce((e) => e.search.input ?? ""), w(), oe(300)).forEach((e) => t.value = e), n;
2089
2107
  }
2090
- function Pn(e, t, n) {
2091
- let r = i(), a = r.ctrl ?? s(() => !1), c = r.shift ?? s(() => !1), l = new te(), u = l.pipe(re(n ?? ((e) => Promise.resolve(e))), re((t) => e(t))).subscribe();
2092
- return t.add(u), u.add(o(a, () => l.next({ hotkeys: { ctrl: !0 } }))), u.add(o(c, () => l.next({ hotkeys: { shift: !0 } }))), u;
2108
+ function Vn(e, t, n) {
2109
+ let r = a(), i = r.ctrl ?? u(() => !1), o = r.shift ?? u(() => !1), s = new ae(), c = s.pipe(C(n ?? ((e) => Promise.resolve(e))), C((t) => e(t))).subscribe();
2110
+ return t.add(c), c.add(l(i, () => s.next({ hotkeys: { ctrl: !0 } }))), c.add(l(o, () => s.next({ hotkeys: { shift: !0 } }))), c;
2093
2111
  }
2094
2112
  //#endregion
2095
2113
  //#region src/useCommsHost.ts
2096
- function Fn(e) {
2097
- let { context: t } = e, n = new x({}), r = (e) => n.next(e(n.value)), i = m(), o = new x(void 0), c = g(i, (e) => o.next(e), { immediate: !0 }), l = o.asObservable().pipe(C((e) => e?.contentWindow), S((e) => !!e)), u = ee({
2114
+ function Hn(e) {
2115
+ let { context: t } = e, n = new ie({}), r = (e) => n.next(e(n.value)), i = _(), a = new ie(void 0), o = y(i, (e) => a.next(e), { immediate: !0 }), s = a.asObservable().pipe(ce((e) => e?.contentWindow), se((e) => !!e)), l = re({
2098
2116
  ...e,
2099
2117
  contextChanges: n,
2100
- windowChanges: l
2118
+ windowChanges: s
2101
2119
  });
2102
- Object.entries(t).map(([e, t]) => g(t, (t) => r((n) => ({
2120
+ Object.entries(t).map(([e, t]) => y(t, (t) => r((n) => ({
2103
2121
  ...n,
2104
- [e]: v(t)
2105
- })), { immediate: !0 })).forEach((e) => u.scope.add(e)), u.toolbar.subscribe((t) => {
2122
+ [e]: x(t)
2123
+ })), { immediate: !0 })).forEach((e) => l.scope.add(e)), l.toolbar.subscribe((t) => {
2106
2124
  let n = e.toolbar;
2107
2125
  n.title.value = t.title, n.subtitle.value = t.subtitle, n.searchEnabled.value = t.search?.enabled ?? !1, n.search.value = t.search?.input, n.menu.value = t.menu, n.isLoading.value = t?.isLoading ?? !1;
2108
2126
  });
2109
- let d = a(e.toolbar.search, (e) => u.toolbar.set.search(e), {
2127
+ let d = c(e.toolbar.search, (e) => l.toolbar.set.search(e), {
2110
2128
  immediate: !0,
2111
2129
  debounce: 100
2112
2130
  });
2113
- u.scope.add(c), u.scope.add(d);
2114
- let f = m(u.appState.get()), p = s({
2131
+ l.scope.add(o), l.scope.add(d);
2132
+ let f = _(l.appState.get()), p = u({
2115
2133
  get: () => f.value,
2116
- set: (e) => u.appState.set(e)
2134
+ set: (e) => l.appState.set(e)
2117
2135
  });
2118
- u.appState.changes.subscribe((e) => f.value = e);
2119
- let h = m(!1);
2120
- u.isConnectionInitialized.subscribe((e) => h.value = e);
2121
- let _ = m(null);
2122
- u.manifest?.subscribe((e) => _.value = e);
2123
- let { unsubscribe: y, signal: b, closed: te } = u;
2136
+ l.appState.changes.subscribe((e) => f.value = e);
2137
+ let m = _(!1);
2138
+ l.isConnectionInitialized.subscribe((e) => m.value = e);
2139
+ let h = _(null);
2140
+ l.manifest?.subscribe((e) => h.value = e);
2141
+ let { unsubscribe: g, signal: v, closed: b } = l;
2124
2142
  return {
2125
2143
  ...e,
2126
2144
  client: i,
2127
2145
  appState: p,
2128
- isConnectionInitialized: h,
2129
- manifest: _,
2130
- unsubscribe: y,
2131
- signal: b,
2132
- closed: te
2146
+ isConnectionInitialized: m,
2147
+ manifest: h,
2148
+ unsubscribe: g,
2149
+ signal: v,
2150
+ closed: b
2133
2151
  };
2134
2152
  }
2135
2153
  //#endregion
2154
+ //#region src/useDeviceClass.ts
2155
+ var Un = {
2156
+ handheld: 768,
2157
+ phone: 1105,
2158
+ tablet: 1280
2159
+ }, Wn = e(() => {
2160
+ let { width: e, height: t } = s(), n = o("(pointer: coarse)"), r = u(() => {
2161
+ let t = e.value;
2162
+ return t < Un.handheld || t < Un.phone && n.value ? "phone" : t < Un.tablet ? "tablet" : "desktop";
2163
+ });
2164
+ return typeof document < "u" && b(() => {
2165
+ document.documentElement.dataset.device = r.value, document.documentElement.dataset.pointer = n.value ? "coarse" : "fine";
2166
+ }), {
2167
+ device: r,
2168
+ isPhone: u(() => r.value === "phone"),
2169
+ isTablet: u(() => r.value === "tablet"),
2170
+ isDesktop: u(() => r.value === "desktop"),
2171
+ isCoarsePointer: n,
2172
+ isPortrait: u(() => t.value >= e.value),
2173
+ width: e,
2174
+ height: t
2175
+ };
2176
+ });
2177
+ //#endregion
2136
2178
  //#region src/useFeature.ts
2137
- function In(e, t) {
2138
- return s(() => e.value?.features?.[t] === !0);
2179
+ function Gn(e, t) {
2180
+ return u(() => e.value?.features?.[t] === !0);
2181
+ }
2182
+ //#endregion
2183
+ //#region src/useHostDevice.ts
2184
+ function Kn(e) {
2185
+ let t = Wn(), n = u(() => e.value?.device?.class ?? t.device.value);
2186
+ return {
2187
+ device: n,
2188
+ isPhone: u(() => n.value === "phone"),
2189
+ isTablet: u(() => n.value === "tablet"),
2190
+ isDesktop: u(() => n.value === "desktop"),
2191
+ isTouch: u(() => e.value?.device?.touch ?? t.isCoarsePointer.value)
2192
+ };
2139
2193
  }
2140
2194
  //#endregion
2141
2195
  //#region src/usePermissions.ts
2142
- function Ln(e) {
2143
- let t = s(() => e.value?.user), n = s(() => e.value?.license), r = s(() => e.value?.project), i = s(() => !!t.value?.is_admin), a = s(() => !!n.value?.user_is_admin), o = s(() => !!r.value?.user_is_admin || a.value);
2144
- function c(e) {
2196
+ function qn(e) {
2197
+ let t = u(() => e.value?.user), n = u(() => e.value?.license), r = u(() => e.value?.project), i = u(() => !!t.value?.is_admin), a = u(() => !!n.value?.user_is_admin), o = u(() => !!r.value?.user_is_admin || a.value);
2198
+ function s(e) {
2145
2199
  return !t.value || !n.value ? !1 : i.value || a.value ? !0 : (n.value.user_roles ?? []).some((t) => t.name === e);
2146
2200
  }
2147
- function l(e) {
2201
+ function c(e) {
2148
2202
  return !t.value || !n.value ? !1 : i.value || a.value ? !0 : !!n.value.user_permissions?.[String(e)];
2149
2203
  }
2150
- function u(e) {
2204
+ function l(e) {
2151
2205
  return !t.value || !r.value ? !1 : i.value || a.value || o.value ? !0 : (r.value.user_roles ?? []).some((t) => t.name === e);
2152
2206
  }
2153
2207
  function d(e) {
@@ -2157,58 +2211,58 @@ function Ln(e) {
2157
2211
  isGlobalAdmin: i,
2158
2212
  isLicenseAdmin: a,
2159
2213
  isProjectAdmin: o,
2160
- hasLicenseRole: c,
2161
- hasLicensePermission: l,
2162
- hasProjectRole: u,
2214
+ hasLicenseRole: s,
2215
+ hasLicensePermission: c,
2216
+ hasProjectRole: l,
2163
2217
  hasProjectPermission: d
2164
2218
  };
2165
2219
  }
2166
2220
  //#endregion
2167
2221
  //#region src/useTemplateVersioning.ts
2168
- function Rn(e) {
2169
- let t = h(null), n = h(null), r = h(null), i = h(null), a = h([]), o = h(null), c = m(!1), l = m(!1), u = m(!1), d = m(!1), f = m(!1), p = m(!1), g = s(() => t.value?.has_update ?? !1), _ = s(() => t.value?.current_version ?? null), v = s(() => t.value?.latest_version ?? null), y = s(() => n.value ? n.value.added.length + n.value.removed.length + n.value.modified.length + n.value.relations_added.length + n.value.relations_removed.length : 0);
2222
+ function Jn(e) {
2223
+ let t = v(null), n = v(null), r = v(null), i = v(null), a = v([]), o = v(null), s = _(!1), c = _(!1), l = _(!1), d = _(!1), f = _(!1), p = _(!1), m = u(() => t.value?.has_update ?? !1), h = u(() => t.value?.current_version ?? null), g = u(() => t.value?.latest_version ?? null), y = u(() => n.value ? n.value.added.length + n.value.removed.length + n.value.modified.length + n.value.relations_added.length + n.value.relations_removed.length : 0);
2170
2224
  async function b(n) {
2171
- c.value = !0;
2225
+ s.value = !0;
2172
2226
  try {
2173
2227
  let r = await e.tasks.checkForUpdates(n);
2174
2228
  return t.value = r?.data ?? null, t.value;
2175
2229
  } catch {
2176
2230
  return t.value = null, null;
2177
2231
  } finally {
2178
- c.value = !1;
2232
+ s.value = !1;
2179
2233
  }
2180
2234
  }
2181
2235
  async function ee(t, r) {
2182
- l.value = !0;
2236
+ c.value = !0;
2183
2237
  try {
2184
2238
  let i = await e.tasks.versionDiff(t, r);
2185
2239
  return n.value = i?.data ?? null, n.value;
2186
2240
  } catch {
2187
2241
  return n.value = null, null;
2188
2242
  } finally {
2189
- l.value = !1;
2243
+ c.value = !1;
2190
2244
  }
2191
2245
  }
2192
2246
  async function x(t, r, i) {
2193
- l.value = !0;
2247
+ c.value = !0;
2194
2248
  try {
2195
2249
  let a = await e.tasks.versionCompare(t, r, i);
2196
2250
  return n.value = a?.data ?? null, n.value;
2197
2251
  } catch {
2198
2252
  return n.value = null, null;
2199
2253
  } finally {
2200
- l.value = !1;
2254
+ c.value = !1;
2201
2255
  }
2202
2256
  }
2203
2257
  async function te(t) {
2204
- u.value = !0;
2258
+ l.value = !0;
2205
2259
  try {
2206
2260
  let n = await e.tasks.versionDiffOriginal(t);
2207
2261
  return r.value = n?.data ?? null, r.value;
2208
2262
  } catch {
2209
2263
  return r.value = null, null;
2210
2264
  } finally {
2211
- u.value = !1;
2265
+ l.value = !1;
2212
2266
  }
2213
2267
  }
2214
2268
  async function ne(r, a) {
@@ -2252,8 +2306,8 @@ function Rn(e) {
2252
2306
  return o.value = null, null;
2253
2307
  }
2254
2308
  }
2255
- let S = h([]), C = m(!1), w = m(!1), T = h([]);
2256
- async function oe(t) {
2309
+ let S = v([]), C = _(!1), oe = _(!1), w = v([]);
2310
+ async function se(t) {
2257
2311
  C.value = !0;
2258
2312
  try {
2259
2313
  let n = await e.tasks.getInstances(t);
@@ -2264,19 +2318,19 @@ function Rn(e) {
2264
2318
  C.value = !1;
2265
2319
  }
2266
2320
  }
2267
- async function se(t, n) {
2268
- w.value = !0, T.value = [];
2321
+ async function ce(t, n) {
2322
+ oe.value = !0, w.value = [];
2269
2323
  try {
2270
2324
  let r = await e.tasks.pushSync(t, n);
2271
- return T.value = r?.data ?? [], T.value;
2325
+ return w.value = r?.data ?? [], w.value;
2272
2326
  } catch {
2273
- return T.value = [], [];
2327
+ return w.value = [], [];
2274
2328
  } finally {
2275
- w.value = !1;
2329
+ oe.value = !1;
2276
2330
  }
2277
2331
  }
2278
- function ce() {
2279
- t.value = null, n.value = null, r.value = null, i.value = null, a.value = [], o.value = null, S.value = [], T.value = [];
2332
+ function le() {
2333
+ t.value = null, n.value = null, r.value = null, i.value = null, a.value = [], o.value = null, S.value = [], w.value = [];
2280
2334
  }
2281
2335
  return {
2282
2336
  updateCheck: t,
@@ -2286,18 +2340,18 @@ function Rn(e) {
2286
2340
  versions: a,
2287
2341
  latestVersion: o,
2288
2342
  instances: S,
2289
- pushSyncResults: T,
2290
- isCheckingUpdate: c,
2291
- isFetchingDiff: l,
2292
- isFetchingCustomizations: u,
2343
+ pushSyncResults: w,
2344
+ isCheckingUpdate: s,
2345
+ isFetchingDiff: c,
2346
+ isFetchingCustomizations: l,
2293
2347
  isSyncing: d,
2294
2348
  isPublishing: f,
2295
2349
  isFetchingVersions: p,
2296
2350
  isFetchingInstances: C,
2297
- isPushSyncing: w,
2298
- hasUpdate: g,
2299
- currentVersion: _,
2300
- availableVersion: v,
2351
+ isPushSyncing: oe,
2352
+ hasUpdate: m,
2353
+ currentVersion: h,
2354
+ availableVersion: g,
2301
2355
  totalChanges: y,
2302
2356
  checkForUpdates: b,
2303
2357
  fetchDiff: ee,
@@ -2307,16 +2361,16 @@ function Rn(e) {
2307
2361
  publishVersion: re,
2308
2362
  fetchVersions: ie,
2309
2363
  fetchLatestVersion: ae,
2310
- fetchInstances: oe,
2311
- pushSync: se,
2312
- reset: ce
2364
+ fetchInstances: se,
2365
+ pushSync: ce,
2366
+ reset: le
2313
2367
  };
2314
2368
  }
2315
2369
  //#endregion
2316
2370
  //#region src/useTriggerDispatch.ts
2317
- function zn(e, t = {}) {
2371
+ function Yn(e, t = {}) {
2318
2372
  let n = t.authorizationTimeoutMs ?? 3e5, r = /* @__PURE__ */ new Set();
2319
- d(() => {
2373
+ m(() => {
2320
2374
  for (let e of r) e();
2321
2375
  });
2322
2376
  function i(t) {
@@ -2335,36 +2389,36 @@ function zn(e, t = {}) {
2335
2389
  }
2336
2390
  async function a(e) {
2337
2391
  let t = await e();
2338
- return !y(t) || !await i(t) ? t : e();
2392
+ return !te(t) || !await i(t) ? t : e();
2339
2393
  }
2340
2394
  return { dispatch: a };
2341
2395
  }
2342
2396
  //#endregion
2343
2397
  //#region src/utils.ts
2344
- function Bn(e = "comms") {
2345
- let [t, n] = Vn(e, () => Mn(), (e) => e.unsubscribe());
2398
+ function Xn(e = "comms") {
2399
+ let [t, n] = Zn(e, () => zn(), (e) => e.unsubscribe());
2346
2400
  return {
2347
2401
  provideComms: t,
2348
2402
  injectComms: n
2349
2403
  };
2350
2404
  }
2351
- function Vn(e, t, n) {
2405
+ function Zn(e, t, n) {
2352
2406
  let r, i = () => (!r && (r = t()), r);
2353
- return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () => c(e)()];
2407
+ return [(t) => (t.onUnmount(() => n && r && n(r)), t.provide(e, i)), () => d(e)()];
2354
2408
  }
2355
- function Hn(t, r, i) {
2356
- let a = n(t, r, {
2409
+ function Qn(e, n, i) {
2410
+ let a = r(e, n, {
2357
2411
  immediate: !1,
2358
2412
  ...i
2359
2413
  });
2360
- return Object.assign(e(a, ["execute"]), {
2414
+ return Object.assign(t(a, ["execute"]), {
2361
2415
  execute: (...e) => a.execute(void 0, ...e),
2362
2416
  executeDelayed: a.execute
2363
2417
  });
2364
2418
  }
2365
- function Un(e) {
2366
- let t, n = m(void 0);
2367
- return u(() => t = e.signal.receive((e) => n.value = e)), f(() => t?.()), [p(n), () => t?.()];
2419
+ function $n(e) {
2420
+ let t, n = _(void 0);
2421
+ return p(() => t = e.signal.receive((e) => n.value = e)), h(() => t?.()), [g(n), () => t?.()];
2368
2422
  }
2369
2423
  //#endregion
2370
- export { pe as SCHEDULE_DAYS, bn as TASK_PRIORITIES, _e as browserZone, be as buildScheduleRule, ve as defaultScheduleSpec, we as describeRefresh, le as formatDate, ue as formatDateRange, fe as formatRefreshLabel, yn as nextOccurrences, Ce as parseScheduleRule, wn as taskPriorityColor, Cn as taskPriorityIcon, Tn as useAntColorMode, En as useAntI18n, Hn as useApi, On as useAppQueryParam, jn as useAppTourMode, Mn as useCommsClient, Fn as useCommsHost, Bn as useCommsInjection, In as useFeature, Ln as usePermissions, Un as useSignal, Vn as useSingleton, Rn as useTemplateVersioning, zn as useTriggerDispatch, ye as weekdayOf };
2424
+ export { Un as DEVICE_BREAKPOINTS, xe as SCHEDULE_DAYS, Dn as TASK_PRIORITIES, le as apiErrorMessage, Te as browserZone, Oe as buildScheduleRule, Ee as defaultScheduleSpec, Me as describeRefresh, de as deviceTypeIcon, _e as formatDate, ve as formatDateRange, be as formatRefreshLabel, En as nextOccurrences, je as parseScheduleRule, jn as taskPriorityColor, An as taskPriorityIcon, Mn as useAntColorMode, Nn as useAntI18n, Qn as useApi, Fn as useAppQueryParam, Rn as useAppTourMode, zn as useCommsClient, Hn as useCommsHost, Xn as useCommsInjection, Wn as useDeviceClass, Gn as useFeature, Kn as useHostDevice, qn as usePermissions, $n as useSignal, Zn as useSingleton, Jn as useTemplateVersioning, Yn as useTriggerDispatch, De as weekdayOf };