smoothly 0.1.77 → 0.1.81

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 (220) hide show
  1. package/dist/cjs/{App-eff713bd.js → App-ffc56e72.js} +1 -1
  2. package/dist/cjs/{Notice-e43922ea.js → Notice-9120d311.js} +1 -1
  3. package/dist/cjs/{css-shim-e3f30f9a.js → css-shim-88cc6900.js} +1 -1
  4. package/dist/cjs/{dom-c8b6d1a7.js → dom-95afd968.js} +1 -1
  5. package/dist/cjs/{generate-7f7f7d99.js → generate-14aca5d2.js} +1 -1
  6. package/dist/cjs/{index-b7e6a72c.js → index-138c41c2.js} +342 -147
  7. package/dist/cjs/{index-5537d93a.js → index-41a36ce2.js} +154 -88
  8. package/dist/cjs/{index-7c9d0102.js → index-42db74b3.js} +2 -2
  9. package/dist/cjs/{index-c973259c.js → index-de5d1ee1.js} +10 -7
  10. package/dist/cjs/{index-e37f73fe.js → index-fc82954f.js} +311 -12
  11. package/dist/cjs/index.cjs.js +3 -3
  12. package/dist/cjs/loader.cjs.js +4 -4
  13. package/dist/cjs/{shadow-css-6cbb23a9.js → shadow-css-71d0f821.js} +12 -6
  14. package/dist/cjs/smoothly-accordion-item.cjs.entry.js +2 -2
  15. package/dist/cjs/smoothly-accordion.cjs.entry.js +2 -2
  16. package/dist/cjs/{smoothly-accordion_46.cjs.entry.js → smoothly-accordion_47.cjs.entry.js} +7965 -2493
  17. package/dist/cjs/smoothly-app-demo.cjs.entry.js +3 -3
  18. package/dist/cjs/smoothly-app.cjs.entry.js +2 -2
  19. package/dist/cjs/smoothly-calendar.cjs.entry.js +4 -4
  20. package/dist/cjs/smoothly-checkbox.cjs.entry.js +5707 -504
  21. package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +2 -2
  22. package/dist/cjs/smoothly-dialog.cjs.entry.js +3 -3
  23. package/dist/cjs/smoothly-display-amount.cjs.entry.js +3 -3
  24. package/dist/cjs/smoothly-display-date-time.cjs.entry.js +2 -2
  25. package/dist/cjs/smoothly-display-demo.cjs.entry.js +4 -4
  26. package/dist/cjs/smoothly-display.cjs.entry.js +3 -3
  27. package/dist/cjs/smoothly-frame.cjs.entry.js +3 -3
  28. package/dist/cjs/smoothly-icon-demo.cjs.entry.js +2 -2
  29. package/dist/cjs/smoothly-icon.cjs.entry.js +2 -2
  30. package/dist/cjs/smoothly-input-date-range.cjs.entry.js +3 -3
  31. package/dist/cjs/smoothly-input-date.cjs.entry.js +3 -3
  32. package/dist/cjs/smoothly-input-demo.cjs.entry.js +2 -2
  33. package/dist/cjs/smoothly-input-month.cjs.entry.js +4 -4
  34. package/dist/cjs/smoothly-input.cjs.entry.js +19 -12
  35. package/dist/cjs/smoothly-item.cjs.entry.js +6 -2
  36. package/dist/cjs/smoothly-menu-options.cjs.entry.js +2 -2
  37. package/dist/cjs/smoothly-notification.cjs.entry.js +2 -2
  38. package/dist/cjs/smoothly-notifier.cjs.entry.js +2 -2
  39. package/dist/cjs/smoothly-option.cjs.entry.js +2 -2
  40. package/dist/cjs/smoothly-picker.cjs.entry.js +2 -2
  41. package/dist/cjs/smoothly-popup.cjs.entry.js +2 -2
  42. package/dist/cjs/smoothly-quiet.cjs.entry.js +19 -0
  43. package/dist/cjs/smoothly-radio-group.cjs.entry.js +2 -2
  44. package/dist/cjs/smoothly-radio.cjs.entry.js +2 -2
  45. package/dist/cjs/smoothly-reorder.cjs.entry.js +2 -2
  46. package/dist/cjs/smoothly-room.cjs.entry.js +2 -2
  47. package/dist/cjs/smoothly-select-demo.cjs.entry.js +2 -2
  48. package/dist/cjs/smoothly-select.cjs.entry.js +2 -2
  49. package/dist/cjs/smoothly-selector.cjs.entry.js +2 -2
  50. package/dist/cjs/smoothly-spinner.cjs.entry.js +2 -2
  51. package/dist/cjs/smoothly-submit.cjs.entry.js +2 -2
  52. package/dist/cjs/smoothly-tab-switch.cjs.entry.js +2 -2
  53. package/dist/cjs/smoothly-tab.cjs.entry.js +2 -2
  54. package/dist/cjs/smoothly-table-cell.cjs.entry.js +2 -2
  55. package/dist/cjs/smoothly-table-demo.cjs.entry.js +2 -2
  56. package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +2 -2
  57. package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +2 -2
  58. package/dist/cjs/smoothly-table-header.cjs.entry.js +2 -2
  59. package/dist/cjs/smoothly-table-row.cjs.entry.js +2 -2
  60. package/dist/cjs/smoothly-table.cjs.entry.js +2 -2
  61. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +3 -3
  62. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +3 -3
  63. package/dist/cjs/smoothly-trigger.cjs.entry.js +2 -2
  64. package/dist/cjs/smoothly-tuple.cjs.entry.js +2 -2
  65. package/dist/cjs/smoothly-urlencoded.cjs.entry.js +2 -2
  66. package/dist/cjs/smoothly.cjs.js +10 -7
  67. package/dist/collection/collection-manifest.json +3 -2
  68. package/dist/collection/components/display-demo/index.js +4 -1
  69. package/dist/collection/components/input/index.js +16 -9
  70. package/dist/collection/components/item/index.js +4 -0
  71. package/dist/collection/components/quiet/index.js +34 -0
  72. package/dist/collection/components/quiet/style.css +3 -0
  73. package/dist/custom-elements/index.d.ts +6 -0
  74. package/dist/custom-elements/index.js +8186 -2655
  75. package/dist/{smoothly/App-bf78807d.js → esm/App-c5f6000f.js} +1 -1
  76. package/dist/esm/{Notice-966edc54.js → Notice-d87d90f7.js} +1 -1
  77. package/dist/esm/{css-shim-003e9264.js → css-shim-c64026cd.js} +1 -1
  78. package/dist/esm/{dom-1b195079.js → dom-a712b575.js} +1 -1
  79. package/dist/esm/{generate-7090dc14.js → generate-be25a8d1.js} +1 -1
  80. package/dist/esm/{index-0dd5f791.js → index-02a70ac1.js} +342 -147
  81. package/dist/{smoothly/index-01fedb5b.js → esm/index-36a04e8c.js} +2 -2
  82. package/dist/esm/{index-531e2f06.js → index-68492ed9.js} +10 -7
  83. package/dist/{smoothly/index-13251390.js → esm/index-a28d88cf.js} +311 -12
  84. package/dist/esm/{index-9d550804.js → index-dcb2b612.js} +154 -88
  85. package/dist/esm/index.js +3 -3
  86. package/dist/esm/loader.js +4 -4
  87. package/dist/esm/{shadow-css-c1ad5fdc.js → shadow-css-1e16431b.js} +12 -6
  88. package/dist/esm/smoothly-accordion-item.entry.js +2 -2
  89. package/dist/esm/smoothly-accordion.entry.js +2 -2
  90. package/dist/esm/{smoothly-accordion_46.entry.js → smoothly-accordion_47.entry.js} +7965 -2494
  91. package/dist/esm/smoothly-app-demo.entry.js +3 -3
  92. package/dist/esm/smoothly-app.entry.js +2 -2
  93. package/dist/esm/smoothly-calendar.entry.js +4 -4
  94. package/dist/esm/smoothly-checkbox.entry.js +5703 -500
  95. package/dist/esm/smoothly-dialog-demo.entry.js +2 -2
  96. package/dist/esm/smoothly-dialog.entry.js +3 -3
  97. package/dist/esm/smoothly-display-amount.entry.js +3 -3
  98. package/dist/esm/smoothly-display-date-time.entry.js +2 -2
  99. package/dist/esm/smoothly-display-demo.entry.js +4 -4
  100. package/dist/esm/smoothly-display.entry.js +3 -3
  101. package/dist/esm/smoothly-frame.entry.js +3 -3
  102. package/dist/esm/smoothly-icon-demo.entry.js +2 -2
  103. package/dist/esm/smoothly-icon.entry.js +2 -2
  104. package/dist/esm/smoothly-input-date-range.entry.js +3 -3
  105. package/dist/esm/smoothly-input-date.entry.js +3 -3
  106. package/dist/esm/smoothly-input-demo.entry.js +2 -2
  107. package/dist/esm/smoothly-input-month.entry.js +4 -4
  108. package/dist/esm/smoothly-input.entry.js +19 -12
  109. package/dist/esm/smoothly-item.entry.js +6 -2
  110. package/dist/esm/smoothly-menu-options.entry.js +2 -2
  111. package/dist/esm/smoothly-notification.entry.js +2 -2
  112. package/dist/esm/smoothly-notifier.entry.js +2 -2
  113. package/dist/esm/smoothly-option.entry.js +2 -2
  114. package/dist/esm/smoothly-picker.entry.js +2 -2
  115. package/dist/esm/smoothly-popup.entry.js +2 -2
  116. package/dist/esm/smoothly-quiet.entry.js +15 -0
  117. package/dist/esm/smoothly-radio-group.entry.js +2 -2
  118. package/dist/esm/smoothly-radio.entry.js +2 -2
  119. package/dist/esm/smoothly-reorder.entry.js +2 -2
  120. package/dist/esm/smoothly-room.entry.js +2 -2
  121. package/dist/esm/smoothly-select-demo.entry.js +2 -2
  122. package/dist/esm/smoothly-select.entry.js +2 -2
  123. package/dist/esm/smoothly-selector.entry.js +2 -2
  124. package/dist/esm/smoothly-spinner.entry.js +2 -2
  125. package/dist/esm/smoothly-submit.entry.js +2 -2
  126. package/dist/esm/smoothly-tab-switch.entry.js +2 -2
  127. package/dist/esm/smoothly-tab.entry.js +2 -2
  128. package/dist/esm/smoothly-table-cell.entry.js +2 -2
  129. package/dist/esm/smoothly-table-demo.entry.js +2 -2
  130. package/dist/esm/smoothly-table-expandable-cell.entry.js +2 -2
  131. package/dist/esm/smoothly-table-expandable-row.entry.js +2 -2
  132. package/dist/esm/smoothly-table-header.entry.js +2 -2
  133. package/dist/esm/smoothly-table-row.entry.js +2 -2
  134. package/dist/esm/smoothly-table.entry.js +2 -2
  135. package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
  136. package/dist/esm/smoothly-trigger-source.entry.js +3 -3
  137. package/dist/esm/smoothly-trigger.entry.js +2 -2
  138. package/dist/esm/smoothly-tuple.entry.js +2 -2
  139. package/dist/esm/smoothly-urlencoded.entry.js +2 -2
  140. package/dist/esm/smoothly.js +10 -7
  141. package/dist/{esm/App-bf78807d.js → smoothly/App-c5f6000f.js} +1 -1
  142. package/dist/smoothly/{css-shim-003e9264.js → css-shim-c64026cd.js} +1 -1
  143. package/dist/smoothly/{dom-1b195079.js → dom-a712b575.js} +1 -1
  144. package/dist/smoothly/{generate-7090dc14.js → generate-be25a8d1.js} +1 -1
  145. package/dist/smoothly/{index-0dd5f791.js → index-02a70ac1.js} +342 -147
  146. package/dist/{esm/index-01fedb5b.js → smoothly/index-36a04e8c.js} +2 -2
  147. package/dist/smoothly/{index-531e2f06.js → index-68492ed9.js} +10 -7
  148. package/dist/{esm/index-13251390.js → smoothly/index-a28d88cf.js} +311 -12
  149. package/dist/smoothly/index.esm.js +3 -3
  150. package/dist/smoothly/{p-0906d4b2.js → p-074a0448.js} +1 -1
  151. package/dist/smoothly/p-09d633f8.entry.js +1 -0
  152. package/dist/smoothly/p-0c1e9588.entry.js +1 -0
  153. package/dist/smoothly/p-1a81597b.entry.js +1 -0
  154. package/dist/smoothly/{p-7f5dd95f.js → p-1e768876.js} +1 -1
  155. package/dist/smoothly/p-9fa3ab06.entry.js +1 -0
  156. package/dist/smoothly/p-c9d01e9b.entry.js +1 -0
  157. package/dist/smoothly/{shadow-css-c1ad5fdc.js → shadow-css-1e16431b.js} +12 -6
  158. package/dist/smoothly/smoothly-accordion-item.entry.js +2 -2
  159. package/dist/smoothly/smoothly-accordion.entry.js +2 -2
  160. package/dist/smoothly/smoothly-app-demo.entry.js +3 -3
  161. package/dist/smoothly/smoothly-app.entry.js +2 -2
  162. package/dist/smoothly/smoothly-calendar.entry.js +4 -4
  163. package/dist/smoothly/smoothly-checkbox.entry.js +5703 -500
  164. package/dist/smoothly/smoothly-dialog-demo.entry.js +2 -2
  165. package/dist/smoothly/smoothly-dialog.entry.js +3 -3
  166. package/dist/smoothly/smoothly-display-amount.entry.js +3 -3
  167. package/dist/smoothly/smoothly-display-date-time.entry.js +2 -2
  168. package/dist/smoothly/smoothly-display-demo.entry.js +4 -4
  169. package/dist/smoothly/smoothly-display.entry.js +3 -3
  170. package/dist/smoothly/smoothly-frame.entry.js +3 -3
  171. package/dist/smoothly/smoothly-icon-demo.entry.js +2 -2
  172. package/dist/smoothly/smoothly-icon.entry.js +2 -2
  173. package/dist/smoothly/smoothly-input-date-range.entry.js +3 -3
  174. package/dist/smoothly/smoothly-input-date.entry.js +3 -3
  175. package/dist/smoothly/smoothly-input-demo.entry.js +2 -2
  176. package/dist/smoothly/smoothly-input-month.entry.js +4 -4
  177. package/dist/smoothly/smoothly-input.entry.js +19 -12
  178. package/dist/smoothly/smoothly-item.entry.js +6 -2
  179. package/dist/smoothly/smoothly-menu-options.entry.js +2 -2
  180. package/dist/smoothly/smoothly-notification.entry.js +2 -2
  181. package/dist/smoothly/smoothly-notifier.entry.js +2 -2
  182. package/dist/smoothly/smoothly-option.entry.js +2 -2
  183. package/dist/smoothly/smoothly-picker.entry.js +2 -2
  184. package/dist/smoothly/smoothly-popup.entry.js +2 -2
  185. package/dist/smoothly/smoothly-quiet.entry.js +15 -0
  186. package/dist/smoothly/smoothly-radio-group.entry.js +2 -2
  187. package/dist/smoothly/smoothly-radio.entry.js +2 -2
  188. package/dist/smoothly/smoothly-reorder.entry.js +2 -2
  189. package/dist/smoothly/smoothly-room.entry.js +2 -2
  190. package/dist/smoothly/smoothly-select-demo.entry.js +2 -2
  191. package/dist/smoothly/smoothly-select.entry.js +2 -2
  192. package/dist/smoothly/smoothly-selector.entry.js +2 -2
  193. package/dist/smoothly/smoothly-spinner.entry.js +2 -2
  194. package/dist/smoothly/smoothly-submit.entry.js +2 -2
  195. package/dist/smoothly/smoothly-tab-switch.entry.js +2 -2
  196. package/dist/smoothly/smoothly-tab.entry.js +2 -2
  197. package/dist/smoothly/smoothly-table-cell.entry.js +2 -2
  198. package/dist/smoothly/smoothly-table-demo.entry.js +2 -2
  199. package/dist/smoothly/smoothly-table-expandable-cell.entry.js +2 -2
  200. package/dist/smoothly/smoothly-table-expandable-row.entry.js +2 -2
  201. package/dist/smoothly/smoothly-table-header.entry.js +2 -2
  202. package/dist/smoothly/smoothly-table-row.entry.js +2 -2
  203. package/dist/smoothly/smoothly-table.entry.js +2 -2
  204. package/dist/smoothly/smoothly-trigger-sink.entry.js +3 -3
  205. package/dist/smoothly/smoothly-trigger-source.entry.js +3 -3
  206. package/dist/smoothly/smoothly-trigger.entry.js +2 -2
  207. package/dist/smoothly/smoothly-tuple.entry.js +2 -2
  208. package/dist/smoothly/smoothly-urlencoded.entry.js +2 -2
  209. package/dist/smoothly/smoothly.esm.js +10 -7
  210. package/dist/types/components/item/index.d.ts +1 -0
  211. package/dist/types/components/quiet/index.d.ts +4 -0
  212. package/dist/types/components.d.ts +15 -0
  213. package/dist/types/stencil-public-runtime.d.ts +183 -182
  214. package/loader/index.d.ts +0 -1
  215. package/package.json +89 -90
  216. package/dist/smoothly/p-22bce579.entry.js +0 -1
  217. package/dist/smoothly/p-41528fcb.entry.js +0 -1
  218. package/dist/smoothly/p-89fe12b0.entry.js +0 -1
  219. package/dist/smoothly/p-e3d91e7a.entry.js +0 -1
  220. package/dist/smoothly/p-e79800d9.entry.js +0 -1
