diff --git a/gh-pages/docs.html b/gh-pages/docs.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs.html
+++ b/gh-pages/docs.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/action.html b/gh-pages/docs/components/action.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/action.html
+++ b/gh-pages/docs/components/action.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/alert.html b/gh-pages/docs/components/alert.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/alert.html
+++ b/gh-pages/docs/components/alert.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/audio.html b/gh-pages/docs/components/audio.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/audio.html
+++ b/gh-pages/docs/components/audio.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/button.html b/gh-pages/docs/components/button.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/button.html
+++ b/gh-pages/docs/components/button.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/buttongroup.html b/gh-pages/docs/components/buttongroup.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/buttongroup.html
+++ b/gh-pages/docs/components/buttongroup.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/card.html b/gh-pages/docs/components/card.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/card.html
+++ b/gh-pages/docs/components/card.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/cards.html b/gh-pages/docs/components/cards.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/cards.html
+++ b/gh-pages/docs/components/cards.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/carousel.html b/gh-pages/docs/components/carousel.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/carousel.html
+++ b/gh-pages/docs/components/carousel.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/chart.html b/gh-pages/docs/components/chart.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/chart.html
+++ b/gh-pages/docs/components/chart.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/collapse.html b/gh-pages/docs/components/collapse.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/collapse.html
+++ b/gh-pages/docs/components/collapse.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/color.html b/gh-pages/docs/components/color.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/color.html
+++ b/gh-pages/docs/components/color.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/component.html b/gh-pages/docs/components/component.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/component.html
+++ b/gh-pages/docs/components/component.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/container.html b/gh-pages/docs/components/container.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/container.html
+++ b/gh-pages/docs/components/container.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/crud.html b/gh-pages/docs/components/crud.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/crud.html
+++ b/gh-pages/docs/components/crud.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/date.html b/gh-pages/docs/components/date.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/date.html
+++ b/gh-pages/docs/components/date.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/dialog.html b/gh-pages/docs/components/dialog.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/dialog.html
+++ b/gh-pages/docs/components/dialog.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/divider.html b/gh-pages/docs/components/divider.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/divider.html
+++ b/gh-pages/docs/components/divider.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/drawer.html b/gh-pages/docs/components/drawer.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/drawer.html
+++ b/gh-pages/docs/components/drawer.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/dropdown-button.html b/gh-pages/docs/components/dropdown-button.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/dropdown-button.html
+++ b/gh-pages/docs/components/dropdown-button.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/each.html b/gh-pages/docs/components/each.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/each.html
+++ b/gh-pages/docs/components/each.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/array.html b/gh-pages/docs/components/form/array.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/array.html
+++ b/gh-pages/docs/components/form/array.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/button-group.html b/gh-pages/docs/components/form/button-group.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/button-group.html
+++ b/gh-pages/docs/components/form/button-group.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/button-toolbar.html b/gh-pages/docs/components/form/button-toolbar.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/button-toolbar.html
+++ b/gh-pages/docs/components/form/button-toolbar.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/button.html b/gh-pages/docs/components/form/button.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/button.html
+++ b/gh-pages/docs/components/form/button.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/chain-select.html b/gh-pages/docs/components/form/chain-select.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/chain-select.html
+++ b/gh-pages/docs/components/form/chain-select.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/checkbox.html b/gh-pages/docs/components/form/checkbox.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/checkbox.html
+++ b/gh-pages/docs/components/form/checkbox.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/checkboxes.html b/gh-pages/docs/components/form/checkboxes.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/checkboxes.html
+++ b/gh-pages/docs/components/form/checkboxes.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/city.html b/gh-pages/docs/components/form/city.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/city.html
+++ b/gh-pages/docs/components/form/city.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/color.html b/gh-pages/docs/components/form/color.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/color.html
+++ b/gh-pages/docs/components/form/color.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/combo.html b/gh-pages/docs/components/form/combo.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/combo.html
+++ b/gh-pages/docs/components/form/combo.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/date-range.html b/gh-pages/docs/components/form/date-range.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/date-range.html
+++ b/gh-pages/docs/components/form/date-range.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/date.html b/gh-pages/docs/components/form/date.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/date.html
+++ b/gh-pages/docs/components/form/date.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/datetime-range.html b/gh-pages/docs/components/form/datetime-range.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/datetime-range.html
+++ b/gh-pages/docs/components/form/datetime-range.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/datetime.html b/gh-pages/docs/components/form/datetime.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/datetime.html
+++ b/gh-pages/docs/components/form/datetime.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/diff-editor.html b/gh-pages/docs/components/form/diff-editor.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/diff-editor.html
+++ b/gh-pages/docs/components/form/diff-editor.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/editor.html b/gh-pages/docs/components/form/editor.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/editor.html
+++ b/gh-pages/docs/components/form/editor.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/fieldset.html b/gh-pages/docs/components/form/fieldset.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/fieldset.html
+++ b/gh-pages/docs/components/form/fieldset.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/file.html b/gh-pages/docs/components/form/file.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/file.html
+++ b/gh-pages/docs/components/form/file.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/formitem.html b/gh-pages/docs/components/form/formitem.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/formitem.html
+++ b/gh-pages/docs/components/form/formitem.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/formula.html b/gh-pages/docs/components/form/formula.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/formula.html
+++ b/gh-pages/docs/components/form/formula.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/grid.html b/gh-pages/docs/components/form/grid.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/grid.html
+++ b/gh-pages/docs/components/form/grid.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/group.html b/gh-pages/docs/components/form/group.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/group.html
+++ b/gh-pages/docs/components/form/group.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/hbox.html b/gh-pages/docs/components/form/hbox.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/hbox.html
+++ b/gh-pages/docs/components/form/hbox.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/hidden.html b/gh-pages/docs/components/form/hidden.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/hidden.html
+++ b/gh-pages/docs/components/form/hidden.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/image.html b/gh-pages/docs/components/form/image.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/image.html
+++ b/gh-pages/docs/components/form/image.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/index.html b/gh-pages/docs/components/form/index.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/index.html
+++ b/gh-pages/docs/components/form/index.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/input-group.html b/gh-pages/docs/components/form/input-group.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/input-group.html
+++ b/gh-pages/docs/components/form/input-group.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/list.html b/gh-pages/docs/components/form/list.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/list.html
+++ b/gh-pages/docs/components/form/list.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/matrix.html b/gh-pages/docs/components/form/matrix.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/matrix.html
+++ b/gh-pages/docs/components/form/matrix.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/nestedselect.html b/gh-pages/docs/components/form/nestedselect.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/nestedselect.html
+++ b/gh-pages/docs/components/form/nestedselect.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/number.html b/gh-pages/docs/components/form/number.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/number.html
+++ b/gh-pages/docs/components/form/number.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/options.html b/gh-pages/docs/components/form/options.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/options.html
+++ b/gh-pages/docs/components/form/options.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/panel.html b/gh-pages/docs/components/form/panel.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/panel.html
+++ b/gh-pages/docs/components/form/panel.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/picker.html b/gh-pages/docs/components/form/picker.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/picker.html
+++ b/gh-pages/docs/components/form/picker.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/radios.html b/gh-pages/docs/components/form/radios.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/radios.html
+++ b/gh-pages/docs/components/form/radios.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/range.html b/gh-pages/docs/components/form/range.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/range.html
+++ b/gh-pages/docs/components/form/range.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/rating.html b/gh-pages/docs/components/form/rating.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/rating.html
+++ b/gh-pages/docs/components/form/rating.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/repeat.html b/gh-pages/docs/components/form/repeat.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/repeat.html
+++ b/gh-pages/docs/components/form/repeat.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/rich-text.html b/gh-pages/docs/components/form/rich-text.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/rich-text.html
+++ b/gh-pages/docs/components/form/rich-text.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/select.html b/gh-pages/docs/components/form/select.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/select.html
+++ b/gh-pages/docs/components/form/select.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/service.html b/gh-pages/docs/components/form/service.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/service.html
+++ b/gh-pages/docs/components/form/service.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/static.html b/gh-pages/docs/components/form/static.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/static.html
+++ b/gh-pages/docs/components/form/static.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/subform.html b/gh-pages/docs/components/form/subform.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/subform.html
+++ b/gh-pages/docs/components/form/subform.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/switch.html b/gh-pages/docs/components/form/switch.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/switch.html
+++ b/gh-pages/docs/components/form/switch.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/table.html b/gh-pages/docs/components/form/table.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/table.html
+++ b/gh-pages/docs/components/form/table.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/tabs.html b/gh-pages/docs/components/form/tabs.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/tabs.html
+++ b/gh-pages/docs/components/form/tabs.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/tag.html b/gh-pages/docs/components/form/tag.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/tag.html
+++ b/gh-pages/docs/components/form/tag.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/text.html b/gh-pages/docs/components/form/text.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/text.html
+++ b/gh-pages/docs/components/form/text.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/textarea.html b/gh-pages/docs/components/form/textarea.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/textarea.html
+++ b/gh-pages/docs/components/form/textarea.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/time.html b/gh-pages/docs/components/form/time.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/time.html
+++ b/gh-pages/docs/components/form/time.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/tree.html b/gh-pages/docs/components/form/tree.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/tree.html
+++ b/gh-pages/docs/components/form/tree.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/form/treeselect.html b/gh-pages/docs/components/form/treeselect.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/form/treeselect.html
+++ b/gh-pages/docs/components/form/treeselect.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/grid.html b/gh-pages/docs/components/grid.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/grid.html
+++ b/gh-pages/docs/components/grid.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/hbox.html b/gh-pages/docs/components/hbox.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/hbox.html
+++ b/gh-pages/docs/components/hbox.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/html.html b/gh-pages/docs/components/html.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/html.html
+++ b/gh-pages/docs/components/html.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/icon.html b/gh-pages/docs/components/icon.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/icon.html
+++ b/gh-pages/docs/components/icon.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/iframe.html b/gh-pages/docs/components/iframe.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/iframe.html
+++ b/gh-pages/docs/components/iframe.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/image.html b/gh-pages/docs/components/image.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/image.html
+++ b/gh-pages/docs/components/image.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/images.html b/gh-pages/docs/components/images.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/images.html
+++ b/gh-pages/docs/components/images.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/json.html b/gh-pages/docs/components/json.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/json.html
+++ b/gh-pages/docs/components/json.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/link.html b/gh-pages/docs/components/link.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/link.html
+++ b/gh-pages/docs/components/link.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/list.html b/gh-pages/docs/components/list.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/list.html
+++ b/gh-pages/docs/components/list.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/mapping.html b/gh-pages/docs/components/mapping.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/mapping.html
+++ b/gh-pages/docs/components/mapping.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/nav.html b/gh-pages/docs/components/nav.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/nav.html
+++ b/gh-pages/docs/components/nav.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/page.html b/gh-pages/docs/components/page.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/page.html
+++ b/gh-pages/docs/components/page.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/panel.html b/gh-pages/docs/components/panel.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/panel.html
+++ b/gh-pages/docs/components/panel.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/progress.html b/gh-pages/docs/components/progress.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/progress.html
+++ b/gh-pages/docs/components/progress.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/qrcode.html b/gh-pages/docs/components/qrcode.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/qrcode.html
+++ b/gh-pages/docs/components/qrcode.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/remark.html b/gh-pages/docs/components/remark.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/remark.html
+++ b/gh-pages/docs/components/remark.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/service.html b/gh-pages/docs/components/service.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/service.html
+++ b/gh-pages/docs/components/service.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/spinner.html b/gh-pages/docs/components/spinner.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/spinner.html
+++ b/gh-pages/docs/components/spinner.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/status.html b/gh-pages/docs/components/status.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/status.html
+++ b/gh-pages/docs/components/status.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/switch.html b/gh-pages/docs/components/switch.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/switch.html
+++ b/gh-pages/docs/components/switch.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/table.html b/gh-pages/docs/components/table.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/table.html
+++ b/gh-pages/docs/components/table.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/tabstabs.html b/gh-pages/docs/components/tabstabs.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/tabstabs.html
+++ b/gh-pages/docs/components/tabstabs.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/tasks.html b/gh-pages/docs/components/tasks.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/tasks.html
+++ b/gh-pages/docs/components/tasks.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/tpl.html b/gh-pages/docs/components/tpl.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/tpl.html
+++ b/gh-pages/docs/components/tpl.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/video.html b/gh-pages/docs/components/video.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/video.html
+++ b/gh-pages/docs/components/video.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/wizard.html b/gh-pages/docs/components/wizard.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/wizard.html
+++ b/gh-pages/docs/components/wizard.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/components/wrapper.html b/gh-pages/docs/components/wrapper.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/components/wrapper.html
+++ b/gh-pages/docs/components/wrapper.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/action.html b/gh-pages/docs/concepts/action.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/action.html
+++ b/gh-pages/docs/concepts/action.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/data-mapping.html b/gh-pages/docs/concepts/data-mapping.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/data-mapping.html
+++ b/gh-pages/docs/concepts/data-mapping.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/datascope-and-datachain.html b/gh-pages/docs/concepts/datascope-and-datachain.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/datascope-and-datachain.html
+++ b/gh-pages/docs/concepts/datascope-and-datachain.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/expression.html b/gh-pages/docs/concepts/expression.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/expression.html
+++ b/gh-pages/docs/concepts/expression.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/linkage.html b/gh-pages/docs/concepts/linkage.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/linkage.html
+++ b/gh-pages/docs/concepts/linkage.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/schema.html b/gh-pages/docs/concepts/schema.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/schema.html
+++ b/gh-pages/docs/concepts/schema.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/style.html b/gh-pages/docs/concepts/style.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/style.html
+++ b/gh-pages/docs/concepts/style.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/concepts/template.html b/gh-pages/docs/concepts/template.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/concepts/template.html
+++ b/gh-pages/docs/concepts/template.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/index.html b/gh-pages/docs/index.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/index.html
+++ b/gh-pages/docs/index.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/start/custom.html b/gh-pages/docs/start/custom.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/start/custom.html
+++ b/gh-pages/docs/start/custom.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/start/getting-started.html b/gh-pages/docs/start/getting-started.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/start/getting-started.html
+++ b/gh-pages/docs/start/getting-started.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/types/api.html b/gh-pages/docs/types/api.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/types/api.html
+++ b/gh-pages/docs/types/api.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/docs/types/schemanode.html b/gh-pages/docs/types/schemanode.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/docs/types/schemanode.html
+++ b/gh-pages/docs/types/schemanode.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/examples.html b/gh-pages/examples.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/examples.html
+++ b/gh-pages/examples.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/index.html b/gh-pages/index.html
index 734772c6..7c497f9d 100644
--- a/gh-pages/index.html
+++ b/gh-pages/index.html
@@ -35,7 +35,7 @@
-
+
diff --git a/gh-pages/pkg/npm_a0ccfd5.js b/gh-pages/pkg/npm_a99ecf2.js
similarity index 92%
rename from gh-pages/pkg/npm_a0ccfd5.js
rename to gh-pages/pkg/npm_a99ecf2.js
index 071b7c1d..d7b610ef 100644
--- a/gh-pages/pkg/npm_a0ccfd5.js
+++ b/gh-pages/pkg/npm_a99ecf2.js
@@ -830,9 +830,9 @@ amis.define('node_modules/mobx/lib/mobx.min', function(require, exports, module,
;/*!node_modules/mobx/lib/index.js*/
amis.define("node_modules/mobx/lib/index",function(o,e,i){i.exports=o("node_modules/mobx/lib/mobx.min")});
;/*!node_modules/mobx-state-tree/dist/mobx-state-tree.js*/
-amis.define("node_modules/mobx-state-tree/dist/mobx-state-tree",function(t,e){"use strict";function n(t){yr=t}function r(){return yr}function i(t){n(t)}function o(t,e){function n(){this.constructor=t}br(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);io?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(3>o?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function c(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e"}}function we(t){return"function"==typeof t?"":xe(t)?"<"+t+">":"`"+me(t)+"`"}function _e(t){return t.length<280?t:t.substring(0,272)+"......"+t.substring(t.length-8)}function Pe(t){var e=t.value,n=t.context[t.context.length-1].type,r=t.context.map(function(t){var e=t.path;return e}).filter(function(t){return t.length>0}).join("/"),i=r.length>0?'at path "/'+r+'" ':"",o=xe(e)?"value of type "+ke(e).type.name+":":Ke(e)?"value":"snapshot",a=n&&xe(e)&&n.is(ke(e).snapshot);return""+i+o+" "+we(e)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(t.message?" ("+t.message+")":"")+(n?Ln(n)||Ke(e)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(a?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Se(t,e,n){return t.concat([{path:e,type:n}])}function Ae(){return Fr}function Ie(t,e,n){return[{context:t,value:e,message:n}]}function Te(t){return t.reduce(function(t,e){return t.concat(e)},[])}function Ce(t,e){sn()&&Oe(t,e)}function Oe(t,e){var n=t.validate(e,[{path:"",type:t}]);if(n.length>0)throw $e(Ee(t,e,n))}function Ee(t,e,n){return 0===n.length?void 0:"Error while converting "+_e(we(e))+" to `"+t.name+"`:\n\n "+n.map(Pe).join("\n ")}function je(t,e,n,r,i){var o=Re(i);if(o){if(o.parent)throw $e("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(e?e.path:"")+"/"+n+"', but it lives already at '"+o.path+"'");return e&&o.setParent(e,n),o}return new Sr(t,e,n,r,i)}function Ve(t,e,n,r,i){return new wr(t,e,n,r,i)}function Ne(t){return t instanceof wr||t instanceof Sr}function xe(t){return!(!t||!t.$treenode)}function De(t,e){cn(t,xe,"mobx-state-tree node",e)}function ke(t){if(!xe(t))throw $e("Value "+t+" is no MST Node");return t.$treenode}function Re(t){return t&&t.$treenode||null}function ze(){return ke(this).snapshot}function Fe(t,e){if(t.root!==e.root)throw $e("Cannot calculate relative path: objects '"+t+"' and '"+e+"' are not part of the same object tree");for(var n=An(t.path),r=An(e.path),i=0;i=n},"number greater than "+n,e),void 0!==r&&cn(t,function(t){return r>=t},"number lesser than "+r,e)}function fn(t,e,n){void 0===n&&(n=!0),cn(t,function(t){return"string"==typeof t},"string",e),n||cn(t,function(t){return""!==t},"not empty string",e)}function ln(t){"function"==typeof queueMicrotask?queueMicrotask(t):"function"==typeof setImmediate?setImmediate(t):setTimeout(t,1)}function dn(t){return vn(t.name,t)}function yn(t){return t}function vn(t,e){var n=function(){function r(t,e,r){t.$mst_middleware=n.$mst_middleware,ce(gr(gr({},s),{type:e,args:[r]}),t)}var i=ue(),o=se();if(!o)throw $e("a mst flow must always have a parent context");var a=pe(o);if(!a)throw $e("a mst flow must always have a parent action context");var s={name:t,id:i,tree:o.tree,context:o.context,parentId:o.id,allParentIds:p(o.allParentIds,[o.id]),rootId:o.rootId,parentEvent:o,parentActionEvent:a},u=arguments;return new Promise(function(t,i){function o(t){var e;try{r(function(t){e=p.next(t)},"flow_resume",t)}catch(n){return void ln(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function a(t){var e;try{r(function(t){e=p.throw(t)},"flow_resume_error",t)}catch(n){return void ln(function(){r(function(){i(n)},"flow_throw",n)})}c(e)}function c(e){if(e.done)return void ln(function(){r(function(e){t(e)},"flow_return",e.value)});if(!e.value||"function"!=typeof e.value.then)throw $e("Only promises can be yielded to `async`, got: "+e);return e.value.then(o,a)}var p,h=function(){p=e.apply(null,arguments),o(void 0)};h.$mst_middleware=n.$mst_middleware,ce(gr(gr({},s),{type:"flow_spawn",args:nn(u)}),h)})};return n}function bn(t){if(!("oldValue"in t))throw $e("Patches without `oldValue` field cannot be inversed");return[gn(t),mn(t)]}function gn(t){switch(t.op){case"add":return{op:"add",path:t.path,value:t.value};case"remove":return{op:"remove",path:t.path};case"replace":return{op:"replace",path:t.path,value:t.value}}}function mn(t){switch(t.op){case"add":return{op:"remove",path:t.path};case"remove":return{op:"add",path:t.path,value:t.oldValue};case"replace":return{op:"replace",path:t.path,value:t.oldValue}}}function wn(t){return"number"==typeof t}function _n(t){return wn(t)===!0?""+t:-1===t.indexOf("/")&&-1===t.indexOf("~")?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Pn(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Sn(t){if(0===t.length)return"";var e=function(t){return t.map(_n).join("/")};return"."===t[0]||".."===t[0]?e(t):"/"+e(t)}function An(t){var e=t.split("/").map(Pn),n=""===t||"."===t||".."===t||on(t,"/")||on(t,"./")||on(t,"../");if(!n)throw $e("a json path must be either rooted, empty or relative, but got '"+t+"'");return""===e[0]&&e.shift(),e}function In(t,e){for(var n,r,i=[],o=2;o",t)}function En(t){return K(t)&&(t.flags&vr.Map)>0}function jn(t){return q(t,1),new Kr(t.name+"[]",t)}function Vn(t,e,n,r,i){for(var o=!0,a=0;;a++){var s=a<=r.length-1,u=n[a],c=s?r[a]:void 0,p=""+i[a];if(Ne(c)&&(c=c.storedValue),!u&&!s)break;if(s)if(u)if(xn(u,c))n[a]=Nn(e,t,p,c,u);else{for(var h=void 0,f=a;f0}function kn(){return ke(this).toString()}function Rn(t){return Object.keys(t).reduce(function(t,e){var n,r,i;if(e in lr)throw $e("Hook '"+e+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(t,e);if("get"in o)throw $e("Getters are not supported as properties. Please use views instead");var a=o.value;if(null===a||void 0===a)throw $e("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(Ke(a))return Object.assign({},t,(n={},n[e]=Kn(Hn(a),a),n));if(a instanceof Br)return Object.assign({},t,(r={},r[e]=Kn(a,{}),r));if(a instanceof Kr)return Object.assign({},t,(i={},i[e]=Kn(a,[]),i));if(K(a))return t;throw $e(un()&&"function"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed a function. Did you forget to invoke it, or did you intend to declare a view / action?":un()&&"object"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed an object. Try passing another model type or a types.frozen.":"Invalid type definition for property '"+e+"', cannot infer a type from a value like '"+a+"' ("+typeof a+")")},t)}function zn(){for(var t=[],e=0;e0}function Hn(t){switch(typeof t){case"string":return ni;case"number":return ri;case"boolean":return oi;case"object":if(t instanceof Date)return ci}throw $e("Cannot determine primitive type from value "+t)}function Ln(t){return K(t)&&(t.flags&(vr.String|vr.Number|vr.Integer|vr.Boolean|vr.Date))>0}function Un(t){return cn(t,Ke,"primitive",1),new pi(t)}function $n(t){return K(t)&&(t.flags&vr.Literal)>0}function Wn(){for(var t=[],e=0;e0}function Jn(t,e){var n="string"==typeof t?e:t;un()&&n.forEach(function(t,e){fn(t,e+1)});var r=Yn.apply(void 0,p(n.map(function(t){return Un(""+t)})));return"string"==typeof t&&(r.name=t),r}function Yn(t){for(var e=[],n=1;n0}function Bn(t,e){if("function"!=typeof e&&xe(e))throw $e("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");q(t,1),un()&&"function"!=typeof e&&Ce(t,e)}function Kn(t,e,n){return Bn(t,e),new li(t,e,n?n:di)}function qn(t){return K(t)&&(t.flags&vr.Optional)>0}function Qn(t){return q(t,1),Yn(t,yi)}function Xn(t){return q(t,1),Yn(t,vi)}function tr(t,e){var n="string"==typeof t?t:"late("+t.toString()+")",r="string"==typeof t?e:t;if(un()&&("function"!=typeof r||0!==r.length))throw $e("Invalid late type, expected a function with zero arguments that returns a type, got: "+r);return new bi(n,r)}function er(t){return K(t)&&(t.flags&vr.Late)>0}function nr(t){return 0===arguments.length?mi:K(t)?new gi(t):Kn(mi,t)}function rr(t){return K(t)&&(t.flags&vr.Frozen)>0}function ir(t){switch(t){case lr.beforeDestroy:return"destroy";case lr.beforeDetach:return"detach";default:return void 0}}function or(t,e){if(q(t,1),un()&&2===arguments.length&&"string"==typeof arguments[1])throw $e("References with base path are no longer supported. Please remove the base path.");var n=e?e:void 0,r=e?e.onInvalidated:void 0;if(n&&(n.get||n.set)){if(un()&&(!n.get||!n.set))throw $e("reference options must either contain both a 'get' and a 'set' method or none of them");return new Ai(t,{get:n.get,set:n.set},r)}return new Si(t,r)}function ar(t){return(t.flags&vr.Reference)>0}function sr(t,e){var n=or(t,gr(gr({},e),{onInvalidated:function(t){t.removeRef()}}));return e&&e.acceptsUndefined===!1?n:Qn(n)}function ur(t){return K(t)&&(t.flags&vr.Identifier)>0}function cr(t){return""+t}function pr(t){return"string"==typeof t||"number"==typeof t}function hr(t,e){cn(t,pr,"string or number (identifier)",e)}function fr(t){return new ji(t)}Object.defineProperty(e,"__esModule",{value:!0});var lr,dr=t("node_modules/mobx/lib/index"),yr="warn";!function(t){t.afterCreate="afterCreate",t.afterAttach="afterAttach",t.afterCreationFinalization="afterCreationFinalization",t.beforeDetach="beforeDetach",t.beforeDestroy="beforeDestroy"}(lr||(lr={}));var vr,br=function(t,e){return(br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},gr=function(){return gr=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},gr.apply(this,arguments)},mr=function(){function t(t,e,n,r){this.type=t,this.environment=r,this._state=Ir.INITIALIZING,this.environment=r,this.baseSetParent(e,n)}return Object.defineProperty(t.prototype,"subpath",{get:function(){return this._subpath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(t){var e=this.isAlive;this._state=t;var n=this.isAlive;this.aliveAtom&&e!==n&&this.aliveAtom.reportChanged()},enumerable:!0,configurable:!0}),t.prototype.fireInternalHook=function(t){this._hookSubscribers&&this._hookSubscribers.emit(t,this,t)},t.prototype.registerHook=function(t,e){return this._hookSubscribers||(this._hookSubscribers=new $r),this._hookSubscribers.register(t,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.baseSetParent=function(t,e){this._parent=t,this._subpath=e,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(t.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!0,configurable:!0}),t.prototype.getEscapedPath=function(t){return t&&(this.pathAtom||(this.pathAtom=dr.createAtom("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?_n(this._subpath):""),this.parent.getEscapedPath(t)+"/"+this._escapedSubpath):""},Object.defineProperty(t.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAlive",{get:function(){return this.state!==Ir.DEAD},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDetaching",{get:function(){return this.state===Ir.DETACHING},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=dr.createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!0,configurable:!0}),t.prototype.baseFinalizeCreation=function(t){if(un()&&!this.isAlive)throw fail("assertion failed: cannot finalize the creation of a node that is already dead");if(this.state===Ir.CREATED){if(this.parent){if(this.parent.state!==Ir.FINALIZED)return;this.fireHook(lr.afterAttach)}this.state=Ir.FINALIZED,t&&t()}},t.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=Ir.DEAD},t.prototype.baseAboutToDie=function(){this.fireHook(lr.beforeDestroy)},t}(),wr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;try{a.storedValue=e.createNewInstance(o)}catch(s){throw a.state=Ir.DEAD,s}return a.state=Ir.CREATED,a.finalizeCreation(),a}return o(e,t),Object.defineProperty(e.prototype,"root",{get:function(){if(!this.parent)throw $e("This scalar node is not part of a tree");return this.parent.root},enumerable:!0,configurable:!0}),e.prototype.setParent=function(t,e){var n=this.parent!==t,r=this.subpath!==e;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: parent expected");if(n)throw $e("assertion failed: scalar nodes cannot change their parent")}this.environment=void 0,this.baseSetParent(this.parent,e)}},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"";return this.type.name+"@"+t+(this.isAlive?"":" [dead]")},e.prototype.die=function(){this.isAlive&&this.state!==Ir.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},e.prototype.aboutToDie=function(){this.baseAboutToDie()},e.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},e.prototype.fireHook=function(t){this.fireInternalHook(t)},s([dr.action],e.prototype,"die",null),e}(mr),_r=1,Pr={onError:function(t){throw t}},Sr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;if(a.nodeId=++_r,a.isProtectionEnabled=!0,a._autoUnbox=!0,a._isRunningAction=!1,a._hasSnapshotReaction=!1,a._observableInstanceState=0,a._cachedInitialSnapshotCreated=!1,a.unbox=a.unbox.bind(a),a._initialSnapshot=qe(o),a.identifierAttribute=e.identifierAttribute,n||(a.identifierCache=new kr),a._childNodes=e.initializeChildNodes(a,a._initialSnapshot),a.identifier=null,a.unnormalizedIdentifier=null,a.identifierAttribute&&a._initialSnapshot){var s=a._initialSnapshot[a.identifierAttribute];
-if(void 0===s){var u=a._childNodes[a.identifierAttribute];u&&(s=u.value)}if("string"!=typeof s&&"number"!=typeof s)throw $e("Instance identifier '"+a.identifierAttribute+"' for type '"+a.type.name+"' must be a string or a number");a.identifier=cr(s),a.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(a):a.identifierCache.addNodeToCache(a),a}return o(e,t),e.prototype.applyPatches=function(t){this.createObservableInstanceIfNeeded(),this._applyPatches(t)},e.prototype.applySnapshot=function(t){this.createObservableInstanceIfNeeded(),this._applySnapshot(t)},e.prototype.createObservableInstanceIfNeeded=function(){0===this._observableInstanceState&&this.createObservableInstance()},e.prototype.createObservableInstance=function(){var t,e;if(un()&&this.state!==Ir.INITIALIZING)throw $e("assertion failed: the creation of the observable instance must be done on the initializing phase");this._observableInstanceState=1;for(var n=[],r=this.parent;r&&0===r._observableInstanceState;)n.unshift(r),r=r.parent;try{for(var i=u(n),o=i.next();!o.done;o=i.next()){var a=o.value;a.createObservableInstanceIfNeeded()}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}var c=this.type;try{this.storedValue=c.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,c.finalizeNewInstance(this,this.storedValue)}catch(p){throw this.state=Ir.DEAD,p}finally{this._isRunningAction=!1}this._observableInstanceState=2,rn(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=Mr,this.state=Ir.CREATED,this.fireHook(lr.afterCreate),this.finalizeCreation()},Object.defineProperty(e.prototype,"root",{get:function(){var t=this.parent;return t?t.root:this},enumerable:!0,configurable:!0}),e.prototype.clearParent=function(){if(this.parent){this.fireHook(lr.beforeDetach);var t=this.state;this.state=Ir.DETACHING;var e=this.root,n=e.environment,r=e.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=r}finally{this.state=t}}},e.prototype.setParent=function(t,e){var n=t!==this.parent,r=e!==this.subpath;if(n||r){if(un()){if(!e)throw $e("assertion failed: subpath expected");if(!t)throw $e("assertion failed: new parent expected");if(this.parent&&n)throw $e("A node cannot exists twice in the state tree. Failed to add "+this+" to path '"+t.path+"/"+e+"'.");if(!this.parent&&t.root===this)throw $e("A state tree is not allowed to contain itself. Cannot assign "+this+" to path '"+t.path+"/"+e+"'");if(!this.parent&&this.environment&&this.environment!==t.root.environment)throw $e("A state tree cannot be made part of another state tree as long as their environments are different.")}n?(this.environment=void 0,t.root.identifierCache.mergeCache(this),this.baseSetParent(t,e),this.fireHook(lr.afterAttach)):r&&this.baseSetParent(this.parent,e)}},e.prototype.fireHook=function(t){var e=this;this.fireInternalHook(t);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[t];"function"==typeof n&&(dr._allowStateChangesInsideComputed?dr._allowStateChangesInsideComputed(function(){n.apply(e.storedValue)}):n.apply(this.storedValue))},Object.defineProperty(e.prototype,"snapshot",{get:function(){return qe(this.getSnapshot())},enumerable:!0,configurable:!0}),e.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},e.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},e.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var t=this.type,e=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=t.processInitialSnapshot(e,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},e.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},e.prototype.assertAlive=function(t){var e=r();if(!this.isAlive&&"ignore"!==e){var n=this._getAssertAliveError(t);switch(e){case"error":throw $e(n);case"warn":an(n)}}},e.prototype._getAssertAliveError=function(t){var e=this.getEscapedPath(!1)||this.pathUponDeath||"",n=t.subpath&&_n(t.subpath)||"",r=t.actionContext||se();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";if(r&&null!=r.name){var o=r&&r.context&&C(r.context)||e;i=o+"."+r.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+e+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},e.prototype.getChildNode=function(t){this.assertAlive({subpath:t}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,t):this._childNodes[t]}finally{this._autoUnbox=!0}},e.prototype.getChildren=function(){this.assertAlive(Mr),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):Le(this._childNodes)}finally{this._autoUnbox=!0}},e.prototype.getChildType=function(t){return this.type.getChildType(t)},Object.defineProperty(e.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!0,configurable:!0}),e.prototype.assertWritable=function(t){if(this.assertAlive(t),!this.isRunningAction()&&this.isProtected)throw $e("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},e.prototype.removeChild=function(t){this.type.removeChild(this,t)},e.prototype.unbox=function(t){return t?(this.assertAlive({subpath:t.subpath||t.subpathUponDeath}),this._autoUnbox?t.value:t):t},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"",e=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+t+e+(this.isAlive?"":" [dead]")},e.prototype.finalizeCreation=function(){var t=this;this.baseFinalizeCreation(function(){var e,n;try{for(var r=u(t.getChildren()),i=r.next();!i.done;i=r.next()){var o=i.value;o.finalizeCreation()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.fireInternalHook(lr.afterCreationFinalization)})},e.prototype.detach=function(){if(!this.isAlive)throw $e("Error while detaching, node is not alive.");this.clearParent()},e.prototype.preboot=function(){var t=this;this._applyPatches=he(this.storedValue,"@APPLY_PATCHES",function(e){e.forEach(function(e){var n=An(e.path),r=He(t,n.slice(0,-1));r.applyPatchLocally(n[n.length-1],e)})}),this._applySnapshot=he(this.storedValue,"@APPLY_SNAPSHOT",function(e){return e!==t.snapshot?t.type.applySnapshot(t,e):void 0}),tn(this.storedValue,"$treenode",this),tn(this.storedValue,"toJSON",ze)},e.prototype.die=function(){this.isAlive&&this.state!==Ir.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach(function(t){t.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},e.prototype.finalizeDeath=function(){this.getChildren().forEach(function(t){t.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var t=this.snapshot;this._snapshotUponDeath=t,this._internalEventsClearAll(),this.baseFinalizeDeath()},e.prototype.onSnapshot=function(t){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",t)},e.prototype.emitSnapshot=function(t){this._internalEventsEmit("snapshot",t)},e.prototype.onPatch=function(t){return this._internalEventsRegister("patch",t)},e.prototype.emitPatch=function(t,e){if(this._internalEventsHasSubscribers("patch")){var n=Ye({},t,{path:e.path.substr(this.path.length)+"/"+t.path}),r=c(bn(n),2),i=r[0],o=r[1];this._internalEventsEmit("patch",i,o)}this.parent&&this.parent.emitPatch(t,e)},e.prototype.hasDisposer=function(t){return this._internalEventsHas("dispose",t)},e.prototype.addDisposer=function(t){if(!this.hasDisposer(t))return void this._internalEventsRegister("dispose",t,!0);throw $e("cannot add a disposer when it is already registered for execution")},e.prototype.removeDisposer=function(t){if(!this._internalEventsHas("dispose",t))throw $e("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",t)},e.prototype.removeMiddleware=function(t){if(this.middlewares){var e=this.middlewares.indexOf(t);e>=0&&this.middlewares.splice(e,1)}},e.prototype.addMiddleWare=function(t,e){var n=this;void 0===e&&(e=!0);var r={handler:t,includeHooks:e};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},e.prototype.applyPatchLocally=function(t,e){this.assertWritable({subpath:t}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,t,e)},e.prototype._addSnapshotReaction=function(){var t=this;if(!this._hasSnapshotReaction){var e=dr.reaction(function(){return t.snapshot},function(e){return t.emitSnapshot(e)},Pr);this.addDisposer(e),this._hasSnapshotReaction=!0}},e.prototype._internalEventsHasSubscribers=function(t){return!!this._internalEvents&&this._internalEvents.hasSubscribers(t)},e.prototype._internalEventsRegister=function(t,e,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new $r),this._internalEvents.register(t,e,n)},e.prototype._internalEventsHas=function(t,e){return!!this._internalEvents&&this._internalEvents.has(t,e)},e.prototype._internalEventsUnregister=function(t,e){this._internalEvents&&this._internalEvents.unregister(t,e)},e.prototype._internalEventsEmit=function(t){for(var e,n=[],r=1;r0},enumerable:!0,configurable:!0}),t}(),Nr=1,xr=function(){function t(t,e){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],e.$mst_middleware&&this.middlewares.push(e.$mst_middleware);for(var n=t;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!0,configurable:!0}),t.prototype.getNextMiddleware=function(){var t=this.middlewares[this.arrayIndex];if(!t)return void 0;var e=t[this.inArrayIndex++];return e?e:(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())},t}(),Dr=0,kr=function(){function t(){this.cacheId=Dr++,this.cache=dr.observable.map(),this.lastCacheModificationPerId=dr.observable.map()}return t.prototype.updateLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t);this.lastCacheModificationPerId.set(t,void 0===e?1:e+1)},t.prototype.getLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t)||0;return this.cacheId+"-"+e},t.prototype.addNodeToCache=function(t,e){if(void 0===e&&(e=!0),t.identifierAttribute){var n=t.identifier;this.cache.has(n)||this.cache.set(n,dr.observable.array([],Hr));var r=this.cache.get(n);if(-1!==r.indexOf(t))throw $e("Already registered");r.push(t),e&&this.updateLastCacheModificationPerId(n)}},t.prototype.mergeCache=function(t){var e=this;dr.values(t.identifierCache.cache).forEach(function(t){return t.forEach(function(t){e.addNodeToCache(t)})})},t.prototype.notifyDied=function(t){if(t.identifierAttribute){var e=t.identifier,n=this.cache.get(e);n&&(n.remove(t),n.length||this.cache.delete(e),this.updateLastCacheModificationPerId(t.identifier))}},t.prototype.splitCache=function(e){var n=this,r=new t,i=e.path;return dr.entries(this.cache).forEach(function(t){for(var e=c(t,2),o=e[0],a=e[1],s=!1,u=a.length-1;u>=0;u--)0===a[u].path.indexOf(i)&&(r.addNodeToCache(a[u],!1),a.splice(u,1),s=!0);s&&n.updateLastCacheModificationPerId(o)}),r},t.prototype.has=function(t,e){var n=this.cache.get(e);return n?n.some(function(e){return t.isAssignableFrom(e.type)}):!1},t.prototype.resolve=function(t,e){var n=this.cache.get(e);if(!n)return null;var r=n.filter(function(e){return t.isAssignableFrom(e.type)});switch(r.length){case 0:return null;case 1:return r[0];default:throw $e("Cannot resolve a reference to type '"+t.name+"' with id: '"+e+"' unambigously, there are multiple candidates: "+r.map(function(t){return t.path}).join(", "))}},t}();!function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CREATED=1]="CREATED",t[t.FINALIZED=2]="FINALIZED",t[t.DETACHING=3]="DETACHING",t[t.DEAD=4]="DEAD"}(Ir||(Ir={}));var Rr=function(){return".."},zr="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.",Fr=Object.freeze([]),Mr=Object.freeze({}),Hr="string"==typeof dr.$mobx?{deep:!1}:{deep:!1,proxy:!1};Object.freeze(Hr);var Lr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Ur=function(){function t(){this.handlers=[]}return Object.defineProperty(t.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!0,configurable:!0}),t.prototype.register=function(t,e){var n=this;return void 0===e&&(e=!1),e?this.handlers.unshift(t):this.handlers.push(t),function(){n.unregister(t)}},t.prototype.has=function(t){return this.handlers.indexOf(t)>=0},t.prototype.unregister=function(t){var e=this.handlers.indexOf(t);e>=0&&this.handlers.splice(e,1)},t.prototype.clear=function(){this.handlers.length=0},t.prototype.emit=function(){for(var t=[],e=0;e0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return this._determineIdentifierMode(),je(this,t,e,n,r)},e.prototype._determineIdentifierMode=function(){if(this.identifierMode===Gr.UNKNOWN){var t=[];if(Cn(this._subType,t)){var e=void 0;t.forEach(function(t){if(t.identifierAttribute){if(e&&e!==t.identifierAttribute)throw $e("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");e=t.identifierAttribute}}),e?(this.identifierMode=Gr.YES,this.mapIdentifierAttribute=e):this.identifierMode=Gr.NO}}},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e={});var n=t.type._subType,r={};return Object.keys(e).forEach(function(i){r[i]=n.instantiate(t,i,void 0,e[i])}),r},e.prototype.createNewInstance=function(t){return new Zr(t)},e.prototype.finalizeNewInstance=function(t,e){dr._interceptReads(e,t.unbox);var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),dr.intercept(e,this.willChange),dr.observe(e,this.didChange)},e.prototype.describe=function(){return"Map"},e.prototype.getChildren=function(t){return dr.values(t.storedValue)},e.prototype.getChildNode=function(t,e){var n=t.storedValue.get(""+e);if(!n)throw $e("Not a child "+e);return n},e.prototype.willChange=function(t){var e=ke(t.object),n=t.name;e.assertWritable({subpath:n});var r=e.type,i=r._subType;switch(t.type){case"update":var o=t.newValue,a=t.object.get(n);if(o===a)return null;Ce(i,o),t.newValue=i.reconcile(e.getChildNode(n),t.newValue,e,n),r.processIdentifier(n,t.newValue);break;case"add":Ce(i,t.newValue),t.newValue=i.instantiate(e,n,void 0,t.newValue),r.processIdentifier(n,t.newValue)}return t},e.prototype.processIdentifier=function(t,e){if(this.identifierMode===Gr.YES&&e instanceof Sr){var n=e.identifier;if(n!==t)throw $e("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+t+"'")}},e.prototype.getSnapshot=function(t){var e={};return t.getChildren().forEach(function(t){e[t.subpath]=t.snapshot}),e},e.prototype.processInitialSnapshot=function(t){var e={};return Object.keys(t).forEach(function(n){e[n]=t[n].getSnapshot()}),e},e.prototype.didChange=function(t){var e=ke(t.object);switch(t.type){case"update":return void e.emitPatch({op:"replace",path:_n(t.name),value:t.newValue.snapshot,oldValue:t.oldValue?t.oldValue.snapshot:void 0},e);case"add":return void e.emitPatch({op:"add",path:_n(t.name),value:t.newValue.snapshot,oldValue:void 0},e);case"delete":var n=t.oldValue.snapshot;return t.oldValue.die(),void e.emitPatch({op:"remove",path:_n(t.name),oldValue:n},e)}},e.prototype.applyPatchLocally=function(t,e,n){var r=t.storedValue;switch(n.op){case"add":case"replace":r.set(e,n.value);break;case"remove":r.delete(e)}},e.prototype.applySnapshot=function(t,e){Ce(this,e);var n=t.storedValue,r={};if(Array.from(n.keys()).forEach(function(t){r[t]=!1}),e)for(var i in e)n.set(i,e[i]),r[""+i]=!0;Object.keys(r).forEach(function(t){r[t]===!1&&n.delete(t)})},e.prototype.getChildType=function(){return this._subType},e.prototype.isValidSnapshot=function(t,e){var n=this;return Ze(t)?Te(Object.keys(t).map(function(r){return n._subType.validate(t[r],Se(e,r,n._subType))})):Ie(e,t,"Value is not a plain object")},e.prototype.getDefaultSnapshot=function(){return Mr},e.prototype.removeChild=function(t,e){t.storedValue.delete(e)},s([dr.action],e.prototype,"applySnapshot",null),e}(Or),Kr=function(t){function e(e,n,r){void 0===r&&(r=[]);var i=t.call(this,e)||this;return i._subType=n,i.flags=vr.Array,i.hookInitializers=[],i.hookInitializers=r,i}return o(e,t),e.prototype.hooks=function(t){var n=this.hookInitializers.length>0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return je(this,t,e,n,r)},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e=[]);var n=t.type._subType,r={};return e.forEach(function(e,i){var o=""+i;r[o]=n.instantiate(t,o,void 0,e)}),r},e.prototype.createNewInstance=function(t){return dr.observable.array(Le(t),Hr)},e.prototype.finalizeNewInstance=function(t,e){dr._getAdministration(e).dehancer=t.unbox;var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(un()?en:tn)(e,t,i)})}),dr.intercept(e,this.willChange),dr.observe(e,this.didChange)},e.prototype.describe=function(){return this._subType.describe()+"[]"},e.prototype.getChildren=function(t){return t.storedValue.slice()},e.prototype.getChildNode=function(t,e){var n=Number(e);if(n=0;n--)e.emitPatch({op:"remove",path:""+(t.index+n),oldValue:t.removed[n].snapshot},e);for(var n=0;n0)return n;var r=xe(t)?ke(t).snapshot:t;return this._predicate(r)?Ae():Ie(e,t,this._message(t))},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,e,n,r)},e.prototype.getSubTypes=function(){return this._subtype},e}(Cr),fi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._types=n,i._eager=!0,r=gr({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){var t=vr.Union;return this._types.forEach(function(e){t|=e.flags}),t},enumerable:!0,configurable:!0}),e.prototype.isAssignableFrom=function(t){return this._types.some(function(e){return e.isAssignableFrom(t)})},e.prototype.describe=function(){return"("+this._types.map(function(t){return t.describe()}).join(" | ")+")"},e.prototype.instantiate=function(t,e,n,r){var i=this.determineType(r,void 0);if(!i)throw $e("No matching type for union "+this.describe());return i.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){var i=this.determineType(e,t.type);if(!i)throw $e("No matching type for union "+this.describe());return i.reconcile(t,e,n,r)},e.prototype.determineType=function(t,e){return this._dispatcher?this._dispatcher(t):e?e.is(t)?e:this._types.filter(function(t){return t!==e}).find(function(e){return e.is(t)}):this._types.find(function(e){return e.is(t)})},e.prototype.isValidSnapshot=function(t,e){if(this._dispatcher)return this._dispatcher(t).validate(t,e);for(var n=[],r=0,i=0;i=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(t,e,n,i)}return this._subtype.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,this.optionalValues.indexOf(e)<0&&this._subtype.is(e)?e:this.getDefaultInstanceOrSnapshot(),n,r)},e.prototype.getDefaultInstanceOrSnapshot=function(){var t="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Ce(this,t),t},e.prototype.isValidSnapshot=function(t,e){return this.optionalValues.indexOf(t)>=0?Ae():this._subtype.validate(t,e)},e.prototype.isAssignableFrom=function(t){return this._subtype.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this._subtype},e}(Cr),di=[void 0],yi=Kn(si,void 0),vi=Kn(ai,null),bi=function(t){function e(e,n){var r=t.call(this,e)||this;return r._definition=n,r}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|vr.Late},enumerable:!0,configurable:!0}),e.prototype.getSubType=function(t){if(!this._subType){var e=void 0;try{e=this._definition()}catch(n){if(!(n instanceof ReferenceError))throw n;e=void 0}if(t&&void 0===e)throw $e("Late type seems to be used too early, the definition (still) returns undefined");if(e){if(un()&&!K(e))throw $e("Failed to determine subtype, make sure types.late returns a type definition.");this._subType=e}}return this._subType},e.prototype.instantiate=function(t,e,n,r){return this.getSubType(!0).instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this.getSubType(!0).reconcile(t,e,n,r)},e.prototype.describe=function(){var t=this.getSubType(!1);return t?t.name:""},e.prototype.isValidSnapshot=function(t,e){var n=this.getSubType(!1);return n?n.validate(t,e):Ae()},e.prototype.isAssignableFrom=function(t){var e=this.getSubType(!1);return e?e.isAssignableFrom(t):!1},e.prototype.getSubTypes=function(){var t=this.getSubType(!1);return t?t:Tr},e}(Cr),gi=function(t){function e(e){var n=t.call(this,e?"frozen("+e.name+")":"frozen")||this;return n.subType=e,n.flags=vr.Frozen,n}return o(e,t),e.prototype.describe=function(){return""},e.prototype.instantiate=function(t,e,n,r){return Ve(this,t,e,n,Qe(r))},e.prototype.isValidSnapshot=function(t,e){return Xe(t)?this.subType?this.subType.validate(t,e):Ae():Ie(e,t,"Value is not serializable and cannot be frozen")},e}(Er),mi=new gi,wi=function(){function t(t,e){if(this.targetType=e,pr(t))this.identifier=t;else{if(!xe(t))throw $e("Can only store references to tree nodes or identifiers, got: '"+t+"'");var n=ke(t);if(!n.identifierAttribute)throw $e("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null===r||void 0===r)throw $e("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return t.prototype.updateResolvedReference=function(t){var e=cr(this.identifier),n=t.root,r=n.identifierCache.getLastCacheModificationPerId(e);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,o=n.identifierCache.resolve(i,e);if(!o)throw new _i("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+t.path+")");this.resolvedReference={node:o,lastCacheModification:r}}},Object.defineProperty(t.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!0,configurable:!0}),t}(),_i=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error),Pi=function(t){function e(e,n){var r=t.call(this,"reference("+e.name+")")||this;return r.targetType=e,r.onInvalidated=n,r.flags=vr.Reference,r}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isAssignableFrom=function(t){return this.targetType.isAssignableFrom(t)},e.prototype.isValidSnapshot=function(t,e){return pr(t)?Ae():Ie(e,t,"Value is not a valid identifier, which is a string or a number")},e.prototype.fireInvalidated=function(t,e,n,r){var i=e.parent;if(i&&i.isAlive){var o=i.storedValue;o&&this.onInvalidated({cause:t,parent:o,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(t){y(e.root.storedValue,{op:"replace",value:t,path:e.path})},removeRef:function(){Mn(i.type)?this.replaceRef(void 0):y(e.root.storedValue,{op:"remove",path:e.path})}})}},e.prototype.addTargetNodeWatcher=function(t,e){var n=this,r=this.getValue(t);if(!r)return void 0;var i=ke(r),o=function(r,o){var a=ir(o);a&&n.fireInvalidated(a,t,e,i)},a=i.registerHook(lr.beforeDetach,o),s=i.registerHook(lr.beforeDestroy,o);return function(){a(),s()}},e.prototype.watchTargetNodeForInvalidations=function(t,e,n){var r=this;if(this.onInvalidated){var i;t.registerHook(lr.beforeDestroy,function(){i&&i()});var o=function(o){i&&i();var a=t.parent,s=a&&a.storedValue;if(a&&a.isAlive&&s){var u=void 0;u=n?!!n.get(e,s):t.root.identifierCache.has(r.targetType,cr(e)),u?i=r.addTargetNodeWatcher(t,e):o||r.fireInvalidated("invalidSnapshotReference",t,e,null)}};t.state===Ir.FINALIZED?o(!0):(t.isRoot||t.root.registerHook(lr.afterCreationFinalization,function(){t.parent&&t.parent.createObservableInstanceIfNeeded()}),t.registerHook(lr.afterAttach,function(){o(!1)}))}},e}(Er),Si=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=t.storedValue;return e.resolvedValue},e.prototype.getSnapshot=function(t){var e=t.storedValue;return e.identifier},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?N(r):r,o=new wi(r,this.targetType),a=Ve(this,t,e,n,o);return o.node=a,this.watchTargetNodeForInvalidations(a,i,void 0),a},e.prototype.reconcile=function(t,e,n,r){if(!t.isDetaching&&t.type===this){var i=xe(e),o=t.storedValue;if(!i&&o.identifier===e||i&&o.resolvedValue===e)return t.setParent(n,r),t}var a=this.instantiate(n,r,void 0,e);return t.die(),a},e}(Pi),Ai=function(t){function e(e,n,r){var i=t.call(this,e,r)||this;return i.options=n,i}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=this.options.get(t.storedValue,t.parent?t.parent.storedValue:null);return e},e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.instantiate=function(t,e,n,r){var i=xe(r)?this.options.set(r,t?t.storedValue:null):r,o=Ve(this,t,e,n,i);return this.watchTargetNodeForInvalidations(o,i,this.options),o},e.prototype.reconcile=function(t,e,n,r){var i=xe(e)?this.options.set(e,t?t.storedValue:null):e;if(!t.isDetaching&&t.type===this&&t.storedValue===i)return t.setParent(n,r),t;var o=this.instantiate(n,r,void 0,i);return t.die(),o},e}(Pi),Ii=function(t){function e(e,n){var r=t.call(this,e)||this;return r.validType=n,r.flags=vr.Identifier,r}return o(e,t),e.prototype.instantiate=function(t,e,n,r){if(!(t&&t.type instanceof ti))throw $e("Identifier types can only be instantiated as direct child of a model type");return Ve(this,t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){if(t.storedValue!==e)throw $e("Tried to change identifier from '"+t.storedValue+"' to '"+e+"'. Changing identifiers is not allowed.");return t.setParent(n,r),t},e.prototype.isValidSnapshot=function(t,e){return typeof t!==this.validType?Ie(e,t,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ae()},e}(Er),Ti=function(t){function e(){var e=t.call(this,"identifier","string")||this;return e.flags=vr.Identifier,e}return o(e,t),e.prototype.describe=function(){return"identifier"},e}(Ii),Ci=function(t){function e(){return t.call(this,"identifierNumber","number")||this}return o(e,t),e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.describe=function(){return"identifierNumber"},e}(Ii),Oi=new Ti,Ei=new Ci,ji=function(t){function e(e){var n=t.call(this,e.name)||this;return n.options=e,n.flags=vr.Custom,n}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isValidSnapshot=function(t,e){if(this.options.isTargetType(t))return Ae();var n=this.options.getValidationMessage(t);return n?Ie(e,t,"Invalid value for type '"+this.name+"': "+n):Ae()},e.prototype.getSnapshot=function(t){return this.options.toSnapshot(t.storedValue)},e.prototype.instantiate=function(t,e,n,r){var i=this.options.isTargetType(r)?r:this.options.fromSnapshot(r,t&&t.root.environment);return Ve(this,t,e,n,i)},e.prototype.reconcile=function(t,e,n,r){var i=!this.options.isTargetType(e);if(!t.isDetaching){var o=t.type===this&&(i?e===t.snapshot:e===t.storedValue);if(o)return t.setParent(n,r),t}var a=i?this.options.fromSnapshot(e,n.root.environment):e,s=this.instantiate(n,r,void 0,a);return t.die(),s},e}(Er),Vi={enumeration:Jn,model:zn,compose:Fn,custom:fr,reference:or,safeReference:sr,union:Yn,optional:Kn,literal:Un,maybe:Qn,maybeNull:Xn,refinement:Wn,string:ni,"boolean":oi,number:ri,integer:ii,Date:ci,map:On,array:jn,frozen:nr,identifier:Oi,identifierNumber:Ei,late:tr,undefined:si,"null":ai,snapshotProcessor:Tn};e.addDisposer=L,e.addMiddleware=fe,e.applyAction=re,e.applyPatch=y,e.applySnapshot=w,e.cast=J,e.castFlowReturn=yn,e.castToReferenceSnapshot=Z,e.castToSnapshot=Y,e.clone=z,e.createActionTrackingMiddleware=Q,e.createActionTrackingMiddleware2=X,e.decorate=le,e.destroy=M,e.detach=F,e.escapeJsonPath=_n,e.flow=dn,e.getChildType=f,e.getEnv=U,e.getIdentifier=N,e.getLivelinessChecking=r,e.getMembers=G,e.getNodeId=B,e.getParent=S,e.getParentOfType=I,e.getPath=C,e.getPathParts=O,e.getPropertyMembers=W,e.getRelativePath=R,e.getRoot=T,e.getRunningActionContext=ye,e.getSnapshot=_,e.getType=h,e.hasParent=P,e.hasParentOfType=A,e.isActionContextChildOf=be,e.isActionContextThisOrChildOf=ge,e.isAlive=H,e.isArrayType=Dn,e.isFrozenType=rr,e.isIdentifierType=ur,e.isLateType=er,e.isLiteralType=$n,e.isMapType=En,e.isModelType=Mn,e.isOptionalType=qn,e.isPrimitiveType=Ln,e.isProtected=m,e.isReferenceType=ar,e.isRefinementType=Gn,e.isRoot=E,e.isStateTreeNode=xe,e.isType=K,e.isUnionType=Zn,e.isValidReference=D,e.joinJsonPath=Sn,e.onAction=ae,e.onPatch=l,e.onSnapshot=d,e.process=Ue,e.protect=b,e.recordActions=oe,e.recordPatches=v,e.resolveIdentifier=V,e.resolvePath=j,e.setLivelinessChecking=n,e.setLivelynessChecking=i,e.splitJsonPath=An,e.tryReference=x,e.tryResolve=k,e.typecheck=Oe,e.types=Vi,e.unescapeJsonPath=Pn,e.unprotect=g,e.walk=$});
+amis.define("node_modules/mobx-state-tree/dist/mobx-state-tree",function(t,e){"use strict";function n(t){gr=t}function r(){return gr}function i(t){n(t)}function o(t,e){function n(){this.constructor=t}wr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);io?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(3>o?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(a=2&n[0]?o["return"]:n[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,n[1])).done)return a;switch(o=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-->0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function f(){for(var t=[],e=0;e"}}function _e(t){return"function"==typeof t?"":De(t)?"<"+t+">":"`"+we(t)+"`"}function Pe(t){return t.length<280?t:t.substring(0,272)+"......"+t.substring(t.length-8)}function Se(t){var e=t.value,n=t.context[t.context.length-1].type,r=t.context.map(function(t){var e=t.path;return e}).filter(function(t){return t.length>0}).join("/"),i=r.length>0?'at path "/'+r+'" ':"",o=De(e)?"value of type "+Re(e).type.name+":":qe(e)?"value":"snapshot",a=n&&De(e)&&n.is(Re(e).snapshot);return""+i+o+" "+_e(e)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(t.message?" ("+t.message+")":"")+(n?Wn(n)||qe(e)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(a?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Ae(t,e,n){return t.concat([{path:e,type:n}])}function Ie(){return Lr}function Te(t,e,n){return[{context:t,value:e,message:n}]}function Ce(t){return t.reduce(function(t,e){return t.concat(e)},[])}function Oe(t,e){un()&&Ee(t,e)}function Ee(t,e){var n=t.validate(e,[{path:"",type:t}]);if(n.length>0)throw We(je(t,e,n))}function je(t,e,n){return 0===n.length?void 0:"Error while converting "+Pe(_e(e))+" to `"+t.name+"`:\n\n "+n.map(Se).join("\n ")}function Ve(t,e,n,r,i){var o=ze(i);if(o){if(o.parent)throw We("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(e?e.path:"")+"/"+n+"', but it lives already at '"+o.path+"'");return e&&o.setParent(e,n),o}return new Tr(t,e,n,r,i)}function Ne(t,e,n,r,i){return new Sr(t,e,n,r,i)}function xe(t){return t instanceof Sr||t instanceof Tr}function De(t){return!(!t||!t.$treenode)}function ke(t,e){pn(t,De,"mobx-state-tree node",e)}function Re(t){if(!De(t))throw We("Value "+t+" is no MST Node");return t.$treenode}function ze(t){return t&&t.$treenode||null}function Fe(){return Re(this).snapshot}function Me(t,e){if(t.root!==e.root)throw We("Cannot calculate relative path: objects '"+t+"' and '"+e+"' are not part of the same object tree");for(var n=Cn(t.path),r=Cn(e.path),i=0;i=n},"number greater than "+n,e),void 0!==r&&pn(t,function(t){return r>=t},"number lesser than "+r,e)}function ln(t,e,n){void 0===n&&(n=!0),pn(t,function(t){return"string"==typeof t},"string",e),n||pn(t,function(t){return""!==t},"not empty string",e)}function dn(t){"function"==typeof queueMicrotask?queueMicrotask(t):"function"==typeof setImmediate?setImmediate(t):setTimeout(t,1)}function yn(t){return mn(t.name,t)}function vn(t){return t}function bn(t){return function(){var e,n=[];for(e=0;e",t)}function Nn(t){return q(t)&&(t.flags&mr.Map)>0}function xn(t){return Q(t,1),new Xr(t.name+"[]",t)}function Dn(t,e,n,r,i){for(var o=!0,a=0;;a++){var s=a<=r.length-1,u=n[a],c=s?r[a]:void 0,p=""+i[a];if(xe(c)&&(c=c.storedValue),!u&&!s)break;if(s)if(u)if(Rn(u,c))n[a]=kn(e,t,p,c,u);else{for(var f=void 0,h=a;h0}function Fn(){return Re(this).toString()}function Mn(t){return Object.keys(t).reduce(function(t,e){var n,r,i;if(e in vr)throw We("Hook '"+e+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(t,e);if("get"in o)throw We("Getters are not supported as properties. Please use views instead");var a=o.value;if(null===a||void 0===a)throw We("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(qe(a))return Object.assign({},t,(n={},n[e]=Xn($n(a),a),n));if(a instanceof Qr)return Object.assign({},t,(r={},r[e]=Xn(a,{}),r));if(a instanceof Xr)return Object.assign({},t,(i={},i[e]=Xn(a,[]),i));if(q(a))return t;throw We(cn()&&"function"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed a function. Did you forget to invoke it, or did you intend to declare a view / action?":cn()&&"object"==typeof a?"Invalid type definition for property '"+e+"', it looks like you passed an object. Try passing another model type or a types.frozen.":"Invalid type definition for property '"+e+"', cannot infer a type from a value like '"+a+"' ("+typeof a+")")},t)}function Hn(){for(var t=[],e=0;e0}function $n(t){switch(typeof t){case"string":return oi;case"number":return ai;case"boolean":return ui;case"object":if(t instanceof Date)return hi}throw We("Cannot determine primitive type from value "+t)}function Wn(t){return q(t)&&(t.flags&(mr.String|mr.Number|mr.Integer|mr.Boolean|mr.Date))>0}function Gn(t){return pn(t,qe,"primitive",1),new li(t)}function Yn(t){return q(t)&&(t.flags&mr.Literal)>0}function Jn(){for(var t=[],e=0;e0}function Bn(t,e){var n="string"==typeof t?e:t;cn()&&n.forEach(function(t,e){ln(t,e+1)});var r=Kn.apply(void 0,f(n.map(function(t){return Gn(""+t)})));return"string"==typeof t&&(r.name=t),r}function Kn(t){for(var e=[],n=1;n0}function Qn(t,e){if("function"!=typeof e&&De(e))throw We("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");Q(t,1),cn()&&"function"!=typeof e&&Oe(t,e)}function Xn(t,e,n){return Qn(t,e),new vi(t,e,n?n:bi)}function tr(t){return q(t)&&(t.flags&mr.Optional)>0}function er(t){return Q(t,1),Kn(t,gi)}function nr(t){return Q(t,1),Kn(t,mi)}function rr(t,e){var n="string"==typeof t?t:"late("+t.toString()+")",r="string"==typeof t?e:t;if(cn()&&("function"!=typeof r||0!==r.length))throw We("Invalid late type, expected a function with zero arguments that returns a type, got: "+r);return new wi(n,r)}function ir(t){return q(t)&&(t.flags&mr.Late)>0}function or(t){return 0===arguments.length?Pi:q(t)?new _i(t):Xn(Pi,t)}function ar(t){return q(t)&&(t.flags&mr.Frozen)>0}function sr(t){switch(t){case vr.beforeDestroy:return"destroy";case vr.beforeDetach:return"detach";default:return void 0}}function ur(t,e){if(Q(t,1),cn()&&2===arguments.length&&"string"==typeof arguments[1])throw We("References with base path are no longer supported. Please remove the base path.");var n=e?e:void 0,r=e?e.onInvalidated:void 0;if(n&&(n.get||n.set)){if(cn()&&(!n.get||!n.set))throw We("reference options must either contain both a 'get' and a 'set' method or none of them");return new Ci(t,{get:n.get,set:n.set},r)}return new Ti(t,r)}function cr(t){return(t.flags&mr.Reference)>0}function pr(t,e){var n=ur(t,_r(_r({},e),{onInvalidated:function(t){t.removeRef()}}));return e&&e.acceptsUndefined===!1?n:er(n)}function fr(t){return q(t)&&(t.flags&mr.Identifier)>0}function hr(t){return""+t}function lr(t){return"string"==typeof t||"number"==typeof t}function dr(t,e){pn(t,lr,"string or number (identifier)",e)}function yr(t){return new xi(t)}Object.defineProperty(e,"__esModule",{value:!0});var vr,br=t("node_modules/mobx/lib/index"),gr="warn";!function(t){t.afterCreate="afterCreate",t.afterAttach="afterAttach",t.afterCreationFinalization="afterCreationFinalization",t.beforeDetach="beforeDetach",t.beforeDestroy="beforeDestroy"}(vr||(vr={}));var mr,wr=function(t,e){return(wr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},_r=function(){return _r=Object.assign||function(t){for(var e,n=1,r=arguments.length;r>n;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},_r.apply(this,arguments)},Pr=function(){function t(t,e,n,r){this.type=t,this.environment=r,this._state=Or.INITIALIZING,this.environment=r,this.baseSetParent(e,n)}return Object.defineProperty(t.prototype,"subpath",{get:function(){return this._subpath},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(t){var e=this.isAlive;this._state=t;var n=this.isAlive;this.aliveAtom&&e!==n&&this.aliveAtom.reportChanged()},enumerable:!1,configurable:!0}),t.prototype.fireInternalHook=function(t){this._hookSubscribers&&this._hookSubscribers.emit(t,this,t)},t.prototype.registerHook=function(t,e){return this._hookSubscribers||(this._hookSubscribers=new Yr),this._hookSubscribers.register(t,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),t.prototype.baseSetParent=function(t,e){this._parent=t,this._subpath=e,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(t.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!1,configurable:!0}),t.prototype.getEscapedPath=function(t){return t&&(this.pathAtom||(this.pathAtom=br.createAtom("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?An(this._subpath):""),this.parent.getEscapedPath(t)+"/"+this._escapedSubpath):""},Object.defineProperty(t.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAlive",{get:function(){return this.state!==Or.DEAD},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDetaching",{get:function(){return this.state===Or.DETACHING},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=br.createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!1,configurable:!0}),t.prototype.baseFinalizeCreation=function(t){if(cn()&&!this.isAlive)throw fail("assertion failed: cannot finalize the creation of a node that is already dead");if(this.state===Or.CREATED){if(this.parent){if(this.parent.state!==Or.FINALIZED)return;this.fireHook(vr.afterAttach)}this.state=Or.FINALIZED,t&&t()}},t.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=Or.DEAD},t.prototype.baseAboutToDie=function(){this.fireHook(vr.beforeDestroy)},t}(),Sr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;try{a.storedValue=e.createNewInstance(o)}catch(s){throw a.state=Or.DEAD,s}return a.state=Or.CREATED,a.finalizeCreation(),a}return o(e,t),Object.defineProperty(e.prototype,"root",{get:function(){if(!this.parent)throw We("This scalar node is not part of a tree");return this.parent.root},enumerable:!1,configurable:!0}),e.prototype.setParent=function(t,e){var n=this.parent!==t,r=this.subpath!==e;if(n||r){if(cn()){if(!e)throw We("assertion failed: subpath expected");
+if(!t)throw We("assertion failed: parent expected");if(n)throw We("assertion failed: scalar nodes cannot change their parent")}this.environment=void 0,this.baseSetParent(this.parent,e)}},Object.defineProperty(e.prototype,"snapshot",{get:function(){return Qe(this.getSnapshot())},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"";return this.type.name+"@"+t+(this.isAlive?"":" [dead]")},e.prototype.die=function(){this.isAlive&&this.state!==Or.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},e.prototype.aboutToDie=function(){this.baseAboutToDie()},e.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},e.prototype.fireHook=function(t){this.fireInternalHook(t)},s([br.action],e.prototype,"die",null),e}(Pr),Ar=1,Ir={onError:function(t){throw t}},Tr=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r,i)||this;if(a.nodeId=++Ar,a.isProtectionEnabled=!0,a._autoUnbox=!0,a._isRunningAction=!1,a._hasSnapshotReaction=!1,a._observableInstanceState=0,a._cachedInitialSnapshotCreated=!1,a.unbox=a.unbox.bind(a),a._initialSnapshot=Qe(o),a.identifierAttribute=e.identifierAttribute,n||(a.identifierCache=new Fr),a._childNodes=e.initializeChildNodes(a,a._initialSnapshot),a.identifier=null,a.unnormalizedIdentifier=null,a.identifierAttribute&&a._initialSnapshot){var s=a._initialSnapshot[a.identifierAttribute];if(void 0===s){var u=a._childNodes[a.identifierAttribute];u&&(s=u.value)}if("string"!=typeof s&&"number"!=typeof s)throw We("Instance identifier '"+a.identifierAttribute+"' for type '"+a.type.name+"' must be a string or a number");a.identifier=hr(s),a.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(a):a.identifierCache.addNodeToCache(a),a}return o(e,t),e.prototype.applyPatches=function(t){this.createObservableInstanceIfNeeded(),this._applyPatches(t)},e.prototype.applySnapshot=function(t){this.createObservableInstanceIfNeeded(),this._applySnapshot(t)},e.prototype.createObservableInstanceIfNeeded=function(){0===this._observableInstanceState&&this.createObservableInstance()},e.prototype.createObservableInstance=function(){var t,e;if(cn()&&this.state!==Or.INITIALIZING)throw We("assertion failed: the creation of the observable instance must be done on the initializing phase");this._observableInstanceState=1;for(var n=[],r=this.parent;r&&0===r._observableInstanceState;)n.unshift(r),r=r.parent;try{for(var i=c(n),o=i.next();!o.done;o=i.next()){var a=o.value;a.createObservableInstanceIfNeeded()}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}var u=this.type;try{this.storedValue=u.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,u.finalizeNewInstance(this,this.storedValue)}catch(p){throw this.state=Or.DEAD,p}finally{this._isRunningAction=!1}this._observableInstanceState=2,on(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=Ur,this.state=Or.CREATED,this.fireHook(vr.afterCreate),this.finalizeCreation()},Object.defineProperty(e.prototype,"root",{get:function(){var t=this.parent;return t?t.root:this},enumerable:!1,configurable:!0}),e.prototype.clearParent=function(){if(this.parent){this.fireHook(vr.beforeDetach);var t=this.state;this.state=Or.DETACHING;var e=this.root,n=e.environment,r=e.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=r}finally{this.state=t}}},e.prototype.setParent=function(t,e){var n=t!==this.parent,r=e!==this.subpath;if(n||r){if(cn()){if(!e)throw We("assertion failed: subpath expected");if(!t)throw We("assertion failed: new parent expected");if(this.parent&&n)throw We("A node cannot exists twice in the state tree. Failed to add "+this+" to path '"+t.path+"/"+e+"'.");if(!this.parent&&t.root===this)throw We("A state tree is not allowed to contain itself. Cannot assign "+this+" to path '"+t.path+"/"+e+"'");if(!this.parent&&this.environment&&this.environment!==t.root.environment)throw We("A state tree cannot be made part of another state tree as long as their environments are different.")}n?(this.environment=void 0,t.root.identifierCache.mergeCache(this),this.baseSetParent(t,e),this.fireHook(vr.afterAttach)):r&&this.baseSetParent(this.parent,e)}},e.prototype.fireHook=function(t){var e=this;this.fireInternalHook(t);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[t];"function"==typeof n&&(br._allowStateChangesInsideComputed?br._allowStateChangesInsideComputed(function(){n.apply(e.storedValue)}):n.apply(this.storedValue))},Object.defineProperty(e.prototype,"snapshot",{get:function(){return Qe(this.getSnapshot())},enumerable:!1,configurable:!0}),e.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},e.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},e.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var t=this.type,e=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=t.processInitialSnapshot(e,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},e.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},e.prototype.assertAlive=function(t){var e=r();if(!this.isAlive&&"ignore"!==e){var n=this._getAssertAliveError(t);switch(e){case"error":throw We(n);case"warn":sn(n)}}},e.prototype._getAssertAliveError=function(t){var e=this.getEscapedPath(!1)||this.pathUponDeath||"",n=t.subpath&&An(t.subpath)||"",r=t.actionContext||ue();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";if(r&&null!=r.name){var o=r&&r.context&&O(r.context)||e;i=o+"."+r.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+e+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},e.prototype.getChildNode=function(t){this.assertAlive({subpath:t}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,t):this._childNodes[t]}finally{this._autoUnbox=!0}},e.prototype.getChildren=function(){this.assertAlive(Ur),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):Ue(this._childNodes)}finally{this._autoUnbox=!0}},e.prototype.getChildType=function(t){return this.type.getChildType(t)},Object.defineProperty(e.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!1,configurable:!0}),e.prototype.assertWritable=function(t){if(this.assertAlive(t),!this.isRunningAction()&&this.isProtected)throw We("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},e.prototype.removeChild=function(t){this.type.removeChild(this,t)},e.prototype.unbox=function(t){return t?(this.assertAlive({subpath:t.subpath||t.subpathUponDeath}),this._autoUnbox?t.value:t):t},e.prototype.toString=function(){var t=(this.isAlive?this.path:this.pathUponDeath)||"",e=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+t+e+(this.isAlive?"":" [dead]")},e.prototype.finalizeCreation=function(){var t=this;this.baseFinalizeCreation(function(){var e,n;try{for(var r=c(t.getChildren()),i=r.next();!i.done;i=r.next()){var o=i.value;o.finalizeCreation()}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}t.fireInternalHook(vr.afterCreationFinalization)})},e.prototype.detach=function(){if(!this.isAlive)throw We("Error while detaching, node is not alive.");this.clearParent()},e.prototype.preboot=function(){var t=this;this._applyPatches=he(this.storedValue,"@APPLY_PATCHES",function(e){e.forEach(function(e){var n=Cn(e.path),r=Le(t,n.slice(0,-1));r.applyPatchLocally(n[n.length-1],e)})}),this._applySnapshot=he(this.storedValue,"@APPLY_SNAPSHOT",function(e){return e!==t.snapshot?t.type.applySnapshot(t,e):void 0}),en(this.storedValue,"$treenode",this),en(this.storedValue,"toJSON",Fe)},e.prototype.die=function(){this.isAlive&&this.state!==Or.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},e.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach(function(t){t.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},e.prototype.finalizeDeath=function(){this.getChildren().forEach(function(t){t.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var t=this.snapshot;this._snapshotUponDeath=t,this._internalEventsClearAll(),this.baseFinalizeDeath()},e.prototype.onSnapshot=function(t){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",t)},e.prototype.emitSnapshot=function(t){this._internalEventsEmit("snapshot",t)},e.prototype.onPatch=function(t){return this._internalEventsRegister("patch",t)},e.prototype.emitPatch=function(t,e){if(this._internalEventsHasSubscribers("patch")){var n=Ze({},t,{path:e.path.substr(this.path.length)+"/"+t.path}),r=p(wn(n),2),i=r[0],o=r[1];this._internalEventsEmit("patch",i,o)}this.parent&&this.parent.emitPatch(t,e)},e.prototype.hasDisposer=function(t){return this._internalEventsHas("dispose",t)},e.prototype.addDisposer=function(t){if(!this.hasDisposer(t))return void this._internalEventsRegister("dispose",t,!0);throw We("cannot add a disposer when it is already registered for execution")},e.prototype.removeDisposer=function(t){if(!this._internalEventsHas("dispose",t))throw We("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",t)},e.prototype.removeMiddleware=function(t){if(this.middlewares){var e=this.middlewares.indexOf(t);e>=0&&this.middlewares.splice(e,1)}},e.prototype.addMiddleWare=function(t,e){var n=this;void 0===e&&(e=!0);var r={handler:t,includeHooks:e};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},e.prototype.applyPatchLocally=function(t,e){this.assertWritable({subpath:t}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,t,e)},e.prototype._addSnapshotReaction=function(){var t=this;if(!this._hasSnapshotReaction){var e=br.reaction(function(){return t.snapshot},function(e){return t.emitSnapshot(e)},Ir);this.addDisposer(e),this._hasSnapshotReaction=!0}},e.prototype._internalEventsHasSubscribers=function(t){return!!this._internalEvents&&this._internalEvents.hasSubscribers(t)},e.prototype._internalEventsRegister=function(t,e,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new Yr),this._internalEvents.register(t,e,n)},e.prototype._internalEventsHas=function(t,e){return!!this._internalEvents&&this._internalEvents.has(t,e)},e.prototype._internalEventsUnregister=function(t,e){this._internalEvents&&this._internalEvents.unregister(t,e)},e.prototype._internalEventsEmit=function(t){for(var e,n=[],r=1;r0},enumerable:!1,configurable:!0}),t}(),kr=1,Rr=function(){function t(t,e){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],e.$mst_middleware&&this.middlewares.push(e.$mst_middleware);for(var n=t;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!1,configurable:!0}),t.prototype.getNextMiddleware=function(){var t=this.middlewares[this.arrayIndex];if(!t)return void 0;var e=t[this.inArrayIndex++];return e?e:(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())},t}(),zr=0,Fr=function(){function t(){this.cacheId=zr++,this.cache=br.observable.map(),this.lastCacheModificationPerId=br.observable.map()}return t.prototype.updateLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t);this.lastCacheModificationPerId.set(t,void 0===e?1:e+1)},t.prototype.getLastCacheModificationPerId=function(t){var e=this.lastCacheModificationPerId.get(t)||0;return this.cacheId+"-"+e},t.prototype.addNodeToCache=function(t,e){if(void 0===e&&(e=!0),t.identifierAttribute){var n=t.identifier;this.cache.has(n)||this.cache.set(n,br.observable.array([],$r));var r=this.cache.get(n);if(-1!==r.indexOf(t))throw We("Already registered");r.push(t),e&&this.updateLastCacheModificationPerId(n)}},t.prototype.mergeCache=function(t){var e=this;br.values(t.identifierCache.cache).forEach(function(t){return t.forEach(function(t){e.addNodeToCache(t)})})},t.prototype.notifyDied=function(t){if(t.identifierAttribute){var e=t.identifier,n=this.cache.get(e);n&&(n.remove(t),n.length||this.cache.delete(e),this.updateLastCacheModificationPerId(t.identifier))}},t.prototype.splitCache=function(e){var n=this,r=new t,i=e.path;return br.entries(this.cache).forEach(function(t){for(var e=p(t,2),o=e[0],a=e[1],s=!1,u=a.length-1;u>=0;u--)0===a[u].path.indexOf(i)&&(r.addNodeToCache(a[u],!1),a.splice(u,1),s=!0);s&&n.updateLastCacheModificationPerId(o)}),r},t.prototype.has=function(t,e){var n=this.cache.get(e);return n?n.some(function(e){return t.isAssignableFrom(e.type)}):!1},t.prototype.resolve=function(t,e){var n=this.cache.get(e);if(!n)return null;var r=n.filter(function(e){return t.isAssignableFrom(e.type)});switch(r.length){case 0:return null;case 1:return r[0];default:throw We("Cannot resolve a reference to type '"+t.name+"' with id: '"+e+"' unambigously, there are multiple candidates: "+r.map(function(t){return t.path}).join(", "))}},t}();!function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CREATED=1]="CREATED",t[t.FINALIZED=2]="FINALIZED",t[t.DETACHING=3]="DETACHING",t[t.DEAD=4]="DEAD"}(Or||(Or={}));var Mr=function(){return".."},Hr="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.",Lr=Object.freeze([]),Ur=Object.freeze({}),$r="string"==typeof br.$mobx?{deep:!1}:{deep:!1,proxy:!1};Object.freeze($r);var Wr=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Gr=function(){function t(){this.handlers=[]}return Object.defineProperty(t.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!1,configurable:!0}),t.prototype.register=function(t,e){var n=this;return void 0===e&&(e=!1),e?this.handlers.unshift(t):this.handlers.push(t),function(){n.unregister(t)}},t.prototype.has=function(t){return this.handlers.indexOf(t)>=0},t.prototype.unregister=function(t){var e=this.handlers.indexOf(t);e>=0&&this.handlers.splice(e,1)},t.prototype.clear=function(){this.handlers.length=0},t.prototype.emit=function(){for(var t=[],e=0;e0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return this._determineIdentifierMode(),Ve(this,t,e,n,r)},e.prototype._determineIdentifierMode=function(){if(this.identifierMode===Zr.UNKNOWN){var t=[];if(jn(this._subType,t)){var e=void 0;t.forEach(function(t){if(t.identifierAttribute){if(e&&e!==t.identifierAttribute)throw We("The objects in a map should all have the same identifier attribute, expected '"+e+"', but child of type '"+t.name+"' declared attribute '"+t.identifierAttribute+"' as identifier");e=t.identifierAttribute}}),e?(this.identifierMode=Zr.YES,this.mapIdentifierAttribute=e):this.identifierMode=Zr.NO}}},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e={});var n=t.type._subType,r={};return Object.keys(e).forEach(function(i){r[i]=n.instantiate(t,i,void 0,e[i])}),r},e.prototype.createNewInstance=function(t){return new qr(t)},e.prototype.finalizeNewInstance=function(t,e){br._interceptReads(e,t.unbox);var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(cn()?nn:en)(e,t,i)})}),br.intercept(e,this.willChange),br.observe(e,this.didChange)},e.prototype.describe=function(){return"Map"},e.prototype.getChildren=function(t){return br.values(t.storedValue)},e.prototype.getChildNode=function(t,e){var n=t.storedValue.get(""+e);if(!n)throw We("Not a child "+e);return n},e.prototype.willChange=function(t){var e=Re(t.object),n=t.name;e.assertWritable({subpath:n});var r=e.type,i=r._subType;switch(t.type){case"update":var o=t.newValue,a=t.object.get(n);if(o===a)return null;Oe(i,o),t.newValue=i.reconcile(e.getChildNode(n),t.newValue,e,n),r.processIdentifier(n,t.newValue);break;case"add":Oe(i,t.newValue),t.newValue=i.instantiate(e,n,void 0,t.newValue),r.processIdentifier(n,t.newValue)}return t},e.prototype.processIdentifier=function(t,e){if(this.identifierMode===Zr.YES&&e instanceof Tr){var n=e.identifier;if(n!==t)throw We("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+t+"'")}},e.prototype.getSnapshot=function(t){var e={};return t.getChildren().forEach(function(t){e[t.subpath]=t.snapshot}),e},e.prototype.processInitialSnapshot=function(t){var e={};return Object.keys(t).forEach(function(n){e[n]=t[n].getSnapshot()}),e},e.prototype.didChange=function(t){var e=Re(t.object);switch(t.type){case"update":return void e.emitPatch({op:"replace",path:An(t.name),value:t.newValue.snapshot,oldValue:t.oldValue?t.oldValue.snapshot:void 0},e);case"add":return void e.emitPatch({op:"add",path:An(t.name),value:t.newValue.snapshot,oldValue:void 0},e);case"delete":var n=t.oldValue.snapshot;return t.oldValue.die(),void e.emitPatch({op:"remove",path:An(t.name),oldValue:n},e)}},e.prototype.applyPatchLocally=function(t,e,n){var r=t.storedValue;switch(n.op){case"add":case"replace":r.set(e,n.value);break;case"remove":r.delete(e)}},e.prototype.applySnapshot=function(t,e){Oe(this,e);var n=t.storedValue,r={};if(Array.from(n.keys()).forEach(function(t){r[t]=!1}),e)for(var i in e)n.set(i,e[i]),r[""+i]=!0;Object.keys(r).forEach(function(t){r[t]===!1&&n.delete(t)})},e.prototype.getChildType=function(){return this._subType},e.prototype.isValidSnapshot=function(t,e){var n=this;return Be(t)?Ce(Object.keys(t).map(function(r){return n._subType.validate(t[r],Ae(e,r,n._subType))})):Te(e,t,"Value is not a plain object")},e.prototype.getDefaultSnapshot=function(){return Ur},e.prototype.removeChild=function(t,e){t.storedValue.delete(e)},s([br.action],e.prototype,"applySnapshot",null),e}(Vr),Xr=function(t){function e(e,n,r){void 0===r&&(r=[]);var i=t.call(this,e)||this;return i._subType=n,i.flags=mr.Array,i.hookInitializers=[],i.hookInitializers=r,i}return o(e,t),e.prototype.hooks=function(t){var n=this.hookInitializers.length>0?this.hookInitializers.concat(t):[t];return new e(this.name,this._subType,n)},e.prototype.instantiate=function(t,e,n,r){return Ve(this,t,e,n,r)},e.prototype.initializeChildNodes=function(t,e){void 0===e&&(e=[]);var n=t.type._subType,r={};return e.forEach(function(e,i){var o=""+i;r[o]=n.instantiate(t,o,void 0,e)}),r},e.prototype.createNewInstance=function(t){return br.observable.array(Ue(t),$r)},e.prototype.finalizeNewInstance=function(t,e){br._getAdministration(e).dehancer=t.unbox;var n=t.type;n.hookInitializers.forEach(function(t){var n=t(e);Object.keys(n).forEach(function(t){var r=n[t],i=he(e,t,r);(cn()?nn:en)(e,t,i)})}),br.intercept(e,this.willChange),br.observe(e,this.didChange)},e.prototype.describe=function(){return this._subType.describe()+"[]"},e.prototype.getChildren=function(t){return t.storedValue.slice()},e.prototype.getChildNode=function(t,e){var n=Number(e);if(n=0;n--)e.emitPatch({op:"remove",path:""+(t.index+n),oldValue:t.removed[n].snapshot},e);for(var n=0;n0)return n;var r=De(t)?Re(t).snapshot:t;return this._predicate(r)?Ie():Te(e,t,this._message(t))},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,e,n,r)},e.prototype.getSubTypes=function(){return this._subtype},e}(jr),yi=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._types=n,i._eager=!0,r=_r({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){var t=mr.Union;return this._types.forEach(function(e){t|=e.flags}),t},enumerable:!1,configurable:!0}),e.prototype.isAssignableFrom=function(t){return this._types.some(function(e){return e.isAssignableFrom(t)})},e.prototype.describe=function(){return"("+this._types.map(function(t){return t.describe()}).join(" | ")+")"},e.prototype.instantiate=function(t,e,n,r){var i=this.determineType(r,void 0);if(!i)throw We("No matching type for union "+this.describe());return i.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){var i=this.determineType(e,t.type);if(!i)throw We("No matching type for union "+this.describe());return i.reconcile(t,e,n,r)},e.prototype.determineType=function(t,e){return this._dispatcher?this._dispatcher(t):e?e.is(t)?e:this._types.filter(function(t){return t!==e}).find(function(e){return e.is(t)}):this._types.find(function(e){return e.is(t)})},e.prototype.isValidSnapshot=function(t,e){if(this._dispatcher)return this._dispatcher(t).validate(t,e);for(var n=[],r=0,i=0;i=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(t,e,n,i)}return this._subtype.instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this._subtype.reconcile(t,this.optionalValues.indexOf(e)<0&&this._subtype.is(e)?e:this.getDefaultInstanceOrSnapshot(),n,r)},e.prototype.getDefaultInstanceOrSnapshot=function(){var t="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Oe(this,t),t},e.prototype.isValidSnapshot=function(t,e){return this.optionalValues.indexOf(t)>=0?Ie():this._subtype.validate(t,e)},e.prototype.isAssignableFrom=function(t){return this._subtype.isAssignableFrom(t)},e.prototype.getSubTypes=function(){return this._subtype},e}(jr),bi=[void 0],gi=Xn(pi,void 0),mi=Xn(ci,null),wi=function(t){function e(e,n){var r=t.call(this,e)||this;return r._definition=n,r}return o(e,t),Object.defineProperty(e.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|mr.Late},enumerable:!1,configurable:!0}),e.prototype.getSubType=function(t){if(!this._subType){var e=void 0;try{e=this._definition()}catch(n){if(!(n instanceof ReferenceError))throw n;e=void 0}if(t&&void 0===e)throw We("Late type seems to be used too early, the definition (still) returns undefined");if(e){if(cn()&&!q(e))throw We("Failed to determine subtype, make sure types.late returns a type definition.");this._subType=e}}return this._subType},e.prototype.instantiate=function(t,e,n,r){return this.getSubType(!0).instantiate(t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){return this.getSubType(!0).reconcile(t,e,n,r)},e.prototype.describe=function(){var t=this.getSubType(!1);return t?t.name:""},e.prototype.isValidSnapshot=function(t,e){var n=this.getSubType(!1);return n?n.validate(t,e):Ie()},e.prototype.isAssignableFrom=function(t){var e=this.getSubType(!1);return e?e.isAssignableFrom(t):!1},e.prototype.getSubTypes=function(){var t=this.getSubType(!1);return t?t:Er},e}(jr),_i=function(t){function e(e){var n=t.call(this,e?"frozen("+e.name+")":"frozen")||this;return n.subType=e,n.flags=mr.Frozen,n}return o(e,t),e.prototype.describe=function(){return""},e.prototype.instantiate=function(t,e,n,r){return Ne(this,t,e,n,Xe(r))},e.prototype.isValidSnapshot=function(t,e){return tn(t)?this.subType?this.subType.validate(t,e):Ie():Te(e,t,"Value is not serializable and cannot be frozen")},e}(Nr),Pi=new _i,Si=function(){function t(t,e){if(this.targetType=e,lr(t))this.identifier=t;else{if(!De(t))throw We("Can only store references to tree nodes or identifiers, got: '"+t+"'");var n=Re(t);if(!n.identifierAttribute)throw We("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null===r||void 0===r)throw We("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return t.prototype.updateResolvedReference=function(t){var e=hr(this.identifier),n=t.root,r=n.identifierCache.getLastCacheModificationPerId(e);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,o=n.identifierCache.resolve(i,e);if(!o)throw new Ai("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+t.path+")");this.resolvedReference={node:o,lastCacheModification:r}}},Object.defineProperty(t.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!1,configurable:!0}),t}(),Ai=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return o(e,t),e}(Error),Ii=function(t){function e(e,n){var r=t.call(this,"reference("+e.name+")")||this;return r.targetType=e,r.onInvalidated=n,r.flags=mr.Reference,r}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isAssignableFrom=function(t){return this.targetType.isAssignableFrom(t)},e.prototype.isValidSnapshot=function(t,e){return lr(t)?Ie():Te(e,t,"Value is not a valid identifier, which is a string or a number")},e.prototype.fireInvalidated=function(t,e,n,r){var i=e.parent;if(i&&i.isAlive){var o=i.storedValue;o&&this.onInvalidated({cause:t,parent:o,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(t){v(e.root.storedValue,{op:"replace",value:t,path:e.path})},removeRef:function(){Un(i.type)?this.replaceRef(void 0):v(e.root.storedValue,{op:"remove",path:e.path})}})}},e.prototype.addTargetNodeWatcher=function(t,e){var n=this,r=this.getValue(t);if(!r)return void 0;var i=Re(r),o=function(r,o){var a=sr(o);a&&n.fireInvalidated(a,t,e,i)},a=i.registerHook(vr.beforeDetach,o),s=i.registerHook(vr.beforeDestroy,o);return function(){a(),s()}},e.prototype.watchTargetNodeForInvalidations=function(t,e,n){var r=this;if(this.onInvalidated){var i;t.registerHook(vr.beforeDestroy,function(){i&&i()});var o=function(o){i&&i();var a=t.parent,s=a&&a.storedValue;if(a&&a.isAlive&&s){var u=void 0;u=n?!!n.get(e,s):t.root.identifierCache.has(r.targetType,hr(e)),u?i=r.addTargetNodeWatcher(t,e):o||r.fireInvalidated("invalidSnapshotReference",t,e,null)}};t.state===Or.FINALIZED?o(!0):(t.isRoot||t.root.registerHook(vr.afterCreationFinalization,function(){t.parent&&t.parent.createObservableInstanceIfNeeded()}),t.registerHook(vr.afterAttach,function(){o(!1)}))}},e}(Nr),Ti=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=t.storedValue;return e.resolvedValue},e.prototype.getSnapshot=function(t){var e=t.storedValue;return e.identifier},e.prototype.instantiate=function(t,e,n,r){var i=De(r)?x(r):r,o=new Si(r,this.targetType),a=Ne(this,t,e,n,o);return o.node=a,this.watchTargetNodeForInvalidations(a,i,void 0),a},e.prototype.reconcile=function(t,e,n,r){if(!t.isDetaching&&t.type===this){var i=De(e),o=t.storedValue;if(!i&&o.identifier===e||i&&o.resolvedValue===e)return t.setParent(n,r),t}var a=this.instantiate(n,r,void 0,e);return t.die(),a},e}(Ii),Ci=function(t){function e(e,n,r){var i=t.call(this,e,r)||this;return i.options=n,i}return o(e,t),e.prototype.getValue=function(t){if(!t.isAlive)return void 0;var e=this.options.get(t.storedValue,t.parent?t.parent.storedValue:null);return e},e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.instantiate=function(t,e,n,r){var i=De(r)?this.options.set(r,t?t.storedValue:null):r,o=Ne(this,t,e,n,i);return this.watchTargetNodeForInvalidations(o,i,this.options),o},e.prototype.reconcile=function(t,e,n,r){var i=De(e)?this.options.set(e,t?t.storedValue:null):e;if(!t.isDetaching&&t.type===this&&t.storedValue===i)return t.setParent(n,r),t;var o=this.instantiate(n,r,void 0,i);return t.die(),o},e}(Ii),Oi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.validType=n,r.flags=mr.Identifier,r}return o(e,t),e.prototype.instantiate=function(t,e,n,r){if(!(t&&t.type instanceof ri))throw We("Identifier types can only be instantiated as direct child of a model type");return Ne(this,t,e,n,r)},e.prototype.reconcile=function(t,e,n,r){if(t.storedValue!==e)throw We("Tried to change identifier from '"+t.storedValue+"' to '"+e+"'. Changing identifiers is not allowed.");return t.setParent(n,r),t},e.prototype.isValidSnapshot=function(t,e){return typeof t!==this.validType?Te(e,t,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ie()},e}(Nr),Ei=function(t){function e(){var e=t.call(this,"identifier","string")||this;return e.flags=mr.Identifier,e}return o(e,t),e.prototype.describe=function(){return"identifier"},e}(Oi),ji=function(t){function e(){return t.call(this,"identifierNumber","number")||this}return o(e,t),e.prototype.getSnapshot=function(t){return t.storedValue},e.prototype.describe=function(){return"identifierNumber"},e}(Oi),Vi=new Ei,Ni=new ji,xi=function(t){function e(e){var n=t.call(this,e.name)||this;return n.options=e,n.flags=mr.Custom,n}return o(e,t),e.prototype.describe=function(){return this.name},e.prototype.isValidSnapshot=function(t,e){if(this.options.isTargetType(t))return Ie();var n=this.options.getValidationMessage(t);return n?Te(e,t,"Invalid value for type '"+this.name+"': "+n):Ie()},e.prototype.getSnapshot=function(t){return this.options.toSnapshot(t.storedValue)},e.prototype.instantiate=function(t,e,n,r){var i=this.options.isTargetType(r)?r:this.options.fromSnapshot(r,t&&t.root.environment);return Ne(this,t,e,n,i)},e.prototype.reconcile=function(t,e,n,r){var i=!this.options.isTargetType(e);if(!t.isDetaching){var o=t.type===this&&(i?e===t.snapshot:e===t.storedValue);if(o)return t.setParent(n,r),t}var a=i?this.options.fromSnapshot(e,n.root.environment):e,s=this.instantiate(n,r,void 0,a);return t.die(),s},e}(Nr),Di={enumeration:Bn,model:Hn,compose:Ln,custom:yr,reference:ur,safeReference:pr,union:Kn,optional:Xn,literal:Gn,maybe:er,maybeNull:nr,refinement:Jn,string:oi,"boolean":ui,number:ai,integer:si,Date:hi,map:Vn,array:xn,frozen:or,identifier:Vi,identifierNumber:Ni,late:rr,undefined:pi,"null":ci,snapshotProcessor:En};e.addDisposer=U,e.addMiddleware=le,e.applyAction=ie,e.applyPatch=v,e.applySnapshot=_,e.cast=J,e.castFlowReturn=vn,e.castToReferenceSnapshot=B,e.castToSnapshot=Z,e.clone=F,e.createActionTrackingMiddleware=X,e.createActionTrackingMiddleware2=te,e.decorate=de,e.destroy=H,e.detach=M,e.escapeJsonPath=An,e.flow=yn,e.getChildType=l,e.getEnv=$,e.getIdentifier=x,e.getLivelinessChecking=r,e.getMembers=Y,e.getNodeId=K,e.getParent=A,e.getParentOfType=T,e.getPath=O,e.getPathParts=E,e.getPropertyMembers=G,e.getRelativePath=z,e.getRoot=C,e.getRunningActionContext=ve,e.getSnapshot=P,e.getType=h,e.hasParent=S,e.hasParentOfType=I,e.isActionContextChildOf=ge,e.isActionContextThisOrChildOf=me,e.isAlive=L,e.isArrayType=zn,e.isFrozenType=ar,e.isIdentifierType=fr,e.isLateType=ir,e.isLiteralType=Yn,e.isMapType=Nn,e.isModelType=Un,e.isOptionalType=tr,e.isPrimitiveType=Wn,e.isProtected=w,e.isReferenceType=cr,e.isRefinementType=Zn,e.isRoot=j,e.isStateTreeNode=De,e.isType=q,e.isUnionType=qn,e.isValidReference=k,e.joinJsonPath=Tn,e.onAction=se,e.onPatch=d,e.onSnapshot=y,e.process=$e,e.protect=g,e.recordActions=ae,e.recordPatches=b,e.resolveIdentifier=N,e.resolvePath=V,e.setLivelinessChecking=n,e.setLivelynessChecking=i,e.splitJsonPath=Cn,e.toGenerator=gn,e.toGeneratorFunction=bn,e.tryReference=D,e.tryResolve=R,e.typecheck=Ee,e.types=Di,e.unescapeJsonPath=In,e.unprotect=m,e.walk=W});
;/*!node_modules/@babel/runtime/helpers/interopRequireDefault.js*/
amis.define("node_modules/@babel/runtime/helpers/interopRequireDefault",function(e,n,u){function t(e){return e&&e.__esModule?e:{"default":e}}u.exports=t});
;/*!node_modules/dom-helpers/class/hasClass.js*/
@@ -1635,13 +1635,13 @@ amis.define("node_modules/mobx-react-lite/dist/index",function(e,t,i){"use stric
;/*!node_modules/mobx-react/dist/mobxreact.cjs.production.min.js*/
amis.define('node_modules/mobx-react/dist/mobxreact.cjs.production.min', function(require, exports, module, define) {
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,r=require("node_modules/mobx/lib/index"),t=require("node_modules/react/index"),n=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,o=require("node_modules/mobx-react-lite/dist/index"),i=0,a={};function s(e){return a[e]||(a[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var r="__$mobx-react "+e+" ("+i+")";return i++,r}(e)),a[e]}function c(e,r){if(u(e,r))return!0;if("object"!=typeof e||null===e||"object"!=typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o2?n-2:0),i=2;i",a=e.bind(this),s=!1,c=new r.Reaction(i+".render()",(function(){if(!s&&(s=!0,!0!==n[h])){var e=!0;try{l(n,g,!0),n[O]||t.Component.prototype.forceUpdate.call(n),e=!1}finally{l(n,g,!1),e&&c.dispose()}}}));function u(){s=!1;var e=void 0,t=void 0;if(c.track((function(){try{t=r._allowStateChanges(!1,a)}catch(r){e=r}})),e)throw e;return t}return c.reactComponent=this,u[m]=c,this.render=u,u.call(this)}function x(e,r){return o.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!c(this.props,e)}function P(e,t){var n=s("reactProp_"+t+"_valueHolder"),o=s("reactProp_"+t+"_atomHolder");function i(){return this[o]||l(this,o,r.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=r._allowStateReadsStart(!0)),i.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&r._allowStateReadsEnd(e),this[n]},set:function(e){this[g]||c(this[n],e)?l(this,n,e):(l(this,n,e),l(this,O,!0),i.call(this).reportChanged(),l(this,O,!1))}})}var S="function"==typeof Symbol&&Symbol.for,R=S?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,E=S?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;function C(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),E&&e.$$typeof===E)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(R&&e.$$typeof===R){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(o.Observer,null,(function(){return r.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?w(e):o.observer(e)}function A(){return(A=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,["children"]),o=n.useContext(k),i=n.useRef(A({},o,{},t));return n.createElement(k.Provider,{value:i.current},r)}function _(e,r,t,o){var i,a,s,c=n.forwardRef((function(t,o){var i=A({},t),a=n.useContext(k);return Object.assign(i,e(a||{},i)||{}),o&&(i.ref=o),n.createElement(r,i)}));return o&&(c=C(c)),c.isMobxInjector=!0,i=r,a=c,s=Object.getOwnPropertyNames(Object.getPrototypeOf(i)),Object.getOwnPropertyNames(i).forEach((function(e){f[e]||-1!==s.indexOf(e)||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(i,e))})),c.wrappedComponent=r,c.displayName=function(e,r){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r?"inject-with-"+r+"("+t+")":"inject("+t+")"}(r,t),c}function M(e){return function(r,t){return e.forEach((function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}})),t}}U.displayName="MobXProvider";var $=s("disposeOnUnmountProto"),T=s("disposeOnUnmountInst");function q(){var e=this;[].concat(this[$]||[],this[T]||[]).forEach((function(r){var t="string"==typeof r?e[r]:r;null!=t&&(Array.isArray(t)?t.map((function(e){return e()})):t())}))}function D(e){function t(t,n,o,i,a,s){for(var c=arguments.length,u=new Array(c>6?c-6:0),f=6;f>",s=s||o,null==n[o]?t?new Error("The "+a+" `"+s+"` is marked as required in `"+i+"`, but its value is `"+(null===n[o]?"null":"undefined")+"`."):null:e.apply(void 0,[n,o,i,a,s].concat(u))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function N(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function B(e,t){return D((function(n,o,i,a,s){return r.untracked((function(){if(e&&N(n[o])===t.toLowerCase())return null;var a;switch(t){case"Array":a=r.isObservableArray;break;case"Object":a=r.isObservableObject;break;case"Map":a=r.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[o];if(!a(c)){var u=function(e){var r=N(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(c),f=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+u+"` supplied to `"+i+"`, expected `mobx.Observable"+t+"`"+f+".")}return null}))}))}function I(e,t){return D((function(n,o,i,a,s){for(var c=arguments.length,u=new Array(c>5?c-5:0),f=5;f2?n-2:0),a=2;a"}function P(e){var n=this;if(!0===o.isUsingStaticRendering())return e.call(this);l(this,g,!1),l(this,w,!1);var a=x(this),i=e.bind(this),s=!1,c=new r.Reaction(a+".render()",(function(){if(!s&&(s=!0,!0!==n[O])){var e=!0;try{l(n,w,!0),n[g]||t.Component.prototype.forceUpdate.call(n),e=!1}finally{l(n,w,!1),e&&c.dispose()}}}));function u(){s=!1;var e=void 0,t=void 0;if(c.track((function(){try{t=r._allowStateChanges(!1,i)}catch(r){e=r}})),e)throw e;return t}return c.reactComponent=this,u[m]=c,this.render=u,u.call(this)}function R(e,r){return o.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r||!c(this.props,e)}function S(e,t){var n=s("reactProp_"+t+"_valueHolder"),o=s("reactProp_"+t+"_atomHolder");function a(){return this[o]||l(this,o,r.createAtom("reactive "+t)),this[o]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r._allowStateReadsStart&&r._allowStateReadsEnd&&(e=r._allowStateReadsStart(!0)),a.call(this).reportObserved(),r._allowStateReadsStart&&r._allowStateReadsEnd&&r._allowStateReadsEnd(e),this[n]},set:function(e){this[w]||c(this[n],e)?l(this,n,e):(l(this,n,e),l(this,g,!0),a.call(this).reportChanged(),l(this,g,!1))}})}var C="function"==typeof Symbol&&Symbol.for,E=C?Symbol.for("react.forward_ref"):"function"==typeof t.forwardRef&&t.forwardRef((function(e){return null})).$$typeof,A=C?Symbol.for("react.memo"):"function"==typeof t.memo&&t.memo((function(e){return null})).$$typeof;function k(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),A&&e.$$typeof===A)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(E&&e.$$typeof===E){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return t.forwardRef((function(){var e=arguments;return t.createElement(o.Observer,null,(function(){return r.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(t.Component,e)?j(e):o.observer(e)}function U(){return(U=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}(e,["children"]),o=n.useContext(_),a=n.useRef(U({},o,{},t));return n.createElement(_.Provider,{value:a.current},r)}function T(e,r,t,o){var a,i,s,c=n.forwardRef((function(t,o){var a=U({},t),i=n.useContext(_);return Object.assign(a,e(i||{},a)||{}),o&&(a.ref=o),n.createElement(r,a)}));return o&&(c=k(c)),c.isMobxInjector=!0,a=r,i=c,s=Object.getOwnPropertyNames(Object.getPrototypeOf(a)),Object.getOwnPropertyNames(a).forEach((function(e){f[e]||-1!==s.indexOf(e)||Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(a,e))})),c.wrappedComponent=r,c.displayName=function(e,r){var t=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return r?"inject-with-"+r+"("+t+")":"inject("+t+")"}(r,t),c}function $(e){return function(r,t){return e.forEach((function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}})),t}}M.displayName="MobXProvider";var q=s("disposeOnUnmountProto"),D=s("disposeOnUnmountInst");function N(){var e=this;[].concat(this[q]||[],this[D]||[]).forEach((function(r){var t="string"==typeof r?e[r]:r;null!=t&&(Array.isArray(t)?t.map((function(e){return e()})):t())}))}function B(e){function t(t,n,o,a,i,s){for(var c=arguments.length,u=new Array(c>6?c-6:0),f=6;f>",s=s||o,null==n[o]?t?new Error("The "+i+" `"+s+"` is marked as required in `"+a+"`, but its value is `"+(null===n[o]?"null":"undefined")+"`."):null:e.apply(void 0,[n,o,a,i,s].concat(u))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function I(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,r){return"symbol"===e||"Symbol"===r["@@toStringTag"]||"function"==typeof Symbol&&r instanceof Symbol}(r,e)?"symbol":r}function X(e,t){return B((function(n,o,a,i,s){return r.untracked((function(){if(e&&I(n[o])===t.toLowerCase())return null;var i;switch(t){case"Array":i=r.isObservableArray;break;case"Object":i=r.isObservableObject;break;case"Map":i=r.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[o];if(!i(c)){var u=function(e){var r=I(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}(c),f=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+s+"` of type `"+u+"` supplied to `"+a+"`, expected `mobx.Observable"+t+"`"+f+".")}return null}))}))}function F(e,t){return B((function(n,o,a,i,s){for(var c=arguments.length,u=new Array(c>5?c-5:0),f=5;f2?n-2:0),i=2;n>i;i++)o[i-2]=arguments[i];r.locks++;try{var a;return void 0!==e&&null!==e&&(a=e.apply(this,o)),a}finally{r.locks--,0===r.locks&&r.methods.forEach(function(e){e.apply(t,o)})}}function l(e,r){var t=function(){for(var t=arguments.length,n=new Array(t),o=0;t>o;o++)n[o]=arguments[o];f.call.apply(f,[this,e,r].concat(n))};return t}function p(e,r,t){var n=c(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[L]){var i=e[r],a=d(e,r,o?o.enumerable:void 0,n,i);Object.defineProperty(e,r,a)}}function d(e,r,t,n,o){var i,a=l(o,n);return i={},i[L]=!0,i.get=function(){return a},i.set=function(o){if(this===e)a=l(o,n);else{var i=d(this,r,t,n,o);Object.defineProperty(this,r,i)}},i.configurable=!0,i.enumerable=t,i}function b(e){var r=e.prototype;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==D.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==v)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=v;h(r,"props"),h(r,"state");var t=r.render;return r.render=function(){return y.call(this,t)},p(r,"componentWillUnmount",function(){if(B.isUsingStaticRendering()!==!0){if(this.render[W])this.render[W].dispose();else{var e=m(this);console.warn("The render function for an observer component ("+e+") was modified after MobX attached. This is not supported, since the new function can't be triggered by MobX.")}this[H]=!0}}),e}function m(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function y(e){function r(){i=!1;var e=void 0,r=void 0;if(a.track(function(){try{r=$._allowStateChanges(!1,o)}catch(t){e=t}}),e)throw e;return r}var t=this;if(B.isUsingStaticRendering()===!0)return e.call(this);u(this,Y,!1),u(this,z,!1);var n=m(this),o=e.bind(this),i=!1,a=new $.Reaction(n+".render()",function(){if(!i&&(i=!0,t[H]!==!0)){var e=!0;try{u(t,z,!0),t[Y]||D.Component.prototype.forceUpdate.call(t),e=!1}finally{u(t,z,!1),e&&a.dispose()}}});return a.reactComponent=this,r[W]=a,this.render=r,r.call(this)}function v(e,r){return B.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r?!0:!i(this.props,e)}function h(e,r){function t(){return this[a]||u(this,a,$.createAtom("reactive "+r)),this[a]}var n=o("reactProp_"+r+"_valueHolder"),a=o("reactProp_"+r+"_atomHolder");Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var e=!1;return $._allowStateReadsStart&&$._allowStateReadsEnd&&(e=$._allowStateReadsStart(!0)),t.call(this).reportObserved(),$._allowStateReadsStart&&$._allowStateReadsEnd&&$._allowStateReadsEnd(e),this[n]},set:function(e){this[z]||i(this[n],e)?u(this,n,e):(u(this,n,e),u(this,Y,!0),t.call(this).reportChanged(),u(this,Y,!1))}})}function g(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),K&&e.$$typeof===K)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(J&&e.$$typeof===J){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return D.forwardRef(function(){var e=arguments;return D.createElement(B.Observer,null,function(){return r.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(D.Component,e)?b(e):B.observer(e)}function O(){return O=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function j(e){var r=e.children,t=w(e,["children"]),n=N.useContext(Q),o=N.useRef(O({},n,{},t)),a=o.current,s=O({},a,{},t);if(!i(a,s))throw new Error("MobX Provider: The set of provided stores has changed. See: https://github.com/mobxjs/mobx-react#the-set-of-provided-stores-has-changed-error.");return N.createElement(Q.Provider,{value:a},r)}function P(e,r,t,n){var o=N.forwardRef(function(t,n){var o=O({},t),i=N.useContext(Q);return Object.assign(o,e(i||{},o)||{}),n&&(o.ref=n),N.createElement(r,o)});return n&&(o=g(o)),o.isMobxInjector=!0,s(r,o),o.wrappedComponent=r,o.displayName=x(r,t),o}function x(e,r){var t,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t=r?"inject-with-"+r+"("+n+")":"inject("+n+")"}function S(e){return function(r,t){return e.forEach(function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}}),t}}function R(){for(var e=arguments.length,r=new Array(e),t=0;e>t;t++)r[t]=arguments[t];if("function"==typeof arguments[0]){var n=arguments[0];return function(e){return P(n,e,n.name,!0)}}return function(e){return P(S(r),e,r.join("-"),!1)}}function E(){var e=this;[].concat(this[V]||[],this[Z]||[]).forEach(function(r){var t="string"==typeof r?e[r]:r;void 0!==t&&null!==t&&(Array.isArray(t)?t.map(function(e){return e()}):t())})}function C(e,r){if(Array.isArray(r))return r.map(function(r){return C(e,r)});var t=Object.getPrototypeOf(e).constructor||Object.getPrototypeOf(e.constructor),n=Object.getPrototypeOf(e.constructor);if(t!==N.Component&&t!==N.PureComponent&&n!==N.Component&&n!==N.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof r&&"function"!=typeof r&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var o="string"==typeof r,i=!!e[V]||!!e[Z],a=o?e[V]||(e[V]=[]):e[Z]||(e[Z]=[]);return a.push(r),i||p(e,"componentWillUnmount",E),"string"!=typeof r?r:void 0}function A(e){function r(r,t,n,o,i,a){for(var s=arguments.length,u=new Array(s>6?s-6:0),c=6;s>c;c++)u[c-6]=arguments[c];return $.untracked(function(){if(o=o||"<>",a=a||n,null==t[n]){if(r){var s=null===t[n]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[t,n,o,i,a].concat(u))})}var t=r.bind(null,!1);return t.isRequired=r.bind(null,!0),t}function _(e,r){return"symbol"===e?!0:"Symbol"===r["@@toStringTag"]?!0:"function"==typeof Symbol&&r instanceof Symbol?!0:!1}function k(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(r,e)?"symbol":r}function U(e){var r=k(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function M(e,r){return A(function(t,n,o,i,a){return $.untracked(function(){if(e&&k(t[n])===r.toLowerCase())return null;var i;switch(r){case"Array":i=$.isObservableArray;break;case"Object":i=$.isObservableObject;break;case"Map":i=$.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var s=t[n];if(!i(s)){var u=U(s),c=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+c+".")}return null})})}function T(e,r){return A(function(t,n,o,i,a){for(var s=arguments.length,u=new Array(s>5?s-5:0),c=5;s>c;c++)u[c-5]=arguments[c];return $.untracked(function(){if("function"!=typeof r)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var s=M(e,"Array")(t,n,o,i,a);if(s instanceof Error)return s;for(var c=t[n],f=0;f2?n-2:0),a=2;n>a;a++)o[a-2]=arguments[a];r.locks++;try{var i;return void 0!==e&&null!==e&&(i=e.apply(this,o)),i}finally{r.locks--,0===r.locks&&r.methods.forEach(function(e){e.apply(t,o)})}}function l(e,r){var t=function(){for(var t=arguments.length,n=new Array(t),o=0;t>o;o++)n[o]=arguments[o];f.call.apply(f,[this,e,r].concat(n))};return t}function p(e,r,t){var n=u(e,r);n.methods.indexOf(t)<0&&n.methods.push(t);var o=Object.getOwnPropertyDescriptor(e,r);if(!o||!o[L]){var a=e[r],i=d(e,r,o?o.enumerable:void 0,n,a);Object.defineProperty(e,r,i)}}function d(e,r,t,n,o){var a,i=l(o,n);return a={},a[L]=!0,a.get=function(){return i},a.set=function(o){if(this===e)i=l(o,n);else{var a=d(this,r,t,n,o);Object.defineProperty(this,r,a)}},a.configurable=!0,a.enumerable=t,a}function b(e){var r=e.prototype;if(e[H]){var t=m(r);console.warn("The provided component class ("+t+") \n has already been declared as an observer component.")}else e[H]=!0;if(r.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==D.PureComponent)if(r.shouldComponentUpdate){if(r.shouldComponentUpdate!==v)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else r.shouldComponentUpdate=v;h(r,"props"),h(r,"state");var n=r.render;return r.render=function(){return y.call(this,n)},p(r,"componentWillUnmount",function(){var e;if(B.isUsingStaticRendering()!==!0&&(null===(e=this.render[W])||void 0===e?void 0:e.dispose(),this[Y]=!0,!this.render[W])){var r=m(this);console.warn("The reactive render of an observer class component ("+r+") \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.")}}),e}function m(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||""}function y(e){function r(){a=!1;var e=void 0,r=void 0;if(i.track(function(){try{r=$._allowStateChanges(!1,o)}catch(t){e=t}}),e)throw e;return r}var t=this;if(B.isUsingStaticRendering()===!0)return e.call(this);c(this,z,!1),c(this,G,!1);var n=m(this),o=e.bind(this),a=!1,i=new $.Reaction(n+".render()",function(){if(!a&&(a=!0,t[Y]!==!0)){var e=!0;try{c(t,G,!0),t[z]||D.Component.prototype.forceUpdate.call(t),e=!1}finally{c(t,G,!1),e&&i.dispose()}}});return i.reactComponent=this,r[W]=i,this.render=r,r.call(this)}function v(e,r){return B.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==r?!0:!a(this.props,e)}function h(e,r){function t(){return this[i]||c(this,i,$.createAtom("reactive "+r)),this[i]}var n=o("reactProp_"+r+"_valueHolder"),i=o("reactProp_"+r+"_atomHolder");Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:function(){var e=!1;return $._allowStateReadsStart&&$._allowStateReadsEnd&&(e=$._allowStateReadsStart(!0)),t.call(this).reportObserved(),$._allowStateReadsStart&&$._allowStateReadsEnd&&$._allowStateReadsEnd(e),this[n]},set:function(e){this[G]||a(this[n],e)?c(this,n,e):(c(this,n,e),c(this,z,!0),t.call(this).reportChanged(),c(this,z,!1))}})}function g(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Q&&e.$$typeof===Q)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(K&&e.$$typeof===K){var r=e.render;if("function"!=typeof r)throw new Error("render property of ForwardRef was not a function");return D.forwardRef(function(){var e=arguments;return D.createElement(B.Observer,null,function(){return r.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(D.Component,e)?b(e):B.observer(e)}function O(){return O=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function j(e){var r=e.children,t=w(e,["children"]),n=N.useContext(V),o=N.useRef(O({},n,{},t)),i=o.current,s=O({},i,{},t);if(!a(i,s))throw new Error("MobX Provider: The set of provided stores has changed. See: https://github.com/mobxjs/mobx-react#the-set-of-provided-stores-has-changed-error.");return N.createElement(V.Provider,{value:i},r)}function P(e,r,t,n){var o=N.forwardRef(function(t,n){var o=O({},t),a=N.useContext(V);return Object.assign(o,e(a||{},o)||{}),n&&(o.ref=n),N.createElement(r,o)});return n&&(o=g(o)),o.isMobxInjector=!0,s(r,o),o.wrappedComponent=r,o.displayName=x(r,t),o}function x(e,r){var t,n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t=r?"inject-with-"+r+"("+n+")":"inject("+n+")"}function S(e){return function(r,t){return e.forEach(function(e){if(!(e in t)){if(!(e in r))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");t[e]=r[e]}}),t}}function R(){for(var e=arguments.length,r=new Array(e),t=0;e>t;t++)r[t]=arguments[t];if("function"==typeof arguments[0]){var n=arguments[0];return function(e){return P(n,e,n.name,!0)}}return function(e){return P(S(r),e,r.join("-"),!1)}}function C(){var e=this;[].concat(this[Z]||[],this[er]||[]).forEach(function(r){var t="string"==typeof r?e[r]:r;void 0!==t&&null!==t&&(Array.isArray(t)?t.map(function(e){return e()}):t())})}function E(e,r){if(Array.isArray(r))return r.map(function(r){return E(e,r)});var t=Object.getPrototypeOf(e).constructor,n=Object.getPrototypeOf(e.constructor),o=Object.getPrototypeOf(Object.getPrototypeOf(e));if(t!==N.Component&&t!==N.PureComponent&&n!==N.Component&&n!==N.PureComponent&&o!==N.Component&&o!==N.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof r&&"function"!=typeof r&&!Array.isArray(r))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var a="string"==typeof r,i=!!e[Z]||!!e[er],s=a?e[Z]||(e[Z]=[]):e[er]||(e[er]=[]);return s.push(r),i||p(e,"componentWillUnmount",C),"string"!=typeof r?r:void 0}function A(e){function r(r,t,n,o,a,i){for(var s=arguments.length,c=new Array(s>6?s-6:0),u=6;s>u;u++)c[u-6]=arguments[u];return $.untracked(function(){if(o=o||"<>",i=i||n,null==t[n]){if(r){var s=null===t[n]?"null":"undefined";return new Error("The "+a+" `"+i+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[t,n,o,a,i].concat(c))})}var t=r.bind(null,!1);return t.isRequired=r.bind(null,!0),t}function _(e,r){return"symbol"===e?!0:"Symbol"===r["@@toStringTag"]?!0:"function"==typeof Symbol&&r instanceof Symbol?!0:!1}function k(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(r,e)?"symbol":r}function U(e){var r=k(e);if("object"===r){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function M(e,r){return A(function(t,n,o,a,i){return $.untracked(function(){if(e&&k(t[n])===r.toLowerCase())return null;var a;switch(r){case"Array":a=$.isObservableArray;break;case"Object":a=$.isObservableObject;break;case"Map":a=$.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+r)}var s=t[n];if(!a(s)){var c=U(s),u=e?" or javascript `"+r.toLowerCase()+"`":"";return new Error("Invalid prop `"+i+"` of type `"+c+"` supplied to `"+o+"`, expected `mobx.Observable"+r+"`"+u+".")}return null})})}function T(e,r){return A(function(t,n,o,a,i){for(var s=arguments.length,c=new Array(s>5?s-5:0),u=5;s>u;u++)c[u-5]=arguments[u];return $.untracked(function(){if("function"!=typeof r)return new Error("Property `"+i+"` of component `"+o+"` has invalid PropType notation.");var s=M(e,"Array")(t,n,o,a,i);if(s instanceof Error)return s;for(var u=t[n],f=0;f
-
+