@mozaic-ds/web-components 0.7.0 → 0.9.0-beta

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 (273) hide show
  1. package/package.json +1 -1
  2. package/public/ClickOutside-63071e7a.js +15 -1
  3. package/public/ClickOutside-63071e7a.js.map +1 -1
  4. package/public/DataTableDefaultAction.nested-c37a5d51.js +762 -0
  5. package/public/DataTableDefaultAction.nested-c37a5d51.js.map +1 -0
  6. package/public/DataTableUtilities-313a448d.js +386 -0
  7. package/public/DataTableUtilities-313a448d.js.map +1 -0
  8. package/public/EventForward-8492ff62.js +109 -1
  9. package/public/EventForward-8492ff62.js.map +1 -1
  10. package/public/EventHandler-02058705.js +15 -1
  11. package/public/EventHandler-02058705.js.map +1 -1
  12. package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js → DataTableDefaultAction.nested-ac2e3dbe.js} +2 -2
  13. package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js.map → DataTableDefaultAction.nested-ac2e3dbe.js.map} +1 -1
  14. package/public/adeo/DataTableUtilities-313a448d.js +2 -0
  15. package/public/adeo/DataTableUtilities-313a448d.js.map +1 -0
  16. package/public/adeo/bundle.js +5 -0
  17. package/public/adeo/components/barchart/BarChart.svelte +3 -4
  18. package/public/adeo/components/chart/BarChart.js +1 -1
  19. package/public/adeo/components/chart/BarChart.js.map +1 -1
  20. package/public/adeo/components/datatable/DataTable.js +1 -1
  21. package/public/adeo/components/datatable/DataTable.js.map +1 -1
  22. package/public/adeo/components/datatable/DataTable.svelte +12 -0
  23. package/public/adeo/components/datatable/DataTableDefaultAction.nested.js +1 -1
  24. package/public/adeo/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
  25. package/public/adeo/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
  26. package/public/adeo/components/datatable/DataTableFooter.nested.js +1 -1
  27. package/public/adeo/components/datatable/data.d.ts.map +1 -1
  28. package/public/adeo/components/datatable/datatable.types.d.ts +9 -2
  29. package/public/adeo/components/datatable/datatable.types.d.ts.map +1 -1
  30. package/public/adeo/components/header/Header.js +1 -1
  31. package/public/adeo/components/header/Header.js.map +1 -1
  32. package/public/adeo/components/header/Header.svelte +2 -2
  33. package/public/adeo/components/kpi/Kpi.js +2 -0
  34. package/public/adeo/components/kpi/Kpi.js.map +1 -0
  35. package/public/adeo/components/kpi/Kpi.svelte +232 -0
  36. package/public/adeo/components/sidebar/Sidebar.js +1 -1
  37. package/public/adeo/components/sidebar/Sidebar.js.map +1 -1
  38. package/public/adeo/components/sidebar/Sidebar.svelte +1 -1
  39. package/public/adeo/icons-storybook.js +16 -0
  40. package/public/adeo/main.d.ts +1 -0
  41. package/public/adeo/main.d.ts.map +1 -1
  42. package/public/adeo/utilities/DataTableUtilities.d.ts.map +1 -1
  43. package/public/adeo/utilities/DataTableUtilities.ts +22 -2
  44. package/public/array-5b770a93.js +13 -1
  45. package/public/array-5b770a93.js.map +1 -1
  46. package/public/axis-fbc0f7b5.js +174 -1
  47. package/public/axis-fbc0f7b5.js.map +1 -1
  48. package/public/band-d7a07d2c.js +186 -1
  49. package/public/band-d7a07d2c.js.map +1 -1
  50. package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js → DataTableDefaultAction.nested-bcc599d1.js} +2 -2
  51. package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js.map → DataTableDefaultAction.nested-bcc599d1.js.map} +1 -1
  52. package/public/bricoman/DataTableUtilities-313a448d.js +2 -0
  53. package/public/bricoman/DataTableUtilities-313a448d.js.map +1 -0
  54. package/public/bricoman/bundle.js +5 -0
  55. package/public/bricoman/components/barchart/BarChart.svelte +3 -4
  56. package/public/bricoman/components/chart/BarChart.js +1 -1
  57. package/public/bricoman/components/chart/BarChart.js.map +1 -1
  58. package/public/bricoman/components/datatable/DataTable.js +1 -1
  59. package/public/bricoman/components/datatable/DataTable.js.map +1 -1
  60. package/public/bricoman/components/datatable/DataTable.svelte +12 -0
  61. package/public/bricoman/components/datatable/DataTableDefaultAction.nested.js +1 -1
  62. package/public/bricoman/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
  63. package/public/bricoman/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
  64. package/public/bricoman/components/datatable/DataTableFooter.nested.js +1 -1
  65. package/public/bricoman/components/datatable/data.d.ts.map +1 -1
  66. package/public/bricoman/components/datatable/datatable.types.d.ts +9 -2
  67. package/public/bricoman/components/datatable/datatable.types.d.ts.map +1 -1
  68. package/public/bricoman/components/header/Header.js +1 -1
  69. package/public/bricoman/components/header/Header.js.map +1 -1
  70. package/public/bricoman/components/header/Header.svelte +2 -2
  71. package/public/bricoman/components/kpi/Kpi.js +2 -0
  72. package/public/bricoman/components/kpi/Kpi.js.map +1 -0
  73. package/public/bricoman/components/kpi/Kpi.svelte +232 -0
  74. package/public/bricoman/components/sidebar/Sidebar.js +1 -1
  75. package/public/bricoman/components/sidebar/Sidebar.js.map +1 -1
  76. package/public/bricoman/components/sidebar/Sidebar.svelte +1 -1
  77. package/public/bricoman/icons-storybook.js +16 -0
  78. package/public/bricoman/main.d.ts +1 -0
  79. package/public/bricoman/main.d.ts.map +1 -1
  80. package/public/bricoman/utilities/DataTableUtilities.d.ts.map +1 -1
  81. package/public/bricoman/utilities/DataTableUtilities.ts +22 -2
  82. package/public/bundle.js +5 -0
  83. package/public/components/accordion/Accordion.js +365 -1
  84. package/public/components/accordion/Accordion.js.map +1 -1
  85. package/public/components/autocomplete/Autocomplete.js +1515 -1
  86. package/public/components/autocomplete/Autocomplete.js.map +1 -1
  87. package/public/components/badge/Badge.js +155 -1
  88. package/public/components/badge/Badge.js.map +1 -1
  89. package/public/components/badge/Badge.nested.js +101 -1
  90. package/public/components/badge/Badge.nested.js.map +1 -1
  91. package/public/components/barchart/BarChart.svelte +3 -4
  92. package/public/components/breadcrumb/Breadcrumb.js +372 -1
  93. package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
  94. package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
  95. package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
  96. package/public/components/button/Button.js +1138 -1
  97. package/public/components/button/Button.js.map +1 -1
  98. package/public/components/card/Card.js +369 -1
  99. package/public/components/card/Card.js.map +1 -1
  100. package/public/components/chart/BarChart.js +583 -1
  101. package/public/components/chart/BarChart.js.map +1 -1
  102. package/public/components/chart/Donut.js +1189 -1
  103. package/public/components/chart/Donut.js.map +1 -1
  104. package/public/components/chart/GroupedBarChart.js +750 -1
  105. package/public/components/chart/GroupedBarChart.js.map +1 -1
  106. package/public/components/chart/LineChart.js +1731 -1
  107. package/public/components/chart/LineChart.js.map +1 -1
  108. package/public/components/chart/Radar.js +729 -1
  109. package/public/components/chart/Radar.js.map +1 -1
  110. package/public/components/chart/StackedBarChart.js +745 -1
  111. package/public/components/chart/StackedBarChart.js.map +1 -1
  112. package/public/components/checkbox/Checkbox.js +307 -1
  113. package/public/components/checkbox/Checkbox.js.map +1 -1
  114. package/public/components/checkboxgroup/checkboxGroup.js +404 -1
  115. package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
  116. package/public/components/datatable/DataTable.js +3098 -1
  117. package/public/components/datatable/DataTable.js.map +1 -1
  118. package/public/components/datatable/DataTable.svelte +12 -0
  119. package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
  120. package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
  121. package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
  122. package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
  123. package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
  124. package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
  125. package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
  126. package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
  127. package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
  128. package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
  129. package/public/components/datatable/DataTableFooter.nested.js +637 -1
  130. package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
  131. package/public/components/datatable/data.d.ts.map +1 -1
  132. package/public/components/datatable/datatable.types.d.ts +9 -2
  133. package/public/components/datatable/datatable.types.d.ts.map +1 -1
  134. package/public/components/dropdown/Dropdown.js +1426 -1
  135. package/public/components/dropdown/Dropdown.js.map +1 -1
  136. package/public/components/field/Field.js +375 -1
  137. package/public/components/field/Field.js.map +1 -1
  138. package/public/components/fileuploader/FileUploader.js +603 -1
  139. package/public/components/fileuploader/FileUploader.js.map +1 -1
  140. package/public/components/fileuploader/ResultFile.nested.js +344 -1
  141. package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
  142. package/public/components/flag/Flag.js +174 -1
  143. package/public/components/flag/Flag.js.map +1 -1
  144. package/public/components/header/Header.js +918 -1
  145. package/public/components/header/Header.js.map +1 -1
  146. package/public/components/header/Header.svelte +2 -2
  147. package/public/components/hero/Hero.js +271 -1
  148. package/public/components/hero/Hero.js.map +1 -1
  149. package/public/components/kpi/Kpi.js +405 -0
  150. package/public/components/kpi/Kpi.js.map +1 -0
  151. package/public/components/kpi/Kpi.svelte +232 -0
  152. package/public/components/layer/Layer.js +471 -1
  153. package/public/components/layer/Layer.js.map +1 -1
  154. package/public/components/link/Link.js +380 -1
  155. package/public/components/link/Link.js.map +1 -1
  156. package/public/components/listbox/Listbox.js +595 -1
  157. package/public/components/listbox/Listbox.js.map +1 -1
  158. package/public/components/listbox/Listbox.nested.js +629 -1
  159. package/public/components/listbox/Listbox.nested.js.map +1 -1
  160. package/public/components/loader/Loader.js +246 -1
  161. package/public/components/loader/Loader.js.map +1 -1
  162. package/public/components/loader/Loader.nested.js +176 -1
  163. package/public/components/loader/Loader.nested.js.map +1 -1
  164. package/public/components/modal/Modal.js +395 -1
  165. package/public/components/modal/Modal.js.map +1 -1
  166. package/public/components/notification/Notification.js +458 -1
  167. package/public/components/notification/Notification.js.map +1 -1
  168. package/public/components/optionbutton/OptionButton.js +316 -1
  169. package/public/components/optionbutton/OptionButton.js.map +1 -1
  170. package/public/components/overlay/Overlay.js +104 -1
  171. package/public/components/overlay/Overlay.js.map +1 -1
  172. package/public/components/overlay/OverlayLoader.js +151 -1
  173. package/public/components/overlay/OverlayLoader.js.map +1 -1
  174. package/public/components/pagination/Pagination.js +613 -1
  175. package/public/components/pagination/Pagination.js.map +1 -1
  176. package/public/components/passwordinput/PasswordInput.js +291 -1
  177. package/public/components/passwordinput/PasswordInput.js.map +1 -1
  178. package/public/components/phonenumber/PhoneNumber.js +6894 -1
  179. package/public/components/phonenumber/PhoneNumber.js.map +1 -1
  180. package/public/components/price/Price.js +768 -1
  181. package/public/components/price/Price.js.map +1 -1
  182. package/public/components/progressbar/ProgressBar.js +278 -1
  183. package/public/components/progressbar/ProgressBar.js.map +1 -1
  184. package/public/components/quantityselector/QuantitySelector.js +397 -1
  185. package/public/components/quantityselector/QuantitySelector.js.map +1 -1
  186. package/public/components/radio/Radio.js +273 -1
  187. package/public/components/radio/Radio.js.map +1 -1
  188. package/public/components/radiogroup/RadioGroup.js +414 -1
  189. package/public/components/radiogroup/RadioGroup.js.map +1 -1
  190. package/public/components/ratings/StarsInput.js +292 -1
  191. package/public/components/ratings/StarsInput.js.map +1 -1
  192. package/public/components/ratings/StarsResult.js +246 -1
  193. package/public/components/ratings/StarsResult.js.map +1 -1
  194. package/public/components/select/Select.js +451 -1
  195. package/public/components/select/Select.js.map +1 -1
  196. package/public/components/sidebar/Sidebar.js +784 -1
  197. package/public/components/sidebar/Sidebar.js.map +1 -1
  198. package/public/components/sidebar/Sidebar.svelte +1 -1
  199. package/public/components/sidebar/sidebar-feature-group.nested.js +594 -1
  200. package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
  201. package/public/components/sidebar/sidebar-feature.nested.js +402 -1
  202. package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
  203. package/public/components/sidebar/sidebar-section.nested.js +394 -1
  204. package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
  205. package/public/components/sidebar/sidebar-segment.nested.js +200 -1
  206. package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
  207. package/public/components/sidebar/sidebar-separator.nested.js +49 -1
  208. package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
  209. package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
  210. package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
  211. package/public/components/sidebar/sidebar-user.nested.js +733 -1
  212. package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
  213. package/public/components/stepper/Stepper.js +371 -1
  214. package/public/components/stepper/Stepper.js.map +1 -1
  215. package/public/components/tabs/Tabs.js +615 -1
  216. package/public/components/tabs/Tabs.js.map +1 -1
  217. package/public/components/tabs/Tabs.nested.js +472 -1
  218. package/public/components/tabs/Tabs.nested.js.map +1 -1
  219. package/public/components/tag/Tag.js +665 -1
  220. package/public/components/tag/Tag.js.map +1 -1
  221. package/public/components/tag/Tag.nested.js +554 -1
  222. package/public/components/tag/Tag.nested.js.map +1 -1
  223. package/public/components/taglist/TagList.js +475 -1
  224. package/public/components/taglist/TagList.js.map +1 -1
  225. package/public/components/textarea/Textarea.js +303 -1
  226. package/public/components/textarea/Textarea.js.map +1 -1
  227. package/public/components/textinput/Textinput.js +497 -1
  228. package/public/components/textinput/Textinput.js.map +1 -1
  229. package/public/components/textinput/Textinput.nested.js +320 -1
  230. package/public/components/textinput/Textinput.nested.js.map +1 -1
  231. package/public/components/toggle/Toggle.js +278 -1
  232. package/public/components/toggle/Toggle.js.map +1 -1
  233. package/public/components/tooltip/Tooltip.js +173 -1
  234. package/public/components/tooltip/Tooltip.js.map +1 -1
  235. package/public/icons-storybook.js +16 -0
  236. package/public/index-c33b3772.js +873 -1
  237. package/public/index-c33b3772.js.map +1 -1
  238. package/public/linear-f46d7e9e.js +700 -1
  239. package/public/linear-f46d7e9e.js.map +1 -1
  240. package/public/main.d.ts +1 -0
  241. package/public/main.d.ts.map +1 -1
  242. package/public/path-1b5da959.js +186 -1
  243. package/public/path-1b5da959.js.map +1 -1
  244. package/public/sidebar-service-275bf9ef.js +129 -1
  245. package/public/sidebar-service-275bf9ef.js.map +1 -1
  246. package/public/symbol-b05a6e2b.js +169 -1
  247. package/public/symbol-b05a6e2b.js.map +1 -1
  248. package/public/transform-15d69d5d.js +2743 -1
  249. package/public/transform-15d69d5d.js.map +1 -1
  250. package/public/utilities/DataTableUtilities.d.ts.map +1 -1
  251. package/public/utilities/DataTableUtilities.ts +22 -2
  252. package/public/utilities/EventForward.js +136 -1
  253. package/public/utilities/EventForward.js.map +1 -1
  254. package/public/utilities/EventHandler.js +36 -1
  255. package/public/utilities/EventHandler.js.map +1 -1
  256. package/public/utilities/components/datatable/data.d.ts.map +1 -1
  257. package/public/utilities/components/datatable/datatable.types.d.ts +9 -2
  258. package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
  259. package/public/utilities/main.d.ts +1 -0
  260. package/public/utilities/main.d.ts.map +1 -1
  261. package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +1 -1
  262. package/public/utilities/stories/header/Header.stories.d.ts.map +1 -1
  263. package/public/utilities/stories/kpi/kpi.stories.d.ts +7 -0
  264. package/public/utilities/stories/kpi/kpi.stories.d.ts.map +1 -0
  265. package/public/utilities/utilities/DataTableUtilities.d.ts.map +1 -1
  266. package/public/DataTableDefaultAction.nested-483f8bb0.js +0 -2
  267. package/public/DataTableDefaultAction.nested-483f8bb0.js.map +0 -1
  268. package/public/DataTableUtilities-60220c78.js +0 -2
  269. package/public/DataTableUtilities-60220c78.js.map +0 -1
  270. package/public/adeo/DataTableUtilities-60220c78.js +0 -2
  271. package/public/adeo/DataTableUtilities-60220c78.js.map +0 -1
  272. package/public/bricoman/DataTableUtilities-60220c78.js +0 -2
  273. package/public/bricoman/DataTableUtilities-60220c78.js.map +0 -1
