@nylas/react 1.1.0-canary.12 → 1.1.0-canary.13

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