@nylas/web-elements 1.3.2 → 1.3.3

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 (210) hide show
  1. package/dist/cdn/checkbox-component/checkbox-component.es.js +48 -38
  2. package/dist/cdn/multi-select-dropdown/multi-select-dropdown.es.js +554 -535
  3. package/dist/cdn/nylas-additional-participants/nylas-additional-participants.es.js +2 -2
  4. package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +25 -9
  5. package/dist/cdn/nylas-booking-form-config/nylas-booking-form-config.es.js +2182 -2171
  6. package/dist/cdn/nylas-buffer-time/nylas-buffer-time.es.js +13 -14
  7. package/dist/cdn/nylas-calendar-picker/nylas-calendar-picker.es.js +571 -552
  8. package/dist/cdn/nylas-connected-calendars/nylas-connected-calendars.es.js +26 -7
  9. package/dist/cdn/nylas-customize-booking-settings/nylas-customize-booking-settings.es.js +12 -2
  10. package/dist/cdn/nylas-date-component/nylas-date-component.es.js +13 -7
  11. package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +3550 -3473
  12. package/dist/cdn/nylas-event-location/nylas-event-location.es.js +633 -621
  13. package/dist/cdn/nylas-limit-future-bookings/nylas-limit-future-bookings.es.js +25 -2
  14. package/dist/cdn/nylas-min-booking-notice/nylas-min-booking-notice.es.js +25 -2
  15. package/dist/cdn/nylas-min-cancellation-notice/nylas-min-cancellation-notice.es.js +163 -140
  16. package/dist/cdn/nylas-page-styling/nylas-page-styling.es.js +5 -3
  17. package/dist/cdn/nylas-participants-custom-availability/nylas-participants-custom-availability.es.js +4 -3
  18. package/dist/cdn/nylas-provider/nylas-provider.es.js +1 -1
  19. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +173 -96
  20. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +28 -12
  21. package/dist/cdn/scheduler-store/scheduler-store.es.js +1 -1
  22. package/dist/cdn/time-period-selector/time-period-selector.es.js +25 -2
  23. package/dist/cjs/calendar-agenda-fill-icon_53.cjs.entry.js +88 -57
  24. package/dist/cjs/calendar-agenda-fill-icon_53.cjs.entry.js.map +1 -1
  25. package/dist/cjs/checkbox-component.cjs.entry.js +9 -1
  26. package/dist/cjs/checkbox-component.cjs.entry.js.map +1 -1
  27. package/dist/cjs/checkbox-component_3.cjs.entry.js +21 -8
  28. package/dist/cjs/checkbox-component_3.cjs.entry.js.map +1 -1
  29. package/dist/cjs/google-logo-icon_4.cjs.entry.js +2 -2
  30. package/dist/cjs/loader.cjs.js +1 -1
  31. package/dist/cjs/multi-select-dropdown.cjs.entry.js +19 -1
  32. package/dist/cjs/multi-select-dropdown.cjs.entry.js.map +1 -1
  33. package/dist/cjs/nylas-additional-participants.cjs.entry.js +1 -1
  34. package/dist/cjs/nylas-additional-participants.cjs.entry.js.map +1 -1
  35. package/dist/cjs/nylas-booking-form-config.cjs.entry.js +34 -27
  36. package/dist/cjs/nylas-booking-form-config.cjs.entry.js.map +1 -1
  37. package/dist/cjs/nylas-buffer-time.cjs.entry.js +13 -12
  38. package/dist/cjs/nylas-buffer-time.cjs.entry.js.map +1 -1
  39. package/dist/cjs/nylas-connected-calendars.cjs.entry.js +2 -2
  40. package/dist/cjs/nylas-connected-calendars.cjs.entry.js.map +1 -1
  41. package/dist/cjs/nylas-date-component.cjs.entry.js +12 -7
  42. package/dist/cjs/nylas-date-component.cjs.entry.js.map +1 -1
  43. package/dist/cjs/nylas-editor-tabs.cjs.entry.js +2 -2
  44. package/dist/cjs/nylas-event-location.cjs.entry.js +32 -11
  45. package/dist/cjs/nylas-event-location.cjs.entry.js.map +1 -1
  46. package/dist/cjs/nylas-page-styling.cjs.entry.js +3 -2
  47. package/dist/cjs/nylas-page-styling.cjs.entry.js.map +1 -1
  48. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js +3 -2
  49. package/dist/cjs/nylas-participants-custom-availability.cjs.entry.js.map +1 -1
  50. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  51. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  52. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  53. package/dist/cjs/{scheduler-store-37a0e152.js → scheduler-store-2cd220d1.js} +2 -2
  54. package/dist/cjs/{scheduler-store-37a0e152.js.map → scheduler-store-2cd220d1.js.map} +1 -1
  55. package/dist/cjs/{scheduler-store-373adf03.js → scheduler-store-70af2279.js} +2 -2
  56. package/dist/cjs/{scheduler-store-373adf03.js.map → scheduler-store-70af2279.js.map} +1 -1
  57. package/dist/cjs/time-period-selector.cjs.entry.js +21 -1
  58. package/dist/cjs/time-period-selector.cjs.entry.js.map +1 -1
  59. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +12 -1
  60. package/dist/collection/components/design-system/checkbox-component/checkbox-component.js.map +1 -1
  61. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +22 -1
  62. package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js.map +1 -1
  63. package/dist/collection/components/design-system/nylas-date-component/nylas-date-component.js +14 -8
  64. package/dist/collection/components/design-system/nylas-date-component/nylas-date-component.js.map +1 -1
  65. package/dist/collection/components/design-system/nylas-date-component/test/nylas-date-component.spec.js +39 -0
  66. package/dist/collection/components/design-system/nylas-date-component/test/nylas-date-component.spec.js.map +1 -0
  67. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js +28 -1
  68. package/dist/collection/components/design-system/time-period-selector/time-period-selector.js.map +1 -1
  69. package/dist/collection/components/scheduler/nylas-date-picker/test/nylas-date-picker.spec.js +3 -1
  70. package/dist/collection/components/scheduler/nylas-date-picker/test/nylas-date-picker.spec.js.map +1 -1
  71. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js +1 -1
  72. package/dist/collection/components/scheduler-editor/nylas-additional-participants/nylas-additional-participants.js.map +1 -1
  73. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js +36 -27
  74. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.js.map +1 -1
  75. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/test/nylas-booking-form-config.spec.js +23 -0
  76. package/dist/collection/components/scheduler-editor/nylas-booking-form-config/test/nylas-booking-form-config.spec.js.map +1 -1
  77. package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js +13 -12
  78. package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js.map +1 -1
  79. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/test/nylas-calendar-picker.spec.js +13 -0
  80. package/dist/collection/components/scheduler-editor/nylas-calendar-picker/test/nylas-calendar-picker.spec.js.map +1 -1
  81. package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js +2 -2
  82. package/dist/collection/components/scheduler-editor/nylas-connected-calendars/nylas-connected-calendars.js.map +1 -1
  83. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js +35 -10
  84. package/dist/collection/components/scheduler-editor/nylas-event-location/nylas-event-location.js.map +1 -1
  85. package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js +4 -1
  86. package/dist/collection/components/scheduler-editor/nylas-page-styling/nylas-page-styling.js.map +1 -1
  87. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js +3 -2
  88. package/dist/collection/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.js.map +1 -1
  89. package/dist/components/checkbox-component2.js +12 -2
  90. package/dist/components/checkbox-component2.js.map +1 -1
  91. package/dist/components/multi-select-dropdown2.js +22 -2
  92. package/dist/components/multi-select-dropdown2.js.map +1 -1
  93. package/dist/components/nylas-additional-participants2.js +1 -1
  94. package/dist/components/nylas-additional-participants2.js.map +1 -1
  95. package/dist/components/nylas-booking-form-config2.js +35 -27
  96. package/dist/components/nylas-booking-form-config2.js.map +1 -1
  97. package/dist/components/nylas-buffer-time2.js +13 -12
  98. package/dist/components/nylas-buffer-time2.js.map +1 -1
  99. package/dist/components/nylas-connected-calendars2.js +2 -2
  100. package/dist/components/nylas-connected-calendars2.js.map +1 -1
  101. package/dist/components/nylas-date-component2.js +14 -8
  102. package/dist/components/nylas-date-component2.js.map +1 -1
  103. package/dist/components/nylas-editor-tabs2.js +2 -2
  104. package/dist/components/nylas-event-location2.js +35 -12
  105. package/dist/components/nylas-event-location2.js.map +1 -1
  106. package/dist/components/nylas-page-styling2.js +5 -3
  107. package/dist/components/nylas-page-styling2.js.map +1 -1
  108. package/dist/components/nylas-participants-custom-availability2.js +3 -2
  109. package/dist/components/nylas-participants-custom-availability2.js.map +1 -1
  110. package/dist/components/nylas-scheduling.js +2 -2
  111. package/dist/components/scheduler-store.js +1 -1
  112. package/dist/components/time-period-selector2.js +26 -2
  113. package/dist/components/time-period-selector2.js.map +1 -1
  114. package/dist/esm/calendar-agenda-fill-icon_53.entry.js +88 -57
  115. package/dist/esm/calendar-agenda-fill-icon_53.entry.js.map +1 -1
  116. package/dist/esm/checkbox-component.entry.js +9 -1
  117. package/dist/esm/checkbox-component.entry.js.map +1 -1
  118. package/dist/esm/checkbox-component_3.entry.js +21 -8
  119. package/dist/esm/checkbox-component_3.entry.js.map +1 -1
  120. package/dist/esm/google-logo-icon_4.entry.js +2 -2
  121. package/dist/esm/loader.js +1 -1
  122. package/dist/esm/multi-select-dropdown.entry.js +19 -1
  123. package/dist/esm/multi-select-dropdown.entry.js.map +1 -1
  124. package/dist/esm/nylas-additional-participants.entry.js +1 -1
  125. package/dist/esm/nylas-additional-participants.entry.js.map +1 -1
  126. package/dist/esm/nylas-booking-form-config.entry.js +34 -27
  127. package/dist/esm/nylas-booking-form-config.entry.js.map +1 -1
  128. package/dist/esm/nylas-buffer-time.entry.js +13 -12
  129. package/dist/esm/nylas-buffer-time.entry.js.map +1 -1
  130. package/dist/esm/nylas-connected-calendars.entry.js +2 -2
  131. package/dist/esm/nylas-connected-calendars.entry.js.map +1 -1
  132. package/dist/esm/nylas-date-component.entry.js +12 -7
  133. package/dist/esm/nylas-date-component.entry.js.map +1 -1
  134. package/dist/esm/nylas-editor-tabs.entry.js +2 -2
  135. package/dist/esm/nylas-event-location.entry.js +32 -11
  136. package/dist/esm/nylas-event-location.entry.js.map +1 -1
  137. package/dist/esm/nylas-page-styling.entry.js +3 -2
  138. package/dist/esm/nylas-page-styling.entry.js.map +1 -1
  139. package/dist/esm/nylas-participants-custom-availability.entry.js +3 -2
  140. package/dist/esm/nylas-participants-custom-availability.entry.js.map +1 -1
  141. package/dist/esm/nylas-provider.entry.js +1 -1
  142. package/dist/esm/nylas-scheduling.entry.js +3 -3
  143. package/dist/esm/nylas-web-elements.js +1 -1
  144. package/dist/esm/{scheduler-store-20151a77.js → scheduler-store-3acf4d70.js} +2 -2
  145. package/dist/esm/{scheduler-store-20151a77.js.map → scheduler-store-3acf4d70.js.map} +1 -1
  146. package/dist/esm/{scheduler-store-b6d12f40.js → scheduler-store-79dc16cc.js} +2 -2
  147. package/dist/esm/{scheduler-store-b6d12f40.js.map → scheduler-store-79dc16cc.js.map} +1 -1
  148. package/dist/esm/time-period-selector.entry.js +21 -1
  149. package/dist/esm/time-period-selector.entry.js.map +1 -1
  150. package/dist/nylas-web-elements/checkbox-component.entry.js +9 -1
  151. package/dist/nylas-web-elements/checkbox-component.entry.js.map +1 -1
  152. package/dist/nylas-web-elements/multi-select-dropdown.entry.js +19 -1
  153. package/dist/nylas-web-elements/multi-select-dropdown.entry.js.map +1 -1
  154. package/dist/nylas-web-elements/nylas-additional-participants.entry.js +1 -1
  155. package/dist/nylas-web-elements/nylas-additional-participants.entry.js.map +1 -1
  156. package/dist/nylas-web-elements/nylas-booking-form-config.entry.js +34 -27
  157. package/dist/nylas-web-elements/nylas-booking-form-config.entry.js.map +1 -1
  158. package/dist/nylas-web-elements/nylas-buffer-time.entry.js +13 -12
  159. package/dist/nylas-web-elements/nylas-buffer-time.entry.js.map +1 -1
  160. package/dist/nylas-web-elements/nylas-connected-calendars.entry.js +2 -2
  161. package/dist/nylas-web-elements/nylas-connected-calendars.entry.js.map +1 -1
  162. package/dist/nylas-web-elements/nylas-date-component.entry.js +12 -7
  163. package/dist/nylas-web-elements/nylas-date-component.entry.js.map +1 -1
  164. package/dist/nylas-web-elements/nylas-editor-tabs.entry.js +2 -2
  165. package/dist/nylas-web-elements/nylas-event-location.entry.js +32 -11
  166. package/dist/nylas-web-elements/nylas-event-location.entry.js.map +1 -1
  167. package/dist/nylas-web-elements/nylas-page-styling.entry.js +3 -2
  168. package/dist/nylas-web-elements/nylas-page-styling.entry.js.map +1 -1
  169. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js +3 -2
  170. package/dist/nylas-web-elements/nylas-participants-custom-availability.entry.js.map +1 -1
  171. package/dist/nylas-web-elements/nylas-provider.entry.js +1 -1
  172. package/dist/nylas-web-elements/nylas-scheduling.entry.js +3 -3
  173. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  174. package/dist/nylas-web-elements/p-040b8553.entry.js +2 -0
  175. package/dist/nylas-web-elements/p-040b8553.entry.js.map +1 -0
  176. package/dist/nylas-web-elements/p-13a83f9a.entry.js +8 -0
  177. package/dist/nylas-web-elements/p-13a83f9a.entry.js.map +1 -0
  178. package/dist/nylas-web-elements/p-1a9fc29a.entry.js +2 -0
  179. package/dist/nylas-web-elements/p-1a9fc29a.entry.js.map +1 -0
  180. package/dist/nylas-web-elements/{p-e543a827.entry.js → p-1dedce7c.entry.js} +2 -2
  181. package/dist/nylas-web-elements/{p-284c14bb.js → p-53f7b360.js} +2 -2
  182. package/dist/nylas-web-elements/p-7f100474.entry.js +2 -0
  183. package/dist/nylas-web-elements/p-7f100474.entry.js.map +1 -0
  184. package/dist/nylas-web-elements/{p-70d36207.entry.js → p-84e69241.entry.js} +2 -2
  185. package/dist/nylas-web-elements/{p-36c73819.entry.js → p-ad7f8831.entry.js} +2 -2
  186. package/dist/nylas-web-elements/{scheduler-store-b6d12f40.js → scheduler-store-79dc16cc.js} +2 -2
  187. package/dist/nylas-web-elements/{scheduler-store-b6d12f40.js.map → scheduler-store-79dc16cc.js.map} +1 -1
  188. package/dist/nylas-web-elements/time-period-selector.entry.js +21 -1
  189. package/dist/nylas-web-elements/time-period-selector.entry.js.map +1 -1
  190. package/dist/types/components/design-system/checkbox-component/checkbox-component.d.ts +1 -0
  191. package/dist/types/components/design-system/multi-select-dropdown/multi-select-dropdown.d.ts +2 -0
  192. package/dist/types/components/design-system/nylas-date-component/nylas-date-component.d.ts +1 -0
  193. package/dist/types/components/design-system/time-period-selector/time-period-selector.d.ts +3 -0
  194. package/dist/types/components/scheduler-editor/nylas-booking-form-config/nylas-booking-form-config.d.ts +2 -0
  195. package/dist/types/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.d.ts +2 -0
  196. package/dist/types/components/scheduler-editor/nylas-event-location/nylas-event-location.d.ts +3 -0
  197. package/dist/types/components/scheduler-editor/nylas-participants-custom-availability/nylas-participants-custom-availability.d.ts +2 -2
  198. package/package.json +1 -1
  199. package/dist/nylas-web-elements/p-2fa604d7.entry.js +0 -2
  200. package/dist/nylas-web-elements/p-2fa604d7.entry.js.map +0 -1
  201. package/dist/nylas-web-elements/p-52b9c0cb.entry.js +0 -2
  202. package/dist/nylas-web-elements/p-52b9c0cb.entry.js.map +0 -1
  203. package/dist/nylas-web-elements/p-9db69aed.entry.js +0 -2
  204. package/dist/nylas-web-elements/p-9db69aed.entry.js.map +0 -1
  205. package/dist/nylas-web-elements/p-a1a75dc7.entry.js +0 -8
  206. package/dist/nylas-web-elements/p-a1a75dc7.entry.js.map +0 -1
  207. /package/dist/nylas-web-elements/{p-e543a827.entry.js.map → p-1dedce7c.entry.js.map} +0 -0
  208. /package/dist/nylas-web-elements/{p-284c14bb.js.map → p-53f7b360.js.map} +0 -0
  209. /package/dist/nylas-web-elements/{p-70d36207.entry.js.map → p-84e69241.entry.js.map} +0 -0
  210. /package/dist/nylas-web-elements/{p-36c73819.entry.js.map → p-ad7f8831.entry.js.map} +0 -0