@@ -1,2 +1,874 @@
1
- function t(){}function n(t,n){for(const e in n)t[e]=n[e];return t}function e(t){return t()}function o(){return Object.create(null)}function s(t){t.forEach(e)}function c(t){return"function"==typeof t}function r(t,n){return t!=t?n==n:t!==n||t&&"object"==typeof t||"function"==typeof t}let i;function a(t,n){return i||(i=document.createElement("a")),i.href=n,t===i.href}function u(t){return 0===Object.keys(t).length}function f(n,e,o){n.$$.on_destroy.push(function(n,...e){if(null==n)return t;const o=n.subscribe(...e);return o.unsubscribe?()=>o.unsubscribe():o}(e,o))}function l(t){const n={};for(const e in t)"$"!==e[0]&&(n[e]=t[e]);return n}function d(t,n){const e={};n=new Set(n);for(const o in t)n.has(o)||"$"===o[0]||(e[o]=t[o]);return e}function h(t){const n={};for(const e in t)n[e]=!0;return n}function $(t){return null==t?"":t}function p(n){return n&&c(n.destroy)?n.destroy:t}const m=["",!0,1,"true","contenteditable"];function g(t,n){t.appendChild(n)}function b(t,n,e){const o=function(t){if(!t)return document;const n=t.getRootNode?t.getRootNode():t.ownerDocument;if(n&&n.host)return n;return t.ownerDocument}(t);if(!o.getElementById(n)){const t=v("style");t.id=n,t.textContent=e,function(t,n){g(t.head||t,n),n.sheet}(o,t)}}function y(t,n,e){t.insertBefore(n,e||null)}function _(t){t.parentNode&&t.parentNode.removeChild(t)}function E(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function v(t){return document.createElement(t)}function w(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function k(t){return document.createTextNode(t)}function x(){return k(" ")}function T(){return k("")}function N(t,n,e,o){return t.addEventListener(n,e,o),()=>t.removeEventListener(n,e,o)}function A(t){return function(n){return n.preventDefault(),t.call(this,n)}}function C(t){return function(n){return n.stopPropagation(),t.call(this,n)}}function M(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function O(t,n){const e=Object.getOwnPropertyDescriptors(t.__proto__);for(const o in n)null==n[o]?t.removeAttribute(o):"style"===o?t.style.cssText=n[o]:"__value"===o?t.value=t[o]=n[o]:e[o]&&e[o].set?t[o]=n[o]:M(t,o,n[o])}function L(t,n,e){n in t?t[n]="boolean"==typeof t[n]&&""===e||e:M(t,n,e)}function P(t,n,e){const o=new Set;for(let n=0;n<t.length;n+=1)t[n].checked&&o.add(t[n].__value);return e||o.delete(n),Array.from(o)}function S(t){let n;return{p(...e){n=e,n.forEach((n=>t.push(n)))},r(){n.forEach((n=>t.splice(t.indexOf(n),1)))}}}function j(t){return""===t?null:+t}function D(t,n){n=""+n,t.data!==n&&(t.data=n)}function H(t,n,e){~m.indexOf(e)?function(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}(t,n):D(t,n)}function q(t,n){t.value=null==n?"":n}function B(t,n,e,o){null===e?t.style.removeProperty(n):t.style.setProperty(n,e,o?"important":"")}function I(t,n,e){for(let e=0;e<t.options.length;e+=1){const o=t.options[e];if(o.__value===n)return void(o.selected=!0)}e&&void 0===n||(t.selectedIndex=-1)}function R(t,n){for(let e=0;e<t.options.length;e+=1){const o=t.options[e];o.selected=~n.indexOf(o.__value)}}function z(t){const n=t.querySelector(":checked");return n&&n.__value}function F(t,n,e){t.classList[e?"add":"remove"](n)}class G{constructor(t=!1){this.is_svg=!1,this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,e=null){this.e||(this.is_svg?this.e=w(n.nodeName):this.e=v(11===n.nodeType?"TEMPLATE":n.nodeName),this.t="TEMPLATE"!==n.tagName?n:n.content,this.c(t)),this.i(e)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)y(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(_)}}function J(t){const n={};for(const e of t)n[e.name]=e.value;return n}function K(t){const n={};return t.childNodes.forEach((t=>{n[t.slot||"default"]=!0})),n}let Q;function U(t){Q=t}function V(){if(!Q)throw new Error("Function called outside component initialization");return Q}function W(t){V().$$.on_mount.push(t)}function X(t){V().$$.after_update.push(t)}function Y(t){V().$$.on_destroy.push(t)}function Z(){const t=V();return(n,e,{cancelable:o=!1}={})=>{const s=t.$$.callbacks[n];if(s){const c=function(t,n,{bubbles:e=!1,cancelable:o=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e,o,n),s}(n,e,{cancelable:o});return s.slice().forEach((n=>{n.call(t,c)})),!c.defaultPrevented}return!0}}function tt(t,n){const e=t.$$.callbacks[n.type];e&&e.slice().forEach((t=>t.call(this,n)))}const nt=[],et=[];let ot=[];const st=[],ct=Promise.resolve();let rt=!1;function it(){rt||(rt=!0,ct.then(ht))}function at(){return it(),ct}function ut(t){ot.push(t)}function ft(t){st.push(t)}const lt=new Set;let dt=0;function ht(){if(0!==dt)return;const t=Q;do{try{for(;dt<nt.length;){const t=nt[dt];dt++,U(t),$t(t.$$)}}catch(t){throw nt.length=0,dt=0,t}for(U(null),nt.length=0,dt=0;et.length;)et.pop()();for(let t=0;t<ot.length;t+=1){const n=ot[t];lt.has(n)||(lt.add(n),n())}ot.length=0}while(nt.length);for(;st.length;)st.pop()();rt=!1,lt.clear(),U(t)}function $t(t){if(null!==t.fragment){t.update(),s(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(ut)}}const pt=new Set;let mt;function gt(){mt={r:0,c:[],p:mt}}function bt(){mt.r||s(mt.c),mt=mt.p}function yt(t,n){t&&t.i&&(pt.delete(t),t.i(n))}function _t(t,n,e,o){if(t&&t.o){if(pt.has(t))return;pt.add(t),mt.c.push((()=>{pt.delete(t),o&&(e&&t.d(1),o())})),t.o(n)}else o&&o()}const Et="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function vt(t,n){t.d(1),n.delete(t.key)}function wt(t,n,e,o,c,r,i,a,u,f,l,d){let h=t.length,$=r.length,p=h;const m={};for(;p--;)m[t[p].key]=p;const g=[],b=new Map,y=new Map,_=[];for(p=$;p--;){const t=d(c,r,p),s=e(t);let a=i.get(s);a?o&&_.push((()=>a.p(t,n))):(a=f(s,t),a.c()),b.set(s,g[p]=a),s in m&&y.set(s,Math.abs(p-m[s]))}const E=new Set,v=new Set;function w(t){yt(t,1),t.m(a,l),i.set(t.key,t),l=t.first,$--}for(;h&&$;){const n=g[$-1],e=t[h-1],o=n.key,s=e.key;n===e?(l=n.first,h--,$--):b.has(s)?!i.has(o)||E.has(o)?w(n):v.has(s)?h--:y.get(o)>y.get(s)?(v.add(o),w(n)):(E.add(s),h--):(u(e,i),h--)}for(;h--;){const n=t[h];b.has(n.key)||u(n,i)}for(;$;)w(g[$-1]);return s(_),g}function kt(t,n){const e={},o={},s={$$scope:1};let c=t.length;for(;c--;){const r=t[c],i=n[c];if(i){for(const t in r)t in i||(o[t]=1);for(const t in i)s[t]||(e[t]=i[t],s[t]=1);t[c]=i}else for(const t in r)s[t]=1}for(const t in o)t in e||(e[t]=void 0);return e}function xt(t){return"object"==typeof t&&null!==t?t:{}}function Tt(t,n,e){const o=t.$$.props[n];void 0!==o&&(t.$$.bound[o]=e,e(t.$$.ctx[o]))}function Nt(t){t&&t.c()}function At(t,n,o,r){const{fragment:i,after_update:a}=t.$$;i&&i.m(n,o),r||ut((()=>{const n=t.$$.on_mount.map(e).filter(c);t.$$.on_destroy?t.$$.on_destroy.push(...n):s(n),t.$$.on_mount=[]})),a.forEach(ut)}function Ct(t,n){const e=t.$$;null!==e.fragment&&(!function(t){const n=[],e=[];ot.forEach((o=>-1===t.indexOf(o)?n.push(o):e.push(o))),e.forEach((t=>t())),ot=n}(e.after_update),s(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Mt(n,e,c,r,i,a,u,f=[-1]){const l=Q;U(n);const d=n.$$={fragment:null,ctx:[],props:a,update:t,not_equal:i,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:o(),dirty:f,skip_bound:!1,root:e.target||l.$$.root};u&&u(d.root);let h=!1;if(d.ctx=c?c(n,e.props||{},((t,e,...o)=>{const s=o.length?o[0]:e;return d.ctx&&i(d.ctx[t],d.ctx[t]=s)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](s),h&&function(t,n){-1===t.$$.dirty[0]&&(nt.push(t),it(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}(n,t)),e})):[],d.update(),h=!0,s(d.before_update),d.fragment=!!r&&r(d.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);d.fragment&&d.fragment.l(t),t.forEach(_)}else d.fragment&&d.fragment.c();e.intro&&yt(n.$$.fragment),At(n,e.target,e.anchor,e.customElement),ht()}U(l)}let Ot;"function"==typeof HTMLElement&&(Ot=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(c);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,n,e){this[t]=e}disconnectedCallback(){s(this.$$.on_disconnect)}$destroy(){Ct(this,1),this.$destroy=t}$on(n,e){if(!c(e))return t;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){this.$$set&&!u(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class Lt{$destroy(){Ct(this,1),this.$destroy=t}$on(n,e){if(!c(e))return t;const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const t=o.indexOf(e);-1!==t&&o.splice(t,1)}}$set(t){this.$$set&&!u(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}export{a as $,At as A,p as B,yt as C,_t as D,bt as E,ft as F,Ct as G,s as H,C as I,E as J,T as K,L,gt as M,at as N,tt as O,Lt as P,b as Q,$ as R,Ot as S,w as T,q as U,P as V,S as W,H as X,A as Y,G as Z,K as _,J as a,h as a0,W as a1,wt as a2,vt as a3,X as a4,xt as a5,ut as a6,R as a7,I as a8,z as a9,j as aa,f as ab,Y as ac,Et as ad,y as b,n as c,x as d,v as e,ht as f,M as g,O as h,Mt as i,g as j,D as k,N as l,kt as m,t as n,_ as o,d as p,l as q,V as r,r as s,k as t,Z as u,et as v,Tt as w,Nt as x,B as y,F as z};
1
+ function noop() { }
2
+ function assign(tar, src) {
3
+ // @ts-ignore
4
+ for (const k in src)
5
+ tar[k] = src[k];
6
+ return tar;
7
+ }
8
+ function run(fn) {
9
+ return fn();
10
+ }
11
+ function blank_object() {
12
+ return Object.create(null);
13
+ }
14
+ function run_all(fns) {
15
+ fns.forEach(run);
16
+ }
17
+ function is_function(thing) {
18
+ return typeof thing === 'function';
19
+ }
20
+ function safe_not_equal(a, b) {
21
+ return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
22
+ }
23
+ let src_url_equal_anchor;
24
+ function src_url_equal(element_src, url) {
25
+ if (!src_url_equal_anchor) {
26
+ src_url_equal_anchor = document.createElement('a');
27
+ }
28
+ src_url_equal_anchor.href = url;
29
+ return element_src === src_url_equal_anchor.href;
30
+ }
31
+ function is_empty(obj) {
32
+ return Object.keys(obj).length === 0;
33
+ }
34
+ function subscribe(store, ...callbacks) {
35
+ if (store == null) {
36
+ return noop;
37
+ }
38
+ const unsub = store.subscribe(...callbacks);
39
+ return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
40
+ }
41
+ function component_subscribe(component, store, callback) {
42
+ component.$$.on_destroy.push(subscribe(store, callback));
43
+ }
44
+ function exclude_internal_props(props) {
45
+ const result = {};
46
+ for (const k in props)
47
+ if (k[0] !== '$')
48
+ result[k] = props[k];
49
+ return result;
50
+ }
51
+ function compute_rest_props(props, keys) {
52
+ const rest = {};
53
+ keys = new Set(keys);
54
+ for (const k in props)
55
+ if (!keys.has(k) && k[0] !== '$')
56
+ rest[k] = props[k];
57
+ return rest;
58
+ }
59
+ function compute_slots(slots) {
60
+ const result = {};
61
+ for (const key in slots) {
62
+ result[key] = true;
63
+ }
64
+ return result;
65
+ }
66
+ function null_to_empty(value) {
67
+ return value == null ? '' : value;
68
+ }
69
+ function action_destroyer(action_result) {
70
+ return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;
71
+ }
72
+ const contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];
73
+ function append(target, node) {
74
+ target.appendChild(node);
75
+ }
76
+ function append_styles(target, style_sheet_id, styles) {
77
+ const append_styles_to = get_root_for_style(target);
78
+ if (!append_styles_to.getElementById(style_sheet_id)) {
79
+ const style = element('style');
80
+ style.id = style_sheet_id;
81
+ style.textContent = styles;
82
+ append_stylesheet(append_styles_to, style);
83
+ }
84
+ }
85
+ function get_root_for_style(node) {
86
+ if (!node)
87
+ return document;
88
+ const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
89
+ if (root && root.host) {
90
+ return root;
91
+ }
92
+ return node.ownerDocument;
93
+ }
94
+ function append_stylesheet(node, style) {
95
+ append(node.head || node, style);
96
+ return style.sheet;
97
+ }
98
+ function insert(target, node, anchor) {
99
+ target.insertBefore(node, anchor || null);
100
+ }
101
+ function detach(node) {
102
+ if (node.parentNode) {
103
+ node.parentNode.removeChild(node);
104
+ }
105
+ }
106
+ function destroy_each(iterations, detaching) {
107
+ for (let i = 0; i < iterations.length; i += 1) {
108
+ if (iterations[i])
109
+ iterations[i].d(detaching);
110
+ }
111
+ }
112
+ function element(name) {
113
+ return document.createElement(name);
114
+ }
115
+ function svg_element(name) {
116
+ return document.createElementNS('http://www.w3.org/2000/svg', name);
117
+ }
118
+ function text(data) {
119
+ return document.createTextNode(data);
120
+ }
121
+ function space() {
122
+ return text(' ');
123
+ }
124
+ function empty() {
125
+ return text('');
126
+ }
127
+ function listen(node, event, handler, options) {
128
+ node.addEventListener(event, handler, options);
129
+ return () => node.removeEventListener(event, handler, options);
130
+ }
131
+ function prevent_default(fn) {
132
+ return function (event) {
133
+ event.preventDefault();
134
+ // @ts-ignore
135
+ return fn.call(this, event);
136
+ };
137
+ }
138
+ function stop_propagation(fn) {
139
+ return function (event) {
140
+ event.stopPropagation();
141
+ // @ts-ignore
142
+ return fn.call(this, event);
143
+ };
144
+ }
145
+ function attr(node, attribute, value) {
146
+ if (value == null)
147
+ node.removeAttribute(attribute);
148
+ else if (node.getAttribute(attribute) !== value)
149
+ node.setAttribute(attribute, value);
150
+ }
151
+ function set_attributes(node, attributes) {
152
+ // @ts-ignore
153
+ const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);
154
+ for (const key in attributes) {
155
+ if (attributes[key] == null) {
156
+ node.removeAttribute(key);
157
+ }
158
+ else if (key === 'style') {
159
+ node.style.cssText = attributes[key];
160
+ }
161
+ else if (key === '__value') {
162
+ node.value = node[key] = attributes[key];
163
+ }
164
+ else if (descriptors[key] && descriptors[key].set) {
165
+ node[key] = attributes[key];
166
+ }
167
+ else {
168
+ attr(node, key, attributes[key]);
169
+ }
170
+ }
171
+ }
172
+ function set_custom_element_data(node, prop, value) {
173
+ if (prop in node) {
174
+ node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;
175
+ }
176
+ else {
177
+ attr(node, prop, value);
178
+ }
179
+ }
180
+ function get_binding_group_value(group, __value, checked) {
181
+ const value = new Set();
182
+ for (let i = 0; i < group.length; i += 1) {
183
+ if (group[i].checked)
184
+ value.add(group[i].__value);
185
+ }
186
+ if (!checked) {
187
+ value.delete(__value);
188
+ }
189
+ return Array.from(value);
190
+ }
191
+ function init_binding_group(group) {
192
+ let _inputs;
193
+ return {
194
+ /* push */ p(...inputs) {
195
+ _inputs = inputs;
196
+ _inputs.forEach(input => group.push(input));
197
+ },
198
+ /* remove */ r() {
199
+ _inputs.forEach(input => group.splice(group.indexOf(input), 1));
200
+ }
201
+ };
202
+ }
203
+ function to_number(value) {
204
+ return value === '' ? null : +value;
205
+ }
206
+ function children(element) {
207
+ return Array.from(element.childNodes);
208
+ }
209
+ function set_data(text, data) {
210
+ data = '' + data;
211
+ if (text.data === data)
212
+ return;
213
+ text.data = data;
214
+ }
215
+ function set_data_contenteditable(text, data) {
216
+ data = '' + data;
217
+ if (text.wholeText === data)
218
+ return;
219
+ text.data = data;
220
+ }
221
+ function set_data_maybe_contenteditable(text, data, attr_value) {
222
+ if (~contenteditable_truthy_values.indexOf(attr_value)) {
223
+ set_data_contenteditable(text, data);
224
+ }
225
+ else {
226
+ set_data(text, data);
227
+ }
228
+ }
229
+ function set_input_value(input, value) {
230
+ input.value = value == null ? '' : value;
231
+ }
232
+ function set_style(node, key, value, important) {
233
+ if (value === null) {
234
+ node.style.removeProperty(key);
235
+ }
236
+ else {
237
+ node.style.setProperty(key, value, important ? 'important' : '');
238
+ }
239
+ }
240
+ function select_option(select, value, mounting) {
241
+ for (let i = 0; i < select.options.length; i += 1) {
242
+ const option = select.options[i];
243
+ if (option.__value === value) {
244
+ option.selected = true;
245
+ return;
246
+ }
247
+ }
248
+ if (!mounting || value !== undefined) {
249
+ select.selectedIndex = -1; // no option should be selected
250
+ }
251
+ }
252
+ function select_options(select, value) {
253
+ for (let i = 0; i < select.options.length; i += 1) {
254
+ const option = select.options[i];
255
+ option.selected = ~value.indexOf(option.__value);
256
+ }
257
+ }
258
+ function select_value(select) {
259
+ const selected_option = select.querySelector(':checked');
260
+ return selected_option && selected_option.__value;
261
+ }
262
+ function toggle_class(element, name, toggle) {
263
+ element.classList[toggle ? 'add' : 'remove'](name);
264
+ }
265
+ function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
266
+ const e = document.createEvent('CustomEvent');
267
+ e.initCustomEvent(type, bubbles, cancelable, detail);
268
+ return e;
269
+ }
270
+ class HtmlTag {
271
+ constructor(is_svg = false) {
272
+ this.is_svg = false;
273
+ this.is_svg = is_svg;
274
+ this.e = this.n = null;
275
+ }
276
+ c(html) {
277
+ this.h(html);
278
+ }
279
+ m(html, target, anchor = null) {
280
+ if (!this.e) {
281
+ if (this.is_svg)
282
+ this.e = svg_element(target.nodeName);
283
+ /** #7364 target for <template> may be provided as #document-fragment(11) */
284
+ else
285
+ this.e = element((target.nodeType === 11 ? 'TEMPLATE' : target.nodeName));
286
+ this.t = target.tagName !== 'TEMPLATE' ? target : target.content;
287
+ this.c(html);
288
+ }
289
+ this.i(anchor);
290
+ }
291
+ h(html) {
292
+ this.e.innerHTML = html;
293
+ this.n = Array.from(this.e.nodeName === 'TEMPLATE' ? this.e.content.childNodes : this.e.childNodes);
294
+ }
295
+ i(anchor) {
296
+ for (let i = 0; i < this.n.length; i += 1) {
297
+ insert(this.t, this.n[i], anchor);
298
+ }
299
+ }
300
+ p(html) {
301
+ this.d();
302
+ this.h(html);
303
+ this.i(this.a);
304
+ }
305
+ d() {
306
+ this.n.forEach(detach);
307
+ }
308
+ }
309
+ function attribute_to_object(attributes) {
310
+ const result = {};
311
+ for (const attribute of attributes) {
312
+ result[attribute.name] = attribute.value;
313
+ }
314
+ return result;
315
+ }
316
+ function get_custom_elements_slots(element) {
317
+ const result = {};
318
+ element.childNodes.forEach((node) => {
319
+ result[node.slot || 'default'] = true;
320
+ });
321
+ return result;
322
+ }
323
+
324
+ let current_component;
325
+ function set_current_component(component) {
326
+ current_component = component;
327
+ }
328
+ function get_current_component() {
329
+ if (!current_component)
330
+ throw new Error('Function called outside component initialization');
331
+ return current_component;
332
+ }
333
+ /**
334
+ * The `onMount` function schedules a callback to run as soon as the component has been mounted to the DOM.
335
+ * It must be called during the component's initialisation (but doesn't need to live *inside* the component;
336
+ * it can be called from an external module).
337
+ *
338
+ * `onMount` does not run inside a [server-side component](/docs#run-time-server-side-component-api).
339
+ *
340
+ * https://svelte.dev/docs#run-time-svelte-onmount
341
+ */
342
+ function onMount(fn) {
343
+ get_current_component().$$.on_mount.push(fn);
344
+ }
345
+ /**
346
+ * Schedules a callback to run immediately after the component has been updated.
347
+ *
348
+ * The first time the callback runs will be after the initial `onMount`
349
+ */
350
+ function afterUpdate(fn) {
351
+ get_current_component().$$.after_update.push(fn);
352
+ }
353
+ /**
354
+ * Schedules a callback to run immediately before the component is unmounted.
355
+ *
356
+ * Out of `onMount`, `beforeUpdate`, `afterUpdate` and `onDestroy`, this is the
357
+ * only one that runs inside a server-side component.
358
+ *
359
+ * https://svelte.dev/docs#run-time-svelte-ondestroy
360
+ */
361
+ function onDestroy(fn) {
362
+ get_current_component().$$.on_destroy.push(fn);
363
+ }
364
+ /**
365
+ * Creates an event dispatcher that can be used to dispatch [component events](/docs#template-syntax-component-directives-on-eventname).
366
+ * Event dispatchers are functions that can take two arguments: `name` and `detail`.
367
+ *
368
+ * Component events created with `createEventDispatcher` create a
369
+ * [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).
370
+ * These events do not [bubble](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events#Event_bubbling_and_capture).
371
+ * The `detail` argument corresponds to the [CustomEvent.detail](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)
372
+ * property and can contain any type of data.
373
+ *
374
+ * https://svelte.dev/docs#run-time-svelte-createeventdispatcher
375
+ */
376
+ function createEventDispatcher() {
377
+ const component = get_current_component();
378
+ return (type, detail, { cancelable = false } = {}) => {
379
+ const callbacks = component.$$.callbacks[type];
380
+ if (callbacks) {
381
+ // TODO are there situations where events could be dispatched
382
+ // in a server (non-DOM) environment?
383
+ const event = custom_event(type, detail, { cancelable });
384
+ callbacks.slice().forEach(fn => {
385
+ fn.call(component, event);
386
+ });
387
+ return !event.defaultPrevented;
388
+ }
389
+ return true;
390
+ };
391
+ }
392
+ // TODO figure out if we still want to support
393
+ // shorthand events, or if we want to implement
394
+ // a real bubbling mechanism
395
+ function bubble(component, event) {
396
+ const callbacks = component.$$.callbacks[event.type];
397
+ if (callbacks) {
398
+ // @ts-ignore
399
+ callbacks.slice().forEach(fn => fn.call(this, event));
400
+ }
401
+ }
402
+
403
+ const dirty_components = [];
404
+ const binding_callbacks = [];
405
+ let render_callbacks = [];
406
+ const flush_callbacks = [];
407
+ const resolved_promise = /* @__PURE__ */ Promise.resolve();
408
+ let update_scheduled = false;
409
+ function schedule_update() {
410
+ if (!update_scheduled) {
411
+ update_scheduled = true;
412
+ resolved_promise.then(flush);
413
+ }
414
+ }
415
+ function tick() {
416
+ schedule_update();
417
+ return resolved_promise;
418
+ }
419
+ function add_render_callback(fn) {
420
+ render_callbacks.push(fn);
421
+ }
422
+ function add_flush_callback(fn) {
423
+ flush_callbacks.push(fn);
424
+ }
425
+ // flush() calls callbacks in this order:
426
+ // 1. All beforeUpdate callbacks, in order: parents before children
427
+ // 2. All bind:this callbacks, in reverse order: children before parents.
428
+ // 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
429
+ // for afterUpdates called during the initial onMount, which are called in
430
+ // reverse order: children before parents.
431
+ // Since callbacks might update component values, which could trigger another
432
+ // call to flush(), the following steps guard against this:
433
+ // 1. During beforeUpdate, any updated components will be added to the
434
+ // dirty_components array and will cause a reentrant call to flush(). Because
435
+ // the flush index is kept outside the function, the reentrant call will pick
436
+ // up where the earlier call left off and go through all dirty components. The
437
+ // current_component value is saved and restored so that the reentrant call will
438
+ // not interfere with the "parent" flush() call.
439
+ // 2. bind:this callbacks cannot trigger new flush() calls.
440
+ // 3. During afterUpdate, any updated components will NOT have their afterUpdate
441
+ // callback called a second time; the seen_callbacks set, outside the flush()
442
+ // function, guarantees this behavior.
443
+ const seen_callbacks = new Set();
444
+ let flushidx = 0; // Do *not* move this inside the flush() function
445
+ function flush() {
446
+ // Do not reenter flush while dirty components are updated, as this can
447
+ // result in an infinite loop. Instead, let the inner flush handle it.
448
+ // Reentrancy is ok afterwards for bindings etc.
449
+ if (flushidx !== 0) {
450
+ return;
451
+ }
452
+ const saved_component = current_component;
453
+ do {
454
+ // first, call beforeUpdate functions
455
+ // and update components
456
+ try {
457
+ while (flushidx < dirty_components.length) {
458
+ const component = dirty_components[flushidx];
459
+ flushidx++;
460
+ set_current_component(component);
461
+ update(component.$$);
462
+ }
463
+ }
464
+ catch (e) {
465
+ // reset dirty state to not end up in a deadlocked state and then rethrow
466
+ dirty_components.length = 0;
467
+ flushidx = 0;
468
+ throw e;
469
+ }
470
+ set_current_component(null);
471
+ dirty_components.length = 0;
472
+ flushidx = 0;
473
+ while (binding_callbacks.length)
474
+ binding_callbacks.pop()();
475
+ // then, once components are updated, call
476
+ // afterUpdate functions. This may cause
477
+ // subsequent updates...
478
+ for (let i = 0; i < render_callbacks.length; i += 1) {
479
+ const callback = render_callbacks[i];
480
+ if (!seen_callbacks.has(callback)) {
481
+ // ...so guard against infinite loops
482
+ seen_callbacks.add(callback);
483
+ callback();
484
+ }
485
+ }
486
+ render_callbacks.length = 0;
487
+ } while (dirty_components.length);
488
+ while (flush_callbacks.length) {
489
+ flush_callbacks.pop()();
490
+ }
491
+ update_scheduled = false;
492
+ seen_callbacks.clear();
493
+ set_current_component(saved_component);
494
+ }
495
+ function update($$) {
496
+ if ($$.fragment !== null) {
497
+ $$.update();
498
+ run_all($$.before_update);
499
+ const dirty = $$.dirty;
500
+ $$.dirty = [-1];
501
+ $$.fragment && $$.fragment.p($$.ctx, dirty);
502
+ $$.after_update.forEach(add_render_callback);
503
+ }
504
+ }
505
+ /**
506
+ * Useful for example to execute remaining `afterUpdate` callbacks before executing `destroy`.
507
+ */
508
+ function flush_render_callbacks(fns) {
509
+ const filtered = [];
510
+ const targets = [];
511
+ render_callbacks.forEach((c) => fns.indexOf(c) === -1 ? filtered.push(c) : targets.push(c));
512
+ targets.forEach((c) => c());
513
+ render_callbacks = filtered;
514
+ }
515
+ const outroing = new Set();
516
+ let outros;
517
+ function group_outros() {
518
+ outros = {
519
+ r: 0,
520
+ c: [],
521
+ p: outros // parent group
522
+ };
523
+ }
524
+ function check_outros() {
525
+ if (!outros.r) {
526
+ run_all(outros.c);
527
+ }
528
+ outros = outros.p;
529
+ }
530
+ function transition_in(block, local) {
531
+ if (block && block.i) {
532
+ outroing.delete(block);
533
+ block.i(local);
534
+ }
535
+ }
536
+ function transition_out(block, local, detach, callback) {
537
+ if (block && block.o) {
538
+ if (outroing.has(block))
539
+ return;
540
+ outroing.add(block);
541
+ outros.c.push(() => {
542
+ outroing.delete(block);
543
+ if (callback) {
544
+ if (detach)
545
+ block.d(1);
546
+ callback();
547
+ }
548
+ });
549
+ block.o(local);
550
+ }
551
+ else if (callback) {
552
+ callback();
553
+ }
554
+ }
555
+
556
+ const globals = (typeof window !== 'undefined'
557
+ ? window
558
+ : typeof globalThis !== 'undefined'
559
+ ? globalThis
560
+ : global);
561
+
562
+ function destroy_block(block, lookup) {
563
+ block.d(1);
564
+ lookup.delete(block.key);
565
+ }
566
+ function update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {
567
+ let o = old_blocks.length;
568
+ let n = list.length;
569
+ let i = o;
570
+ const old_indexes = {};
571
+ while (i--)
572
+ old_indexes[old_blocks[i].key] = i;
573
+ const new_blocks = [];
574
+ const new_lookup = new Map();
575
+ const deltas = new Map();
576
+ const updates = [];
577
+ i = n;
578
+ while (i--) {
579
+ const child_ctx = get_context(ctx, list, i);
580
+ const key = get_key(child_ctx);
581
+ let block = lookup.get(key);
582
+ if (!block) {
583
+ block = create_each_block(key, child_ctx);
584
+ block.c();
585
+ }
586
+ else if (dynamic) {
587
+ // defer updates until all the DOM shuffling is done
588
+ updates.push(() => block.p(child_ctx, dirty));
589
+ }
590
+ new_lookup.set(key, new_blocks[i] = block);
591
+ if (key in old_indexes)
592
+ deltas.set(key, Math.abs(i - old_indexes[key]));
593
+ }
594
+ const will_move = new Set();
595
+ const did_move = new Set();
596
+ function insert(block) {
597
+ transition_in(block, 1);
598
+ block.m(node, next);
599
+ lookup.set(block.key, block);
600
+ next = block.first;
601
+ n--;
602
+ }
603
+ while (o && n) {
604
+ const new_block = new_blocks[n - 1];
605
+ const old_block = old_blocks[o - 1];
606
+ const new_key = new_block.key;
607
+ const old_key = old_block.key;
608
+ if (new_block === old_block) {
609
+ // do nothing
610
+ next = new_block.first;
611
+ o--;
612
+ n--;
613
+ }
614
+ else if (!new_lookup.has(old_key)) {
615
+ // remove old block
616
+ destroy(old_block, lookup);
617
+ o--;
618
+ }
619
+ else if (!lookup.has(new_key) || will_move.has(new_key)) {
620
+ insert(new_block);
621
+ }
622
+ else if (did_move.has(old_key)) {
623
+ o--;
624
+ }
625
+ else if (deltas.get(new_key) > deltas.get(old_key)) {
626
+ did_move.add(new_key);
627
+ insert(new_block);
628
+ }
629
+ else {
630
+ will_move.add(old_key);
631
+ o--;
632
+ }
633
+ }
634
+ while (o--) {
635
+ const old_block = old_blocks[o];
636
+ if (!new_lookup.has(old_block.key))
637
+ destroy(old_block, lookup);
638
+ }
639
+ while (n)
640
+ insert(new_blocks[n - 1]);
641
+ run_all(updates);
642
+ return new_blocks;
643
+ }
644
+
645
+ function get_spread_update(levels, updates) {
646
+ const update = {};
647
+ const to_null_out = {};
648
+ const accounted_for = { $$scope: 1 };
649
+ let i = levels.length;
650
+ while (i--) {
651
+ const o = levels[i];
652
+ const n = updates[i];
653
+ if (n) {
654
+ for (const key in o) {
655
+ if (!(key in n))
656
+ to_null_out[key] = 1;
657
+ }
658
+ for (const key in n) {
659
+ if (!accounted_for[key]) {
660
+ update[key] = n[key];
661
+ accounted_for[key] = 1;
662
+ }
663
+ }
664
+ levels[i] = n;
665
+ }
666
+ else {
667
+ for (const key in o) {
668
+ accounted_for[key] = 1;
669
+ }
670
+ }
671
+ }
672
+ for (const key in to_null_out) {
673
+ if (!(key in update))
674
+ update[key] = undefined;
675
+ }
676
+ return update;
677
+ }
678
+ function get_spread_object(spread_props) {
679
+ return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};
680
+ }
681
+
682
+ function bind(component, name, callback) {
683
+ const index = component.$$.props[name];
684
+ if (index !== undefined) {
685
+ component.$$.bound[index] = callback;
686
+ callback(component.$$.ctx[index]);
687
+ }
688
+ }
689
+ function create_component(block) {
690
+ block && block.c();
691
+ }
692
+ function mount_component(component, target, anchor, customElement) {
693
+ const { fragment, after_update } = component.$$;
694
+ fragment && fragment.m(target, anchor);
695
+ if (!customElement) {
696
+ // onMount happens before the initial afterUpdate
697
+ add_render_callback(() => {
698
+ const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
699
+ // if the component was destroyed immediately
700
+ // it will update the `$$.on_destroy` reference to `null`.
701
+ // the destructured on_destroy may still reference to the old array
702
+ if (component.$$.on_destroy) {
703
+ component.$$.on_destroy.push(...new_on_destroy);
704
+ }
705
+ else {
706
+ // Edge case - component was destroyed immediately,
707
+ // most likely as a result of a binding initialising
708
+ run_all(new_on_destroy);
709
+ }
710
+ component.$$.on_mount = [];
711
+ });
712
+ }
713
+ after_update.forEach(add_render_callback);
714
+ }
715
+ function destroy_component(component, detaching) {
716
+ const $$ = component.$$;
717
+ if ($$.fragment !== null) {
718
+ flush_render_callbacks($$.after_update);
719
+ run_all($$.on_destroy);
720
+ $$.fragment && $$.fragment.d(detaching);
721
+ // TODO null out other refs, including component.$$ (but need to
722
+ // preserve final state?)
723
+ $$.on_destroy = $$.fragment = null;
724
+ $$.ctx = [];
725
+ }
726
+ }
727
+ function make_dirty(component, i) {
728
+ if (component.$$.dirty[0] === -1) {
729
+ dirty_components.push(component);
730
+ schedule_update();
731
+ component.$$.dirty.fill(0);
732
+ }
733
+ component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
734
+ }
735
+ function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
736
+ const parent_component = current_component;
737
+ set_current_component(component);
738
+ const $$ = component.$$ = {
739
+ fragment: null,
740
+ ctx: [],
741
+ // state
742
+ props,
743
+ update: noop,
744
+ not_equal,
745
+ bound: blank_object(),
746
+ // lifecycle
747
+ on_mount: [],
748
+ on_destroy: [],
749
+ on_disconnect: [],
750
+ before_update: [],
751
+ after_update: [],
752
+ context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
753
+ // everything else
754
+ callbacks: blank_object(),
755
+ dirty,
756
+ skip_bound: false,
757
+ root: options.target || parent_component.$$.root
758
+ };
759
+ append_styles && append_styles($$.root);
760
+ let ready = false;
761
+ $$.ctx = instance
762
+ ? instance(component, options.props || {}, (i, ret, ...rest) => {
763
+ const value = rest.length ? rest[0] : ret;
764
+ if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
765
+ if (!$$.skip_bound && $$.bound[i])
766
+ $$.bound[i](value);
767
+ if (ready)
768
+ make_dirty(component, i);
769
+ }
770
+ return ret;
771
+ })
772
+ : [];
773
+ $$.update();
774
+ ready = true;
775
+ run_all($$.before_update);
776
+ // `false` as a special case of no DOM component
777
+ $$.fragment = create_fragment ? create_fragment($$.ctx) : false;
778
+ if (options.target) {
779
+ if (options.hydrate) {
780
+ const nodes = children(options.target);
781
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
782
+ $$.fragment && $$.fragment.l(nodes);
783
+ nodes.forEach(detach);
784
+ }
785
+ else {
786
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
787
+ $$.fragment && $$.fragment.c();
788
+ }
789
+ if (options.intro)
790
+ transition_in(component.$$.fragment);
791
+ mount_component(component, options.target, options.anchor, options.customElement);
792
+ flush();
793
+ }
794
+ set_current_component(parent_component);
795
+ }
796
+ let SvelteElement;
797
+ if (typeof HTMLElement === 'function') {
798
+ SvelteElement = class extends HTMLElement {
799
+ constructor() {
800
+ super();
801
+ this.attachShadow({ mode: 'open' });
802
+ }
803
+ connectedCallback() {
804
+ const { on_mount } = this.$$;
805
+ this.$$.on_disconnect = on_mount.map(run).filter(is_function);
806
+ // @ts-ignore todo: improve typings
807
+ for (const key in this.$$.slotted) {
808
+ // @ts-ignore todo: improve typings
809
+ this.appendChild(this.$$.slotted[key]);
810
+ }
811
+ }
812
+ attributeChangedCallback(attr, _oldValue, newValue) {
813
+ this[attr] = newValue;
814
+ }
815
+ disconnectedCallback() {
816
+ run_all(this.$$.on_disconnect);
817
+ }
818
+ $destroy() {
819
+ destroy_component(this, 1);
820
+ this.$destroy = noop;
821
+ }
822
+ $on(type, callback) {
823
+ // TODO should this delegate to addEventListener?
824
+ if (!is_function(callback)) {
825
+ return noop;
826
+ }
827
+ const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
828
+ callbacks.push(callback);
829
+ return () => {
830
+ const index = callbacks.indexOf(callback);
831
+ if (index !== -1)
832
+ callbacks.splice(index, 1);
833
+ };
834
+ }
835
+ $set($$props) {
836
+ if (this.$$set && !is_empty($$props)) {
837
+ this.$$.skip_bound = true;
838
+ this.$$set($$props);
839
+ this.$$.skip_bound = false;
840
+ }
841
+ }
842
+ };
843
+ }
844
+ /**
845
+ * Base class for Svelte components. Used when dev=false.
846
+ */
847
+ class SvelteComponent {
848
+ $destroy() {
849
+ destroy_component(this, 1);
850
+ this.$destroy = noop;
851
+ }
852
+ $on(type, callback) {
853
+ if (!is_function(callback)) {
854
+ return noop;
855
+ }
856
+ const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
857
+ callbacks.push(callback);
858
+ return () => {
859
+ const index = callbacks.indexOf(callback);
860
+ if (index !== -1)
861
+ callbacks.splice(index, 1);
862
+ };
863
+ }
864
+ $set($$props) {
865
+ if (this.$$set && !is_empty($$props)) {
866
+ this.$$.skip_bound = true;
867
+ this.$$set($$props);
868
+ this.$$.skip_bound = false;
869
+ }
870
+ }
871
+ }
872
+
873
+ export { src_url_equal as $, mount_component as A, action_destroyer as B, transition_in as C, transition_out as D, check_outros as E, add_flush_callback as F, destroy_component as G, run_all as H, stop_propagation as I, destroy_each as J, empty as K, set_custom_element_data as L, group_outros as M, tick as N, bubble as O, SvelteComponent as P, append_styles as Q, null_to_empty as R, SvelteElement as S, svg_element as T, set_input_value as U, get_binding_group_value as V, init_binding_group as W, set_data_maybe_contenteditable as X, prevent_default as Y, HtmlTag as Z, get_custom_elements_slots as _, attribute_to_object as a, compute_slots as a0, onMount as a1, update_keyed_each as a2, destroy_block as a3, afterUpdate as a4, get_spread_object as a5, add_render_callback as a6, select_options as a7, select_option as a8, select_value as a9, to_number as aa, component_subscribe as ab, onDestroy as ac, globals as ad, insert as b, assign as c, space as d, element as e, flush as f, attr as g, set_attributes as h, init as i, append as j, set_data as k, listen as l, get_spread_update as m, noop as n, detach as o, compute_rest_props as p, exclude_internal_props as q, get_current_component as r, safe_not_equal as s, text as t, createEventDispatcher as u, binding_callbacks as v, bind as w, create_component as x, set_style as y, toggle_class as z };
2
874
  //# sourceMappingURL=index-c33b3772.js.map