@nylas/react 1.1.0-canary.7 → 1.1.0-canary.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/elements/index.js +92 -0
  2. package/dist/elements/index.js.map +1 -0
  3. package/dist/elements/react-component-lib/createComponent.js +65 -0
  4. package/dist/elements/react-component-lib/createComponent.js.map +1 -0
  5. package/dist/elements/react-component-lib/createOverlayComponent.js +98 -0
  6. package/dist/elements/react-component-lib/createOverlayComponent.js.map +1 -0
  7. package/dist/elements/react-component-lib/index.js +3 -0
  8. package/dist/elements/react-component-lib/index.js.map +1 -0
  9. package/dist/elements/react-component-lib/interfaces.js +2 -0
  10. package/dist/elements/react-component-lib/interfaces.js.map +1 -0
  11. package/dist/elements/react-component-lib/utils/attachProps.js +92 -0
  12. package/dist/elements/react-component-lib/utils/attachProps.js.map +1 -0
  13. package/dist/elements/react-component-lib/utils/case.js +7 -0
  14. package/dist/elements/react-component-lib/utils/case.js.map +1 -0
  15. package/dist/elements/react-component-lib/utils/dev.js +13 -0
  16. package/dist/elements/react-component-lib/utils/dev.js.map +1 -0
  17. package/dist/elements/react-component-lib/utils/index.js +31 -0
  18. package/dist/elements/react-component-lib/utils/index.js.map +1 -0
  19. package/dist/index.js +29 -0
  20. package/dist/index.js.map +1 -0
  21. package/package.json +8 -12
  22. package/dist/core-js-38e53e34.cjs +0 -4
  23. package/dist/core-js-a9d3b6e1.js +0 -3297
  24. package/dist/dom-68f08be9.cjs +0 -15
  25. package/dist/dom-86e17616.js +0 -664
  26. package/dist/elements-dc5b338e-6078b875.js +0 -28031
  27. package/dist/elements-dc5b338e-96e197ca.cjs +0 -16516
  28. package/dist/flow-40ff9cea-6f8c30e2.cjs +0 -9
  29. package/dist/flow-40ff9cea-ee70fdf5.js +0 -505
  30. package/dist/focus-visible-e8093c16-018ffd63.cjs +0 -1
  31. package/dist/focus-visible-e8093c16-ab01d60a.js +0 -84
  32. package/dist/index-1fd24ccf.js +0 -3582
  33. package/dist/index-823fdc6f.cjs +0 -36
  34. package/dist/react.cjs +0 -1
  35. package/dist/react.js +0 -98
  36. /package/dist/{elements → types/elements}/index.d.ts +0 -0
  37. /package/dist/{elements → types/elements}/react-component-lib/createComponent.d.ts +0 -0
  38. /package/dist/{elements → types/elements}/react-component-lib/createOverlayComponent.d.ts +0 -0
  39. /package/dist/{elements → types/elements}/react-component-lib/index.d.ts +0 -0
  40. /package/dist/{elements → types/elements}/react-component-lib/interfaces.d.ts +0 -0
  41. /package/dist/{elements → types/elements}/react-component-lib/utils/attachProps.d.ts +0 -0
  42. /package/dist/{elements → types/elements}/react-component-lib/utils/case.d.ts +0 -0
  43. /package/dist/{elements → types/elements}/react-component-lib/utils/dev.d.ts +0 -0
  44. /package/dist/{elements → types/elements}/react-component-lib/utils/index.d.ts +0 -0
  45. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
