@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.
- package/package.json +1 -1
- package/public/ClickOutside-63071e7a.js +15 -1
- package/public/ClickOutside-63071e7a.js.map +1 -1
- package/public/DataTableDefaultAction.nested-c37a5d51.js +762 -0
- package/public/DataTableDefaultAction.nested-c37a5d51.js.map +1 -0
- package/public/DataTableUtilities-313a448d.js +386 -0
- package/public/DataTableUtilities-313a448d.js.map +1 -0
- package/public/EventForward-8492ff62.js +109 -1
- package/public/EventForward-8492ff62.js.map +1 -1
- package/public/EventHandler-02058705.js +15 -1
- package/public/EventHandler-02058705.js.map +1 -1
- package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js → DataTableDefaultAction.nested-ac2e3dbe.js} +2 -2
- package/public/adeo/{DataTableDefaultAction.nested-90536fe3.js.map → DataTableDefaultAction.nested-ac2e3dbe.js.map} +1 -1
- package/public/adeo/DataTableUtilities-313a448d.js +2 -0
- package/public/adeo/DataTableUtilities-313a448d.js.map +1 -0
- package/public/adeo/bundle.js +5 -0
- package/public/adeo/components/barchart/BarChart.svelte +3 -4
- package/public/adeo/components/chart/BarChart.js +1 -1
- package/public/adeo/components/chart/BarChart.js.map +1 -1
- package/public/adeo/components/datatable/DataTable.js +1 -1
- package/public/adeo/components/datatable/DataTable.js.map +1 -1
- package/public/adeo/components/datatable/DataTable.svelte +12 -0
- package/public/adeo/components/datatable/DataTableDefaultAction.nested.js +1 -1
- package/public/adeo/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
- package/public/adeo/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
- package/public/adeo/components/datatable/DataTableFooter.nested.js +1 -1
- package/public/adeo/components/datatable/data.d.ts.map +1 -1
- package/public/adeo/components/datatable/datatable.types.d.ts +9 -2
- package/public/adeo/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/adeo/components/header/Header.js +1 -1
- package/public/adeo/components/header/Header.js.map +1 -1
- package/public/adeo/components/header/Header.svelte +2 -2
- package/public/adeo/components/kpi/Kpi.js +2 -0
- package/public/adeo/components/kpi/Kpi.js.map +1 -0
- package/public/adeo/components/kpi/Kpi.svelte +232 -0
- package/public/adeo/components/sidebar/Sidebar.js +1 -1
- package/public/adeo/components/sidebar/Sidebar.js.map +1 -1
- package/public/adeo/components/sidebar/Sidebar.svelte +1 -1
- package/public/adeo/icons-storybook.js +16 -0
- package/public/adeo/main.d.ts +1 -0
- package/public/adeo/main.d.ts.map +1 -1
- package/public/adeo/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/adeo/utilities/DataTableUtilities.ts +22 -2
- package/public/array-5b770a93.js +13 -1
- package/public/array-5b770a93.js.map +1 -1
- package/public/axis-fbc0f7b5.js +174 -1
- package/public/axis-fbc0f7b5.js.map +1 -1
- package/public/band-d7a07d2c.js +186 -1
- package/public/band-d7a07d2c.js.map +1 -1
- package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js → DataTableDefaultAction.nested-bcc599d1.js} +2 -2
- package/public/bricoman/{DataTableDefaultAction.nested-928e5e2d.js.map → DataTableDefaultAction.nested-bcc599d1.js.map} +1 -1
- package/public/bricoman/DataTableUtilities-313a448d.js +2 -0
- package/public/bricoman/DataTableUtilities-313a448d.js.map +1 -0
- package/public/bricoman/bundle.js +5 -0
- package/public/bricoman/components/barchart/BarChart.svelte +3 -4
- package/public/bricoman/components/chart/BarChart.js +1 -1
- package/public/bricoman/components/chart/BarChart.js.map +1 -1
- package/public/bricoman/components/datatable/DataTable.js +1 -1
- package/public/bricoman/components/datatable/DataTable.js.map +1 -1
- package/public/bricoman/components/datatable/DataTable.svelte +12 -0
- package/public/bricoman/components/datatable/DataTableDefaultAction.nested.js +1 -1
- package/public/bricoman/components/datatable/DataTableDefaultEdtion.nested.js +1 -1
- package/public/bricoman/components/datatable/DataTableDefaultFilterTags.nested.js +1 -1
- package/public/bricoman/components/datatable/DataTableFooter.nested.js +1 -1
- package/public/bricoman/components/datatable/data.d.ts.map +1 -1
- package/public/bricoman/components/datatable/datatable.types.d.ts +9 -2
- package/public/bricoman/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/bricoman/components/header/Header.js +1 -1
- package/public/bricoman/components/header/Header.js.map +1 -1
- package/public/bricoman/components/header/Header.svelte +2 -2
- package/public/bricoman/components/kpi/Kpi.js +2 -0
- package/public/bricoman/components/kpi/Kpi.js.map +1 -0
- package/public/bricoman/components/kpi/Kpi.svelte +232 -0
- package/public/bricoman/components/sidebar/Sidebar.js +1 -1
- package/public/bricoman/components/sidebar/Sidebar.js.map +1 -1
- package/public/bricoman/components/sidebar/Sidebar.svelte +1 -1
- package/public/bricoman/icons-storybook.js +16 -0
- package/public/bricoman/main.d.ts +1 -0
- package/public/bricoman/main.d.ts.map +1 -1
- package/public/bricoman/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/bricoman/utilities/DataTableUtilities.ts +22 -2
- package/public/bundle.js +5 -0
- package/public/components/accordion/Accordion.js +365 -1
- package/public/components/accordion/Accordion.js.map +1 -1
- package/public/components/autocomplete/Autocomplete.js +1515 -1
- package/public/components/autocomplete/Autocomplete.js.map +1 -1
- package/public/components/badge/Badge.js +155 -1
- package/public/components/badge/Badge.js.map +1 -1
- package/public/components/badge/Badge.nested.js +101 -1
- package/public/components/badge/Badge.nested.js.map +1 -1
- package/public/components/barchart/BarChart.svelte +3 -4
- package/public/components/breadcrumb/Breadcrumb.js +372 -1
- package/public/components/breadcrumb/Breadcrumb.js.map +1 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js +319 -1
- package/public/components/breadcrumb/Breadcrumb.nested.js.map +1 -1
- package/public/components/button/Button.js +1138 -1
- package/public/components/button/Button.js.map +1 -1
- package/public/components/card/Card.js +369 -1
- package/public/components/card/Card.js.map +1 -1
- package/public/components/chart/BarChart.js +583 -1
- package/public/components/chart/BarChart.js.map +1 -1
- package/public/components/chart/Donut.js +1189 -1
- package/public/components/chart/Donut.js.map +1 -1
- package/public/components/chart/GroupedBarChart.js +750 -1
- package/public/components/chart/GroupedBarChart.js.map +1 -1
- package/public/components/chart/LineChart.js +1731 -1
- package/public/components/chart/LineChart.js.map +1 -1
- package/public/components/chart/Radar.js +729 -1
- package/public/components/chart/Radar.js.map +1 -1
- package/public/components/chart/StackedBarChart.js +745 -1
- package/public/components/chart/StackedBarChart.js.map +1 -1
- package/public/components/checkbox/Checkbox.js +307 -1
- package/public/components/checkbox/Checkbox.js.map +1 -1
- package/public/components/checkboxgroup/checkboxGroup.js +404 -1
- package/public/components/checkboxgroup/checkboxGroup.js.map +1 -1
- package/public/components/datatable/DataTable.js +3098 -1
- package/public/components/datatable/DataTable.js.map +1 -1
- package/public/components/datatable/DataTable.svelte +12 -0
- package/public/components/datatable/DataTableDefaultAction.nested.js +4 -1
- package/public/components/datatable/DataTableDefaultAction.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js +164 -1
- package/public/components/datatable/DataTableDefaultEdtion.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js +380 -1
- package/public/components/datatable/DataTableDefaultFilterTags.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js +424 -1
- package/public/components/datatable/DataTableDefaultSelection.nested.js.map +1 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js +263 -1
- package/public/components/datatable/DataTableDefaultSelectionLabel.nested.js.map +1 -1
- package/public/components/datatable/DataTableFooter.nested.js +637 -1
- package/public/components/datatable/DataTableFooter.nested.js.map +1 -1
- package/public/components/datatable/data.d.ts.map +1 -1
- package/public/components/datatable/datatable.types.d.ts +9 -2
- package/public/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/components/dropdown/Dropdown.js +1426 -1
- package/public/components/dropdown/Dropdown.js.map +1 -1
- package/public/components/field/Field.js +375 -1
- package/public/components/field/Field.js.map +1 -1
- package/public/components/fileuploader/FileUploader.js +603 -1
- package/public/components/fileuploader/FileUploader.js.map +1 -1
- package/public/components/fileuploader/ResultFile.nested.js +344 -1
- package/public/components/fileuploader/ResultFile.nested.js.map +1 -1
- package/public/components/flag/Flag.js +174 -1
- package/public/components/flag/Flag.js.map +1 -1
- package/public/components/header/Header.js +918 -1
- package/public/components/header/Header.js.map +1 -1
- package/public/components/header/Header.svelte +2 -2
- package/public/components/hero/Hero.js +271 -1
- package/public/components/hero/Hero.js.map +1 -1
- package/public/components/kpi/Kpi.js +405 -0
- package/public/components/kpi/Kpi.js.map +1 -0
- package/public/components/kpi/Kpi.svelte +232 -0
- package/public/components/layer/Layer.js +471 -1
- package/public/components/layer/Layer.js.map +1 -1
- package/public/components/link/Link.js +380 -1
- package/public/components/link/Link.js.map +1 -1
- package/public/components/listbox/Listbox.js +595 -1
- package/public/components/listbox/Listbox.js.map +1 -1
- package/public/components/listbox/Listbox.nested.js +629 -1
- package/public/components/listbox/Listbox.nested.js.map +1 -1
- package/public/components/loader/Loader.js +246 -1
- package/public/components/loader/Loader.js.map +1 -1
- package/public/components/loader/Loader.nested.js +176 -1
- package/public/components/loader/Loader.nested.js.map +1 -1
- package/public/components/modal/Modal.js +395 -1
- package/public/components/modal/Modal.js.map +1 -1
- package/public/components/notification/Notification.js +458 -1
- package/public/components/notification/Notification.js.map +1 -1
- package/public/components/optionbutton/OptionButton.js +316 -1
- package/public/components/optionbutton/OptionButton.js.map +1 -1
- package/public/components/overlay/Overlay.js +104 -1
- package/public/components/overlay/Overlay.js.map +1 -1
- package/public/components/overlay/OverlayLoader.js +151 -1
- package/public/components/overlay/OverlayLoader.js.map +1 -1
- package/public/components/pagination/Pagination.js +613 -1
- package/public/components/pagination/Pagination.js.map +1 -1
- package/public/components/passwordinput/PasswordInput.js +291 -1
- package/public/components/passwordinput/PasswordInput.js.map +1 -1
- package/public/components/phonenumber/PhoneNumber.js +6894 -1
- package/public/components/phonenumber/PhoneNumber.js.map +1 -1
- package/public/components/price/Price.js +768 -1
- package/public/components/price/Price.js.map +1 -1
- package/public/components/progressbar/ProgressBar.js +278 -1
- package/public/components/progressbar/ProgressBar.js.map +1 -1
- package/public/components/quantityselector/QuantitySelector.js +397 -1
- package/public/components/quantityselector/QuantitySelector.js.map +1 -1
- package/public/components/radio/Radio.js +273 -1
- package/public/components/radio/Radio.js.map +1 -1
- package/public/components/radiogroup/RadioGroup.js +414 -1
- package/public/components/radiogroup/RadioGroup.js.map +1 -1
- package/public/components/ratings/StarsInput.js +292 -1
- package/public/components/ratings/StarsInput.js.map +1 -1
- package/public/components/ratings/StarsResult.js +246 -1
- package/public/components/ratings/StarsResult.js.map +1 -1
- package/public/components/select/Select.js +451 -1
- package/public/components/select/Select.js.map +1 -1
- package/public/components/sidebar/Sidebar.js +784 -1
- package/public/components/sidebar/Sidebar.js.map +1 -1
- package/public/components/sidebar/Sidebar.svelte +1 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js +594 -1
- package/public/components/sidebar/sidebar-feature-group.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-feature.nested.js +402 -1
- package/public/components/sidebar/sidebar-feature.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-section.nested.js +394 -1
- package/public/components/sidebar/sidebar-section.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-segment.nested.js +200 -1
- package/public/components/sidebar/sidebar-segment.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-separator.nested.js +49 -1
- package/public/components/sidebar/sidebar-separator.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js +312 -1
- package/public/components/sidebar/sidebar-sub-features.nested.js.map +1 -1
- package/public/components/sidebar/sidebar-user.nested.js +733 -1
- package/public/components/sidebar/sidebar-user.nested.js.map +1 -1
- package/public/components/stepper/Stepper.js +371 -1
- package/public/components/stepper/Stepper.js.map +1 -1
- package/public/components/tabs/Tabs.js +615 -1
- package/public/components/tabs/Tabs.js.map +1 -1
- package/public/components/tabs/Tabs.nested.js +472 -1
- package/public/components/tabs/Tabs.nested.js.map +1 -1
- package/public/components/tag/Tag.js +665 -1
- package/public/components/tag/Tag.js.map +1 -1
- package/public/components/tag/Tag.nested.js +554 -1
- package/public/components/tag/Tag.nested.js.map +1 -1
- package/public/components/taglist/TagList.js +475 -1
- package/public/components/taglist/TagList.js.map +1 -1
- package/public/components/textarea/Textarea.js +303 -1
- package/public/components/textarea/Textarea.js.map +1 -1
- package/public/components/textinput/Textinput.js +497 -1
- package/public/components/textinput/Textinput.js.map +1 -1
- package/public/components/textinput/Textinput.nested.js +320 -1
- package/public/components/textinput/Textinput.nested.js.map +1 -1
- package/public/components/toggle/Toggle.js +278 -1
- package/public/components/toggle/Toggle.js.map +1 -1
- package/public/components/tooltip/Tooltip.js +173 -1
- package/public/components/tooltip/Tooltip.js.map +1 -1
- package/public/icons-storybook.js +16 -0
- package/public/index-c33b3772.js +873 -1
- package/public/index-c33b3772.js.map +1 -1
- package/public/linear-f46d7e9e.js +700 -1
- package/public/linear-f46d7e9e.js.map +1 -1
- package/public/main.d.ts +1 -0
- package/public/main.d.ts.map +1 -1
- package/public/path-1b5da959.js +186 -1
- package/public/path-1b5da959.js.map +1 -1
- package/public/sidebar-service-275bf9ef.js +129 -1
- package/public/sidebar-service-275bf9ef.js.map +1 -1
- package/public/symbol-b05a6e2b.js +169 -1
- package/public/symbol-b05a6e2b.js.map +1 -1
- package/public/transform-15d69d5d.js +2743 -1
- package/public/transform-15d69d5d.js.map +1 -1
- package/public/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/utilities/DataTableUtilities.ts +22 -2
- package/public/utilities/EventForward.js +136 -1
- package/public/utilities/EventForward.js.map +1 -1
- package/public/utilities/EventHandler.js +36 -1
- package/public/utilities/EventHandler.js.map +1 -1
- package/public/utilities/components/datatable/data.d.ts.map +1 -1
- package/public/utilities/components/datatable/datatable.types.d.ts +9 -2
- package/public/utilities/components/datatable/datatable.types.d.ts.map +1 -1
- package/public/utilities/main.d.ts +1 -0
- package/public/utilities/main.d.ts.map +1 -1
- package/public/utilities/stories/datatable/DataTable.stories.d.ts.map +1 -1
- package/public/utilities/stories/header/Header.stories.d.ts.map +1 -1
- package/public/utilities/stories/kpi/kpi.stories.d.ts +7 -0
- package/public/utilities/stories/kpi/kpi.stories.d.ts.map +1 -0
- package/public/utilities/utilities/DataTableUtilities.d.ts.map +1 -1
- package/public/DataTableDefaultAction.nested-483f8bb0.js +0 -2
- package/public/DataTableDefaultAction.nested-483f8bb0.js.map +0 -1
- package/public/DataTableUtilities-60220c78.js +0 -2
- package/public/DataTableUtilities-60220c78.js.map +0 -1
- package/public/adeo/DataTableUtilities-60220c78.js +0 -2
- package/public/adeo/DataTableUtilities-60220c78.js.map +0 -1
- package/public/bricoman/DataTableUtilities-60220c78.js +0 -2
- package/public/bricoman/DataTableUtilities-60220c78.js.map +0 -1
package/public/index-c33b3772.js
CHANGED
|
@@ -1,2 +1,874 @@
|
|
|
1
|
-
function
|
|
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
|