@@ -210,9 +210,9 @@ var Action;
210
210
  var _a, _b;
211
211
  let result = State_1.State.copy(formatter.unformat(StateEditor_1.StateEditor.copy(state)));
212
212
  if (action) {
213
- if (action.ctrlKey) {
213
+ if (action.ctrlKey || action.metaKey) {
214
214
  if (action.key == "a")
215
- select(state, 0, state.value.length, "forward");
215
+ select(result, 0, result.value.length, "forward");
216
216
  else if (["ArrowLeft", "ArrowRight"].includes(action.key) && ((_a = state) === null || _a === void 0 ? void 0 : _a.type) != "password")
217
217
  result = ctrlArrow(formatter, state, action);
218
218
  else if (["Delete", "Backspace"].includes(action.key) && ((_b = state) === null || _b === void 0 ? void 0 : _b.type) != "password")
@@ -78,13 +78,16 @@ class Algorithm$2 {
78
78
  return __awaiter$d(this, void 0, void 0, function* () {
79
79
  const iv = salt ? decode$1(salt, "url") : crypto.getRandomValues(new Uint8Array(16));
80
80
  return {
81
+ key: this.name,
81
82
  salt: salt || encode$1(iv, "url"),
82
83
  value: encode$1(new Uint8Array(yield crypto.subtle.encrypt({ name: (yield this.key).algorithm.name, iv }, yield this.key, new TextEncoder().encode(data))), "url"),
83
84
  };
84
85
  });
85
86
  }
86
- decrypt(encrypted) {
87
+ decrypt(encrypted, salt) {
87
88
  return __awaiter$d(this, void 0, void 0, function* () {
89
+ if (typeof encrypted == "string")
90
+ encrypted = { value: encrypted, salt: salt !== null && salt !== void 0 ? salt : "" };
88
91
  return new TextDecoder().decode(new Uint8Array(yield crypto.subtle.decrypt({ name: (yield this.key).algorithm.name, iv: decode$1(encrypted.salt, "url") }, yield this.key, decode$1(encrypted.value, "url"))));
89
92
  });
90
93
  }
@@ -1077,7 +1080,7 @@ class Issuer extends Actor {
1077
1080
  return __awaiter$1(this, void 0, void 0, function* () {
1078
1081
  payload = Object.assign(Object.assign({}, this.payload), payload);
1079
1082
  if (issuedAt)
1080
- payload.iat = typeof issuedAt == "number" ? issuedAt : issuedAt.getTime();
1083
+ payload.iat = typeof issuedAt == "number" ? issuedAt : issuedAt.getTime() / 1000;
1081
1084
  const transformed = yield this.transformers.reduce((p, c) => __awaiter$1(this, void 0, void 0, function* () { return c.apply(yield p); }), Promise.resolve(payload));
1082
1085
  const data = transformed &&
1083
1086
  `${encode$1(new TextEncoder().encode(JSON.stringify(this.header)), "url")}.${encode$1(new TextEncoder().encode(JSON.stringify(transformed)), "url")}`;
@@ -1089,7 +1092,7 @@ class Issuer extends Actor {
1089
1092
  ? Math.floor(Date.now() / 1000)
1090
1093
  : typeof Issuer.defaultIssuedAt == "number"
1091
1094
  ? Issuer.defaultIssuedAt
1092
- : Math.floor(Issuer.defaultIssuedAt.getTime());
1095
+ : Math.floor(Issuer.defaultIssuedAt.getTime() / 1000);
1093
1096
  }
1094
1097
  static create(issuer, algorithm) {
1095
1098
  return (algorithm && new Issuer(issuer, algorithm)) || undefined;
@@ -1153,10 +1156,6 @@ class Verifier extends Actor {
1153
1156
  result = undefined;
1154
1157
  }
1155
1158
  result = result && this.verifyAudience(result.aud, audience) ? result : undefined;
1156
- if (result) {
1157
- result.token = token;
1158
- result = yield this.transformers.reduceRight((p, c) => __awaiter(this, void 0, void 0, function* () { return c.reverse(yield p); }), Promise.resolve(result));
1159
- }
1160
1159
  if (result) {
1161
1160
  const now = Math.floor(Date.now() / 1000);
1162
1161
  if ((result === null || result === void 0 ? void 0 : result.iat) && result.iat > 1000000000000)
@@ -1168,6 +1167,10 @@ class Verifier extends Actor {
1168
1167
  ? result
1169
1168
  : undefined;
1170
1169
  }
1170
+ if (result) {
1171
+ result.token = token;
1172
+ result = yield this.transformers.reduceRight((p, c) => __awaiter(this, void 0, void 0, function* () { return c.reverse(yield p); }), Promise.resolve(result));
1173
+ }
1171
1174
  }
1172
1175
  }
1173
1176
  return result;
@@ -16572,7 +16572,9 @@ exports.Date = void 0;
16572
16572
  var Date;
16573
16573
  (function (Date) {
16574
16574
  function is(value) {
16575
- return (typeof value == "string" && /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
16575
+ return (typeof value == "string" &&
16576
+ value.length == 10 &&
16577
+ /^(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)|(\d{4}-[01]\d-[0-3]\d)$/.test(value));
16576
16578
  }
16577
16579
  Date.is = is;
16578
16580
  function parse(value, time) {
@@ -16587,16 +16589,13 @@ var Date;
16587
16589
  return create(new globalThis.Date());
16588
16590
  }
16589
16591
  Date.now = now;
16590
- function localize(value, locale) {
16592
+ function localize(value, locale, timezone) {
16591
16593
  return (is(value) ? parse(value) : value)
16592
16594
  .toLocaleString(locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale, {
16593
16595
  year: "numeric",
16594
16596
  month: "2-digit",
16595
16597
  day: "2-digit",
16596
- hour: "2-digit",
16597
- minute: "2-digit",
16598
- second: "2-digit",
16599
- timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
16598
+ timeZone: timezone !== null && timezone !== void 0 ? timezone : Intl.DateTimeFormat().resolvedOptions().timeZone,
16600
16599
  })
16601
16600
  .substring(0, 10);
16602
16601
  }
@@ -16672,12 +16671,69 @@ var Date;
16672
16671
  return Date.create(result);
16673
16672
  }
16674
16673
  Date.lastOfMonth = lastOfMonth;
16674
+ function getYear(time) {
16675
+ return Number.parseInt(time.substring(0, 4));
16676
+ }
16677
+ Date.getYear = getYear;
16678
+ function getMonth(time) {
16679
+ return Number.parseInt(time.substring(5, 7));
16680
+ }
16681
+ Date.getMonth = getMonth;
16682
+ function getDay(time) {
16683
+ return Number.parseInt(time.substring(8, 10));
16684
+ }
16685
+ Date.getDay = getDay;
16675
16686
  })(Date = exports.Date || (exports.Date = {}));
16676
16687
  //# sourceMappingURL=Date.js.map
16677
16688
  });
16678
16689
 
16679
16690
  const _Date$1 = /*@__PURE__*/getDefaultExportFromCjs(_Date);
16680
16691
 
16692
+ var DateRange_1 = createCommonjsModule(function (module, exports) {
16693
+ "use strict";
16694
+ Object.defineProperty(exports, "__esModule", { value: true });
16695
+ exports.DateRange = void 0;
16696
+
16697
+ var DateRange;
16698
+ (function (DateRange) {
16699
+ function is(value) {
16700
+ return typeof value == "object" && _Date.Date.is(value.start) && _Date.Date.is(value.end);
16701
+ }
16702
+ DateRange.is = is;
16703
+ function create(start, end) {
16704
+ return !_Date.Date.is(end)
16705
+ ? create(start, _Date.Date.next(start, end))
16706
+ : start <= end
16707
+ ? { start, end }
16708
+ : { start: end, end: start };
16709
+ }
16710
+ DateRange.create = create;
16711
+ })(DateRange = exports.DateRange || (exports.DateRange = {}));
16712
+ //# sourceMappingURL=DateRange.js.map
16713
+ });
16714
+
16715
+ const DateRange = /*@__PURE__*/getDefaultExportFromCjs(DateRange_1);
16716
+
16717
+ var DateSpan_1 = createCommonjsModule(function (module, exports) {
16718
+ "use strict";
16719
+ Object.defineProperty(exports, "__esModule", { value: true });
16720
+ exports.DateSpan = void 0;
16721
+ var DateSpan;
16722
+ (function (DateSpan) {
16723
+ function is(value) {
16724
+ return (typeof value == "object" &&
16725
+ (typeof value.years == "number" || value.years == undefined) &&
16726
+ (typeof value.months == "number" || value.months == undefined) &&
16727
+ (typeof value.days == "number" || value.days == undefined) &&
16728
+ (typeof value.years == "number" || typeof value.months == "number" || typeof value.days == "number"));
16729
+ }
16730
+ DateSpan.is = is;
16731
+ })(DateSpan = exports.DateSpan || (exports.DateSpan = {}));
16732
+ //# sourceMappingURL=DateSpan.js.map
16733
+ });
16734
+
16735
+ const DateSpan = /*@__PURE__*/getDefaultExportFromCjs(DateSpan_1);
16736
+
16681
16737
  var DateTime_1 = createCommonjsModule(function (module, exports) {
16682
16738
  "use strict";
16683
16739
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -16690,18 +16746,32 @@ var DateTime;
16690
16746
  }
16691
16747
  DateTime.is = is;
16692
16748
  function parse(value) {
16693
- return new Date(value);
16749
+ return new globalThis.Date(value);
16694
16750
  }
16695
16751
  DateTime.parse = parse;
16696
- function create(value) {
16752
+ function create(value, resolution = "seconds") {
16753
+ if (typeof value == "number") {
16754
+ switch (resolution) {
16755
+ case "days":
16756
+ value = value * 24;
16757
+ case "hours":
16758
+ value = value * 60;
16759
+ case "minutes":
16760
+ value = value * 60;
16761
+ case "seconds":
16762
+ value = value * 1000;
16763
+ case "milliseconds":
16764
+ }
16765
+ value = new globalThis.Date(value);
16766
+ }
16697
16767
  return value.toISOString();
16698
16768
  }
16699
16769
  DateTime.create = create;
16700
16770
  function now() {
16701
- return create(new Date());
16771
+ return create(new globalThis.Date());
16702
16772
  }
16703
16773
  DateTime.now = now;
16704
- function localize(value, locale) {
16774
+ function localize(value, locale, timezone) {
16705
16775
  const localeString = locale ? locale : Intl.DateTimeFormat().resolvedOptions().locale;
16706
16776
  return (is(value) ? parse(value) : value).toLocaleString(localeString, {
16707
16777
  year: "numeric",
@@ -16710,10 +16780,176 @@ var DateTime;
16710
16780
  hour: "2-digit",
16711
16781
  minute: "2-digit",
16712
16782
  second: "2-digit",
16713
- timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
16783
+ timeZone: timezone !== null && timezone !== void 0 ? timezone : Intl.DateTimeFormat().resolvedOptions().timeZone,
16714
16784
  });
16715
16785
  }
16716
16786
  DateTime.localize = localize;
16787
+ function epoch(value, resolution = "seconds") {
16788
+ let result = (typeof value == "string" ? parse(value) : value).getTime();
16789
+ switch (resolution) {
16790
+ case "days":
16791
+ result = Math.round(result / 24);
16792
+ case "hours":
16793
+ result = Math.round(result / 60);
16794
+ case "minutes":
16795
+ result = Math.round(result / 60);
16796
+ case "seconds":
16797
+ result = Math.round(result / 1000);
16798
+ case "milliseconds":
16799
+ }
16800
+ return result;
16801
+ }
16802
+ DateTime.epoch = epoch;
16803
+ function next(time, span = 1) {
16804
+ let result;
16805
+ if (typeof span == "number")
16806
+ result = nextSecond(time, span);
16807
+ else {
16808
+ result = time;
16809
+ if (span.years)
16810
+ result = nextYear(result, span.years);
16811
+ if (span.months)
16812
+ result = nextMonth(result, span.months);
16813
+ if (span.days)
16814
+ result = nextDay(result, span.days);
16815
+ if (span.hours)
16816
+ result = nextHour(result, span.hours);
16817
+ if (span.minutes)
16818
+ result = nextMinute(result, span.minutes);
16819
+ if (span.seconds)
16820
+ result = nextSecond(result, span.seconds);
16821
+ if (span.milliseconds)
16822
+ result = nextMillisecond(result, span.milliseconds);
16823
+ }
16824
+ return result;
16825
+ }
16826
+ DateTime.next = next;
16827
+ function previous(time, span = 1) {
16828
+ let result;
16829
+ if (typeof span == "number")
16830
+ result = previousSecond(time, span);
16831
+ else {
16832
+ result = time;
16833
+ if (span.years)
16834
+ result = previousYear(result, span.years);
16835
+ if (span.months)
16836
+ result = previousMonth(result, span.months);
16837
+ if (span.days)
16838
+ result = previousDay(result, span.days);
16839
+ if (span.hours)
16840
+ result = previousHour(result, span.hours);
16841
+ if (span.minutes)
16842
+ result = previousMinute(result, span.minutes);
16843
+ if (span.seconds)
16844
+ result = previousSecond(result, span.seconds);
16845
+ if (span.milliseconds)
16846
+ result = previousMillisecond(result, span.milliseconds);
16847
+ }
16848
+ return result;
16849
+ }
16850
+ DateTime.previous = previous;
16851
+ function nextMillisecond(time, milliseconds = 1) {
16852
+ const result = parse(time);
16853
+ result.setMilliseconds(result.getMilliseconds() + milliseconds);
16854
+ return DateTime.create(result);
16855
+ }
16856
+ DateTime.nextMillisecond = nextMillisecond;
16857
+ function previousMillisecond(time, seconds = 1) {
16858
+ return nextMillisecond(time, -seconds);
16859
+ }
16860
+ DateTime.previousMillisecond = previousMillisecond;
16861
+ function nextSecond(time, seconds = 1) {
16862
+ const result = parse(time);
16863
+ result.setSeconds(result.getSeconds() + seconds);
16864
+ return DateTime.create(result);
16865
+ }
16866
+ DateTime.nextSecond = nextSecond;
16867
+ function previousSecond(time, seconds = 1) {
16868
+ return nextSecond(time, -seconds);
16869
+ }
16870
+ DateTime.previousSecond = previousSecond;
16871
+ function nextMinute(time, minutes = 1) {
16872
+ const result = parse(time);
16873
+ result.setMinutes(result.getMinutes() + minutes);
16874
+ return DateTime.create(result);
16875
+ }
16876
+ DateTime.nextMinute = nextMinute;
16877
+ function previousMinute(time, minutes = 1) {
16878
+ return nextMinute(time, -minutes);
16879
+ }
16880
+ DateTime.previousMinute = previousMinute;
16881
+ function nextHour(time, hours = 1) {
16882
+ const result = parse(time);
16883
+ result.setHours(result.getHours() + hours);
16884
+ return DateTime.create(result);
16885
+ }
16886
+ DateTime.nextHour = nextHour;
16887
+ function previousHour(time, hours = 1) {
16888
+ return nextHour(time, -hours);
16889
+ }
16890
+ DateTime.previousHour = previousHour;
16891
+ function nextDay(time, days = 1) {
16892
+ const result = parse(time);
16893
+ result.setDate(result.getDate() + days);
16894
+ return DateTime.create(result);
16895
+ }
16896
+ DateTime.nextDay = nextDay;
16897
+ function previousDay(time, days = 1) {
16898
+ return nextDay(time, -days);
16899
+ }
16900
+ DateTime.previousDay = previousDay;
16901
+ function nextMonth(time, months = 1) {
16902
+ const result = parse(time);
16903
+ result.setMonth(result.getMonth() + months);
16904
+ return DateTime.create(result);
16905
+ }
16906
+ DateTime.nextMonth = nextMonth;
16907
+ function previousMonth(time, months = 1) {
16908
+ return nextMonth(time, -months);
16909
+ }
16910
+ DateTime.previousMonth = previousMonth;
16911
+ function nextYear(time, years = 1) {
16912
+ const result = parse(time);
16913
+ result.setFullYear(result.getFullYear() + years);
16914
+ return DateTime.create(result);
16915
+ }
16916
+ DateTime.nextYear = nextYear;
16917
+ function previousYear(time, years = 1) {
16918
+ return nextYear(time, -years);
16919
+ }
16920
+ DateTime.previousYear = previousYear;
16921
+ function getDate(time) {
16922
+ return time.substring(0, 10);
16923
+ }
16924
+ DateTime.getDate = getDate;
16925
+ function getTime(time) {
16926
+ return time.substring(11);
16927
+ }
16928
+ DateTime.getTime = getTime;
16929
+ function getYear(time) {
16930
+ return Number.parseInt(time.substring(0, 4));
16931
+ }
16932
+ DateTime.getYear = getYear;
16933
+ function getMonth(time) {
16934
+ return Number.parseInt(time.substring(5, 7));
16935
+ }
16936
+ DateTime.getMonth = getMonth;
16937
+ function getDay(time) {
16938
+ return Number.parseInt(time.substring(8, 10));
16939
+ }
16940
+ DateTime.getDay = getDay;
16941
+ function getHour(time) {
16942
+ return Number.parseInt(time.substring(11, 13));
16943
+ }
16944
+ DateTime.getHour = getHour;
16945
+ function getMinute(time) {
16946
+ return Number.parseInt(time.substring(14, 16));
16947
+ }
16948
+ DateTime.getMinute = getMinute;
16949
+ function getSecond(time) {
16950
+ return Number.parseInt(time.substring(17, 19));
16951
+ }
16952
+ DateTime.getSecond = getSecond;
16717
16953
  })(DateTime = exports.DateTime || (exports.DateTime = {}));
16718
16954
  //# sourceMappingURL=DateTime.js.map
16719
16955
  });
@@ -18454,6 +18690,61 @@ var Locale;
18454
18690
 
18455
18691
  const Locale = /*@__PURE__*/getDefaultExportFromCjs(Locale_1);
18456
18692
 
18693
+ var TimeRange_1 = createCommonjsModule(function (module, exports) {
18694
+ "use strict";
18695
+ Object.defineProperty(exports, "__esModule", { value: true });
18696
+ exports.TimeRange = void 0;
18697
+
18698
+ var TimeRange;
18699
+ (function (TimeRange) {
18700
+ function is(value) {
18701
+ return typeof value == "object" && DateTime_1.DateTime.is(value.start) && DateTime_1.DateTime.is(value.end);
18702
+ }
18703
+ TimeRange.is = is;
18704
+ function create(start, end) {
18705
+ return !DateTime_1.DateTime.is(end)
18706
+ ? create(start, DateTime_1.DateTime.next(start, end))
18707
+ : start <= end
18708
+ ? { start, end }
18709
+ : { start: end, end: start };
18710
+ }
18711
+ TimeRange.create = create;
18712
+ })(TimeRange = exports.TimeRange || (exports.TimeRange = {}));
18713
+ //# sourceMappingURL=TimeRange.js.map
18714
+ });
18715
+
18716
+ const TimeRange = /*@__PURE__*/getDefaultExportFromCjs(TimeRange_1);
18717
+
18718
+ var TimeSpan_1 = createCommonjsModule(function (module, exports) {
18719
+ "use strict";
18720
+ Object.defineProperty(exports, "__esModule", { value: true });
18721
+ exports.TimeSpan = void 0;
18722
+ var TimeSpan;
18723
+ (function (TimeSpan) {
18724
+ function is(value) {
18725
+ return (typeof value == "object" &&
18726
+ (typeof value.years == "number" || value.years == undefined) &&
18727
+ (typeof value.months == "number" || value.months == undefined) &&
18728
+ (typeof value.days == "number" || value.days == undefined) &&
18729
+ (typeof value.hours == "number" || value.hours == undefined) &&
18730
+ (typeof value.minutes == "number" || value.minutes == undefined) &&
18731
+ (typeof value.seconds == "number" || value.seconds == undefined) &&
18732
+ (typeof value.milliseconds == "number" || value.milliseconds == undefined) &&
18733
+ (typeof value.years == "number" ||
18734
+ typeof value.months == "number" ||
18735
+ typeof value.days == "number" ||
18736
+ typeof value.hours == "number" ||
18737
+ typeof value.minutes == "number" ||
18738
+ typeof value.seconds == "number" ||
18739
+ typeof value.milliseconds == "number"));
18740
+ }
18741
+ TimeSpan.is = is;
18742
+ })(TimeSpan = exports.TimeSpan || (exports.TimeSpan = {}));
18743
+ //# sourceMappingURL=TimeSpan.js.map
18744
+ });
18745
+
18746
+ const TimeSpan = /*@__PURE__*/getDefaultExportFromCjs(TimeSpan_1);
18747
+
18457
18748
  var dist = createCommonjsModule(function (module, exports) {
18458
18749
  "use strict";
18459
18750
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -18476,7 +18767,7 @@ var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (
18476
18767
  return result;
18477
18768
  };
18478
18769
  Object.defineProperty(exports, "__esModule", { value: true });
18479
- exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.CurrencyCode = exports.Currency = exports.CountryCode = exports.CallingCode = void 0;
18770
+ exports.TimeSpan = exports.TimeRange = exports.Locale = exports.Language = exports.Encoding = exports.DateTime = exports.Date = exports.CurrencyCode = exports.Currency = exports.DateRange = exports.DateSpan = exports.CountryCode = exports.CallingCode = void 0;
18480
18771
 
18481
18772
  Object.defineProperty(exports, "CallingCode", { enumerable: true, get: function () { return CallingCode_1.CallingCode; } });
18482
18773
  const CountryCode$1 = __importStar(CountryCode);
@@ -18488,6 +18779,10 @@ Object.defineProperty(exports, "CurrencyCode", { enumerable: true, get: function
18488
18779
 
18489
18780
  Object.defineProperty(exports, "Date", { enumerable: true, get: function () { return _Date.Date; } });
18490
18781
 
18782
+ Object.defineProperty(exports, "DateRange", { enumerable: true, get: function () { return DateRange_1.DateRange; } });
18783
+
18784
+ Object.defineProperty(exports, "DateSpan", { enumerable: true, get: function () { return DateSpan_1.DateSpan; } });
18785
+
18491
18786
  Object.defineProperty(exports, "DateTime", { enumerable: true, get: function () { return DateTime_1.DateTime; } });
18492
18787
 
18493
18788
  Object.defineProperty(exports, "Encoding", { enumerable: true, get: function () { return Encoding_1.Encoding; } });
@@ -18495,6 +18790,10 @@ Object.defineProperty(exports, "Encoding", { enumerable: true, get: function ()
18495
18790
  Object.defineProperty(exports, "Language", { enumerable: true, get: function () { return Language_1.Language; } });
18496
18791
 
18497
18792
  Object.defineProperty(exports, "Locale", { enumerable: true, get: function () { return Locale_1.Locale; } });
18793
+
18794
+ Object.defineProperty(exports, "TimeRange", { enumerable: true, get: function () { return TimeRange_1.TimeRange; } });
18795
+
18796
+ Object.defineProperty(exports, "TimeSpan", { enumerable: true, get: function () { return TimeSpan_1.TimeSpan; } });
18498
18797
  //# sourceMappingURL=index.js.map
18499
18798
  });
18500
18799
 
@@ -1,6 +1,6 @@
1
- export { A as App } from './App-bf78807d.js';
2
- export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-531e2f06.js';
3
- import './index-0dd5f791.js';
1
+ export { A as App } from './App-c5f6000f.js';
2
+ export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-68492ed9.js';
3
+ import './index-02a70ac1.js';
4
4
 
5
5
  const colorNames = {
6
6
  aliceblue: "#f0f8ff",
@@ -1 +1 @@
1
- let e,t,l,n=!1,o=!1,s=!1,i=!1,r=null,c=!1;const f="undefined"!=typeof window?window:{},a=f.document||{head:{}},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)},$=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),y=(e,t,l)=>{l&&l.map((([l,n,o])=>{const s=e,i=h(t,o),r=p(l);u.ael(s,n,i,r),(t.o=t.o||[]).push((()=>u.rel(s,n,i,r)))}))},h=(e,t)=>l=>{try{256&e.t?e.i[t](l):(e.u=e.u||[]).push([t,l])}catch(e){de(e)}},p=e=>0!=(2&e),m="http://www.w3.org/1999/xlink",b=new WeakMap,w=e=>"sc-"+e.$,g={},v=e=>"object"==(e=typeof e)||"function"===e,k=(e,t,...l)=>{let n=null,o=null,s=null,i=!1,r=!1,c=[];const f=t=>{for(let l=0;l<t.length;l++)n=t[l],Array.isArray(n)?f(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!v(n))&&(n+=""),i&&r?c[c.length-1].h+=n:c.push(i?j(null,n):n),r=i)};if(f(l),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,O);const a=j(e,null);return a.p=t,c.length>0&&(a.m=c),a.g=o,a.v=s,a},j=(e,t)=>({t:0,k:e,h:t,j:null,m:null,p:null,g:null,v:null}),S={},O={forEach:(e,t)=>e.map(M).forEach(t),map:(e,t)=>e.map(M).map(t).map(x)},M=e=>({vattrs:e.p,vchildren:e.m,vkey:e.g,vname:e.v,vtag:e.k,vtext:e.h}),x=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),k(e.vtag,t,...e.vchildren||[])}const t=j(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.v=e.vname,t},C=(e,t,l,n,o,s)=>{if(l!==n){let i=$e(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=P(l),s=P(n);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in l)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)l&&n[t]===l[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=v(n);if((i||c&&null!==n)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{let o=null==n?"":n;"list"===t?i=!1:null!=l&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,f=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(m,t):e.removeAttribute(t)):(!i||4&s||o)&&!c&&(n=!0===n?"":n,f?e.setAttributeNS(m,t,n):e.setAttribute(t,n))}else t="-"===t[2]?t.slice(3):$e(f,r)?r.slice(2):r[2]+t.slice(3),l&&u.rel(e,t,l,!1),n&&u.ael(e,t,n,!1)}},R=/\s/,P=e=>e?e.split(R):[],T=(e,t,l,n)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.p||g,i=t.p||g;for(n in s)n in i||C(o,n,s[n],void 0,l,t.t);for(n in i)C(o,n,s[n],i[n],l,t.t)},E=(o,r,c,f)=>{let u,$,d,y=r.m[c],h=0;if(n||(s=!0,"slot"===y.k&&(e&&f.classList.add(e+"-s"),y.t|=y.m?2:1)),null!==y.h)u=y.j=a.createTextNode(y.h);else if(1&y.t)u=y.j=a.createTextNode("");else{if(i||(i="svg"===y.k),u=y.j=a.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&y.t?"slot-fb":y.k),i&&"foreignObject"===y.k&&(i=!1),T(null,y,i),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),y.m)for(h=0;h<y.m.length;++h)$=E(o,y,h,u),$&&u.appendChild($);"svg"===y.k?i=!1:"foreignObject"===u.tagName&&(i=!0)}return u["s-hn"]=l,3&y.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=y.v||"",d=o&&o.m&&o.m[c],d&&d.k===y.k&&o.j&&L(o.j,!1)),u},L=(e,t)=>{u.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==l&&o["s-ol"]&&(H(o).insertBefore(o,F(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&L(o,t)}u.t&=-2},W=(e,t,n,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=E(null,n,s,e),r&&(o[s].j=r,c.insertBefore(r,F(t))))},A=(e,t,l,n,s)=>{for(;t<=l;++t)(n=e[t])&&(s=n.j,z(n),o=!0,s["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},D=(e,t)=>e.k===t.k&&("slot"===e.k?e.v===t.v:e.g===t.g),F=e=>e&&e["s-ol"]||e,H=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const l=t.j=e.j,n=e.m,o=t.m,s=t.k,r=t.h;let c;null===r?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||T(e,t,i),null!==n&&null!==o?((e,t,l,n)=>{let o,s,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],$=t[a],d=n.length-1,y=n[0],h=n[d];for(;i<=a&&r<=d;)if(null==u)u=t[++i];else if(null==$)$=t[--a];else if(null==y)y=n[++r];else if(null==h)h=n[--d];else if(D(u,y))N(u,y),u=t[++i],y=n[++r];else if(D($,h))N($,h),$=t[--a],h=n[--d];else if(D(u,h))"slot"!==u.k&&"slot"!==h.k||L(u.j.parentNode,!1),N(u,h),e.insertBefore(u.j,$.j.nextSibling),u=t[++i],h=n[--d];else if(D($,y))"slot"!==u.k&&"slot"!==h.k||L($.j.parentNode,!1),N($,y),e.insertBefore($.j,u.j),$=t[--a],y=n[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].g&&t[f].g===y.g){c=f;break}c>=0?(s=t[c],s.k!==y.k?o=E(t&&t[r],l,c,e):(N(s,y),t[c]=void 0,o=s.j),y=n[++r]):(o=E(t&&t[r],l,r,e),y=n[++r]),o&&H(u.j).insertBefore(o,F(u.j))}i>a?W(e,null==n[d+1]?null:n[d+1].j,l,n,r,d):r>d&&A(t,i,a)})(l,n,t,o):null!==o?(null!==e.h&&(l.textContent=""),W(l,null,t,o,0,o.length-1)):null!==n&&A(n,0,n.length-1),i&&"svg"===s&&(i=!1)):(c=l["s-cr"])?c.parentNode.textContent=r:e.h!==r&&(l.data=r)},U=e=>{let t,l,n,o,s,i,r=e.childNodes;for(l=0,n=r.length;l<n;l++)if(t=r[l],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<n;o++)if(i=r[o].nodeType,r[o]["s-hn"]!==t["s-hn"]||""!==s){if(1===i&&s===r[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[o].textContent.trim()){t.hidden=!0;break}U(t)}},q=[],V=e=>{let t,l,n,s,i,r,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(l=t["s-cr"])&&l.parentNode)for(n=l.parentNode.childNodes,s=t["s-sn"],r=n.length-1;r>=0;r--)l=n[r],l["s-cn"]||l["s-nr"]||l["s-hn"]===t["s-hn"]||(_(l,s)?(i=q.find((e=>e.S===l)),o=!0,l["s-sn"]=l["s-sn"]||s,i?i.O=t:q.push({O:t,S:l}),l["s-sr"]&&q.map((e=>{_(e.S,l["s-sn"])&&(i=q.find((e=>e.S===l)),i&&!e.O&&(e.O=i.O))}))):q.some((e=>e.S===l))||q.push({S:l}));1===t.nodeType&&V(t)}},_=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,z=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(z)},B=e=>fe(e).M,G=(e,t,l)=>{const n=B(e);return{emit:e=>I(n,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},I=(e,t,l)=>{const n=u.ce(t,l);return e.dispatchEvent(n),n},J=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},K=(e,t)=>{if(e.t|=16,!(4&e.t))return J(e,e.R),je((()=>Q(e,t)));e.t|=512},Q=(e,t)=>{const l=e.i;let n;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>ne(l,e,t))),e.u=null),n=ne(l,"componentWillLoad")),oe(n,(()=>X(e,l,t)))},X=async(e,t,l)=>{const n=e.M,o=n["s-rc"];l&&(e=>{const t=e.P,l=e.M,n=t.t,o=((e,t)=>{let l=w(t),n=pe.get(l);if(e=11===e.nodeType?e:a,n)if("string"==typeof n){let t,o=b.get(e=e.head||e);o||b.set(e,o=new Set),o.has(l)||(t=a.createElement("style"),t.innerHTML=n,e.insertBefore(t,e.querySelector("link")),o&&o.add(l))}else e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return l})(l.shadowRoot?l.shadowRoot:l.getRootNode(),t);10&n&&(l["s-sc"]=o,l.classList.add(o+"-h"),2&n&&l.classList.add(o+"-s"))})(e);Y(e,t),o&&(o.map((e=>e())),n["s-rc"]=void 0);{const t=n["s-p"],l=()=>ee(e);0===t.length?l():(Promise.all(t).then(l),e.t|=4,t.length=0)}},Y=(i,c)=>{try{r=c,c=c.render&&c.render(),i.t&=-17,i.t|=2,((i,r)=>{const c=i.M,f=i.P,$=i.T||j(null,null),d=(e=>e&&e.k===S)(r)?r:k(null,null,r);if(l=c.tagName,f.L&&(d.p=d.p||{},f.L.map((([e,t])=>d.p[t]=c[e]))),d.k=null,d.t|=4,i.T=d,d.j=$.j=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],n=0!=(1&f.t),o=!1,N($,d),u.t|=1,s){let e,t,l,n,o,s;V(d.j);let i=0;for(;i<q.length;i++)e=q[i],t=e.S,t["s-ol"]||(l=a.createTextNode(""),l["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=l,t));for(i=0;i<q.length;i++)if(e=q[i],t=e.S,e.O){for(n=e.O.parentNode,o=e.O.nextSibling,l=t["s-ol"];l=l.previousSibling;)if(s=l["s-nr"],s&&s["s-sn"]===t["s-sn"]&&n===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&n!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&U(d.j),u.t&=-2,q.length=0})(i,c)}catch(e){de(e,i.M)}return r=null,null},Z=()=>r,ee=e=>{const t=e.M,l=e.i,n=e.R;ne(l,"componentDidRender"),64&e.t||(e.t|=64,se(t),ne(l,"componentDidLoad"),e.W(t),n||le()),e.A(t),e.C&&(e.C(),e.C=void 0),512&e.t&&ke((()=>K(e,!1))),e.t&=-517},te=e=>{{const t=fe(e),l=t.M.isConnected;return l&&2==(18&t.t)&&K(t,!1),l}},le=()=>{se(a.documentElement),ke((()=>I(f,"appload",{detail:{namespace:"smoothly"}})))},ne=(e,t,l)=>{if(e&&e[t])try{return e[t](l)}catch(e){de(e)}},oe=(e,t)=>e&&e.then?e.then(t):t(),se=e=>e.classList.add("hydrated"),ie=(e,t,l)=>{if(t.D){e.watchers&&(t.F=e.watchers);const n=Object.entries(t.D),o=e.prototype;if(n.map((([e,[n]])=>{31&n||2&l&&32&n?Object.defineProperty(o,e,{get(){return((e,t)=>fe(this).H.get(t))(0,e)},set(l){((e,t,l,n)=>{const o=fe(e),s=o.M,i=o.H.get(t),r=o.t,c=o.i;if(l=((e,t)=>null==e||v(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,n.D[t][0]),!(8&r&&void 0!==i||l===i)&&(o.H.set(t,l),c)){if(n.F&&128&r){const e=n.F[t];e&&e.map((e=>{try{c[e](l,i,t)}catch(e){de(e,s)}}))}2==(18&r)&&K(o,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&n&&Object.defineProperty(o,e,{value(...t){const l=fe(this);return l.N.then((()=>l.i[e](...t)))}})})),1&l){const l=new Map;o.attributeChangedCallback=function(e,t,n){u.jmp((()=>{const t=l.get(e);this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,n])=>{const o=n[1]||e;return l.set(o,e),512&n[0]&&t.L.push([e,o]),o}))}}return e},re=(e,t={})=>{const l=[],n=t.exclude||[],o=f.customElements,s=a.head,i=s.querySelector("meta[charset]"),r=a.createElement("style"),c=[];let $,h=!0;Object.assign(u,t),u.l=new URL(t.resourcesUrl||"./",a.baseURI).href,e.map((e=>e[1].map((t=>{const s={t:t[0],$:t[1],D:t[2],U:t[3]};s.D=t[2],s.U=t[3],s.L=[],s.F={};const i=s.$,r=class extends HTMLElement{constructor(e){super(e),ue(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),h?c.push(this):u.jmp((()=>(e=>{if(0==(1&u.t)){const t=fe(e),l=t.P,n=()=>{};if(1&t.t)y(e,t,l.U);else{t.t|=1,12&l.t&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){J(t,t.R=l);break}}l.D&&Object.entries(l.D).map((([t,[l]])=>{if(31&l&&e.hasOwnProperty(t)){const l=e[t];delete e[t],e[t]=l}})),(async(e,t,l,n,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=he(l)).then){const e=()=>{};o=await o,e()}o.isProxied||(l.F=o.watchers,ie(o,l,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){de(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=w(l);if(!pe.has(t)){const n=()=>{};((e,t,l)=>{let n=pe.get(e);d&&l?(n=n||new CSSStyleSheet,n.replace(t)):n=t,pe.set(e,n)})(t,e,!!(1&l.t)),n()}}}const s=t.R,i=()=>K(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,l)}n()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const e=fe(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),ne(t,"disconnectedCallback")}})()))}componentOnReady(){return fe(this).q}};s.V=e[0],n.includes(i)||o.get(i)||(l.push(i),o.define(i,ie(r,s,1)))})))),r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),s.insertBefore(r,i?i.nextSibling:s.firstChild),h=!1,c.length?c.map((e=>e.connectedCallback())):u.jmp((()=>$=setTimeout(le,30)))},ce=new WeakMap,fe=e=>ce.get(e),ae=(e,t)=>ce.set(t.i=e,t),ue=(e,t)=>{const l={t:0,M:e,P:t,H:new Map};return l.N=new Promise((e=>l.A=e)),l.q=new Promise((e=>l.W=e)),e["s-p"]=[],e["s-rc"]=[],y(e,l,t.U),ce.set(e,l)},$e=(e,t)=>t in e,de=(e,t)=>(0,console.error)(e,t),ye=new Map,he=e=>{const t=e.$.replace(/-/g,"_"),l=e.V,n=ye.get(l);return n?n[t]:import(`./${l}.entry.js`).then((e=>(ye.set(l,e),e[t])),de)},pe=new Map,me=[],be=[],we=(e,t)=>l=>{e.push(l),c||(c=!0,t&&4&u.t?ke(ve):u.raf(ve))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){de(e)}e.length=0},ve=()=>{ge(me),ge(be),(c=me.length>0)&&u.raf(ve)},ke=e=>$().then(e),je=we(be,!0);export{S as H,B as a,re as b,G as c,te as f,Z as g,k as h,$ as p,ae as r}
1
+ let e,t,l,n=!1,o=!1,s=!1,i=!1,r=null,c=!1;const f="undefined"!=typeof window?window:{},a=f.document||{head:{}},u={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,l,n)=>e.addEventListener(t,l,n),rel:(e,t,l,n)=>e.removeEventListener(t,l,n),ce:(e,t)=>new CustomEvent(e,t)},d=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),h=(e,t,l)=>{l&&l.map((([l,n,o])=>{const s=e,i=y(t,o),r=p(l);u.ael(s,n,i,r),(t.o=t.o||[]).push((()=>u.rel(s,n,i,r)))}))},y=(e,t)=>l=>{try{256&e.t?e.i[t](l):(e.u=e.u||[]).push([t,l])}catch(e){$e(e)}},p=e=>0!=(2&e),m="http://www.w3.org/1999/xlink",b=new WeakMap,w=e=>"sc-"+e.$,g={},v=e=>"object"==(e=typeof e)||"function"===e,k=(e,t,...l)=>{let n=null,o=null,s=null,i=!1,r=!1,c=[];const f=t=>{for(let l=0;l<t.length;l++)n=t[l],Array.isArray(n)?f(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!v(n))&&(n+=""),i&&r?c[c.length-1].h+=n:c.push(i?j(null,n):n),r=i)};if(f(l),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,O);const a=j(e,null);return a.p=t,c.length>0&&(a.m=c),a.g=o,a.v=s,a},j=(e,t)=>({t:0,k:e,h:t,j:null,m:null,p:null,g:null,v:null}),S={},O={forEach:(e,t)=>e.map(M).forEach(t),map:(e,t)=>e.map(M).map(t).map(x)},M=e=>({vattrs:e.p,vchildren:e.m,vkey:e.g,vname:e.v,vtag:e.k,vtext:e.h}),x=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),k(e.vtag,t,...e.vchildren||[])}const t=j(e.vtag,e.vtext);return t.p=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.v=e.vname,t},C=(e,t,l,n,o,s)=>{if(l!==n){let i=de(e,t),r=t.toLowerCase();if("class"===t){const t=e.classList,o=P(l),s=P(n);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in l)n&&null!=n[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)l&&n[t]===l[t]||(t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if("key"===t);else if("ref"===t)n&&n(e);else if(i||"o"!==t[0]||"n"!==t[1]){const c=v(n);if((i||c&&null!==n)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{let o=null==n?"":n;"list"===t?i=!1:null!=l&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,f=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(m,t):e.removeAttribute(t)):(!i||4&s||o)&&!c&&(n=!0===n?"":n,f?e.setAttributeNS(m,t,n):e.setAttribute(t,n))}else t="-"===t[2]?t.slice(3):de(f,r)?r.slice(2):r[2]+t.slice(3),l&&u.rel(e,t,l,!1),n&&u.ael(e,t,n,!1)}},R=/\s/,P=e=>e?e.split(R):[],T=(e,t,l,n)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.p||g,i=t.p||g;for(n in s)n in i||C(o,n,s[n],void 0,l,t.t);for(n in i)C(o,n,s[n],i[n],l,t.t)},E=(o,r,c,f)=>{let u,d,$,h=r.m[c],y=0;if(n||(s=!0,"slot"===h.k&&(e&&f.classList.add(e+"-s"),h.t|=h.m?2:1)),null!==h.h)u=h.j=a.createTextNode(h.h);else if(1&h.t)u=h.j=a.createTextNode("");else{if(i||(i="svg"===h.k),u=h.j=a.createElementNS(i?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.k),i&&"foreignObject"===h.k&&(i=!1),T(null,h,i),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),h.m)for(y=0;y<h.m.length;++y)d=E(o,h,y,u),d&&u.appendChild(d);"svg"===h.k?i=!1:"foreignObject"===u.tagName&&(i=!0)}return u["s-hn"]=l,3&h.t&&(u["s-sr"]=!0,u["s-cr"]=t,u["s-sn"]=h.v||"",$=o&&o.m&&o.m[c],$&&$.k===h.k&&o.j&&L(o.j,!1)),u},L=(e,t)=>{u.t|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==l&&o["s-ol"]&&(H(o).insertBefore(o,F(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&L(o,t)}u.t&=-2},W=(e,t,n,o,s,i)=>{let r,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===l&&(c=c.shadowRoot);s<=i;++s)o[s]&&(r=E(null,n,s,e),r&&(o[s].j=r,c.insertBefore(r,F(t))))},A=(e,t,l,n,s)=>{for(;t<=l;++t)(n=e[t])&&(s=n.j,z(n),o=!0,s["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},D=(e,t)=>e.k===t.k&&("slot"===e.k?e.v===t.v:e.g===t.g),F=e=>e&&e["s-ol"]||e,H=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,N=(e,t)=>{const l=t.j=e.j,n=e.m,o=t.m,s=t.k,r=t.h;let c;null===r?(i="svg"===s||"foreignObject"!==s&&i,"slot"===s||T(e,t,i),null!==n&&null!==o?((e,t,l,n)=>{let o,s,i=0,r=0,c=0,f=0,a=t.length-1,u=t[0],d=t[a],$=n.length-1,h=n[0],y=n[$];for(;i<=a&&r<=$;)if(null==u)u=t[++i];else if(null==d)d=t[--a];else if(null==h)h=n[++r];else if(null==y)y=n[--$];else if(D(u,h))N(u,h),u=t[++i],h=n[++r];else if(D(d,y))N(d,y),d=t[--a],y=n[--$];else if(D(u,y))"slot"!==u.k&&"slot"!==y.k||L(u.j.parentNode,!1),N(u,y),e.insertBefore(u.j,d.j.nextSibling),u=t[++i],y=n[--$];else if(D(d,h))"slot"!==u.k&&"slot"!==y.k||L(d.j.parentNode,!1),N(d,h),e.insertBefore(d.j,u.j),d=t[--a],h=n[++r];else{for(c=-1,f=i;f<=a;++f)if(t[f]&&null!==t[f].g&&t[f].g===h.g){c=f;break}c>=0?(s=t[c],s.k!==h.k?o=E(t&&t[r],l,c,e):(N(s,h),t[c]=void 0,o=s.j),h=n[++r]):(o=E(t&&t[r],l,r,e),h=n[++r]),o&&H(u.j).insertBefore(o,F(u.j))}i>a?W(e,null==n[$+1]?null:n[$+1].j,l,n,r,$):r>$&&A(t,i,a)})(l,n,t,o):null!==o?(null!==e.h&&(l.textContent=""),W(l,null,t,o,0,o.length-1)):null!==n&&A(n,0,n.length-1),i&&"svg"===s&&(i=!1)):(c=l["s-cr"])?c.parentNode.textContent=r:e.h!==r&&(l.data=r)},U=e=>{let t,l,n,o,s,i,r=e.childNodes;for(l=0,n=r.length;l<n;l++)if(t=r[l],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,o=0;o<n;o++)if(i=r[o].nodeType,r[o]["s-hn"]!==t["s-hn"]||""!==s){if(1===i&&s===r[o].getAttribute("slot")){t.hidden=!0;break}}else if(1===i||3===i&&""!==r[o].textContent.trim()){t.hidden=!0;break}U(t)}},q=[],V=e=>{let t,l,n,s,i,r,c=0,f=e.childNodes,a=f.length;for(;c<a;c++){if(t=f[c],t["s-sr"]&&(l=t["s-cr"])&&l.parentNode)for(n=l.parentNode.childNodes,s=t["s-sn"],r=n.length-1;r>=0;r--)l=n[r],l["s-cn"]||l["s-nr"]||l["s-hn"]===t["s-hn"]||(_(l,s)?(i=q.find((e=>e.S===l)),o=!0,l["s-sn"]=l["s-sn"]||s,i?i.O=t:q.push({O:t,S:l}),l["s-sr"]&&q.map((e=>{_(e.S,l["s-sn"])&&(i=q.find((e=>e.S===l)),i&&!e.O&&(e.O=i.O))}))):q.some((e=>e.S===l))||q.push({S:l}));1===t.nodeType&&V(t)}},_=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,z=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(z)},B=e=>fe(e).M,G=(e,t,l)=>{const n=B(e);return{emit:e=>I(n,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},I=(e,t,l)=>{const n=u.ce(t,l);return e.dispatchEvent(n),n},J=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},K=(e,t)=>{if(e.t|=16,!(4&e.t))return J(e,e.R),je((()=>Q(e,t)));e.t|=512},Q=(e,t)=>{const l=e.i;let n;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>ne(l,e,t))),e.u=null),n=ne(l,"componentWillLoad")),oe(n,(()=>X(e,l,t)))},X=async(e,t,l)=>{const n=e.M,o=n["s-rc"];l&&(e=>{const t=e.P,l=e.M,n=t.t,o=((e,t)=>{let l=w(t),n=pe.get(l);if(e=11===e.nodeType?e:a,n)if("string"==typeof n){let t,o=b.get(e=e.head||e);o||b.set(e,o=new Set),o.has(l)||(t=a.createElement("style"),t.innerHTML=n,e.insertBefore(t,e.querySelector("link")),o&&o.add(l))}else e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]);return l})(l.shadowRoot?l.shadowRoot:l.getRootNode(),t);10&n&&(l["s-sc"]=o,l.classList.add(o+"-h"),2&n&&l.classList.add(o+"-s"))})(e);Y(e,t),o&&(o.map((e=>e())),n["s-rc"]=void 0);{const t=n["s-p"],l=()=>ee(e);0===t.length?l():(Promise.all(t).then(l),e.t|=4,t.length=0)}},Y=(i,c)=>{try{r=c,c=c.render&&c.render(),i.t&=-17,i.t|=2,((i,r)=>{const c=i.M,f=i.P,d=i.T||j(null,null),$=(e=>e&&e.k===S)(r)?r:k(null,null,r);if(l=c.tagName,f.L&&($.p=$.p||{},f.L.map((([e,t])=>$.p[t]=c[e]))),$.k=null,$.t|=4,i.T=$,$.j=d.j=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],n=0!=(1&f.t),o=!1,N(d,$),u.t|=1,s){let e,t,l,n,o,s;V($.j);let i=0;for(;i<q.length;i++)e=q[i],t=e.S,t["s-ol"]||(l=a.createTextNode(""),l["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=l,t));for(i=0;i<q.length;i++)if(e=q[i],t=e.S,e.O){for(n=e.O.parentNode,o=e.O.nextSibling,l=t["s-ol"];l=l.previousSibling;)if(s=l["s-nr"],s&&s["s-sn"]===t["s-sn"]&&n===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){o=s;break}(!o&&n!==t.parentNode||t.nextSibling!==o)&&t!==o&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),n.insertBefore(t,o))}else 1===t.nodeType&&(t.hidden=!0)}o&&U($.j),u.t&=-2,q.length=0})(i,c)}catch(e){$e(e,i.M)}return r=null,null},Z=()=>r,ee=e=>{const t=e.M,l=e.i,n=e.R;ne(l,"componentDidRender"),64&e.t||(e.t|=64,se(t),ne(l,"componentDidLoad"),e.W(t),n||le()),e.A(t),e.C&&(e.C(),e.C=void 0),512&e.t&&ke((()=>K(e,!1))),e.t&=-517},te=e=>{{const t=fe(e),l=t.M.isConnected;return l&&2==(18&t.t)&&K(t,!1),l}},le=()=>{se(a.documentElement),ke((()=>I(f,"appload",{detail:{namespace:"smoothly"}})))},ne=(e,t,l)=>{if(e&&e[t])try{return e[t](l)}catch(e){$e(e)}},oe=(e,t)=>e&&e.then?e.then(t):t(),se=e=>e.classList.add("hydrated"),ie=(e,t,l)=>{if(t.D){e.watchers&&(t.F=e.watchers);const n=Object.entries(t.D),o=e.prototype;if(n.map((([e,[n]])=>{31&n||2&l&&32&n?Object.defineProperty(o,e,{get(){return((e,t)=>fe(this).H.get(t))(0,e)},set(l){((e,t,l,n)=>{const o=fe(e),s=o.M,i=o.H.get(t),r=o.t,c=o.i;if(l=((e,t)=>null==e||v(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,n.D[t][0]),!(8&r&&void 0!==i||l===i)&&(o.H.set(t,l),c)){if(n.F&&128&r){const e=n.F[t];e&&e.map((e=>{try{c[e](l,i,t)}catch(e){$e(e,s)}}))}2==(18&r)&&K(o,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&n&&Object.defineProperty(o,e,{value(...t){const l=fe(this);return l.N.then((()=>l.i[e](...t)))}})})),1&l){const l=new Map;o.attributeChangedCallback=function(e,t,n){u.jmp((()=>{const t=l.get(e);if(this.hasOwnProperty(t))n=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==n)return;this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=n.filter((([e,t])=>15&t[0])).map((([e,n])=>{const o=n[1]||e;return l.set(o,e),512&n[0]&&t.L.push([e,o]),o}))}}return e},re=(e,t={})=>{const l=[],n=t.exclude||[],o=f.customElements,s=a.head,i=s.querySelector("meta[charset]"),r=a.createElement("style"),c=[];let d,y=!0;Object.assign(u,t),u.l=new URL(t.resourcesUrl||"./",a.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],D:t[2],U:t[3]};s.D=t[2],s.U=t[3],s.L=[],s.F={};const i=s.$,r=class extends HTMLElement{constructor(e){super(e),ue(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?c.push(this):u.jmp((()=>(e=>{if(0==(1&u.t)){const t=fe(e),l=t.P,n=()=>{};if(1&t.t)h(e,t,l.U);else{t.t|=1,12&l.t&&(e=>{const t=e["s-cr"]=a.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let l=e;for(;l=l.parentNode||l.host;)if(l["s-p"]){J(t,t.R=l);break}}l.D&&Object.entries(l.D).map((([t,[l]])=>{if(31&l&&e.hasOwnProperty(t)){const l=e[t];delete e[t],e[t]=l}})),(async(e,t,l,n,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=ye(l)).then){const e=()=>{};o=await o,e()}o.isProxied||(l.F=o.watchers,ie(o,l,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){$e(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=w(l);if(!pe.has(t)){const n=()=>{};((e,t,l)=>{let n=pe.get(e);$&&l?(n=n||new CSSStyleSheet,n.replace(t)):n=t,pe.set(e,n)})(t,e,!!(1&l.t)),n()}}}const s=t.R,i=()=>K(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,l)}n()}})(this)))}disconnectedCallback(){u.jmp((()=>(()=>{if(0==(1&u.t)){const e=fe(this),t=e.i;e.o&&(e.o.map((e=>e())),e.o=void 0),ne(t,"disconnectedCallback")}})()))}componentOnReady(){return fe(this).q}};s.V=e[0],n.includes(i)||o.get(i)||(l.push(i),o.define(i,ie(r,s,1)))}))})),r.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",r.setAttribute("data-styles",""),s.insertBefore(r,i?i.nextSibling:s.firstChild),y=!1,c.length?c.map((e=>e.connectedCallback())):u.jmp((()=>d=setTimeout(le,30)))},ce=new WeakMap,fe=e=>ce.get(e),ae=(e,t)=>ce.set(t.i=e,t),ue=(e,t)=>{const l={t:0,M:e,P:t,H:new Map};return l.N=new Promise((e=>l.A=e)),l.q=new Promise((e=>l.W=e)),e["s-p"]=[],e["s-rc"]=[],h(e,l,t.U),ce.set(e,l)},de=(e,t)=>t in e,$e=(e,t)=>(0,console.error)(e,t),he=new Map,ye=e=>{const t=e.$.replace(/-/g,"_"),l=e.V,n=he.get(l);return n?n[t]:import(`./${l}.entry.js`).then((e=>(he.set(l,e),e[t])),$e)},pe=new Map,me=[],be=[],we=(e,t)=>l=>{e.push(l),c||(c=!0,t&&4&u.t?ke(ve):u.raf(ve))},ge=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){$e(e)}e.length=0},ve=()=>{ge(me),ge(be),(c=me.length>0)&&u.raf(ve)},ke=e=>d().then(e),je=we(be,!0);export{S as H,B as a,re as b,G as c,te as f,Z as g,k as h,d as p,ae as r}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-074a0448.js";import{T as i,M as r}from"./p-2cda1784.js";let o=class{constructor(t){s(this,t)}get filters(){return this.filtersValue||(this.filtersValue=this.filter?this.filter.split(" "):[]),this.filtersValue}TriggerListener(s){i.is(s.detail)&&this.filters.some((t=>t==s.detail.name))&&(r.send(this.destination,s.detail,this.context||window),s.preventDefault(),s.stopPropagation())}render(){return t("slot",null)}};o.style=".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";export{o as smoothly_trigger_sink}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,a as i}from"./p-074a0448.js";let h=class{constructor(i){t(this,i),this.reorder=s(this,"reorder",7)}get children(){let t=[];if(this.childrenCache)t=this.childrenCache;else{for(let s=0;s<this.element.children.length;s++){const i=this.element.children[s];if(i instanceof HTMLElement){const s=i.getBoundingClientRect();t.push({top:s.top,middle:s.top+s.height/2,bottom:s.bottom,element:i})}}this.childrenCache=t}return t}onMouseDown(t){if(!this.move&&this.element.children.length>1){this.bounds=this.element.getBoundingClientRect(),this.childrenCache=void 0;const s=this.getCurrentIndex(t.clientY);this.dragged=Object.assign(Object.assign({},this.children[s]),{startY:t.clientY,offsetY:t.clientY-this.children[s].middle,index:s,height:s<this.children.length-1?this.children[s+1].top-this.children[s].top:this.children[s].bottom-this.children[s-1].bottom}),this.dragged.element.className+=" dragging"}}onMouseMove(t){if(this.dragged&&this.bounds&&t.clientY>=this.bounds.top&&t.clientY<=this.bounds.bottom){const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,t.clientY-this.dragged.startY)}}onMouseUp(t){if(this.dragged){this.dragged.element.className=this.dragged.element.className.replace(" dragging","");const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,this.children[s].top-this.dragged.top),this.move={from:this.dragged.index,to:s},this.dragged=void 0,window.setTimeout((()=>{if(this.move){const t=[...this.children.map((t=>t.element))],s=t.splice(this.move.from,1);t.splice(this.move.to,0,...s),t.forEach((t=>this.element.removeChild(t))),t.forEach((t=>{t.style.transform="",this.element.appendChild(t)})),this.reorder.emit([this.move.from,this.move.to]),this.move=void 0}}),500)}}translate(t,s,i){for(let h=0;h<this.children.length;h++){let o;this.dragged&&(o=t<s&&h>t&&h<=s?-this.dragged.height:t>s&&h<t&&h>=s?this.dragged.height:h==t?i:0,this.children[h].element.style.transform=`translateY(${o}px)`)}}getCurrentIndex(t){return this.children.findIndex((s=>t<s.bottom))}componentDidLoad(){this.element.childNodes.forEach((t=>{t.addEventListener("mousedown",(t=>this.onMouseDown(t))),t.addEventListener("mousemove",(t=>this.onMouseMove(t))),t.addEventListener("mouseup",(t=>this.onMouseUp(t)))}))}get element(){return i(this)}};h.style="smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";export{h as smoothly_reorder}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as o,a as r}from"./p-074a0448.js";import{M as e,T as i}from"./p-2cda1784.js";let n=class{constructor(o){s(this,o),this.trigger=t(this,"trigger",7),this.message=t(this,"message",7)}componentDidLoad(){e.listen(this.listen,((s,t)=>{i.is(t)?this.trigger.emit(t):this.message.emit({destination:s,content:t})}),window)}render(){return o("slot",null)}get element(){return r(this)}};n.style=".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";export{n as smoothly_trigger_source}
@@ -1 +1 @@
1
- import{g as t,f as e,h as n}from"./p-0906d4b2.js";const i=t=>!("isConnected"in t)||t.isConnected,s=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(i))})(...e)}),2e3)}})();let o;const r=(t,e)=>{var n;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(n=t.render)&&void 0!==n?n:e}},l=(t,e=o)=>({href:t,onClick:n=>{n.metaKey||n.ctrlKey||2!=n.which&&1!=n.button&&(n.preventDefault(),e.push(t))}}),u=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const n=e(t);if(n)return!0===n?{}:{...n}}else{const n=e.exec(t);if(n)return e.lastIndex=0,{...n}}},c=t=>t.pathname.toLowerCase(),a=(()=>{const n=window,i=new URL(n.location.href),r=(void 0,c),{state:l,onChange:a,dispose:d}=((n,i)=>{const o=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},s=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((e=>e(t))),n.get(t)),r=(t,s)=>{const o=n.get(t);e(s,o,t)&&(n.set(t,s),i.set.forEach((e=>e(t,s,o))))},l="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(r(e,n),!0)}),u=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:l,get:o,set:r,on:u,onChange:(e,n)=>{const i=u("set",((t,i)=>{t===e&&n(i)})),s=u("reset",(()=>n(t[e])));return()=>{i(),s()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),s()},reset:s,forceUpdate:t=>{const e=n.get(t);i.set.forEach((n=>n(t,e,e)))}}})(n,i);return(({on:n})=>{const i=new Map;"function"==typeof t&&(n("dispose",(()=>{i.clear()})),n("get",(e=>{const n=t();n&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(i,e,n)})),n("set",(t=>{const n=i.get(t);n&&i.set(t,n.filter(e)),s(i)})),n("reset",(()=>{i.forEach((t=>t.forEach(e))),s(i)})))})(o),o})({url:i,activePath:r(i)},((t,e,n)=>"url"===n?t.href!==e.href:t!==e)),v=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);l.url=e,l.activePath=r(e)},h=t=>{const{activePath:e}=l;for(let n of t){const i=u(e,n.path);if(i){if(null!=n.to){const i="string"==typeof n.to?n.to:n.to(e);return v(i),h(t)}return{params:i,route:n}}}},f=()=>{const t=new URL(n.location.href);l.url=t,l.activePath=r(t)},p=o={Switch:(t,e)=>{const n=h(e);if(n)return"function"==typeof n.route.jsx?n.route.jsx(n.params):n.route.jsx},get url(){return l.url},get activePath(){return l.activePath},push:v,onChange:a,dispose:()=>{o=void 0,n.removeEventListener("popstate",f),d()}};return f(),n.addEventListener("popstate",f),p})(),d=(t,e,i)=>{var s;const o=Object.entries(e[0]).reduce(((t,e)=>(t[e[0]]=null,t)),{}),u=c(o);function c(t){let e;return i.forEach([t],(t=>e=t)),null!=e?e:u}function d(t){return i.map([o],(e=>Object.assign(Object.assign({},e),t)))[0]}const h=e.map((t=>Object.assign(Object.assign({},c(t)),{node:t})));return n("smoothly-app",null,n("header",null,n("h1",null,n("a",Object.assign({},l(null!==(s=v(""))&&void 0!==s?s:"/")),t.label)),h.filter((t=>{var e;return"header"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)})).map((t=>t.node)),n("nav",null,n("ul",null,i.map([...h.filter((t=>{var e;return"nav-start"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)})),...h.filter((t=>{var e,n;return(null===(e=t.vattrs)||void 0===e?void 0:e.label)&&(null===(n=t.vattrs)||void 0===n?void 0:n.path)})),...h.filter((t=>{var e;return"nav-end"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)}))].map((t=>t.node)),(t=>{var e,n,i,s,o,r,l,c,h;(null===(e=t.vattrs)||void 0===e?void 0:e.label)&&(null===(n=t.vattrs)||void 0===n?void 0:n.path)&&(t=Object.assign(Object.assign({},u),{vtag:"a",vattrs:{href:null===(i=t.vattrs)||void 0===i?void 0:i.path},vchildren:[(null===(s=t.vattrs)||void 0===s?void 0:s.icon)?d({vtag:"smoothly-icon",vattrs:{toolTip:null===(o=t.vattrs)||void 0===o?void 0:o.label,name:null===(r=t.vattrs)||void 0===r?void 0:r.icon,size:"medium"}}):d({vtext:null===(l=t.vattrs)||void 0===l?void 0:l.label})]}));const f=v(null===(c=t.vattrs)||void 0===c?void 0:c.href);return"a"!=t.vtag?t:Object.assign(Object.assign({},t),f?{vattrs:Object.assign(Object.assign({},t.vattrs),{class:[null===(h=t.vattrs)||void 0===h?void 0:h.class,a.activePath==f?"active":""].join(" ")||void 0,href:f})}:{vattrs:Object.assign(Object.assign({},t.vattrs),{target:"new"})})})).map((t=>{var e,i;const s=c(t);return"a"!=s.vtag||(null===(e=s.vattrs)||void 0===e?void 0:e.target)?t:n("a",Object.assign({},s.vattrs,l(null===(i=s.vattrs)||void 0===i?void 0:i.href)),s.vchildren)})).map((t=>n("li",null,t)))))),n("content",null,n(a.Switch,null,h.filter((t=>{var e;return null!=(null===(e=t.vattrs)||void 0===e?void 0:e.path)})).map((t=>{var e,i,s,o,l,u,c,a;return(null===(e=t.vattrs)||void 0===e?void 0:e.to)?n(r,{path:null!==(s=v(null===(i=t.vattrs)||void 0===i?void 0:i.path))&&void 0!==s?s:null===(o=t.vattrs)||void 0===o?void 0:o.path,to:null===(l=t.vattrs)||void 0===l?void 0:l.to}):n(r,{path:null!==(c=v(null===(u=t.vattrs)||void 0===u?void 0:u.path))&&void 0!==c?c:null===(a=t.vattrs)||void 0===a?void 0:a.path},t.node)})))))};function v(t){const e=new URL(t,document.baseURI);return""==t?new URL(document.baseURI).pathname:e.toString().startsWith(document.baseURI)?e.pathname:void 0}class h{constructor(t,e,n){switch(this.stateValue=t,this.messageValue=e,this.task=n,this.listeners=[],t){case"delayed":this.timer=window.setTimeout((()=>this.execute()),5e3);break;case"executing":this.execute();break;case"success":case"warning":case"failed":this.startCloseTimer()}}get state(){return this.stateValue}set state(t){this.stateValue!=t&&(this.stateValue=t,this.emit())}get message(){return this.messageValue}set message(t){this.messageValue!=t&&(this.messageValue=t,this.emit())}listen(t){this.listeners.push(t)}unlisten(t){this.listeners.filter((e=>e!=t))}emit(){this.listeners.forEach((t=>t(this)))}execute(){this.clearTimer(),this.task?(this.state="executing",this.task(this).then((t=>{this.messageValue=t[1],this.state=t[0]?"success":"failed",this.startCloseTimer()}))):this.state="failed"}startCloseTimer(){this.timer=window.setTimeout((()=>this.close()),15e3)}close(){this.clearTimer(),this.state="closed"}clearTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=void 0)}static delay(t,e){return new h("delayed",t,e)}static execute(t,e){return new h("executing",t,e)}static succeded(t){return new h("success",t)}static failed(t){return new h("failed",t)}static warn(t){return new h("warning",t)}}export{d as A,h as N}
1
+ import{g as t,f as e,h as n}from"./p-074a0448.js";const i=t=>!("isConnected"in t)||t.isConnected,s=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(i))})(...e)}),2e3)}})();let o;const r=(t,e)=>{var n;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(n=t.render)&&void 0!==n?n:e}},l=(t,e=o)=>({href:t,onClick:n=>{n.metaKey||n.ctrlKey||2!=n.which&&1!=n.button&&(n.preventDefault(),e.push(t))}}),u=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const n=e(t);if(n)return!0===n?{}:{...n}}else{const n=e.exec(t);if(n)return e.lastIndex=0,{...n}}},c=t=>t.pathname.toLowerCase(),a=(()=>{const n=window,i=new URL(n.location.href),r=(void 0,c),{state:l,onChange:a,dispose:d}=((n,i)=>{const o=((t,e=((t,e)=>t!==e))=>{let n=new Map(Object.entries(null!=t?t:{}));const i={dispose:[],get:[],set:[],reset:[]},s=()=>{n=new Map(Object.entries(null!=t?t:{})),i.reset.forEach((t=>t()))},o=t=>(i.get.forEach((e=>e(t))),n.get(t)),r=(t,s)=>{const o=n.get(t);e(s,o,t)&&(n.set(t,s),i.set.forEach((e=>e(t,s,o))))},l="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(n.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>n.has(e),set:(t,e,n)=>(r(e,n),!0)}),u=(t,e)=>(i[t].push(e),()=>{((t,e)=>{const n=t.indexOf(e);n>=0&&(t[n]=t[t.length-1],t.length--)})(i[t],e)});return{state:l,get:o,set:r,on:u,onChange:(e,n)=>{const i=u("set",((t,i)=>{t===e&&n(i)})),s=u("reset",(()=>n(t[e])));return()=>{i(),s()}},use:(...t)=>t.forEach((t=>{t.set&&u("set",t.set),t.get&&u("get",t.get),t.reset&&u("reset",t.reset)})),dispose:()=>{i.dispose.forEach((t=>t())),s()},reset:s,forceUpdate:t=>{const e=n.get(t);i.set.forEach((n=>n(t,e,e)))}}})(n,i);return(({on:n})=>{const i=new Map;"function"==typeof t&&(n("dispose",(()=>{i.clear()})),n("get",(e=>{const n=t();n&&((t,e,n)=>{const i=t.get(e);i?i.includes(n)||i.push(n):t.set(e,[n])})(i,e,n)})),n("set",(t=>{const n=i.get(t);n&&i.set(t,n.filter(e)),s(i)})),n("reset",(()=>{i.forEach((t=>t.forEach(e))),s(i)})))})(o),o})({url:i,activePath:r(i)},((t,e,n)=>"url"===n?t.href!==e.href:t!==e)),v=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);l.url=e,l.activePath=r(e)},h=t=>{const{activePath:e}=l;for(let n of t){const i=u(e,n.path);if(i){if(null!=n.to){const i="string"==typeof n.to?n.to:n.to(e);return v(i),h(t)}return{params:i,route:n}}}},f=()=>{const t=new URL(n.location.href);l.url=t,l.activePath=r(t)},p=o={Switch:(t,e)=>{const n=h(e);if(n)return"function"==typeof n.route.jsx?n.route.jsx(n.params):n.route.jsx},get url(){return l.url},get activePath(){return l.activePath},push:v,onChange:a,dispose:()=>{o=void 0,n.removeEventListener("popstate",f),d()}};return f(),n.addEventListener("popstate",f),p})(),d=(t,e,i)=>{var s;const o=Object.entries(e[0]).reduce(((t,e)=>(t[e[0]]=null,t)),{}),u=c(o);function c(t){let e;return i.forEach([t],(t=>e=t)),null!=e?e:u}function d(t){return i.map([o],(e=>Object.assign(Object.assign({},e),t)))[0]}const h=e.map((t=>Object.assign(Object.assign({},c(t)),{node:t})));return n("smoothly-app",null,n("header",null,n("h1",null,n("a",Object.assign({},l(null!==(s=v(""))&&void 0!==s?s:"/")),t.label)),h.filter((t=>{var e;return"header"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)})).map((t=>t.node)),n("nav",null,n("ul",null,i.map([...h.filter((t=>{var e;return"nav-start"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)})),...h.filter((t=>{var e,n;return(null===(e=t.vattrs)||void 0===e?void 0:e.label)&&(null===(n=t.vattrs)||void 0===n?void 0:n.path)})),...h.filter((t=>{var e;return"nav-end"==(null===(e=t.vattrs)||void 0===e?void 0:e.slot)}))].map((t=>t.node)),(t=>{var e,n,i,s,o,r,l,c,h;(null===(e=t.vattrs)||void 0===e?void 0:e.label)&&(null===(n=t.vattrs)||void 0===n?void 0:n.path)&&(t=Object.assign(Object.assign({},u),{vtag:"a",vattrs:{href:null===(i=t.vattrs)||void 0===i?void 0:i.path},vchildren:[(null===(s=t.vattrs)||void 0===s?void 0:s.icon)?d({vtag:"smoothly-icon",vattrs:{toolTip:null===(o=t.vattrs)||void 0===o?void 0:o.label,name:null===(r=t.vattrs)||void 0===r?void 0:r.icon,size:"medium"}}):d({vtext:null===(l=t.vattrs)||void 0===l?void 0:l.label})]}));const f=v(null===(c=t.vattrs)||void 0===c?void 0:c.href);return"a"!=t.vtag?t:Object.assign(Object.assign({},t),f?{vattrs:Object.assign(Object.assign({},t.vattrs),{class:[null===(h=t.vattrs)||void 0===h?void 0:h.class,a.activePath==f?"active":""].join(" ")||void 0,href:f})}:{vattrs:Object.assign(Object.assign({},t.vattrs),{target:"new"})})})).map((t=>{var e,i;const s=c(t);return"a"!=s.vtag||(null===(e=s.vattrs)||void 0===e?void 0:e.target)?t:n("a",Object.assign({},s.vattrs,l(null===(i=s.vattrs)||void 0===i?void 0:i.href)),s.vchildren)})).map((t=>n("li",null,t)))))),n("content",null,n(a.Switch,null,h.filter((t=>{var e;return null!=(null===(e=t.vattrs)||void 0===e?void 0:e.path)})).map((t=>{var e,i,s,o,l,u,c,a;return(null===(e=t.vattrs)||void 0===e?void 0:e.to)?n(r,{path:null!==(s=v(null===(i=t.vattrs)||void 0===i?void 0:i.path))&&void 0!==s?s:null===(o=t.vattrs)||void 0===o?void 0:o.path,to:null===(l=t.vattrs)||void 0===l?void 0:l.to}):n(r,{path:null!==(c=v(null===(u=t.vattrs)||void 0===u?void 0:u.path))&&void 0!==c?c:null===(a=t.vattrs)||void 0===a?void 0:a.path},t.node)})))))};function v(t){const e=new URL(t,document.baseURI);return""==t?new URL(document.baseURI).pathname:e.toString().startsWith(document.baseURI)?e.pathname:void 0}class h{constructor(t,e,n){switch(this.stateValue=t,this.messageValue=e,this.task=n,this.listeners=[],t){case"delayed":this.timer=window.setTimeout((()=>this.execute()),5e3);break;case"executing":this.execute();break;case"success":case"warning":case"failed":this.startCloseTimer()}}get state(){return this.stateValue}set state(t){this.stateValue!=t&&(this.stateValue=t,this.emit())}get message(){return this.messageValue}set message(t){this.messageValue!=t&&(this.messageValue=t,this.emit())}listen(t){this.listeners.push(t)}unlisten(t){this.listeners.filter((e=>e!=t))}emit(){this.listeners.forEach((t=>t(this)))}execute(){this.clearTimer(),this.task?(this.state="executing",this.task(this).then((t=>{this.messageValue=t[1],this.state=t[0]?"success":"failed",this.startCloseTimer()}))):this.state="failed"}startCloseTimer(){this.timer=window.setTimeout((()=>this.close()),15e3)}close(){this.clearTimer(),this.state="closed"}clearTimer(){this.timer&&(window.clearTimeout(this.timer),this.timer=void 0)}static delay(t,e){return new h("delayed",t,e)}static execute(t,e){return new h("executing",t,e)}static succeded(t){return new h("success",t)}static failed(t){return new h("failed",t)}static warn(t){return new h("warning",t)}}export{d as A,h as N}
@@ -0,0 +1 @@
1
+ import{r as o,h as t}from"./p-074a0448.js";let r=class{constructor(t){o(this,t),this.orientation="horizontal"}render(){return t("slot",null)}};r.style="smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";export{r as smoothly_radio_group}