@@ -1,3582 +0,0 @@
1
- var Fr = Object.defineProperty;
2
- var zr = (t, e, n) => e in t ? Fr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var wt = (t, e, n) => (zr(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import ht, { createElement as Br, useReducer as qr, useRef as kt, useEffect as Kr } from "react";
5
- import "react-dom";
6
- const Gr = "nylas-web-elements", Zr = (
7
- /* nylas-web-elements */
8
- { allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !0, cmpDidUnload: !1, cmpDidUpdate: !0, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !0, cmpWillUpdate: !0, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !0, hasRenderFn: !0, hostListener: !0, hostListenerTarget: !0, hostListenerTargetBody: !0, hostListenerTargetDocument: !0, hostListenerTargetParent: !1, hostListenerTargetWindow: !0, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !0, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !0, propMutable: !0, propNumber: !0, propString: !0, reflect: !1, scoped: !0, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !0, slotChildNodesFix: !1, slotRelocation: !0, state: !0, style: !0, svg: !0, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !0, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !0, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
9
- );
10
- let He, Ot, yt, zn = !1, it = !1, Yt = !1, oe = !1, xt = null, _t = !1;
11
- const Oe = (t, e = "") => () => {
12
- }, Jr = (t, e) => () => {
13
- }, Xr = "{visibility:hidden}.hydrated{visibility:inherit}", Bn = "slot-fb{display:contents}slot-fb[hidden]{display:none}", Qr = [
14
- "formAssociatedCallback",
15
- "formResetCallback",
16
- "formDisabledCallback",
17
- "formStateRestoreCallback"
18
- ], ln = {}, Vr = "http://www.w3.org/2000/svg", ea = "http://www.w3.org/1999/xhtml", ta = (t) => t != null, Ht = (t) => (t = typeof t, t === "object" || t === "function");
19
- function qn(t) {
20
- var e, n, r;
21
- return (r = (n = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || n === void 0 ? void 0 : n.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
22
- }
23
- const Kn = (t, e, ...n) => {
24
- let r = null, a = null, i = null, s = !1, l = !1;
25
- const o = [], u = (f) => {
26
- for (let h = 0; h < f.length; h++)
27
- r = f[h], Array.isArray(r) ? u(r) : r != null && typeof r != "boolean" && ((s = typeof t != "function" && !Ht(r)) && (r = String(r)), s && l ? o[o.length - 1].$text$ += r : o.push(s ? st(null, r) : r), l = s);
28
- };
29
- if (u(n), e) {
30
- e.key && (a = e.key), e.name && (i = e.name);
31
- {
32
- const f = e.className || e.class;
33
- f && (e.class = typeof f != "object" ? f : Object.keys(f).filter((h) => f[h]).join(" "));
34
- }
35
- }
36
- if (typeof t == "function")
37
- return t(e === null ? {} : e, o, aa);
38
- const d = st(t, null);
39
- return d.$attrs$ = e, o.length > 0 && (d.$children$ = o), d.$key$ = a, d.$name$ = i, d;
40
- }, st = (t, e) => {
41
- const n = {
42
- $flags$: 0,
43
- $tag$: t,
44
- $text$: e,
45
- $elm$: null,
46
- $children$: null
47
- };
48
- return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
49
- }, na = {}, ra = (t) => t && t.$tag$ === na, aa = {
50
- forEach: (t, e) => t.map(cn).forEach(e),
51
- map: (t, e) => t.map(cn).map(e).map(ia)
52
- }, cn = (t) => ({
53
- vattrs: t.$attrs$,
54
- vchildren: t.$children$,
55
- vkey: t.$key$,
56
- vname: t.$name$,
57
- vtag: t.$tag$,
58
- vtext: t.$text$
59
- }), ia = (t) => {
60
- if (typeof t.vtag == "function") {
61
- const n = Object.assign({}, t.vattrs);
62
- return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Kn(t.vtag, n, ...t.vchildren || []);
63
- }
64
- const e = st(t.vtag, t.vtext);
65
- return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
66
- }, sa = (t, e) => t != null && !Ht(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, oa = (t, e, n) => {
67
- const r = z.ce(e, n);
68
- return t.dispatchEvent(r), r;
69
- }, un = /* @__PURE__ */ new WeakMap(), la = (t, e, n) => {
70
- let r = lt.get(t);
71
- Aa && n ? (r = r || new CSSStyleSheet(), typeof r == "string" ? r = e : r.replaceSync(e)) : r = e, lt.set(t, r);
72
- }, ca = (t, e, n) => {
73
- var r;
74
- const a = Gn(e), i = lt.get(a);
75
- if (t = t.nodeType === 11 ? t : ne, i)
76
- if (typeof i == "string") {
77
- t = t.head || t;
78
- let s = un.get(t), l;
79
- if (s || un.set(t, s = /* @__PURE__ */ new Set()), !s.has(a)) {
80
- {
81
- l = ne.createElement("style"), l.innerHTML = i;
82
- const o = (r = z.$nonce$) !== null && r !== void 0 ? r : qn(ne);
83
- o != null && l.setAttribute("nonce", o), t.insertBefore(l, t.querySelector("link"));
84
- }
85
- e.$flags$ & 4 && (l.innerHTML += Bn), s && s.add(a);
86
- }
87
- } else
88
- t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
89
- return a;
90
- }, ua = (t) => {
91
- const e = t.$cmpMeta$, n = t.$hostElement$, r = e.$flags$, a = Oe("attachStyles", e.$tagName$), i = ca(n.shadowRoot ? n.shadowRoot : n.getRootNode(), e);
92
- r & 10 && (n["s-sc"] = i, n.classList.add(i + "-h"), r & 2 && n.classList.add(i + "-s")), a();
93
- }, Gn = (t, e) => "sc-" + t.$tagName$, dn = (t, e, n, r, a, i) => {
94
- if (n !== r) {
95
- let s = gn(t, e), l = e.toLowerCase();
96
- if (e === "class") {
97
- const o = t.classList, u = fn(n), d = fn(r);
98
- o.remove(...u.filter((f) => f && !d.includes(f))), o.add(...d.filter((f) => f && !u.includes(f)));
99
- } else if (e === "style") {
100
- for (const o in n)
101
- (!r || r[o] == null) && (o.includes("-") ? t.style.removeProperty(o) : t.style[o] = "");
102
- for (const o in r)
103
- (!n || r[o] !== n[o]) && (o.includes("-") ? t.style.setProperty(o, r[o]) : t.style[o] = r[o]);
104
- } else if (e !== "key")
105
- if (e === "ref")
106
- r && r(t);
107
- else if (!s && e[0] === "o" && e[1] === "n") {
108
- if (e[2] === "-" ? e = e.slice(3) : gn(et, l) ? e = l.slice(2) : e = l[2] + e.slice(3), n || r) {
109
- const o = e.endsWith(Zn);
110
- e = e.replace(fa, ""), n && z.rel(t, e, n, o), r && z.ael(t, e, r, o);
111
- }
112
- } else {
113
- const o = Ht(r);
114
- if ((s || o && r !== null) && !a)
115
- try {
116
- if (t.tagName.includes("-"))
117
- t[e] = r;
118
- else {
119
- const u = r ?? "";
120
- e === "list" ? s = !1 : (n == null || t[e] != u) && (t[e] = u);
121
- }
122
- } catch {
123
- }
124
- r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && t.removeAttribute(e) : (!s || i & 4 || a) && !o && (r = r === !0 ? "" : r, t.setAttribute(e, r));
125
- }
126
- }
127
- }, da = /\s/, fn = (t) => t ? t.split(da) : [], Zn = "Capture", fa = new RegExp(Zn + "$"), Jn = (t, e, n, r) => {
128
- const a = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, i = t && t.$attrs$ || ln, s = e.$attrs$ || ln;
129
- for (r in i)
130
- r in s || dn(a, r, i[r], void 0, n, e.$flags$);
131
- for (r in s)
132
- dn(a, r, i[r], s[r], n, e.$flags$);
133
- }, ot = (t, e, n, r) => {
134
- const a = e.$children$[n];
135
- let i = 0, s, l, o;
136
- if (zn || (Yt = !0, a.$tag$ === "slot" && (He && r.classList.add(He + "-s"), a.$flags$ |= a.$children$ ? (
137
- // slot element has fallback content
138
- 2
139
- ) : (
140
- // slot element does not have fallback content
141
- 1
142
- ))), a.$text$ !== null)
143
- s = a.$elm$ = ne.createTextNode(a.$text$);
144
- else if (a.$flags$ & 1)
145
- s = a.$elm$ = ne.createTextNode("");
146
- else {
147
- if (oe || (oe = a.$tag$ === "svg"), s = a.$elm$ = ne.createElementNS(oe ? Vr : ea, a.$flags$ & 2 ? "slot-fb" : a.$tag$), oe && a.$tag$ === "foreignObject" && (oe = !1), Jn(null, a, oe), ta(He) && s["s-si"] !== He && s.classList.add(s["s-si"] = He), a.$children$)
148
- for (i = 0; i < a.$children$.length; ++i)
149
- l = ot(t, a, i, s), l && s.appendChild(l);
150
- a.$tag$ === "svg" ? oe = !1 : s.tagName === "foreignObject" && (oe = !0);
151
- }
152
- return s["s-hn"] = yt, a.$flags$ & 3 && (s["s-sr"] = !0, s["s-cr"] = Ot, s["s-sn"] = a.$name$ || "", o = t && t.$children$ && t.$children$[n], o && o.$tag$ === a.$tag$ && t.$elm$ && Qe(t.$elm$, !1)), s;
153
- }, Qe = (t, e) => {
154
- z.$flags$ |= 1;
155
- const n = t.childNodes;
156
- for (let r = n.length - 1; r >= 0; r--) {
157
- const a = n[r];
158
- a["s-hn"] !== yt && a["s-ol"] && (Vn(a).insertBefore(a, jt(a)), a["s-ol"].remove(), a["s-ol"] = void 0, a["s-sh"] = void 0, Yt = !0), e && Qe(a, e);
159
- }
160
- z.$flags$ &= -2;
161
- }, Xn = (t, e, n, r, a, i) => {
162
- let s = t["s-cr"] && t["s-cr"].parentNode || t, l;
163
- for (s.shadowRoot && s.tagName === yt && (s = s.shadowRoot); a <= i; ++a)
164
- r[a] && (l = ot(null, n, a, t), l && (r[a].$elm$ = l, s.insertBefore(l, jt(e))));
165
- }, Qn = (t, e, n) => {
166
- for (let r = e; r <= n; ++r) {
167
- const a = t[r];
168
- if (a) {
169
- const i = a.$elm$;
170
- nr(a), i && (it = !0, i["s-ol"] ? i["s-ol"].remove() : Qe(i, !0), i.remove());
171
- }
172
- }
173
- }, ha = (t, e, n, r, a = !1) => {
174
- let i = 0, s = 0, l = 0, o = 0, u = e.length - 1, d = e[0], f = e[u], h = r.length - 1, y = r[0], p = r[h], v, b;
175
- for (; i <= u && s <= h; )
176
- if (d == null)
177
- d = e[++i];
178
- else if (f == null)
179
- f = e[--u];
180
- else if (y == null)
181
- y = r[++s];
182
- else if (p == null)
183
- p = r[--h];
184
- else if (at(d, y, a))
185
- je(d, y, a), d = e[++i], y = r[++s];
186
- else if (at(f, p, a))
187
- je(f, p, a), f = e[--u], p = r[--h];
188
- else if (at(d, p, a))
189
- (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(d.$elm$.parentNode, !1), je(d, p, a), t.insertBefore(d.$elm$, f.$elm$.nextSibling), d = e[++i], p = r[--h];
190
- else if (at(f, y, a))
191
- (d.$tag$ === "slot" || p.$tag$ === "slot") && Qe(f.$elm$.parentNode, !1), je(f, y, a), t.insertBefore(f.$elm$, d.$elm$), f = e[--u], y = r[++s];
192
- else {
193
- for (l = -1, o = i; o <= u; ++o)
194
- if (e[o] && e[o].$key$ !== null && e[o].$key$ === y.$key$) {
195
- l = o;
196
- break;
197
- }
198
- l >= 0 ? (b = e[l], b.$tag$ !== y.$tag$ ? v = ot(e && e[s], n, l, t) : (je(b, y, a), e[l] = void 0, v = b.$elm$), y = r[++s]) : (v = ot(e && e[s], n, s, t), y = r[++s]), v && Vn(d.$elm$).insertBefore(v, jt(d.$elm$));
199
- }
200
- i > u ? Xn(t, r[h + 1] == null ? null : r[h + 1].$elm$, n, r, s, h) : s > h && Qn(e, i, u);
201
- }, at = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, jt = (t) => t && t["s-ol"] || t, Vn = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, je = (t, e, n = !1) => {
202
- const r = e.$elm$ = t.$elm$, a = t.$children$, i = e.$children$, s = e.$tag$, l = e.$text$;
203
- let o;
204
- l === null ? (oe = s === "svg" ? !0 : s === "foreignObject" ? !1 : oe, s === "slot" || Jn(t, e, oe), a !== null && i !== null ? ha(r, a, e, i, n) : i !== null ? (t.$text$ !== null && (r.textContent = ""), Xn(r, null, e, i, 0, i.length - 1)) : a !== null && Qn(a, 0, a.length - 1), oe && s === "svg" && (oe = !1)) : (o = r["s-cr"]) ? o.parentNode.textContent = l : t.$text$ !== l && (r.data = l);
205
- }, er = (t) => {
206
- const e = t.childNodes;
207
- for (const n of e)
208
- if (n.nodeType === 1) {
209
- if (n["s-sr"]) {
210
- const r = n["s-sn"];
211
- n.hidden = !1;
212
- for (const a of e)
213
- if (a !== n) {
214
- if (a["s-hn"] !== n["s-hn"] || r !== "") {
215
- if (a.nodeType === 1 && (r === a.getAttribute("slot") || r === a["s-sn"])) {
216
- n.hidden = !0;
217
- break;
218
- }
219
- } else if (a.nodeType === 1 || a.nodeType === 3 && a.textContent.trim() !== "") {
220
- n.hidden = !0;
221
- break;
222
- }
223
- }
224
- }
225
- er(n);
226
- }
227
- }, Te = [], tr = (t) => {
228
- let e, n, r;
229
- for (const a of t.childNodes) {
230
- if (a["s-sr"] && (e = a["s-cr"]) && e.parentNode) {
231
- n = e.parentNode.childNodes;
232
- const i = a["s-sn"];
233
- for (r = n.length - 1; r >= 0; r--)
234
- if (e = n[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== a["s-hn"] && !Zr.experimentalSlotFixes)
235
- if (hn(e, i)) {
236
- let s = Te.find((l) => l.$nodeToRelocate$ === e);
237
- it = !0, e["s-sn"] = e["s-sn"] || i, s ? (s.$nodeToRelocate$["s-sh"] = a["s-hn"], s.$slotRefNode$ = a) : (e["s-sh"] = a["s-hn"], Te.push({
238
- $slotRefNode$: a,
239
- $nodeToRelocate$: e
240
- })), e["s-sr"] && Te.map((l) => {
241
- hn(l.$nodeToRelocate$, e["s-sn"]) && (s = Te.find((o) => o.$nodeToRelocate$ === e), s && !l.$slotRefNode$ && (l.$slotRefNode$ = s.$slotRefNode$));
242
- });
243
- } else
244
- Te.some((s) => s.$nodeToRelocate$ === e) || Te.push({
245
- $nodeToRelocate$: e
246
- });
247
- }
248
- a.nodeType === 1 && tr(a);
249
- }
250
- }, hn = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", nr = (t) => {
251
- t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(nr);
252
- }, ya = (t, e, n = !1) => {
253
- var r, a, i, s;
254
- const l = t.$hostElement$, o = t.$cmpMeta$, u = t.$vnode$ || st(null, null), d = ra(e) ? e : Kn(null, null, e);
255
- if (yt = l.tagName, n && d.$attrs$)
256
- for (const f of Object.keys(d.$attrs$))
257
- l.hasAttribute(f) && !["key", "ref", "style", "class"].includes(f) && (d.$attrs$[f] = l[f]);
258
- d.$tag$ = null, d.$flags$ |= 4, t.$vnode$ = d, d.$elm$ = u.$elm$ = l.shadowRoot || l, He = l["s-sc"], Ot = l["s-cr"], zn = (o.$flags$ & 1) !== 0, it = !1, je(u, d, n);
259
- {
260
- if (z.$flags$ |= 1, Yt) {
261
- tr(d.$elm$);
262
- for (const f of Te) {
263
- const h = f.$nodeToRelocate$;
264
- if (!h["s-ol"]) {
265
- const y = ne.createTextNode("");
266
- y["s-nr"] = h, h.parentNode.insertBefore(h["s-ol"] = y, h);
267
- }
268
- }
269
- for (const f of Te) {
270
- const h = f.$nodeToRelocate$, y = f.$slotRefNode$;
271
- if (y) {
272
- const p = y.parentNode;
273
- let v = y.nextSibling;
274
- {
275
- let b = (r = h["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
276
- for (; b; ) {
277
- let T = (a = b["s-nr"]) !== null && a !== void 0 ? a : null;
278
- if (T && T["s-sn"] === h["s-sn"] && p === T.parentNode && (T = T.nextSibling, !T || !T["s-nr"])) {
279
- v = T;
280
- break;
281
- }
282
- b = b.previousSibling;
283
- }
284
- }
285
- (!v && p !== h.parentNode || h.nextSibling !== v) && h !== v && (!h["s-hn"] && h["s-ol"] && (h["s-hn"] = h["s-ol"].parentNode.nodeName), p.insertBefore(h, v), h.nodeType === 1 && (h.hidden = (i = h["s-ih"]) !== null && i !== void 0 ? i : !1));
286
- } else
287
- h.nodeType === 1 && (n && (h["s-ih"] = (s = h.hidden) !== null && s !== void 0 ? s : !1), h.hidden = !0);
288
- }
289
- }
290
- it && er(d.$elm$), z.$flags$ &= -2, Te.length = 0;
291
- }
292
- Ot = void 0;
293
- }, rr = (t, e) => {
294
- e && !t.$onRenderResolve$ && e["s-p"] && e["s-p"].push(new Promise((n) => t.$onRenderResolve$ = n));
295
- }, pt = (t, e) => {
296
- if (t.$flags$ |= 16, t.$flags$ & 4) {
297
- t.$flags$ |= 512;
298
- return;
299
- }
300
- return rr(t, t.$ancestorComponent$), Na(() => pa(t, e));
301
- }, pa = (t, e) => {
302
- const n = Oe("scheduleUpdate", t.$cmpMeta$.$tagName$), r = t.$lazyInstance$;
303
- let a;
304
- return e ? (t.$flags$ |= 256, t.$queuedListeners$ && (t.$queuedListeners$.map(([i, s]) => Se(r, i, s)), t.$queuedListeners$ = void 0), a = Se(r, "componentWillLoad")) : a = Se(r, "componentWillUpdate"), a = yn(a, () => Se(r, "componentWillRender")), n(), yn(a, () => va(t, r, e));
305
- }, yn = (t, e) => ma(t) ? t.then(e) : e(), ma = (t) => t instanceof Promise || t && t.then && typeof t.then == "function", va = async (t, e, n) => {
306
- var r;
307
- const a = t.$hostElement$, i = Oe("update", t.$cmpMeta$.$tagName$), s = a["s-rc"];
308
- n && ua(t);
309
- const l = Oe("render", t.$cmpMeta$.$tagName$);
310
- ga(t, e, a, n), s && (s.map((o) => o()), a["s-rc"] = void 0), l(), i();
311
- {
312
- const o = (r = a["s-p"]) !== null && r !== void 0 ? r : [], u = () => ba(t);
313
- o.length === 0 ? u() : (Promise.all(o).then(u), t.$flags$ |= 4, o.length = 0);
314
- }
315
- }, ga = (t, e, n, r) => {
316
- try {
317
- xt = e, e = e.render(), t.$flags$ &= -17, t.$flags$ |= 2, ya(t, e, r);
318
- } catch (a) {
319
- Ae(a, t.$hostElement$);
320
- }
321
- return xt = null, null;
322
- }, pn = () => xt, ba = (t) => {
323
- const e = t.$cmpMeta$.$tagName$, n = t.$hostElement$, r = Oe("postUpdate", e), a = t.$lazyInstance$, i = t.$ancestorComponent$;
324
- Se(a, "componentDidRender"), t.$flags$ & 64 ? (Se(a, "componentDidUpdate"), r()) : (t.$flags$ |= 64, ir(n), Se(a, "componentDidLoad"), r(), t.$onReadyResolve$(n), i || ar()), t.$onInstanceResolve$(n), t.$onRenderResolve$ && (t.$onRenderResolve$(), t.$onRenderResolve$ = void 0), t.$flags$ & 512 && Wt(() => pt(t, !1)), t.$flags$ &= -517;
325
- }, mn = (t) => {
326
- {
327
- const e = Ce(t), n = e.$hostElement$.isConnected;
328
- return n && (e.$flags$ & 18) === 2 && pt(e, !1), n;
329
- }
330
- }, ar = (t) => {
331
- ir(ne.documentElement), Wt(() => oa(et, "appload", { detail: { namespace: Gr } }));
332
- }, Se = (t, e, n) => {
333
- if (t && t[e])
334
- try {
335
- return t[e](n);
336
- } catch (r) {
337
- Ae(r);
338
- }
339
- }, ir = (t) => t.classList.add("hydrated"), $a = (t, e) => Ce(t).$instanceValues$.get(e), wa = (t, e, n, r) => {
340
- const a = Ce(t), i = a.$hostElement$, s = a.$instanceValues$.get(e), l = a.$flags$, o = a.$lazyInstance$;
341
- n = sa(n, r.$members$[e][0]);
342
- const u = Number.isNaN(s) && Number.isNaN(n), d = n !== s && !u;
343
- if ((!(l & 8) || s === void 0) && d && (a.$instanceValues$.set(e, n), o)) {
344
- if (r.$watchers$ && l & 128) {
345
- const f = r.$watchers$[e];
346
- f && f.map((h) => {
347
- try {
348
- o[h](n, s, e);
349
- } catch (y) {
350
- Ae(y, i);
351
- }
352
- });
353
- }
354
- (l & 18) === 2 && pt(a, !1);
355
- }
356
- }, sr = (t, e, n) => {
357
- var r;
358
- const a = t.prototype;
359
- if (e.$flags$ & 64 && n & 1 && Qr.forEach((i) => Object.defineProperty(a, i, {
360
- value(...s) {
361
- const l = Ce(this), o = l.$lazyInstance$;
362
- if (!o)
363
- l.$onReadyPromise$.then((u) => {
364
- const d = u[i];
365
- typeof d == "function" && d.call(u, ...s);
366
- });
367
- else {
368
- const u = o[i];
369
- typeof u == "function" && u.call(o, ...s);
370
- }
371
- }
372
- })), e.$members$) {
373
- t.watchers && (e.$watchers$ = t.watchers);
374
- const i = Object.entries(e.$members$);
375
- if (i.map(([s, [l]]) => {
376
- l & 31 || n & 2 && l & 32 ? Object.defineProperty(a, s, {
377
- get() {
378
- return $a(this, s);
379
- },
380
- set(o) {
381
- wa(this, s, o, e);
382
- },
383
- configurable: !0,
384
- enumerable: !0
385
- }) : n & 1 && l & 64 && Object.defineProperty(a, s, {
386
- value(...o) {
387
- var u;
388
- const d = Ce(this);
389
- return (u = d == null ? void 0 : d.$onInstancePromise$) === null || u === void 0 ? void 0 : u.then(() => {
390
- var f;
391
- return (f = d.$lazyInstance$) === null || f === void 0 ? void 0 : f[s](...o);
392
- });
393
- }
394
- });
395
- }), n & 1) {
396
- const s = /* @__PURE__ */ new Map();
397
- a.attributeChangedCallback = function(l, o, u) {
398
- z.jmp(() => {
399
- var d;
400
- const f = s.get(l);
401
- if (this.hasOwnProperty(f))
402
- u = this[f], delete this[f];
403
- else {
404
- if (a.hasOwnProperty(f) && typeof this[f] == "number" && this[f] == u)
405
- return;
406
- if (f == null) {
407
- const h = Ce(this), y = h == null ? void 0 : h.$flags$;
408
- if (y && !(y & 8) && y & 128 && u !== o) {
409
- const p = h.$lazyInstance$, v = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[l];
410
- v == null || v.forEach((b) => {
411
- p[b] != null && p[b].call(p, u, o, l);
412
- });
413
- }
414
- return;
415
- }
416
- }
417
- this[f] = u === null && typeof this[f] == "boolean" ? !1 : u;
418
- });
419
- }, t.observedAttributes = Array.from(/* @__PURE__ */ new Set([
420
- ...Object.keys((r = e.$watchers$) !== null && r !== void 0 ? r : {}),
421
- ...i.filter(
422
- ([l, o]) => o[0] & 15
423
- /* MEMBER_FLAGS.HasAttribute */
424
- ).map(([l, o]) => {
425
- const u = o[1] || l;
426
- return s.set(u, l), u;
427
- })
428
- ]));
429
- }
430
- }
431
- return t;
432
- }, ka = async (t, e, n, r) => {
433
- let a;
434
- if (!(e.$flags$ & 32)) {
435
- e.$flags$ |= 32;
436
- {
437
- if (a = Ra(n), a.then) {
438
- const o = Jr();
439
- a = await a, o();
440
- }
441
- a.isProxied || (n.$watchers$ = a.watchers, sr(
442
- a,
443
- n,
444
- 2
445
- /* PROXY_FLAGS.proxyState */
446
- ), a.isProxied = !0);
447
- const l = Oe("createInstance", n.$tagName$);
448
- e.$flags$ |= 8;
449
- try {
450
- new a(e);
451
- } catch (o) {
452
- Ae(o);
453
- }
454
- e.$flags$ &= -9, e.$flags$ |= 128, l(), Dt(e.$lazyInstance$);
455
- }
456
- if (a.style) {
457
- let l = a.style;
458
- const o = Gn(n);
459
- if (!lt.has(o)) {
460
- const u = Oe("registerStyles", n.$tagName$);
461
- la(o, l, !!(n.$flags$ & 1)), u();
462
- }
463
- }
464
- }
465
- const i = e.$ancestorComponent$, s = () => pt(e, !0);
466
- i && i["s-rc"] ? i["s-rc"].push(s) : s();
467
- }, Dt = (t) => {
468
- Se(t, "connectedCallback");
469
- }, Ea = (t) => {
470
- if (!(z.$flags$ & 1)) {
471
- const e = Ce(t), n = e.$cmpMeta$, r = Oe("connectedCallback", n.$tagName$);
472
- if (e.$flags$ & 1)
473
- or(t, e, n.$listeners$), e != null && e.$lazyInstance$ ? Dt(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => Dt(e.$lazyInstance$));
474
- else {
475
- e.$flags$ |= 1, // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
476
- n.$flags$ & 12 && Ta(t);
477
- {
478
- let a = t;
479
- for (; a = a.parentNode || a.host; )
480
- if (a["s-p"]) {
481
- rr(e, e.$ancestorComponent$ = a);
482
- break;
483
- }
484
- }
485
- n.$members$ && Object.entries(n.$members$).map(([a, [i]]) => {
486
- if (i & 31 && t.hasOwnProperty(a)) {
487
- const s = t[a];
488
- delete t[a], t[a] = s;
489
- }
490
- }), ka(t, e, n);
491
- }
492
- r();
493
- }
494
- }, Ta = (t) => {
495
- const e = t["s-cr"] = ne.createComment("");
496
- e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
497
- }, vn = (t) => {
498
- Se(t, "disconnectedCallback");
499
- }, Sa = async (t) => {
500
- if (!(z.$flags$ & 1)) {
501
- const e = Ce(t);
502
- e.$rmListeners$ && (e.$rmListeners$.map((n) => n()), e.$rmListeners$ = void 0), e != null && e.$lazyInstance$ ? vn(e.$lazyInstance$) : e != null && e.$onReadyPromise$ && e.$onReadyPromise$.then(() => vn(e.$lazyInstance$));
503
- }
504
- }, Ca = (t, e = {}) => {
505
- var n;
506
- const r = Oe(), a = [], i = e.exclude || [], s = et.customElements, l = ne.head, o = /* @__PURE__ */ l.querySelector("meta[charset]"), u = /* @__PURE__ */ ne.createElement("style"), d = [];
507
- let f, h = !0;
508
- Object.assign(z, e), z.$resourcesUrl$ = new URL(e.resourcesUrl || "./", ne.baseURI).href;
509
- let y = !1;
510
- if (t.map((p) => {
511
- p[1].map((v) => {
512
- var b;
513
- const T = {
514
- $flags$: v[0],
515
- $tagName$: v[1],
516
- $members$: v[2],
517
- $listeners$: v[3]
518
- };
519
- T.$flags$ & 4 && (y = !0), T.$members$ = v[2], T.$listeners$ = v[3], T.$watchers$ = (b = v[4]) !== null && b !== void 0 ? b : {};
520
- const L = T.$tagName$, Q = class extends HTMLElement {
521
- // StencilLazyHost
522
- constructor(ie) {
523
- super(ie), ie = this, Da(ie, T), T.$flags$ & 1 && ie.attachShadow({ mode: "open" });
524
- }
525
- connectedCallback() {
526
- f && (clearTimeout(f), f = null), h ? d.push(this) : z.jmp(() => Ea(this));
527
- }
528
- disconnectedCallback() {
529
- z.jmp(() => Sa(this));
530
- }
531
- componentOnReady() {
532
- return Ce(this).$onReadyPromise$;
533
- }
534
- };
535
- T.$flags$ & 64 && (Q.formAssociated = !0), T.$lazyBundleId$ = p[0], !i.includes(L) && !s.get(L) && (a.push(L), s.define(L, sr(
536
- Q,
537
- T,
538
- 1
539
- /* PROXY_FLAGS.isElementConstructor */
540
- )));
541
- });
542
- }), y && (u.innerHTML += Bn), u.innerHTML += a + Xr, u.innerHTML.length) {
543
- u.setAttribute("data-styles", "");
544
- const p = (n = z.$nonce$) !== null && n !== void 0 ? n : qn(ne);
545
- p != null && u.setAttribute("nonce", p), l.insertBefore(u, o ? o.nextSibling : l.firstChild);
546
- }
547
- h = !1, d.length ? d.map((p) => p.connectedCallback()) : z.jmp(() => f = setTimeout(ar, 30)), r();
548
- }, or = (t, e, n, r) => {
549
- n && n.map(([a, i, s]) => {
550
- const l = xa(t, a), o = Oa(e, s), u = _a(a);
551
- z.ael(l, i, o, u), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => z.rel(l, i, o, u));
552
- });
553
- }, Oa = (t, e) => (n) => {
554
- try {
555
- t.$flags$ & 256 ? t.$lazyInstance$[e](n) : (t.$queuedListeners$ = t.$queuedListeners$ || []).push([e, n]);
556
- } catch (r) {
557
- Ae(r);
558
- }
559
- }, xa = (t, e) => e & 4 ? ne : e & 8 ? et : e & 16 ? ne.body : t, _a = (t) => La ? {
560
- passive: (t & 1) !== 0,
561
- capture: (t & 2) !== 0
562
- } : (t & 2) !== 0, ls = (t) => z.$nonce$ = t, lr = /* @__PURE__ */ new WeakMap(), Ce = (t) => lr.get(t), Da = (t, e) => {
563
- const n = {
564
- $flags$: 0,
565
- $hostElement$: t,
566
- $cmpMeta$: e,
567
- $instanceValues$: /* @__PURE__ */ new Map()
568
- };
569
- return n.$onInstancePromise$ = new Promise((r) => n.$onInstanceResolve$ = r), n.$onReadyPromise$ = new Promise((r) => n.$onReadyResolve$ = r), t["s-p"] = [], t["s-rc"] = [], or(t, n, e.$listeners$), lr.set(t, n);
570
- }, gn = (t, e) => e in t, Ae = (t, e) => (0, console.error)(t, e), bn = /* @__PURE__ */ new Map(), Ra = (t, e, n) => {
571
- const r = t.$tagName$.replace(/-/g, "_"), a = t.$lazyBundleId$, i = bn.get(a);
572
- if (i)
573
- return i[r];
574
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
575
- return import(
576
- /* @vite-ignore */
577
- /* webpackInclude: /\.entry\.js$/ */
578
- /* webpackExclude: /\.system\.entry\.js$/ */
579
- /* webpackMode: "lazy" */
580
- `./${a}.entry.js`
581
- ).then((s) => (bn.set(a, s), s[r]), Ae);
582
- }, lt = /* @__PURE__ */ new Map(), et = typeof window < "u" ? window : {}, ne = et.document || { head: {} }, z = {
583
- $flags$: 0,
584
- $resourcesUrl$: "",
585
- jmp: (t) => t(),
586
- raf: (t) => requestAnimationFrame(t),
587
- ael: (t, e, n, r) => t.addEventListener(e, n, r),
588
- rel: (t, e, n, r) => t.removeEventListener(e, n, r),
589
- ce: (t, e) => new CustomEvent(t, e)
590
- }, La = /* @__PURE__ */ (() => {
591
- let t = !1;
592
- try {
593
- ne.addEventListener("e", null, Object.defineProperty({}, "passive", {
594
- get() {
595
- t = !0;
596
- }
597
- }));
598
- } catch {
599
- }
600
- return t;
601
- })(), Ma = (t) => Promise.resolve(t), Aa = /* @__PURE__ */ (() => {
602
- try {
603
- return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
604
- } catch {
605
- }
606
- return !1;
607
- })(), $n = [], cr = [], Ia = (t, e) => (n) => {
608
- t.push(n), _t || (_t = !0, e && z.$flags$ & 4 ? Wt(Rt) : z.raf(Rt));
609
- }, wn = (t) => {
610
- for (let e = 0; e < t.length; e++)
611
- try {
612
- t[e](performance.now());
613
- } catch (n) {
614
- Ae(n);
615
- }
616
- t.length = 0;
617
- }, Rt = () => {
618
- wn($n), wn(cr), (_t = $n.length > 0) && z.raf(Rt);
619
- }, Wt = (t) => Ma().then(t), Na = /* @__PURE__ */ Ia(cr, !0), Ua = (t, e, n) => {
620
- const r = t.get(e);
621
- r ? r.includes(n) || r.push(n) : t.set(e, [n]);
622
- }, Pa = (t, e) => {
623
- let n;
624
- return (...r) => {
625
- n && clearTimeout(n), n = setTimeout(() => {
626
- n = 0, t(...r);
627
- }, e);
628
- };
629
- }, Ya = (t) => !("isConnected" in t) || t.isConnected, kn = Pa((t) => {
630
- for (let e of t.keys())
631
- t.set(e, t.get(e).filter(Ya));
632
- }, 2e3), Ha = () => {
633
- if (typeof pn != "function")
634
- return {};
635
- const t = /* @__PURE__ */ new Map();
636
- return {
637
- dispose: () => t.clear(),
638
- get: (e) => {
639
- const n = pn();
640
- n && Ua(t, e, n);
641
- },
642
- set: (e) => {
643
- const n = t.get(e);
644
- n && t.set(e, n.filter(mn)), kn(t);
645
- },
646
- reset: () => {
647
- t.forEach((e) => e.forEach(mn)), kn(t);
648
- }
649
- };
650
- }, Et = (t) => typeof t == "function" ? t() : t, ja = (t, e = (n, r) => n !== r) => {
651
- const n = Et(t);
652
- let r = new Map(Object.entries(n ?? {}));
653
- const a = {
654
- dispose: [],
655
- get: [],
656
- set: [],
657
- reset: []
658
- }, i = () => {
659
- var p;
660
- r = new Map(Object.entries((p = Et(t)) !== null && p !== void 0 ? p : {})), a.reset.forEach((v) => v());
661
- }, s = () => {
662
- a.dispose.forEach((p) => p()), i();
663
- }, l = (p) => (a.get.forEach((v) => v(p)), r.get(p)), o = (p, v) => {
664
- const b = r.get(p);
665
- e(v, b, p) && (r.set(p, v), a.set.forEach((T) => T(p, v, b)));
666
- }, u = typeof Proxy > "u" ? {} : new Proxy(n, {
667
- get(p, v) {
668
- return l(v);
669
- },
670
- ownKeys(p) {
671
- return Array.from(r.keys());
672
- },
673
- getOwnPropertyDescriptor() {
674
- return {
675
- enumerable: !0,
676
- configurable: !0
677
- };
678
- },
679
- has(p, v) {
680
- return r.has(v);
681
- },
682
- set(p, v, b) {
683
- return o(v, b), !0;
684
- }
685
- }), d = (p, v) => (a[p].push(v), () => {
686
- Wa(a[p], v);
687
- });
688
- return {
689
- state: u,
690
- get: l,
691
- set: o,
692
- on: d,
693
- onChange: (p, v) => {
694
- const b = d("set", (L, Q) => {
695
- L === p && v(Q);
696
- }), T = d("reset", () => v(Et(t)[p]));
697
- return () => {
698
- b(), T();
699
- };
700
- },
701
- use: (...p) => {
702
- const v = p.reduce((b, T) => (T.set && b.push(d("set", T.set)), T.get && b.push(d("get", T.get)), T.reset && b.push(d("reset", T.reset)), T.dispose && b.push(d("dispose", T.dispose)), b), []);
703
- return () => v.forEach((b) => b());
704
- },
705
- dispose: s,
706
- reset: i,
707
- forceUpdate: (p) => {
708
- const v = r.get(p);
709
- a.set.forEach((b) => b(p, v, v));
710
- }
711
- };
712
- }, Wa = (t, e) => {
713
- const n = t.indexOf(e);
714
- n >= 0 && (t[n] = t[t.length - 1], t.length--);
715
- }, Fa = (t, e) => {
716
- const n = ja(t, e);
717
- return n.use(Ha()), n;
718
- };
719
- var za = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ba = { exports: {} };
720
- (function(t, e) {
721
- (function(n, r) {
722
- t.exports = r();
723
- })(za, function() {
724
- var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", s = "second", l = "minute", o = "hour", u = "day", d = "week", f = "month", h = "quarter", y = "year", p = "date", v = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(C) {
725
- var E = ["th", "st", "nd", "rd"], w = C % 100;
726
- return "[" + C + (E[(w - 20) % 10] || E[w] || E[0]) + "]";
727
- } }, Q = function(C, E, w) {
728
- var _ = String(C);
729
- return !_ || _.length >= E ? C : "" + Array(E + 1 - _.length).join(w) + C;
730
- }, ie = { s: Q, z: function(C) {
731
- var E = -C.utcOffset(), w = Math.abs(E), _ = Math.floor(w / 60), S = w % 60;
732
- return (E <= 0 ? "+" : "-") + Q(_, 2, "0") + ":" + Q(S, 2, "0");
733
- }, m: function C(E, w) {
734
- if (E.date() < w.date())
735
- return -C(w, E);
736
- var _ = 12 * (w.year() - E.year()) + (w.month() - E.month()), S = E.clone().add(_, f), R = w - S < 0, D = E.clone().add(_ + (R ? -1 : 1), f);
737
- return +(-(_ + (w - S) / (R ? S - D : D - S)) || 0);
738
- }, a: function(C) {
739
- return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
740
- }, p: function(C) {
741
- return { M: f, y, w: d, d: u, D: p, h: o, m: l, s, ms: i, Q: h }[C] || String(C || "").toLowerCase().replace(/s$/, "");
742
- }, u: function(C) {
743
- return C === void 0;
744
- } }, fe = "en", V = {};
745
- V[fe] = L;
746
- var Re = function(C) {
747
- return C instanceof Ne;
748
- }, Ie = function C(E, w, _) {
749
- var S;
750
- if (!E)
751
- return fe;
752
- if (typeof E == "string") {
753
- var R = E.toLowerCase();
754
- V[R] && (S = R), w && (V[R] = w, S = R);
755
- var D = E.split("-");
756
- if (!S && D.length > 1)
757
- return C(D[0]);
758
- } else {
759
- var U = E.name;
760
- V[U] = E, S = U;
761
- }
762
- return !_ && S && (fe = S), S || !_ && fe;
763
- }, B = function(C, E) {
764
- if (Re(C))
765
- return C.clone();
766
- var w = typeof E == "object" ? E : {};
767
- return w.date = C, w.args = arguments, new Ne(w);
768
- }, Y = ie;
769
- Y.l = Ie, Y.i = Re, Y.w = function(C, E) {
770
- return B(C, { locale: E.$L, utc: E.$u, x: E.$x, $offset: E.$offset });
771
- };
772
- var Ne = function() {
773
- function C(w) {
774
- this.$L = Ie(w.locale, null, !0), this.parse(w);
775
- }
776
- var E = C.prototype;
777
- return E.parse = function(w) {
778
- this.$d = function(_) {
779
- var S = _.date, R = _.utc;
780
- if (S === null)
781
- return /* @__PURE__ */ new Date(NaN);
782
- if (Y.u(S))
783
- return /* @__PURE__ */ new Date();
784
- if (S instanceof Date)
785
- return new Date(S);
786
- if (typeof S == "string" && !/Z$/i.test(S)) {
787
- var D = S.match(b);
788
- if (D) {
789
- var U = D[2] - 1 || 0, F = (D[7] || "0").substring(0, 3);
790
- return R ? new Date(Date.UTC(D[1], U, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, F)) : new Date(D[1], U, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, F);
791
- }
792
- }
793
- return new Date(S);
794
- }(w), this.$x = w.x || {}, this.init();
795
- }, E.init = function() {
796
- var w = this.$d;
797
- this.$y = w.getFullYear(), this.$M = w.getMonth(), this.$D = w.getDate(), this.$W = w.getDay(), this.$H = w.getHours(), this.$m = w.getMinutes(), this.$s = w.getSeconds(), this.$ms = w.getMilliseconds();
798
- }, E.$utils = function() {
799
- return Y;
800
- }, E.isValid = function() {
801
- return this.$d.toString() !== v;
802
- }, E.isSame = function(w, _) {
803
- var S = B(w);
804
- return this.startOf(_) <= S && S <= this.endOf(_);
805
- }, E.isAfter = function(w, _) {
806
- return B(w) < this.startOf(_);
807
- }, E.isBefore = function(w, _) {
808
- return this.endOf(_) < B(w);
809
- }, E.$g = function(w, _, S) {
810
- return Y.u(w) ? this[_] : this.set(S, w);
811
- }, E.unix = function() {
812
- return Math.floor(this.valueOf() / 1e3);
813
- }, E.valueOf = function() {
814
- return this.$d.getTime();
815
- }, E.startOf = function(w, _) {
816
- var S = this, R = !!Y.u(_) || _, D = Y.p(w), U = function(ye, J) {
817
- var se = Y.w(S.$u ? Date.UTC(S.$y, J, ye) : new Date(S.$y, J, ye), S);
818
- return R ? se : se.endOf(u);
819
- }, F = function(ye, J) {
820
- return Y.w(S.toDate()[ye].apply(S.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(J)), S);
821
- }, W = this.$W, Z = this.$M, me = this.$D, he = "set" + (this.$u ? "UTC" : "");
822
- switch (D) {
823
- case y:
824
- return R ? U(1, 0) : U(31, 11);
825
- case f:
826
- return R ? U(1, Z) : U(0, Z + 1);
827
- case d:
828
- var $e = this.$locale().weekStart || 0, we = (W < $e ? W + 7 : W) - $e;
829
- return U(R ? me - we : me + (6 - we), Z);
830
- case u:
831
- case p:
832
- return F(he + "Hours", 0);
833
- case o:
834
- return F(he + "Minutes", 1);
835
- case l:
836
- return F(he + "Seconds", 2);
837
- case s:
838
- return F(he + "Milliseconds", 3);
839
- default:
840
- return this.clone();
841
- }
842
- }, E.endOf = function(w) {
843
- return this.startOf(w, !1);
844
- }, E.$set = function(w, _) {
845
- var S, R = Y.p(w), D = "set" + (this.$u ? "UTC" : ""), U = (S = {}, S[u] = D + "Date", S[p] = D + "Date", S[f] = D + "Month", S[y] = D + "FullYear", S[o] = D + "Hours", S[l] = D + "Minutes", S[s] = D + "Seconds", S[i] = D + "Milliseconds", S)[R], F = R === u ? this.$D + (_ - this.$W) : _;
846
- if (R === f || R === y) {
847
- var W = this.clone().set(p, 1);
848
- W.$d[U](F), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
849
- } else
850
- U && this.$d[U](F);
851
- return this.init(), this;
852
- }, E.set = function(w, _) {
853
- return this.clone().$set(w, _);
854
- }, E.get = function(w) {
855
- return this[Y.p(w)]();
856
- }, E.add = function(w, _) {
857
- var S, R = this;
858
- w = Number(w);
859
- var D = Y.p(_), U = function(Z) {
860
- var me = B(R);
861
- return Y.w(me.date(me.date() + Math.round(Z * w)), R);
862
- };
863
- if (D === f)
864
- return this.set(f, this.$M + w);
865
- if (D === y)
866
- return this.set(y, this.$y + w);
867
- if (D === u)
868
- return U(1);
869
- if (D === d)
870
- return U(7);
871
- var F = (S = {}, S[l] = r, S[o] = a, S[s] = n, S)[D] || 1, W = this.$d.getTime() + w * F;
872
- return Y.w(W, this);
873
- }, E.subtract = function(w, _) {
874
- return this.add(-1 * w, _);
875
- }, E.format = function(w) {
876
- var _ = this, S = this.$locale();
877
- if (!this.isValid())
878
- return S.invalidDate || v;
879
- var R = w || "YYYY-MM-DDTHH:mm:ssZ", D = Y.z(this), U = this.$H, F = this.$m, W = this.$M, Z = S.weekdays, me = S.months, he = function(J, se, qe, Le) {
880
- return J && (J[se] || J(_, R)) || qe[se].slice(0, Le);
881
- }, $e = function(J) {
882
- return Y.s(U % 12 || 12, J, "0");
883
- }, we = S.meridiem || function(J, se, qe) {
884
- var Le = J < 12 ? "AM" : "PM";
885
- return qe ? Le.toLowerCase() : Le;
886
- }, ye = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: W + 1, MM: Y.s(W + 1, 2, "0"), MMM: he(S.monthsShort, W, me, 3), MMMM: he(me, W), D: this.$D, DD: Y.s(this.$D, 2, "0"), d: String(this.$W), dd: he(S.weekdaysMin, this.$W, Z, 2), ddd: he(S.weekdaysShort, this.$W, Z, 3), dddd: Z[this.$W], H: String(U), HH: Y.s(U, 2, "0"), h: $e(1), hh: $e(2), a: we(U, F, !0), A: we(U, F, !1), m: String(F), mm: Y.s(F, 2, "0"), s: String(this.$s), ss: Y.s(this.$s, 2, "0"), SSS: Y.s(this.$ms, 3, "0"), Z: D };
887
- return R.replace(T, function(J, se) {
888
- return se || ye[J] || D.replace(":", "");
889
- });
890
- }, E.utcOffset = function() {
891
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
892
- }, E.diff = function(w, _, S) {
893
- var R, D = Y.p(_), U = B(w), F = (U.utcOffset() - this.utcOffset()) * r, W = this - U, Z = Y.m(this, U);
894
- return Z = (R = {}, R[y] = Z / 12, R[f] = Z, R[h] = Z / 3, R[d] = (W - F) / 6048e5, R[u] = (W - F) / 864e5, R[o] = W / a, R[l] = W / r, R[s] = W / n, R)[D] || W, S ? Z : Y.a(Z);
895
- }, E.daysInMonth = function() {
896
- return this.endOf(f).$D;
897
- }, E.$locale = function() {
898
- return V[this.$L];
899
- }, E.locale = function(w, _) {
900
- if (!w)
901
- return this.$L;
902
- var S = this.clone(), R = Ie(w, _, !0);
903
- return R && (S.$L = R), S;
904
- }, E.clone = function() {
905
- return Y.w(this.$d, this);
906
- }, E.toDate = function() {
907
- return new Date(this.valueOf());
908
- }, E.toJSON = function() {
909
- return this.isValid() ? this.toISOString() : null;
910
- }, E.toISOString = function() {
911
- return this.$d.toISOString();
912
- }, E.toString = function() {
913
- return this.$d.toUTCString();
914
- }, C;
915
- }(), Be = Ne.prototype;
916
- return B.prototype = Be, [["$ms", i], ["$s", s], ["$m", l], ["$H", o], ["$W", u], ["$M", f], ["$y", y], ["$D", p]].forEach(function(C) {
917
- Be[C[1]] = function(E) {
918
- return this.$g(E, C[0], C[1]);
919
- };
920
- }), B.extend = function(C, E) {
921
- return C.$i || (C(E, Ne, B), C.$i = !0), B;
922
- }, B.locale = Ie, B.isDayjs = Re, B.unix = function(C) {
923
- return B(1e3 * C);
924
- }, B.en = V[fe], B.Ls = V, B.p = {}, B;
925
- });
926
- })(Ba);
927
- var Lt = [
928
- "MO",
929
- "TU",
930
- "WE",
931
- "TH",
932
- "FR",
933
- "SA",
934
- "SU"
935
- ], ae = (
936
- /** @class */
937
- function() {
938
- function t(e, n) {
939
- if (n === 0)
940
- throw new Error("Can't create weekday with n == 0");
941
- this.weekday = e, this.n = n;
942
- }
943
- return t.fromStr = function(e) {
944
- return new t(Lt.indexOf(e));
945
- }, t.prototype.nth = function(e) {
946
- return this.n === e ? this : new t(this.weekday, e);
947
- }, t.prototype.equals = function(e) {
948
- return this.weekday === e.weekday && this.n === e.n;
949
- }, t.prototype.toString = function() {
950
- var e = Lt[this.weekday];
951
- return this.n && (e = (this.n > 0 ? "+" : "") + String(this.n) + e), e;
952
- }, t.prototype.getJsWeekday = function() {
953
- return this.weekday === 6 ? 0 : this.weekday + 1;
954
- }, t;
955
- }()
956
- ), G = function(t) {
957
- return t != null;
958
- }, ve = function(t) {
959
- return typeof t == "number";
960
- }, En = function(t) {
961
- return typeof t == "string" && Lt.includes(t);
962
- }, le = Array.isArray, be = function(t, e) {
963
- e === void 0 && (e = t), arguments.length === 1 && (e = t, t = 0);
964
- for (var n = [], r = t; r < e; r++)
965
- n.push(r);
966
- return n;
967
- }, I = function(t, e) {
968
- var n = 0, r = [];
969
- if (le(t))
970
- for (; n < e; n++)
971
- r[n] = [].concat(t);
972
- else
973
- for (; n < e; n++)
974
- r[n] = t;
975
- return r;
976
- }, qa = function(t) {
977
- return le(t) ? t : [t];
978
- };
979
- function Ye(t, e, n) {
980
- n === void 0 && (n = " ");
981
- var r = String(t);
982
- return e = e >> 0, r.length > e ? String(r) : (e = e - r.length, e > n.length && (n += I(n, e / n.length)), n.slice(0, e) + String(r));
983
- }
984
- var Ka = function(t, e, n) {
985
- var r = t.split(e);
986
- return n ? r.slice(0, n).concat([r.slice(n).join(e)]) : r;
987
- }, de = function(t, e) {
988
- var n = t % e;
989
- return n * e < 0 ? n + e : n;
990
- }, Tt = function(t, e) {
991
- return { div: Math.floor(t / e), mod: de(t, e) };
992
- }, ge = function(t) {
993
- return !G(t) || t.length === 0;
994
- }, X = function(t) {
995
- return !ge(t);
996
- }, j = function(t, e) {
997
- return X(t) && t.indexOf(e) !== -1;
998
- }, Me = function(t, e, n, r, a, i) {
999
- return r === void 0 && (r = 0), a === void 0 && (a = 0), i === void 0 && (i = 0), new Date(Date.UTC(t, e - 1, n, r, a, i));
1000
- }, Ga = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ur = 1e3 * 60 * 60 * 24, dr = 9999, fr = Me(1970, 1, 1), Za = [6, 0, 1, 2, 3, 4, 5], Xe = function(t) {
1001
- return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
1002
- }, hr = function(t) {
1003
- return t instanceof Date;
1004
- }, Je = function(t) {
1005
- return hr(t) && !isNaN(t.getTime());
1006
- }, Tn = function(t) {
1007
- return t.getTimezoneOffset() * 60 * 1e3;
1008
- }, Ja = function(t, e) {
1009
- var n = t.getTime() - Tn(t), r = e.getTime() - Tn(e), a = n - r;
1010
- return Math.round(a / ur);
1011
- }, Mt = function(t) {
1012
- return Ja(t, fr);
1013
- }, yr = function(t) {
1014
- return new Date(fr.getTime() + t * ur);
1015
- }, Xa = function(t) {
1016
- var e = t.getUTCMonth();
1017
- return e === 1 && Xe(t.getUTCFullYear()) ? 29 : Ga[e];
1018
- }, Fe = function(t) {
1019
- return Za[t.getUTCDay()];
1020
- }, Sn = function(t, e) {
1021
- var n = Me(t, e + 1, 1);
1022
- return [Fe(n), Xa(n)];
1023
- }, pr = function(t, e) {
1024
- return e = e || t, new Date(Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
1025
- }, At = function(t) {
1026
- var e = new Date(t.getTime());
1027
- return e;
1028
- }, Cn = function(t) {
1029
- for (var e = [], n = 0; n < t.length; n++)
1030
- e.push(At(t[n]));
1031
- return e;
1032
- }, Ve = function(t) {
1033
- t.sort(function(e, n) {
1034
- return e.getTime() - n.getTime();
1035
- });
1036
- }, Ft = function(t, e) {
1037
- e === void 0 && (e = !0);
1038
- var n = new Date(t);
1039
- return [
1040
- Ye(n.getUTCFullYear().toString(), 4, "0"),
1041
- Ye(n.getUTCMonth() + 1, 2, "0"),
1042
- Ye(n.getUTCDate(), 2, "0"),
1043
- "T",
1044
- Ye(n.getUTCHours(), 2, "0"),
1045
- Ye(n.getUTCMinutes(), 2, "0"),
1046
- Ye(n.getUTCSeconds(), 2, "0"),
1047
- e ? "Z" : ""
1048
- ].join("");
1049
- }, zt = function(t) {
1050
- var e = /^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/, n = e.exec(t);
1051
- if (!n)
1052
- throw new Error("Invalid UNTIL value: ".concat(t));
1053
- return new Date(Date.UTC(parseInt(n[1], 10), parseInt(n[2], 10) - 1, parseInt(n[3], 10), parseInt(n[5], 10) || 0, parseInt(n[6], 10) || 0, parseInt(n[7], 10) || 0));
1054
- }, On = function(t, e) {
1055
- var n = t.toLocaleString("sv-SE", { timeZone: e });
1056
- return n.replace(" ", "T") + "Z";
1057
- }, Qa = function(t, e) {
1058
- var n = Intl.DateTimeFormat().resolvedOptions().timeZone, r = new Date(On(t, n)), a = new Date(On(t, e ?? "UTC")), i = a.getTime() - r.getTime();
1059
- return new Date(t.getTime() - i);
1060
- }, We = (
1061
- /** @class */
1062
- function() {
1063
- function t(e, n) {
1064
- this.minDate = null, this.maxDate = null, this._result = [], this.total = 0, this.method = e, this.args = n, e === "between" ? (this.maxDate = n.inc ? n.before : new Date(n.before.getTime() - 1), this.minDate = n.inc ? n.after : new Date(n.after.getTime() + 1)) : e === "before" ? this.maxDate = n.inc ? n.dt : new Date(n.dt.getTime() - 1) : e === "after" && (this.minDate = n.inc ? n.dt : new Date(n.dt.getTime() + 1));
1065
- }
1066
- return t.prototype.accept = function(e) {
1067
- ++this.total;
1068
- var n = this.minDate && e < this.minDate, r = this.maxDate && e > this.maxDate;
1069
- if (this.method === "between") {
1070
- if (n)
1071
- return !0;
1072
- if (r)
1073
- return !1;
1074
- } else if (this.method === "before") {
1075
- if (r)
1076
- return !1;
1077
- } else if (this.method === "after")
1078
- return n ? !0 : (this.add(e), !1);
1079
- return this.add(e);
1080
- }, t.prototype.add = function(e) {
1081
- return this._result.push(e), !0;
1082
- }, t.prototype.getValue = function() {
1083
- var e = this._result;
1084
- switch (this.method) {
1085
- case "all":
1086
- case "between":
1087
- return e;
1088
- case "before":
1089
- case "after":
1090
- default:
1091
- return e.length ? e[e.length - 1] : null;
1092
- }
1093
- }, t.prototype.clone = function() {
1094
- return new t(this.method, this.args);
1095
- }, t;
1096
- }()
1097
- ), It = function(t, e) {
1098
- return It = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
1099
- n.__proto__ = r;
1100
- } || function(n, r) {
1101
- for (var a in r)
1102
- Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
1103
- }, It(t, e);
1104
- };
1105
- function Bt(t, e) {
1106
- if (typeof e != "function" && e !== null)
1107
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1108
- It(t, e);
1109
- function n() {
1110
- this.constructor = t;
1111
- }
1112
- t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
1113
- }
1114
- var ce = function() {
1115
- return ce = Object.assign || function(e) {
1116
- for (var n, r = 1, a = arguments.length; r < a; r++) {
1117
- n = arguments[r];
1118
- for (var i in n)
1119
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
1120
- }
1121
- return e;
1122
- }, ce.apply(this, arguments);
1123
- };
1124
- function $(t, e, n) {
1125
- if (n || arguments.length === 2)
1126
- for (var r = 0, a = e.length, i; r < a; r++)
1127
- (i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
1128
- return t.concat(i || Array.prototype.slice.call(e));
1129
- }
1130
- var xn = (
1131
- /** @class */
1132
- function(t) {
1133
- Bt(e, t);
1134
- function e(n, r, a) {
1135
- var i = t.call(this, n, r) || this;
1136
- return i.iterator = a, i;
1137
- }
1138
- return e.prototype.add = function(n) {
1139
- return this.iterator(n, this._result.length) ? (this._result.push(n), !0) : !1;
1140
- }, e;
1141
- }(We)
1142
- ), ct = {
1143
- dayNames: [
1144
- "Sunday",
1145
- "Monday",
1146
- "Tuesday",
1147
- "Wednesday",
1148
- "Thursday",
1149
- "Friday",
1150
- "Saturday"
1151
- ],
1152
- monthNames: [
1153
- "January",
1154
- "February",
1155
- "March",
1156
- "April",
1157
- "May",
1158
- "June",
1159
- "July",
1160
- "August",
1161
- "September",
1162
- "October",
1163
- "November",
1164
- "December"
1165
- ],
1166
- tokens: {
1167
- SKIP: /^[ \r\n\t]+|^\.$/,
1168
- number: /^[1-9][0-9]*/,
1169
- numberAsText: /^(one|two|three)/i,
1170
- every: /^every/i,
1171
- "day(s)": /^days?/i,
1172
- "weekday(s)": /^weekdays?/i,
1173
- "week(s)": /^weeks?/i,
1174
- "hour(s)": /^hours?/i,
1175
- "minute(s)": /^minutes?/i,
1176
- "month(s)": /^months?/i,
1177
- "year(s)": /^years?/i,
1178
- on: /^(on|in)/i,
1179
- at: /^(at)/i,
1180
- the: /^the/i,
1181
- first: /^first/i,
1182
- second: /^second/i,
1183
- third: /^third/i,
1184
- nth: /^([1-9][0-9]*)(\.|th|nd|rd|st)/i,
1185
- last: /^last/i,
1186
- for: /^for/i,
1187
- "time(s)": /^times?/i,
1188
- until: /^(un)?til/i,
1189
- monday: /^mo(n(day)?)?/i,
1190
- tuesday: /^tu(e(s(day)?)?)?/i,
1191
- wednesday: /^we(d(n(esday)?)?)?/i,
1192
- thursday: /^th(u(r(sday)?)?)?/i,
1193
- friday: /^fr(i(day)?)?/i,
1194
- saturday: /^sa(t(urday)?)?/i,
1195
- sunday: /^su(n(day)?)?/i,
1196
- january: /^jan(uary)?/i,
1197
- february: /^feb(ruary)?/i,
1198
- march: /^mar(ch)?/i,
1199
- april: /^apr(il)?/i,
1200
- may: /^may/i,
1201
- june: /^june?/i,
1202
- july: /^july?/i,
1203
- august: /^aug(ust)?/i,
1204
- september: /^sep(t(ember)?)?/i,
1205
- october: /^oct(ober)?/i,
1206
- november: /^nov(ember)?/i,
1207
- december: /^dec(ember)?/i,
1208
- comma: /^(,\s*|(and|or)\s*)+/i
1209
- }
1210
- }, _n = function(t, e) {
1211
- return t.indexOf(e) !== -1;
1212
- }, Va = function(t) {
1213
- return t.toString();
1214
- }, ei = function(t, e, n) {
1215
- return "".concat(e, " ").concat(n, ", ").concat(t);
1216
- }, xe = (
1217
- /** @class */
1218
- function() {
1219
- function t(e, n, r, a) {
1220
- if (n === void 0 && (n = Va), r === void 0 && (r = ct), a === void 0 && (a = ei), this.text = [], this.language = r || ct, this.gettext = n, this.dateFormatter = a, this.rrule = e, this.options = e.options, this.origOptions = e.origOptions, this.origOptions.bymonthday) {
1221
- var i = [].concat(this.options.bymonthday), s = [].concat(this.options.bynmonthday);
1222
- i.sort(function(d, f) {
1223
- return d - f;
1224
- }), s.sort(function(d, f) {
1225
- return f - d;
1226
- }), this.bymonthday = i.concat(s), this.bymonthday.length || (this.bymonthday = null);
1227
- }
1228
- if (G(this.origOptions.byweekday)) {
1229
- var l = le(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], o = String(l);
1230
- this.byweekday = {
1231
- allWeeks: l.filter(function(d) {
1232
- return !d.n;
1233
- }),
1234
- someWeeks: l.filter(function(d) {
1235
- return !!d.n;
1236
- }),
1237
- isWeekdays: o.indexOf("MO") !== -1 && o.indexOf("TU") !== -1 && o.indexOf("WE") !== -1 && o.indexOf("TH") !== -1 && o.indexOf("FR") !== -1 && o.indexOf("SA") === -1 && o.indexOf("SU") === -1,
1238
- isEveryDay: o.indexOf("MO") !== -1 && o.indexOf("TU") !== -1 && o.indexOf("WE") !== -1 && o.indexOf("TH") !== -1 && o.indexOf("FR") !== -1 && o.indexOf("SA") !== -1 && o.indexOf("SU") !== -1
1239
- };
1240
- var u = function(d, f) {
1241
- return d.weekday - f.weekday;
1242
- };
1243
- this.byweekday.allWeeks.sort(u), this.byweekday.someWeeks.sort(u), this.byweekday.allWeeks.length || (this.byweekday.allWeeks = null), this.byweekday.someWeeks.length || (this.byweekday.someWeeks = null);
1244
- } else
1245
- this.byweekday = null;
1246
- }
1247
- return t.isFullyConvertible = function(e) {
1248
- var n = !0;
1249
- if (!(e.options.freq in t.IMPLEMENTED) || e.origOptions.until && e.origOptions.count)
1250
- return !1;
1251
- for (var r in e.origOptions) {
1252
- if (_n(["dtstart", "wkst", "freq"], r))
1253
- return !0;
1254
- if (!_n(t.IMPLEMENTED[e.options.freq], r))
1255
- return !1;
1256
- }
1257
- return n;
1258
- }, t.prototype.isFullyConvertible = function() {
1259
- return t.isFullyConvertible(this.rrule);
1260
- }, t.prototype.toString = function() {
1261
- var e = this.gettext;
1262
- if (!(this.options.freq in t.IMPLEMENTED))
1263
- return e("RRule error: Unable to fully convert this rrule to text");
1264
- if (this.text = [e("every")], this[O.FREQUENCIES[this.options.freq]](), this.options.until) {
1265
- this.add(e("until"));
1266
- var n = this.options.until;
1267
- this.add(this.dateFormatter(n.getUTCFullYear(), this.language.monthNames[n.getUTCMonth()], n.getUTCDate()));
1268
- } else
1269
- this.options.count && this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count) ? e("times") : e("time"));
1270
- return this.isFullyConvertible() || this.add(e("(~ approximate)")), this.text.join("");
1271
- }, t.prototype.HOURLY = function() {
1272
- var e = this.gettext;
1273
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("hours") : e("hour"));
1274
- }, t.prototype.MINUTELY = function() {
1275
- var e = this.gettext;
1276
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("minutes") : e("minute"));
1277
- }, t.prototype.DAILY = function() {
1278
- var e = this.gettext;
1279
- this.options.interval !== 1 && this.add(this.options.interval.toString()), this.byweekday && this.byweekday.isWeekdays ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(this.plural(this.options.interval) ? e("days") : e("day")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday ? this._byweekday() : this.origOptions.byhour && this._byhour();
1280
- }, t.prototype.WEEKLY = function() {
1281
- var e = this.gettext;
1282
- this.options.interval !== 1 && this.add(this.options.interval.toString()).add(this.plural(this.options.interval) ? e("weeks") : e("week")), this.byweekday && this.byweekday.isWeekdays ? this.options.interval === 1 ? this.add(this.plural(this.options.interval) ? e("weekdays") : e("weekday")) : this.add(e("on")).add(e("weekdays")) : this.byweekday && this.byweekday.isEveryDay ? this.add(this.plural(this.options.interval) ? e("days") : e("day")) : (this.options.interval === 1 && this.add(e("week")), this.origOptions.bymonth && (this.add(e("in")), this._bymonth()), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday());
1283
- }, t.prototype.MONTHLY = function() {
1284
- var e = this.gettext;
1285
- this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()).add(e("months")), this.plural(this.options.interval) && this.add(e("in"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("months") : e("month"))), this.bymonthday ? this._bymonthday() : this.byweekday && this.byweekday.isWeekdays ? this.add(e("on")).add(e("weekdays")) : this.byweekday && this._byweekday();
1286
- }, t.prototype.YEARLY = function() {
1287
- var e = this.gettext;
1288
- this.origOptions.bymonth ? (this.options.interval !== 1 && (this.add(this.options.interval.toString()), this.add(e("years"))), this._bymonth()) : (this.options.interval !== 1 && this.add(this.options.interval.toString()), this.add(this.plural(this.options.interval) ? e("years") : e("year"))), this.bymonthday ? this._bymonthday() : this.byweekday && this._byweekday(), this.options.byyearday && this.add(e("on the")).add(this.list(this.options.byyearday, this.nth, e("and"))).add(e("day")), this.options.byweekno && this.add(e("in")).add(this.plural(this.options.byweekno.length) ? e("weeks") : e("week")).add(this.list(this.options.byweekno, void 0, e("and")));
1289
- }, t.prototype._bymonthday = function() {
1290
- var e = this.gettext;
1291
- this.byweekday && this.byweekday.allWeeks ? this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext, e("or"))).add(e("the")).add(this.list(this.bymonthday, this.nth, e("or"))) : this.add(e("on the")).add(this.list(this.bymonthday, this.nth, e("and")));
1292
- }, t.prototype._byweekday = function() {
1293
- var e = this.gettext;
1294
- this.byweekday.allWeeks && !this.byweekday.isWeekdays && this.add(e("on")).add(this.list(this.byweekday.allWeeks, this.weekdaytext)), this.byweekday.someWeeks && (this.byweekday.allWeeks && this.add(e("and")), this.add(e("on the")).add(this.list(this.byweekday.someWeeks, this.weekdaytext, e("and"))));
1295
- }, t.prototype._byhour = function() {
1296
- var e = this.gettext;
1297
- this.add(e("at")).add(this.list(this.origOptions.byhour, void 0, e("and")));
1298
- }, t.prototype._bymonth = function() {
1299
- this.add(this.list(this.options.bymonth, this.monthtext, this.gettext("and")));
1300
- }, t.prototype.nth = function(e) {
1301
- e = parseInt(e.toString(), 10);
1302
- var n, r = this.gettext;
1303
- if (e === -1)
1304
- return r("last");
1305
- var a = Math.abs(e);
1306
- switch (a) {
1307
- case 1:
1308
- case 21:
1309
- case 31:
1310
- n = a + r("st");
1311
- break;
1312
- case 2:
1313
- case 22:
1314
- n = a + r("nd");
1315
- break;
1316
- case 3:
1317
- case 23:
1318
- n = a + r("rd");
1319
- break;
1320
- default:
1321
- n = a + r("th");
1322
- }
1323
- return e < 0 ? n + " " + r("last") : n;
1324
- }, t.prototype.monthtext = function(e) {
1325
- return this.language.monthNames[e - 1];
1326
- }, t.prototype.weekdaytext = function(e) {
1327
- var n = ve(e) ? (e + 1) % 7 : e.getJsWeekday();
1328
- return (e.n ? this.nth(e.n) + " " : "") + this.language.dayNames[n];
1329
- }, t.prototype.plural = function(e) {
1330
- return e % 100 !== 1;
1331
- }, t.prototype.add = function(e) {
1332
- return this.text.push(" "), this.text.push(e), this;
1333
- }, t.prototype.list = function(e, n, r, a) {
1334
- var i = this;
1335
- a === void 0 && (a = ","), le(e) || (e = [e]);
1336
- var s = function(o, u, d) {
1337
- for (var f = "", h = 0; h < o.length; h++)
1338
- h !== 0 && (h === o.length - 1 ? f += " " + d + " " : f += u + " "), f += o[h];
1339
- return f;
1340
- };
1341
- n = n || function(o) {
1342
- return o.toString();
1343
- };
1344
- var l = function(o) {
1345
- return n && n.call(i, o);
1346
- };
1347
- return r ? s(e.map(l), a, r) : e.map(l).join(a + " ");
1348
- }, t;
1349
- }()
1350
- ), ti = (
1351
- /** @class */
1352
- function() {
1353
- function t(e) {
1354
- this.done = !0, this.rules = e;
1355
- }
1356
- return t.prototype.start = function(e) {
1357
- return this.text = e, this.done = !1, this.nextSymbol();
1358
- }, t.prototype.isDone = function() {
1359
- return this.done && this.symbol === null;
1360
- }, t.prototype.nextSymbol = function() {
1361
- var e, n;
1362
- this.symbol = null, this.value = null;
1363
- do {
1364
- if (this.done)
1365
- return !1;
1366
- var r = void 0;
1367
- e = null;
1368
- for (var a in this.rules) {
1369
- r = this.rules[a];
1370
- var i = r.exec(this.text);
1371
- i && (e === null || i[0].length > e[0].length) && (e = i, n = a);
1372
- }
1373
- if (e != null && (this.text = this.text.substr(e[0].length), this.text === "" && (this.done = !0)), e == null) {
1374
- this.done = !0, this.symbol = null, this.value = null;
1375
- return;
1376
- }
1377
- } while (n === "SKIP");
1378
- return this.symbol = n, this.value = e, !0;
1379
- }, t.prototype.accept = function(e) {
1380
- if (this.symbol === e) {
1381
- if (this.value) {
1382
- var n = this.value;
1383
- return this.nextSymbol(), n;
1384
- }
1385
- return this.nextSymbol(), !0;
1386
- }
1387
- return !1;
1388
- }, t.prototype.acceptNumber = function() {
1389
- return this.accept("number");
1390
- }, t.prototype.expect = function(e) {
1391
- if (this.accept(e))
1392
- return !0;
1393
- throw new Error("expected " + e + " but found " + this.symbol);
1394
- }, t;
1395
- }()
1396
- );
1397
- function mr(t, e) {
1398
- e === void 0 && (e = ct);
1399
- var n = {}, r = new ti(e.tokens);
1400
- if (!r.start(t))
1401
- return null;
1402
- return a(), n;
1403
- function a() {
1404
- r.expect("every");
1405
- var h = r.acceptNumber();
1406
- if (h && (n.interval = parseInt(h[0], 10)), r.isDone())
1407
- throw new Error("Unexpected end");
1408
- switch (r.symbol) {
1409
- case "day(s)":
1410
- n.freq = O.DAILY, r.nextSymbol() && (s(), f());
1411
- break;
1412
- case "weekday(s)":
1413
- n.freq = O.WEEKLY, n.byweekday = [O.MO, O.TU, O.WE, O.TH, O.FR], r.nextSymbol(), f();
1414
- break;
1415
- case "week(s)":
1416
- n.freq = O.WEEKLY, r.nextSymbol() && (i(), f());
1417
- break;
1418
- case "hour(s)":
1419
- n.freq = O.HOURLY, r.nextSymbol() && (i(), f());
1420
- break;
1421
- case "minute(s)":
1422
- n.freq = O.MINUTELY, r.nextSymbol() && (i(), f());
1423
- break;
1424
- case "month(s)":
1425
- n.freq = O.MONTHLY, r.nextSymbol() && (i(), f());
1426
- break;
1427
- case "year(s)":
1428
- n.freq = O.YEARLY, r.nextSymbol() && (i(), f());
1429
- break;
1430
- case "monday":
1431
- case "tuesday":
1432
- case "wednesday":
1433
- case "thursday":
1434
- case "friday":
1435
- case "saturday":
1436
- case "sunday":
1437
- n.freq = O.WEEKLY;
1438
- var y = r.symbol.substr(0, 2).toUpperCase();
1439
- if (n.byweekday = [O[y]], !r.nextSymbol())
1440
- return;
1441
- for (; r.accept("comma"); ) {
1442
- if (r.isDone())
1443
- throw new Error("Unexpected end");
1444
- var p = o();
1445
- if (!p)
1446
- throw new Error("Unexpected symbol " + r.symbol + ", expected weekday");
1447
- n.byweekday.push(O[p]), r.nextSymbol();
1448
- }
1449
- d(), f();
1450
- break;
1451
- case "january":
1452
- case "february":
1453
- case "march":
1454
- case "april":
1455
- case "may":
1456
- case "june":
1457
- case "july":
1458
- case "august":
1459
- case "september":
1460
- case "october":
1461
- case "november":
1462
- case "december":
1463
- if (n.freq = O.YEARLY, n.bymonth = [l()], !r.nextSymbol())
1464
- return;
1465
- for (; r.accept("comma"); ) {
1466
- if (r.isDone())
1467
- throw new Error("Unexpected end");
1468
- var v = l();
1469
- if (!v)
1470
- throw new Error("Unexpected symbol " + r.symbol + ", expected month");
1471
- n.bymonth.push(v), r.nextSymbol();
1472
- }
1473
- i(), f();
1474
- break;
1475
- default:
1476
- throw new Error("Unknown symbol");
1477
- }
1478
- }
1479
- function i() {
1480
- var h = r.accept("on"), y = r.accept("the");
1481
- if (h || y)
1482
- do {
1483
- var p = u(), v = o(), b = l();
1484
- if (p)
1485
- v ? (r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(O[v].nth(p))) : (n.bymonthday || (n.bymonthday = []), n.bymonthday.push(p), r.accept("day(s)"));
1486
- else if (v)
1487
- r.nextSymbol(), n.byweekday || (n.byweekday = []), n.byweekday.push(O[v]);
1488
- else if (r.symbol === "weekday(s)")
1489
- r.nextSymbol(), n.byweekday || (n.byweekday = [O.MO, O.TU, O.WE, O.TH, O.FR]);
1490
- else if (r.symbol === "week(s)") {
1491
- r.nextSymbol();
1492
- var T = r.acceptNumber();
1493
- if (!T)
1494
- throw new Error("Unexpected symbol " + r.symbol + ", expected week number");
1495
- for (n.byweekno = [parseInt(T[0], 10)]; r.accept("comma"); ) {
1496
- if (T = r.acceptNumber(), !T)
1497
- throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1498
- n.byweekno.push(parseInt(T[0], 10));
1499
- }
1500
- } else if (b)
1501
- r.nextSymbol(), n.bymonth || (n.bymonth = []), n.bymonth.push(b);
1502
- else
1503
- return;
1504
- } while (r.accept("comma") || r.accept("the") || r.accept("on"));
1505
- }
1506
- function s() {
1507
- var h = r.accept("at");
1508
- if (h)
1509
- do {
1510
- var y = r.acceptNumber();
1511
- if (!y)
1512
- throw new Error("Unexpected symbol " + r.symbol + ", expected hour");
1513
- for (n.byhour = [parseInt(y[0], 10)]; r.accept("comma"); ) {
1514
- if (y = r.acceptNumber(), !y)
1515
- throw new Error("Unexpected symbol " + r.symbol + "; expected hour");
1516
- n.byhour.push(parseInt(y[0], 10));
1517
- }
1518
- } while (r.accept("comma") || r.accept("at"));
1519
- }
1520
- function l() {
1521
- switch (r.symbol) {
1522
- case "january":
1523
- return 1;
1524
- case "february":
1525
- return 2;
1526
- case "march":
1527
- return 3;
1528
- case "april":
1529
- return 4;
1530
- case "may":
1531
- return 5;
1532
- case "june":
1533
- return 6;
1534
- case "july":
1535
- return 7;
1536
- case "august":
1537
- return 8;
1538
- case "september":
1539
- return 9;
1540
- case "october":
1541
- return 10;
1542
- case "november":
1543
- return 11;
1544
- case "december":
1545
- return 12;
1546
- default:
1547
- return !1;
1548
- }
1549
- }
1550
- function o() {
1551
- switch (r.symbol) {
1552
- case "monday":
1553
- case "tuesday":
1554
- case "wednesday":
1555
- case "thursday":
1556
- case "friday":
1557
- case "saturday":
1558
- case "sunday":
1559
- return r.symbol.substr(0, 2).toUpperCase();
1560
- default:
1561
- return !1;
1562
- }
1563
- }
1564
- function u() {
1565
- switch (r.symbol) {
1566
- case "last":
1567
- return r.nextSymbol(), -1;
1568
- case "first":
1569
- return r.nextSymbol(), 1;
1570
- case "second":
1571
- return r.nextSymbol(), r.accept("last") ? -2 : 2;
1572
- case "third":
1573
- return r.nextSymbol(), r.accept("last") ? -3 : 3;
1574
- case "nth":
1575
- var h = parseInt(r.value[1], 10);
1576
- if (h < -366 || h > 366)
1577
- throw new Error("Nth out of range: " + h);
1578
- return r.nextSymbol(), r.accept("last") ? -h : h;
1579
- default:
1580
- return !1;
1581
- }
1582
- }
1583
- function d() {
1584
- r.accept("on"), r.accept("the");
1585
- var h = u();
1586
- if (h)
1587
- for (n.bymonthday = [h], r.nextSymbol(); r.accept("comma"); ) {
1588
- if (h = u(), !h)
1589
- throw new Error("Unexpected symbol " + r.symbol + "; expected monthday");
1590
- n.bymonthday.push(h), r.nextSymbol();
1591
- }
1592
- }
1593
- function f() {
1594
- if (r.symbol === "until") {
1595
- var h = Date.parse(r.text);
1596
- if (!h)
1597
- throw new Error("Cannot parse until date:" + r.text);
1598
- n.until = new Date(h);
1599
- } else
1600
- r.accept("for") && (n.count = parseInt(r.value[0], 10), r.expect("number"));
1601
- }
1602
- }
1603
- var N;
1604
- (function(t) {
1605
- t[t.YEARLY = 0] = "YEARLY", t[t.MONTHLY = 1] = "MONTHLY", t[t.WEEKLY = 2] = "WEEKLY", t[t.DAILY = 3] = "DAILY", t[t.HOURLY = 4] = "HOURLY", t[t.MINUTELY = 5] = "MINUTELY", t[t.SECONDLY = 6] = "SECONDLY";
1606
- })(N || (N = {}));
1607
- function qt(t) {
1608
- return t < N.HOURLY;
1609
- }
1610
- var ni = function(t, e) {
1611
- return e === void 0 && (e = ct), new O(mr(t, e) || void 0);
1612
- }, ze = [
1613
- "count",
1614
- "until",
1615
- "interval",
1616
- "byweekday",
1617
- "bymonthday",
1618
- "bymonth"
1619
- ];
1620
- xe.IMPLEMENTED = [];
1621
- xe.IMPLEMENTED[N.HOURLY] = ze;
1622
- xe.IMPLEMENTED[N.MINUTELY] = ze;
1623
- xe.IMPLEMENTED[N.DAILY] = ["byhour"].concat(ze);
1624
- xe.IMPLEMENTED[N.WEEKLY] = ze;
1625
- xe.IMPLEMENTED[N.MONTHLY] = ze;
1626
- xe.IMPLEMENTED[N.YEARLY] = ["byweekno", "byyearday"].concat(ze);
1627
- var ri = function(t, e, n, r) {
1628
- return new xe(t, e, n, r).toString();
1629
- }, ai = xe.isFullyConvertible, ut = (
1630
- /** @class */
1631
- function() {
1632
- function t(e, n, r, a) {
1633
- this.hour = e, this.minute = n, this.second = r, this.millisecond = a || 0;
1634
- }
1635
- return t.prototype.getHours = function() {
1636
- return this.hour;
1637
- }, t.prototype.getMinutes = function() {
1638
- return this.minute;
1639
- }, t.prototype.getSeconds = function() {
1640
- return this.second;
1641
- }, t.prototype.getMilliseconds = function() {
1642
- return this.millisecond;
1643
- }, t.prototype.getTime = function() {
1644
- return (this.hour * 60 * 60 + this.minute * 60 + this.second) * 1e3 + this.millisecond;
1645
- }, t;
1646
- }()
1647
- ), ii = (
1648
- /** @class */
1649
- function(t) {
1650
- Bt(e, t);
1651
- function e(n, r, a, i, s, l, o) {
1652
- var u = t.call(this, i, s, l, o) || this;
1653
- return u.year = n, u.month = r, u.day = a, u;
1654
- }
1655
- return e.fromDate = function(n) {
1656
- return new this(n.getUTCFullYear(), n.getUTCMonth() + 1, n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes(), n.getUTCSeconds(), n.valueOf() % 1e3);
1657
- }, e.prototype.getWeekday = function() {
1658
- return Fe(new Date(this.getTime()));
1659
- }, e.prototype.getTime = function() {
1660
- return new Date(Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second, this.millisecond)).getTime();
1661
- }, e.prototype.getDay = function() {
1662
- return this.day;
1663
- }, e.prototype.getMonth = function() {
1664
- return this.month;
1665
- }, e.prototype.getYear = function() {
1666
- return this.year;
1667
- }, e.prototype.addYears = function(n) {
1668
- this.year += n;
1669
- }, e.prototype.addMonths = function(n) {
1670
- if (this.month += n, this.month > 12) {
1671
- var r = Math.floor(this.month / 12), a = de(this.month, 12);
1672
- this.month = a, this.year += r, this.month === 0 && (this.month = 12, --this.year);
1673
- }
1674
- }, e.prototype.addWeekly = function(n, r) {
1675
- r > this.getWeekday() ? this.day += -(this.getWeekday() + 1 + (6 - r)) + n * 7 : this.day += -(this.getWeekday() - r) + n * 7, this.fixDay();
1676
- }, e.prototype.addDaily = function(n) {
1677
- this.day += n, this.fixDay();
1678
- }, e.prototype.addHours = function(n, r, a) {
1679
- for (r && (this.hour += Math.floor((23 - this.hour) / n) * n); ; ) {
1680
- this.hour += n;
1681
- var i = Tt(this.hour, 24), s = i.div, l = i.mod;
1682
- if (s && (this.hour = l, this.addDaily(s)), ge(a) || j(a, this.hour))
1683
- break;
1684
- }
1685
- }, e.prototype.addMinutes = function(n, r, a, i) {
1686
- for (r && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / n) * n); ; ) {
1687
- this.minute += n;
1688
- var s = Tt(this.minute, 60), l = s.div, o = s.mod;
1689
- if (l && (this.minute = o, this.addHours(l, !1, a)), (ge(a) || j(a, this.hour)) && (ge(i) || j(i, this.minute)))
1690
- break;
1691
- }
1692
- }, e.prototype.addSeconds = function(n, r, a, i, s) {
1693
- for (r && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / n) * n); ; ) {
1694
- this.second += n;
1695
- var l = Tt(this.second, 60), o = l.div, u = l.mod;
1696
- if (o && (this.second = u, this.addMinutes(o, !1, a, i)), (ge(a) || j(a, this.hour)) && (ge(i) || j(i, this.minute)) && (ge(s) || j(s, this.second)))
1697
- break;
1698
- }
1699
- }, e.prototype.fixDay = function() {
1700
- if (!(this.day <= 28)) {
1701
- var n = Sn(this.year, this.month - 1)[1];
1702
- if (!(this.day <= n))
1703
- for (; this.day > n; ) {
1704
- if (this.day -= n, ++this.month, this.month === 13 && (this.month = 1, ++this.year, this.year > dr))
1705
- return;
1706
- n = Sn(this.year, this.month - 1)[1];
1707
- }
1708
- }
1709
- }, e.prototype.add = function(n, r) {
1710
- var a = n.freq, i = n.interval, s = n.wkst, l = n.byhour, o = n.byminute, u = n.bysecond;
1711
- switch (a) {
1712
- case N.YEARLY:
1713
- return this.addYears(i);
1714
- case N.MONTHLY:
1715
- return this.addMonths(i);
1716
- case N.WEEKLY:
1717
- return this.addWeekly(i, s);
1718
- case N.DAILY:
1719
- return this.addDaily(i);
1720
- case N.HOURLY:
1721
- return this.addHours(i, r, l);
1722
- case N.MINUTELY:
1723
- return this.addMinutes(i, r, l, o);
1724
- case N.SECONDLY:
1725
- return this.addSeconds(i, r, l, o, u);
1726
- }
1727
- }, e;
1728
- }(ut)
1729
- );
1730
- function vr(t) {
1731
- for (var e = [], n = Object.keys(t), r = 0, a = n; r < a.length; r++) {
1732
- var i = a[r];
1733
- j(Ii, i) || e.push(i), hr(t[i]) && !Je(t[i]) && e.push(i);
1734
- }
1735
- if (e.length)
1736
- throw new Error("Invalid options: " + e.join(", "));
1737
- return ce({}, t);
1738
- }
1739
- function si(t) {
1740
- var e = ce(ce({}, Kt), vr(t));
1741
- if (G(e.byeaster) && (e.freq = O.YEARLY), !(G(e.freq) && O.FREQUENCIES[e.freq]))
1742
- throw new Error("Invalid frequency: ".concat(e.freq, " ").concat(t.freq));
1743
- if (e.dtstart || (e.dtstart = new Date((/* @__PURE__ */ new Date()).setMilliseconds(0))), G(e.wkst) ? ve(e.wkst) || (e.wkst = e.wkst.weekday) : e.wkst = O.MO.weekday, G(e.bysetpos)) {
1744
- ve(e.bysetpos) && (e.bysetpos = [e.bysetpos]);
1745
- for (var n = 0; n < e.bysetpos.length; n++) {
1746
- var r = e.bysetpos[n];
1747
- if (r === 0 || !(r >= -366 && r <= 366))
1748
- throw new Error("bysetpos must be between 1 and 366, or between -366 and -1");
1749
- }
1750
- }
1751
- if (!(e.byweekno || X(e.byweekno) || X(e.byyearday) || e.bymonthday || X(e.bymonthday) || G(e.byweekday) || G(e.byeaster)))
1752
- switch (e.freq) {
1753
- case O.YEARLY:
1754
- e.bymonth || (e.bymonth = e.dtstart.getUTCMonth() + 1), e.bymonthday = e.dtstart.getUTCDate();
1755
- break;
1756
- case O.MONTHLY:
1757
- e.bymonthday = e.dtstart.getUTCDate();
1758
- break;
1759
- case O.WEEKLY:
1760
- e.byweekday = [Fe(e.dtstart)];
1761
- break;
1762
- }
1763
- if (G(e.bymonth) && !le(e.bymonth) && (e.bymonth = [e.bymonth]), G(e.byyearday) && !le(e.byyearday) && ve(e.byyearday) && (e.byyearday = [e.byyearday]), !G(e.bymonthday))
1764
- e.bymonthday = [], e.bynmonthday = [];
1765
- else if (le(e.bymonthday)) {
1766
- for (var a = [], i = [], n = 0; n < e.bymonthday.length; n++) {
1767
- var r = e.bymonthday[n];
1768
- r > 0 ? a.push(r) : r < 0 && i.push(r);
1769
- }
1770
- e.bymonthday = a, e.bynmonthday = i;
1771
- } else
1772
- e.bymonthday < 0 ? (e.bynmonthday = [e.bymonthday], e.bymonthday = []) : (e.bynmonthday = [], e.bymonthday = [e.bymonthday]);
1773
- if (G(e.byweekno) && !le(e.byweekno) && (e.byweekno = [e.byweekno]), !G(e.byweekday))
1774
- e.bynweekday = null;
1775
- else if (ve(e.byweekday))
1776
- e.byweekday = [e.byweekday], e.bynweekday = null;
1777
- else if (En(e.byweekday))
1778
- e.byweekday = [ae.fromStr(e.byweekday).weekday], e.bynweekday = null;
1779
- else if (e.byweekday instanceof ae)
1780
- !e.byweekday.n || e.freq > O.MONTHLY ? (e.byweekday = [e.byweekday.weekday], e.bynweekday = null) : (e.bynweekday = [[e.byweekday.weekday, e.byweekday.n]], e.byweekday = null);
1781
- else {
1782
- for (var s = [], l = [], n = 0; n < e.byweekday.length; n++) {
1783
- var o = e.byweekday[n];
1784
- if (ve(o)) {
1785
- s.push(o);
1786
- continue;
1787
- } else if (En(o)) {
1788
- s.push(ae.fromStr(o).weekday);
1789
- continue;
1790
- }
1791
- !o.n || e.freq > O.MONTHLY ? s.push(o.weekday) : l.push([o.weekday, o.n]);
1792
- }
1793
- e.byweekday = X(s) ? s : null, e.bynweekday = X(l) ? l : null;
1794
- }
1795
- return G(e.byhour) ? ve(e.byhour) && (e.byhour = [e.byhour]) : e.byhour = e.freq < O.HOURLY ? [e.dtstart.getUTCHours()] : null, G(e.byminute) ? ve(e.byminute) && (e.byminute = [e.byminute]) : e.byminute = e.freq < O.MINUTELY ? [e.dtstart.getUTCMinutes()] : null, G(e.bysecond) ? ve(e.bysecond) && (e.bysecond = [e.bysecond]) : e.bysecond = e.freq < O.SECONDLY ? [e.dtstart.getUTCSeconds()] : null, { parsedOptions: e };
1796
- }
1797
- function oi(t) {
1798
- var e = t.dtstart.getTime() % 1e3;
1799
- if (!qt(t.freq))
1800
- return [];
1801
- var n = [];
1802
- return t.byhour.forEach(function(r) {
1803
- t.byminute.forEach(function(a) {
1804
- t.bysecond.forEach(function(i) {
1805
- n.push(new ut(r, a, i, e));
1806
- });
1807
- });
1808
- }), n;
1809
- }
1810
- function Nt(t) {
1811
- var e = t.split(`
1812
- `).map(li).filter(function(n) {
1813
- return n !== null;
1814
- });
1815
- return ce(ce({}, e[0]), e[1]);
1816
- }
1817
- function dt(t) {
1818
- var e = {}, n = /DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);
1819
- if (!n)
1820
- return e;
1821
- var r = n[1], a = n[2];
1822
- return r && (e.tzid = r), e.dtstart = zt(a), e;
1823
- }
1824
- function li(t) {
1825
- if (t = t.replace(/^\s+|\s+$/, ""), !t.length)
1826
- return null;
1827
- var e = /^([A-Z]+?)[:;]/.exec(t.toUpperCase());
1828
- if (!e)
1829
- return Dn(t);
1830
- var n = e[1];
1831
- switch (n.toUpperCase()) {
1832
- case "RRULE":
1833
- case "EXRULE":
1834
- return Dn(t);
1835
- case "DTSTART":
1836
- return dt(t);
1837
- default:
1838
- throw new Error("Unsupported RFC prop ".concat(n, " in ").concat(t));
1839
- }
1840
- }
1841
- function Dn(t) {
1842
- var e = t.replace(/^RRULE:/i, ""), n = dt(e), r = t.replace(/^(?:RRULE|EXRULE):/i, "").split(";");
1843
- return r.forEach(function(a) {
1844
- var i = a.split("="), s = i[0], l = i[1];
1845
- switch (s.toUpperCase()) {
1846
- case "FREQ":
1847
- n.freq = N[l.toUpperCase()];
1848
- break;
1849
- case "WKST":
1850
- n.wkst = pe[l.toUpperCase()];
1851
- break;
1852
- case "COUNT":
1853
- case "INTERVAL":
1854
- case "BYSETPOS":
1855
- case "BYMONTH":
1856
- case "BYMONTHDAY":
1857
- case "BYYEARDAY":
1858
- case "BYWEEKNO":
1859
- case "BYHOUR":
1860
- case "BYMINUTE":
1861
- case "BYSECOND":
1862
- var o = ci(l), u = s.toLowerCase();
1863
- n[u] = o;
1864
- break;
1865
- case "BYWEEKDAY":
1866
- case "BYDAY":
1867
- n.byweekday = ui(l);
1868
- break;
1869
- case "DTSTART":
1870
- case "TZID":
1871
- var d = dt(t);
1872
- n.tzid = d.tzid, n.dtstart = d.dtstart;
1873
- break;
1874
- case "UNTIL":
1875
- n.until = zt(l);
1876
- break;
1877
- case "BYEASTER":
1878
- n.byeaster = Number(l);
1879
- break;
1880
- default:
1881
- throw new Error("Unknown RRULE property '" + s + "'");
1882
- }
1883
- }), n;
1884
- }
1885
- function ci(t) {
1886
- if (t.indexOf(",") !== -1) {
1887
- var e = t.split(",");
1888
- return e.map(Rn);
1889
- }
1890
- return Rn(t);
1891
- }
1892
- function Rn(t) {
1893
- return /^[+-]?\d+$/.test(t) ? Number(t) : t;
1894
- }
1895
- function ui(t) {
1896
- var e = t.split(",");
1897
- return e.map(function(n) {
1898
- if (n.length === 2)
1899
- return pe[n];
1900
- var r = n.match(/^([+-]?\d{1,2})([A-Z]{2})$/);
1901
- if (!r || r.length < 3)
1902
- throw new SyntaxError("Invalid weekday string: ".concat(n));
1903
- var a = Number(r[1]), i = r[2], s = pe[i].weekday;
1904
- return new ae(s, a);
1905
- });
1906
- }
1907
- var ft = (
1908
- /** @class */
1909
- function() {
1910
- function t(e, n) {
1911
- if (isNaN(e.getTime()))
1912
- throw new RangeError("Invalid date passed to DateWithZone");
1913
- this.date = e, this.tzid = n;
1914
- }
1915
- return Object.defineProperty(t.prototype, "isUTC", {
1916
- get: function() {
1917
- return !this.tzid || this.tzid.toUpperCase() === "UTC";
1918
- },
1919
- enumerable: !1,
1920
- configurable: !0
1921
- }), t.prototype.toString = function() {
1922
- var e = Ft(this.date.getTime(), this.isUTC);
1923
- return this.isUTC ? ":".concat(e) : ";TZID=".concat(this.tzid, ":").concat(e);
1924
- }, t.prototype.getTime = function() {
1925
- return this.date.getTime();
1926
- }, t.prototype.rezonedDate = function() {
1927
- return this.isUTC ? this.date : Qa(this.date, this.tzid);
1928
- }, t;
1929
- }()
1930
- );
1931
- function Ut(t) {
1932
- for (var e = [], n = "", r = Object.keys(t), a = Object.keys(Kt), i = 0; i < r.length; i++)
1933
- if (r[i] !== "tzid" && j(a, r[i])) {
1934
- var s = r[i].toUpperCase(), l = t[r[i]], o = "";
1935
- if (!(!G(l) || le(l) && !l.length)) {
1936
- switch (s) {
1937
- case "FREQ":
1938
- o = O.FREQUENCIES[t.freq];
1939
- break;
1940
- case "WKST":
1941
- ve(l) ? o = new ae(l).toString() : o = l.toString();
1942
- break;
1943
- case "BYWEEKDAY":
1944
- s = "BYDAY", o = qa(l).map(function(y) {
1945
- return y instanceof ae ? y : le(y) ? new ae(y[0], y[1]) : new ae(y);
1946
- }).toString();
1947
- break;
1948
- case "DTSTART":
1949
- n = di(l, t.tzid);
1950
- break;
1951
- case "UNTIL":
1952
- o = Ft(l, !t.tzid);
1953
- break;
1954
- default:
1955
- if (le(l)) {
1956
- for (var u = [], d = 0; d < l.length; d++)
1957
- u[d] = String(l[d]);
1958
- o = u.toString();
1959
- } else
1960
- o = String(l);
1961
- }
1962
- o && e.push([s, o]);
1963
- }
1964
- }
1965
- var f = e.map(function(y) {
1966
- var p = y[0], v = y[1];
1967
- return "".concat(p, "=").concat(v.toString());
1968
- }).join(";"), h = "";
1969
- return f !== "" && (h = "RRULE:".concat(f)), [n, h].filter(function(y) {
1970
- return !!y;
1971
- }).join(`
1972
- `);
1973
- }
1974
- function di(t, e) {
1975
- return t ? "DTSTART" + new ft(new Date(t), e).toString() : "";
1976
- }
1977
- function fi(t, e) {
1978
- return Array.isArray(t) ? !Array.isArray(e) || t.length !== e.length ? !1 : t.every(function(n, r) {
1979
- return n.getTime() === e[r].getTime();
1980
- }) : t instanceof Date ? e instanceof Date && t.getTime() === e.getTime() : t === e;
1981
- }
1982
- var hi = (
1983
- /** @class */
1984
- function() {
1985
- function t() {
1986
- this.all = !1, this.before = [], this.after = [], this.between = [];
1987
- }
1988
- return t.prototype._cacheAdd = function(e, n, r) {
1989
- n && (n = n instanceof Date ? At(n) : Cn(n)), e === "all" ? this.all = n : (r._value = n, this[e].push(r));
1990
- }, t.prototype._cacheGet = function(e, n) {
1991
- var r = !1, a = n ? Object.keys(n) : [], i = function(d) {
1992
- for (var f = 0; f < a.length; f++) {
1993
- var h = a[f];
1994
- if (!fi(n[h], d[h]))
1995
- return !0;
1996
- }
1997
- return !1;
1998
- }, s = this[e];
1999
- if (e === "all")
2000
- r = this.all;
2001
- else if (le(s))
2002
- for (var l = 0; l < s.length; l++) {
2003
- var o = s[l];
2004
- if (!(a.length && i(o))) {
2005
- r = o._value;
2006
- break;
2007
- }
2008
- }
2009
- if (!r && this.all) {
2010
- for (var u = new We(e, n), l = 0; l < this.all.length && u.accept(this.all[l]); l++)
2011
- ;
2012
- r = u.getValue(), this._cacheAdd(e, r, n);
2013
- }
2014
- return le(r) ? Cn(r) : r instanceof Date ? At(r) : r;
2015
- }, t;
2016
- }()
2017
- ), yi = $($($($($($($($($($($($($([], I(1, 31), !0), I(2, 28), !0), I(3, 31), !0), I(4, 30), !0), I(5, 31), !0), I(6, 30), !0), I(7, 31), !0), I(8, 31), !0), I(9, 30), !0), I(10, 31), !0), I(11, 30), !0), I(12, 31), !0), I(1, 7), !0), pi = $($($($($($($($($($($($($([], I(1, 31), !0), I(2, 29), !0), I(3, 31), !0), I(4, 30), !0), I(5, 31), !0), I(6, 30), !0), I(7, 31), !0), I(8, 31), !0), I(9, 30), !0), I(10, 31), !0), I(11, 30), !0), I(12, 31), !0), I(1, 7), !0), mi = be(1, 29), vi = be(1, 30), _e = be(1, 31), ee = be(1, 32), gi = $($($($($($($($($($($($($([], ee, !0), vi, !0), ee, !0), _e, !0), ee, !0), _e, !0), ee, !0), ee, !0), _e, !0), ee, !0), _e, !0), ee, !0), ee.slice(0, 7), !0), bi = $($($($($($($($($($($($($([], ee, !0), mi, !0), ee, !0), _e, !0), ee, !0), _e, !0), ee, !0), ee, !0), _e, !0), ee, !0), _e, !0), ee, !0), ee.slice(0, 7), !0), $i = be(-28, 0), wi = be(-29, 0), De = be(-30, 0), te = be(-31, 0), ki = $($($($($($($($($($($($($([], te, !0), wi, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), Ei = $($($($($($($($($($($($($([], te, !0), $i, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te, !0), De, !0), te, !0), De, !0), te, !0), te.slice(0, 7), !0), Ti = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366], Si = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365], Ln = function() {
2018
- for (var t = [], e = 0; e < 55; e++)
2019
- t = t.concat(be(7));
2020
- return t;
2021
- }();
2022
- function Ci(t, e) {
2023
- var n = Me(t, 1, 1), r = Xe(t) ? 366 : 365, a = Xe(t + 1) ? 366 : 365, i = Mt(n), s = Fe(n), l = ce(ce({ yearlen: r, nextyearlen: a, yearordinal: i, yearweekday: s }, Oi(t)), { wnomask: null });
2024
- if (ge(e.byweekno))
2025
- return l;
2026
- l.wnomask = I(0, r + 7);
2027
- var o, u, d = o = de(7 - s + e.wkst, 7);
2028
- d >= 4 ? (d = 0, u = l.yearlen + de(s - e.wkst, 7)) : u = r - d;
2029
- for (var f = Math.floor(u / 7), h = de(u, 7), y = Math.floor(f + h / 4), p = 0; p < e.byweekno.length; p++) {
2030
- var v = e.byweekno[p];
2031
- if (v < 0 && (v += y + 1), v > 0 && v <= y) {
2032
- var b = void 0;
2033
- v > 1 ? (b = d + (v - 1) * 7, d !== o && (b -= 7 - o)) : b = d;
2034
- for (var T = 0; T < 7 && (l.wnomask[b] = 1, b++, l.wdaymask[b] !== e.wkst); T++)
2035
- ;
2036
- }
2037
- }
2038
- if (j(e.byweekno, 1)) {
2039
- var b = d + y * 7;
2040
- if (d !== o && (b -= 7 - o), b < r)
2041
- for (var p = 0; p < 7 && (l.wnomask[b] = 1, b += 1, l.wdaymask[b] !== e.wkst); p++)
2042
- ;
2043
- }
2044
- if (d) {
2045
- var L = void 0;
2046
- if (j(e.byweekno, -1))
2047
- L = -1;
2048
- else {
2049
- var Q = Fe(Me(t - 1, 1, 1)), ie = de(7 - Q.valueOf() + e.wkst, 7), fe = Xe(t - 1) ? 366 : 365, V = void 0;
2050
- ie >= 4 ? (ie = 0, V = fe + de(Q - e.wkst, 7)) : V = r - d, L = Math.floor(52 + de(V, 7) / 4);
2051
- }
2052
- if (j(e.byweekno, L))
2053
- for (var b = 0; b < d; b++)
2054
- l.wnomask[b] = 1;
2055
- }
2056
- return l;
2057
- }
2058
- function Oi(t) {
2059
- var e = Xe(t) ? 366 : 365, n = Me(t, 1, 1), r = Fe(n);
2060
- return e === 365 ? {
2061
- mmask: yi,
2062
- mdaymask: bi,
2063
- nmdaymask: Ei,
2064
- wdaymask: Ln.slice(r),
2065
- mrange: Si
2066
- } : {
2067
- mmask: pi,
2068
- mdaymask: gi,
2069
- nmdaymask: ki,
2070
- wdaymask: Ln.slice(r),
2071
- mrange: Ti
2072
- };
2073
- }
2074
- function xi(t, e, n, r, a, i) {
2075
- var s = {
2076
- lastyear: t,
2077
- lastmonth: e,
2078
- nwdaymask: []
2079
- }, l = [];
2080
- if (i.freq === O.YEARLY)
2081
- if (ge(i.bymonth))
2082
- l = [[0, n]];
2083
- else
2084
- for (var o = 0; o < i.bymonth.length; o++)
2085
- e = i.bymonth[o], l.push(r.slice(e - 1, e + 1));
2086
- else
2087
- i.freq === O.MONTHLY && (l = [r.slice(e - 1, e + 1)]);
2088
- if (ge(l))
2089
- return s;
2090
- s.nwdaymask = I(0, n);
2091
- for (var o = 0; o < l.length; o++)
2092
- for (var u = l[o], d = u[0], f = u[1] - 1, h = 0; h < i.bynweekday.length; h++) {
2093
- var y = void 0, p = i.bynweekday[h], v = p[0], b = p[1];
2094
- b < 0 ? (y = f + (b + 1) * 7, y -= de(a[y] - v, 7)) : (y = d + (b - 1) * 7, y += de(7 - a[y] + v, 7)), d <= y && y <= f && (s.nwdaymask[y] = 1);
2095
- }
2096
- return s;
2097
- }
2098
- function _i(t, e) {
2099
- e === void 0 && (e = 0);
2100
- var n = t % 19, r = Math.floor(t / 100), a = t % 100, i = Math.floor(r / 4), s = r % 4, l = Math.floor((r + 8) / 25), o = Math.floor((r - l + 1) / 3), u = Math.floor(19 * n + r - i - o + 15) % 30, d = Math.floor(a / 4), f = a % 4, h = Math.floor(32 + 2 * s + 2 * d - u - f) % 7, y = Math.floor((n + 11 * u + 22 * h) / 451), p = Math.floor((u + h - 7 * y + 114) / 31), v = (u + h - 7 * y + 114) % 31 + 1, b = Date.UTC(t, p - 1, v + e), T = Date.UTC(t, 0, 1);
2101
- return [Math.ceil((b - T) / (1e3 * 60 * 60 * 24))];
2102
- }
2103
- var Di = (
2104
- /** @class */
2105
- function() {
2106
- function t(e) {
2107
- this.options = e;
2108
- }
2109
- return t.prototype.rebuild = function(e, n) {
2110
- var r = this.options;
2111
- if (e !== this.lastyear && (this.yearinfo = Ci(e, r)), X(r.bynweekday) && (n !== this.lastmonth || e !== this.lastyear)) {
2112
- var a = this.yearinfo, i = a.yearlen, s = a.mrange, l = a.wdaymask;
2113
- this.monthinfo = xi(e, n, i, s, l, r);
2114
- }
2115
- G(r.byeaster) && (this.eastermask = _i(e, r.byeaster));
2116
- }, Object.defineProperty(t.prototype, "lastyear", {
2117
- get: function() {
2118
- return this.monthinfo ? this.monthinfo.lastyear : null;
2119
- },
2120
- enumerable: !1,
2121
- configurable: !0
2122
- }), Object.defineProperty(t.prototype, "lastmonth", {
2123
- get: function() {
2124
- return this.monthinfo ? this.monthinfo.lastmonth : null;
2125
- },
2126
- enumerable: !1,
2127
- configurable: !0
2128
- }), Object.defineProperty(t.prototype, "yearlen", {
2129
- get: function() {
2130
- return this.yearinfo.yearlen;
2131
- },
2132
- enumerable: !1,
2133
- configurable: !0
2134
- }), Object.defineProperty(t.prototype, "yearordinal", {
2135
- get: function() {
2136
- return this.yearinfo.yearordinal;
2137
- },
2138
- enumerable: !1,
2139
- configurable: !0
2140
- }), Object.defineProperty(t.prototype, "mrange", {
2141
- get: function() {
2142
- return this.yearinfo.mrange;
2143
- },
2144
- enumerable: !1,
2145
- configurable: !0
2146
- }), Object.defineProperty(t.prototype, "wdaymask", {
2147
- get: function() {
2148
- return this.yearinfo.wdaymask;
2149
- },
2150
- enumerable: !1,
2151
- configurable: !0
2152
- }), Object.defineProperty(t.prototype, "mmask", {
2153
- get: function() {
2154
- return this.yearinfo.mmask;
2155
- },
2156
- enumerable: !1,
2157
- configurable: !0
2158
- }), Object.defineProperty(t.prototype, "wnomask", {
2159
- get: function() {
2160
- return this.yearinfo.wnomask;
2161
- },
2162
- enumerable: !1,
2163
- configurable: !0
2164
- }), Object.defineProperty(t.prototype, "nwdaymask", {
2165
- get: function() {
2166
- return this.monthinfo ? this.monthinfo.nwdaymask : [];
2167
- },
2168
- enumerable: !1,
2169
- configurable: !0
2170
- }), Object.defineProperty(t.prototype, "nextyearlen", {
2171
- get: function() {
2172
- return this.yearinfo.nextyearlen;
2173
- },
2174
- enumerable: !1,
2175
- configurable: !0
2176
- }), Object.defineProperty(t.prototype, "mdaymask", {
2177
- get: function() {
2178
- return this.yearinfo.mdaymask;
2179
- },
2180
- enumerable: !1,
2181
- configurable: !0
2182
- }), Object.defineProperty(t.prototype, "nmdaymask", {
2183
- get: function() {
2184
- return this.yearinfo.nmdaymask;
2185
- },
2186
- enumerable: !1,
2187
- configurable: !0
2188
- }), t.prototype.ydayset = function() {
2189
- return [be(this.yearlen), 0, this.yearlen];
2190
- }, t.prototype.mdayset = function(e, n) {
2191
- for (var r = this.mrange[n - 1], a = this.mrange[n], i = I(null, this.yearlen), s = r; s < a; s++)
2192
- i[s] = s;
2193
- return [i, r, a];
2194
- }, t.prototype.wdayset = function(e, n, r) {
2195
- for (var a = I(null, this.yearlen + 7), i = Mt(Me(e, n, r)) - this.yearordinal, s = i, l = 0; l < 7 && (a[i] = i, ++i, this.wdaymask[i] !== this.options.wkst); l++)
2196
- ;
2197
- return [a, s, i];
2198
- }, t.prototype.ddayset = function(e, n, r) {
2199
- var a = I(null, this.yearlen), i = Mt(Me(e, n, r)) - this.yearordinal;
2200
- return a[i] = i, [a, i, i + 1];
2201
- }, t.prototype.htimeset = function(e, n, r, a) {
2202
- var i = this, s = [];
2203
- return this.options.byminute.forEach(function(l) {
2204
- s = s.concat(i.mtimeset(e, l, r, a));
2205
- }), Ve(s), s;
2206
- }, t.prototype.mtimeset = function(e, n, r, a) {
2207
- var i = this.options.bysecond.map(function(s) {
2208
- return new ut(e, n, s, a);
2209
- });
2210
- return Ve(i), i;
2211
- }, t.prototype.stimeset = function(e, n, r, a) {
2212
- return [new ut(e, n, r, a)];
2213
- }, t.prototype.getdayset = function(e) {
2214
- switch (e) {
2215
- case N.YEARLY:
2216
- return this.ydayset.bind(this);
2217
- case N.MONTHLY:
2218
- return this.mdayset.bind(this);
2219
- case N.WEEKLY:
2220
- return this.wdayset.bind(this);
2221
- case N.DAILY:
2222
- return this.ddayset.bind(this);
2223
- default:
2224
- return this.ddayset.bind(this);
2225
- }
2226
- }, t.prototype.gettimeset = function(e) {
2227
- switch (e) {
2228
- case N.HOURLY:
2229
- return this.htimeset.bind(this);
2230
- case N.MINUTELY:
2231
- return this.mtimeset.bind(this);
2232
- case N.SECONDLY:
2233
- return this.stimeset.bind(this);
2234
- }
2235
- }, t;
2236
- }()
2237
- );
2238
- function Ri(t, e, n, r, a, i) {
2239
- for (var s = [], l = 0; l < t.length; l++) {
2240
- var o = void 0, u = void 0, d = t[l];
2241
- d < 0 ? (o = Math.floor(d / e.length), u = de(d, e.length)) : (o = Math.floor((d - 1) / e.length), u = de(d - 1, e.length));
2242
- for (var f = [], h = n; h < r; h++) {
2243
- var y = i[h];
2244
- G(y) && f.push(y);
2245
- }
2246
- var p = void 0;
2247
- o < 0 ? p = f.slice(o)[0] : p = f[o];
2248
- var v = e[u], b = yr(a.yearordinal + p), T = pr(b, v);
2249
- j(s, T) || s.push(T);
2250
- }
2251
- return Ve(s), s;
2252
- }
2253
- function gr(t, e) {
2254
- var n = e.dtstart, r = e.freq, a = e.interval, i = e.until, s = e.bysetpos, l = e.count;
2255
- if (l === 0 || a === 0)
2256
- return Ee(t);
2257
- var o = ii.fromDate(n), u = new Di(e);
2258
- u.rebuild(o.year, o.month);
2259
- for (var d = Ai(u, o, e); ; ) {
2260
- var f = u.getdayset(r)(o.year, o.month, o.day), h = f[0], y = f[1], p = f[2], v = Mi(h, y, p, u, e);
2261
- if (X(s))
2262
- for (var b = Ri(s, d, y, p, u, h), T = 0; T < b.length; T++) {
2263
- var L = b[T];
2264
- if (i && L > i)
2265
- return Ee(t);
2266
- if (L >= n) {
2267
- var Q = Mn(L, e);
2268
- if (!t.accept(Q) || l && (--l, !l))
2269
- return Ee(t);
2270
- }
2271
- }
2272
- else
2273
- for (var T = y; T < p; T++) {
2274
- var ie = h[T];
2275
- if (G(ie))
2276
- for (var fe = yr(u.yearordinal + ie), V = 0; V < d.length; V++) {
2277
- var Re = d[V], L = pr(fe, Re);
2278
- if (i && L > i)
2279
- return Ee(t);
2280
- if (L >= n) {
2281
- var Q = Mn(L, e);
2282
- if (!t.accept(Q) || l && (--l, !l))
2283
- return Ee(t);
2284
- }
2285
- }
2286
- }
2287
- if (e.interval === 0 || (o.add(e, v), o.year > dr))
2288
- return Ee(t);
2289
- qt(r) || (d = u.gettimeset(r)(o.hour, o.minute, o.second, 0)), u.rebuild(o.year, o.month);
2290
- }
2291
- }
2292
- function Li(t, e, n) {
2293
- var r = n.bymonth, a = n.byweekno, i = n.byweekday, s = n.byeaster, l = n.bymonthday, o = n.bynmonthday, u = n.byyearday;
2294
- return X(r) && !j(r, t.mmask[e]) || X(a) && !t.wnomask[e] || X(i) && !j(i, t.wdaymask[e]) || X(t.nwdaymask) && !t.nwdaymask[e] || s !== null && !j(t.eastermask, e) || (X(l) || X(o)) && !j(l, t.mdaymask[e]) && !j(o, t.nmdaymask[e]) || X(u) && (e < t.yearlen && !j(u, e + 1) && !j(u, -t.yearlen + e) || e >= t.yearlen && !j(u, e + 1 - t.yearlen) && !j(u, -t.nextyearlen + e - t.yearlen));
2295
- }
2296
- function Mn(t, e) {
2297
- return new ft(t, e.tzid).rezonedDate();
2298
- }
2299
- function Ee(t) {
2300
- return t.getValue();
2301
- }
2302
- function Mi(t, e, n, r, a) {
2303
- for (var i = !1, s = e; s < n; s++) {
2304
- var l = t[s];
2305
- i = Li(r, l, a), i && (t[l] = null);
2306
- }
2307
- return i;
2308
- }
2309
- function Ai(t, e, n) {
2310
- var r = n.freq, a = n.byhour, i = n.byminute, s = n.bysecond;
2311
- return qt(r) ? oi(n) : r >= O.HOURLY && X(a) && !j(a, e.hour) || r >= O.MINUTELY && X(i) && !j(i, e.minute) || r >= O.SECONDLY && X(s) && !j(s, e.second) ? [] : t.gettimeset(r)(e.hour, e.minute, e.second, e.millisecond);
2312
- }
2313
- var pe = {
2314
- MO: new ae(0),
2315
- TU: new ae(1),
2316
- WE: new ae(2),
2317
- TH: new ae(3),
2318
- FR: new ae(4),
2319
- SA: new ae(5),
2320
- SU: new ae(6)
2321
- }, Kt = {
2322
- freq: N.YEARLY,
2323
- dtstart: null,
2324
- interval: 1,
2325
- wkst: pe.MO,
2326
- count: null,
2327
- until: null,
2328
- tzid: null,
2329
- bysetpos: null,
2330
- bymonth: null,
2331
- bymonthday: null,
2332
- bynmonthday: null,
2333
- byyearday: null,
2334
- byweekno: null,
2335
- byweekday: null,
2336
- bynweekday: null,
2337
- byhour: null,
2338
- byminute: null,
2339
- bysecond: null,
2340
- byeaster: null
2341
- }, Ii = Object.keys(Kt), O = (
2342
- /** @class */
2343
- function() {
2344
- function t(e, n) {
2345
- e === void 0 && (e = {}), n === void 0 && (n = !1), this._cache = n ? null : new hi(), this.origOptions = vr(e);
2346
- var r = si(e).parsedOptions;
2347
- this.options = r;
2348
- }
2349
- return t.parseText = function(e, n) {
2350
- return mr(e, n);
2351
- }, t.fromText = function(e, n) {
2352
- return ni(e, n);
2353
- }, t.fromString = function(e) {
2354
- return new t(t.parseString(e) || void 0);
2355
- }, t.prototype._iter = function(e) {
2356
- return gr(e, this.options);
2357
- }, t.prototype._cacheGet = function(e, n) {
2358
- return this._cache ? this._cache._cacheGet(e, n) : !1;
2359
- }, t.prototype._cacheAdd = function(e, n, r) {
2360
- if (this._cache)
2361
- return this._cache._cacheAdd(e, n, r);
2362
- }, t.prototype.all = function(e) {
2363
- if (e)
2364
- return this._iter(new xn("all", {}, e));
2365
- var n = this._cacheGet("all");
2366
- return n === !1 && (n = this._iter(new We("all", {})), this._cacheAdd("all", n)), n;
2367
- }, t.prototype.between = function(e, n, r, a) {
2368
- if (r === void 0 && (r = !1), !Je(e) || !Je(n))
2369
- throw new Error("Invalid date passed in to RRule.between");
2370
- var i = {
2371
- before: n,
2372
- after: e,
2373
- inc: r
2374
- };
2375
- if (a)
2376
- return this._iter(new xn("between", i, a));
2377
- var s = this._cacheGet("between", i);
2378
- return s === !1 && (s = this._iter(new We("between", i)), this._cacheAdd("between", s, i)), s;
2379
- }, t.prototype.before = function(e, n) {
2380
- if (n === void 0 && (n = !1), !Je(e))
2381
- throw new Error("Invalid date passed in to RRule.before");
2382
- var r = { dt: e, inc: n }, a = this._cacheGet("before", r);
2383
- return a === !1 && (a = this._iter(new We("before", r)), this._cacheAdd("before", a, r)), a;
2384
- }, t.prototype.after = function(e, n) {
2385
- if (n === void 0 && (n = !1), !Je(e))
2386
- throw new Error("Invalid date passed in to RRule.after");
2387
- var r = { dt: e, inc: n }, a = this._cacheGet("after", r);
2388
- return a === !1 && (a = this._iter(new We("after", r)), this._cacheAdd("after", a, r)), a;
2389
- }, t.prototype.count = function() {
2390
- return this.all().length;
2391
- }, t.prototype.toString = function() {
2392
- return Ut(this.origOptions);
2393
- }, t.prototype.toText = function(e, n, r) {
2394
- return ri(this, e, n, r);
2395
- }, t.prototype.isFullyConvertibleToText = function() {
2396
- return ai(this);
2397
- }, t.prototype.clone = function() {
2398
- return new t(this.origOptions);
2399
- }, t.FREQUENCIES = [
2400
- "YEARLY",
2401
- "MONTHLY",
2402
- "WEEKLY",
2403
- "DAILY",
2404
- "HOURLY",
2405
- "MINUTELY",
2406
- "SECONDLY"
2407
- ], t.YEARLY = N.YEARLY, t.MONTHLY = N.MONTHLY, t.WEEKLY = N.WEEKLY, t.DAILY = N.DAILY, t.HOURLY = N.HOURLY, t.MINUTELY = N.MINUTELY, t.SECONDLY = N.SECONDLY, t.MO = pe.MO, t.TU = pe.TU, t.WE = pe.WE, t.TH = pe.TH, t.FR = pe.FR, t.SA = pe.SA, t.SU = pe.SU, t.parseString = Nt, t.optionsToString = Ut, t;
2408
- }()
2409
- );
2410
- function Ni(t, e, n, r, a, i) {
2411
- var s = {}, l = t.accept;
2412
- function o(h, y) {
2413
- n.forEach(function(p) {
2414
- p.between(h, y, !0).forEach(function(v) {
2415
- s[Number(v)] = !0;
2416
- });
2417
- });
2418
- }
2419
- a.forEach(function(h) {
2420
- var y = new ft(h, i).rezonedDate();
2421
- s[Number(y)] = !0;
2422
- }), t.accept = function(h) {
2423
- var y = Number(h);
2424
- return isNaN(y) ? l.call(this, h) : !s[y] && (o(new Date(y - 1), new Date(y + 1)), !s[y]) ? (s[y] = !0, l.call(this, h)) : !0;
2425
- }, t.method === "between" && (o(t.args.after, t.args.before), t.accept = function(h) {
2426
- var y = Number(h);
2427
- return s[y] ? !0 : (s[y] = !0, l.call(this, h));
2428
- });
2429
- for (var u = 0; u < r.length; u++) {
2430
- var d = new ft(r[u], i).rezonedDate();
2431
- if (!t.accept(new Date(d.getTime())))
2432
- break;
2433
- }
2434
- e.forEach(function(h) {
2435
- gr(t, h.options);
2436
- });
2437
- var f = t._result;
2438
- switch (Ve(f), t.method) {
2439
- case "all":
2440
- case "between":
2441
- return f;
2442
- case "before":
2443
- return f.length && f[f.length - 1] || null;
2444
- case "after":
2445
- default:
2446
- return f.length && f[0] || null;
2447
- }
2448
- }
2449
- var An = {
2450
- dtstart: null,
2451
- cache: !1,
2452
- unfold: !1,
2453
- forceset: !1,
2454
- compatible: !1,
2455
- tzid: null
2456
- };
2457
- function Ui(t, e) {
2458
- var n = [], r = [], a = [], i = [], s = dt(t), l = s.dtstart, o = s.tzid, u = Wi(t, e.unfold);
2459
- return u.forEach(function(d) {
2460
- var f;
2461
- if (d) {
2462
- var h = ji(d), y = h.name, p = h.parms, v = h.value;
2463
- switch (y.toUpperCase()) {
2464
- case "RRULE":
2465
- if (p.length)
2466
- throw new Error("unsupported RRULE parm: ".concat(p.join(",")));
2467
- n.push(Nt(d));
2468
- break;
2469
- case "RDATE":
2470
- var b = (f = /RDATE(?:;TZID=([^:=]+))?/i.exec(d)) !== null && f !== void 0 ? f : [], T = b[1];
2471
- T && !o && (o = T), r = r.concat(Nn(v, p));
2472
- break;
2473
- case "EXRULE":
2474
- if (p.length)
2475
- throw new Error("unsupported EXRULE parm: ".concat(p.join(",")));
2476
- a.push(Nt(v));
2477
- break;
2478
- case "EXDATE":
2479
- i = i.concat(Nn(v, p));
2480
- break;
2481
- case "DTSTART":
2482
- break;
2483
- default:
2484
- throw new Error("unsupported property: " + y);
2485
- }
2486
- }
2487
- }), {
2488
- dtstart: l,
2489
- tzid: o,
2490
- rrulevals: n,
2491
- rdatevals: r,
2492
- exrulevals: a,
2493
- exdatevals: i
2494
- };
2495
- }
2496
- function Pi(t, e) {
2497
- var n = Ui(t, e), r = n.rrulevals, a = n.rdatevals, i = n.exrulevals, s = n.exdatevals, l = n.dtstart, o = n.tzid, u = e.cache === !1;
2498
- if (e.compatible && (e.forceset = !0, e.unfold = !0), e.forceset || r.length > 1 || a.length || i.length || s.length) {
2499
- var d = new zi(u);
2500
- return d.dtstart(l), d.tzid(o || void 0), r.forEach(function(h) {
2501
- d.rrule(new O(St(h, l, o), u));
2502
- }), a.forEach(function(h) {
2503
- d.rdate(h);
2504
- }), i.forEach(function(h) {
2505
- d.exrule(new O(St(h, l, o), u));
2506
- }), s.forEach(function(h) {
2507
- d.exdate(h);
2508
- }), e.compatible && e.dtstart && d.rdate(l), d;
2509
- }
2510
- var f = r[0] || {};
2511
- return new O(St(f, f.dtstart || e.dtstart || l, f.tzid || e.tzid || o), u);
2512
- }
2513
- function In(t, e) {
2514
- return e === void 0 && (e = {}), Pi(t, Yi(e));
2515
- }
2516
- function St(t, e, n) {
2517
- return ce(ce({}, t), { dtstart: e, tzid: n });
2518
- }
2519
- function Yi(t) {
2520
- var e = [], n = Object.keys(t), r = Object.keys(An);
2521
- if (n.forEach(function(a) {
2522
- j(r, a) || e.push(a);
2523
- }), e.length)
2524
- throw new Error("Invalid options: " + e.join(", "));
2525
- return ce(ce({}, An), t);
2526
- }
2527
- function Hi(t) {
2528
- if (t.indexOf(":") === -1)
2529
- return {
2530
- name: "RRULE",
2531
- value: t
2532
- };
2533
- var e = Ka(t, ":", 1), n = e[0], r = e[1];
2534
- return {
2535
- name: n,
2536
- value: r
2537
- };
2538
- }
2539
- function ji(t) {
2540
- var e = Hi(t), n = e.name, r = e.value, a = n.split(";");
2541
- if (!a)
2542
- throw new Error("empty property name");
2543
- return {
2544
- name: a[0].toUpperCase(),
2545
- parms: a.slice(1),
2546
- value: r
2547
- };
2548
- }
2549
- function Wi(t, e) {
2550
- if (e === void 0 && (e = !1), t = t && t.trim(), !t)
2551
- throw new Error("Invalid empty string");
2552
- if (!e)
2553
- return t.split(/\s/);
2554
- for (var n = t.split(`
2555
- `), r = 0; r < n.length; ) {
2556
- var a = n[r] = n[r].replace(/\s+$/g, "");
2557
- a ? r > 0 && a[0] === " " ? (n[r - 1] += a.slice(1), n.splice(r, 1)) : r += 1 : n.splice(r, 1);
2558
- }
2559
- return n;
2560
- }
2561
- function Fi(t) {
2562
- t.forEach(function(e) {
2563
- if (!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))
2564
- throw new Error("unsupported RDATE/EXDATE parm: " + e);
2565
- });
2566
- }
2567
- function Nn(t, e) {
2568
- return Fi(e), t.split(",").map(function(n) {
2569
- return zt(n);
2570
- });
2571
- }
2572
- function Un(t) {
2573
- var e = this;
2574
- return function(n) {
2575
- if (n !== void 0 && (e["_".concat(t)] = n), e["_".concat(t)] !== void 0)
2576
- return e["_".concat(t)];
2577
- for (var r = 0; r < e._rrule.length; r++) {
2578
- var a = e._rrule[r].origOptions[t];
2579
- if (a)
2580
- return a;
2581
- }
2582
- };
2583
- }
2584
- var zi = (
2585
- /** @class */
2586
- function(t) {
2587
- Bt(e, t);
2588
- function e(n) {
2589
- n === void 0 && (n = !1);
2590
- var r = t.call(this, {}, n) || this;
2591
- return r.dtstart = Un.apply(r, ["dtstart"]), r.tzid = Un.apply(r, ["tzid"]), r._rrule = [], r._rdate = [], r._exrule = [], r._exdate = [], r;
2592
- }
2593
- return e.prototype._iter = function(n) {
2594
- return Ni(n, this._rrule, this._exrule, this._rdate, this._exdate, this.tzid());
2595
- }, e.prototype.rrule = function(n) {
2596
- Pn(n, this._rrule);
2597
- }, e.prototype.exrule = function(n) {
2598
- Pn(n, this._exrule);
2599
- }, e.prototype.rdate = function(n) {
2600
- Yn(n, this._rdate);
2601
- }, e.prototype.exdate = function(n) {
2602
- Yn(n, this._exdate);
2603
- }, e.prototype.rrules = function() {
2604
- return this._rrule.map(function(n) {
2605
- return In(n.toString());
2606
- });
2607
- }, e.prototype.exrules = function() {
2608
- return this._exrule.map(function(n) {
2609
- return In(n.toString());
2610
- });
2611
- }, e.prototype.rdates = function() {
2612
- return this._rdate.map(function(n) {
2613
- return new Date(n.getTime());
2614
- });
2615
- }, e.prototype.exdates = function() {
2616
- return this._exdate.map(function(n) {
2617
- return new Date(n.getTime());
2618
- });
2619
- }, e.prototype.valueOf = function() {
2620
- var n = [];
2621
- return !this._rrule.length && this._dtstart && (n = n.concat(Ut({ dtstart: this._dtstart }))), this._rrule.forEach(function(r) {
2622
- n = n.concat(r.toString().split(`
2623
- `));
2624
- }), this._exrule.forEach(function(r) {
2625
- n = n.concat(r.toString().split(`
2626
- `).map(function(a) {
2627
- return a.replace(/^RRULE:/, "EXRULE:");
2628
- }).filter(function(a) {
2629
- return !/^DTSTART/.test(a);
2630
- }));
2631
- }), this._rdate.length && n.push(Hn("RDATE", this._rdate, this.tzid())), this._exdate.length && n.push(Hn("EXDATE", this._exdate, this.tzid())), n;
2632
- }, e.prototype.toString = function() {
2633
- return this.valueOf().join(`
2634
- `);
2635
- }, e.prototype.clone = function() {
2636
- var n = new e(!!this._cache);
2637
- return this._rrule.forEach(function(r) {
2638
- return n.rrule(r.clone());
2639
- }), this._exrule.forEach(function(r) {
2640
- return n.exrule(r.clone());
2641
- }), this._rdate.forEach(function(r) {
2642
- return n.rdate(new Date(r.getTime()));
2643
- }), this._exdate.forEach(function(r) {
2644
- return n.exdate(new Date(r.getTime()));
2645
- }), n;
2646
- }, e;
2647
- }(O)
2648
- );
2649
- function Pn(t, e) {
2650
- if (!(t instanceof O))
2651
- throw new TypeError(String(t) + " is not RRule instance");
2652
- j(e.map(String), String(t)) || e.push(t);
2653
- }
2654
- function Yn(t, e) {
2655
- if (!(t instanceof Date))
2656
- throw new TypeError(String(t) + " is not Date instance");
2657
- j(e.map(Number), Number(t)) || (e.push(t), Ve(e));
2658
- }
2659
- function Hn(t, e, n) {
2660
- var r = !n || n.toUpperCase() === "UTC", a = r ? "".concat(t, ":") : "".concat(t, ";TZID=").concat(n, ":"), i = e.map(function(s) {
2661
- return Ft(s.valueOf(), r);
2662
- }).join(",");
2663
- return "".concat(a).concat(i);
2664
- }
2665
- function jn(t, e = null) {
2666
- return e ? [null, e] : [t, null];
2667
- }
2668
- class cs {
2669
- constructor(e) {
2670
- this.defaultAuthArgs = {}, this.session = e;
2671
- }
2672
- setActiveGrantId(e) {
2673
- this.activeGrantId = e;
2674
- }
2675
- async request({ method: e, path: n, body: r, headers: a }) {
2676
- try {
2677
- const i = await this.session.fetch(`grants/me/${n}`, {
2678
- method: e,
2679
- headers: a ? new Headers(a) : void 0,
2680
- body: r,
2681
- ...this.session.isMultiAccount() && this.activeGrantId ? { grant_id: this.activeGrantId } : {}
2682
- });
2683
- if (typeof i > "u")
2684
- throw new Error("Response is undefined");
2685
- return jn(i);
2686
- } catch (i) {
2687
- return jn(null, {
2688
- message: String(i)
2689
- });
2690
- }
2691
- }
2692
- async currentUser() {
2693
- const e = this.session.isMultiAccount() ? this.activeGrantId : void 0, n = await this.session.getProfile(e);
2694
- return n ? {
2695
- id: n.sub,
2696
- email: n.email,
2697
- name: n.name
2698
- } : null;
2699
- }
2700
- async authenticationUrl(e) {
2701
- let n = this.defaultAuthArgs || {};
2702
- return e && (n = { ...n, ...e }), this.session.auth(n);
2703
- }
2704
- setDefaultAuthArgs(e) {
2705
- this.defaultAuthArgs = e;
2706
- }
2707
- }
2708
- Fa({});
2709
- function us() {
2710
- var t = [];
2711
- if (typeof window < "u") {
2712
- var e = window;
2713
- (!e.customElements || e.Element && (!e.Element.prototype.closest || !e.Element.prototype.matches || !e.Element.prototype.remove || !e.Element.prototype.getRootNode)) && t.push(import(
2714
- /* webpackChunkName: "polyfills-dom" */
2715
- "./dom-86e17616.js"
2716
- ));
2717
- var n = function() {
2718
- try {
2719
- var r = new URL("b", "http://a");
2720
- return r.pathname = "c%20d", r.href === "http://a/c%20d" && r.searchParams;
2721
- } catch {
2722
- return !1;
2723
- }
2724
- };
2725
- (typeof Object.assign != "function" || !Object.entries || !Array.prototype.find || !Array.prototype.includes || !String.prototype.startsWith || !String.prototype.endsWith || e.NodeList && !e.NodeList.prototype.forEach || !e.fetch || !n() || typeof WeakMap > "u") && t.push(import(
2726
- /* webpackChunkName: "polyfills-core-js" */
2727
- "./core-js-a9d3b6e1.js"
2728
- ));
2729
- }
2730
- return Promise.all(t);
2731
- }
2732
- async function Bi() {
2733
- await import("./elements-dc5b338e-6078b875.js");
2734
- }
2735
- const qi = Bi, Ki = (t, e) => {
2736
- if (!(typeof window > "u"))
2737
- return qi(), Ca(JSON.parse('[["nylas-scheduler-editor",[[1,"nylas-scheduler-editor",{"defaultRequiresSessionAuth":[1028,"default-requires-session-auth"],"configurationId":[1025,"configuration-id"],"nylasApiRequest":[1040],"nylasSessionsConfig":[16],"defaultAuthArgs":[16],"eventOverrides":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"defaultSchedulerConfigStoreState":[16],"mode":[1],"automaticComponentRegistration":[32],"store":[64],"schedulerConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]],{"defaultRequiresSessionAuth":["defaultRequiresSessionAuthChanged"],"configurationId":["configurationIdChanged"]}]]],["nylas-scheduling",[[1,"nylas-scheduling",{"mode":[1],"defaultSchedulerState":[16],"sessionId":[1,"session-id"],"schedulerApiUrl":[1,"scheduler-api-url"],"bookingInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"cancelBookingId":[1,"cancel-booking-id"],"configurationId":[1,"configuration-id"],"nylasBranding":[4,"nylas-branding"],"eventOverrides":[16],"isLoading":[4,"is-loading"],"themeConfig":[16],"showNotification":[4,"show-notification"],"automaticComponentRegistration":[32],"selectedDateLabel":[32],"getNylasSchedulerStore":[64],"getNylasSchedulerConnector":[64],"getRef":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"],[0,"monthChanged","monthChangedHandler"],[0,"detailsConfirmed","bookButtonClickedHandler"],[0,"dateSelected","dateSelectedHandler"],[0,"cancelBookedEventError","cancelBookedEventErrorHandler"],[0,"rescheduleBookedEventError","rescheduleBookedEventErrorHandler"]],{"bookingInfo":["bookingInfoChanged"]}]]],["nylas-view-thread",[[1,"nylas-view-thread",{"draft":[16],"thread":[16],"messages":[16],"attachments":[16],"state":[32],"internalMessages":[32],"showAllEmails":[32],"showComposer":[32]},null,{"thread":["threadChanged"],"messages":["updateInternalMessages"]}]]],["nylas-list-folders",[[1,"nylas-list-folders",{"folders":[16],"selectedFolder":[1,"selected-folder"],"defaultFolders":[32],"otherFolders":[32]},null,{"folders":["watchFolders"]}]]],["nylas-additional-participants",[[65,"nylas-additional-participants",{"name":[1],"eventParticipants":[16],"participants":[32],"participantsValid":[32]},null,{"name":["elementNameChangedHandler"]}]]],["nylas-mailbox-pagination",[[1,"nylas-mailbox-pagination",{"state":[1],"hasNextPage":[4,"has-next-page"],"hasPreviousPage":[4,"has-previous-page"],"scrollTarget":[1,"scroll-target"],"mobileOnlyInfiniteScroll":[4,"mobile-only-infinite-scroll"],"mobileViewPortWidth":[2,"mobile-view-port-width"],"nextPage":[64],"previousPage":[64]},[[9,"scroll","handlePageScroll"]]]]],["nylas-threads-refresh",[[1,"nylas-threads-refresh",{"start":[32],"state":[32],"pulling":[32],"updateState":[64]}]]],["document-refresh-icon",[[2,"document-refresh-icon",{"width":[1],"height":[1]}]]],["nylas-if-state",[[1,"nylas-if-state",{"state":[1],"isStateSet":[4,"is-state-set"],"isBoolean":[4,"is-boolean"],"getStore":[16],"transition":[1],"show":[32],"classes":[32]},null,{"getStore":["onGetStoreChange"]}]]],["nylas-list-threads",[[1,"nylas-list-threads",{"threads":[16],"isAuthenticated":[4,"is-authenticated"],"tokenInfo":[16],"state":[1],"showCheckbox":[4,"show-checkbox"]}]]],["nylas-login",[[1,"nylas-login",{"isAuthenticated":[4,"is-authenticated"],"nylasConnector":[16],"scopes":[16],"loginMethod":[1,"login-method"],"companyName":[1,"company-name"],"logoUrl":[1,"logo-url"],"logoWidth":[1,"logo-width"],"providers":[1],"buttonText":[1,"button-text"],"email":[32]}]]],["nylas-mailbox",[[1,"nylas-mailbox",{"automaticComponentRegistration":[4,"automatic-component-registration"],"eventOverrides":[16],"authConfig":[16],"defaultAuthStoreState":[16],"defaultMailboxStoreState":[16],"getMailboxStore":[64],"getAuthStore":[64],"getNylasAuth":[64],"getNylasMailboxConnector":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-mailbox-toolbar-button",[[1,"nylas-mailbox-toolbar-button",{"method":[1],"dataState":[1,"data-state"],"iconOnly":[4,"icon-only"],"mailboxConnector":[16]}]]],["nylas-provider",[[1,"nylas-provider",{"authConfig":[16],"eventOverrides":[16],"automaticComponentRegistration":[4,"automatic-component-registration"],"getNylasAuth":[64],"getNylasConnector":[64],"getMailboxStore":[64],"getAuthStore":[64],"getNylasSchedulerStore":[64],"getNylasSchedulerConfigStore":[64]},[[0,"registerComponent","registerComponentHandler"],[0,"unregisterComponent","unregisterComponentHandler"]]]]],["nylas-threads-search",[[1,"nylas-threads-search",{"query":[1],"internalQuery":[32]},null,{"query":["onQueryChange"]}]]],["people-icon",[[2,"people-icon",{"width":[1],"height":[1]}]]],["arrow-icon",[[2,"arrow-icon",{"width":[1],"height":[1]}]]],["refresh-icon",[[2,"refresh-icon",{"width":[1],"height":[1]}]]],["translate-icon",[[2,"translate-icon",{"width":[1],"height":[1]}]]],["warning-icon",[[2,"warning-icon",{"width":[1],"height":[1]}]]],["calendar-cancel-icon",[[2,"calendar-cancel-icon",{"width":[1],"height":[1]}]]],["time-period-selector",[[2,"time-period-selector",{"timePeriods":[16],"defaultSelectedPeriod":[1,"default-selected-period"],"defaultSelectedNumber":[2,"default-selected-number"],"selectedPeriod":[32],"selectedNumber":[32],"numberOptions":[32],"timePeriodOptions":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"defaultSelectedPeriod":["defaultSelectedPeriodChangedHandler"],"defaultSelectedNumber":["defaultSelectedNumberChangedHandler"],"timePeriods":["timePeriodsChangedHandler"]}]]],["calendar-icon",[[2,"calendar-icon",{"width":[1],"height":[1]}]]],["nylas-form-card",[[65,"nylas-form-card"]]],["loading-icon",[[1,"loading-icon",{"width":[1],"height":[1]}]]],["globe-icon",[[2,"globe-icon",{"width":[1],"height":[1]}]]],["close-icon",[[2,"close-icon",{"width":[1],"height":[1]}]]],["chevron-icon_3",[[1,"select-dropdown",{"name":[1],"options":[16],"defaultSelectedOption":[16],"withSearch":[4,"with-search"],"pluralizedLabel":[1,"pluralized-label"],"selectedOption":[32],"isOpen":[32],"searchValue":[32],"filteredOptions":[32],"ariaActivedescendant":[32]},[[6,"click","handleOutsideClick"]],{"options":["optionsChangedHandler"],"defaultSelectedOption":["defaultSelectedOptionChangedHandler"]}],[2,"search-icon",{"width":[1],"height":[1]}],[2,"chevron-icon",{"width":[1],"height":[1]}]]],["add-circle-icon_22",[[65,"nylas-availability-picker",{"selectedConfiguration":[16],"openHours":[16],"name":[1],"defaultTimezone":[1,"default-timezone"],"schedule":[32],"timezone":[32],"overlapDays":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["configChangedHandler"],"schedule":["scheduleChanged"]}],[65,"nylas-location-component",{"selectedConfiguration":[16],"eventLocation":[1,"event-location"],"name":[1],"location":[32],"selectedLocationOption":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"eventLocation":["eventLocationChangedHandler"]}],[65,"nylas-limit-future-bookings",{"selectedConfiguration":[16],"availableDaysInFuture":[2,"available-days-in-future"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-min-cancellation-notice",{"selectedConfiguration":[16],"minCancellationNotice":[2,"min-cancellation-notice"],"name":[1],"selectedNumber":[32],"selectedPeriod":[32]},[[0,"timePeriodChanged","timePeriodChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"availableDaysInFuture":["availableDaysInFutureChanged"]}],[65,"nylas-booking-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultBookingCalendar":[1,"default-booking-calendar"],"selectedCalendar":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-calendar-picker",{"calendars":[16],"currentUser":[16],"name":[1],"defaultSelectedCalendars":[16],"selectedCalendars":[32]},[[0,"selectedOptionsChanged","selectedOptionsChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-custom-booking-flow",{"selectedConfiguration":[16],"name":[1],"bookingType":[1,"booking-type"],"selectedBookingType":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-duration",{"selectedConfiguration":[16],"name":[1],"eventDurationMinutes":[2,"event-duration-minutes"],"duration":[32],"durationMinutes":[32],"durationIncrement":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"],"durationMinutes":["durationMinutesChangedHandler"]}],[65,"nylas-buffer-time",{"name":[1],"buffer":[16],"selectedBeforeBufferTime":[32],"selectedAfterBufferTime":[32]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]],{"name":["elementNameChangedHandler"]}],[65,"nylas-event-description",{"selectedConfiguration":[16],"eventDescription":[1,"event-description"],"name":[1],"description":[32]},null,{"name":["elementNameChangedHandler"],"selectedConfiguration":["selectedConfigurationChangedHandler"]}],[65,"nylas-event-title",{"selectedConfiguration":[16],"eventTitle":[1,"event-title"],"name":[1],"showTokens":[32],"availableTokens":[32],"filteredTokens":[32],"ariaActivedescendant":[32],"currentWord":[32],"validationError":[32]},[[8,"formSubmitted","formSubmittedHandler"]],{"name":["elementNameChangedHandler"],"ariaActivedescendant":["ariaActivedescendantChangedHandler"],"selectedConfiguration":["configChangedHandler"]}],[65,"nylas-event-info"],[65,"nylas-event-limits"],[2,"calendar-info-icon",{"width":[1],"height":[1]}],[2,"calendar-patterns-icon",{"width":[1],"height":[1]}],[2,"flow-icon",{"width":[1],"height":[1]}],[1,"multi-select-dropdown",{"name":[1],"label":[1],"options":[16],"availableOptions":[32],"isOpen":[32],"ariaActivedescendant":[32],"shouldFocusFirstOption":[32]},[[6,"click","handleOutsideClick"]]],[2,"add-circle-icon",{"width":[1],"height":[1]}],[6,"button-component",{"variant":[1],"disabled":[4],"type":[1],"clickHandler":[16],"mouseOverHandler":[16],"mouseOutHandler":[16],"focusHandler":[16],"blurHandler":[16]}],[2,"location-icon",{"width":[1],"height":[1]}],[2,"location-off-icon",{"width":[1],"height":[1]}],[1,"nylas-time-window-picker",{"time":[1],"minimumStartTime":[1,"minimum-start-time"],"placeholder":[1],"setTime":[16],"name":[1],"hasError":[4,"has-error"],"setFormError":[16],"err":[32],"showTimes":[32],"ariaActivedescendant":[32],"times":[32],"shouldAutoScroll":[32]},[[4,"click","handleOutsideClick"]],{"minimumStartTime":["minimumStartTimeChangedHandler"]}]]],["google-logo-icon_4",[[6,"nylas-editor-tabs",{"calendars":[16],"selectedConfiguration":[16],"currentUser":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"mode":[1],"action":[32],"activeTab":[32],"isLoading":[32],"hasUnsavedChanges":[32],"changesSaved":[32],"formState":[32],"error":[32]},[[0,"valueChanged","handleValueChanged"]],{"selectedConfiguration":["configChangedHandler"]}],[1,"nylas-list-configurations",{"configurations":[16],"schedulerPreviewLink":[1,"scheduler-preview-link"],"state":[32],"error":[32],"getState":[64],"setState":[64],"setError":[64]}],[2,"google-logo-icon",{"width":[1],"height":[1]}],[2,"microsoft-logo-icon",{"width":[1],"height":[1]}]]],["calendar-check-icon_2",[[2,"calendar-check-icon",{"width":[1],"height":[1]}],[2,"checkmark-circle-icon",{"width":[1],"height":[1]}]]],["play-icon_2",[[2,"play-icon",{"width":[1],"height":[1]}],[2,"stop-icon",{"width":[1],"height":[1]}]]],["bold-icon_3",[[2,"bold-icon",{"width":[1],"height":[1]}],[2,"italic-icon",{"width":[1],"height":[1]}],[2,"underline-icon",{"width":[1],"height":[1]}]]],["forward-icon_6",[[1,"nylas-composer",{"message":[16],"viewEmailElement":[16]},null,{"message":["watchBody"]}],[1,"nylas-summarize-message-button",{"message":[16],"state":[32],"updateState":[64],"playAudio":[64]}],[2,"forward-icon",{"width":[1],"height":[1]}],[1,"nylas-view-email",{"message":[16],"parent":[16],"attachments":[16],"detectDarkMode":[4,"detect-dark-mode"],"state":[32],"sanitizedBody":[32],"styles":[32],"viewEmailElement":[32],"hoistedFontURLs":[32]},[[9,"resize","handleScroll"]],{"message":["messageChanged"],"viewEmailElement":["viewEmailElementChanged"]}],[2,"reply-all-icon",{"width":[1],"height":[1]}],[2,"reply-icon",{"width":[1],"height":[1]}]]],["archive-icon_7",[[2,"archive-icon",{"width":[1],"height":[1]}],[2,"folder-icon",{"width":[1],"height":[1]}],[2,"inbox-icon",{"width":[1],"height":[1]}],[2,"sent-icon",{"width":[1],"height":[1]}],[2,"spam-icon",{"width":[1],"height":[1]}],[2,"star-icon",{"width":[1],"height":[1]}],[2,"trash-icon",{"width":[1],"height":[1]}]]],["nylas-booked-event-card_10",[[1,"nylas-locale-switch",{"selectedTimezone":[1025,"selected-timezone"],"selectedLanguage":[1025,"selected-language"]},[[0,"selectedOptionChanged","selectedOptionChangedHandler"]]],[1,"nylas-booked-event-card",{"eventInfo":[16],"rescheduleBookingId":[1,"reschedule-booking-id"],"bookingInfo":[8,"booking-info"],"selectedTimezone":[1,"selected-timezone"],"selectedTimeslot":[16]}],[1,"nylas-notification",{"ttl":[8],"allowedCategories":[16],"notifications":[32]},[[16,"nylasSchedulerError","onError"],[16,"nylasSchedulerWarning","onWarning"],[16,"nylasSchedulerInfo","onInfo"],[16,"nylasSchedulerSuccess","onSuccess"]]],[1,"nylas-selected-event-card",{"selectedDate":[16],"selectedTimeslot":[16],"selectedTimezone":[1,"selected-timezone"],"startTime":[32],"endTime":[32]},null,{"selectedTimeslot":["handleSelectedTimeslotChange"]}],[1,"nylas-booking-form",{"isLoading":[4,"is-loading"],"bookingInfo":[8,"booking-info"],"eventInfo":[16],"name":[32],"email":[32],"guestEmails":[32],"guestEmailErrors":[32],"isNameValid":[32],"isEmailValid":[32],"validationError":[32]},null,{"bookingInfo":["bookingInfoChangedHandler"]}],[1,"nylas-cancel-booking-form",{"cancelBookingId":[1,"cancel-booking-id"],"cancellationReason":[32],"cancellationError":[32]}],[1,"nylas-cancelled-event-card",{"cancelledEventInfo":[16]}],[1,"nylas-date-picker",{"selectableDates":[16],"selectedDate":[16],"isLoading":[4,"is-loading"],"month":[32],"dates":[32]}],[2,"nylas-logo",{"width":[1],"height":[1]}],[1,"nylas-timeslot-picker",{"selectedDate":[16],"availability":[16],"selectedTimeslot":[16],"isLoading":[4,"loading-state"],"selectedTimezone":[1,"selected-timezone"],"times":[32],"hoveredTimeslotIndex":[32],"selectedTimeslotIndex":[32]},null,{"selectedDate":["selectedDateChanged"],"availability":["availabilityChanged"]}]]],["info-icon_2",[[2,"info-icon",{"width":[1],"height":[1]}],[1,"tooltip-component",{"position":[1]}]]]]'), e);
2738
- };
2739
- (function() {
2740
- if (typeof window < "u" && window.Reflect !== void 0 && window.customElements !== void 0) {
2741
- var t = HTMLElement;
2742
- window.HTMLElement = function() {
2743
- return Reflect.construct(t, [], this.constructor);
2744
- }, HTMLElement.prototype = t.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, t);
2745
- }
2746
- })();
2747
- var Pt = { exports: {} }, Ge = {};
2748
- /**
2749
- * @license React
2750
- * react-jsx-runtime.production.min.js
2751
- *
2752
- * Copyright (c) Facebook, Inc. and its affiliates.
2753
- *
2754
- * This source code is licensed under the MIT license found in the
2755
- * LICENSE file in the root directory of this source tree.
2756
- */
2757
- var Wn;
2758
- function Gi() {
2759
- if (Wn)
2760
- return Ge;
2761
- Wn = 1;
2762
- var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
2763
- function s(l, o, u) {
2764
- var d, f = {}, h = null, y = null;
2765
- u !== void 0 && (h = "" + u), o.key !== void 0 && (h = "" + o.key), o.ref !== void 0 && (y = o.ref);
2766
- for (d in o)
2767
- r.call(o, d) && !i.hasOwnProperty(d) && (f[d] = o[d]);
2768
- if (l && l.defaultProps)
2769
- for (d in o = l.defaultProps, o)
2770
- f[d] === void 0 && (f[d] = o[d]);
2771
- return { $$typeof: e, type: l, key: h, ref: y, props: f, _owner: a.current };
2772
- }
2773
- return Ge.Fragment = n, Ge.jsx = s, Ge.jsxs = s, Ge;
2774
- }
2775
- var Ze = {};
2776
- /**
2777
- * @license React
2778
- * react-jsx-runtime.development.js
2779
- *
2780
- * Copyright (c) Facebook, Inc. and its affiliates.
2781
- *
2782
- * This source code is licensed under the MIT license found in the
2783
- * LICENSE file in the root directory of this source tree.
2784
- */
2785
- var Fn;
2786
- function Zi() {
2787
- return Fn || (Fn = 1, process.env.NODE_ENV !== "production" && function() {
2788
- var t = ht, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), p = Symbol.iterator, v = "@@iterator";
2789
- function b(c) {
2790
- if (c === null || typeof c != "object")
2791
- return null;
2792
- var m = p && c[p] || c[v];
2793
- return typeof m == "function" ? m : null;
2794
- }
2795
- var T = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2796
- function L(c) {
2797
- {
2798
- for (var m = arguments.length, k = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
2799
- k[x - 1] = arguments[x];
2800
- Q("error", c, k);
2801
- }
2802
- }
2803
- function Q(c, m, k) {
2804
- {
2805
- var x = T.ReactDebugCurrentFrame, P = x.getStackAddendum();
2806
- P !== "" && (m += "%s", k = k.concat([P]));
2807
- var H = k.map(function(A) {
2808
- return String(A);
2809
- });
2810
- H.unshift("Warning: " + m), Function.prototype.apply.call(console[c], console, H);
2811
- }
2812
- }
2813
- var ie = !1, fe = !1, V = !1, Re = !1, Ie = !1, B;
2814
- B = Symbol.for("react.module.reference");
2815
- function Y(c) {
2816
- return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || Ie || c === a || c === u || c === d || Re || c === y || ie || fe || V || typeof c == "object" && c !== null && (c.$$typeof === h || c.$$typeof === f || c.$$typeof === s || c.$$typeof === l || c.$$typeof === o || // This needs to include all possible module reference object
2817
- // types supported by any Flight configuration anywhere since
2818
- // we don't know which Flight build this will end up being used
2819
- // with.
2820
- c.$$typeof === B || c.getModuleId !== void 0));
2821
- }
2822
- function Ne(c, m, k) {
2823
- var x = c.displayName;
2824
- if (x)
2825
- return x;
2826
- var P = m.displayName || m.name || "";
2827
- return P !== "" ? k + "(" + P + ")" : k;
2828
- }
2829
- function Be(c) {
2830
- return c.displayName || "Context";
2831
- }
2832
- function C(c) {
2833
- if (c == null)
2834
- return null;
2835
- if (typeof c.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
2836
- return c.displayName || c.name || null;
2837
- if (typeof c == "string")
2838
- return c;
2839
- switch (c) {
2840
- case r:
2841
- return "Fragment";
2842
- case n:
2843
- return "Portal";
2844
- case i:
2845
- return "Profiler";
2846
- case a:
2847
- return "StrictMode";
2848
- case u:
2849
- return "Suspense";
2850
- case d:
2851
- return "SuspenseList";
2852
- }
2853
- if (typeof c == "object")
2854
- switch (c.$$typeof) {
2855
- case l:
2856
- var m = c;
2857
- return Be(m) + ".Consumer";
2858
- case s:
2859
- var k = c;
2860
- return Be(k._context) + ".Provider";
2861
- case o:
2862
- return Ne(c, c.render, "ForwardRef");
2863
- case f:
2864
- var x = c.displayName || null;
2865
- return x !== null ? x : C(c.type) || "Memo";
2866
- case h: {
2867
- var P = c, H = P._payload, A = P._init;
2868
- try {
2869
- return C(A(H));
2870
- } catch {
2871
- return null;
2872
- }
2873
- }
2874
- }
2875
- return null;
2876
- }
2877
- var E = Object.assign, w = 0, _, S, R, D, U, F, W;
2878
- function Z() {
2879
- }
2880
- Z.__reactDisabledLog = !0;
2881
- function me() {
2882
- {
2883
- if (w === 0) {
2884
- _ = console.log, S = console.info, R = console.warn, D = console.error, U = console.group, F = console.groupCollapsed, W = console.groupEnd;
2885
- var c = {
2886
- configurable: !0,
2887
- enumerable: !0,
2888
- value: Z,
2889
- writable: !0
2890
- };
2891
- Object.defineProperties(console, {
2892
- info: c,
2893
- log: c,
2894
- warn: c,
2895
- error: c,
2896
- group: c,
2897
- groupCollapsed: c,
2898
- groupEnd: c
2899
- });
2900
- }
2901
- w++;
2902
- }
2903
- }
2904
- function he() {
2905
- {
2906
- if (w--, w === 0) {
2907
- var c = {
2908
- configurable: !0,
2909
- enumerable: !0,
2910
- writable: !0
2911
- };
2912
- Object.defineProperties(console, {
2913
- log: E({}, c, {
2914
- value: _
2915
- }),
2916
- info: E({}, c, {
2917
- value: S
2918
- }),
2919
- warn: E({}, c, {
2920
- value: R
2921
- }),
2922
- error: E({}, c, {
2923
- value: D
2924
- }),
2925
- group: E({}, c, {
2926
- value: U
2927
- }),
2928
- groupCollapsed: E({}, c, {
2929
- value: F
2930
- }),
2931
- groupEnd: E({}, c, {
2932
- value: W
2933
- })
2934
- });
2935
- }
2936
- w < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2937
- }
2938
- }
2939
- var $e = T.ReactCurrentDispatcher, we;
2940
- function ye(c, m, k) {
2941
- {
2942
- if (we === void 0)
2943
- try {
2944
- throw Error();
2945
- } catch (P) {
2946
- var x = P.stack.trim().match(/\n( *(at )?)/);
2947
- we = x && x[1] || "";
2948
- }
2949
- return `
2950
- ` + we + c;
2951
- }
2952
- }
2953
- var J = !1, se;
2954
- {
2955
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
2956
- se = new qe();
2957
- }
2958
- function Le(c, m) {
2959
- if (!c || J)
2960
- return "";
2961
- {
2962
- var k = se.get(c);
2963
- if (k !== void 0)
2964
- return k;
2965
- }
2966
- var x;
2967
- J = !0;
2968
- var P = Error.prepareStackTrace;
2969
- Error.prepareStackTrace = void 0;
2970
- var H;
2971
- H = $e.current, $e.current = null, me();
2972
- try {
2973
- if (m) {
2974
- var A = function() {
2975
- throw Error();
2976
- };
2977
- if (Object.defineProperty(A.prototype, "props", {
2978
- set: function() {
2979
- throw Error();
2980
- }
2981
- }), typeof Reflect == "object" && Reflect.construct) {
2982
- try {
2983
- Reflect.construct(A, []);
2984
- } catch (ke) {
2985
- x = ke;
2986
- }
2987
- Reflect.construct(c, [], A);
2988
- } else {
2989
- try {
2990
- A.call();
2991
- } catch (ke) {
2992
- x = ke;
2993
- }
2994
- c.call(A.prototype);
2995
- }
2996
- } else {
2997
- try {
2998
- throw Error();
2999
- } catch (ke) {
3000
- x = ke;
3001
- }
3002
- c();
3003
- }
3004
- } catch (ke) {
3005
- if (ke && x && typeof ke.stack == "string") {
3006
- for (var M = ke.stack.split(`
3007
- `), re = x.stack.split(`
3008
- `), q = M.length - 1, K = re.length - 1; q >= 1 && K >= 0 && M[q] !== re[K]; )
3009
- K--;
3010
- for (; q >= 1 && K >= 0; q--, K--)
3011
- if (M[q] !== re[K]) {
3012
- if (q !== 1 || K !== 1)
3013
- do
3014
- if (q--, K--, K < 0 || M[q] !== re[K]) {
3015
- var ue = `
3016
- ` + M[q].replace(" at new ", " at ");
3017
- return c.displayName && ue.includes("<anonymous>") && (ue = ue.replace("<anonymous>", c.displayName)), typeof c == "function" && se.set(c, ue), ue;
3018
- }
3019
- while (q >= 1 && K >= 0);
3020
- break;
3021
- }
3022
- }
3023
- } finally {
3024
- J = !1, $e.current = H, he(), Error.prepareStackTrace = P;
3025
- }
3026
- var Pe = c ? c.displayName || c.name : "", on = Pe ? ye(Pe) : "";
3027
- return typeof c == "function" && se.set(c, on), on;
3028
- }
3029
- function wr(c, m, k) {
3030
- return Le(c, !1);
3031
- }
3032
- function kr(c) {
3033
- var m = c.prototype;
3034
- return !!(m && m.isReactComponent);
3035
- }
3036
- function tt(c, m, k) {
3037
- if (c == null)
3038
- return "";
3039
- if (typeof c == "function")
3040
- return Le(c, kr(c));
3041
- if (typeof c == "string")
3042
- return ye(c);
3043
- switch (c) {
3044
- case u:
3045
- return ye("Suspense");
3046
- case d:
3047
- return ye("SuspenseList");
3048
- }
3049
- if (typeof c == "object")
3050
- switch (c.$$typeof) {
3051
- case o:
3052
- return wr(c.render);
3053
- case f:
3054
- return tt(c.type, m, k);
3055
- case h: {
3056
- var x = c, P = x._payload, H = x._init;
3057
- try {
3058
- return tt(H(P), m, k);
3059
- } catch {
3060
- }
3061
- }
3062
- }
3063
- return "";
3064
- }
3065
- var nt = Object.prototype.hasOwnProperty, Gt = {}, Zt = T.ReactDebugCurrentFrame;
3066
- function rt(c) {
3067
- if (c) {
3068
- var m = c._owner, k = tt(c.type, c._source, m ? m.type : null);
3069
- Zt.setExtraStackFrame(k);
3070
- } else
3071
- Zt.setExtraStackFrame(null);
3072
- }
3073
- function Er(c, m, k, x, P) {
3074
- {
3075
- var H = Function.call.bind(nt);
3076
- for (var A in c)
3077
- if (H(c, A)) {
3078
- var M = void 0;
3079
- try {
3080
- if (typeof c[A] != "function") {
3081
- var re = Error((x || "React class") + ": " + k + " type `" + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[A] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3082
- throw re.name = "Invariant Violation", re;
3083
- }
3084
- M = c[A](m, A, x, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3085
- } catch (q) {
3086
- M = q;
3087
- }
3088
- M && !(M instanceof Error) && (rt(P), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", k, A, typeof M), rt(null)), M instanceof Error && !(M.message in Gt) && (Gt[M.message] = !0, rt(P), L("Failed %s type: %s", k, M.message), rt(null));
3089
- }
3090
- }
3091
- }
3092
- var Tr = Array.isArray;
3093
- function mt(c) {
3094
- return Tr(c);
3095
- }
3096
- function Sr(c) {
3097
- {
3098
- var m = typeof Symbol == "function" && Symbol.toStringTag, k = m && c[Symbol.toStringTag] || c.constructor.name || "Object";
3099
- return k;
3100
- }
3101
- }
3102
- function Cr(c) {
3103
- try {
3104
- return Jt(c), !1;
3105
- } catch {
3106
- return !0;
3107
- }
3108
- }
3109
- function Jt(c) {
3110
- return "" + c;
3111
- }
3112
- function Xt(c) {
3113
- if (Cr(c))
3114
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Sr(c)), Jt(c);
3115
- }
3116
- var Ke = T.ReactCurrentOwner, Or = {
3117
- key: !0,
3118
- ref: !0,
3119
- __self: !0,
3120
- __source: !0
3121
- }, Qt, Vt, vt;
3122
- vt = {};
3123
- function xr(c) {
3124
- if (nt.call(c, "ref")) {
3125
- var m = Object.getOwnPropertyDescriptor(c, "ref").get;
3126
- if (m && m.isReactWarning)
3127
- return !1;
3128
- }
3129
- return c.ref !== void 0;
3130
- }
3131
- function _r(c) {
3132
- if (nt.call(c, "key")) {
3133
- var m = Object.getOwnPropertyDescriptor(c, "key").get;
3134
- if (m && m.isReactWarning)
3135
- return !1;
3136
- }
3137
- return c.key !== void 0;
3138
- }
3139
- function Dr(c, m) {
3140
- if (typeof c.ref == "string" && Ke.current && m && Ke.current.stateNode !== m) {
3141
- var k = C(Ke.current.type);
3142
- vt[k] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(Ke.current.type), c.ref), vt[k] = !0);
3143
- }
3144
- }
3145
- function Rr(c, m) {
3146
- {
3147
- var k = function() {
3148
- Qt || (Qt = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
3149
- };
3150
- k.isReactWarning = !0, Object.defineProperty(c, "key", {
3151
- get: k,
3152
- configurable: !0
3153
- });
3154
- }
3155
- }
3156
- function Lr(c, m) {
3157
- {
3158
- var k = function() {
3159
- Vt || (Vt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
3160
- };
3161
- k.isReactWarning = !0, Object.defineProperty(c, "ref", {
3162
- get: k,
3163
- configurable: !0
3164
- });
3165
- }
3166
- }
3167
- var Mr = function(c, m, k, x, P, H, A) {
3168
- var M = {
3169
- // This tag allows us to uniquely identify this as a React Element
3170
- $$typeof: e,
3171
- // Built-in properties that belong on the element
3172
- type: c,
3173
- key: m,
3174
- ref: k,
3175
- props: A,
3176
- // Record the component responsible for creating this element.
3177
- _owner: H
3178
- };
3179
- return M._store = {}, Object.defineProperty(M._store, "validated", {
3180
- configurable: !1,
3181
- enumerable: !1,
3182
- writable: !0,
3183
- value: !1
3184
- }), Object.defineProperty(M, "_self", {
3185
- configurable: !1,
3186
- enumerable: !1,
3187
- writable: !1,
3188
- value: x
3189
- }), Object.defineProperty(M, "_source", {
3190
- configurable: !1,
3191
- enumerable: !1,
3192
- writable: !1,
3193
- value: P
3194
- }), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
3195
- };
3196
- function Ar(c, m, k, x, P) {
3197
- {
3198
- var H, A = {}, M = null, re = null;
3199
- k !== void 0 && (Xt(k), M = "" + k), _r(m) && (Xt(m.key), M = "" + m.key), xr(m) && (re = m.ref, Dr(m, P));
3200
- for (H in m)
3201
- nt.call(m, H) && !Or.hasOwnProperty(H) && (A[H] = m[H]);
3202
- if (c && c.defaultProps) {
3203
- var q = c.defaultProps;
3204
- for (H in q)
3205
- A[H] === void 0 && (A[H] = q[H]);
3206
- }
3207
- if (M || re) {
3208
- var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
3209
- M && Rr(A, K), re && Lr(A, K);
3210
- }
3211
- return Mr(c, M, re, P, x, Ke.current, A);
3212
- }
3213
- }
3214
- var gt = T.ReactCurrentOwner, en = T.ReactDebugCurrentFrame;
3215
- function Ue(c) {
3216
- if (c) {
3217
- var m = c._owner, k = tt(c.type, c._source, m ? m.type : null);
3218
- en.setExtraStackFrame(k);
3219
- } else
3220
- en.setExtraStackFrame(null);
3221
- }
3222
- var bt;
3223
- bt = !1;
3224
- function $t(c) {
3225
- return typeof c == "object" && c !== null && c.$$typeof === e;
3226
- }
3227
- function tn() {
3228
- {
3229
- if (gt.current) {
3230
- var c = C(gt.current.type);
3231
- if (c)
3232
- return `
3233
-
3234
- Check the render method of \`` + c + "`.";
3235
- }
3236
- return "";
3237
- }
3238
- }
3239
- function Ir(c) {
3240
- {
3241
- if (c !== void 0) {
3242
- var m = c.fileName.replace(/^.*[\\\/]/, ""), k = c.lineNumber;
3243
- return `
3244
-
3245
- Check your code at ` + m + ":" + k + ".";
3246
- }
3247
- return "";
3248
- }
3249
- }
3250
- var nn = {};
3251
- function Nr(c) {
3252
- {
3253
- var m = tn();
3254
- if (!m) {
3255
- var k = typeof c == "string" ? c : c.displayName || c.name;
3256
- k && (m = `
3257
-
3258
- Check the top-level render call using <` + k + ">.");
3259
- }
3260
- return m;
3261
- }
3262
- }
3263
- function rn(c, m) {
3264
- {
3265
- if (!c._store || c._store.validated || c.key != null)
3266
- return;
3267
- c._store.validated = !0;
3268
- var k = Nr(m);
3269
- if (nn[k])
3270
- return;
3271
- nn[k] = !0;
3272
- var x = "";
3273
- c && c._owner && c._owner !== gt.current && (x = " It was passed a child from " + C(c._owner.type) + "."), Ue(c), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, x), Ue(null);
3274
- }
3275
- }
3276
- function an(c, m) {
3277
- {
3278
- if (typeof c != "object")
3279
- return;
3280
- if (mt(c))
3281
- for (var k = 0; k < c.length; k++) {
3282
- var x = c[k];
3283
- $t(x) && rn(x, m);
3284
- }
3285
- else if ($t(c))
3286
- c._store && (c._store.validated = !0);
3287
- else if (c) {
3288
- var P = b(c);
3289
- if (typeof P == "function" && P !== c.entries)
3290
- for (var H = P.call(c), A; !(A = H.next()).done; )
3291
- $t(A.value) && rn(A.value, m);
3292
- }
3293
- }
3294
- }
3295
- function Ur(c) {
3296
- {
3297
- var m = c.type;
3298
- if (m == null || typeof m == "string")
3299
- return;
3300
- var k;
3301
- if (typeof m == "function")
3302
- k = m.propTypes;
3303
- else if (typeof m == "object" && (m.$$typeof === o || // Note: Memo only checks outer props here.
3304
- // Inner props are checked in the reconciler.
3305
- m.$$typeof === f))
3306
- k = m.propTypes;
3307
- else
3308
- return;
3309
- if (k) {
3310
- var x = C(m);
3311
- Er(k, c.props, "prop", x, c);
3312
- } else if (m.PropTypes !== void 0 && !bt) {
3313
- bt = !0;
3314
- var P = C(m);
3315
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
3316
- }
3317
- typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3318
- }
3319
- }
3320
- function Pr(c) {
3321
- {
3322
- for (var m = Object.keys(c.props), k = 0; k < m.length; k++) {
3323
- var x = m[k];
3324
- if (x !== "children" && x !== "key") {
3325
- Ue(c), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), Ue(null);
3326
- break;
3327
- }
3328
- }
3329
- c.ref !== null && (Ue(c), L("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
3330
- }
3331
- }
3332
- function sn(c, m, k, x, P, H) {
3333
- {
3334
- var A = Y(c);
3335
- if (!A) {
3336
- var M = "";
3337
- (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
3338
- var re = Ir(P);
3339
- re ? M += re : M += tn();
3340
- var q;
3341
- c === null ? q = "null" : mt(c) ? q = "array" : c !== void 0 && c.$$typeof === e ? (q = "<" + (C(c.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : q = typeof c, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, M);
3342
- }
3343
- var K = Ar(c, m, k, P, H);
3344
- if (K == null)
3345
- return K;
3346
- if (A) {
3347
- var ue = m.children;
3348
- if (ue !== void 0)
3349
- if (x)
3350
- if (mt(ue)) {
3351
- for (var Pe = 0; Pe < ue.length; Pe++)
3352
- an(ue[Pe], c);
3353
- Object.freeze && Object.freeze(ue);
3354
- } else
3355
- L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3356
- else
3357
- an(ue, c);
3358
- }
3359
- return c === r ? Pr(K) : Ur(K), K;
3360
- }
3361
- }
3362
- function Yr(c, m, k) {
3363
- return sn(c, m, k, !0);
3364
- }
3365
- function Hr(c, m, k) {
3366
- return sn(c, m, k, !1);
3367
- }
3368
- var jr = Hr, Wr = Yr;
3369
- Ze.Fragment = r, Ze.jsx = jr, Ze.jsxs = Wr;
3370
- }()), Ze;
3371
- }
3372
- process.env.NODE_ENV === "production" ? Pt.exports = Gi() : Pt.exports = Zi();
3373
- var Ji = Pt.exports;
3374
- const Xi = (t) => t.toLowerCase().split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(""), br = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), Qi = (t, e, n = {}) => {
3375
- if (t instanceof Element) {
3376
- const r = Vi(t.classList, e, n);
3377
- r !== "" && (t.className = r), Object.keys(e).forEach((a) => {
3378
- if (!(a === "children" || a === "style" || a === "ref" || a === "class" || a === "className" || a === "forwardedRef"))
3379
- if (a.indexOf("on") === 0 && a[2] === a[2].toUpperCase()) {
3380
- const i = a.substring(2), s = i[0].toLowerCase() + i.substring(1);
3381
- $r(s) || ts(t, s, e[a]);
3382
- } else
3383
- t[a] = e[a], typeof e[a] === "string" && t.setAttribute(br(a), e[a]);
3384
- });
3385
- }
3386
- }, Vi = (t, e, n) => {
3387
- const r = e.className || e.class, a = n.className || n.class, i = Ct(t), s = Ct(r ? r.split(" ") : []), l = Ct(a ? a.split(" ") : []), o = [];
3388
- return i.forEach((u) => {
3389
- s.has(u) ? (o.push(u), s.delete(u)) : l.has(u) || o.push(u);
3390
- }), s.forEach((u) => o.push(u)), o.join(" ");
3391
- }, es = (t) => {
3392
- switch (t) {
3393
- case "doubleclick":
3394
- return "dblclick";
3395
- }
3396
- return t;
3397
- };
3398
- /**
3399
- * Checks if an event is supported in the current execution environment.
3400
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
3401
- */
3402
- const $r = (t) => {
3403
- if (typeof document > "u")
3404
- return !0;
3405
- {
3406
- const e = "on" + es(t);
3407
- let n = e in document;
3408
- if (!n) {
3409
- const r = document.createElement("div");
3410
- r.setAttribute(e, "return;"), n = typeof r[e] == "function";
3411
- }
3412
- return n;
3413
- }
3414
- }, ts = (t, e, n) => {
3415
- const r = t.__events || (t.__events = {}), a = r[e];
3416
- a && t.removeEventListener(e, a), t.addEventListener(
3417
- e,
3418
- r[e] = function(s) {
3419
- n && n.call(this, s);
3420
- }
3421
- );
3422
- }, Ct = (t) => {
3423
- const e = /* @__PURE__ */ new Map();
3424
- return t.forEach((n) => e.set(n, n)), e;
3425
- }, ns = (t, e) => {
3426
- typeof t == "function" ? t(e) : t != null && (t.current = e);
3427
- }, rs = (...t) => (e) => {
3428
- t.forEach((n) => {
3429
- ns(n, e);
3430
- });
3431
- }, as = (t, e) => {
3432
- const n = (r, a) => /* @__PURE__ */ Ji.jsx(t, { ...r, forwardedRef: a });
3433
- return n.displayName = e, ht.forwardRef(n);
3434
- }, g = (t, e, n, r) => {
3435
- r !== void 0 && r();
3436
- const a = Xi(t), i = class extends ht.Component {
3437
- constructor(l) {
3438
- super(l);
3439
- wt(this, "componentEl");
3440
- wt(this, "setComponentElRef", (l) => {
3441
- this.componentEl = l;
3442
- });
3443
- }
3444
- componentDidMount() {
3445
- this.componentDidUpdate(this.props);
3446
- }
3447
- componentDidUpdate(l) {
3448
- Qi(this.componentEl, this.props, l);
3449
- }
3450
- render() {
3451
- const { children: l, forwardedRef: o, style: u, className: d, ref: f, ...h } = this.props;
3452
- let y = Object.keys(h).reduce((v, b) => {
3453
- const T = h[b];
3454
- if (b.indexOf("on") === 0 && b[2] === b[2].toUpperCase()) {
3455
- const L = b.substring(2).toLowerCase();
3456
- typeof document < "u" && $r(L) && (v[b] = T);
3457
- } else {
3458
- const L = typeof T;
3459
- (L === "string" || L === "boolean" || L === "number") && (v[br(b)] = T);
3460
- }
3461
- return v;
3462
- }, {});
3463
- n && (y = n(this.props, y));
3464
- const p = {
3465
- ...y,
3466
- ref: rs(o, this.setComponentElRef),
3467
- style: u
3468
- };
3469
- return Br(t, p, l);
3470
- }
3471
- static get displayName() {
3472
- return a;
3473
- }
3474
- };
3475
- return e && (i.contextType = e), as(i, a);
3476
- };
3477
- Ki();
3478
- const ds = /* @__PURE__ */ g("add-circle-icon"), fs = /* @__PURE__ */ g("archive-icon"), hs = /* @__PURE__ */ g("arrow-icon"), ys = /* @__PURE__ */ g("bold-icon"), ps = /* @__PURE__ */ g("button-component"), ms = /* @__PURE__ */ g("calendar-cancel-icon"), vs = /* @__PURE__ */ g("calendar-check-icon"), gs = /* @__PURE__ */ g("calendar-icon"), bs = /* @__PURE__ */ g("calendar-info-icon"), $s = /* @__PURE__ */ g("calendar-patterns-icon"), ws = /* @__PURE__ */ g("checkmark-circle-icon"), ks = /* @__PURE__ */ g("chevron-icon"), Es = /* @__PURE__ */ g("close-icon"), Ts = /* @__PURE__ */ g("document-refresh-icon"), Ss = /* @__PURE__ */ g("flow-icon"), Cs = /* @__PURE__ */ g("folder-icon"), Os = /* @__PURE__ */ g("forward-icon"), xs = /* @__PURE__ */ g("globe-icon"), _s = /* @__PURE__ */ g("google-logo-icon"), Ds = /* @__PURE__ */ g("inbox-icon"), Rs = /* @__PURE__ */ g("info-icon"), Ls = /* @__PURE__ */ g("italic-icon"), Ms = /* @__PURE__ */ g("loading-icon"), As = /* @__PURE__ */ g("location-icon"), Is = /* @__PURE__ */ g("location-off-icon"), Ns = /* @__PURE__ */ g("microsoft-logo-icon"), Us = /* @__PURE__ */ g("multi-select-dropdown"), Ps = /* @__PURE__ */ g("nylas-additional-participants"), Ys = /* @__PURE__ */ g("nylas-availability-picker"), Hs = /* @__PURE__ */ g("nylas-booked-event-card"), js = /* @__PURE__ */ g("nylas-booking-calendar-picker"), Ws = /* @__PURE__ */ g("nylas-booking-form"), Fs = /* @__PURE__ */ g("nylas-buffer-time"), zs = /* @__PURE__ */ g("nylas-calendar-picker"), Bs = /* @__PURE__ */ g("nylas-cancel-booking-form"), qs = /* @__PURE__ */ g("nylas-cancelled-event-card"), Ks = /* @__PURE__ */ g("nylas-composer"), Gs = /* @__PURE__ */ g("nylas-custom-booking-flow"), Zs = /* @__PURE__ */ g("nylas-date-picker"), Js = /* @__PURE__ */ g("nylas-editor-tabs"), Xs = /* @__PURE__ */ g("nylas-event-description"), Qs = /* @__PURE__ */ g("nylas-event-duration"), Vs = /* @__PURE__ */ g("nylas-event-info"), eo = /* @__PURE__ */ g("nylas-event-limits"), to = /* @__PURE__ */ g("nylas-event-title"), no = /* @__PURE__ */ g("nylas-form-card"), ro = /* @__PURE__ */ g("nylas-if-state"), ao = /* @__PURE__ */ g("nylas-limit-future-bookings"), io = /* @__PURE__ */ g("nylas-list-configurations"), so = /* @__PURE__ */ g("nylas-list-folders"), oo = /* @__PURE__ */ g("nylas-list-threads"), lo = /* @__PURE__ */ g("nylas-locale-switch"), co = /* @__PURE__ */ g("nylas-location-component"), uo = /* @__PURE__ */ g("nylas-login"), fo = /* @__PURE__ */ g("nylas-logo"), ho = /* @__PURE__ */ g("nylas-mailbox"), yo = /* @__PURE__ */ g("nylas-mailbox-pagination"), po = /* @__PURE__ */ g("nylas-mailbox-toolbar-button"), mo = /* @__PURE__ */ g("nylas-min-cancellation-notice"), vo = /* @__PURE__ */ g("nylas-notification"), go = /* @__PURE__ */ g("nylas-provider"), bo = /* @__PURE__ */ g("nylas-scheduler-editor"), $o = /* @__PURE__ */ g("nylas-scheduling"), wo = /* @__PURE__ */ g("nylas-selected-event-card"), ko = /* @__PURE__ */ g("nylas-summarize-message-button"), Eo = /* @__PURE__ */ g("nylas-threads-refresh"), To = /* @__PURE__ */ g("nylas-threads-search"), So = /* @__PURE__ */ g("nylas-time-window-picker"), Co = /* @__PURE__ */ g("nylas-timeslot-picker"), Oo = /* @__PURE__ */ g("nylas-view-email"), xo = /* @__PURE__ */ g("nylas-view-thread"), _o = /* @__PURE__ */ g("people-icon"), Do = /* @__PURE__ */ g("play-icon"), Ro = /* @__PURE__ */ g("refresh-icon"), Lo = /* @__PURE__ */ g("reply-all-icon"), Mo = /* @__PURE__ */ g("reply-icon"), Ao = /* @__PURE__ */ g("search-icon"), Io = /* @__PURE__ */ g("select-dropdown"), No = /* @__PURE__ */ g("sent-icon"), Uo = /* @__PURE__ */ g("spam-icon"), Po = /* @__PURE__ */ g("star-icon"), Yo = /* @__PURE__ */ g("stop-icon"), Ho = /* @__PURE__ */ g("time-period-selector"), jo = /* @__PURE__ */ g("tooltip-component"), Wo = /* @__PURE__ */ g("translate-icon"), Fo = /* @__PURE__ */ g("trash-icon"), zo = /* @__PURE__ */ g("underline-icon"), Bo = /* @__PURE__ */ g("warning-icon");
3479
- function qo() {
3480
- const [, t] = qr((a) => a + 1, 0), e = kt(), n = kt(null), r = kt(null);
3481
- return Kr(() => {
3482
- e.current && (n.current || e.current.getNylasMailboxConnector().then((a) => {
3483
- a && (n.current = a, r.current = n.current.nylasAuthStore, a.nylasAuthStore.on("set", t), t());
3484
- }));
3485
- }, []), [e, r.current];
3486
- }
3487
- export {
3488
- ao as $,
3489
- ds as A,
3490
- ys as B,
3491
- ms as C,
3492
- Ts as D,
3493
- js as E,
3494
- Ss as F,
3495
- xs as G,
3496
- Ws as H,
3497
- Ds as I,
3498
- Fs as J,
3499
- zs as K,
3500
- Ms as L,
3501
- Ns as M,
3502
- cs as N,
3503
- Bs as O,
3504
- qs as P,
3505
- Ks as Q,
3506
- Gs as R,
3507
- Zs as S,
3508
- Js as T,
3509
- Xs as U,
3510
- Qs as V,
3511
- Vs as W,
3512
- eo as X,
3513
- to as Y,
3514
- no as Z,
3515
- ro as _,
3516
- us as a,
3517
- io as a0,
3518
- so as a1,
3519
- oo as a2,
3520
- lo as a3,
3521
- co as a4,
3522
- uo as a5,
3523
- fo as a6,
3524
- ho as a7,
3525
- yo as a8,
3526
- po as a9,
3527
- Wo as aA,
3528
- Fo as aB,
3529
- zo as aC,
3530
- Bo as aD,
3531
- mo as aa,
3532
- vo as ab,
3533
- go as ac,
3534
- bo as ad,
3535
- $o as ae,
3536
- wo as af,
3537
- ko as ag,
3538
- Eo as ah,
3539
- To as ai,
3540
- So as aj,
3541
- Co as ak,
3542
- Oo as al,
3543
- xo as am,
3544
- _o as an,
3545
- Do as ao,
3546
- Ro as ap,
3547
- Lo as aq,
3548
- Mo as ar,
3549
- Ao as as,
3550
- Io as at,
3551
- No as au,
3552
- Uo as av,
3553
- Po as aw,
3554
- Yo as ax,
3555
- Ho as ay,
3556
- jo as az,
3557
- fs as b,
3558
- za as c,
3559
- Ki as d,
3560
- hs as e,
3561
- ps as f,
3562
- vs as g,
3563
- gs as h,
3564
- bs as i,
3565
- $s as j,
3566
- ws as k,
3567
- ks as l,
3568
- Es as m,
3569
- Cs as n,
3570
- Os as o,
3571
- _s as p,
3572
- Rs as q,
3573
- Ls as r,
3574
- ls as s,
3575
- As as t,
3576
- qo as u,
3577
- Is as v,
3578
- Us as w,
3579
- Ps as x,
3580
- Ys as y,
3581
- Hs as z
3582
- };