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

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