@@ -95,10 +95,10 @@ function kg(n) {
95
95
  return (r = (t = (e = n.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || t === void 0 ? void 0 : t.getAttribute("content")) !== null && r !== void 0 ? r : void 0;
96
96
  }
97
97
  const U = (n, e, ...t) => {
98
- let r = null, i = null, u = null, o = !1, a = !1;
99
- const s = [], l = (f) => {
98
+ let r = null, i = null, u = null, o = !1, s = !1;
99
+ const a = [], l = (f) => {
100
100
  for (let c = 0; c < f.length; c++)
101
- r = f[c], Array.isArray(r) ? l(r) : r != null && typeof r != "boolean" && ((o = typeof n != "function" && !Wr(r)) && (r = String(r)), o && a ? s[s.length - 1].$text$ += r : s.push(o ? It(null, r) : r), a = o);
101
+ r = f[c], Array.isArray(r) ? l(r) : r != null && typeof r != "boolean" && ((o = typeof n != "function" && !Wr(r)) && (r = String(r)), o && s ? a[a.length - 1].$text$ += r : a.push(o ? It(null, r) : r), s = o);
102
102
  };
103
103
  if (l(t), e) {
104
104
  e.key && (i = e.key), e.name && (u = e.name);
@@ -108,9 +108,9 @@ const U = (n, e, ...t) => {
108
108
  }
109
109
  }
110
110
  if (typeof n == "function")
111
- return n(e === null ? {} : e, s, wg);
111
+ return n(e === null ? {} : e, a, wg);
112
112
  const d = It(n, null);
113
- return d.$attrs$ = e, s.length > 0 && (d.$children$ = s), d.$key$ = i, d.$name$ = u, d;
113
+ return d.$attrs$ = e, a.length > 0 && (d.$children$ = a), d.$key$ = i, d.$name$ = u, d;
114
114
  }, It = (n, e) => {
115
115
  const t = {
116
116
  $flags$: 0,
@@ -159,14 +159,14 @@ const U = (n, e, ...t) => {
159
159
  if (n = n.nodeType === 11 ? n : fe, u)
160
160
  if (typeof u == "string") {
161
161
  n = n.head || n;
162
- let o = xn.get(n), a;
162
+ let o = xn.get(n), s;
163
163
  if (o || xn.set(n, o = /* @__PURE__ */ new Set()), !o.has(i)) {
164
164
  {
165
- a = fe.createElement("style"), a.innerHTML = u;
166
- const s = (r = te.$nonce$) !== null && r !== void 0 ? r : kg(fe);
167
- s != null && a.setAttribute("nonce", s), n.insertBefore(a, n.querySelector("link"));
165
+ s = fe.createElement("style"), s.innerHTML = u;
166
+ const a = (r = te.$nonce$) !== null && r !== void 0 ? r : kg(fe);
167
+ a != null && s.setAttribute("nonce", a), n.insertBefore(s, n.querySelector("link"));
168
168
  }
169
- e.$flags$ & 4 && (a.innerHTML += mg), o && o.add(i);
169
+ e.$flags$ & 4 && (s.innerHTML += mg), o && o.add(i);
170
170
  }
171
171
  } else n.adoptedStyleSheets.includes(u) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, u]);
172
172
  return i;
@@ -175,26 +175,26 @@ const U = (n, e, ...t) => {
175
175
  r & 10 && (t["s-sc"] = u, t.classList.add(u + "-h"), r & 2 && t.classList.add(u + "-s")), i();
176
176
  }, Mi = (n, e) => "sc-" + (e && n.$flags$ & 32 ? n.$tagName$ + "-" + e : n.$tagName$), wn = (n, e, t, r, i, u) => {
177
177
  if (t !== r) {
178
- let o = Bn(n, e), a = e.toLowerCase();
178
+ let o = Bn(n, e), s = e.toLowerCase();
179
179
  if (e === "class") {
180
- const s = n.classList, l = En(t), d = En(r);
181
- s.remove(...l.filter((f) => f && !d.includes(f))), s.add(...d.filter((f) => f && !l.includes(f)));
180
+ const a = n.classList, l = En(t), d = En(r);
181
+ a.remove(...l.filter((f) => f && !d.includes(f))), a.add(...d.filter((f) => f && !l.includes(f)));
182
182
  } else if (e === "style") {
183
- for (const s in t)
184
- (!r || r[s] == null) && (s.includes("-") ? n.style.removeProperty(s) : n.style[s] = "");
185
- for (const s in r)
186
- (!t || r[s] !== t[s]) && (s.includes("-") ? n.style.setProperty(s, r[s]) : n.style[s] = r[s]);
183
+ for (const a in t)
184
+ (!r || r[a] == null) && (a.includes("-") ? n.style.removeProperty(a) : n.style[a] = "");
185
+ for (const a in r)
186
+ (!t || r[a] !== t[a]) && (a.includes("-") ? n.style.setProperty(a, r[a]) : n.style[a] = r[a]);
187
187
  } else if (e !== "key")
188
188
  if (e === "ref")
189
189
  r && r(n);
190
190
  else if (!n.__lookupSetter__(e) && e[0] === "o" && e[1] === "n") {
191
- if (e[2] === "-" ? e = e.slice(3) : Bn(Qt, a) ? e = a.slice(2) : e = a[2] + e.slice(3), t || r) {
192
- const s = e.endsWith(Oi);
193
- e = e.replace(Mg, ""), t && te.rel(n, e, t, s), r && te.ael(n, e, r, s);
191
+ if (e[2] === "-" ? e = e.slice(3) : Bn(Qt, s) ? e = s.slice(2) : e = s[2] + e.slice(3), t || r) {
192
+ const a = e.endsWith(Oi);
193
+ e = e.replace(Mg, ""), t && te.rel(n, e, t, a), r && te.ael(n, e, r, a);
194
194
  }
195
195
  } else {
196
- const s = Wr(r);
197
- if ((o || s && r !== null) && !i)
196
+ const a = Wr(r);
197
+ if ((o || a && r !== null) && !i)
198
198
  try {
199
199
  if (n.tagName.includes("-"))
200
200
  n[e] = r;
@@ -205,7 +205,7 @@ const U = (n, e, ...t) => {
205
205
  } catch {
206
206
  }
207
207
  let l = !1;
208
- a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, l = !0), r == null || r === !1 ? (r !== !1 || n.getAttribute(e) === "") && (l ? n.removeAttributeNS(yn, e) : n.removeAttribute(e)) : (!o || u & 4 || i) && !s && (r = r === !0 ? "" : r, l ? n.setAttributeNS(yn, e, r) : n.setAttribute(e, r));
208
+ s !== (s = s.replace(/^xlink\:?/, "")) && (e = s, l = !0), r == null || r === !1 ? (r !== !1 || n.getAttribute(e) === "") && (l ? n.removeAttributeNS(yn, e) : n.removeAttribute(e)) : (!o || u & 4 || i) && !a && (r = r === !0 ? "" : r, l ? n.setAttributeNS(yn, e, r) : n.setAttribute(e, r));
209
209
  }
210
210
  }
211
211
  }, Dg = /\s/, En = (n) => n ? n.split(Dg) : [], Oi = "Capture", Mg = new RegExp(Oi + "$"), Pi = (n, e, t, r) => {
@@ -216,7 +216,7 @@ const U = (n, e, ...t) => {
216
216
  wn(i, r, u[r], o[r], t, e.$flags$);
217
217
  }, Nt = (n, e, t, r) => {
218
218
  const i = e.$children$[t];
219
- let u = 0, o, a, s;
219
+ let u = 0, o, s, a;
220
220
  if (Ai || (zr = !0, i.$tag$ === "slot" && (Ye && r.classList.add(Ye + "-s"), i.$flags$ |= i.$children$ ? (
221
221
  // slot element has fallback content
222
222
  2
@@ -230,10 +230,10 @@ const U = (n, e, ...t) => {
230
230
  else {
231
231
  if (ue || (ue = i.$tag$ === "svg"), o = i.$elm$ = fe.createElementNS(ue ? bg : yg, i.$flags$ & 2 ? "slot-fb" : i.$tag$), ue && i.$tag$ === "foreignObject" && (ue = !1), Pi(null, i, ue), vg(Ye) && o["s-si"] !== Ye && o.classList.add(o["s-si"] = Ye), i.$children$)
232
232
  for (u = 0; u < i.$children$.length; ++u)
233
- a = Nt(n, i, u, o), a && o.appendChild(a);
233
+ s = Nt(n, i, u, o), s && o.appendChild(s);
234
234
  i.$tag$ === "svg" ? ue = !1 : o.tagName === "foreignObject" && (ue = !0);
235
235
  }
236
- return o["s-hn"] = it, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = yr, o["s-sn"] = i.$name$ || "", s = n && n.$children$ && n.$children$[t], s && s.$tag$ === i.$tag$ && n.$elm$ && ut(n.$elm$, !1)), o;
236
+ return o["s-hn"] = it, i.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = yr, o["s-sn"] = i.$name$ || "", a = n && n.$children$ && n.$children$[t], a && a.$tag$ === i.$tag$ && n.$elm$ && ut(n.$elm$, !1)), o;
237
237
  }, ut = (n, e) => {
238
238
  te.$flags$ |= 1;
239
239
  const t = n.childNodes;
@@ -243,9 +243,9 @@ const U = (n, e, ...t) => {
243
243
  }
244
244
  te.$flags$ &= -2;
245
245
  }, Ri = (n, e, t, r, i, u) => {
246
- let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
246
+ let o = n["s-cr"] && n["s-cr"].parentNode || n, s;
247
247
  for (o.shadowRoot && o.tagName === it && (o = o.shadowRoot); i <= u; ++i)
248
- r[i] && (a = Nt(null, t, i, n), a && (r[i].$elm$ = a, o.insertBefore(a, Kr(e))));
248
+ r[i] && (s = Nt(null, t, i, n), s && (r[i].$elm$ = s, o.insertBefore(s, Kr(e))));
249
249
  }, Li = (n, e, t) => {
250
250
  for (let r = e; r <= t; ++r) {
251
251
  const i = n[r];
@@ -255,7 +255,7 @@ const U = (n, e, ...t) => {
255
255
  }
256
256
  }
257
257
  }, Og = (n, e, t, r, i = !1) => {
258
- let u = 0, o = 0, a = 0, s = 0, l = e.length - 1, d = e[0], f = e[l], c = r.length - 1, h = r[0], p = r[c], m, g;
258
+ let u = 0, o = 0, s = 0, a = 0, l = e.length - 1, d = e[0], f = e[l], c = r.length - 1, h = r[0], p = r[c], m, g;
259
259
  for (; u <= l && o <= c; )
260
260
  if (d == null)
261
261
  d = e[++u];
@@ -274,18 +274,18 @@ const U = (n, e, ...t) => {
274
274
  else if (kt(f, h, i))
275
275
  (d.$tag$ === "slot" || p.$tag$ === "slot") && ut(f.$elm$.parentNode, !1), qe(f, h, i), n.insertBefore(f.$elm$, d.$elm$), f = e[--l], h = r[++o];
276
276
  else {
277
- for (a = -1, s = u; s <= l; ++s)
278
- if (e[s] && e[s].$key$ !== null && e[s].$key$ === h.$key$) {
279
- a = s;
277
+ for (s = -1, a = u; a <= l; ++a)
278
+ if (e[a] && e[a].$key$ !== null && e[a].$key$ === h.$key$) {
279
+ s = a;
280
280
  break;
281
281
  }
282
- a >= 0 ? (g = e[a], g.$tag$ !== h.$tag$ ? m = Nt(e && e[o], t, a, n) : (qe(g, h, i), e[a] = void 0, m = g.$elm$), h = r[++o]) : (m = Nt(e && e[o], t, o, n), h = r[++o]), m && Ii(d.$elm$).insertBefore(m, Kr(d.$elm$));
282
+ s >= 0 ? (g = e[s], g.$tag$ !== h.$tag$ ? m = Nt(e && e[o], t, s, n) : (qe(g, h, i), e[s] = void 0, m = g.$elm$), h = r[++o]) : (m = Nt(e && e[o], t, o, n), h = r[++o]), m && Ii(d.$elm$).insertBefore(m, Kr(d.$elm$));
283
283
  }
284
284
  u > l ? Ri(n, r[c + 1] == null ? null : r[c + 1].$elm$, t, r, o, c) : o > c && Li(e, u, l);
285
285
  }, kt = (n, e, t = !1) => n.$tag$ === e.$tag$ ? n.$tag$ === "slot" ? n.$name$ === e.$name$ : t ? !0 : n.$key$ === e.$key$ : !1, Kr = (n) => n && n["s-ol"] || n, Ii = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, qe = (n, e, t = !1) => {
286
- const r = e.$elm$ = n.$elm$, i = n.$children$, u = e.$children$, o = e.$tag$, a = e.$text$;
287
- let s;
288
- a === null ? (ue = o === "svg" ? !0 : o === "foreignObject" ? !1 : ue, o === "slot" || Pi(n, e, ue), i !== null && u !== null ? Og(r, i, e, u, t) : u !== null ? (n.$text$ !== null && (r.textContent = ""), Ri(r, null, e, u, 0, u.length - 1)) : i !== null && Li(i, 0, i.length - 1), ue && o === "svg" && (ue = !1)) : (s = r["s-cr"]) ? s.parentNode.textContent = a : n.$text$ !== a && (r.data = a);
286
+ const r = e.$elm$ = n.$elm$, i = n.$children$, u = e.$children$, o = e.$tag$, s = e.$text$;
287
+ let a;
288
+ s === null ? (ue = o === "svg" ? !0 : o === "foreignObject" ? !1 : ue, o === "slot" || Pi(n, e, ue), i !== null && u !== null ? Og(r, i, e, u, t) : u !== null ? (n.$text$ !== null && (r.textContent = ""), Ri(r, null, e, u, 0, u.length - 1)) : i !== null && Li(i, 0, i.length - 1), ue && o === "svg" && (ue = !1)) : (a = r["s-cr"]) ? a.parentNode.textContent = s : n.$text$ !== s && (r.data = s);
289
289
  }, Ni = (n) => {
290
290
  const e = n.childNodes;
291
291
  for (const t of e)
@@ -317,12 +317,12 @@ const U = (n, e, ...t) => {
317
317
  for (r = t.length - 1; r >= 0; r--)
318
318
  if (e = t[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== i["s-hn"] && !De.experimentalSlotFixes)
319
319
  if ($n(e, u)) {
320
- let o = Te.find((a) => a.$nodeToRelocate$ === e);
320
+ let o = Te.find((s) => s.$nodeToRelocate$ === e);
321
321
  Lt = !0, e["s-sn"] = e["s-sn"] || u, o ? (o.$nodeToRelocate$["s-sh"] = i["s-hn"], o.$slotRefNode$ = i) : (e["s-sh"] = i["s-hn"], Te.push({
322
322
  $slotRefNode$: i,
323
323
  $nodeToRelocate$: e
324
- })), e["s-sr"] && Te.map((a) => {
325
- $n(a.$nodeToRelocate$, e["s-sn"]) && (o = Te.find((s) => s.$nodeToRelocate$ === e), o && !a.$slotRefNode$ && (a.$slotRefNode$ = o.$slotRefNode$));
324
+ })), e["s-sr"] && Te.map((s) => {
325
+ $n(s.$nodeToRelocate$, e["s-sn"]) && (o = Te.find((a) => a.$nodeToRelocate$ === e), o && !s.$slotRefNode$ && (s.$slotRefNode$ = o.$slotRefNode$));
326
326
  });
327
327
  } else Te.some((o) => o.$nodeToRelocate$ === e) || Te.push({
328
328
  $nodeToRelocate$: e
@@ -333,12 +333,12 @@ const U = (n, e, ...t) => {
333
333
  }, $n = (n, e) => n.nodeType === 1 ? n.getAttribute("slot") === null && e === "" || n.getAttribute("slot") === e : n["s-sn"] === e ? !0 : e === "", Ui = (n) => {
334
334
  n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(Ui);
335
335
  }, Pg = (n, e, t = !1) => {
336
- var r, i, u, o, a;
337
- const s = n.$hostElement$, l = n.$cmpMeta$, d = n.$vnode$ || It(null, null), f = xg(e) ? e : U(null, null, e);
338
- if (it = s.tagName, l.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, l.$attrsToReflect$.map(([c, h]) => f.$attrs$[h] = s[c])), t && f.$attrs$)
336
+ var r, i, u, o, s;
337
+ const a = n.$hostElement$, l = n.$cmpMeta$, d = n.$vnode$ || It(null, null), f = xg(e) ? e : U(null, null, e);
338
+ if (it = a.tagName, l.$attrsToReflect$ && (f.$attrs$ = f.$attrs$ || {}, l.$attrsToReflect$.map(([c, h]) => f.$attrs$[h] = a[c])), t && f.$attrs$)
339
339
  for (const c of Object.keys(f.$attrs$))
340
- s.hasAttribute(c) && !["key", "ref", "style", "class"].includes(c) && (f.$attrs$[c] = s[c]);
341
- f.$tag$ = null, f.$flags$ |= 4, n.$vnode$ = f, f.$elm$ = d.$elm$ = s.shadowRoot || s, Ye = s["s-sc"], yr = s["s-cr"], Ai = (l.$flags$ & 1) !== 0, Lt = !1, qe(d, f, t);
340
+ a.hasAttribute(c) && !["key", "ref", "style", "class"].includes(c) && (f.$attrs$[c] = a[c]);
341
+ f.$tag$ = null, f.$flags$ |= 4, n.$vnode$ = f, f.$elm$ = d.$elm$ = a.shadowRoot || a, Ye = a["s-sc"], yr = a["s-cr"], Ai = (l.$flags$ & 1) !== 0, Lt = !1, qe(d, f, t);
342
342
  {
343
343
  if (te.$flags$ |= 1, zr) {
344
344
  Fi(f.$elm$);
@@ -374,7 +374,7 @@ const U = (n, e, ...t) => {
374
374
  }
375
375
  if (De.experimentalScopedSlotChanges && l.$flags$ & 2)
376
376
  for (const c of f.$elm$.childNodes)
377
- c["s-hn"] !== it && !c["s-sh"] && (t && c["s-ih"] == null && (c["s-ih"] = (a = c.hidden) !== null && a !== void 0 ? a : !1), c.hidden = !0);
377
+ c["s-hn"] !== it && !c["s-sh"] && (t && c["s-ih"] == null && (c["s-ih"] = (s = c.hidden) !== null && s !== void 0 ? s : !1), c.hidden = !0);
378
378
  yr = void 0;
379
379
  }, Rg = (n, e) => {
380
380
  }, _i = (n, e) => (n.$flags$ |= 16, Rg(n, n.$ancestorComponent$), np(() => Lg(n, e))), Lg = (n, e) => {
@@ -389,8 +389,8 @@ const U = (n, e, ...t) => {
389
389
  }, Fg = (n, e, t, r) => {
390
390
  try {
391
391
  bn = e, e = e.render && e.render(), n.$flags$ &= -17, n.$flags$ |= 2, (De.hasRenderFn || De.reflect) && (De.vdomRender || De.reflect) && (De.hydrateServerSide || Pg(n, e, r));
392
- } catch (s) {
393
- pt(s, n.$hostElement$);
392
+ } catch (a) {
393
+ pt(a, n.$hostElement$);
394
394
  }
395
395
  return bn = null, null;
396
396
  }, Ug = (n) => {
@@ -404,24 +404,24 @@ const U = (n, e, ...t) => {
404
404
  pt(r);
405
405
  }
406
406
  }, _g = (n, e) => gt(n).$instanceValues$.get(e), jg = (n, e, t, r) => {
407
- const i = gt(n), u = n, o = i.$instanceValues$.get(e), a = i.$flags$, s = u;
407
+ const i = gt(n), u = n, o = i.$instanceValues$.get(e), s = i.$flags$, a = u;
408
408
  t = Tg(t, r.$members$[e][0]);
409
409
  const l = Number.isNaN(o) && Number.isNaN(t);
410
410
  if (t !== o && !l) {
411
411
  i.$instanceValues$.set(e, t);
412
412
  {
413
- if (r.$watchers$ && a & 128) {
413
+ if (r.$watchers$ && s & 128) {
414
414
  const f = r.$watchers$[e];
415
415
  f && f.map((c) => {
416
416
  try {
417
- s[c](t, o, e);
417
+ a[c](t, o, e);
418
418
  } catch (h) {
419
419
  pt(h, u);
420
420
  }
421
421
  });
422
422
  }
423
- if ((a & 18) === 2) {
424
- if (s.componentShouldUpdate && s.componentShouldUpdate(t, o, e) === !1)
423
+ if ((s & 18) === 2) {
424
+ if (a.componentShouldUpdate && a.componentShouldUpdate(t, o, e) === !1)
425
425
  return;
426
426
  _i(i, !1);
427
427
  }
@@ -433,13 +433,13 @@ const U = (n, e, ...t) => {
433
433
  if (e.$members$) {
434
434
  n.watchers && (e.$watchers$ = n.watchers);
435
435
  const u = Object.entries(e.$members$);
436
- u.map(([o, [a]]) => {
437
- (a & 31 || a & 32) && Object.defineProperty(i, o, {
436
+ u.map(([o, [s]]) => {
437
+ (s & 31 || s & 32) && Object.defineProperty(i, o, {
438
438
  get() {
439
439
  return _g(this, o);
440
440
  },
441
- set(s) {
442
- jg(this, o, s, e);
441
+ set(a) {
442
+ jg(this, o, a, e);
443
443
  },
444
444
  configurable: !0,
445
445
  enumerable: !0
@@ -447,10 +447,10 @@ const U = (n, e, ...t) => {
447
447
  });
448
448
  {
449
449
  const o = /* @__PURE__ */ new Map();
450
- i.attributeChangedCallback = function(a, s, l) {
450
+ i.attributeChangedCallback = function(s, a, l) {
451
451
  te.jmp(() => {
452
452
  var d;
453
- const f = o.get(a);
453
+ const f = o.get(s);
454
454
  if (this.hasOwnProperty(f))
455
455
  l = this[f], delete this[f];
456
456
  else {
@@ -458,10 +458,10 @@ const U = (n, e, ...t) => {
458
458
  return;
459
459
  if (f == null) {
460
460
  const c = gt(this), h = c == null ? void 0 : c.$flags$;
461
- if (h && !(h & 8) && h & 128 && l !== s) {
462
- const m = this, g = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[a];
461
+ if (h && !(h & 8) && h & 128 && l !== a) {
462
+ const m = this, g = (d = e.$watchers$) === null || d === void 0 ? void 0 : d[s];
463
463
  g == null || g.forEach((w) => {
464
- m[w] != null && m[w].call(m, l, s, a);
464
+ m[w] != null && m[w].call(m, l, a, s);
465
465
  });
466
466
  }
467
467
  return;
@@ -472,12 +472,12 @@ const U = (n, e, ...t) => {
472
472
  }, n.observedAttributes = Array.from(/* @__PURE__ */ new Set([
473
473
  ...Object.keys((r = e.$watchers$) !== null && r !== void 0 ? r : {}),
474
474
  ...u.filter(
475
- ([a, s]) => s[0] & 15
475
+ ([s, a]) => a[0] & 15
476
476
  /* MEMBER_FLAGS.HasAttribute */
477
- ).map(([a, s]) => {
477
+ ).map(([s, a]) => {
478
478
  var l;
479
- const d = s[1] || a;
480
- return o.set(d, a), s[0] & 512 && ((l = e.$attrsToReflect$) === null || l === void 0 || l.push([a, d])), d;
479
+ const d = a[1] || s;
480
+ return o.set(d, s), a[0] & 512 && ((l = e.$attrsToReflect$) === null || l === void 0 || l.push([s, d])), d;
481
481
  })
482
482
  ]));
483
483
  }
@@ -488,10 +488,10 @@ const U = (n, e, ...t) => {
488
488
  if (!(e.$flags$ & 32) && (e.$flags$ |= 32, i = n.constructor, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
489
489
  let o = i.style;
490
490
  typeof o != "string" && (o = o[e.$modeName$ = $g(n)]);
491
- const a = Mi(t, e.$modeName$);
492
- if (!Ft.has(a)) {
493
- const s = Le("registerStyles", t.$tagName$);
494
- Bg(a, o, !!(t.$flags$ & 1)), s();
491
+ const s = Mi(t, e.$modeName$);
492
+ if (!Ft.has(s)) {
493
+ const a = Le("registerStyles", t.$tagName$);
494
+ Bg(s, o, !!(t.$flags$ & 1)), a();
495
495
  }
496
496
  }
497
497
  e.$ancestorComponent$, _i(e, !0);
@@ -541,8 +541,8 @@ const U = (n, e, ...t) => {
541
541
  }), n.is = t.$tagName$, Yg(n, t);
542
542
  }, ji = (n, e, t, r) => {
543
543
  t && t.map(([i, u, o]) => {
544
- const a = Kg(n, i), s = Gg(e, o), l = Vg(i);
545
- te.ael(a, u, s, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => te.rel(a, u, s, l));
544
+ const s = Kg(n, i), a = Gg(e, o), l = Vg(i);
545
+ te.ael(s, u, a, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => te.rel(s, u, a, l));
546
546
  });
547
547
  }, Gg = (n, e) => (t) => {
548
548
  try {
@@ -612,14 +612,14 @@ function Hi() {
612
612
  }
613
613
  function up(n) {
614
614
  Vr || Hi();
615
- var e, t, r, i, u, o, a = n.length;
616
- if (a % 4 > 0)
615
+ var e, t, r, i, u, o, s = n.length;
616
+ if (s % 4 > 0)
617
617
  throw new Error("Invalid string. Length must be a multiple of 4");
618
- u = n[a - 2] === "=" ? 2 : n[a - 1] === "=" ? 1 : 0, o = new ip(a * 3 / 4 - u), r = u > 0 ? a - 4 : a;
619
- var s = 0;
618
+ u = n[s - 2] === "=" ? 2 : n[s - 1] === "=" ? 1 : 0, o = new ip(s * 3 / 4 - u), r = u > 0 ? s - 4 : s;
619
+ var a = 0;
620
620
  for (e = 0, t = 0; e < r; e += 4, t += 3)
621
- i = le[n.charCodeAt(e)] << 18 | le[n.charCodeAt(e + 1)] << 12 | le[n.charCodeAt(e + 2)] << 6 | le[n.charCodeAt(e + 3)], o[s++] = i >> 16 & 255, o[s++] = i >> 8 & 255, o[s++] = i & 255;
622
- return u === 2 ? (i = le[n.charCodeAt(e)] << 2 | le[n.charCodeAt(e + 1)] >> 4, o[s++] = i & 255) : u === 1 && (i = le[n.charCodeAt(e)] << 10 | le[n.charCodeAt(e + 1)] << 4 | le[n.charCodeAt(e + 2)] >> 2, o[s++] = i >> 8 & 255, o[s++] = i & 255), o;
621
+ i = le[n.charCodeAt(e)] << 18 | le[n.charCodeAt(e + 1)] << 12 | le[n.charCodeAt(e + 2)] << 6 | le[n.charCodeAt(e + 3)], o[a++] = i >> 16 & 255, o[a++] = i >> 8 & 255, o[a++] = i & 255;
622
+ return u === 2 ? (i = le[n.charCodeAt(e)] << 2 | le[n.charCodeAt(e + 1)] >> 4, o[a++] = i & 255) : u === 1 && (i = le[n.charCodeAt(e)] << 10 | le[n.charCodeAt(e + 1)] << 4 | le[n.charCodeAt(e + 2)] >> 2, o[a++] = i >> 8 & 255, o[a++] = i & 255), o;
623
623
  }
624
624
  function op(n) {
625
625
  return ve[n >> 18 & 63] + ve[n >> 12 & 63] + ve[n >> 6 & 63] + ve[n & 63];
@@ -631,30 +631,30 @@ function sp(n, e, t) {
631
631
  }
632
632
  function On(n) {
633
633
  Vr || Hi();
634
- for (var e, t = n.length, r = t % 3, i = "", u = [], o = 16383, a = 0, s = t - r; a < s; a += o)
635
- u.push(sp(n, a, a + o > s ? s : a + o));
634
+ for (var e, t = n.length, r = t % 3, i = "", u = [], o = 16383, s = 0, a = t - r; s < a; s += o)
635
+ u.push(sp(n, s, s + o > a ? a : s + o));
636
636
  return r === 1 ? (e = n[t - 1], i += ve[e >> 2], i += ve[e << 4 & 63], i += "==") : r === 2 && (e = (n[t - 2] << 8) + n[t - 1], i += ve[e >> 10], i += ve[e >> 4 & 63], i += ve[e << 2 & 63], i += "="), u.push(i), u.join("");
637
637
  }
638
638
  function Xt(n, e, t, r, i) {
639
- var u, o, a = i * 8 - r - 1, s = (1 << a) - 1, l = s >> 1, d = -7, f = t ? i - 1 : 0, c = t ? -1 : 1, h = n[e + f];
640
- for (f += c, u = h & (1 << -d) - 1, h >>= -d, d += a; d > 0; u = u * 256 + n[e + f], f += c, d -= 8)
639
+ var u, o, s = i * 8 - r - 1, a = (1 << s) - 1, l = a >> 1, d = -7, f = t ? i - 1 : 0, c = t ? -1 : 1, h = n[e + f];
640
+ for (f += c, u = h & (1 << -d) - 1, h >>= -d, d += s; d > 0; u = u * 256 + n[e + f], f += c, d -= 8)
641
641
  ;
642
642
  for (o = u & (1 << -d) - 1, u >>= -d, d += r; d > 0; o = o * 256 + n[e + f], f += c, d -= 8)
643
643
  ;
644
644
  if (u === 0)
645
645
  u = 1 - l;
646
646
  else {
647
- if (u === s)
647
+ if (u === a)
648
648
  return o ? NaN : (h ? -1 : 1) * (1 / 0);
649
649
  o = o + Math.pow(2, r), u = u - l;
650
650
  }
651
651
  return (h ? -1 : 1) * o * Math.pow(2, u - r);
652
652
  }
653
653
  function zi(n, e, t, r, i, u) {
654
- var o, a, s, l = u * 8 - i - 1, d = (1 << l) - 1, f = d >> 1, c = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : u - 1, p = r ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
655
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, o = d) : (o = Math.floor(Math.log(e) / Math.LN2), e * (s = Math.pow(2, -o)) < 1 && (o--, s *= 2), o + f >= 1 ? e += c / s : e += c * Math.pow(2, 1 - f), e * s >= 2 && (o++, s /= 2), o + f >= d ? (a = 0, o = d) : o + f >= 1 ? (a = (e * s - 1) * Math.pow(2, i), o = o + f) : (a = e * Math.pow(2, f - 1) * Math.pow(2, i), o = 0)); i >= 8; n[t + h] = a & 255, h += p, a /= 256, i -= 8)
654
+ var o, s, a, l = u * 8 - i - 1, d = (1 << l) - 1, f = d >> 1, c = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, h = r ? 0 : u - 1, p = r ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
655
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, o = d) : (o = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -o)) < 1 && (o--, a *= 2), o + f >= 1 ? e += c / a : e += c * Math.pow(2, 1 - f), e * a >= 2 && (o++, a /= 2), o + f >= d ? (s = 0, o = d) : o + f >= 1 ? (s = (e * a - 1) * Math.pow(2, i), o = o + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, i), o = 0)); i >= 8; n[t + h] = s & 255, h += p, s /= 256, i -= 8)
656
656
  ;
657
- for (o = o << i | a, l += i; l > 0; n[t + h] = o & 255, h += p, o /= 256, l -= 8)
657
+ for (o = o << i | s, l += i; l > 0; n[t + h] = o & 255, h += p, o /= 256, l -= 8)
658
658
  ;
659
659
  n[t + h - p] |= m * 128;
660
660
  }
@@ -931,12 +931,12 @@ x.prototype.compare = function(e, t, r, i, u) {
931
931
  if (t >= r)
932
932
  return 1;
933
933
  if (t >>>= 0, r >>>= 0, i >>>= 0, u >>>= 0, this === e) return 0;
934
- for (var o = u - i, a = r - t, s = Math.min(o, a), l = this.slice(i, u), d = e.slice(t, r), f = 0; f < s; ++f)
934
+ for (var o = u - i, s = r - t, a = Math.min(o, s), l = this.slice(i, u), d = e.slice(t, r), f = 0; f < a; ++f)
935
935
  if (l[f] !== d[f]) {
936
- o = l[f], a = d[f];
936
+ o = l[f], s = d[f];
937
937
  break;
938
938
  }
939
- return o < a ? -1 : a < o ? 1 : 0;
939
+ return o < s ? -1 : s < o ? 1 : 0;
940
940
  };
941
941
  function Ji(n, e, t, r, i) {
942
942
  if (n.length === 0) return -1;
@@ -953,27 +953,27 @@ function Ji(n, e, t, r, i) {
953
953
  throw new TypeError("val must be string, number or Buffer");
954
954
  }
955
955
  function Pn(n, e, t, r, i) {
956
- var u = 1, o = n.length, a = e.length;
956
+ var u = 1, o = n.length, s = e.length;
957
957
  if (r !== void 0 && (r = String(r).toLowerCase(), r === "ucs2" || r === "ucs-2" || r === "utf16le" || r === "utf-16le")) {
958
958
  if (n.length < 2 || e.length < 2)
959
959
  return -1;
960
- u = 2, o /= 2, a /= 2, t /= 2;
960
+ u = 2, o /= 2, s /= 2, t /= 2;
961
961
  }
962
- function s(h, p) {
962
+ function a(h, p) {
963
963
  return u === 1 ? h[p] : h.readUInt16BE(p * u);
964
964
  }
965
965
  var l;
966
966
  if (i) {
967
967
  var d = -1;
968
968
  for (l = t; l < o; l++)
969
- if (s(n, l) === s(e, d === -1 ? 0 : l - d)) {
970
- if (d === -1 && (d = l), l - d + 1 === a) return d * u;
969
+ if (a(n, l) === a(e, d === -1 ? 0 : l - d)) {
970
+ if (d === -1 && (d = l), l - d + 1 === s) return d * u;
971
971
  } else
972
972
  d !== -1 && (l -= l - d), d = -1;
973
973
  } else
974
- for (t + a > o && (t = o - a), l = t; l >= 0; l--) {
975
- for (var f = !0, c = 0; c < a; c++)
976
- if (s(n, l + c) !== s(e, c)) {
974
+ for (t + s > o && (t = o - s), l = t; l >= 0; l--) {
975
+ for (var f = !0, c = 0; c < s; c++)
976
+ if (a(n, l + c) !== a(e, c)) {
977
977
  f = !1;
978
978
  break;
979
979
  }
@@ -998,9 +998,9 @@ function pp(n, e, t, r) {
998
998
  if (u % 2 !== 0) throw new TypeError("Invalid hex string");
999
999
  r > u / 2 && (r = u / 2);
1000
1000
  for (var o = 0; o < r; ++o) {
1001
- var a = parseInt(e.substr(o * 2, 2), 16);
1002
- if (isNaN(a)) return o;
1003
- n[t + o] = a;
1001
+ var s = parseInt(e.substr(o * 2, 2), 16);
1002
+ if (isNaN(s)) return o;
1003
+ n[t + o] = s;
1004
1004
  }
1005
1005
  return o;
1006
1006
  }
@@ -1070,24 +1070,24 @@ function kp(n, e, t) {
1070
1070
  function Qi(n, e, t) {
1071
1071
  t = Math.min(n.length, t);
1072
1072
  for (var r = [], i = e; i < t; ) {
1073
- var u = n[i], o = null, a = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
1074
- if (i + a <= t) {
1075
- var s, l, d, f;
1076
- switch (a) {
1073
+ var u = n[i], o = null, s = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
1074
+ if (i + s <= t) {
1075
+ var a, l, d, f;
1076
+ switch (s) {
1077
1077
  case 1:
1078
1078
  u < 128 && (o = u);
1079
1079
  break;
1080
1080
  case 2:
1081
- s = n[i + 1], (s & 192) === 128 && (f = (u & 31) << 6 | s & 63, f > 127 && (o = f));
1081
+ a = n[i + 1], (a & 192) === 128 && (f = (u & 31) << 6 | a & 63, f > 127 && (o = f));
1082
1082
  break;
1083
1083
  case 3:
1084
- s = n[i + 1], l = n[i + 2], (s & 192) === 128 && (l & 192) === 128 && (f = (u & 15) << 12 | (s & 63) << 6 | l & 63, f > 2047 && (f < 55296 || f > 57343) && (o = f));
1084
+ a = n[i + 1], l = n[i + 2], (a & 192) === 128 && (l & 192) === 128 && (f = (u & 15) << 12 | (a & 63) << 6 | l & 63, f > 2047 && (f < 55296 || f > 57343) && (o = f));
1085
1085
  break;
1086
1086
  case 4:
1087
- s = n[i + 1], l = n[i + 2], d = n[i + 3], (s & 192) === 128 && (l & 192) === 128 && (d & 192) === 128 && (f = (u & 15) << 18 | (s & 63) << 12 | (l & 63) << 6 | d & 63, f > 65535 && f < 1114112 && (o = f));
1087
+ a = n[i + 1], l = n[i + 2], d = n[i + 3], (a & 192) === 128 && (l & 192) === 128 && (d & 192) === 128 && (f = (u & 15) << 18 | (a & 63) << 12 | (l & 63) << 6 | d & 63, f > 65535 && f < 1114112 && (o = f));
1088
1088
  }
1089
1089
  }
1090
- o === null ? (o = 65533, a = 1) : o > 65535 && (o -= 65536, r.push(o >>> 10 & 1023 | 55296), o = 56320 | o & 1023), r.push(o), i += a;
1090
+ o === null ? (o = 65533, s = 1) : o > 65535 && (o -= 65536, r.push(o >>> 10 & 1023 | 55296), o = 56320 | o & 1023), r.push(o), i += s;
1091
1091
  }
1092
1092
  return xp(r);
1093
1093
  }
@@ -1227,9 +1227,9 @@ x.prototype.writeUIntLE = function(e, t, r, i) {
1227
1227
  var u = Math.pow(2, 8 * r) - 1;
1228
1228
  ie(this, e, t, r, u, 0);
1229
1229
  }
1230
- var o = 1, a = 0;
1231
- for (this[t] = e & 255; ++a < r && (o *= 256); )
1232
- this[t + a] = e / o & 255;
1230
+ var o = 1, s = 0;
1231
+ for (this[t] = e & 255; ++s < r && (o *= 256); )
1232
+ this[t + s] = e / o & 255;
1233
1233
  return t + r;
1234
1234
  };
1235
1235
  x.prototype.writeUIntBE = function(e, t, r, i) {
@@ -1237,9 +1237,9 @@ x.prototype.writeUIntBE = function(e, t, r, i) {
1237
1237
  var u = Math.pow(2, 8 * r) - 1;
1238
1238
  ie(this, e, t, r, u, 0);
1239
1239
  }
1240
- var o = r - 1, a = 1;
1241
- for (this[t + o] = e & 255; --o >= 0 && (a *= 256); )
1242
- this[t + o] = e / a & 255;
1240
+ var o = r - 1, s = 1;
1241
+ for (this[t + o] = e & 255; --o >= 0 && (s *= 256); )
1242
+ this[t + o] = e / s & 255;
1243
1243
  return t + r;
1244
1244
  };
1245
1245
  x.prototype.writeUInt8 = function(e, t, r) {
@@ -1272,9 +1272,9 @@ x.prototype.writeIntLE = function(e, t, r, i) {
1272
1272
  var u = Math.pow(2, 8 * r - 1);
1273
1273
  ie(this, e, t, r, u - 1, -u);
1274
1274
  }
1275
- var o = 0, a = 1, s = 0;
1276
- for (this[t] = e & 255; ++o < r && (a *= 256); )
1277
- e < 0 && s === 0 && this[t + o - 1] !== 0 && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
1275
+ var o = 0, s = 1, a = 0;
1276
+ for (this[t] = e & 255; ++o < r && (s *= 256); )
1277
+ e < 0 && a === 0 && this[t + o - 1] !== 0 && (a = 1), this[t + o] = (e / s >> 0) - a & 255;
1278
1278
  return t + r;
1279
1279
  };
1280
1280
  x.prototype.writeIntBE = function(e, t, r, i) {
@@ -1282,9 +1282,9 @@ x.prototype.writeIntBE = function(e, t, r, i) {
1282
1282
  var u = Math.pow(2, 8 * r - 1);
1283
1283
  ie(this, e, t, r, u - 1, -u);
1284
1284
  }
1285
- var o = r - 1, a = 1, s = 0;
1286
- for (this[t + o] = e & 255; --o >= 0 && (a *= 256); )
1287
- e < 0 && s === 0 && this[t + o + 1] !== 0 && (s = 1), this[t + o] = (e / a >> 0) - s & 255;
1285
+ var o = r - 1, s = 1, a = 0;
1286
+ for (this[t + o] = e & 255; --o >= 0 && (s *= 256); )
1287
+ e < 0 && a === 0 && this[t + o + 1] !== 0 && (a = 1), this[t + o] = (e / s >> 0) - a & 255;
1288
1288
  return t + r;
1289
1289
  };
1290
1290
  x.prototype.writeInt8 = function(e, t, r) {
@@ -1367,9 +1367,9 @@ x.prototype.fill = function(e, t, r, i) {
1367
1367
  for (o = t; o < r; ++o)
1368
1368
  this[o] = e;
1369
1369
  else {
1370
- var a = xe(e) ? e : Ut(new x(e, i).toString()), s = a.length;
1370
+ var s = xe(e) ? e : Ut(new x(e, i).toString()), a = s.length;
1371
1371
  for (o = 0; o < r - t; ++o)
1372
- this[o + t] = a[o % s];
1372
+ this[o + t] = s[o % a];
1373
1373
  }
1374
1374
  return this;
1375
1375
  };
@@ -1485,7 +1485,7 @@ var uu = { exports: {} };
1485
1485
  (function(t, r) {
1486
1486
  n.exports = r();
1487
1487
  })(oe, function() {
1488
- var t = 1e3, r = 6e4, i = 36e5, u = "millisecond", o = "second", a = "minute", s = "hour", l = "day", d = "week", f = "month", c = "quarter", h = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, S = { 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(k) {
1488
+ var t = 1e3, r = 6e4, i = 36e5, u = "millisecond", o = "second", s = "minute", a = "hour", l = "day", d = "week", f = "month", c = "quarter", h = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|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, S = { 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(k) {
1489
1489
  var y = ["th", "st", "nd", "rd"], v = k % 100;
1490
1490
  return "[" + k + (y[(v - 20) % 10] || y[v] || y[0]) + "]";
1491
1491
  } }, L = function(k, y, v) {
@@ -1501,7 +1501,7 @@ var uu = { exports: {} };
1501
1501
  }, a: function(k) {
1502
1502
  return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
1503
1503
  }, p: function(k) {
1504
- return { M: f, y: h, w: d, d: l, D: p, h: s, m: a, s: o, ms: u, Q: c }[k] || String(k || "").toLowerCase().replace(/s$/, "");
1504
+ return { M: f, y: h, w: d, d: l, D: p, h: a, m: s, s: o, ms: u, Q: c }[k] || String(k || "").toLowerCase().replace(/s$/, "");
1505
1505
  }, u: function(k) {
1506
1506
  return k === void 0;
1507
1507
  } }, M = "en", O = {};
@@ -1587,9 +1587,9 @@ var uu = { exports: {} };
1587
1587
  case l:
1588
1588
  case p:
1589
1589
  return z(Ee + "Hours", 0);
1590
- case s:
1591
- return z(Ee + "Minutes", 1);
1592
1590
  case a:
1591
+ return z(Ee + "Minutes", 1);
1592
+ case s:
1593
1593
  return z(Ee + "Seconds", 2);
1594
1594
  case o:
1595
1595
  return z(Ee + "Milliseconds", 3);
@@ -1599,7 +1599,7 @@ var uu = { exports: {} };
1599
1599
  }, y.endOf = function(v) {
1600
1600
  return this.startOf(v, !1);
1601
1601
  }, y.$set = function(v, C) {
1602
- var E, B = P.p(v), D = "set" + (this.$u ? "UTC" : ""), F = (E = {}, E[l] = D + "Date", E[p] = D + "Date", E[f] = D + "Month", E[h] = D + "FullYear", E[s] = D + "Hours", E[a] = D + "Minutes", E[o] = D + "Seconds", E[u] = D + "Milliseconds", E)[B], z = B === l ? this.$D + (C - this.$W) : C;
1602
+ var E, B = P.p(v), D = "set" + (this.$u ? "UTC" : ""), F = (E = {}, E[l] = D + "Date", E[p] = D + "Date", E[f] = D + "Month", E[h] = D + "FullYear", E[a] = D + "Hours", E[s] = D + "Minutes", E[o] = D + "Seconds", E[u] = D + "Milliseconds", E)[B], z = B === l ? this.$D + (C - this.$W) : C;
1603
1603
  if (B === f || B === h) {
1604
1604
  var G = this.clone().set(p, 1);
1605
1605
  G.$d[F](z), G.init(), this.$d = G.set(p, Math.min(this.$D, G.daysInMonth())).$d;
@@ -1620,7 +1620,7 @@ var uu = { exports: {} };
1620
1620
  if (D === h) return this.set(h, this.$y + v);
1621
1621
  if (D === l) return F(1);
1622
1622
  if (D === d) return F(7);
1623
- var z = (E = {}, E[a] = r, E[s] = i, E[o] = t, E)[D] || 1, G = this.$d.getTime() + v * z;
1623
+ var z = (E = {}, E[s] = r, E[a] = i, E[o] = t, E)[D] || 1, G = this.$d.getTime() + v * z;
1624
1624
  return P.w(G, this);
1625
1625
  }, y.subtract = function(v, C) {
1626
1626
  return this.add(-1 * v, C);
@@ -1642,7 +1642,7 @@ var uu = { exports: {} };
1642
1642
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1643
1643
  }, y.diff = function(v, C, E) {
1644
1644
  var B, D = P.p(C), F = N(v), z = (F.utcOffset() - this.utcOffset()) * r, G = this - F, Z = P.m(this, F);
1645
- return Z = (B = {}, B[h] = Z / 12, B[f] = Z, B[c] = Z / 3, B[d] = (G - z) / 6048e5, B[l] = (G - z) / 864e5, B[s] = G / i, B[a] = G / r, B[o] = G / t, B)[D] || G, E ? Z : P.a(Z);
1645
+ return Z = (B = {}, B[h] = Z / 12, B[f] = Z, B[c] = Z / 3, B[d] = (G - z) / 6048e5, B[l] = (G - z) / 864e5, B[a] = G / i, B[s] = G / r, B[o] = G / t, B)[D] || G, E ? Z : P.a(Z);
1646
1646
  }, y.daysInMonth = function() {
1647
1647
  return this.endOf(f).$D;
1648
1648
  }, y.$locale = function() {
@@ -1663,7 +1663,7 @@ var uu = { exports: {} };
1663
1663
  return this.$d.toUTCString();
1664
1664
  }, k;
1665
1665
  }(), $ = b.prototype;
1666
- return N.prototype = $, [["$ms", u], ["$s", o], ["$m", a], ["$H", s], ["$W", l], ["$M", f], ["$y", h], ["$D", p]].forEach(function(k) {
1666
+ return N.prototype = $, [["$ms", u], ["$s", o], ["$m", s], ["$H", a], ["$W", l], ["$M", f], ["$y", h], ["$D", p]].forEach(function(k) {
1667
1667
  $[k[1]] = function(y) {
1668
1668
  return this.$g(y, k[0], k[1]);
1669
1669
  };
@@ -1974,16 +1974,16 @@ var _n = (
1974
1974
  }), this.bymonthday = u.concat(o), this.bymonthday.length || (this.bymonthday = null);
1975
1975
  }
1976
1976
  if (K(this.origOptions.byweekday)) {
1977
- var a = se(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], s = String(a);
1977
+ var s = se(this.origOptions.byweekday) ? this.origOptions.byweekday : [this.origOptions.byweekday], a = String(s);
1978
1978
  this.byweekday = {
1979
- allWeeks: a.filter(function(d) {
1979
+ allWeeks: s.filter(function(d) {
1980
1980
  return !d.n;
1981
1981
  }),
1982
- someWeeks: a.filter(function(d) {
1982
+ someWeeks: s.filter(function(d) {
1983
1983
  return !!d.n;
1984
1984
  }),
1985
- 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,
1986
- 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
1985
+ isWeekdays: a.indexOf("MO") !== -1 && a.indexOf("TU") !== -1 && a.indexOf("WE") !== -1 && a.indexOf("TH") !== -1 && a.indexOf("FR") !== -1 && a.indexOf("SA") === -1 && a.indexOf("SU") === -1,
1986
+ isEveryDay: a.indexOf("MO") !== -1 && a.indexOf("TU") !== -1 && a.indexOf("WE") !== -1 && a.indexOf("TH") !== -1 && a.indexOf("FR") !== -1 && a.indexOf("SA") !== -1 && a.indexOf("SU") !== -1
1987
1987
  };
1988
1988
  var l = function(d, f) {
1989
1989
  return d.weekday - f.weekday;
@@ -2080,18 +2080,18 @@ var _n = (
2080
2080
  }, n.prototype.list = function(e, t, r, i) {
2081
2081
  var u = this;
2082
2082
  i === void 0 && (i = ","), se(e) || (e = [e]);
2083
- var o = function(s, l, d) {
2084
- for (var f = "", c = 0; c < s.length; c++)
2085
- c !== 0 && (c === s.length - 1 ? f += " " + d + " " : f += l + " "), f += s[c];
2083
+ var o = function(a, l, d) {
2084
+ for (var f = "", c = 0; c < a.length; c++)
2085
+ c !== 0 && (c === a.length - 1 ? f += " " + d + " " : f += l + " "), f += a[c];
2086
2086
  return f;
2087
2087
  };
2088
- t = t || function(s) {
2089
- return s.toString();
2088
+ t = t || function(a) {
2089
+ return a.toString();
2090
2090
  };
2091
- var a = function(s) {
2092
- return t && t.call(u, s);
2091
+ var s = function(a) {
2092
+ return t && t.call(u, a);
2093
2093
  };
2094
- return r ? o(e.map(a), i, r) : e.map(a).join(i + " ");
2094
+ return r ? o(e.map(s), i, r) : e.map(s).join(i + " ");
2095
2095
  }, n;
2096
2096
  }()
2097
2097
  ), Hp = (
@@ -2188,7 +2188,7 @@ function hu(n, e) {
2188
2188
  for (; r.accept("comma"); ) {
2189
2189
  if (r.isDone())
2190
2190
  throw new Error("Unexpected end");
2191
- var p = s();
2191
+ var p = a();
2192
2192
  if (!p)
2193
2193
  throw new Error("Unexpected symbol " + r.symbol + ", expected weekday");
2194
2194
  t.byweekday.push(R[p]), r.nextSymbol();
@@ -2207,12 +2207,12 @@ function hu(n, e) {
2207
2207
  case "october":
2208
2208
  case "november":
2209
2209
  case "december":
2210
- if (t.freq = R.YEARLY, t.bymonth = [a()], !r.nextSymbol())
2210
+ if (t.freq = R.YEARLY, t.bymonth = [s()], !r.nextSymbol())
2211
2211
  return;
2212
2212
  for (; r.accept("comma"); ) {
2213
2213
  if (r.isDone())
2214
2214
  throw new Error("Unexpected end");
2215
- var m = a();
2215
+ var m = s();
2216
2216
  if (!m)
2217
2217
  throw new Error("Unexpected symbol " + r.symbol + ", expected month");
2218
2218
  t.bymonth.push(m), r.nextSymbol();
@@ -2227,7 +2227,7 @@ function hu(n, e) {
2227
2227
  var c = r.accept("on"), h = r.accept("the");
2228
2228
  if (c || h)
2229
2229
  do {
2230
- var p = l(), m = s(), g = a();
2230
+ var p = l(), m = a(), g = s();
2231
2231
  if (p)
2232
2232
  m ? (r.nextSymbol(), t.byweekday || (t.byweekday = []), t.byweekday.push(R[m].nth(p))) : (t.bymonthday || (t.bymonthday = []), t.bymonthday.push(p), r.accept("day(s)"));
2233
2233
  else if (m)
@@ -2264,7 +2264,7 @@ function hu(n, e) {
2264
2264
  }
2265
2265
  } while (r.accept("comma") || r.accept("at"));
2266
2266
  }
2267
- function a() {
2267
+ function s() {
2268
2268
  switch (r.symbol) {
2269
2269
  case "january":
2270
2270
  return 1;
@@ -2294,7 +2294,7 @@ function hu(n, e) {
2294
2294
  return !1;
2295
2295
  }
2296
2296
  }
2297
- function s() {
2297
+ function a() {
2298
2298
  switch (r.symbol) {
2299
2299
  case "monday":
2300
2300
  case "tuesday":
@@ -2394,8 +2394,8 @@ var Wp = function(n, e, t, r) {
2394
2394
  /** @class */
2395
2395
  function(n) {
2396
2396
  en(e, n);
2397
- function e(t, r, i, u, o, a, s) {
2398
- var l = n.call(this, u, o, a, s) || this;
2397
+ function e(t, r, i, u, o, s, a) {
2398
+ var l = n.call(this, u, o, s, a) || this;
2399
2399
  return l.year = t, l.month = r, l.day = i, l;
2400
2400
  }
2401
2401
  return e.fromDate = function(t) {
@@ -2424,22 +2424,22 @@ var Wp = function(n, e, t, r) {
2424
2424
  }, e.prototype.addHours = function(t, r, i) {
2425
2425
  for (r && (this.hour += Math.floor((23 - this.hour) / t) * t); ; ) {
2426
2426
  this.hour += t;
2427
- var u = cr(this.hour, 24), o = u.div, a = u.mod;
2428
- if (o && (this.hour = a, this.addDaily(o)), ye(i) || H(i, this.hour))
2427
+ var u = cr(this.hour, 24), o = u.div, s = u.mod;
2428
+ if (o && (this.hour = s, this.addDaily(o)), ye(i) || H(i, this.hour))
2429
2429
  break;
2430
2430
  }
2431
2431
  }, e.prototype.addMinutes = function(t, r, i, u) {
2432
2432
  for (r && (this.minute += Math.floor((1439 - (this.hour * 60 + this.minute)) / t) * t); ; ) {
2433
2433
  this.minute += t;
2434
- var o = cr(this.minute, 60), a = o.div, s = o.mod;
2435
- if (a && (this.minute = s, this.addHours(a, !1, i)), (ye(i) || H(i, this.hour)) && (ye(u) || H(u, this.minute)))
2434
+ var o = cr(this.minute, 60), s = o.div, a = o.mod;
2435
+ if (s && (this.minute = a, this.addHours(s, !1, i)), (ye(i) || H(i, this.hour)) && (ye(u) || H(u, this.minute)))
2436
2436
  break;
2437
2437
  }
2438
2438
  }, e.prototype.addSeconds = function(t, r, i, u, o) {
2439
2439
  for (r && (this.second += Math.floor((86399 - (this.hour * 3600 + this.minute * 60 + this.second)) / t) * t); ; ) {
2440
2440
  this.second += t;
2441
- var a = cr(this.second, 60), s = a.div, l = a.mod;
2442
- if (s && (this.second = l, this.addMinutes(s, !1, i, u)), (ye(i) || H(i, this.hour)) && (ye(u) || H(u, this.minute)) && (ye(o) || H(o, this.second)))
2441
+ var s = cr(this.second, 60), a = s.div, l = s.mod;
2442
+ if (a && (this.second = l, this.addMinutes(a, !1, i, u)), (ye(i) || H(i, this.hour)) && (ye(u) || H(u, this.minute)) && (ye(o) || H(o, this.second)))
2443
2443
  break;
2444
2444
  }
2445
2445
  }, e.prototype.fixDay = function() {
@@ -2453,7 +2453,7 @@ var Wp = function(n, e, t, r) {
2453
2453
  }
2454
2454
  }
2455
2455
  }, e.prototype.add = function(t, r) {
2456
- var i = t.freq, u = t.interval, o = t.wkst, a = t.byhour, s = t.byminute, l = t.bysecond;
2456
+ var i = t.freq, u = t.interval, o = t.wkst, s = t.byhour, a = t.byminute, l = t.bysecond;
2457
2457
  switch (i) {
2458
2458
  case j.YEARLY:
2459
2459
  return this.addYears(u);
@@ -2464,11 +2464,11 @@ var Wp = function(n, e, t, r) {
2464
2464
  case j.DAILY:
2465
2465
  return this.addDaily(u);
2466
2466
  case j.HOURLY:
2467
- return this.addHours(u, r, a);
2467
+ return this.addHours(u, r, s);
2468
2468
  case j.MINUTELY:
2469
- return this.addMinutes(u, r, a, s);
2469
+ return this.addMinutes(u, r, s, a);
2470
2470
  case j.SECONDLY:
2471
- return this.addSeconds(u, r, a, s, l);
2471
+ return this.addSeconds(u, r, s, a, l);
2472
2472
  }
2473
2473
  }, e;
2474
2474
  }(jt)
@@ -2524,18 +2524,18 @@ function Vp(n) {
2524
2524
  else if (e.byweekday instanceof re)
2525
2525
  !e.byweekday.n || e.freq > R.MONTHLY ? (e.byweekday = [e.byweekday.weekday], e.bynweekday = null) : (e.bynweekday = [[e.byweekday.weekday, e.byweekday.n]], e.byweekday = null);
2526
2526
  else {
2527
- for (var o = [], a = [], t = 0; t < e.byweekday.length; t++) {
2528
- var s = e.byweekday[t];
2529
- if (be(s)) {
2530
- o.push(s);
2527
+ for (var o = [], s = [], t = 0; t < e.byweekday.length; t++) {
2528
+ var a = e.byweekday[t];
2529
+ if (be(a)) {
2530
+ o.push(a);
2531
2531
  continue;
2532
- } else if (Ln(s)) {
2533
- o.push(re.fromStr(s).weekday);
2532
+ } else if (Ln(a)) {
2533
+ o.push(re.fromStr(a).weekday);
2534
2534
  continue;
2535
2535
  }
2536
- !s.n || e.freq > R.MONTHLY ? o.push(s.weekday) : a.push([s.weekday, s.n]);
2536
+ !a.n || e.freq > R.MONTHLY ? o.push(a.weekday) : s.push([a.weekday, a.n]);
2537
2537
  }
2538
- e.byweekday = V(o) ? o : null, e.bynweekday = V(a) ? a : null;
2538
+ e.byweekday = V(o) ? o : null, e.bynweekday = V(s) ? s : null;
2539
2539
  }
2540
2540
  return K(e.byhour) ? be(e.byhour) && (e.byhour = [e.byhour]) : e.byhour = e.freq < R.HOURLY ? [e.dtstart.getUTCHours()] : null, K(e.byminute) ? be(e.byminute) && (e.byminute = [e.byminute]) : e.byminute = e.freq < R.MINUTELY ? [e.dtstart.getUTCMinutes()] : null, K(e.bysecond) ? be(e.bysecond) && (e.bysecond = [e.bysecond]) : e.bysecond = e.freq < R.SECONDLY ? [e.dtstart.getUTCSeconds()] : null, { parsedOptions: e };
2541
2541
  }
@@ -2586,13 +2586,13 @@ function Zp(n) {
2586
2586
  function Yn(n) {
2587
2587
  var e = n.replace(/^RRULE:/i, ""), t = Yt(e), r = n.replace(/^(?:RRULE|EXRULE):/i, "").split(";");
2588
2588
  return r.forEach(function(i) {
2589
- var u = i.split("="), o = u[0], a = u[1];
2589
+ var u = i.split("="), o = u[0], s = u[1];
2590
2590
  switch (o.toUpperCase()) {
2591
2591
  case "FREQ":
2592
- t.freq = j[a.toUpperCase()];
2592
+ t.freq = j[s.toUpperCase()];
2593
2593
  break;
2594
2594
  case "WKST":
2595
- t.wkst = de[a.toUpperCase()];
2595
+ t.wkst = de[s.toUpperCase()];
2596
2596
  break;
2597
2597
  case "COUNT":
2598
2598
  case "INTERVAL":
@@ -2604,12 +2604,12 @@ function Yn(n) {
2604
2604
  case "BYHOUR":
2605
2605
  case "BYMINUTE":
2606
2606
  case "BYSECOND":
2607
- var s = Qp(a), l = o.toLowerCase();
2608
- t[l] = s;
2607
+ var a = Qp(s), l = o.toLowerCase();
2608
+ t[l] = a;
2609
2609
  break;
2610
2610
  case "BYWEEKDAY":
2611
2611
  case "BYDAY":
2612
- t.byweekday = Xp(a);
2612
+ t.byweekday = Xp(s);
2613
2613
  break;
2614
2614
  case "DTSTART":
2615
2615
  case "TZID":
@@ -2617,10 +2617,10 @@ function Yn(n) {
2617
2617
  t.tzid = d.tzid, t.dtstart = d.dtstart;
2618
2618
  break;
2619
2619
  case "UNTIL":
2620
- t.until = Xr(a);
2620
+ t.until = Xr(s);
2621
2621
  break;
2622
2622
  case "BYEASTER":
2623
- t.byeaster = Number(a);
2623
+ t.byeaster = Number(s);
2624
2624
  break;
2625
2625
  default:
2626
2626
  throw new Error("Unknown RRULE property '" + o + "'");
@@ -2676,35 +2676,35 @@ var qt = (
2676
2676
  function Cr(n) {
2677
2677
  for (var e = [], t = "", r = Object.keys(n), i = Object.keys(rn), u = 0; u < r.length; u++)
2678
2678
  if (r[u] !== "tzid" && H(i, r[u])) {
2679
- var o = r[u].toUpperCase(), a = n[r[u]], s = "";
2680
- if (!(!K(a) || se(a) && !a.length)) {
2679
+ var o = r[u].toUpperCase(), s = n[r[u]], a = "";
2680
+ if (!(!K(s) || se(s) && !s.length)) {
2681
2681
  switch (o) {
2682
2682
  case "FREQ":
2683
- s = R.FREQUENCIES[n.freq];
2683
+ a = R.FREQUENCIES[n.freq];
2684
2684
  break;
2685
2685
  case "WKST":
2686
- be(a) ? s = new re(a).toString() : s = a.toString();
2686
+ be(s) ? a = new re(s).toString() : a = s.toString();
2687
2687
  break;
2688
2688
  case "BYWEEKDAY":
2689
- o = "BYDAY", s = Lp(a).map(function(h) {
2689
+ o = "BYDAY", a = Lp(s).map(function(h) {
2690
2690
  return h instanceof re ? h : se(h) ? new re(h[0], h[1]) : new re(h);
2691
2691
  }).toString();
2692
2692
  break;
2693
2693
  case "DTSTART":
2694
- t = em(a, n.tzid);
2694
+ t = em(s, n.tzid);
2695
2695
  break;
2696
2696
  case "UNTIL":
2697
- s = Qr(a, !n.tzid);
2697
+ a = Qr(s, !n.tzid);
2698
2698
  break;
2699
2699
  default:
2700
- if (se(a)) {
2701
- for (var l = [], d = 0; d < a.length; d++)
2702
- l[d] = String(a[d]);
2703
- s = l.toString();
2700
+ if (se(s)) {
2701
+ for (var l = [], d = 0; d < s.length; d++)
2702
+ l[d] = String(s[d]);
2703
+ a = l.toString();
2704
2704
  } else
2705
- s = String(a);
2705
+ a = String(s);
2706
2706
  }
2707
- s && e.push([o, s]);
2707
+ a && e.push([o, a]);
2708
2708
  }
2709
2709
  }
2710
2710
  var f = e.map(function(h) {
@@ -2744,15 +2744,15 @@ var rm = (
2744
2744
  if (e === "all")
2745
2745
  r = this.all;
2746
2746
  else if (se(o))
2747
- for (var a = 0; a < o.length; a++) {
2748
- var s = o[a];
2749
- if (!(i.length && u(s))) {
2750
- r = s._value;
2747
+ for (var s = 0; s < o.length; s++) {
2748
+ var a = o[s];
2749
+ if (!(i.length && u(a))) {
2750
+ r = a._value;
2751
2751
  break;
2752
2752
  }
2753
2753
  }
2754
2754
  if (!r && this.all) {
2755
- for (var l = new He(e, t), a = 0; a < this.all.length && l.accept(this.all[a]); a++)
2755
+ for (var l = new He(e, t), s = 0; s < this.all.length && l.accept(this.all[s]); s++)
2756
2756
  ;
2757
2757
  r = l.getValue(), this._cacheAdd(e, r, t);
2758
2758
  }
@@ -2765,25 +2765,25 @@ var rm = (
2765
2765
  return n;
2766
2766
  }();
2767
2767
  function pm(n, e) {
2768
- var t = Ie(n, 1, 1), r = rt(n) ? 366 : 365, i = rt(n + 1) ? 366 : 365, u = $r(t), o = We(t), a = ae(ae({ yearlen: r, nextyearlen: i, yearordinal: u, yearweekday: o }, mm(n)), { wnomask: null });
2768
+ var t = Ie(n, 1, 1), r = rt(n) ? 366 : 365, i = rt(n + 1) ? 366 : 365, u = $r(t), o = We(t), s = ae(ae({ yearlen: r, nextyearlen: i, yearordinal: u, yearweekday: o }, mm(n)), { wnomask: null });
2769
2769
  if (ye(e.byweekno))
2770
- return a;
2771
- a.wnomask = _(0, r + 7);
2772
- var s, l, d = s = ce(7 - o + e.wkst, 7);
2773
- d >= 4 ? (d = 0, l = a.yearlen + ce(o - e.wkst, 7)) : l = r - d;
2770
+ return s;
2771
+ s.wnomask = _(0, r + 7);
2772
+ var a, l, d = a = ce(7 - o + e.wkst, 7);
2773
+ d >= 4 ? (d = 0, l = s.yearlen + ce(o - e.wkst, 7)) : l = r - d;
2774
2774
  for (var f = Math.floor(l / 7), c = ce(l, 7), h = Math.floor(f + c / 4), p = 0; p < e.byweekno.length; p++) {
2775
2775
  var m = e.byweekno[p];
2776
2776
  if (m < 0 && (m += h + 1), m > 0 && m <= h) {
2777
2777
  var g = void 0;
2778
- m > 1 ? (g = d + (m - 1) * 7, d !== s && (g -= 7 - s)) : g = d;
2779
- for (var w = 0; w < 7 && (a.wnomask[g] = 1, g++, a.wdaymask[g] !== e.wkst); w++)
2778
+ m > 1 ? (g = d + (m - 1) * 7, d !== a && (g -= 7 - a)) : g = d;
2779
+ for (var w = 0; w < 7 && (s.wnomask[g] = 1, g++, s.wdaymask[g] !== e.wkst); w++)
2780
2780
  ;
2781
2781
  }
2782
2782
  }
2783
2783
  if (H(e.byweekno, 1)) {
2784
2784
  var g = d + h * 7;
2785
- if (d !== s && (g -= 7 - s), g < r)
2786
- for (var p = 0; p < 7 && (a.wnomask[g] = 1, g += 1, a.wdaymask[g] !== e.wkst); p++)
2785
+ if (d !== a && (g -= 7 - a), g < r)
2786
+ for (var p = 0; p < 7 && (s.wnomask[g] = 1, g += 1, s.wdaymask[g] !== e.wkst); p++)
2787
2787
  ;
2788
2788
  }
2789
2789
  if (d) {
@@ -2796,9 +2796,9 @@ function pm(n, e) {
2796
2796
  }
2797
2797
  if (H(e.byweekno, S))
2798
2798
  for (var g = 0; g < d; g++)
2799
- a.wnomask[g] = 1;
2799
+ s.wnomask[g] = 1;
2800
2800
  }
2801
- return a;
2801
+ return s;
2802
2802
  }
2803
2803
  function mm(n) {
2804
2804
  var e = rt(n) ? 366 : 365, t = Ie(n, 1, 1), r = We(t);
@@ -2821,19 +2821,19 @@ function bm(n, e, t, r, i, u) {
2821
2821
  lastyear: n,
2822
2822
  lastmonth: e,
2823
2823
  nwdaymask: []
2824
- }, a = [];
2824
+ }, s = [];
2825
2825
  if (u.freq === R.YEARLY)
2826
2826
  if (ye(u.bymonth))
2827
- a = [[0, t]];
2827
+ s = [[0, t]];
2828
2828
  else
2829
- for (var s = 0; s < u.bymonth.length; s++)
2830
- e = u.bymonth[s], a.push(r.slice(e - 1, e + 1));
2831
- else u.freq === R.MONTHLY && (a = [r.slice(e - 1, e + 1)]);
2832
- if (ye(a))
2829
+ for (var a = 0; a < u.bymonth.length; a++)
2830
+ e = u.bymonth[a], s.push(r.slice(e - 1, e + 1));
2831
+ else u.freq === R.MONTHLY && (s = [r.slice(e - 1, e + 1)]);
2832
+ if (ye(s))
2833
2833
  return o;
2834
2834
  o.nwdaymask = _(0, t);
2835
- for (var s = 0; s < a.length; s++)
2836
- for (var l = a[s], d = l[0], f = l[1] - 1, c = 0; c < u.bynweekday.length; c++) {
2835
+ for (var a = 0; a < s.length; a++)
2836
+ for (var l = s[a], d = l[0], f = l[1] - 1, c = 0; c < u.bynweekday.length; c++) {
2837
2837
  var h = void 0, p = u.bynweekday[c], m = p[0], g = p[1];
2838
2838
  g < 0 ? (h = f + (g + 1) * 7, h -= ce(i[h] - m, 7)) : (h = d + (g - 1) * 7, h += ce(7 - i[h] + m, 7)), d <= h && h <= f && (o.nwdaymask[h] = 1);
2839
2839
  }
@@ -2841,7 +2841,7 @@ function bm(n, e, t, r, i, u) {
2841
2841
  }
2842
2842
  function ym(n, e) {
2843
2843
  e === void 0 && (e = 0);
2844
- var t = n % 19, r = Math.floor(n / 100), i = n % 100, u = Math.floor(r / 4), o = r % 4, a = Math.floor((r + 8) / 25), s = Math.floor((r - a + 1) / 3), l = Math.floor(19 * t + r - u - s + 15) % 30, d = Math.floor(i / 4), f = i % 4, c = Math.floor(32 + 2 * o + 2 * d - l - f) % 7, h = Math.floor((t + 11 * l + 22 * c) / 451), p = Math.floor((l + c - 7 * h + 114) / 31), m = (l + c - 7 * h + 114) % 31 + 1, g = Date.UTC(n, p - 1, m + e), w = Date.UTC(n, 0, 1);
2844
+ var t = n % 19, r = Math.floor(n / 100), i = n % 100, u = Math.floor(r / 4), o = r % 4, s = Math.floor((r + 8) / 25), a = Math.floor((r - s + 1) / 3), l = Math.floor(19 * t + r - u - a + 15) % 30, d = Math.floor(i / 4), f = i % 4, c = Math.floor(32 + 2 * o + 2 * d - l - f) % 7, h = Math.floor((t + 11 * l + 22 * c) / 451), p = Math.floor((l + c - 7 * h + 114) / 31), m = (l + c - 7 * h + 114) % 31 + 1, g = Date.UTC(n, p - 1, m + e), w = Date.UTC(n, 0, 1);
2845
2845
  return [Math.ceil((g - w) / (1e3 * 60 * 60 * 24))];
2846
2846
  }
2847
2847
  var vm = (
@@ -2853,8 +2853,8 @@ var vm = (
2853
2853
  return n.prototype.rebuild = function(e, t) {
2854
2854
  var r = this.options;
2855
2855
  if (e !== this.lastyear && (this.yearinfo = pm(e, r)), V(r.bynweekday) && (t !== this.lastmonth || e !== this.lastyear)) {
2856
- var i = this.yearinfo, u = i.yearlen, o = i.mrange, a = i.wdaymask;
2857
- this.monthinfo = bm(e, t, u, o, a, r);
2856
+ var i = this.yearinfo, u = i.yearlen, o = i.mrange, s = i.wdaymask;
2857
+ this.monthinfo = bm(e, t, u, o, s, r);
2858
2858
  }
2859
2859
  K(r.byeaster) && (this.eastermask = ym(e, r.byeaster));
2860
2860
  }, Object.defineProperty(n.prototype, "lastyear", {
@@ -2936,7 +2936,7 @@ var vm = (
2936
2936
  u[o] = o;
2937
2937
  return [u, r, i];
2938
2938
  }, n.prototype.wdayset = function(e, t, r) {
2939
- for (var i = _(null, this.yearlen + 7), u = $r(Ie(e, t, r)) - this.yearordinal, o = u, a = 0; a < 7 && (i[u] = u, ++u, this.wdaymask[u] !== this.options.wkst); a++)
2939
+ for (var i = _(null, this.yearlen + 7), u = $r(Ie(e, t, r)) - this.yearordinal, o = u, s = 0; s < 7 && (i[u] = u, ++u, this.wdaymask[u] !== this.options.wkst); s++)
2940
2940
  ;
2941
2941
  return [i, o, u];
2942
2942
  }, n.prototype.ddayset = function(e, t, r) {
@@ -2944,8 +2944,8 @@ var vm = (
2944
2944
  return i[u] = u, [i, u, u + 1];
2945
2945
  }, n.prototype.htimeset = function(e, t, r, i) {
2946
2946
  var u = this, o = [];
2947
- return this.options.byminute.forEach(function(a) {
2948
- o = o.concat(u.mtimeset(e, a, r, i));
2947
+ return this.options.byminute.forEach(function(s) {
2948
+ o = o.concat(u.mtimeset(e, s, r, i));
2949
2949
  }), ot(o), o;
2950
2950
  }, n.prototype.mtimeset = function(e, t, r, i) {
2951
2951
  var u = this.options.bysecond.map(function(o) {
@@ -2980,28 +2980,28 @@ var vm = (
2980
2980
  }()
2981
2981
  );
2982
2982
  function km(n, e, t, r, i, u) {
2983
- for (var o = [], a = 0; a < n.length; a++) {
2984
- var s = void 0, l = void 0, d = n[a];
2985
- d < 0 ? (s = Math.floor(d / e.length), l = ce(d, e.length)) : (s = Math.floor((d - 1) / e.length), l = ce(d - 1, e.length));
2983
+ for (var o = [], s = 0; s < n.length; s++) {
2984
+ var a = void 0, l = void 0, d = n[s];
2985
+ d < 0 ? (a = Math.floor(d / e.length), l = ce(d, e.length)) : (a = Math.floor((d - 1) / e.length), l = ce(d - 1, e.length));
2986
2986
  for (var f = [], c = t; c < r; c++) {
2987
2987
  var h = u[c];
2988
2988
  K(h) && f.push(h);
2989
2989
  }
2990
2990
  var p = void 0;
2991
- s < 0 ? p = f.slice(s)[0] : p = f[s];
2991
+ a < 0 ? p = f.slice(a)[0] : p = f[a];
2992
2992
  var m = e[l], g = du(i.yearordinal + p), w = fu(g, m);
2993
2993
  H(o, w) || o.push(w);
2994
2994
  }
2995
2995
  return ot(o), o;
2996
2996
  }
2997
2997
  function pu(n, e) {
2998
- var t = e.dtstart, r = e.freq, i = e.interval, u = e.until, o = e.bysetpos, a = e.count;
2999
- if (a === 0 || i === 0)
2998
+ var t = e.dtstart, r = e.freq, i = e.interval, u = e.until, o = e.bysetpos, s = e.count;
2999
+ if (s === 0 || i === 0)
3000
3000
  return $e(n);
3001
- var s = Kp.fromDate(t), l = new vm(e);
3002
- l.rebuild(s.year, s.month);
3003
- for (var d = Em(l, s, e); ; ) {
3004
- var f = l.getdayset(r)(s.year, s.month, s.day), c = f[0], h = f[1], p = f[2], m = wm(c, h, p, l, e);
3001
+ var a = Kp.fromDate(t), l = new vm(e);
3002
+ l.rebuild(a.year, a.month);
3003
+ for (var d = Em(l, a, e); ; ) {
3004
+ var f = l.getdayset(r)(a.year, a.month, a.day), c = f[0], h = f[1], p = f[2], m = wm(c, h, p, l, e);
3005
3005
  if (V(o))
3006
3006
  for (var g = km(o, d, h, p, l, c), w = 0; w < g.length; w++) {
3007
3007
  var S = g[w];
@@ -3009,7 +3009,7 @@ function pu(n, e) {
3009
3009
  return $e(n);
3010
3010
  if (S >= t) {
3011
3011
  var L = zn(S, e);
3012
- if (!n.accept(L) || a && (--a, !a))
3012
+ if (!n.accept(L) || s && (--s, !s))
3013
3013
  return $e(n);
3014
3014
  }
3015
3015
  }
@@ -3023,19 +3023,19 @@ function pu(n, e) {
3023
3023
  return $e(n);
3024
3024
  if (S >= t) {
3025
3025
  var L = zn(S, e);
3026
- if (!n.accept(L) || a && (--a, !a))
3026
+ if (!n.accept(L) || s && (--s, !s))
3027
3027
  return $e(n);
3028
3028
  }
3029
3029
  }
3030
3030
  }
3031
- if (e.interval === 0 || (s.add(e, m), s.year > au))
3031
+ if (e.interval === 0 || (a.add(e, m), a.year > au))
3032
3032
  return $e(n);
3033
- tn(r) || (d = l.gettimeset(r)(s.hour, s.minute, s.second, 0)), l.rebuild(s.year, s.month);
3033
+ tn(r) || (d = l.gettimeset(r)(a.hour, a.minute, a.second, 0)), l.rebuild(a.year, a.month);
3034
3034
  }
3035
3035
  }
3036
3036
  function xm(n, e, t) {
3037
- var r = t.bymonth, i = t.byweekno, u = t.byweekday, o = t.byeaster, a = t.bymonthday, s = t.bynmonthday, l = t.byyearday;
3038
- return V(r) && !H(r, n.mmask[e]) || V(i) && !n.wnomask[e] || V(u) && !H(u, n.wdaymask[e]) || V(n.nwdaymask) && !n.nwdaymask[e] || o !== null && !H(n.eastermask, e) || (V(a) || V(s)) && !H(a, n.mdaymask[e]) && !H(s, n.nmdaymask[e]) || V(l) && (e < n.yearlen && !H(l, e + 1) && !H(l, -n.yearlen + e) || e >= n.yearlen && !H(l, e + 1 - n.yearlen) && !H(l, -n.nextyearlen + e - n.yearlen));
3037
+ var r = t.bymonth, i = t.byweekno, u = t.byweekday, o = t.byeaster, s = t.bymonthday, a = t.bynmonthday, l = t.byyearday;
3038
+ return V(r) && !H(r, n.mmask[e]) || V(i) && !n.wnomask[e] || V(u) && !H(u, n.wdaymask[e]) || V(n.nwdaymask) && !n.nwdaymask[e] || o !== null && !H(n.eastermask, e) || (V(s) || V(a)) && !H(s, n.mdaymask[e]) && !H(a, n.nmdaymask[e]) || V(l) && (e < n.yearlen && !H(l, e + 1) && !H(l, -n.yearlen + e) || e >= n.yearlen && !H(l, e + 1 - n.yearlen) && !H(l, -n.nextyearlen + e - n.yearlen));
3039
3039
  }
3040
3040
  function zn(n, e) {
3041
3041
  return new qt(n, e.tzid).rezonedDate();
@@ -3045,8 +3045,8 @@ function $e(n) {
3045
3045
  }
3046
3046
  function wm(n, e, t, r, i) {
3047
3047
  for (var u = !1, o = e; o < t; o++) {
3048
- var a = n[o];
3049
- u = xm(r, a, i), u && (n[a] = null);
3048
+ var s = n[o];
3049
+ u = xm(r, s, i), u && (n[s] = null);
3050
3050
  }
3051
3051
  return u;
3052
3052
  }
@@ -3152,8 +3152,8 @@ var de = {
3152
3152
  }()
3153
3153
  );
3154
3154
  function Tm(n, e, t, r, i, u) {
3155
- var o = {}, a = n.accept;
3156
- function s(c, h) {
3155
+ var o = {}, s = n.accept;
3156
+ function a(c, h) {
3157
3157
  t.forEach(function(p) {
3158
3158
  p.between(c, h, !0).forEach(function(m) {
3159
3159
  o[Number(m)] = !0;
@@ -3165,10 +3165,10 @@ function Tm(n, e, t, r, i, u) {
3165
3165
  o[Number(h)] = !0;
3166
3166
  }), n.accept = function(c) {
3167
3167
  var h = Number(c);
3168
- return isNaN(h) ? a.call(this, c) : !o[h] && (s(new Date(h - 1), new Date(h + 1)), !o[h]) ? (o[h] = !0, a.call(this, c)) : !0;
3169
- }, n.method === "between" && (s(n.args.after, n.args.before), n.accept = function(c) {
3168
+ return isNaN(h) ? s.call(this, c) : !o[h] && (a(new Date(h - 1), new Date(h + 1)), !o[h]) ? (o[h] = !0, s.call(this, c)) : !0;
3169
+ }, n.method === "between" && (a(n.args.after, n.args.before), n.accept = function(c) {
3170
3170
  var h = Number(c);
3171
- return o[h] ? !0 : (o[h] = !0, a.call(this, c));
3171
+ return o[h] ? !0 : (o[h] = !0, s.call(this, c));
3172
3172
  });
3173
3173
  for (var l = 0; l < r.length; l++) {
3174
3174
  var d = new qt(r[l], u).rezonedDate();
@@ -3199,7 +3199,7 @@ var Wn = {
3199
3199
  tzid: null
3200
3200
  };
3201
3201
  function Sm(n, e) {
3202
- var t = [], r = [], i = [], u = [], o = Yt(n), a = o.dtstart, s = o.tzid, l = Mm(n, e.unfold);
3202
+ var t = [], r = [], i = [], u = [], o = Yt(n), s = o.dtstart, a = o.tzid, l = Mm(n, e.unfold);
3203
3203
  return l.forEach(function(d) {
3204
3204
  var f;
3205
3205
  if (d) {
@@ -3212,7 +3212,7 @@ function Sm(n, e) {
3212
3212
  break;
3213
3213
  case "RDATE":
3214
3214
  var g = (f = /RDATE(?:;TZID=([^:=]+))?/i.exec(d)) !== null && f !== void 0 ? f : [], w = g[1];
3215
- w && !s && (s = w), r = r.concat(Kn(m, p));
3215
+ w && !a && (a = w), r = r.concat(Kn(m, p));
3216
3216
  break;
3217
3217
  case "EXRULE":
3218
3218
  if (p.length)
@@ -3229,8 +3229,8 @@ function Sm(n, e) {
3229
3229
  }
3230
3230
  }
3231
3231
  }), {
3232
- dtstart: a,
3233
- tzid: s,
3232
+ dtstart: s,
3233
+ tzid: a,
3234
3234
  rrulevals: t,
3235
3235
  rdatevals: r,
3236
3236
  exrulevals: i,
@@ -3238,21 +3238,21 @@ function Sm(n, e) {
3238
3238
  };
3239
3239
  }
3240
3240
  function Bm(n, e) {
3241
- var t = Sm(n, e), r = t.rrulevals, i = t.rdatevals, u = t.exrulevals, o = t.exdatevals, a = t.dtstart, s = t.tzid, l = e.cache === !1;
3241
+ var t = Sm(n, e), r = t.rrulevals, i = t.rdatevals, u = t.exrulevals, o = t.exdatevals, s = t.dtstart, a = t.tzid, l = e.cache === !1;
3242
3242
  if (e.compatible && (e.forceset = !0, e.unfold = !0), e.forceset || r.length > 1 || i.length || u.length || o.length) {
3243
3243
  var d = new Pm(l);
3244
- return d.dtstart(a), d.tzid(s || void 0), r.forEach(function(c) {
3245
- d.rrule(new R(dr(c, a, s), l));
3244
+ return d.dtstart(s), d.tzid(a || void 0), r.forEach(function(c) {
3245
+ d.rrule(new R(dr(c, s, a), l));
3246
3246
  }), i.forEach(function(c) {
3247
3247
  d.rdate(c);
3248
3248
  }), u.forEach(function(c) {
3249
- d.exrule(new R(dr(c, a, s), l));
3249
+ d.exrule(new R(dr(c, s, a), l));
3250
3250
  }), o.forEach(function(c) {
3251
3251
  d.exdate(c);
3252
- }), e.compatible && e.dtstart && d.rdate(a), d;
3252
+ }), e.compatible && e.dtstart && d.rdate(s), d;
3253
3253
  }
3254
3254
  var f = r[0] || {};
3255
- return new R(dr(f, f.dtstart || e.dtstart || a, f.tzid || e.tzid || s), l);
3255
+ return new R(dr(f, f.dtstart || e.dtstart || s, f.tzid || e.tzid || a), l);
3256
3256
  }
3257
3257
  function Gn(n, e) {
3258
3258
  return e === void 0 && (e = {}), Bm(n, Cm(e));
@@ -3488,13 +3488,13 @@ class nr {
3488
3488
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
3489
3489
  r[i - 1] = arguments[i];
3490
3490
  this.observers[e] && Array.from(this.observers[e].entries()).forEach((o) => {
3491
- let [a, s] = o;
3492
- for (let l = 0; l < s; l++)
3493
- a(...r);
3491
+ let [s, a] = o;
3492
+ for (let l = 0; l < a; l++)
3493
+ s(...r);
3494
3494
  }), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((o) => {
3495
- let [a, s] = o;
3496
- for (let l = 0; l < s; l++)
3497
- a.apply(a, [e, ...r]);
3495
+ let [s, a] = o;
3496
+ for (let l = 0; l < a; l++)
3497
+ s.apply(s, [e, ...r]);
3498
3498
  });
3499
3499
  }
3500
3500
  }
@@ -3515,8 +3515,8 @@ function Lm(n, e, t) {
3515
3515
  }
3516
3516
  const Im = /###/g;
3517
3517
  function nt(n, e, t) {
3518
- function r(a) {
3519
- return a && a.indexOf("###") > -1 ? a.replace(Im, ".") : a;
3518
+ function r(s) {
3519
+ return s && s.indexOf("###") > -1 ? s.replace(Im, ".") : s;
3520
3520
  }
3521
3521
  function i() {
3522
3522
  return !n || typeof n == "string";
@@ -3525,8 +3525,8 @@ function nt(n, e, t) {
3525
3525
  let o = 0;
3526
3526
  for (; o < u.length - 1; ) {
3527
3527
  if (i()) return {};
3528
- const a = r(u[o]);
3529
- !n[a] && t && (n[a] = new t()), Object.prototype.hasOwnProperty.call(n, a) ? n = n[a] : n = {}, ++o;
3528
+ const s = r(u[o]);
3529
+ !n[s] && t && (n[s] = new t()), Object.prototype.hasOwnProperty.call(n, s) ? n = n[s] : n = {}, ++o;
3530
3530
  }
3531
3531
  return i() ? {} : {
3532
3532
  obj: n,
@@ -3542,10 +3542,10 @@ function ei(n, e, t) {
3542
3542
  r[i] = t;
3543
3543
  return;
3544
3544
  }
3545
- let u = e[e.length - 1], o = e.slice(0, e.length - 1), a = nt(n, o, Object);
3546
- for (; a.obj === void 0 && o.length; )
3547
- u = `${o[o.length - 1]}.${u}`, o = o.slice(0, o.length - 1), a = nt(n, o, Object), a && a.obj && typeof a.obj[`${a.k}.${u}`] < "u" && (a.obj = void 0);
3548
- a.obj[`${a.k}.${u}`] = t;
3545
+ let u = e[e.length - 1], o = e.slice(0, e.length - 1), s = nt(n, o, Object);
3546
+ for (; s.obj === void 0 && o.length; )
3547
+ u = `${o[o.length - 1]}.${u}`, o = o.slice(0, o.length - 1), s = nt(n, o, Object), s && s.obj && typeof s.obj[`${s.k}.${u}`] < "u" && (s.obj = void 0);
3548
+ s.obj[`${s.k}.${u}`] = t;
3549
3549
  }
3550
3550
  function Nm(n, e, t, r) {
3551
3551
  const {
@@ -3619,12 +3619,12 @@ function Ar(n, e) {
3619
3619
  for (let u = 0; u < r.length; ) {
3620
3620
  if (!i || typeof i != "object")
3621
3621
  return;
3622
- let o, a = "";
3623
- for (let s = u; s < r.length; ++s)
3624
- if (s !== u && (a += t), a += r[s], o = i[a], o !== void 0) {
3625
- if (["string", "number", "boolean"].indexOf(typeof o) > -1 && s < r.length - 1)
3622
+ let o, s = "";
3623
+ for (let a = u; a < r.length; ++a)
3624
+ if (a !== u && (s += t), s += r[a], o = i[s], o !== void 0) {
3625
+ if (["string", "number", "boolean"].indexOf(typeof o) > -1 && a < r.length - 1)
3626
3626
  continue;
3627
- u += s - u + 1;
3627
+ u += a - u + 1;
3628
3628
  break;
3629
3629
  }
3630
3630
  i = o;
@@ -3652,18 +3652,18 @@ class ti extends nr {
3652
3652
  getResource(e, t, r) {
3653
3653
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
3654
3654
  const u = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, o = i.ignoreJSONStructure !== void 0 ? i.ignoreJSONStructure : this.options.ignoreJSONStructure;
3655
- let a;
3656
- e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], r && (Array.isArray(r) ? a.push(...r) : typeof r == "string" && u ? a.push(...r.split(u)) : a.push(r)));
3657
- const s = zt(this.data, a);
3658
- return !s && !t && !r && e.indexOf(".") > -1 && (e = a[0], t = a[1], r = a.slice(2).join(".")), s || !o || typeof r != "string" ? s : Ar(this.data && this.data[e] && this.data[e][t], r, u);
3655
+ let s;
3656
+ e.indexOf(".") > -1 ? s = e.split(".") : (s = [e, t], r && (Array.isArray(r) ? s.push(...r) : typeof r == "string" && u ? s.push(...r.split(u)) : s.push(r)));
3657
+ const a = zt(this.data, s);
3658
+ return !a && !t && !r && e.indexOf(".") > -1 && (e = s[0], t = s[1], r = s.slice(2).join(".")), a || !o || typeof r != "string" ? a : Ar(this.data && this.data[e] && this.data[e][t], r, u);
3659
3659
  }
3660
3660
  addResource(e, t, r, i) {
3661
3661
  let u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
3662
3662
  silent: !1
3663
3663
  };
3664
3664
  const o = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator;
3665
- let a = [e, t];
3666
- r && (a = a.concat(o ? r.split(o) : r)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), ei(this.data, a, i), u.silent || this.emit("added", e, t, r, i);
3665
+ let s = [e, t];
3666
+ r && (s = s.concat(o ? r.split(o) : r)), e.indexOf(".") > -1 && (s = e.split("."), i = t, t = s[1]), this.addNamespaces(t), ei(this.data, s, i), u.silent || this.emit("added", e, t, r, i);
3667
3667
  }
3668
3668
  addResources(e, t, r) {
3669
3669
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
@@ -3679,13 +3679,13 @@ class ti extends nr {
3679
3679
  let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {
3680
3680
  silent: !1,
3681
3681
  skipCopy: !1
3682
- }, a = [e, t];
3683
- e.indexOf(".") > -1 && (a = e.split("."), i = r, r = t, t = a[1]), this.addNamespaces(t);
3684
- let s = zt(this.data, a) || {};
3685
- o.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? mu(s, r, u) : s = {
3686
- ...s,
3682
+ }, s = [e, t];
3683
+ e.indexOf(".") > -1 && (s = e.split("."), i = r, r = t, t = s[1]), this.addNamespaces(t);
3684
+ let a = zt(this.data, s) || {};
3685
+ o.skipCopy || (r = JSON.parse(JSON.stringify(r))), i ? mu(a, r, u) : a = {
3686
+ ...a,
3687
3687
  ...r
3688
- }, ei(this.data, a, s), o.silent || this.emit("added", e, t, r);
3688
+ }, ei(this.data, s, a), o.silent || this.emit("added", e, t, r);
3689
3689
  }
3690
3690
  removeResourceBundle(e, t) {
3691
3691
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -3743,10 +3743,10 @@ class Gt extends nr {
3743
3743
  r === void 0 && (r = ":");
3744
3744
  const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
3745
3745
  let u = t.ns || this.options.defaultNS || [];
3746
- const o = r && e.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Hm(e, r, i);
3747
- if (o && !a) {
3748
- const s = e.match(this.interpolator.nestingRegexp);
3749
- if (s && s.length > 0)
3746
+ const o = r && e.indexOf(r) > -1, s = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Hm(e, r, i);
3747
+ if (o && !s) {
3748
+ const a = e.match(this.interpolator.nestingRegexp);
3749
+ if (a && a.length > 0)
3750
3750
  return {
3751
3751
  key: e,
3752
3752
  namespaces: u
@@ -3766,26 +3766,26 @@ class Gt extends nr {
3766
3766
  Array.isArray(e) || (e = [String(e)]);
3767
3767
  const i = t.returnDetails !== void 0 ? t.returnDetails : this.options.returnDetails, u = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator, {
3768
3768
  key: o,
3769
- namespaces: a
3770
- } = this.extractFromKey(e[e.length - 1], t), s = a[a.length - 1], l = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
3769
+ namespaces: s
3770
+ } = this.extractFromKey(e[e.length - 1], t), a = s[s.length - 1], l = t.lng || this.language, d = t.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
3771
3771
  if (l && l.toLowerCase() === "cimode") {
3772
3772
  if (d) {
3773
3773
  const A = t.nsSeparator || this.options.nsSeparator;
3774
3774
  return i ? {
3775
- res: `${s}${A}${o}`,
3775
+ res: `${a}${A}${o}`,
3776
3776
  usedKey: o,
3777
3777
  exactUsedKey: o,
3778
3778
  usedLng: l,
3779
- usedNS: s,
3779
+ usedNS: a,
3780
3780
  usedParams: this.getUsedParamsDetails(t)
3781
- } : `${s}${A}${o}`;
3781
+ } : `${a}${A}${o}`;
3782
3782
  }
3783
3783
  return i ? {
3784
3784
  res: o,
3785
3785
  usedKey: o,
3786
3786
  exactUsedKey: o,
3787
3787
  usedLng: l,
3788
- usedNS: s,
3788
+ usedNS: a,
3789
3789
  usedParams: this.getUsedParamsDetails(t)
3790
3790
  } : o;
3791
3791
  }
@@ -3797,7 +3797,7 @@ class Gt extends nr {
3797
3797
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
3798
3798
  const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, c, {
3799
3799
  ...t,
3800
- ns: a
3800
+ ns: s
3801
3801
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
3802
3802
  return i ? (f.res = A, f.usedParams = this.getUsedParamsDetails(t), f) : A;
3803
3803
  }
@@ -3809,7 +3809,7 @@ class Gt extends nr {
3809
3809
  M[I] = this.translate(Y, {
3810
3810
  ...t,
3811
3811
  joinArrays: !1,
3812
- ns: a
3812
+ ns: s
3813
3813
  }), M[I] === Y && (M[I] = c[I]);
3814
3814
  }
3815
3815
  c = M;
@@ -3824,7 +3824,7 @@ class Gt extends nr {
3824
3824
  !this.isValidLookup(c) && I && (A = !0, c = b), this.isValidLookup(c) || (M = !0, c = o);
3825
3825
  const k = (t.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : c, y = I && b !== c && this.options.updateMissing;
3826
3826
  if (M || A || y) {
3827
- if (this.logger.log(y ? "updateKey" : "missingKey", l, s, o, y ? b : c), u) {
3827
+ if (this.logger.log(y ? "updateKey" : "missingKey", l, a, o, y ? b : c), u) {
3828
3828
  const B = this.resolve(o, {
3829
3829
  ...t,
3830
3830
  keySeparator: !1
@@ -3839,7 +3839,7 @@ class Gt extends nr {
3839
3839
  else this.options.saveMissingTo === "all" ? v = this.languageUtils.toResolveHierarchy(t.lng || this.language) : v.push(t.lng || this.language);
3840
3840
  const E = (B, D, F) => {
3841
3841
  const z = I && F !== c ? F : k;
3842
- this.options.missingKeyHandler ? this.options.missingKeyHandler(B, s, D, z, y, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(B, s, D, z, y, t), this.emit("missingKey", B, s, D, c);
3842
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(B, a, D, z, y, t) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(B, a, D, z, y, t), this.emit("missingKey", B, a, D, c);
3843
3843
  };
3844
3844
  this.options.saveMissing && (this.options.saveMissingPlurals && O ? v.forEach((B) => {
3845
3845
  const D = this.pluralResolver.getSuffixes(B, t);
@@ -3848,7 +3848,7 @@ class Gt extends nr {
3848
3848
  });
3849
3849
  }) : E(v, o, b));
3850
3850
  }
3851
- c = this.extendTranslation(c, e, t, f, r), M && c === o && this.options.appendNamespaceToMissingKey && (c = `${s}:${o}`), (M || A) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${s}:${o}` : o, A ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
3851
+ c = this.extendTranslation(c, e, t, f, r), M && c === o && this.options.appendNamespaceToMissingKey && (c = `${a}:${o}`), (M || A) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${a}:${o}` : o, A ? c : void 0) : c = this.options.parseMissingKeyHandler(c));
3852
3852
  }
3853
3853
  return i ? (f.res = c, f.usedParams = this.getUsedParamsDetails(t), f) : c;
3854
3854
  }
@@ -3889,8 +3889,8 @@ class Gt extends nr {
3889
3889
  return u && u[0] === h[0] && !r.context ? (o.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : o.translate(...h, t);
3890
3890
  }, r)), r.interpolation && this.interpolator.reset();
3891
3891
  }
3892
- const a = r.postProcess || this.options.postProcess, s = typeof a == "string" ? [a] : a;
3893
- return e != null && s && s.length && r.applyPostProcessor !== !1 && (e = bu.handle(s, e, t, this.options && this.options.postProcessPassResolved ? {
3892
+ const s = r.postProcess || this.options.postProcess, a = typeof s == "string" ? [s] : s;
3893
+ return e != null && a && a.length && r.applyPostProcessor !== !1 && (e = bu.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
3894
3894
  i18nResolved: {
3895
3895
  ...i,
3896
3896
  usedParams: this.getUsedParamsDetails(r)
@@ -3899,16 +3899,16 @@ class Gt extends nr {
3899
3899
  } : r, this)), e;
3900
3900
  }
3901
3901
  resolve(e) {
3902
- let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, i, u, o, a;
3903
- return typeof e == "string" && (e = [e]), e.forEach((s) => {
3902
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, i, u, o, s;
3903
+ return typeof e == "string" && (e = [e]), e.forEach((a) => {
3904
3904
  if (this.isValidLookup(r)) return;
3905
- const l = this.extractFromKey(s, t), d = l.key;
3905
+ const l = this.extractFromKey(a, t), d = l.key;
3906
3906
  i = d;
3907
3907
  let f = l.namespaces;
3908
3908
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
3909
3909
  const c = t.count !== void 0 && typeof t.count != "string", h = c && !t.ordinal && t.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = t.context !== void 0 && (typeof t.context == "string" || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
3910
3910
  f.forEach((g) => {
3911
- this.isValidLookup(r) || (a = g, !ri[`${m[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (ri[`${m[0]}-${g}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((w) => {
3911
+ this.isValidLookup(r) || (s = g, !ri[`${m[0]}-${g}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(s) && (ri[`${m[0]}-${g}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((w) => {
3912
3912
  if (this.isValidLookup(r)) return;
3913
3913
  o = w;
3914
3914
  const S = [d];
@@ -3933,7 +3933,7 @@ class Gt extends nr {
3933
3933
  usedKey: i,
3934
3934
  exactUsedKey: u,
3935
3935
  usedLng: o,
3936
- usedNS: a
3936
+ usedNS: s
3937
3937
  };
3938
3938
  }
3939
3939
  isValidLookup(e) {
@@ -4278,8 +4278,8 @@ class Zm {
4278
4278
  useRawValueToEscape: i,
4279
4279
  prefix: u,
4280
4280
  prefixEscaped: o,
4281
- suffix: a,
4282
- suffixEscaped: s,
4281
+ suffix: s,
4282
+ suffixEscaped: a,
4283
4283
  formatSeparator: l,
4284
4284
  unescapeSuffix: d,
4285
4285
  unescapePrefix: f,
@@ -4291,7 +4291,7 @@ class Zm {
4291
4291
  maxReplaces: w,
4292
4292
  alwaysFormat: S
4293
4293
  } = e.interpolation;
4294
- this.escape = t !== void 0 ? t : _m, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = u ? _e(u) : o || "{{", this.suffix = a ? _e(a) : s || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = c ? _e(c) : h || _e("$t("), this.nestingSuffix = p ? _e(p) : m || _e(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
4294
+ this.escape = t !== void 0 ? t : _m, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = u ? _e(u) : o || "{{", this.suffix = s ? _e(s) : a || "}}", this.formatSeparator = l || ",", this.unescapePrefix = d ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = c ? _e(c) : h || _e("$t("), this.nestingSuffix = p ? _e(p) : m || _e(")"), this.nestingOptionsSeparator = g || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
4295
4295
  }
4296
4296
  reset() {
4297
4297
  this.options && this.init(this.options);
@@ -4301,14 +4301,14 @@ class Zm {
4301
4301
  this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
4302
4302
  }
4303
4303
  interpolate(e, t, r, i) {
4304
- let u, o, a;
4305
- const s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
4304
+ let u, o, s;
4305
+ const a = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
4306
4306
  function l(p) {
4307
4307
  return p.replace(/\$/g, "$$$$");
4308
4308
  }
4309
4309
  const d = (p) => {
4310
4310
  if (p.indexOf(this.formatSeparator) < 0) {
4311
- const S = ui(t, s, p, this.options.keySeparator, this.options.ignoreJSONStructure);
4311
+ const S = ui(t, a, p, this.options.keySeparator, this.options.ignoreJSONStructure);
4312
4312
  return this.alwaysFormat ? this.format(S, void 0, r, {
4313
4313
  ...i,
4314
4314
  ...t,
@@ -4316,7 +4316,7 @@ class Zm {
4316
4316
  }) : S;
4317
4317
  }
4318
4318
  const m = p.split(this.formatSeparator), g = m.shift().trim(), w = m.join(this.formatSeparator).trim();
4319
- return this.format(ui(t, s, g, this.options.keySeparator, this.options.ignoreJSONStructure), w, r, {
4319
+ return this.format(ui(t, a, g, this.options.keySeparator, this.options.ignoreJSONStructure), w, r, {
4320
4320
  ...i,
4321
4321
  ...t,
4322
4322
  interpolationkey: g
@@ -4331,7 +4331,7 @@ class Zm {
4331
4331
  regex: this.regexp,
4332
4332
  safeValue: (p) => this.escapeValue ? l(this.escape(p)) : l(p)
4333
4333
  }].forEach((p) => {
4334
- for (a = 0; u = p.regex.exec(e); ) {
4334
+ for (s = 0; u = p.regex.exec(e); ) {
4335
4335
  const m = u[1].trim();
4336
4336
  if (o = d(m), o === void 0)
4337
4337
  if (typeof f == "function") {
@@ -4346,19 +4346,19 @@ class Zm {
4346
4346
  this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`), o = "";
4347
4347
  else typeof o != "string" && !this.useRawValueToEscape && (o = Xn(o));
4348
4348
  const g = p.safeValue(o);
4349
- if (e = e.replace(u[0], g), c ? (p.regex.lastIndex += o.length, p.regex.lastIndex -= u[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
4349
+ if (e = e.replace(u[0], g), c ? (p.regex.lastIndex += o.length, p.regex.lastIndex -= u[0].length) : p.regex.lastIndex = 0, s++, s >= this.maxReplaces)
4350
4350
  break;
4351
4351
  }
4352
4352
  }), e;
4353
4353
  }
4354
4354
  nest(e, t) {
4355
4355
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i, u, o;
4356
- function a(s, l) {
4356
+ function s(a, l) {
4357
4357
  const d = this.nestingOptionsSeparator;
4358
- if (s.indexOf(d) < 0) return s;
4359
- const f = s.split(new RegExp(`${d}[ ]*{`));
4358
+ if (a.indexOf(d) < 0) return a;
4359
+ const f = a.split(new RegExp(`${d}[ ]*{`));
4360
4360
  let c = `{${f[1]}`;
4361
- s = f[0], c = this.interpolate(c, o);
4361
+ a = f[0], c = this.interpolate(c, o);
4362
4362
  const h = c.match(/'/g), p = c.match(/"/g);
4363
4363
  (h && h.length % 2 === 0 && !p || p.length % 2 !== 0) && (c = c.replace(/'/g, '"'));
4364
4364
  try {
@@ -4367,22 +4367,22 @@ class Zm {
4367
4367
  ...o
4368
4368
  });
4369
4369
  } catch (m) {
4370
- return this.logger.warn(`failed parsing options string in nesting for key ${s}`, m), `${s}${d}${c}`;
4370
+ return this.logger.warn(`failed parsing options string in nesting for key ${a}`, m), `${a}${d}${c}`;
4371
4371
  }
4372
- return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, s;
4372
+ return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, a;
4373
4373
  }
4374
4374
  for (; i = this.nestingRegexp.exec(e); ) {
4375
- let s = [];
4375
+ let a = [];
4376
4376
  o = {
4377
4377
  ...r
4378
4378
  }, o = o.replace && typeof o.replace != "string" ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
4379
4379
  let l = !1;
4380
4380
  if (i[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(i[1])) {
4381
4381
  const d = i[1].split(this.formatSeparator).map((f) => f.trim());
4382
- i[1] = d.shift(), s = d, l = !0;
4382
+ i[1] = d.shift(), a = d, l = !0;
4383
4383
  }
4384
- if (u = t(a.call(this, i[1].trim(), o), o), u && i[0] === e && typeof u != "string") return u;
4385
- typeof u != "string" && (u = Xn(u)), u || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), u = ""), l && (u = s.reduce((d, f) => this.format(d, f, r.lng, {
4384
+ if (u = t(s.call(this, i[1].trim(), o), o), u && i[0] === e && typeof u != "string") return u;
4385
+ typeof u != "string" && (u = Xn(u)), u || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), u = ""), l && (u = a.reduce((d, f) => this.format(d, f, r.lng, {
4386
4386
  ...r,
4387
4387
  interpolationkey: i[1].trim()
4388
4388
  }), u.trim())), e = e.replace(i[0], u), this.regexp.lastIndex = 0;
@@ -4399,7 +4399,7 @@ function Qm(n) {
4399
4399
  const i = r[1].substring(0, r[1].length - 1);
4400
4400
  e === "currency" && i.indexOf(":") < 0 ? t.currency || (t.currency = i.trim()) : e === "relativetime" && i.indexOf(":") < 0 ? t.range || (t.range = i.trim()) : i.split(";").forEach((o) => {
4401
4401
  if (o) {
4402
- const [a, ...s] = o.split(":"), l = s.join(":").trim().replace(/^'+|'+$/g, ""), d = a.trim();
4402
+ const [s, ...a] = o.split(":"), l = a.join(":").trim().replace(/^'+|'+$/g, ""), d = s.trim();
4403
4403
  t[d] || (t[d] = l), l === "false" && (t[d] = !1), l === "true" && (t[d] = !0), isNaN(l) || (t[d] = parseInt(l, 10));
4404
4404
  }
4405
4405
  });
@@ -4413,8 +4413,8 @@ function je(n) {
4413
4413
  const e = {};
4414
4414
  return function(r, i, u) {
4415
4415
  const o = i + JSON.stringify(u);
4416
- let a = e[o];
4417
- return a || (a = n(Wt(i), u), e[o] = a), a(r);
4416
+ let s = e[o];
4417
+ return s || (s = n(Wt(i), u), e[o] = s), s(r);
4418
4418
  };
4419
4419
  }
4420
4420
  class Xm {
@@ -4468,16 +4468,16 @@ class Xm {
4468
4468
  }
4469
4469
  format(e, t, r) {
4470
4470
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
4471
- return t.split(this.formatSeparator).reduce((a, s) => {
4471
+ return t.split(this.formatSeparator).reduce((s, a) => {
4472
4472
  const {
4473
4473
  formatName: l,
4474
4474
  formatOptions: d
4475
- } = Qm(s);
4475
+ } = Qm(a);
4476
4476
  if (this.formats[l]) {
4477
- let f = a;
4477
+ let f = s;
4478
4478
  try {
4479
4479
  const c = i && i.formatParams && i.formatParams[i.interpolationkey] || {}, h = c.locale || c.lng || i.locale || i.lng || r;
4480
- f = this.formats[l](a, h, {
4480
+ f = this.formats[l](s, h, {
4481
4481
  ...d,
4482
4482
  ...i,
4483
4483
  ...c
@@ -4488,7 +4488,7 @@ class Xm {
4488
4488
  return f;
4489
4489
  } else
4490
4490
  this.logger.warn(`there was no format function for ${l}`);
4491
- return a;
4491
+ return s;
4492
4492
  }, e);
4493
4493
  }
4494
4494
  }
@@ -4501,13 +4501,13 @@ class tb extends nr {
4501
4501
  super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = i, this.logger = ke.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, i.backend, i);
4502
4502
  }
4503
4503
  queueLoad(e, t, r, i) {
4504
- const u = {}, o = {}, a = {}, s = {};
4504
+ const u = {}, o = {}, s = {}, a = {};
4505
4505
  return e.forEach((l) => {
4506
4506
  let d = !0;
4507
4507
  t.forEach((f) => {
4508
4508
  const c = `${l}|${f}`;
4509
- !r.reload && this.store.hasResourceBundle(l, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? o[c] === void 0 && (o[c] = !0) : (this.state[c] = 1, d = !1, o[c] === void 0 && (o[c] = !0), u[c] === void 0 && (u[c] = !0), s[f] === void 0 && (s[f] = !0)));
4510
- }), d || (a[l] = !0);
4509
+ !r.reload && this.store.hasResourceBundle(l, f) ? this.state[c] = 2 : this.state[c] < 0 || (this.state[c] === 1 ? o[c] === void 0 && (o[c] = !0) : (this.state[c] = 1, d = !1, o[c] === void 0 && (o[c] = !0), u[c] === void 0 && (u[c] = !0), a[f] === void 0 && (a[f] = !0)));
4510
+ }), d || (s[l] = !0);
4511
4511
  }), (Object.keys(u).length || Object.keys(o).length) && this.queue.push({
4512
4512
  pending: o,
4513
4513
  pendingCount: Object.keys(o).length,
@@ -4517,8 +4517,8 @@ class tb extends nr {
4517
4517
  }), {
4518
4518
  toLoad: Object.keys(u),
4519
4519
  pending: Object.keys(o),
4520
- toLoadLanguages: Object.keys(a),
4521
- toLoadNamespaces: Object.keys(s)
4520
+ toLoadLanguages: Object.keys(s),
4521
+ toLoadNamespaces: Object.keys(a)
4522
4522
  };
4523
4523
  }
4524
4524
  loaded(e, t, r) {
@@ -4526,16 +4526,16 @@ class tb extends nr {
4526
4526
  t && this.emit("failedLoading", u, o, t), r && this.store.addResourceBundle(u, o, r, void 0, void 0, {
4527
4527
  skipCopy: !0
4528
4528
  }), this.state[e] = t ? -1 : 2;
4529
- const a = {};
4530
- this.queue.forEach((s) => {
4531
- Nm(s.loaded, [u], o), eb(s, e), t && s.errors.push(t), s.pendingCount === 0 && !s.done && (Object.keys(s.loaded).forEach((l) => {
4532
- a[l] || (a[l] = {});
4533
- const d = s.loaded[l];
4529
+ const s = {};
4530
+ this.queue.forEach((a) => {
4531
+ Nm(a.loaded, [u], o), eb(a, e), t && a.errors.push(t), a.pendingCount === 0 && !a.done && (Object.keys(a.loaded).forEach((l) => {
4532
+ s[l] || (s[l] = {});
4533
+ const d = a.loaded[l];
4534
4534
  d.length && d.forEach((f) => {
4535
- a[l][f] === void 0 && (a[l][f] = !0);
4535
+ s[l][f] === void 0 && (s[l][f] = !0);
4536
4536
  });
4537
- }), s.done = !0, s.errors.length ? s.callback(s.errors) : s.callback());
4538
- }), this.emit("loaded", a), this.queue = this.queue.filter((s) => !s.done);
4537
+ }), a.done = !0, a.errors.length ? a.callback(a.errors) : a.callback());
4538
+ }), this.emit("loaded", s), this.queue = this.queue.filter((a) => !a.done);
4539
4539
  }
4540
4540
  read(e, t, r) {
4541
4541
  let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, o = arguments.length > 5 ? arguments[5] : void 0;
@@ -4552,7 +4552,7 @@ class tb extends nr {
4552
4552
  return;
4553
4553
  }
4554
4554
  this.readingCalls++;
4555
- const a = (l, d) => {
4555
+ const s = (l, d) => {
4556
4556
  if (this.readingCalls--, this.waitingReads.length > 0) {
4557
4557
  const f = this.waitingReads.shift();
4558
4558
  this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
@@ -4564,17 +4564,17 @@ class tb extends nr {
4564
4564
  return;
4565
4565
  }
4566
4566
  o(l, d);
4567
- }, s = this.backend[r].bind(this.backend);
4568
- if (s.length === 2) {
4567
+ }, a = this.backend[r].bind(this.backend);
4568
+ if (a.length === 2) {
4569
4569
  try {
4570
- const l = s(e, t);
4571
- l && typeof l.then == "function" ? l.then((d) => a(null, d)).catch(a) : a(null, l);
4570
+ const l = a(e, t);
4571
+ l && typeof l.then == "function" ? l.then((d) => s(null, d)).catch(s) : s(null, l);
4572
4572
  } catch (l) {
4573
- a(l);
4573
+ s(l);
4574
4574
  }
4575
4575
  return;
4576
4576
  }
4577
- return s(e, t, a);
4577
+ return a(e, t, s);
4578
4578
  }
4579
4579
  prepareLoading(e, t) {
4580
4580
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = arguments.length > 3 ? arguments[3] : void 0;
@@ -4599,12 +4599,12 @@ class tb extends nr {
4599
4599
  loadOne(e) {
4600
4600
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
4601
4601
  const r = e.split("|"), i = r[0], u = r[1];
4602
- this.read(i, u, "read", void 0, void 0, (o, a) => {
4603
- o && this.logger.warn(`${t}loading namespace ${u} for language ${i} failed`, o), !o && a && this.logger.log(`${t}loaded namespace ${u} for language ${i}`, a), this.loaded(e, o, a);
4602
+ this.read(i, u, "read", void 0, void 0, (o, s) => {
4603
+ o && this.logger.warn(`${t}loading namespace ${u} for language ${i} failed`, o), !o && s && this.logger.log(`${t}loaded namespace ${u} for language ${i}`, s), this.loaded(e, o, s);
4604
4604
  });
4605
4605
  }
4606
4606
  saveMissing(e, t, r, i, u) {
4607
- let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
4607
+ let o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {}, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : () => {
4608
4608
  };
4609
4609
  if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(t)) {
4610
4610
  this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
@@ -4612,19 +4612,19 @@ class tb extends nr {
4612
4612
  }
4613
4613
  if (!(r == null || r === "")) {
4614
4614
  if (this.backend && this.backend.create) {
4615
- const s = {
4615
+ const a = {
4616
4616
  ...o,
4617
4617
  isUpdate: u
4618
4618
  }, l = this.backend.create.bind(this.backend);
4619
4619
  if (l.length < 6)
4620
4620
  try {
4621
4621
  let d;
4622
- l.length === 5 ? d = l(e, t, r, i, s) : d = l(e, t, r, i), d && typeof d.then == "function" ? d.then((f) => a(null, f)).catch(a) : a(null, d);
4622
+ l.length === 5 ? d = l(e, t, r, i, a) : d = l(e, t, r, i), d && typeof d.then == "function" ? d.then((f) => s(null, f)).catch(s) : s(null, d);
4623
4623
  } catch (d) {
4624
- a(d);
4624
+ s(d);
4625
4625
  }
4626
4626
  else
4627
- l(e, t, r, i, a, s);
4627
+ l(e, t, r, i, s, a);
4628
4628
  }
4629
4629
  !e || !e[0] || this.store.addResource(e[0], t, r, i);
4630
4630
  }
@@ -4766,28 +4766,28 @@ class st extends nr {
4766
4766
  return e.store[d](...arguments), e;
4767
4767
  };
4768
4768
  });
4769
- const s = Qe(), l = () => {
4769
+ const a = Qe(), l = () => {
4770
4770
  const d = (f, c) => {
4771
- this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), s.resolve(c), r(f, c);
4771
+ this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(c), r(f, c);
4772
4772
  };
4773
4773
  if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return d(null, this.t.bind(this));
4774
4774
  this.changeLanguage(this.options.lng, d);
4775
4775
  };
4776
- return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), s;
4776
+ return this.options.resources || !this.options.initImmediate ? l() : setTimeout(l, 0), a;
4777
4777
  }
4778
4778
  loadResources(e) {
4779
4779
  let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : xt;
4780
4780
  const i = typeof e == "string" ? e : this.language;
4781
4781
  if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
4782
4782
  if (i && i.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
4783
- const u = [], o = (a) => {
4784
- if (!a || a === "cimode") return;
4785
- this.services.languageUtils.toResolveHierarchy(a).forEach((l) => {
4783
+ const u = [], o = (s) => {
4784
+ if (!s || s === "cimode") return;
4785
+ this.services.languageUtils.toResolveHierarchy(s).forEach((l) => {
4786
4786
  l !== "cimode" && u.indexOf(l) < 0 && u.push(l);
4787
4787
  });
4788
4788
  };
4789
- i ? o(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((s) => o(s)), this.options.preload && this.options.preload.forEach((a) => o(a)), this.services.backendConnector.load(u, this.options.ns, (a) => {
4790
- !a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(a);
4789
+ i ? o(i) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((a) => o(a)), this.options.preload && this.options.preload.forEach((s) => o(s)), this.services.backendConnector.load(u, this.options.ns, (s) => {
4790
+ !s && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(s);
4791
4791
  });
4792
4792
  } else
4793
4793
  r(null);
@@ -4818,39 +4818,39 @@ class st extends nr {
4818
4818
  this.isLanguageChangingTo = e;
4819
4819
  const i = Qe();
4820
4820
  this.emit("languageChanging", e);
4821
- const u = (s) => {
4822
- this.language = s, this.languages = this.services.languageUtils.toResolveHierarchy(s), this.resolvedLanguage = void 0, this.setResolvedLanguage(s);
4823
- }, o = (s, l) => {
4821
+ const u = (a) => {
4822
+ this.language = a, this.languages = this.services.languageUtils.toResolveHierarchy(a), this.resolvedLanguage = void 0, this.setResolvedLanguage(a);
4823
+ }, o = (a, l) => {
4824
4824
  l ? (u(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, i.resolve(function() {
4825
4825
  return r.t(...arguments);
4826
- }), t && t(s, function() {
4826
+ }), t && t(a, function() {
4827
4827
  return r.t(...arguments);
4828
4828
  });
4829
- }, a = (s) => {
4830
- !e && !s && this.services.languageDetector && (s = []);
4831
- const l = typeof s == "string" ? s : this.services.languageUtils.getBestMatchFromCodes(s);
4829
+ }, s = (a) => {
4830
+ !e && !a && this.services.languageDetector && (a = []);
4831
+ const l = typeof a == "string" ? a : this.services.languageUtils.getBestMatchFromCodes(a);
4832
4832
  l && (this.language || u(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(l)), this.loadResources(l, (d) => {
4833
4833
  o(d, l);
4834
4834
  });
4835
4835
  };
4836
- return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), i;
4836
+ return !e && this.services.languageDetector && !this.services.languageDetector.async ? s(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(s) : this.services.languageDetector.detect(s) : s(e), i;
4837
4837
  }
4838
4838
  getFixedT(e, t, r) {
4839
4839
  var i = this;
4840
- const u = function(o, a) {
4841
- let s;
4842
- if (typeof a != "object") {
4840
+ const u = function(o, s) {
4841
+ let a;
4842
+ if (typeof s != "object") {
4843
4843
  for (var l = arguments.length, d = new Array(l > 2 ? l - 2 : 0), f = 2; f < l; f++)
4844
4844
  d[f - 2] = arguments[f];
4845
- s = i.options.overloadTranslationOptionHandler([o, a].concat(d));
4845
+ a = i.options.overloadTranslationOptionHandler([o, s].concat(d));
4846
4846
  } else
4847
- s = {
4848
- ...a
4847
+ a = {
4848
+ ...s
4849
4849
  };
4850
- s.lng = s.lng || u.lng, s.lngs = s.lngs || u.lngs, s.ns = s.ns || u.ns, s.keyPrefix = s.keyPrefix || r || u.keyPrefix;
4850
+ a.lng = a.lng || u.lng, a.lngs = a.lngs || u.lngs, a.ns = a.ns || u.ns, a.keyPrefix = a.keyPrefix || r || u.keyPrefix;
4851
4851
  const c = i.options.keySeparator || ".";
4852
4852
  let h;
4853
- return s.keyPrefix && Array.isArray(o) ? h = o.map((p) => `${s.keyPrefix}${c}${p}`) : h = s.keyPrefix ? `${s.keyPrefix}${c}${o}` : o, i.t(h, s);
4853
+ return a.keyPrefix && Array.isArray(o) ? h = o.map((p) => `${a.keyPrefix}${c}${p}`) : h = a.keyPrefix ? `${a.keyPrefix}${c}${o}` : o, i.t(h, a);
4854
4854
  };
4855
4855
  return typeof e == "string" ? u.lng = e : u.lngs = e, u.ns = t, u.keyPrefix = r, u;
4856
4856
  }
@@ -4871,13 +4871,13 @@ class st extends nr {
4871
4871
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
4872
4872
  const r = t.lng || this.resolvedLanguage || this.languages[0], i = this.options ? this.options.fallbackLng : !1, u = this.languages[this.languages.length - 1];
4873
4873
  if (r.toLowerCase() === "cimode") return !0;
4874
- const o = (a, s) => {
4875
- const l = this.services.backendConnector.state[`${a}|${s}`];
4874
+ const o = (s, a) => {
4875
+ const l = this.services.backendConnector.state[`${s}|${a}`];
4876
4876
  return l === -1 || l === 2;
4877
4877
  };
4878
4878
  if (t.precheck) {
4879
- const a = t.precheck(this, o);
4880
- if (a !== void 0) return a;
4879
+ const s = t.precheck(this, o);
4880
+ if (s !== void 0) return s;
4881
4881
  }
4882
4882
  return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!i || o(u, e)));
4883
4883
  }
@@ -4915,16 +4915,16 @@ class st extends nr {
4915
4915
  ...e,
4916
4916
  isClone: !0
4917
4917
  }, u = new st(i);
4918
- return (e.debug !== void 0 || e.prefix !== void 0) && (u.logger = u.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
4919
- u[a] = this[a];
4918
+ return (e.debug !== void 0 || e.prefix !== void 0) && (u.logger = u.logger.clone(e)), ["store", "services", "language"].forEach((s) => {
4919
+ u[s] = this[s];
4920
4920
  }), u.services = {
4921
4921
  ...this.services
4922
4922
  }, u.services.utils = {
4923
4923
  hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
4924
- }, r && (u.store = new ti(this.store.data, i), u.services.resourceStore = u.store), u.translator = new Gt(u.services, i), u.translator.on("*", function(a) {
4925
- for (var s = arguments.length, l = new Array(s > 1 ? s - 1 : 0), d = 1; d < s; d++)
4924
+ }, r && (u.store = new ti(this.store.data, i), u.services.resourceStore = u.store), u.translator = new Gt(u.services, i), u.translator.on("*", function(s) {
4925
+ for (var a = arguments.length, l = new Array(a > 1 ? a - 1 : 0), d = 1; d < a; d++)
4926
4926
  l[d - 1] = arguments[d];
4927
- u.emit(a, ...l);
4927
+ u.emit(s, ...l);
4928
4928
  }), u.init(i, t), u.translator.options = i, u.translator.backendConnector.services.utils = {
4929
4929
  hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
4930
4930
  }, u;
@@ -6411,13 +6411,13 @@ var Dr = {};
6411
6411
  n.htmlDecodeTree = u.default;
6412
6412
  var o = i(un);
6413
6413
  n.xmlDecodeTree = o.default;
6414
- var a = r(Dr);
6415
- n.decodeCodePoint = a.default;
6416
- var s = Dr;
6414
+ var s = r(Dr);
6415
+ n.decodeCodePoint = s.default;
6416
+ var a = Dr;
6417
6417
  Object.defineProperty(n, "replaceCodePoint", { enumerable: !0, get: function() {
6418
- return s.replaceCodePoint;
6418
+ return a.replaceCodePoint;
6419
6419
  } }), Object.defineProperty(n, "fromCodePoint", { enumerable: !0, get: function() {
6420
- return s.fromCodePoint;
6420
+ return a.fromCodePoint;
6421
6421
  } });
6422
6422
  var l;
6423
6423
  (function(b) {
@@ -6501,7 +6501,7 @@ var Dr = {};
6501
6501
  this.consumed += 1;
6502
6502
  else if (this.decodeMode === w.Strict)
6503
6503
  return 0;
6504
- return this.emitCodePoint((0, a.replaceCodePoint)(this.result), this.consumed), this.errors && ($ !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
6504
+ return this.emitCodePoint((0, s.replaceCodePoint)(this.result), this.consumed), this.errors && ($ !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
6505
6505
  }, b.prototype.stateNamedEntity = function($, k) {
6506
6506
  for (var y = this.decodeTree, v = y[this.treeIndex], C = (v & f.VALUE_LENGTH) >> 14; k < $.length; k++, this.excess++) {
6507
6507
  var E = $.charCodeAt(k);
@@ -6543,7 +6543,7 @@ var Dr = {};
6543
6543
  n.EntityDecoder = S;
6544
6544
  function L(b) {
6545
6545
  var $ = "", k = new S(b, function(y) {
6546
- return $ += (0, a.fromCodePoint)(y);
6546
+ return $ += (0, s.fromCodePoint)(y);
6547
6547
  });
6548
6548
  return function(v, C) {
6549
6549
  for (var E = 0, B = 0; (B = v.indexOf("&", B)) >= 0; ) {
@@ -6749,10 +6749,10 @@ var kb = { exports: {} };
6749
6749
  if (O)
6750
6750
  return M = O[0], g += M.length, M;
6751
6751
  }
6752
- for (var i = e.length, u = /^[ \t\n\r\u000c]+/, o = /^[, \t\n\r\u000c]+/, a = /^[^ \t\n\r\u000c]+/, s = /[,]+$/, l = /^\d+$/, d = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, f, c, h, p, m, g = 0, w = []; ; ) {
6752
+ for (var i = e.length, u = /^[ \t\n\r\u000c]+/, o = /^[, \t\n\r\u000c]+/, s = /^[^ \t\n\r\u000c]+/, a = /[,]+$/, l = /^\d+$/, d = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, f, c, h, p, m, g = 0, w = []; ; ) {
6753
6753
  if (r(o), g >= i)
6754
6754
  return w;
6755
- f = r(a), c = [], f.slice(-1) === "," ? (f = f.replace(s, ""), L()) : S();
6755
+ f = r(s), c = [], f.slice(-1) === "," ? (f = f.replace(a, ""), L()) : S();
6756
6756
  }
6757
6757
  function S() {
6758
6758
  for (r(u), h = "", p = "in descriptor"; ; ) {
@@ -6816,20 +6816,20 @@ class at extends Error {
6816
6816
  if (!this.source) return "";
6817
6817
  let t = this.source;
6818
6818
  e == null && (e = hi.isColorSupported), gi && e && (t = gi(t));
6819
- let r = t.split(/\r?\n/), i = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, r.length), o = String(u).length, a, s;
6819
+ let r = t.split(/\r?\n/), i = Math.max(this.line - 3, 0), u = Math.min(this.line + 2, r.length), o = String(u).length, s, a;
6820
6820
  if (e) {
6821
6821
  let { bold: l, red: d, gray: f } = hi.createColors(!0);
6822
- a = (c) => l(d(c)), s = (c) => f(c);
6822
+ s = (c) => l(d(c)), a = (c) => f(c);
6823
6823
  } else
6824
- a = s = (l) => l;
6824
+ s = a = (l) => l;
6825
6825
  return r.slice(i, u).map((l, d) => {
6826
6826
  let f = i + 1 + d, c = " " + (" " + f).slice(-o) + " | ";
6827
6827
  if (f === this.line) {
6828
- let h = s(c.replace(/\d/g, " ")) + l.slice(0, this.column - 1).replace(/[^\t]/g, " ");
6829
- return a(">") + s(c) + l + `
6830
- ` + h + a("^");
6828
+ let h = a(c.replace(/\d/g, " ")) + l.slice(0, this.column - 1).replace(/[^\t]/g, " ");
6829
+ return s(">") + a(c) + l + `
6830
+ ` + h + s("^");
6831
6831
  }
6832
- return " " + s(c) + l;
6832
+ return " " + a(c) + l;
6833
6833
  }).join(`
6834
6834
  `);
6835
6835
  }
@@ -6935,9 +6935,9 @@ class Mr {
6935
6935
  if (r === "before" || r === "after")
6936
6936
  return this.beforeAfter(e, r);
6937
6937
  {
6938
- let a = "raw" + Eb(r);
6939
- this[a] ? i = this[a](o, e) : o.walk((s) => {
6940
- if (i = s.raws[t], typeof i < "u") return !1;
6938
+ let s = "raw" + Eb(r);
6939
+ this[s] ? i = this[s](o, e) : o.walk((a) => {
6940
+ if (i = a.raws[t], typeof i < "u") return !1;
6941
6941
  });
6942
6942
  }
6943
6943
  return typeof i > "u" && (i = pi[r]), o.rawCache[r] = i, i;
@@ -7024,7 +7024,7 @@ class Mr {
7024
7024
  `)) {
7025
7025
  let o = this.raw(e, null, "indent");
7026
7026
  if (o.length)
7027
- for (let a = 0; a < u; a++) r += o;
7027
+ for (let s = 0; s < u; s++) r += o;
7028
7028
  }
7029
7029
  return r;
7030
7030
  }
@@ -7151,20 +7151,20 @@ class Rr {
7151
7151
  let u = 0;
7152
7152
  for (let o in this) {
7153
7153
  if (!Object.prototype.hasOwnProperty.call(this, o) || o === "parent" || o === "proxyCache") continue;
7154
- let a = this[o];
7155
- if (Array.isArray(a))
7156
- r[o] = a.map((s) => typeof s == "object" && s.toJSON ? s.toJSON(null, t) : s);
7157
- else if (typeof a == "object" && a.toJSON)
7158
- r[o] = a.toJSON(null, t);
7154
+ let s = this[o];
7155
+ if (Array.isArray(s))
7156
+ r[o] = s.map((a) => typeof a == "object" && a.toJSON ? a.toJSON(null, t) : a);
7157
+ else if (typeof s == "object" && s.toJSON)
7158
+ r[o] = s.toJSON(null, t);
7159
7159
  else if (o === "source") {
7160
- let s = t.get(a.input);
7161
- s == null && (s = u, t.set(a.input, u), u++), r[o] = {
7162
- inputId: s,
7163
- start: a.start,
7164
- end: a.end
7160
+ let a = t.get(s.input);
7161
+ a == null && (a = u, t.set(s.input, u), u++), r[o] = {
7162
+ inputId: a,
7163
+ start: s.start,
7164
+ end: s.end
7165
7165
  };
7166
7166
  } else
7167
- r[o] = a;
7167
+ r[o] = s;
7168
7168
  }
7169
7169
  return i && (r.inputs = [...t.keys()].map((o) => o.toJSON())), r;
7170
7170
  }
@@ -7381,8 +7381,8 @@ class Kt {
7381
7381
  `);
7382
7382
  r = new Array(u.length);
7383
7383
  let o = 0;
7384
- for (let a = 0, s = u.length; a < s; a++)
7385
- r[a] = o, o += u[a].length + 1;
7384
+ for (let s = 0, a = u.length; s < a; s++)
7385
+ r[s] = o, o += u[s].length + 1;
7386
7386
  this[pr] = r;
7387
7387
  }
7388
7388
  t = r[r.length - 1];
@@ -7407,7 +7407,7 @@ class Kt {
7407
7407
  };
7408
7408
  }
7409
7409
  error(e, t, r, i = {}) {
7410
- let u, o, a;
7410
+ let u, o, s;
7411
7411
  if (t && typeof t == "object") {
7412
7412
  let l = t, d = r;
7413
7413
  if (typeof l.offset == "number") {
@@ -7417,51 +7417,51 @@ class Kt {
7417
7417
  t = l.line, r = l.column;
7418
7418
  if (typeof d.offset == "number") {
7419
7419
  let f = this.fromOffset(d.offset);
7420
- o = f.line, a = f.col;
7420
+ o = f.line, s = f.col;
7421
7421
  } else
7422
- o = d.line, a = d.column;
7422
+ o = d.line, s = d.column;
7423
7423
  } else if (!r) {
7424
7424
  let l = this.fromOffset(t);
7425
7425
  t = l.line, r = l.col;
7426
7426
  }
7427
- let s = this.origin(t, r, o, a);
7428
- return s ? u = new vi(
7427
+ let a = this.origin(t, r, o, s);
7428
+ return a ? u = new vi(
7429
7429
  e,
7430
- s.endLine === void 0 ? s.line : { line: s.line, column: s.column },
7431
- s.endLine === void 0 ? s.column : { line: s.endLine, column: s.endColumn },
7432
- s.source,
7433
- s.file,
7430
+ a.endLine === void 0 ? a.line : { line: a.line, column: a.column },
7431
+ a.endLine === void 0 ? a.column : { line: a.endLine, column: a.endColumn },
7432
+ a.source,
7433
+ a.file,
7434
7434
  i.plugin
7435
7435
  ) : u = new vi(
7436
7436
  e,
7437
7437
  o === void 0 ? t : { line: t, column: r },
7438
- o === void 0 ? r : { line: o, column: a },
7438
+ o === void 0 ? r : { line: o, column: s },
7439
7439
  this.css,
7440
7440
  this.file,
7441
7441
  i.plugin
7442
- ), u.input = { line: t, column: r, endLine: o, endColumn: a, source: this.css }, this.file && (Et && (u.input.url = Et(this.file).toString()), u.input.file = this.file), u;
7442
+ ), u.input = { line: t, column: r, endLine: o, endColumn: s, source: this.css }, this.file && (Et && (u.input.url = Et(this.file).toString()), u.input.file = this.file), u;
7443
7443
  }
7444
7444
  origin(e, t, r, i) {
7445
7445
  if (!this.map) return !1;
7446
7446
  let u = this.map.consumer(), o = u.originalPositionFor({ line: e, column: t });
7447
7447
  if (!o.source) return !1;
7448
- let a;
7449
- typeof r == "number" && (a = u.originalPositionFor({ line: r, column: i }));
7450
7448
  let s;
7451
- Fr(o.source) ? s = Et(o.source) : s = new URL(
7449
+ typeof r == "number" && (s = u.originalPositionFor({ line: r, column: i }));
7450
+ let a;
7451
+ Fr(o.source) ? a = Et(o.source) : a = new URL(
7452
7452
  o.source,
7453
7453
  this.map.consumer().sourceRoot || Et(this.map.mapFile)
7454
7454
  );
7455
7455
  let l = {
7456
- url: s.toString(),
7456
+ url: a.toString(),
7457
7457
  line: o.line,
7458
7458
  column: o.column,
7459
- endLine: a && a.line,
7460
- endColumn: a && a.column
7459
+ endLine: s && s.line,
7460
+ endColumn: s && s.column
7461
7461
  };
7462
- if (s.protocol === "file:")
7462
+ if (a.protocol === "file:")
7463
7463
  if (yi)
7464
- l.file = yi(s);
7464
+ l.file = yi(a);
7465
7465
  else
7466
7466
  throw new Error("file: protocol is not available in this PostCSS build");
7467
7467
  let d = u.sourceContentFor(o.source);
@@ -7604,11 +7604,11 @@ class Gb {
7604
7604
  generated: { line: 0, column: 0 },
7605
7605
  original: { line: 0, column: 0 }
7606
7606
  }, u, o;
7607
- this.stringify(this.root, (a, s, l) => {
7608
- if (this.css += a, s && l !== "end" && (i.generated.line = e, i.generated.column = t - 1, s.source && s.source.start ? (i.source = this.sourcePath(s), i.original.line = s.source.start.line, i.original.column = s.source.start.column - 1, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, this.map.addMapping(i))), u = a.match(/\n/g), u ? (e += u.length, o = a.lastIndexOf(`
7609
- `), t = a.length - o) : t += a.length, s && l !== "start") {
7610
- let d = s.parent || { raws: {} };
7611
- (!(s.type === "decl" || s.type === "atrule" && !s.nodes) || s !== d.last || d.raws.semicolon) && (s.source && s.source.end ? (i.source = this.sourcePath(s), i.original.line = s.source.end.line, i.original.column = s.source.end.column - 1, i.generated.line = e, i.generated.column = t - 2, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, i.generated.line = e, i.generated.column = t - 1, this.map.addMapping(i)));
7607
+ this.stringify(this.root, (s, a, l) => {
7608
+ if (this.css += s, a && l !== "end" && (i.generated.line = e, i.generated.column = t - 1, a.source && a.source.start ? (i.source = this.sourcePath(a), i.original.line = a.source.start.line, i.original.column = a.source.start.column - 1, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, this.map.addMapping(i))), u = s.match(/\n/g), u ? (e += u.length, o = s.lastIndexOf(`
7609
+ `), t = s.length - o) : t += s.length, a && l !== "start") {
7610
+ let d = a.parent || { raws: {} };
7611
+ (!(a.type === "decl" || a.type === "atrule" && !a.nodes) || a !== d.last || d.raws.semicolon) && (a.source && a.source.end ? (i.source = this.sourcePath(a), i.original.line = a.source.end.line, i.original.column = a.source.end.column - 1, i.generated.line = e, i.generated.column = t - 2, this.map.addMapping(i)) : (i.source = r, i.original.line = 1, i.original.column = 0, i.generated.line = e, i.generated.column = t - 1, this.map.addMapping(i)));
7612
7612
  }
7613
7613
  });
7614
7614
  }
@@ -7729,10 +7729,10 @@ class ge extends Vb {
7729
7729
  insertBefore(e, t) {
7730
7730
  let r = this.index(e), i = r === 0 ? "prepend" : !1, u = this.normalize(t, this.proxyOf.nodes[r], i).reverse();
7731
7731
  r = this.index(e);
7732
- for (let a of u) this.proxyOf.nodes.splice(r, 0, a);
7732
+ for (let s of u) this.proxyOf.nodes.splice(r, 0, s);
7733
7733
  let o;
7734
- for (let a in this.indexes)
7735
- o = this.indexes[a], r <= o && (this.indexes[a] = o + u.length);
7734
+ for (let s in this.indexes)
7735
+ o = this.indexes[s], r <= o && (this.indexes[s] = o + u.length);
7736
7736
  return this.markDirty(), this;
7737
7737
  }
7738
7738
  insertAfter(e, t) {
@@ -7902,7 +7902,7 @@ var dn = jr;
7902
7902
  jr.default = jr;
7903
7903
  const mr = 39, wi = 34, $t = 92, Ei = 47, Tt = 10, Xe = 32, St = 12, Bt = 9, Ct = 13, Qb = 91, Xb = 93, e2 = 40, t2 = 41, r2 = 123, n2 = 125, i2 = 59, u2 = 42, o2 = 58, s2 = 64, At = /[\t\n\f\r "#'()/;[\\\]{}]/g, Dt = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, a2 = /.[\n"'(/\\]/, $i = /[\da-f]/i;
7904
7904
  var l2 = function(e, t = {}) {
7905
- let r = e.css.valueOf(), i = t.ignoreErrors, u, o, a, s, l, d, f, c, h, p, m = r.length, g = 0, w = [], S = [];
7905
+ let r = e.css.valueOf(), i = t.ignoreErrors, u, o, s, a, l, d, f, c, h, p, m = r.length, g = 0, w = [], S = [];
7906
7906
  function L() {
7907
7907
  return g;
7908
7908
  }
@@ -7955,14 +7955,14 @@ var l2 = function(e, t = {}) {
7955
7955
  } while (d);
7956
7956
  p = ["brackets", r.slice(g, o + 1), g, o], g = o;
7957
7957
  } else
7958
- o = r.indexOf(")", g + 1), s = r.slice(g, o + 1), o === -1 || a2.test(s) ? p = ["(", "(", g] : (p = ["brackets", s, g, o], g = o);
7958
+ o = r.indexOf(")", g + 1), a = r.slice(g, o + 1), o === -1 || a2.test(a) ? p = ["(", "(", g] : (p = ["brackets", a, g, o], g = o);
7959
7959
  break;
7960
7960
  }
7961
7961
  case mr:
7962
7962
  case wi: {
7963
- a = u === mr ? "'" : '"', o = g;
7963
+ s = u === mr ? "'" : '"', o = g;
7964
7964
  do {
7965
- if (d = !1, o = r.indexOf(a, o + 1), o === -1)
7965
+ if (d = !1, o = r.indexOf(s, o + 1), o === -1)
7966
7966
  if (i || N) {
7967
7967
  o = g + 1;
7968
7968
  break;
@@ -8056,9 +8056,9 @@ Ge.default = Ge;
8056
8056
  X1.registerRoot(Ge);
8057
8057
  let ct = {
8058
8058
  split(n, e, t) {
8059
- let r = [], i = "", u = !1, o = 0, a = !1, s = "", l = !1;
8059
+ let r = [], i = "", u = !1, o = 0, s = !1, a = "", l = !1;
8060
8060
  for (let d of n)
8061
- l ? l = !1 : d === "\\" ? l = !0 : a ? d === s && (a = !1) : d === '"' || d === "'" ? (a = !0, s = d) : d === "(" ? o += 1 : d === ")" ? o > 0 && (o -= 1) : o === 0 && e.includes(d) && (u = !0), u ? (i !== "" && r.push(i.trim()), i = "", u = !1) : i += d;
8061
+ l ? l = !1 : d === "\\" ? l = !0 : s ? d === a && (s = !1) : d === '"' || d === "'" ? (s = !0, a = d) : d === "(" ? o += 1 : d === ")" ? o > 0 && (o -= 1) : o === 0 && e.includes(d) && (u = !0), u ? (i !== "" && r.push(i.trim()), i = "", u = !1) : i += d;
8062
8062
  return (t || i !== "") && r.push(i.trim()), r;
8063
8063
  },
8064
8064
  space(n) {
@@ -8150,36 +8150,36 @@ class b2 {
8150
8150
  this.init(t, e[2]), t.selector = "", t.raws.between = "", this.current = t;
8151
8151
  }
8152
8152
  other(e) {
8153
- let t = !1, r = null, i = !1, u = null, o = [], a = e[1].startsWith("--"), s = [], l = e;
8153
+ let t = !1, r = null, i = !1, u = null, o = [], s = e[1].startsWith("--"), a = [], l = e;
8154
8154
  for (; l; ) {
8155
- if (r = l[0], s.push(l), r === "(" || r === "[")
8155
+ if (r = l[0], a.push(l), r === "(" || r === "[")
8156
8156
  u || (u = l), o.push(r === "(" ? ")" : "]");
8157
- else if (a && i && r === "{")
8157
+ else if (s && i && r === "{")
8158
8158
  u || (u = l), o.push("}");
8159
8159
  else if (o.length === 0)
8160
8160
  if (r === ";")
8161
8161
  if (i) {
8162
- this.decl(s, a);
8162
+ this.decl(a, s);
8163
8163
  return;
8164
8164
  } else
8165
8165
  break;
8166
8166
  else if (r === "{") {
8167
- this.rule(s);
8167
+ this.rule(a);
8168
8168
  return;
8169
8169
  } else if (r === "}") {
8170
- this.tokenizer.back(s.pop()), t = !0;
8170
+ this.tokenizer.back(a.pop()), t = !0;
8171
8171
  break;
8172
8172
  } else r === ":" && (i = !0);
8173
8173
  else r === o[o.length - 1] && (o.pop(), o.length === 0 && (u = null));
8174
8174
  l = this.tokenizer.nextToken();
8175
8175
  }
8176
8176
  if (this.tokenizer.endOfFile() && (t = !0), o.length > 0 && this.unclosedBracket(u), t && i) {
8177
- if (!a)
8178
- for (; s.length && (l = s[s.length - 1][0], !(l !== "space" && l !== "comment")); )
8179
- this.tokenizer.back(s.pop());
8180
- this.decl(s, a);
8177
+ if (!s)
8178
+ for (; a.length && (l = a[a.length - 1][0], !(l !== "space" && l !== "comment")); )
8179
+ this.tokenizer.back(a.pop());
8180
+ this.decl(a, s);
8181
8181
  } else
8182
- this.unknownWord(s);
8182
+ this.unknownWord(a);
8183
8183
  }
8184
8184
  rule(e) {
8185
8185
  e.pop();
@@ -8209,8 +8209,8 @@ class b2 {
8209
8209
  } else
8210
8210
  u[0] === "word" && /\w/.test(u[1]) && this.unknownWord([u]), r.raws.between += u[1];
8211
8211
  (r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
8212
- let o = [], a;
8213
- for (; e.length && (a = e[0][0], !(a !== "space" && a !== "comment")); )
8212
+ let o = [], s;
8213
+ for (; e.length && (s = e[0][0], !(s !== "space" && s !== "comment")); )
8214
8214
  o.push(e.shift());
8215
8215
  this.precheckMissedSemicolon(e);
8216
8216
  for (let l = e.length - 1; l >= 0; l--) {
@@ -8237,33 +8237,33 @@ class b2 {
8237
8237
  atrule(e) {
8238
8238
  let t = new g2();
8239
8239
  t.name = e[1].slice(1), t.name === "" && this.unnamedAtrule(t, e), this.init(t, e[2]);
8240
- let r, i, u, o = !1, a = !1, s = [], l = [];
8240
+ let r, i, u, o = !1, s = !1, a = [], l = [];
8241
8241
  for (; !this.tokenizer.endOfFile(); ) {
8242
8242
  if (e = this.tokenizer.nextToken(), r = e[0], r === "(" || r === "[" ? l.push(r === "(" ? ")" : "]") : r === "{" && l.length > 0 ? l.push("}") : r === l[l.length - 1] && l.pop(), l.length === 0)
8243
8243
  if (r === ";") {
8244
8244
  t.source.end = this.getPosition(e[2]), this.semicolon = !0;
8245
8245
  break;
8246
8246
  } else if (r === "{") {
8247
- a = !0;
8247
+ s = !0;
8248
8248
  break;
8249
8249
  } else if (r === "}") {
8250
- if (s.length > 0) {
8251
- for (u = s.length - 1, i = s[u]; i && i[0] === "space"; )
8252
- i = s[--u];
8250
+ if (a.length > 0) {
8251
+ for (u = a.length - 1, i = a[u]; i && i[0] === "space"; )
8252
+ i = a[--u];
8253
8253
  i && (t.source.end = this.getPosition(i[3] || i[2]));
8254
8254
  }
8255
8255
  this.end(e);
8256
8256
  break;
8257
8257
  } else
8258
- s.push(e);
8258
+ a.push(e);
8259
8259
  else
8260
- s.push(e);
8260
+ a.push(e);
8261
8261
  if (this.tokenizer.endOfFile()) {
8262
8262
  o = !0;
8263
8263
  break;
8264
8264
  }
8265
8265
  }
8266
- t.raws.between = this.spacesAndCommentsFromEnd(s), s.length ? (t.raws.afterName = this.spacesAndCommentsFromStart(s), this.raw(t, "params", s), o && (e = s[s.length - 1], t.source.end = this.getPosition(e[3] || e[2]), this.spaces = t.raws.between, t.raws.between = "")) : (t.raws.afterName = "", t.params = ""), a && (t.nodes = [], this.current = t);
8266
+ t.raws.between = this.spacesAndCommentsFromEnd(a), a.length ? (t.raws.afterName = this.spacesAndCommentsFromStart(a), this.raw(t, "params", a), o && (e = a[a.length - 1], t.source.end = this.getPosition(e[3] || e[2]), this.spaces = t.raws.between, t.raws.between = "")) : (t.raws.afterName = "", t.params = ""), s && (t.nodes = [], this.current = t);
8267
8267
  }
8268
8268
  end(e) {
8269
8269
  this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(e[2]), this.current = this.current.parent) : this.unexpectedClose(e);
@@ -8293,14 +8293,14 @@ class b2 {
8293
8293
  }, e.raws.before = this.spaces, this.spaces = "", e.type !== "comment" && (this.semicolon = !1);
8294
8294
  }
8295
8295
  raw(e, t, r, i) {
8296
- let u, o, a = r.length, s = "", l = !0, d, f;
8297
- for (let c = 0; c < a; c += 1)
8298
- u = r[c], o = u[0], o === "space" && c === a - 1 && !i ? l = !1 : o === "comment" ? (f = r[c - 1] ? r[c - 1][0] : "empty", d = r[c + 1] ? r[c + 1][0] : "empty", !Si[f] && !Si[d] ? s.slice(-1) === "," ? l = !1 : s += u[1] : l = !1) : s += u[1];
8296
+ let u, o, s = r.length, a = "", l = !0, d, f;
8297
+ for (let c = 0; c < s; c += 1)
8298
+ u = r[c], o = u[0], o === "space" && c === s - 1 && !i ? l = !1 : o === "comment" ? (f = r[c - 1] ? r[c - 1][0] : "empty", d = r[c + 1] ? r[c + 1][0] : "empty", !Si[f] && !Si[d] ? a.slice(-1) === "," ? l = !1 : a += u[1] : l = !1) : a += u[1];
8299
8299
  if (!l) {
8300
8300
  let c = r.reduce((h, p) => h + p[1], "");
8301
- e.raws[t] = { value: s, raw: c };
8301
+ e.raws[t] = { value: a, raw: c };
8302
8302
  }
8303
- e[t] = s;
8303
+ e[t] = a;
8304
8304
  }
8305
8305
  spacesAndCommentsFromEnd(e) {
8306
8306
  let t, r = "";
@@ -8328,8 +8328,8 @@ class b2 {
8328
8328
  }
8329
8329
  colon(e) {
8330
8330
  let t = 0, r, i, u;
8331
- for (let [o, a] of e.entries()) {
8332
- if (r = a, i = r[0], i === "(" && (t += 1), i === ")" && (t -= 1), t === 0 && i === ":")
8331
+ for (let [o, s] of e.entries()) {
8332
+ if (r = s, i = r[0], i === "(" && (t += 1), i === ")" && (t -= 1), t === 0 && i === ":")
8333
8333
  if (!u)
8334
8334
  this.doubleColon(r);
8335
8335
  else {
@@ -8695,19 +8695,19 @@ class Pe {
8695
8695
  return;
8696
8696
  }
8697
8697
  if (i.length > 0 && t.visitorIndex < i.length) {
8698
- let [o, a] = i[t.visitorIndex];
8698
+ let [o, s] = i[t.visitorIndex];
8699
8699
  t.visitorIndex += 1, t.visitorIndex === i.length && (t.visitors = [], t.visitorIndex = 0), this.result.lastPlugin = o;
8700
8700
  try {
8701
- return a(r.toProxy(), this.helpers);
8702
- } catch (s) {
8703
- throw this.handleError(s, r);
8701
+ return s(r.toProxy(), this.helpers);
8702
+ } catch (a) {
8703
+ throw this.handleError(a, r);
8704
8704
  }
8705
8705
  }
8706
8706
  if (t.iterator !== 0) {
8707
- let o = t.iterator, a;
8708
- for (; a = r.nodes[r.indexes[o]]; )
8709
- if (r.indexes[o] += 1, !a[me]) {
8710
- a[me] = !0, e.push(Ci(a));
8707
+ let o = t.iterator, s;
8708
+ for (; s = r.nodes[r.indexes[o]]; )
8709
+ if (r.indexes[o] += 1, !s[me]) {
8710
+ s[me] = !0, e.push(Ci(s));
8711
8711
  return;
8712
8712
  }
8713
8713
  t.iterator = 0, delete r.indexes[o];
@@ -8746,10 +8746,10 @@ class Hr {
8746
8746
  return o.root;
8747
8747
  }
8748
8748
  });
8749
- let a = new O2(u, i, this._opts, t);
8750
- if (a.isMap()) {
8751
- let [s, l] = a.generate();
8752
- s && (this.result.css = s), l && (this.result.map = l);
8749
+ let s = new O2(u, i, this._opts, t);
8750
+ if (s.isMap()) {
8751
+ let [a, l] = s.generate();
8752
+ a && (this.result.css = a), l && (this.result.map = l);
8753
8753
  }
8754
8754
  }
8755
8755
  get [Symbol.toStringTag]() {
@@ -8885,16 +8885,16 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`
8885
8885
  e + `: 里面 postcss.plugin 被弃用. 迁移指南:
8886
8886
  https://www.w3ctech.com/topic/2226`
8887
8887
  ));
8888
- let a = t(...o);
8889
- return a.postcssPlugin = e, a.postcssVersion = new pn().version, a;
8888
+ let s = t(...o);
8889
+ return s.postcssPlugin = e, s.postcssVersion = new pn().version, s;
8890
8890
  }
8891
8891
  let u;
8892
8892
  return Object.defineProperty(i, "postcss", {
8893
8893
  get() {
8894
8894
  return u || (u = i()), u;
8895
8895
  }
8896
- }), i.process = function(o, a, s) {
8897
- return q([i(s)]).process(o, a);
8896
+ }), i.process = function(o, s, a) {
8897
+ return q([i(a)]).process(o, s);
8898
8898
  }, i;
8899
8899
  };
8900
8900
  q.stringify = X2;
@@ -8928,30 +8928,30 @@ var fg = { exports: {} };
8928
8928
  n.exports = r();
8929
8929
  })(oe, function() {
8930
8930
  var t = "minute", r = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
8931
- return function(u, o, a) {
8932
- var s = o.prototype;
8933
- a.utc = function(m) {
8931
+ return function(u, o, s) {
8932
+ var a = o.prototype;
8933
+ s.utc = function(m) {
8934
8934
  var g = { date: m, utc: !0, args: arguments };
8935
8935
  return new o(g);
8936
- }, s.utc = function(m) {
8937
- var g = a(this.toDate(), { locale: this.$L, utc: !0 });
8936
+ }, a.utc = function(m) {
8937
+ var g = s(this.toDate(), { locale: this.$L, utc: !0 });
8938
8938
  return m ? g.add(this.utcOffset(), t) : g;
8939
- }, s.local = function() {
8940
- return a(this.toDate(), { locale: this.$L, utc: !1 });
8939
+ }, a.local = function() {
8940
+ return s(this.toDate(), { locale: this.$L, utc: !1 });
8941
8941
  };
8942
- var l = s.parse;
8943
- s.parse = function(m) {
8942
+ var l = a.parse;
8943
+ a.parse = function(m) {
8944
8944
  m.utc && (this.$u = !0), this.$utils().u(m.$offset) || (this.$offset = m.$offset), l.call(this, m);
8945
8945
  };
8946
- var d = s.init;
8947
- s.init = function() {
8946
+ var d = a.init;
8947
+ a.init = function() {
8948
8948
  if (this.$u) {
8949
8949
  var m = this.$d;
8950
8950
  this.$y = m.getUTCFullYear(), this.$M = m.getUTCMonth(), this.$D = m.getUTCDate(), this.$W = m.getUTCDay(), this.$H = m.getUTCHours(), this.$m = m.getUTCMinutes(), this.$s = m.getUTCSeconds(), this.$ms = m.getUTCMilliseconds();
8951
8951
  } else d.call(this);
8952
8952
  };
8953
- var f = s.utcOffset;
8954
- s.utcOffset = function(m, g) {
8953
+ var f = a.utcOffset;
8954
+ a.utcOffset = function(m, g) {
8955
8955
  var w = this.$utils().u;
8956
8956
  if (w(m)) return this.$u ? 0 : w(this.$offset) ? f.call(this) : this.$offset;
8957
8957
  if (typeof m == "string" && (m = function(M) {
@@ -8969,28 +8969,28 @@ var fg = { exports: {} };
8969
8969
  } else L = this.utc();
8970
8970
  return L;
8971
8971
  };
8972
- var c = s.format;
8973
- s.format = function(m) {
8972
+ var c = a.format;
8973
+ a.format = function(m) {
8974
8974
  var g = m || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
8975
8975
  return c.call(this, g);
8976
- }, s.valueOf = function() {
8976
+ }, a.valueOf = function() {
8977
8977
  var m = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
8978
8978
  return this.$d.valueOf() - 6e4 * m;
8979
- }, s.isUTC = function() {
8979
+ }, a.isUTC = function() {
8980
8980
  return !!this.$u;
8981
- }, s.toISOString = function() {
8981
+ }, a.toISOString = function() {
8982
8982
  return this.toDate().toISOString();
8983
- }, s.toString = function() {
8983
+ }, a.toString = function() {
8984
8984
  return this.toDate().toUTCString();
8985
8985
  };
8986
- var h = s.toDate;
8987
- s.toDate = function(m) {
8988
- return m === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
8986
+ var h = a.toDate;
8987
+ a.toDate = function(m) {
8988
+ return m === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
8989
8989
  };
8990
- var p = s.diff;
8991
- s.diff = function(m, g, w) {
8990
+ var p = a.diff;
8991
+ a.diff = function(m, g, w) {
8992
8992
  if (m && this.$u === m.$u) return p.call(this, m, g, w);
8993
- var S = this.local(), L = a(m).local();
8993
+ var S = this.local(), L = s(m).local();
8994
8994
  return p.call(S, L, g, w);
8995
8995
  };
8996
8996
  };
@@ -9004,7 +9004,7 @@ var hg = { exports: {} };
9004
9004
  })(oe, function() {
9005
9005
  var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, r = {};
9006
9006
  return function(i, u, o) {
9007
- var a, s = function(c, h, p) {
9007
+ var s, a = function(c, h, p) {
9008
9008
  p === void 0 && (p = {});
9009
9009
  var m = new Date(c), g = function(w, S) {
9010
9010
  S === void 0 && (S = {});
@@ -9013,7 +9013,7 @@ var hg = { exports: {} };
9013
9013
  }(h, p);
9014
9014
  return g.formatToParts(m);
9015
9015
  }, l = function(c, h) {
9016
- for (var p = s(c, h), m = [], g = 0; g < p.length; g += 1) {
9016
+ for (var p = a(c, h), m = [], g = 0; g < p.length; g += 1) {
9017
9017
  var w = p[g], S = w.type, L = w.value, A = t[S];
9018
9018
  A >= 0 && (m[A] = parseInt(L, 10));
9019
9019
  }
@@ -9021,7 +9021,7 @@ var hg = { exports: {} };
9021
9021
  return (o.utc(I).valueOf() - (Y -= Y % 1e3)) / 6e4;
9022
9022
  }, d = u.prototype;
9023
9023
  d.tz = function(c, h) {
9024
- c === void 0 && (c = a);
9024
+ c === void 0 && (c = s);
9025
9025
  var p = this.utcOffset(), m = this.toDate(), g = m.toLocaleString("en-US", { timeZone: c }), w = Math.round((m - new Date(g)) / 1e3 / 60), S = o(g).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(m.getTimezoneOffset() / 15) - w, !0);
9026
9026
  if (h) {
9027
9027
  var L = S.utcOffset();
@@ -9029,7 +9029,7 @@ var hg = { exports: {} };
9029
9029
  }
9030
9030
  return S.$x.$timezone = c, S;
9031
9031
  }, d.offsetName = function(c) {
9032
- var h = this.$x.$timezone || o.tz.guess(), p = s(this.valueOf(), h, { timeZoneName: c }).find(function(m) {
9032
+ var h = this.$x.$timezone || o.tz.guess(), p = a(this.valueOf(), h, { timeZoneName: c }).find(function(m) {
9033
9033
  return m.type.toLowerCase() === "timezonename";
9034
9034
  });
9035
9035
  return p && p.value;
@@ -9040,7 +9040,7 @@ var hg = { exports: {} };
9040
9040
  var p = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
9041
9041
  return f.call(p, c, h).tz(this.$x.$timezone, !0);
9042
9042
  }, o.tz = function(c, h, p) {
9043
- var m = p && h, g = p || h || a, w = l(+o(), g);
9043
+ var m = p && h, g = p || h || s, w = l(+o(), g);
9044
9044
  if (typeof c != "string") return o(c).tz(g);
9045
9045
  var S = function(O, I, Y) {
9046
9046
  var N = O - 60 * I * 1e3, P = l(N, Y);
@@ -9052,7 +9052,7 @@ var hg = { exports: {} };
9052
9052
  }, o.tz.guess = function() {
9053
9053
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
9054
9054
  }, o.tz.setDefault = function(c) {
9055
- a = c;
9055
+ s = c;
9056
9056
  };
9057
9057
  };
9058
9058
  });
@@ -9104,19 +9104,19 @@ function d3(n) {
9104
9104
  return;
9105
9105
  }
9106
9106
  if (n.storeToProps && n.stateToProps) {
9107
- const s = Array.from(n.storeToProps.values()), l = Array.from(n.stateToProps.values()), d = s.filter((f) => l.includes(f));
9107
+ const a = Array.from(n.storeToProps.values()), l = Array.from(n.stateToProps.values()), d = a.filter((f) => l.includes(f));
9108
9108
  if (d.length > 0) {
9109
9109
  Mt(`[${r}] Overlapping prop keys detected in ${r} for storeToProps and stateToProps. Make sure to only define them once. Overlapping keys: ${d.join(", ")}`);
9110
9110
  return;
9111
9111
  }
9112
9112
  }
9113
- const a = /* @__PURE__ */ new Map();
9114
- n.eventToProps && Object.keys(n.eventToProps).forEach((s) => {
9113
+ const s = /* @__PURE__ */ new Map();
9114
+ n.eventToProps && Object.keys(n.eventToProps).forEach((a) => {
9115
9115
  var l;
9116
- a.set(s, (l = n.eventToProps) == null ? void 0 : l[s]);
9116
+ s.set(a, (l = n.eventToProps) == null ? void 0 : l[a]);
9117
9117
  }), e.connectedCallback = function() {
9118
9118
  Q(`[~${r}] connectedCallback called`);
9119
- const s = u == null ? void 0 : u.call(this), l = Ot(this);
9119
+ const a = u == null ? void 0 : u.call(this), l = Ot(this);
9120
9120
  return l.dataset.nylasId || (Object.defineProperty(l, "registerNylasComponent", {
9121
9121
  get() {
9122
9122
  return !0;
@@ -9139,7 +9139,7 @@ function d3(n) {
9139
9139
  enumerable: !0
9140
9140
  }), Object.defineProperty(l, "eventToProps", {
9141
9141
  get() {
9142
- return a;
9142
+ return s;
9143
9143
  },
9144
9144
  enumerable: !0
9145
9145
  }), Object.defineProperty(l, "authToProp", {
@@ -9157,21 +9157,21 @@ function d3(n) {
9157
9157
  return n.localPropsToProp;
9158
9158
  },
9159
9159
  enumerable: !0
9160
- })), s;
9160
+ })), a;
9161
9161
  }, n.fireRegisterEvent && (e.componentWillLoad = function() {
9162
- const s = i == null ? void 0 : i.call(this), l = Ot(this), d = {
9162
+ const a = i == null ? void 0 : i.call(this), l = Ot(this), d = {
9163
9163
  element: l,
9164
9164
  ...n,
9165
- eventToProps: a
9165
+ eventToProps: s
9166
9166
  }, f = l3(e, d, n.registrationEventName);
9167
- return l.dispatchEvent(f) && Q(`[${r}] Component ${r} successfully fired registration event`), s;
9167
+ return l.dispatchEvent(f) && Q(`[${r}] Component ${r} successfully fired registration event`), a;
9168
9168
  }, e.disconnectedCallback = function() {
9169
- const s = o == null ? void 0 : o.call(this), l = Ot(this), d = {
9169
+ const a = o == null ? void 0 : o.call(this), l = Ot(this), d = {
9170
9170
  element: l,
9171
9171
  ...n,
9172
- eventToProps: a
9172
+ eventToProps: s
9173
9173
  }, f = c3(e, d, n.unregistrationEventName);
9174
- return l.dispatchEvent(f) && Q(`[${r}] Component ${r} successfully fired unregistration event`), s;
9174
+ return l.dispatchEvent(f) && Q(`[${r}] Component ${r} successfully fired unregistration event`), a;
9175
9175
  });
9176
9176
  };
9177
9177
  }
@@ -9254,6 +9254,18 @@ const w3 = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
9254
9254
  constructor() {
9255
9255
  super(), this.__registerHost(), this.__attachShadow(), this.selectedOptionsChanged = Di(this, "selectedOptionsChanged", 7), this.name = void 0, this.label = void 0, this.options = [], this.error = "", this.availableOptions = this.options, this.isOpen = !1, this.ariaActivedescendant = "", this.shouldFocusFirstOption = !1;
9256
9256
  }
9257
+ areOptionsEqual(e, t) {
9258
+ if (e.length !== t.length)
9259
+ return !1;
9260
+ const r = [...e].sort((u, o) => u.label.localeCompare(o.label) || u.value.localeCompare(o.value)), i = [...t].sort((u, o) => u.label.localeCompare(o.label) || u.value.localeCompare(o.value));
9261
+ return r.every((u, o) => {
9262
+ const s = i[o];
9263
+ return u.label === s.label && u.value === s.value;
9264
+ });
9265
+ }
9266
+ optionsChangedHandler(e) {
9267
+ this.areOptionsEqual(e, this.availableOptions) || (this.availableOptions = e);
9268
+ }
9257
9269
  componentDidLoad() {
9258
9270
  Q("multi-select-dropdown", "componentDidLoad"), this.options && (this.availableOptions = this.options);
9259
9271
  }
@@ -9332,11 +9344,16 @@ const w3 = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
9332
9344
  }
9333
9345
  render() {
9334
9346
  var e, t;
9335
- return U(Gr, { key: "e1d4d14ecbb535efa9c01bbd472648b0a11f80f0" }, U("div", { key: "4fa54bb57eea3f45d49d0864e11ca20bb6b9b16c", class: "dropdown", part: "msd_dropdown" }, U("label", { key: "dd418efe1b38427042f1f88b9fd615ee89c9f5d9", class: "dropdown-label" }, this.label, U("slot", { key: "a8cd3f9fd40a3b77683c636b3b835e0cbd738981", name: "label-icon", "aria-hidden": "true" })), U("button", { key: "d39f657c45ecd246018f4c5db904ad37d475634b", name: this.name, part: `msd_dropdown-button ${this.error ? "msd_dropdown-button--error" : ""}`, class: { dropbtn: !0, open: this.isOpen, error: !!this.error }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (r) => this.handleSelectButtonKeyDown(r) }, U("slot", { key: "45f912fd627eb75e06446a782d91b27bf138677c", name: "select-icon", "aria-hidden": "true" }), U("span", { key: "8271bafba127888d6646b31749292b049e190589", class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1 ? "Multiple options selected" : ((e = this.availableOptions.filter((r) => r.selected)[0]) == null ? void 0 : e.label) ?? ((t = this.availableOptions[0]) == null ? void 0 : t.label)), U("span", { key: "75caecf1bffad204acab61b8d8809b03a9dbeb73", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, U("chevron-icon", { key: "cc9faf08225b9c73481d27a9b3f6e7a43b379c25", width: "16", height: "16" }))), this.error ? U("span", { class: "error" }, this.error) : null, this.isOpen ? null : U("div", { class: "selected-options" }, this.getSelectedOptions().map((r) => U("span", { class: "selected-option" }, r.label, U("button", { key: r.label, onClick: () => this.selectOption(r) }, U("close-icon", null))))), this.isOpen ? U("div", { class: "dropdown-content", part: "msd_dropdown-content" }, U("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": !0, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (r) => this.handleListboxKeydown(r) }, this.availableOptions.map((r) => this.renderOption(r)))) : null));
9347
+ return U(Gr, { key: "f8e72e38ce1323acd6ca5ada6c9b8e4a52fd5cd3" }, U("div", { key: "acd2eead0fe45b85da48057a52d3f99337870795", class: "dropdown", part: "msd_dropdown" }, U("label", { key: "c586999e4b30f366d6033bef3cbf1142040db8a3", class: "dropdown-label" }, this.label, U("slot", { key: "2817a8851a72bbabe9309c3da79e8ca25c1c461e", name: "label-icon", "aria-hidden": "true" })), U("button", { key: "588fd27317e0c73ad8a83ac18e826b62ab968128", name: this.name, part: `msd_dropdown-button ${this.error ? "msd_dropdown-button--error" : ""}`, class: { dropbtn: !0, open: this.isOpen, error: !!this.error }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (r) => this.handleSelectButtonKeyDown(r) }, U("slot", { key: "e6fc309a7ffb30921118e1cd1d1fb4aea321a0fb", name: "select-icon", "aria-hidden": "true" }), U("span", { key: "62a4abccd0100022f7e163410ffaf8fca8ebaefb", class: "selected-option", part: "msd_dropdown-button-selected-label" }, this.getSelectedOptions().length > 1 ? "Multiple options selected" : ((e = this.availableOptions.filter((r) => r.selected)[0]) == null ? void 0 : e.label) ?? ((t = this.availableOptions[0]) == null ? void 0 : t.label)), U("span", { key: "1fff4fa8e566dcec2ac9e28bcededc41c7b42585", class: this.isOpen ? "open" : "closed", "aria-hidden": "true" }, U("chevron-icon", { key: "39b47d625b2e3e78f795e3853e8a4811842036de", width: "16", height: "16" }))), this.error ? U("span", { class: "error" }, this.error) : null, this.isOpen ? null : U("div", { class: "selected-options" }, this.getSelectedOptions().map((r) => U("span", { class: "selected-option" }, r.label, U("button", { key: r.label, onClick: () => this.selectOption(r) }, U("close-icon", null))))), this.isOpen ? U("div", { class: "dropdown-content", part: "msd_dropdown-content" }, U("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-multiselectable": !0, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (r) => this.handleListboxKeydown(r) }, this.availableOptions.map((r) => this.renderOption(r)))) : null));
9336
9348
  }
9337
9349
  get el() {
9338
9350
  return this;
9339
9351
  }
9352
+ static get watchers() {
9353
+ return {
9354
+ options: ["optionsChangedHandler"]
9355
+ };
9356
+ }
9340
9357
  static get style() {
9341
9358
  return E3;
9342
9359
  }
@@ -9349,7 +9366,9 @@ const w3 = ':host{display:block;width:inherit;--nylas-primary:#2563eb;--nylas-er
9349
9366
  isOpen: [32],
9350
9367
  ariaActivedescendant: [32],
9351
9368
  shouldFocusFirstOption: [32]
9352
- }, [[6, "click", "handleOutsideClick"]]]);
9369
+ }, [[6, "click", "handleOutsideClick"]], {
9370
+ options: ["optionsChangedHandler"]
9371
+ }]);
9353
9372
  function T3() {
9354
9373
  if (typeof customElements > "u")
9355
9374
  return;
@@ -9373,8 +9392,8 @@ var C3 = function(n, e, t, r) {
9373
9392
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
9374
9393
  u = Reflect.decorate(n, e, t, r);
9375
9394
  else
9376
- for (var a = n.length - 1; a >= 0; a--)
9377
- (o = n[a]) && (u = (i < 3 ? o(u) : i > 3 ? o(e, t, u) : o(e, t)) || u);
9395
+ for (var s = n.length - 1; s >= 0; s--)
9396
+ (o = n[s]) && (u = (i < 3 ? o(u) : i > 3 ? o(e, t, u) : o(e, t)) || u);
9378
9397
  return i > 3 && u && Object.defineProperty(e, t, u), u;
9379
9398
  }, br = function(n, e) {
9380
9399
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
@@ -9422,11 +9441,11 @@ const mn = ht(class extends mt {
9422
9441
  render() {
9423
9442
  var t;
9424
9443
  const e = ((t = this.calendars) == null ? void 0 : t.map((r) => {
9425
- var i, u, o, a;
9444
+ var i, u, o, s;
9426
9445
  return {
9427
9446
  value: r.id,
9428
9447
  label: r.name,
9429
- selected: ((i = this.defaultSelectedCalendars) == null ? void 0 : i.includes(r.id)) || ((u = this.defaultSelectedCalendars) != null && u.includes("primary") || ((o = this.defaultSelectedCalendars) == null ? void 0 : o.length) === 0 ? r.id === ((a = this.currentUser) == null ? void 0 : a.email) || r.id === this.name.split("participant-")[1] : !1)
9448
+ selected: ((i = this.defaultSelectedCalendars) == null ? void 0 : i.includes(r.id)) || ((u = this.defaultSelectedCalendars) != null && u.includes("primary") || ((o = this.defaultSelectedCalendars) == null ? void 0 : o.length) === 0 ? r.id === ((s = this.currentUser) == null ? void 0 : s.email) || r.id === this.name.split("participant-")[1] : !1)
9430
9449
  };
9431
9450
  })) ?? [];
9432
9451
  return U(Gr, null, U("div", { class: "nylas-calendar-picker", part: "ncp" }, e.length > 0 ? U("div", { class: "nylas-calendar-picker__dropdown" }, U("multi-select-dropdown", { name: this.name, options: e, error: this.error, exportparts: "msd_dropdown: ncp__dropdown, msd_dropdown-button: ncp__dropdown-button, msd_dropdown-content: ncp__dropdown-content" })) : U("div", { class: "nylas-calendar-picker__loading" }, U("span", { class: "label" }, "Select calendars that will be checked for availability ", U("info-icon", null)), U("div", { class: "loading-button" }, U("span", null, "Loading...")))));