@limetech/lime-elements 40.12.3 → 40.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/drag-to-reorder-BP5YkPuu.js +3092 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +2 -2
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +6 -6
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +2 -2
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-dock.cjs.entry.js +3 -3
- package/dist/cjs/{limel-scroller.cjs.entry.js → limel-drag-handle_2.cjs.entry.js} +40 -2
- package/dist/cjs/limel-email-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-viewer.cjs.entry.js +65 -56
- package/dist/cjs/limel-file.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +539 -3171
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
- package/dist/cjs/limel-help.cjs.entry.js +2 -2
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +4 -4
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limel-list-item.cjs.entry.js +3 -3
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination-jump.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +2 -2
- package/dist/cjs/limel-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-resize-handle.cjs.entry.js +43 -2
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-side-panel.cjs.entry.js +16 -6
- package/dist/cjs/limel-slider.cjs.entry.js +4 -4
- package/dist/cjs/limel-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +120 -16
- package/dist/cjs/limel-tab-panel.cjs.entry.js +7 -1
- package/dist/cjs/limel-table.cjs.entry.js +3 -3
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +4 -4
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translations-DDyw5Zzz.js → translations-CLSqfR3x.js} +56 -0
- package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +2 -2
- package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/button-group/button-group.js +1 -1
- package/dist/collection/components/callout/callout.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/circular-progress/circular-progress.js +1 -1
- package/dist/collection/components/code-diff/code-diff.js +1 -1
- package/dist/collection/components/code-editor/code-editor.js +1 -1
- package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
- package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/dialog/dialog.js +2 -2
- package/dist/collection/components/dock/dock.js +2 -2
- package/dist/collection/components/drag-handle/drag-handle.js +1 -1
- package/dist/collection/components/email-viewer/email-viewer.js +1 -1
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
- package/dist/collection/components/file-input/file-input.js +1 -1
- package/dist/collection/components/flex-container/flex-container.js +1 -1
- package/dist/collection/components/form/form.css +59 -0
- package/dist/collection/components/form/form.js +49 -2
- package/dist/collection/components/form/show-field.js +116 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +1 -0
- package/dist/collection/components/form/templates/array-field-item.js +5 -0
- package/dist/collection/components/form/templates/array-field.js +20 -158
- package/dist/collection/components/form/templates/field.js +17 -0
- package/dist/collection/components/grid/grid.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/help/help-content.js +1 -1
- package/dist/collection/components/help/help.js +2 -2
- package/dist/collection/components/helper-line/helper-line.js +2 -2
- package/dist/collection/components/hotkey/hotkey.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +2 -2
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list-item/list-item.js +2 -2
- package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
- package/dist/collection/components/markdown/markdown.js +1 -1
- package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-list/menu-list.js +1 -1
- package/dist/collection/components/menu-surface/menu-surface.js +1 -1
- package/dist/collection/components/notched-outline/notched-outline.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/picker/picker.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover-surface/popover-surface.js +1 -1
- package/dist/collection/components/portal/portal.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button.js +2 -2
- package/dist/collection/components/resize-handle/resize-handle.css +35 -33
- package/dist/collection/components/resize-handle/resize-handle.js +86 -4
- package/dist/collection/components/scroller/scroller.js +2 -2
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shortcut/shortcut.js +1 -1
- package/dist/collection/components/side-panel/side-panel.js +44 -27
- package/dist/collection/components/slider/slider.js +3 -3
- package/dist/collection/components/snackbar/snackbar.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-button/split-button.js +2 -2
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab-bar/tab-bar.css +68 -22
- package/dist/collection/components/tab-bar/tab-bar.js +131 -4
- package/dist/collection/components/tab-bar/tabs.js +23 -0
- package/dist/collection/components/tab-panel/tab-panel.js +54 -1
- package/dist/collection/components/table/table.js +2 -2
- package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/tooltip/tooltip-content.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/translations/da.js +7 -0
- package/dist/collection/translations/de.js +7 -0
- package/dist/collection/translations/en.js +7 -0
- package/dist/collection/translations/fi.js +7 -0
- package/dist/collection/translations/fr.js +7 -0
- package/dist/collection/translations/nl.js +7 -0
- package/dist/collection/translations/no.js +7 -0
- package/dist/collection/translations/sv.js +7 -0
- package/dist/collection/util/drag-to-reorder.js +116 -0
- package/dist/esm/{_baseForOwn-D5j7fHlv.js → _baseForOwn-vKFWmmaS.js} +1 -1
- package/dist/esm/{_baseIsEqual-CyF4P8uM.js → _baseIsEqual-B_JRErB0.js} +1 -1
- package/dist/esm/{_baseIteratee-CpbczHY1.js → _baseIteratee-CVz7aes3.js} +1 -1
- package/dist/esm/{_baseSet-Cw2IE6ZF.js → _baseSet-BUAq8NGm.js} +1 -1
- package/dist/esm/{cloneDeep-DAbOtbs8.js → cloneDeep-Bcll-3f8.js} +1 -1
- package/dist/esm/drag-to-reorder-BXmXIwCa.js +3086 -0
- package/dist/esm/{isEqual-CE83yS8T.js → isEqual-C-pK6AAU.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +4 -4
- package/dist/esm/limel-ai-avatar.entry.js +2 -2
- package/dist/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_6.entry.js +6 -6
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +2 -2
- package/dist/esm/limel-callout.entry.js +2 -2
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +4 -4
- package/dist/esm/limel-chip_2.entry.js +2 -2
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +2 -2
- package/dist/esm/limel-code-editor.entry.js +2 -2
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-color-picker-palette.entry.js +2 -2
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +4 -4
- package/dist/esm/limel-dock.entry.js +3 -3
- package/dist/esm/{limel-scroller.entry.js → limel-drag-handle_2.entry.js} +40 -3
- package/dist/esm/limel-email-viewer.entry.js +2 -2
- package/dist/esm/limel-file-dropzone_2.entry.js +5 -5
- package/dist/esm/limel-file-viewer.entry.js +65 -56
- package/dist/esm/limel-file.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +536 -3168
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help-content.entry.js +1 -1
- package/dist/esm/limel-help.entry.js +2 -2
- package/dist/esm/limel-helper-line_3.entry.js +4 -4
- package/dist/esm/limel-hotkey_4.entry.js +5 -5
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +2 -2
- package/dist/esm/limel-list-item.entry.js +3 -3
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-masonry-layout.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-pagination-jump.entry.js +1 -1
- package/dist/esm/limel-pagination.entry.js +2 -2
- package/dist/esm/limel-picker.entry.js +2 -2
- package/dist/esm/limel-popover_2.entry.js +2 -2
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +5 -5
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +2 -2
- package/dist/esm/limel-resize-handle.entry.js +43 -2
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-side-panel.entry.js +16 -6
- package/dist/esm/limel-slider.entry.js +4 -4
- package/dist/esm/limel-snackbar.entry.js +3 -3
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +117 -13
- package/dist/esm/limel-tab-panel.entry.js +7 -1
- package/dist/esm/limel-table.entry.js +7 -7
- package/dist/esm/limel-text-editor-link-menu.entry.js +4 -4
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translations-UrIr-5_D.js → translations-Drl5LNAD.js} +56 -0
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-35bc5ed2.entry.js → p-01de145c.entry.js} +1 -1
- package/dist/lime-elements/{p-3ee121fa.entry.js → p-026eed2d.entry.js} +1 -1
- package/dist/lime-elements/{p-9ff6a455.entry.js → p-068b141b.entry.js} +1 -1
- package/dist/lime-elements/{p-9168793f.entry.js → p-09f8f883.entry.js} +1 -1
- package/dist/lime-elements/p-1066a057.entry.js +1 -0
- package/dist/lime-elements/{p-95322502.entry.js → p-1663fa9d.entry.js} +1 -1
- package/dist/lime-elements/{p-def7b38f.entry.js → p-17aa9235.entry.js} +1 -1
- package/dist/lime-elements/{p-910807cb.entry.js → p-19426c76.entry.js} +1 -1
- package/dist/lime-elements/{p-622660dd.entry.js → p-1d6014ed.entry.js} +1 -1
- package/dist/lime-elements/p-2370ff51.entry.js +1 -0
- package/dist/lime-elements/{p-0f18981d.entry.js → p-242f1032.entry.js} +1 -1
- package/dist/lime-elements/{p-828558cf.entry.js → p-27d375f3.entry.js} +1 -1
- package/dist/lime-elements/{p-2ba9d62f.entry.js → p-300f80e7.entry.js} +1 -1
- package/dist/lime-elements/{p-9ca18ba5.entry.js → p-3b4f6329.entry.js} +1 -1
- package/dist/lime-elements/{p-2528f75e.entry.js → p-3de45ea6.entry.js} +2 -2
- package/dist/lime-elements/{p-675a7469.entry.js → p-3f447d22.entry.js} +1 -1
- package/dist/lime-elements/{p-780dae0b.entry.js → p-3fa66fb1.entry.js} +1 -1
- package/dist/lime-elements/{p-09390c6a.entry.js → p-41172b62.entry.js} +1 -1
- package/dist/lime-elements/{p-d5144955.entry.js → p-41fb6e88.entry.js} +1 -1
- package/dist/lime-elements/{p-f4c9940e.entry.js → p-44ec1f22.entry.js} +1 -1
- package/dist/lime-elements/{p-268b4da1.entry.js → p-4a272ac2.entry.js} +1 -1
- package/dist/lime-elements/{p-e25bfb2c.entry.js → p-4a381bc6.entry.js} +1 -1
- package/dist/lime-elements/p-56fe13ef.entry.js +1 -0
- package/dist/lime-elements/p-5d623004.entry.js +1 -0
- package/dist/lime-elements/{p-8a59698f.entry.js → p-5ea07cbe.entry.js} +1 -1
- package/dist/lime-elements/p-600466a9.entry.js +1 -0
- package/dist/lime-elements/{p-657bfa36.entry.js → p-62b6e235.entry.js} +1 -1
- package/dist/lime-elements/p-64540beb.entry.js +1 -0
- package/dist/lime-elements/{p-1020ca20.entry.js → p-674680f9.entry.js} +1 -1
- package/dist/lime-elements/{p-d79d777e.entry.js → p-67536ac3.entry.js} +1 -1
- package/dist/lime-elements/{p-dd075353.entry.js → p-6770cf06.entry.js} +1 -1
- package/dist/lime-elements/{p-887eea11.entry.js → p-7375fac2.entry.js} +1 -1
- package/dist/lime-elements/{p-fb15f608.entry.js → p-7829198d.entry.js} +1 -1
- package/dist/lime-elements/{p-abed5afd.entry.js → p-82672504.entry.js} +1 -1
- package/dist/lime-elements/{p-24e5d420.entry.js → p-8339d921.entry.js} +1 -1
- package/dist/lime-elements/{p-33ed0c68.entry.js → p-87c9f4de.entry.js} +1 -1
- package/dist/lime-elements/{p-7a290372.entry.js → p-89316964.entry.js} +1 -1
- package/dist/lime-elements/{p-527e9c95.entry.js → p-8a9361a2.entry.js} +1 -1
- package/dist/lime-elements/{p-46bf8b22.entry.js → p-8e78fd4f.entry.js} +1 -1
- package/dist/lime-elements/{p-db1f9eba.entry.js → p-8f133cd6.entry.js} +1 -1
- package/dist/lime-elements/{p-ff4a8b89.entry.js → p-90198515.entry.js} +1 -1
- package/dist/lime-elements/{p-236743f1.entry.js → p-95ca7426.entry.js} +1 -1
- package/dist/lime-elements/{p-55b56742.entry.js → p-9aa921a2.entry.js} +1 -1
- package/dist/lime-elements/{p-540b2b24.entry.js → p-9bbf2612.entry.js} +1 -1
- package/dist/lime-elements/{p-a449ca04.entry.js → p-9d354eca.entry.js} +1 -1
- package/dist/lime-elements/{p-68542e00.entry.js → p-9e9187ce.entry.js} +1 -1
- package/dist/lime-elements/p-B26k4gw8.js +1 -0
- package/dist/lime-elements/p-BAqAt5It.js +1 -0
- package/dist/lime-elements/p-Cu9Ji1iJ.js +1 -0
- package/dist/lime-elements/{p-BY5NjPj8.js → p-D9Ezd43A.js} +1 -1
- package/dist/lime-elements/{p-nVemxylR.js → p-DFu1q54T.js} +1 -1
- package/dist/lime-elements/p-DdnBHYb-.js +7 -0
- package/dist/lime-elements/{p-B6-3WXAv.js → p-DeIIlp6m.js} +1 -1
- package/dist/lime-elements/p-Dq0uNStc.js +1 -0
- package/dist/lime-elements/{p-4a7df81a.entry.js → p-aac603af.entry.js} +1 -1
- package/dist/lime-elements/{p-5473eb74.entry.js → p-aee75ad1.entry.js} +1 -1
- package/dist/lime-elements/{p-4882acaa.entry.js → p-afbe54e6.entry.js} +1 -1
- package/dist/lime-elements/{p-a78aaf37.entry.js → p-b5ebcbfc.entry.js} +1 -1
- package/dist/lime-elements/{p-07916acc.entry.js → p-be8950a6.entry.js} +2 -2
- package/dist/lime-elements/p-c8cb4912.entry.js +16 -0
- package/dist/lime-elements/{p-de4d261a.entry.js → p-dd065596.entry.js} +1 -1
- package/dist/lime-elements/{p-0c2ce99b.entry.js → p-ddabfac0.entry.js} +1 -1
- package/dist/lime-elements/{p-d3475514.entry.js → p-de3cf7d8.entry.js} +1 -1
- package/dist/lime-elements/{p-458c131f.entry.js → p-e13e0001.entry.js} +2 -2
- package/dist/lime-elements/p-e2971111.entry.js +1 -0
- package/dist/lime-elements/{p-ecded772.entry.js → p-e332bb9b.entry.js} +1 -1
- package/dist/lime-elements/{p-54631dbf.entry.js → p-e50acec1.entry.js} +1 -1
- package/dist/lime-elements/{p-074275f4.entry.js → p-e9b1e0bd.entry.js} +1 -1
- package/dist/lime-elements/p-ec531ecb.entry.js +1 -0
- package/dist/lime-elements/{p-90286e5c.entry.js → p-f0bf3fd1.entry.js} +1 -1
- package/dist/lime-elements/p-f1ac7608.entry.js +1 -0
- package/dist/lime-elements/{p-c12fbc91.entry.js → p-f455150b.entry.js} +1 -1
- package/dist/types/components/form/form.d.ts +15 -0
- package/dist/types/components/form/show-field.d.ts +9 -0
- package/dist/types/components/form/templates/array-context.d.ts +4 -0
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +5 -0
- package/dist/types/components/form/templates/array-field.d.ts +3 -13
- package/dist/types/components/form/templates/field.d.ts +1 -0
- package/dist/types/components/form/templates/object-field.d.ts +2 -2
- package/dist/types/components/resize-handle/resize-handle.d.ts +31 -2
- package/dist/types/components/side-panel/side-panel.d.ts +11 -4
- package/dist/types/components/tab-bar/tab-bar.d.ts +25 -0
- package/dist/types/components/tab-bar/tab.types.d.ts +18 -0
- package/dist/types/components/tab-bar/tabs.d.ts +12 -1
- package/dist/types/components/tab-panel/tab-panel.d.ts +18 -1
- package/dist/types/components.d.ts +143 -18
- package/dist/types/translations/da.d.ts +7 -0
- package/dist/types/translations/de.d.ts +7 -0
- package/dist/types/translations/en.d.ts +7 -0
- package/dist/types/translations/fi.d.ts +7 -0
- package/dist/types/translations/fr.d.ts +7 -0
- package/dist/types/translations/nl.d.ts +7 -0
- package/dist/types/translations/no.d.ts +7 -0
- package/dist/types/translations/sv.d.ts +7 -0
- package/dist/types/util/drag-to-reorder.d.ts +65 -0
- package/package.json +4 -4
- package/dist/cjs/isArrayLikeObject-U2Ddbw4n.js +0 -326
- package/dist/cjs/limel-drag-handle.cjs.entry.js +0 -42
- package/dist/esm/isArrayLikeObject-CJB8HbtH.js +0 -321
- package/dist/esm/limel-drag-handle.entry.js +0 -40
- package/dist/lime-elements/p-26813b2c.entry.js +0 -1
- package/dist/lime-elements/p-49eb2f64.entry.js +0 -13
- package/dist/lime-elements/p-4f58c6b3.entry.js +0 -1
- package/dist/lime-elements/p-646731b6.entry.js +0 -1
- package/dist/lime-elements/p-8d567e42.entry.js +0 -1
- package/dist/lime-elements/p-9b384d62.entry.js +0 -1
- package/dist/lime-elements/p-BQeIv4aA.js +0 -1
- package/dist/lime-elements/p-COdirXg1.js +0 -1
- package/dist/lime-elements/p-ORUNaKm-.js +0 -1
- package/dist/lime-elements/p-a317f2fa.entry.js +0 -1
- package/dist/lime-elements/p-a5246373.entry.js +0 -1
- package/dist/lime-elements/p-b609552e.entry.js +0 -1
- package/dist/lime-elements/p-bf849dc9.entry.js +0 -1
- package/dist/lime-elements/p-d7e5a4a7.entry.js +0 -1
- package/dist/lime-elements/p-pk5KIdKH.js +0 -1
- package/dist/lime-elements/p-w3yKYfBQ.js +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{r as e,c as r,h as t,a as n}from"./p-BU9IJqli.js";import{g as i}from"./p-B85MJLTf.js";import{t as o,b as a,g as l}from"./p-D9Ezd43A.js";import{i as u}from"./p-D2VFSWDU.js";import{b as s}from"./p-BJQylLSL.js";import{g as c}from"./p-CW2-jhzP.js";import{i as f}from"./p-oiMYqRQ0.js";import{b as d,n as h}from"./p-DFu1q54T.js";import{a as m,b as p,c as v,i as y,D as b}from"./p-DdnBHYb-.js";import{s as g,S as w,c as k}from"./p-DeIIlp6m.js";import{S as $}from"./p-DK0pjX-Y.js";import{i as S}from"./p-Cu9Ji1iJ.js";import{m as E}from"./p-DTcfed02.js";import{c as j}from"./p-BAqAt5It.js";import{i as x}from"./p-B8hi7R6R.js";import{g as O}from"./p-BhoYaGlg.js";import{b as A}from"./p-ByzvFNMm.js";import{b as C}from"./p-Dq0uNStc.js";import"./p-B8VKuhvH.js";import"./p-BOEi1C7r.js";import"./p-B--C3qwe.js";import"./p-BYfPV0O4.js";import"./p-BcJ-TDVt.js";import"./p-CK4jS9_E.js";import"./p-9W8bTt2G.js";import"./p-DbBZn7JO.js";import"./p-CZ30nDJE.js";var _=Function.prototype.toString,I=Object.prototype.hasOwnProperty,D=_.call(Object);function P(e){if(!f(e)||"[object Object]"!=s(e))return!1;var r=c(e);if(null===r)return!0;var t=I.call(r,"constructor")&&r.constructor;return"function"==typeof t&&t instanceof t&&_.call(t)==D}var F=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function q(e){return F.test(e)}var N="\\ud800-\\udfff",T="["+N+"]",R="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",M="\\ud83c[\\udffb-\\udfff]",z="[^"+N+"]",U="(?:\\ud83c[\\udde6-\\uddff]){2}",L="[\\ud800-\\udbff][\\udc00-\\udfff]",B="(?:"+R+"|"+M+")?",V="[\\ufe0e\\ufe0f]?",H=V+B+"(?:\\u200d(?:"+[z,U,L].join("|")+")"+V+B+")*",W="(?:"+[z+R+"?",R,U,L,T].join("|")+")",G=RegExp(M+"(?="+M+")|"+W+H,"g");var K,J,Z=function(e){var r,t,n,i,a=q(e=o(e))?function(e){return q(e)?function(e){return e.match(G)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,l=a?a[0]:e.charAt(0),u=a?(r=a,t=1,i=r.length,n=void 0===n?i:n,!t&&n>=i?r:function(e,r,t){var n=-1,i=e.length;r<0&&(r=-r>i?0:i+r),(t=t>i?i:t)<0&&(t+=i),i=r>t?0:t-r>>>0,r>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+r];return o}(r,t,n)).join(""):e.slice(1);return l.toUpperCase()+u},Y=$&&1/g(new $([,-0]))[1]==1/0?function(e){return new $(e)}:function(){},X=p((function(e){return function(e){var r=-1,t=m,n=e.length,i=!0,o=[],a=o;if(n>=200){var l=Y(e);if(l)return g(l);i=!1,t=k,a=new w}else a=o;e:for(;++r<n;){var u=e[r],s=u;if(u=0!==u?u:0,i&&s==s){for(var c=a.length;c--;)if(a[c]===s)continue e;o.push(u)}else t(a,s,undefined)||(a!==o&&a.push(s),o.push(u))}return o}(v(e,1,y))})),Q={exports:{}},ee={};function re(){if(K)return ee;K=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),d=Symbol.for("react.view_transition"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,v={};function y(e,r,t){this.props=e,this.context=r,this.refs=v,this.updater=t||m}function b(){}function g(e,r,t){this.props=e,this.context=r,this.refs=v,this.updater=t||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,r){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=g.prototype=new b;w.constructor=g,p(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray;function $(){}var S={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function j(r,t,n){var i=n.ref;return{$$typeof:e,type:r,key:t,ref:void 0!==i?i:null,props:n}}function x(r){return"object"==typeof r&&null!==r&&r.$$typeof===e}var O=/\/+/g;function A(e,r){return"object"==typeof e&&null!==e&&null!=e.key?(t={"=":"=0",":":"=2"},"$"+(""+e.key).replace(/[=:]/g,(function(e){return t[e]}))):r.toString(36);var t}function C(t,n,i,o,a){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u,s,f=!1;if(null===t)f=!0;else switch(l){case"bigint":case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case e:case r:f=!0;break;case c:return C((f=t._init)(t._payload),n,i,o,a)}}if(f)return a=a(t),f=""===o?"."+A(t,0):o,k(a)?(i="",null!=f&&(i=f.replace(O,"$&/")+"/"),C(a,n,i,"",(function(e){return e}))):null!=a&&(x(a)&&(u=a,s=i+(null==a.key||t&&t.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+f,a=j(u.type,s,u.props)),n.push(a)),1;f=0;var d,m=""===o?".":o+":";if(k(t))for(var p=0;p<t.length;p++)f+=C(o=t[p],n,i,l=m+A(o,p),a);else if("function"==typeof(p=null===(d=t)||"object"!=typeof d?null:"function"==typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(t=p.call(t),p=0;!(o=t.next()).done;)f+=C(o=o.value,n,i,l=m+A(o,p++),a);else if("object"===l){if("function"==typeof t.then)return C(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then($,$):(e.status="pending",e.then((function(r){"pending"===e.status&&(e.status="fulfilled",e.value=r)}),(function(r){"pending"===e.status&&(e.status="rejected",e.reason=r)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(t),n,i,o,a);throw n=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return f}function _(e,r,t){if(null==e)return e;var n=[],i=0;return C(e,n,"","",(function(e){return r.call(t,e,i++)})),n}function I(e){if(-1===e._status){var r=(0,e._result)();r.then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t,void 0===r.status&&(r.status="fulfilled",r.value=t))}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t,void 0===r.status&&(r.status="rejected",r.reason=t))})),-1===e._status&&(e._status=0,e._result=r)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(r))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function P(e){var r=S.T,t={};t.types=null!==r?r.types:null,S.T=t;try{var n=e(),i=S.S;null!==i&&i(t,n),"object"==typeof n&&null!==n&&"function"==typeof n.then&&n.then($,D)}catch(e){D(e)}finally{null!==r&&null!==t.types&&(r.types=t.types),S.T=r}}var F={map:_,forEach:function(e,r,t){_(e,(function(){r.apply(this,arguments)}),t)},count:function(e){var r=0;return _(e,(function(){r++})),r},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return ee.Activity=f,ee.Children=F,ee.Component=y,ee.Fragment=t,ee.Profiler=i,ee.PureComponent=g,ee.StrictMode=n,ee.Suspense=u,ee.ViewTransition=d,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=S,ee.__COMPILER_RUNTIME={__proto__:null,c:function(e){return S.H.useMemoCache(e)}},ee.addTransitionType=function e(r){var t=S.T;if(null!==t){var n=t.types;null===n?t.types=[r]:-1===n.indexOf(r)&&n.push(r)}else P(e.bind(null,r))},ee.cache=function(e){return function(){return e.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(e,r,t){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var n=p({},e.props),i=e.key;if(null!=r)for(o in void 0!==r.key&&(i=""+r.key),r)!E.call(r,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===r.ref||(n[o]=r[o]);var o=arguments.length-2;if(1===o)n.children=t;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];n.children=a}return j(e.type,i,n)},ee.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},ee.createElement=function(e,r,t){var n,i={},o=null;if(null!=r)for(n in void 0!==r.key&&(o=""+r.key),r)E.call(r,n)&&"key"!==n&&"__self"!==n&&"__source"!==n&&(i[n]=r[n]);var a=arguments.length-2;if(1===a)i.children=t;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return j(e,o,i)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(e){return{$$typeof:l,render:e}},ee.isValidElement=x,ee.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:I}},ee.memo=function(e,r){return{$$typeof:s,type:e,compare:void 0===r?null:r}},ee.startTransition=P,ee.unstable_useCacheRefresh=function(){return S.H.useCacheRefresh()},ee.use=function(e){return S.H.use(e)},ee.useActionState=function(e,r,t){return S.H.useActionState(e,r,t)},ee.useCallback=function(e,r){return S.H.useCallback(e,r)},ee.useContext=function(e){return S.H.useContext(e)},ee.useDebugValue=function(){},ee.useDeferredValue=function(e,r){return S.H.useDeferredValue(e,r)},ee.useEffect=function(e,r){return S.H.useEffect(e,r)},ee.useEffectEvent=function(e){return S.H.useEffectEvent(e)},ee.useId=function(){return S.H.useId()},ee.useImperativeHandle=function(e,r,t){return S.H.useImperativeHandle(e,r,t)},ee.useInsertionEffect=function(e,r){return S.H.useInsertionEffect(e,r)},ee.useLayoutEffect=function(e,r){return S.H.useLayoutEffect(e,r)},ee.useMemo=function(e,r){return S.H.useMemo(e,r)},ee.useOptimistic=function(e,r){return S.H.useOptimistic(e,r)},ee.useReducer=function(e,r,t){return S.H.useReducer(e,r,t)},ee.useRef=function(e){return S.H.useRef(e)},ee.useState=function(e){return S.H.useState(e)},ee.useSyncExternalStore=function(e,r,t){return S.H.useSyncExternalStore(e,r,t)},ee.useTransition=function(){return S.H.useTransition()},ee.version="19.3.1",ee}function te(){return J||(J=1,Q.exports=re()),Q.exports}var ne,ie,oe=te(),ae=i(oe),le={exports:{}},ue={},se={exports:{}},ce={};var fe,de,he,me,pe={exports:{}},ve={};function ye(){return de||(de=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),pe.exports=function(){if(fe)return ve;fe=1;var e=te();function r(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var n={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal"),o=Symbol.for("react.recoverable"),a=Symbol.for("react.optimistic_key"),l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,r){return"font"===e?"":"string"==typeof r?"use-credentials"===r?r:"":void 0}return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,ve.browser=function(e){return{$$typeof:o,_reason:e}},ve.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,r,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:i,key:null==n?null:n===a?a:""+n,children:e,containerInfo:r,implementation:t}}(e,t,null,n)},ve.flushSync=function(e){var r=l.T,t=n.p;try{if(l.T=null,n.p=2,e)return e()}finally{l.T=r,n.p=t,n.d.f()}},ve.preconnect=function(e,r){"string"==typeof e&&(r=r?"string"==typeof(r=r.crossOrigin)?"use-credentials"===r?r:"":void 0:null,n.d.C(e,r))},ve.prefetchDNS=function(e){"string"==typeof e&&n.d.D(e)},ve.preinit=function(e,r){if("string"==typeof e&&r&&"string"==typeof r.as){var t=r.as,i=u(t,r.crossOrigin),o="string"==typeof r.integrity?r.integrity:void 0,a="string"==typeof r.fetchPriority?r.fetchPriority:void 0;"style"===t?n.d.S(e,"string"==typeof r.precedence?r.precedence:void 0,{crossOrigin:i,integrity:o,fetchPriority:a}):"script"===t&&n.d.X(e,{crossOrigin:i,integrity:o,fetchPriority:a,nonce:"string"==typeof r.nonce?r.nonce:void 0})}},ve.preinitModule=function(e,r){if("string"==typeof e)if("object"==typeof r&&null!==r){if(null==r.as||"script"===r.as){var t=u(r.as,r.crossOrigin);n.d.M(e,{crossOrigin:t,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0})}}else null==r&&n.d.M(e)},ve.preload=function(e,r){if("string"==typeof e&&"object"==typeof r&&null!==r&&"string"==typeof r.as){var t=r.as,i=u(t,r.crossOrigin);n.d.L(e,t,{crossOrigin:i,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,type:"string"==typeof r.type?r.type:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0,referrerPolicy:"string"==typeof r.referrerPolicy?r.referrerPolicy:void 0,imageSrcSet:"string"==typeof r.imageSrcSet?r.imageSrcSet:void 0,imageSizes:"string"==typeof r.imageSizes?r.imageSizes:void 0,media:"string"==typeof r.media?r.media:void 0})}},ve.preloadModule=function(e,r){if("string"==typeof e)if(r){var t=u(r.as,r.crossOrigin);n.d.m(e,{as:"string"==typeof r.as&&"script"!==r.as?r.as:void 0,crossOrigin:t,integrity:"string"==typeof r.integrity?r.integrity:void 0,nonce:"string"==typeof r.nonce?r.nonce:void 0,fetchPriority:"string"==typeof r.fetchPriority?r.fetchPriority:void 0})}else n.d.m(e)},ve.requestFormReset=function(e){n.d.r(e)},ve.unstable_batchedUpdates=function(e,r){return e(r)},ve.useFormState=function(e,r,t){return l.H.useFormState(e,r,t)},ve.useFormStatus=function(){return l.H.useHostTransitionStatus()},ve.version="19.3.1",ve}()),pe.exports}
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-dom-client.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var be,ge,we=(me||(me=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),le.exports=function(){if(he)return ue;he=1;var e=(ie||(ie=1,se.exports=(ne||(ne=1,function(e){function r(e,r){var t=e.length;e.push(r);e:for(;0<t;){var n=t-1>>>1,o=e[n];if(!(0<i(o,r)))break e;e[n]=r,e[t]=o,t=n}}function t(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var r=e[0],t=e.pop();if(t!==r){e[0]=t;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var l=2*(n+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,t))s<o&&0>i(c,u)?(e[n]=c,e[s]=t,n=s):(e[n]=u,e[l]=t,n=l);else{if(!(s<o&&0>i(c,t)))break e;e[n]=c,e[s]=t,n=s}}}return r}function i(e,r){var t=e.sortIndex-r.sortIndex;return 0!==t?t:e.id-r.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],s=[],c=1,f=null,d=3,h=!1,m=!1,p=!1,v=!1,y="function"==typeof setTimeout?setTimeout:null,b="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var i=t(s);null!==i;){if(null===i.callback)n(s);else{if(!(i.startTime<=e))break;n(s),i.sortIndex=i.expirationTime,r(u,i)}i=t(s)}}function k(e){if(p=!1,w(e),!m)if(null!==t(u))m=!0,S||(S=!0,$());else{var r=t(s);null!==r&&I(k,r.startTime-e)}}var $,S=!1,E=-1,j=5,x=-1;function O(){return!(!v&&e.unstable_now()-x<j)}function A(){if(v=!1,S){var r=e.unstable_now();x=r;var i=!0;try{e:{m=!1,p&&(p=!1,b(E),E=-1),h=!0;var o=d;try{r:{for(w(r),f=t(u);null!==f&&!(f.expirationTime>r&&O());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var l=a(f.expirationTime<=r);if(r=e.unstable_now(),"function"==typeof l){f.callback=l,w(r),i=!0;break r}f===t(u)&&n(u),w(r)}else n(u);f=t(u)}if(null!==f)i=!0;else{var c=t(s);null!==c&&I(k,c.startTime-r),i=!1}}break e}finally{f=null,d=o,h=!1}i=void 0}}finally{i?$():S=!1}}}if("function"==typeof g)$=function(){g(A)};else if("undefined"!=typeof MessageChannel){var C=new MessageChannel,_=C.port2;C.port1.onmessage=A,$=function(){_.postMessage(null)}}else $=function(){y(A,0)};function I(r,t){E=y((function(){r(e.unstable_now())}),t)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(e){switch(d){case 1:case 2:case 3:var r=3;break;default:r=d}var t=d;d=r;try{return e()}finally{d=t}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(e,r){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=d;d=e;try{return r()}finally{d=t}},e.unstable_scheduleCallback=function(n,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,n){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return n={id:c++,callback:i,priorityLevel:n,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>a?(n.sortIndex=o,r(s,n),null===t(u)&&n===t(s)&&(p?(b(E),E=-1):p=!0,I(k,o-a))):(n.sortIndex=l,r(u,n),m||h||(m=!0,S||(S=!0,$()))),n},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var r=d;return function(){var t=d;d=r;try{return e.apply(this,arguments)}finally{d=t}}}}(ce)),ce)),se.exports),r=te(),t=ye();function n(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function o(e){for(var r=e,t=r;t&&!t.alternate;)!!(4098&(r=t).flags)&&(e=r.return),t=r.return;for(;r.return;)r=r.return;return 3===r.tag?e:null}function a(e){if(13===e.tag){var r=e.memoizedState;if(null===r&&null!==(e=e.alternate)&&(r=e.memoizedState),null!==r)return r.dehydrated}return null}function l(e){if(31===e.tag){var r=e.memoizedState;if(null===r&&null!==(e=e.alternate)&&(r=e.memoizedState),null!==r)return r.dehydrated}return null}function u(e){if(o(e)!==e)throw Error(n(188))}function s(e){var r=e.tag;if(5===r||26===r||27===r||6===r)return e;for(e=e.child;null!==e;){if(null!==(r=s(e)))return r;e=e.sibling}return null}function c(e,r,t,n,i,o){for(;null!==e;){if((5===e.tag||27===e.tag||6===e.tag)&&t(e,n,i,o)||(22!==e.tag||null===e.memoizedState)&&(r||5!==e.tag&&27!==e.tag)&&c(e.child,r,t,n,i,o))return!0;e=e.sibling}return!1}function f(e){for(e=e.return;null!==e;){if(3===e.tag||5===e.tag||27===e.tag)return e;e=e.return}return null}function d(e){var r=!1;for(e=e.return;null!==e&&(4===e.tag&&(r=!0),3!==e.tag&&5!==e.tag&&27!==e.tag);)e=e.return;return r}function h(e){var r=[null,null],t=f(e);return null===t||m(r,e,t.child,{foundSelf:!1}),r}function m(e,r,t,n){for(;null!==t;){if(t===r)n.foundSelf=!0;else if(5===t.tag||27===t.tag||6===t.tag){if(n.foundSelf)return e[1]=t,!0;e[0]=t}else if((22!==t.tag||null===t.memoizedState)&&m(e,r,t.child,n))return!0;t=t.sibling}return!1}function p(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(n(559))}}var v=null,y=null;function b(e,r,t){return e===t||e===r&&(v=e,!0)}function g(e,r,t){return e===t?(y=e,!1):e===r&&(null!==y&&(v=e),!0)}function w(e){if(null===e)return null;do{e=null===e?null:e.return}while(e&&5!==e.tag&&27!==e.tag&&3!==e.tag);return e||null}function k(e,r,t){for(var n=0,i=e;i;i=t(i))n++;i=0;for(var o=r;o;o=t(o))i++;for(;0<n-i;)e=t(e),n--;for(;0<i-n;)r=t(r),i--;for(;n--;){if(e===r||null!==r&&e===r.alternate)return e;e=t(e),r=t(r)}return null}var $=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),T=Symbol.for("react.legacy_hidden"),R=Symbol.for("react.memo_cache_sentinel"),M=Symbol.for("react.view_transition"),z=Symbol.for("react.recoverable"),U=Symbol.iterator;function L(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}var B=Symbol.for("react.client.reference");function V(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===B?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case D:return"Suspense";case P:return"SuspenseList";case N:return"Activity";case M:return"ViewTransition"}if("object"==typeof e)switch(e.$$typeof){case j:return"Portal";case _:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case I:var r=e.render;return(e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case F:return null!==(r=e.displayName||null)?r:V(e.type)||"Memo";case q:r=e._payload,e=e._init;try{return V(e(r))}catch(e){}}return null}var H=Array.isArray,W=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},J=[],Z=-1;function Y(e){return{current:e}}function X(e){0>Z||(e.current=J[Z],J[Z]=null,Z--)}function Q(e,r){Z++,J[Z]=e.current,e.current=r}var ee,re,oe=Y(null),ae=Y(null),le=Y(null),fe=Y(null);function de(e,r){switch(Q(le,r),Q(ae,e),Q(oe,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?Ld(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)e=Bd(r=Ld(r),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(oe),Q(oe,e)}function me(){X(oe),X(ae),X(le)}function pe(e){var r=e.memoizedState;null!==r&&(mm._currentValue=r.memoizedState,Q(fe,e));var t=Bd(r=oe.current,e.type);r!==t&&(Q(ae,e),Q(oe,t))}function ve(e){ae.current===e&&(X(oe),X(ae)),fe.current===e&&(X(fe),mm._currentValue=K)}function be(e){if(void 0===ee)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);ee=r&&r[1]||"",re=-1<e.stack.indexOf("\n at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+ee+e+re}var ge=!1;function we(e,r){if(!e||ge)return"";ge=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(r){var t=function(){throw Error()};if(Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}t=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),t=!0,new e}finally{t&&(void 0!==i?Object.defineProperty(e.prototype,"props",i):delete e.prototype.props)}}}else{try{throw Error()}catch(e){n=e}(t=e())&&"function"==typeof t.catch&&t.catch((function(){}))}}catch(e){if(e&&n&&"string"==typeof e.stack)return[e.stack,n.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var u=a.split("\n"),s=l.split("\n");for(i=n=0;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;for(;i<s.length&&!s[i].includes("DetermineComponentFrameRoot");)i++;if(n===u.length||i===s.length)for(n=u.length-1,i=s.length-1;1<=n&&0<=i&&u[n]!==s[i];)i--;for(;1<=n&&0<=i;n--,i--)if(u[n]!==s[i]){if(1!==n||1!==i)do{if(n--,0>--i||u[n]!==s[i]){var c="\n"+u[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=n&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?be(t):""}function ke(e,r){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return be(e.child!==r&&null!==r?"Suspense Fallback":"Suspense");case 19:return be("SuspenseList");case 0:case 15:return we(e.type,!1);case 11:return we(e.type.render,!1);case 1:return we(e.type,!0);case 31:return be("Activity");case 30:return be("ViewTransition");default:return""}}function $e(e){try{var r="",t=null;do{r+=ke(e,t),t=e,e=e.return}while(e);return r}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var Se=Object.prototype.hasOwnProperty,Ee=e.unstable_scheduleCallback,je=e.unstable_cancelCallback,xe=e.unstable_shouldYield,Oe=e.unstable_requestPaint,Ae=e.unstable_now,Ce=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Ie=e.unstable_UserBlockingPriority,De=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,Fe=e.unstable_IdlePriority,qe=e.log,Ne=e.unstable_setDisableYieldValue,Te=null,Re=null;function Me(e){if("function"==typeof qe&&Ne(e),Re&&"function"==typeof Re.setStrictMode)try{Re.setStrictMode(Te,e)}catch(e){}}var ze=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Ue(e)/Le|0)|0},Ue=Math.log,Le=Math.LN2,Be=256,Ve=262144,He=4194304;function We(e){var r=42&e;if(0!==r)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,r,t){var n=e.pendingLanes;if(0===n)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=134217727&n;return 0!==l?0!=(n=l&~o)?i=We(n):0!=(a&=l)?i=We(a):t||0!=(t=l&~e)&&(i=We(t)):0!=(l=n&~o)?i=We(l):0!==a?i=We(a):t||0!=(t=n&~e)&&(i=We(t)),0===i?0:0===r||r===i||r&o||!((o=i&-i)>=(t=r&-r)||32===o&&4194048&t)?i:r}function Ke(e,r){return!(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)}function Je(e,r){8&r&&(r|=32&r);var t=e.entangledLanes;if(0!==t)for(e=e.entanglements,t&=r;0<t;){var n=31-ze(t);r|=e[n],t&=~(1<<n)}return r}function Ze(e,r){switch(e){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;default:return-1}}function Ye(){var e=He;return!(62914560&(He<<=1))&&(He=4194304),e}function Xe(e){for(var r=[],t=0;31>t;t++)r.push(e);return r}function Qe(e,r){e.pendingLanes|=r,268435456!==r&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function er(e,r,t){e.pendingLanes|=r,e.suspendedLanes&=~r;var n=31-ze(r);e.entangledLanes|=r,e.entanglements[n]=1073741824|e.entanglements[n]|261930&t}function rr(e,r){var t=e.entangledLanes|=r;for(e=e.entanglements;t;){var n=31-ze(t),i=1<<n;i&r|e[n]&r&&(e[n]|=r),t&=~i}}function tr(e,r){var t=r&-r;return(t=42&t?1:nr(t))&(e.suspendedLanes|r)?0:t}function nr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ir(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function or(){var e=G.p;return 0!==e?e:void 0===(e=window.event)?32:_m(e.type)}function ar(e,r){var t=G.p;try{return G.p=e,r()}finally{G.p=t}}var lr=Math.random().toString(36).slice(2),ur="__reactFiber$"+lr,sr="__reactProps$"+lr,cr="__reactContainer$"+lr,fr="__reactEvents$"+lr,dr="__reactListeners$"+lr,hr="__reactHandles$"+lr,mr="__reactResources$"+lr,pr="__reactMarker$"+lr,vr="__reactLoad$"+lr;function yr(e){delete e[ur],delete e[sr],delete e[dr],delete e[hr]}function br(e){var r;if(r=e[ur])return r;for(var t=e.parentNode;t;){if(r=t[cr]||t[ur]){if(t=r.alternate,null!==r.child||null!==t&&null!==t.child)for(e=Fh(e);null!==e;){if(t=e[ur])return t;e=Fh(e)}return r}t=(e=t).parentNode}return null}function gr(e){if(e=e[ur]||e[cr]){var r=e.tag;if(5===r||6===r||13===r||31===r||26===r||27===r||3===r)return e}return null}function wr(e){var r=e.tag;if(5===r||26===r||27===r||6===r)return e.stateNode;throw Error(n(33))}function kr(e){var r=e[mr];return r||(r=e[mr]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function $r(e){e[pr]=!0}function Sr(e){e[vr]=void 0}var Er=new Set,jr={};function xr(e,r){Or(e,r),Or(e+"Capture",r)}function Or(e,r){for(jr[e]=r,e=0;e<r.length;e++)Er.add(r[e])}var Ar=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cr={},_r={},Ir=!1;function Dr(){var e=Ir;return Ir=!1,e}function Pr(e,r,t){if(Se.call(_r,i=r)||!Se.call(Cr,i)&&(Ar.test(i)?_r[i]=!0:(Cr[i]=!0,0)))if(null===t)e.removeAttribute(r);else{switch(typeof t){case"undefined":case"function":case"symbol":return void e.removeAttribute(r);case"boolean":var n=r.toLowerCase().slice(0,5);if("data-"!==n&&"aria-"!==n)return void e.removeAttribute(r)}e.setAttribute(r,t)}var i}function Fr(e,r,t){if(null===t)e.removeAttribute(r);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(r)}e.setAttribute(r,t)}}function qr(e,r,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttributeNS(r,t,n)}}function Nr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Tr(e){var r=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===r||"radio"===r)}function Rr(e){if(!e._valueTracker){var r=Tr(e)?"checked":"value";e._valueTracker=function(e,r,t){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,r);if(!e.hasOwnProperty(r)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return i.call(this)},set:function(e){t=""+e,o.call(this,e)}}),Object.defineProperty(e,r,{enumerable:n.enumerable}),{getValue:function(){return t},setValue:function(e){t=""+e},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}(e,r,""+e[r])}}function Mr(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=Tr(e)?e.checked?"true":"false":e.value),(e=n)!==t&&(r.setValue(e),!0)}var zr=/[\n"\\]/g;function Ur(e){return e.replace(zr,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function Lr(e,r,t,n,i,o,a,l){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=r?"number"===a?(0===r&&""===e.value||e.value!=r)&&(e.value=""+Nr(r)):e.value!==""+Nr(r)&&(e.value=""+Nr(r)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=r?Vr(e,Nr("number"===a&&e.value==r?e.value:r)):null!=t?Vr(e,Nr(t)):null!=n&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=l&&"function"!=typeof l&&"symbol"!=typeof l&&"boolean"!=typeof l?e.name=""+Nr(l):e.removeAttribute("name")}function Br(e,r,t,n,i,o,a,l){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=r||null!=t){if(("submit"===o||"reset"===o)&&null==r)return void Rr(e);t=null!=t?""+Nr(t):"",r=null!=r?""+Nr(r):t,l||r===e.value||(e.value=r),e.defaultValue=r}n="function"!=typeof(n=null!=n?n:i)&&"symbol"!=typeof n&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),Rr(e)}function Vr(e,r){e.defaultValue!==""+r&&(e.defaultValue=""+r)}function Hr(e,r,t,n){if(e=e.options,r){r={};for(var i=0;i<t.length;i++)r["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=r.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&n&&(e[t].defaultSelected=!0)}else{for(t=""+Nr(t),r=null,i=0;i<e.length;i++){if(e[i].value===t)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==r||e[i].disabled||(r=e[i])}null!==r&&(r.selected=!0)}}function Wr(e,r,t){null==r||((r=""+Nr(r))!==e.value&&(e.value=r),null!=t)?e.defaultValue=null!=t?""+Nr(t):"":e.defaultValue!==r&&(e.defaultValue=r)}function Gr(e,r,t,i){if(null==r){if(null!=i){if(null!=t)throw Error(n(92));if(H(i)){if(1<i.length)throw Error(n(93));i=i[0]}t=i}null==t&&(t=""),r=t}t=Nr(r),e.defaultValue=t,(i=e.textContent)===t&&""!==i&&null!==i&&(e.value=i),Rr(e)}function Kr(e,r){if(r){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType)return void(t.nodeValue=r)}e.textContent=r}var Jr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Zr(e,r,t){var n=0===r.indexOf("--");null==t||"boolean"==typeof t||""===t?n?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="":n?e.setProperty(r,t):"number"!=typeof t||0===t||Jr.has(r)?"float"===r?e.cssFloat=t:e[r]=(""+t).trim():e[r]=t+"px"}function Yr(e,r,t){if(null!=r&&"object"!=typeof r)throw Error(n(62));if(e=e.style,null!=t){for(var i in t)!t.hasOwnProperty(i)||null!=r&&r.hasOwnProperty(i)||(0===i.indexOf("--")?e.setProperty(i,""):"float"===i?e.cssFloat="":e[i]="",Ir=!0);for(var o in r)i=r[o],r.hasOwnProperty(o)&&t[o]!==i&&(Zr(e,o,i),Ir=!0)}else for(var a in r)r.hasOwnProperty(a)&&Zr(e,a,r[a])}function Xr(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Qr=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),et=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function rt(e){return et.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tt(){}var nt=null;function it(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ot=null,at=null;function lt(e){var r=gr(e);if(r&&(e=r.stateNode)){var t=e[sr]||null;e:switch(e=r.stateNode,r.type){case"input":if(Lr(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),r=t.name,"radio"===t.type&&null!=r){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+Ur(""+r)+'"][type="radio"]'),r=0;r<t.length;r++){var i=t[r];if(i!==e&&i.form===e.form){var o=i[sr]||null;if(!o)throw Error(n(90));Lr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(r=0;r<t.length;r++)(i=t[r]).form===e.form&&Mr(i)}break e;case"textarea":Wr(e,t.value,t.defaultValue);break e;case"select":null!=(r=t.value)&&Hr(e,!!t.multiple,r,!1)}}}var ut=!1;function st(e,r,t){if(ut)return e(r,t);ut=!0;try{return e(r)}finally{if(ut=!1,(null!==ot||null!==at)&&($f(),ot&&(r=ot,e=at,at=ot=null,lt(r),e)))for(r=0;r<e.length;r++)lt(e[r])}}function ct(e,r){var t=e.stateNode;if(null===t)return null;var i=t[sr]||null;if(null===i)return null;t=i[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(t&&"function"!=typeof t)throw Error(n(231,r,typeof t));return t}var ft=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),dt=!1;if(ft)try{var ht={};Object.defineProperty(ht,"passive",{get:function(){dt=!0}}),window.addEventListener("test",ht,ht),window.removeEventListener("test",ht,ht)}catch(e){dt=!1}var mt=null,pt=null,vt=null;function yt(){if(vt)return vt;var e,r,t=pt,n=t.length,i="value"in mt?mt.value:mt.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return vt=i.slice(e,1<r?1-r:void 0)}function bt(e){var r=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===r&&(e=13):e=r,10===e&&(e=13),32<=e||13===e?e:0}function gt(){return!0}function wt(){return!1}function kt(e){function r(r,t,n,i,o){for(var a in this._reactName=r,this._targetInst=n,this.type=t,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(this[a]=(r=e[a])?r(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?gt:wt,this.isPropagationStopped=wt,this}return $(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=gt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=gt)},persist:function(){},isPersistent:gt}),r}var $t,St,Et,jt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xt=kt(jt),Ot=$({},jt,{view:0,detail:0}),At=kt(Ot),Ct=$({},Ot,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zt,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Et&&(Et&&"mousemove"===e.type?($t=e.screenX-Et.screenX,St=e.screenY-Et.screenY):St=$t=0,Et=e),$t)},movementY:function(e){return"movementY"in e?e.movementY:St}}),_t=kt(Ct),It=kt($({},Ct,{dataTransfer:0})),Dt=kt($({},Ot,{relatedTarget:0})),Pt=kt($({},jt,{animationName:0,elapsedTime:0,pseudoElement:0})),Ft=kt($({},jt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),qt=kt($({},jt,{data:0})),Nt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Rt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mt(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):!!(e=Rt[e])&&!!r[e]}function zt(){return Mt}var Ut=kt($({},Ot,{key:function(e){if(e.key){var r=Nt[e.key]||e.key;if("Unidentified"!==r)return r}return"keypress"===e.type?13===(e=bt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Tt[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zt,charCode:function(e){return"keypress"===e.type?bt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?bt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Lt=kt($({},Ct,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Bt=kt($({},jt,{submitter:0})),Vt=kt($({},Ot,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zt})),Ht=kt($({},jt,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wt=kt($({},Ct,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Gt=kt($({},jt,{newState:0,oldState:0,source:0})),Kt=[9,13,27,32],Jt=ft&&"CompositionEvent"in window,Zt=null;ft&&"documentMode"in document&&(Zt=document.documentMode);var Yt=ft&&"TextEvent"in window&&!Zt,Xt=ft&&(!Jt||Zt&&8<Zt&&11>=Zt),Qt=String.fromCharCode(32),en=!1;function rn(e,r){switch(e){case"keyup":return-1!==Kt.indexOf(r.keyCode);case"keydown":return 229!==r.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var nn=!1,on={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function an(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===r?!!on[e.type]:"textarea"===r}function ln(e,r,t,n){ot?at?at.push(n):at=[n]:ot=n,0<(r=Od(r,"onChange")).length&&(t=new xt("onChange","change",null,t,n),e.push({event:t,listeners:r}))}var un=null,sn=null;function cn(e){gd(e,0)}function fn(e){if(Mr(wr(e)))return e}function dn(e,r){if("change"===e)return r}var hn=!1;if(ft){var mn;if(ft){var pn="oninput"in document;if(!pn){var vn=document.createElement("div");vn.setAttribute("oninput","return;"),pn="function"==typeof vn.oninput}mn=pn}else mn=!1;hn=mn&&(!document.documentMode||9<document.documentMode)}function yn(){un&&(un.detachEvent("onpropertychange",bn),sn=un=null)}function bn(e){if("value"===e.propertyName&&fn(sn)){var r=[];ln(r,sn,e,it(e)),st(cn,r)}}function gn(e,r,t){"focusin"===e?(yn(),sn=t,(un=r).attachEvent("onpropertychange",bn)):"focusout"===e&&yn()}function wn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fn(sn)}function kn(e,r){if("click"===e)return fn(r)}function $n(e,r){if("input"===e||"change"===e)return fn(r)}var Sn="function"==typeof Object.is?Object.is:function(e,r){return e===r&&(0!==e||1/e==1/r)||e!=e&&r!=r};function En(e,r){if(Sn(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(n=0;n<t.length;n++){var i=t[n];if(!Se.call(r,i)||!Sn(e[i],r[i]))return!1}return!0}function jn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(r){return e.body}}function xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function On(e,r){var t,n=xn(e);for(e=0;n;){if(3===n.nodeType){if(t=e+n.textContent.length,e<=r&&t>=r)return{node:n,offset:r-e};e=t}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xn(n)}}function An(e,r){return!(!e||!r)&&(e===r||(!e||3!==e.nodeType)&&(r&&3===r.nodeType?An(e,r.parentNode):"contains"in e?e.contains(r):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(r))))}function Cn(e){for(var r=jn((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);r instanceof e.HTMLIFrameElement;){try{var t="string"==typeof r.contentWindow.location.href}catch(e){t=!1}if(!t)break;r=jn((e=r.contentWindow).document)}return r}function _n(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&("input"===r&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===r||"true"===e.contentEditable)}var In=ft&&"documentMode"in document&&11>=document.documentMode,Dn=null,Pn=null,Fn=null,qn=!1;function Nn(e,r,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;qn||null==Dn||Dn!==jn(n)||(n="selectionStart"in(n=Dn)&&_n(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Fn&&En(Fn,n)||(Fn=n,0<(n=Od(Pn,"onSelect")).length&&(r=new xt("onSelect","select",null,r,t),e.push({event:r,listeners:n}),r.target=Dn)))}function Tn(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit"+e]="webkit"+r,t["Moz"+e]="moz"+r,t}var Rn={animationend:Tn("Animation","AnimationEnd"),animationiteration:Tn("Animation","AnimationIteration"),animationstart:Tn("Animation","AnimationStart"),transitionrun:Tn("Transition","TransitionRun"),transitionstart:Tn("Transition","TransitionStart"),transitioncancel:Tn("Transition","TransitionCancel"),transitionend:Tn("Transition","TransitionEnd")},Mn={},zn={};function Un(e){if(Mn[e])return Mn[e];if(!Rn[e])return e;var r,t=Rn[e];for(r in t)if(t.hasOwnProperty(r)&&r in zn)return Mn[e]=t[r];return e}ft&&(zn=document.createElement("div").style,"AnimationEvent"in window||(delete Rn.animationend.animation,delete Rn.animationiteration.animation,delete Rn.animationstart.animation),"TransitionEvent"in window||delete Rn.transitionend.transition);var Ln=Un("animationend"),Bn=Un("animationiteration"),Vn=Un("animationstart"),Hn=Un("transitionrun"),Wn=Un("transitionstart"),Gn=Un("transitioncancel"),Kn=Un("transitionend"),Jn=new Map,Zn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Yn(e,r){Jn.set(e,r),xr(r,[e])}Zn.push("scrollEnd");var Xn=0;function Qn(e,r){return null!=e.name&&"auto"!==e.name?e.name:null!==r.autoName?r.autoName:(e="_"+(e=tf.identifierPrefix)+"t_"+(Xn++).toString(32)+"_",r.autoName=e)}function ei(e){if(null==e||"string"==typeof e)return e;var r=null,t=ff;if(null!==t)for(var n=0;n<t.length;n++){var i=e[t[n]];if(null!=i){if("none"===i)return"none";r=null==r?i:r+" "+i}}return null==r?e.default:r}function ri(e,r){return e=ei(e),null==(r=ei(r))?"auto"===e?null:e:"auto"===r?null:r}var ti="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:String("object"==typeof e&&null!==e&&"string"==typeof e.message?e.message:e),error:e});if(!window.dispatchEvent(r))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},ni=[],ii=0,oi=0;function ai(){for(var e=ii,r=oi=ii=0;r<e;){var t=ni[r];ni[r++]=null;var n=ni[r];ni[r++]=null;var i=ni[r];ni[r++]=null;var o=ni[r];if(ni[r++]=null,null!==n&&null!==i){var a=n.pending;null===a?i.next=i:(i.next=a.next,a.next=i),n.pending=i}0!==o&&ci(t,i,o)}}function li(e,r,t,n){ni[ii++]=e,ni[ii++]=r,ni[ii++]=t,ni[ii++]=n,oi|=n,e.lanes|=n,null!==(e=e.alternate)&&(e.lanes|=n)}function ui(e,r,t,n){return li(e,r,t,n),fi(e)}function si(e,r){return li(e,null,null,r),fi(e)}function ci(e,r,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t);for(var i=!1,o=e.return;null!==o;)o.childLanes|=t,null!==(n=o.alternate)&&(n.childLanes|=t),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==r&&(i=31-ze(t),null===(n=(e=o.hiddenUpdates)[i])?e[i]=[r]:n.push(r),r.lane=536870912|t),o):null}function fi(e){if(50<df)throw df=0,hf=null,Error(n(185));for(var r=e.return;null!==r;)r=(e=r).return;return 3===e.tag?e.stateNode:null}var di={};function hi(e,r,t,n){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mi(e,r,t,n){return new hi(e,r,t,n)}function pi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function vi(e,r){var t=e.alternate;return null===t?((t=mi(e.tag,r,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=r,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1206910976&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.dependencies=null===(r=e.dependencies)?null:{lanes:r.lanes,firstContext:r.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function yi(e,r){e.flags&=1206910978;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,e.dependencies=null===(r=t.dependencies)?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function bi(e,r,t,i,o,a){var l=0;if("function"==typeof(i=e))pi(i)&&(l=1);else if("string"==typeof i)l=function(e,r,t){if(1===t||null!=r.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof r.precedence||"string"!=typeof r.href||""===r.href)break;return!0;case"link":if("string"!=typeof r.rel||"string"!=typeof r.href||""===r.href||r.onLoad||r.onError)break;return"stylesheet"!==r.rel||(e=r.disabled,"string"==typeof r.precedence&&null==e);case"script":if(r.async&&"function"!=typeof r.async&&"symbol"!=typeof r.async&&!r.onLoad&&!r.onError&&r.src&&"string"==typeof r.src)return!0}return!1}(e,t,oe.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(i){case N:return(e=mi(31,t,r,o)).elementType=N,e.lanes=a,e;case x:return gi(t.children,o,a,r);case O:l=8,o|=24;break;case A:return(e=mi(12,t,r,2|o)).elementType=A,e.lanes=a,e;case D:return(e=mi(13,t,r,o)).elementType=D,e.lanes=a,e;case P:return(e=mi(19,t,r,o)).elementType=P,e.lanes=a,e;case T:case M:return(e=mi(30,t,r,e=32|o)).elementType=M,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if("object"==typeof i&&null!==i)switch(i.$$typeof){case _:l=10;break e;case C:l=9;break e;case I:l=11;break e;case F:l=14;break e;case q:l=16,i=null;break e}l=29,t=Error(n(130,null===e?"null":typeof e,"")),i=null}return(r=mi(l,t,r,o)).elementType=e,r.type=i,r.lanes=a,r}function gi(e,r,t,n){return(e=mi(7,e,n,r)).lanes=t,e}function wi(e,r,t){return(e=mi(6,e,null,r)).lanes=t,e}function ki(e){var r=mi(18,null,null,0);return r.stateNode=e,r}function $i(e,r,t){return(r=mi(4,null!==e.children?e.children:[],e.key,r)).lanes=t,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var Si=new WeakMap;function Ei(e,r){if("object"==typeof e&&null!==e){var t=Si.get(e);return void 0!==t?t:(r={value:e,source:r,stack:$e(r)},Si.set(e,r),r)}return{value:e,source:r,stack:$e(r)}}var ji=[],xi=0,Oi=null,Ai=0,Ci=[],_i=0,Ii=null,Di=1,Pi="";function Fi(e,r){ji[xi++]=Ai,ji[xi++]=Oi,Oi=e,Ai=r}function qi(e,r,t){Ci[_i++]=Di,Ci[_i++]=Pi,Ci[_i++]=Ii,Ii=e;var n=Di;e=Pi;var i=32-ze(n)-1;n&=~(1<<i),t+=1;var o=32-ze(r)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,Di=1<<32-ze(r)+i|t<<i|n,Pi=o+e}else Di=1<<o|t<<i|n,Pi=e}function Ni(e){null!==e.return&&(Fi(e,1),qi(e,1,0))}function Ti(e){for(;e===Oi;)Oi=ji[--xi],ji[xi]=null,Ai=ji[--xi],ji[xi]=null;for(;e===Ii;)Ii=Ci[--_i],Ci[_i]=null,Pi=Ci[--_i],Ci[_i]=null,Di=Ci[--_i],Ci[_i]=null}function Ri(e,r){Ci[_i++]=Di,Ci[_i++]=Pi,Ci[_i++]=Ii,Di=r.id,Pi=r.overflow,Ii=e}var Mi=null,zi=null,Ui=!1,Li=null,Bi=!1,Vi=Error(n(519));function Hi(e){throw Yi(Ei(Error(n(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),Vi}function Wi(e){var r=e.stateNode,t=e.type,n=e.memoizedProps;switch(r[ur]=e,r[sr]=n,t){case"dialog":wd("cancel",r),wd("close",r);break;case"iframe":case"object":case"embed":wd("load",r);break;case"video":case"audio":for(t=0;t<yd.length;t++)wd(yd[t],r);break;case"source":wd("error",r);break;case"img":case"image":case"link":wd("error",r),wd("load",r);break;case"details":wd("toggle",r);break;case"input":wd("invalid",r),Br(r,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":wd("invalid",r);break;case"textarea":wd("invalid",r),Gr(r,n.value,n.defaultValue,n.children)}"string"!=typeof(t=n.children)&&"number"!=typeof t&&"bigint"!=typeof t||r.textContent===""+t||!0===n.suppressHydrationWarning||Pd(r.textContent,t)?(null!=n.popover&&(wd("beforetoggle",r),wd("toggle",r)),null!=n.onScroll&&wd("scroll",r),null!=n.onScrollEnd&&wd("scrollend",r),null!=n.onClick&&(r.onclick=tt),r=!0):r=!1,r||Hi(e,!0)}function Gi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:return void(Bi=!1);case 27:case 3:return void(Bi=!0);default:Mi=Mi.return}}function Ki(e){if(e!==Mi)return!1;if(!Ui)return Gi(e),Ui=!0,!1;var r,t=e.tag;if((r=3!==t&&27!==t)&&((r=5===t)&&(r=!("form"!==(r=e.type)&&"button"!==r)||Hd(e.type,e.memoizedProps)),r=!r),r&&zi&&Hi(e),Gi(e),13===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));zi=Ph(e)}else if(31===t){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));zi=Ph(e)}else 27===t?(t=zi,Qd(e.type)?(e=Dh,Dh=null,zi=e):zi=t):zi=Mi?Ih(e.stateNode.nextSibling):null;return!0}function Ji(){zi=Mi=null,Ui=!1}function Zi(){var e=Li;return null!==e&&(null===Kc?Kc=e:Kc.push.apply(Kc,e),Li=null),e}function Yi(e){null===Li?Li=[e]:Li.push(e)}var Xi=Y(null),Qi=null,eo=null;function ro(e,r,t){Q(Xi,r._currentValue),r._currentValue=t}function to(e){e._currentValue=Xi.current,X(Xi)}function no(e,r,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,null!==n&&(n.childLanes|=r)):null!==n&&(n.childLanes&r)!==r&&(n.childLanes|=r),e===t)break;e=e.return}}function io(e,r,t,i){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var l=o.child;a=a.firstContext;e:for(;null!==a;){var u=a;a=o;for(var s=0;s<r.length;s++)if(u.context===r[s]){a.lanes|=t,null!==(u=a.alternate)&&(u.lanes|=t),no(a.return,t,e),i||(l=null);break e}a=u.next}}else if(18===o.tag){if(null===(l=o.return))throw Error(n(341));l.lanes|=t,null!==(a=l.alternate)&&(a.lanes|=t),no(l,t,e),l=null}else 13===o.tag&&null!==o.memoizedState&&null===o.memoizedState.dehydrated?(o.lanes|=t,null!==(l=o.alternate)&&(l.lanes|=t),no(o.return,t,e),l=null!==(l=o.child)?l.sibling:null):l=o.child;if(null!==l)l.return=o;else for(l=o;null!==l;){if(l===e){l=null;break}if(null!==(o=l.sibling)){o.return=l.return,l=o;break}l=l.return}o=l}}function oo(e,r,t,i){e=null;for(var o=r,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var l=o.alternate;if(null===l)throw Error(n(387));if(null!==(l=l.memoizedProps)){var u=o.type;Sn(o.pendingProps.value,l.value)||(null!==e?e.push(u):e=[u])}}else if(o===fe.current){if(null===(l=o.alternate))throw Error(n(387));l.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(mm):e=[mm])}o=o.return}return null!==e&&io(r,e,t,i),r.flags|=262144,null!==e}function ao(e){for(e=e.firstContext;null!==e;){if(!Sn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function lo(e){Qi=e,eo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function uo(e){return co(Qi,e)}function so(e,r){return null===Qi&&lo(e),co(e,r)}function co(e,r){var t=r._currentValue;if(r={context:r,memoizedValue:t,next:null},null===eo){if(null===e)throw Error(n(308));eo=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else eo=eo.next=r;return t}var fo="undefined"!=typeof AbortController?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(r,t){e.push(t)}};this.abort=function(){r.aborted=!0,e.forEach((function(e){return e()}))}},ho=e.unstable_scheduleCallback,mo=e.unstable_NormalPriority,po={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vo(){return{controller:new fo,data:new Map,refCount:0}}function yo(e){e.refCount--,0===e.refCount&&ho(mo,(function(){e.controller.abort()}))}function bo(e,r){if(4194048&e.pendingLanes){var t=e.transitionTypes;for(null===t&&(t=e.transitionTypes=[]),e=0;e<r.length;e++){var n=r[e];-1===t.indexOf(n)&&t.push(n)}}}var go=null,wo=null,ko=0,$o=0,So=null;function Eo(){if(0==--ko&&(go=null,null!==wo)){null!==So&&(So.status="fulfilled");var e=wo;wo=null,$o=0,So=null;for(var r=0;r<e.length;r++)(0,e[r])()}}var jo=W.S;W.S=function(e,r){if(Yc=Ae(),"object"==typeof r&&null!==r&&"function"==typeof r.then&&function(e,r){if(null===wo){var t=wo=[];ko=0,$o=hd(),So={status:"pending",value:void 0,then:function(e){t.push(e)}}}ko++,r.then(Eo,Eo)}(0,r),null!==go)for(var t=ed;null!==t;)bo(t,go),t=t.next;if(null!==(t=e.types)){for(var n=ed;null!==n;)bo(n,t),n=n.next;if(0!==$o){null===(n=go)&&(n=go=[]);for(var i=0;i<t.length;i++){var o=t[i];-1===n.indexOf(o)&&n.push(o)}}}null!==jo&&jo(e,r)};var xo=Y(null);function Oo(){var e=xo.current;return null!==e?e:Dc.pooledCache}function Ao(e,r){Q(xo,null===r?xo.current:r.pool)}function Co(){var e=Oo();return null===e?null:{parent:po._currentValue,pool:e}}var _o=Error(n(460)),Io=Error(n(474)),Do=Error(n(542)),Po={then:function(){}};function Fo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function qo(e,r,t){switch(void 0===(t=e[t])?e.push(r):t!==r&&(r.then(tt,tt),r=t),r.status){case"fulfilled":return r.value;case"rejected":if(Mo(e=r.reason),void 0===e&&!("reason"in r))throw Error(n(600));throw e;default:if("string"==typeof r.status)r.then(tt,tt);else{if(null!==(e=Dc)&&100<e.shellSuspendCounter)throw Error(n(482));(e=r).status="pending",e.then((function(e){if("pending"===r.status){var t=r;t.status="fulfilled",t.value=e}}),(function(e){if("pending"===r.status){var t=r;t.status="rejected",t.reason=e}}))}switch(r.status){case"fulfilled":return r.value;case"rejected":throw Mo(e=r.reason),e}throw To=r,_o}}function No(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw To=e,_o;throw e}}var To=null;function Ro(){if(null===To)throw Error(n(459));var e=To;return To=null,e}function Mo(e){if(e===_o||e===Do)throw Error(n(483))}var zo=null,Uo=0;function Lo(e){var r=Uo;return Uo+=1,null===zo&&(zo=[]),qo(zo,e,r)}function Bo(e,r){e.ref=void 0!==(r=r.props.ref)?r:null}function Vo(e,r){if(r.$$typeof===S)throw Error(n(525));throw e=Object.prototype.toString.call(r),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Ho(e){function r(r,t){if(e){var n=r.deletions;null===n?(r.deletions=[t],r.flags|=16):n.push(t)}}function t(t,n){if(!e)return null;for(;null!==n;)r(t,n),n=n.sibling;return null}function i(e){for(var r=new Map;null!==e;)r.set(null===e.key?e.index:e.key,e),e=e.sibling;return r}function o(e,r){return(e=vi(e,r)).index=0,e.sibling=null,e}function a(r,t,n){return r.index=n,e?null!==(n=r.alternate)?(n=n.index)<t?(r.flags|=2,t):n:(r.flags|=134217730,t):(r.flags|=1048576,t)}function l(r){return e&&null===r.alternate&&(r.flags|=134217730),r}function u(e,r,t,n){return null===r||6!==r.tag?((r=wi(t,e.mode,n)).return=e,r):((r=o(r,t)).return=e,r)}function s(e,r,t,n){var i=t.type;return i===x?(Bo(e=f(e,r,t.props.children,n,t.key),t),e):null!==r&&(r.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===q&&No(i)===r.type)?(Bo(r=o(r,t.props),t),r.return=e,r):(Bo(r=bi(t.type,t.key,t.props,null,e.mode,n),t),r.return=e,r)}function c(e,r,t,n){return null===r||4!==r.tag||r.stateNode.containerInfo!==t.containerInfo||r.stateNode.implementation!==t.implementation?((r=$i(t,e.mode,n)).return=e,r):((r=o(r,t.children||[])).return=e,r)}function f(e,r,t,n,i){return null===r||7!==r.tag?((r=gi(t,e.mode,n,i)).return=e,r):((r=o(r,t)).return=e,r)}function d(e,r,t){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return(r=wi(""+r,e.mode,t)).return=e,r;if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return Bo(t=bi(r.type,r.key,r.props,null,e.mode,t),r),t.return=e,t;case j:return(r=$i(r,e.mode,t)).return=e,r;case q:return d(e,r=No(r),t)}if(H(r)||L(r))return(r=gi(r,e.mode,t,null)).return=e,r;if("function"==typeof r.then)return d(e,Lo(r),t);if(r.$$typeof===_)return d(e,so(e,r),t);Vo(e,r)}return null}function h(e,r,t,n){var i=null!==r?r.key:null;if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return null!==i?null:u(e,r,""+t,n);if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return t.key===i?s(e,r,t,n):null;case j:return t.key===i?c(e,r,t,n):null;case q:return h(e,r,t=No(t),n)}if(H(t)||L(t))return null!==i?null:f(e,r,t,n,null);if("function"==typeof t.then)return h(e,r,Lo(t),n);if(t.$$typeof===_)return h(e,r,so(e,t),n);Vo(e,t)}return null}function m(e,r,t,n,i){if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return u(r,e=e.get(t)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return s(r,e=e.get(null===n.key?t:n.key)||null,n,i);case j:return c(r,e=e.get(null===n.key?t:n.key)||null,n,i);case q:return m(e,r,t,n=No(n),i)}if(H(n)||L(n))return f(r,e=e.get(t)||null,n,i,null);if("function"==typeof n.then)return m(e,r,t,Lo(n),i);if(n.$$typeof===_)return m(e,r,t,so(r,n),i);Vo(r,n)}return null}function p(u,s,c,f){if("object"==typeof c&&null!==c&&c.type===x&&null===c.key&&void 0===c.props.ref&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case E:e:{for(var v=c.key;null!==s;){if(s.key===v){if((v=c.type)===x){if(7===s.tag){t(u,s.sibling),Bo(f=o(s,c.props.children),c),f.return=u,u=f;break e}}else if(s.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===q&&No(v)===s.type){t(u,s.sibling),Bo(f=o(s,c.props),c),f.return=u,u=f;break e}t(u,s);break}r(u,s),s=s.sibling}c.type===x?(Bo(f=gi(c.props.children,u.mode,f,c.key),c),f.return=u,u=f):(Bo(f=bi(c.type,c.key,c.props,null,u.mode,f),c),f.return=u,u=f)}return l(u);case j:e:{for(v=c.key;null!==s;){if(s.key===v){if(4===s.tag&&s.stateNode.containerInfo===c.containerInfo&&s.stateNode.implementation===c.implementation){t(u,s.sibling),(f=o(s,c.children||[])).return=u,u=f;break e}t(u,s);break}r(u,s),s=s.sibling}(f=$i(c,u.mode,f)).return=u,u=f}return l(u);case q:return p(u,s,c=No(c),f)}if(H(c))return function(n,o,l,u){for(var s=null,c=null,f=o,p=o=0,v=null;null!==f&&p<l.length;p++){f.index>p?(v=f,f=null):v=f.sibling;var y=h(n,f,l[p],u);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&r(n,f),o=a(y,o,p),null===c?s=y:c.sibling=y,c=y,f=v}if(p===l.length)return t(n,f),Ui&&Fi(n,p),s;if(null===f){for(;p<l.length;p++)null!==(f=d(n,l[p],u))&&(o=a(f,o,p),null===c?s=f:c.sibling=f,c=f);return Ui&&Fi(n,p),s}for(f=i(f);p<l.length;p++)null!==(v=m(f,n,p,l[p],u))&&(e&&null!==(y=v.alternate)&&f.delete(null===y.key?p:y.key),o=a(v,o,p),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return r(n,e)})),Ui&&Fi(n,p),s}(u,s,c,f);if(L(c)){if("function"!=typeof(v=L(c)))throw Error(n(150));return function(o,l,u,s){if(null==u)throw Error(n(151));for(var c=null,f=null,p=l,v=l=0,y=null,b=u.next();null!==p&&!b.done;v++,b=u.next()){p.index>v?(y=p,p=null):y=p.sibling;var g=h(o,p,b.value,s);if(null===g){null===p&&(p=y);break}e&&p&&null===g.alternate&&r(o,p),l=a(g,l,v),null===f?c=g:f.sibling=g,f=g,p=y}if(b.done)return t(o,p),Ui&&Fi(o,v),c;if(null===p){for(;!b.done;v++,b=u.next())null!==(b=d(o,b.value,s))&&(l=a(b,l,v),null===f?c=b:f.sibling=b,f=b);return Ui&&Fi(o,v),c}for(p=i(p);!b.done;v++,b=u.next())null!==(b=m(p,o,v,b.value,s))&&(e&&null!==(y=b.alternate)&&p.delete(null===y.key?v:y.key),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b);return e&&p.forEach((function(e){return r(o,e)})),Ui&&Fi(o,v),c}(u,s,c=v.call(c),f)}if("function"==typeof c.then)return p(u,s,Lo(c),f);if(c.$$typeof===_)return p(u,s,so(u,c),f);Vo(u,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==s&&6===s.tag?(t(u,s.sibling),(f=o(s,c)).return=u,u=f):(t(u,s),(f=wi(c,u.mode,f)).return=u,u=f),l(u)):t(u,s)}return function(e,r,t,n){try{Uo=0;var i=p(e,r,t,n);return zo=null,i}catch(r){if(r===_o||r===Do)throw r;var o=mi(29,r,null,e.mode);return o.lanes=n,o.return=e,o}}}var Wo=Ho(!0),Go=Ho(!1),Ko=!1;function Jo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zo(e,r){r.updateQueue===(e=e.updateQueue)&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xo(e,r,t){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Ic){var i=n.pending;return null===i?r.next=r:(r.next=i.next,i.next=r),n.pending=r,r=fi(e),ci(e,null,t),r}return li(e,n,r,t),fi(e)}function Qo(e,r,t){if(null!==(r=r.updateQueue)&&(r=r.shared,4194048&t)){var n=r.lanes;r.lanes=t|=n&=e.pendingLanes,rr(e,t)}}function ea(e,r){var t=e.updateQueue,n=e.alternate;if(null===n||t!==(n=n.updateQueue))null===(e=t.lastBaseUpdate)?t.firstBaseUpdate=r:e.next=r,t.lastBaseUpdate=r;else{var i=null,o=null;if(null!==(t=t.firstBaseUpdate)){do{var a={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,t=t.next}while(null!==t);null===o?i=o=r:o=o.next=r}else i=o=r;e.updateQueue=t={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks}}}var ra=!1;function ta(){if(ra&&null!==So)throw So}function na(e,r,t,n){ra=!1;var i=e.updateQueue;Ko=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?o=s:a.next=s,a=u;var c=e.alternate;null!==c&&(l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u)}if(null!==o){var f=i.baseState;for(a=0,c=s=u=null,l=o;;){var d=-536870913&l.lane,h=d!==l.lane;if(h?(Fc&d)===d:(n&d)===d){0!==d&&d===$o&&(ra=!0),null!==c&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,p=l;d=r;var v=t;switch(p.tag){case 1:if("function"==typeof(m=p.payload)){f=m.call(v,f,d);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(d="function"==typeof(m=p.payload)?m.call(v,f,d):m))break e;f=$({},f,d);break e;case 2:Ko=!0}}null!==(d=l.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=h,u=f):c=c.next=h,a|=d;if(null===(l=l.next)){if(null===(l=i.shared.pending))break;l=(h=l).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(u=f),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=c,null===o&&(i.shared.lanes=0),Lc|=a,e.lanes=a,e.memoizedState=f}}function ia(e,r){if("function"!=typeof e)throw Error(n(191,e));e.call(r)}function oa(e,r){var t=e.callbacks;if(null!==t)for(e.callbacks=null,e=0;e<t.length;e++)ia(t[e],r)}var aa=Y(null),la=Y(0);function ua(e,r){Q(la,e=zc),Q(aa,r),zc=e|r.baseLanes}function sa(){Q(la,zc),Q(aa,aa.current)}function ca(){zc=la.current,X(aa),X(la)}var fa=Y(null),da=null;function ha(e){var r=e.alternate;Q(ba,1&ba.current),Q(fa,e),null===da&&(null===r||null!==aa.current||null!==r.memoizedState)&&(da=e)}function ma(e){Q(ba,ba.current),Q(fa,e),null===da&&(da=e)}function pa(e){22===e.tag?(Q(ba,ba.current),Q(fa,e),null===da&&(da=e)):va()}function va(){Q(ba,ba.current),Q(fa,fa.current)}function ya(e){X(fa),da===e&&(da=null),X(ba)}var ba=Y(0);function ga(e,r){Q(fa,fa.current),Q(ba,r)}function wa(e){X(ba),X(fa),da===e&&(da=null)}function ka(e){for(var r=e;null!==r;){if(13===r.tag){var t=r.memoizedState;if(null!==t&&(null===(t=t.dehydrated)||Ch(t)||_h(t)))return r}else if(19===r.tag&&"independent"!==r.memoizedProps.revealOrder){if(128&r.flags)return r}else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var $a=0,Sa=null,Ea=null,ja=null,xa=!1,Oa=!1,Aa=!1,Ca=0,_a=0,Ia=null,Da=0;function Pa(){throw Error(n(321))}function Fa(e,r){if(null===r)return!1;for(var t=0;t<r.length&&t<e.length;t++)if(!Sn(e[t],r[t]))return!1;return!0}function qa(e,r,t,n,i,o){return $a=o,Sa=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,W.H=null===e||null===e.memoizedState?Zl:Yl,Aa=!1,o=t(n,i),Aa=!1,Oa&&(o=Ta(r,t,n,i)),Na(e),o}function Na(e){W.H=Jl;var r=null!==Ea&&null!==Ea.next;if($a=0,ja=Ea=Sa=null,xa=!1,_a=0,Ia=null,r)throw Error(n(300));null===e||hu||null!==(e=e.dependencies)&&ao(e)&&(hu=!0)}function Ta(e,r,t,i){Sa=e;var o=0;do{if(Oa&&(Ia=null),_a=0,Oa=!1,25<=o)throw Error(n(301));if(o+=1,ja=Ea=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}W.H=Xl,a=r(t,i)}while(Oa);return a}function Ra(){var e=W.H,r=e.useState()[0];return r="function"==typeof r.then?Va(r):r,e=e.useState()[0],(null!==Ea?Ea.memoizedState:null)!==e&&(Sa.flags|=1024),r}function Ma(){var e=0!==Ca;return Ca=0,e}function za(e,r,t){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~t}function Ua(e){if(xa){for(e=e.memoizedState;null!==e;){var r=e.queue;null!==r&&(r.pending=null),e=e.next}xa=!1}$a=0,ja=Ea=Sa=null,Oa=!1,_a=Ca=0,Ia=null}function La(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ja?Sa.memoizedState=ja=e:ja=ja.next=e,ja}function Ba(){if(null===Ea){var e=Sa.alternate;e=null!==e?e.memoizedState:null}else e=Ea.next;var r=null===ja?Sa.memoizedState:ja.next;if(null!==r)ja=r,Ea=e;else{if(null===e){if(null===Sa.alternate)throw Error(n(467));throw Error(n(310))}e={memoizedState:(Ea=e).memoizedState,baseState:Ea.baseState,baseQueue:Ea.baseQueue,queue:Ea.queue,next:null},null===ja?Sa.memoizedState=ja=e:ja=ja.next=e}return ja}function Va(e){var r=_a;return _a+=1,null===Ia&&(Ia=[]),e=qo(Ia,e,r),r=Sa,null===(null===ja?r.memoizedState:ja.next)&&(W.H=null===(r=r.alternate)||null===r.memoizedState?Zl:Yl),e}function Ha(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return Va(e);if(e.$$typeof===z)return;if(e.$$typeof===_)return uo(e)}throw Error(n(438,String(e)))}function Wa(e){var r=null,t=Sa.updateQueue;if(null!==t&&(r=t.memoCache),null==r){var n=Sa.alternate;null!==n&&null!==(n=n.updateQueue)&&null!=(n=n.memoCache)&&(r={data:n.data.map((function(e){return e.slice()})),index:0})}if(null==r&&(r={data:[],index:0}),null===t&&(Sa.updateQueue=t={lastEffect:null,events:null,stores:null,memoCache:null}),t.memoCache=r,void 0===(t=r.data[r.index]))for(t=r.data[r.index]=Array(e),n=0;n<e;n++)t[n]=R;return r.index++,t}function Ga(e,r){return"function"==typeof r?r(e):r}function Ka(e){return Ja(Ba(),Ea,e)}function Ja(e,r,t){var i=e.queue;if(null===i)throw Error(n(311));i.lastRenderedReducer=t;var o=e.baseQueue,a=i.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,i.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var u=l=null,s=null,c=r=o.next,f=!1;do{var d=-536870913&c.lane;if(d!==c.lane?(Fc&d)===d:($a&d)===d){var h=c.revertLane;if(0===h)null!==s&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===$o&&(f=!0);else{if(($a&h)===h){c=c.next,h===$o&&(f=!0);continue}d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=d,l=a):s=s.next=d,Sa.lanes|=h,Lc|=h}d=c.action,Aa&&t(a,d),a=c.hasEagerState?c.eagerState:t(a,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===s?(u=s=h,l=a):s=s.next=h,Sa.lanes|=d,Lc|=d;c=c.next}while(null!==c&&c!==r);if(null===s?l=a:s.next=u,!Sn(a,e.memoizedState)&&(hu=!0,f&&null!==(t=So)))throw t;e.memoizedState=a,e.baseState=l,e.baseQueue=s,i.lastRenderedState=a}return null===o&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Za(e){var r=Ba(),t=r.queue;if(null===t)throw Error(n(311));t.lastRenderedReducer=e;var i=t.dispatch,o=t.pending,a=r.memoizedState;if(null!==o){t.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);Sn(a,r.memoizedState)||(hu=!0),r.memoizedState=a,null===r.baseQueue&&(r.baseState=a),t.lastRenderedState=a}return[a,i]}function Ya(e,r,t){var i=Sa,o=Ba(),a=Ui;if(a){if(void 0===t)throw Error(n(407));t=t()}else t=r();var l=!Sn((Ea||o).memoizedState,t);if(l&&(o.memoizedState=t,hu=!0),$l(el.bind(null,i,o=o.queue,e),[e]),yl((e=o.getSnapshot!==r||l||null!==ja&&!!(1&ja.memoizedState.tag))?9:8,{destroy:void 0},Qa.bind(null,i,o,t,r),null),e){if(i.flags|=2048,null===Dc)throw Error(n(349));a||127&$a||Xa(i,r,t)}return t}function Xa(e,r,t){e.flags|=16384,e={getSnapshot:r,value:t},null===(r=Sa.updateQueue)?(Sa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null},r.stores=[e]):null===(t=r.stores)?r.stores=[e]:t.push(e)}function Qa(e,r,t,n){r.value=t,r.getSnapshot=n,rl(r)&&tl(e)}function el(e,r,t){return t((function(){rl(r)&&tl(e)}))}function rl(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!Sn(e,t)}catch(e){return!0}}function tl(e){var r=si(e,2);null!==r&&yf(r,0,2)}function nl(e){var r=La();if("function"==typeof e){var t=e;if(e=t(),Aa){Me(!0);try{t()}finally{Me(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:e},r}function il(e,r,t,n){return e.baseState=t,Ja(e,Ea,"function"==typeof n?n:Ga)}function ol(e,r,t,i,o){if(Wl(e))throw Error(n(485));if(null!==(e=r.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==W.T?t(!0):a.isTransition=!1,i(a),null===(t=r.pending)?(a.next=r.pending=a,al(r,a)):(a.next=t.next,r.pending=t.next=a)}}function al(e,r){var t=r.action,n=r.payload,i=e.state;if(r.isTransition){var o=W.T,a={};a.types=null!==o?o.types:null,W.T=a;try{var l=t(i,n),u=W.S;null!==u&&u(a,l),ll(e,r,l)}catch(t){sl(e,r,t)}finally{null!==o&&null!==a.types&&(o.types=a.types),W.T=o}}else try{ll(e,r,o=t(i,n))}catch(t){sl(e,r,t)}}function ll(e,r,t){null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then((function(t){ul(e,r,t)}),(function(t){return sl(e,r,t)})):ul(e,r,t)}function ul(e,r,t){r.status="fulfilled",r.value=t,cl(r),e.state=t,null!==(r=e.pending)&&((t=r.next)===r?e.pending=null:(r.next=t=t.next,al(e,t)))}function sl(e,r,t){var n=e.pending;if(e.pending=null,null!==n){n=n.next;do{r.status="rejected",r.reason=t,cl(r),r=r.next}while(r!==n)}e.action=null}function cl(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function fl(e,r){return r}function dl(e,r){if(Ui){var t=Dc.formState;if(null!==t){e:{var n=Sa;if(Ui){if(zi){r:{for(var i=zi,o=Bi;8!==i.nodeType;){if(!o){i=null;break r}if(null===(i=Ih(i.nextSibling))){i=null;break r}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){zi=Ih(i.nextSibling),n="F!"===i.data;break e}}Hi(n)}n=!1}n&&(r=t[0])}}return(t=La()).memoizedState=t.baseState=r,t.queue=n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:r},t=Bl.bind(null,Sa,n),n.dispatch=t,n=nl(!1),o=Hl.bind(null,Sa,!1,n.queue),(n=La()).queue=i={state:r,dispatch:null,action:e,pending:null},t=ol.bind(null,Sa,i,o,t),i.dispatch=t,n.memoizedState=e,[r,t,!1]}function hl(e){return ml(Ba(),Ea,e)}function ml(e,r,t){if(r=Ja(e,r,fl)[0],e=Ka(Ga)[0],"object"==typeof r&&null!==r&&"function"==typeof r.then)try{var n=Va(r)}catch(e){if(e===_o)throw Do;throw e}else n=r;var i=(r=Ba()).queue,o=i.dispatch;return t!==r.memoizedState&&(Sa.flags|=2048,yl(9,{destroy:void 0},pl.bind(null,i,t),null)),[n,o,e]}function pl(e,r){e.action=r}function vl(e){var r=Ba(),t=Ea;if(null!==t)return ml(r,t,e);Ba(),r=r.memoizedState;var n=(t=Ba()).queue.dispatch;return t.memoizedState=e,[r,n,!1]}function yl(e,r,t,n){return e={tag:e,create:t,deps:n,inst:r,next:null},null===(r=Sa.updateQueue)&&(Sa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null}),null===(t=r.lastEffect)?r.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,r.lastEffect=e),e}function bl(){return Ba().memoizedState}function gl(e,r,t,n){var i=La();Sa.flags|=e,i.memoizedState=yl(1|r,{destroy:void 0},t,void 0===n?null:n)}function wl(e,r,t,n){var i=Ba();n=void 0===n?null:n;var o=i.memoizedState.inst;null!==Ea&&null!==n&&Fa(n,Ea.memoizedState.deps)?i.memoizedState=yl(r,o,t,n):(Sa.flags|=e,i.memoizedState=yl(1|r,o,t,n))}function kl(e,r){gl(8390656,8,e,r)}function $l(e,r){wl(2048,8,e,r)}function Sl(e){var r=Ba().memoizedState;return function(e){Sa.flags|=4;var r=Sa.updateQueue;if(null===r)Sa.updateQueue=r={lastEffect:null,events:null,stores:null,memoCache:null},r.events=[e];else{var t=r.events;null===t?r.events=[e]:t.push(e)}}({ref:r,nextImpl:e}),function(){if(2&Ic)throw Error(n(440));return r.impl.apply(void 0,arguments)}}function El(e,r){return wl(4,2,e,r)}function jl(e,r){return wl(4,4,e,r)}function xl(e,r){if("function"==typeof r){e=e();var t=r(e);return function(){"function"==typeof t?t():r(null)}}if(null!=r)return e=e(),r.current=e,function(){r.current=null}}function Ol(e,r,t){t=null!=t?t.concat([e]):null,wl(4,4,xl.bind(null,r,e),t)}function Al(){}function Cl(e,r){var t=Ba(),n=t.memoizedState;return null!==(r=void 0===r?null:r)&&Fa(r,n[1])?n[0]:(t.memoizedState=[e,r],e)}function _l(e,r){var t=Ba(),n=t.memoizedState;if(null!==(r=void 0===r?null:r)&&Fa(r,n[1]))return n[0];if(n=e(),Aa){Me(!0);try{e()}finally{Me(!1)}}return t.memoizedState=[n,r],n}function Il(e,r,t){return void 0===t||1073741824&$a&&!(261930&Fc)?e.memoizedState=r:(e.memoizedState=t,e=pf(),Sa.lanes|=e,Lc|=e,t)}function Dl(e,r,t,n){return Sn(t,r)?t:null!==aa.current?(e=Il(e,t,n),Sn(e,r)||(hu=!0),e):106&$a&&(!(1073741824&$a)||261930&Fc)?(e=pf(),Sa.lanes|=e,Lc|=e,r):(hu=!0,e.memoizedState=t)}function Pl(e,r,t,n,i){var o=G.p;G.p=0!==o&&8>o?o:8;var a,l,u,s=W.T,c={};c.types=null!==s?s.types:null,W.T=c,Hl(e,!1,r,t);try{var f=i(),d=W.S;if(null!==d&&d(c,f),null!==f&&"object"==typeof f&&"function"==typeof f.then){var h=(a=n,l=[],u={status:"pending",value:null,reason:null,then:function(e){l.push(e)}},f.then((function(){u.status="fulfilled",u.value=a;for(var e=0;e<l.length;e++)(0,l[e])(a)}),(function(e){for(u.status="rejected",u.reason=e,e=0;e<l.length;e++)(0,l[e])(void 0)})),u);Vl(e,r,h,mf())}else Vl(e,r,n,mf())}catch(t){Vl(e,r,{then:function(){},status:"rejected",reason:t},mf())}finally{G.p=o,null!==s&&null!==c.types&&(s.types=c.types),W.T=s}}function Fl(){}function ql(e,r,t,i){if(5!==e.tag)throw Error(n(476));var o=Nl(e).queue;Pl(e,o,r,K,null===t?Fl:function(){return Tl(e),t(i)})}function Nl(e){var r=e.memoizedState;if(null!==r)return r;var t={};return(r={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:K},next:null}).next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:t},next:null},e.memoizedState=r,null!==(e=e.alternate)&&(e.memoizedState=r),r}function Tl(e){var r=Nl(e);null===r.next&&(r=e.alternate.memoizedState),Vl(e,r.next.queue,{},mf())}function Rl(){return uo(mm)}function Ml(){return Ba().memoizedState}function zl(){return Ba().memoizedState}function Ul(e){for(var r=e.return;null!==r;){switch(r.tag){case 24:case 3:var t=mf(),n=Xo(r,e=Yo(t),t);return null!==n&&(yf(n,0,t),Qo(n,r,t)),r={cache:vo()},void(e.payload=r)}r=r.return}}function Ll(e,r,t){var n=mf();t={lane:n,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null},Wl(e)?Gl(r,t):null!==(t=ui(e,r,t,n))&&(yf(t,0,n),Kl(t,r,n))}function Bl(e,r,t){Vl(e,r,t,mf())}function Vl(e,r,t,n){var i={lane:n,revertLane:0,gesture:null,action:t,hasEagerState:!1,eagerState:null,next:null};if(Wl(e))Gl(r,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=r.lastRenderedReducer))try{var a=r.lastRenderedState,l=o(a,t);if(i.hasEagerState=!0,i.eagerState=l,Sn(l,a))return li(e,r,i,0),null===Dc&&ai(),!1}catch(e){}if(null!==(t=ui(e,r,i,n)))return yf(t,0,n),Kl(t,r,n),!0}return!1}function Hl(e,r,t,i){if(i={lane:2,revertLane:hd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Wl(e)){if(r)throw Error(n(479))}else null!==(r=ui(e,t,i,2))&&yf(r,0,2)}function Wl(e){var r=e.alternate;return e===Sa||null!==r&&r===Sa}function Gl(e,r){Oa=xa=!0;var t=e.pending;null===t?r.next=r:(r.next=t.next,t.next=r),e.pending=r}function Kl(e,r,t){if(4194048&t){var n=r.lanes;r.lanes=t|=n&=e.pendingLanes,rr(e,t)}}var Jl={readContext:uo,use:Ha,useCallback:Pa,useContext:Pa,useEffect:Pa,useImperativeHandle:Pa,useLayoutEffect:Pa,useInsertionEffect:Pa,useMemo:Pa,useReducer:Pa,useRef:Pa,useState:Pa,useDebugValue:Pa,useDeferredValue:Pa,useTransition:Pa,useSyncExternalStore:Pa,useId:Pa,useHostTransitionStatus:Pa,useFormState:Pa,useActionState:Pa,useOptimistic:Pa,useMemoCache:Pa,useCacheRefresh:Pa,useEffectEvent:Pa},Zl={readContext:uo,use:Ha,useCallback:function(e,r){return La().memoizedState=[e,void 0===r?null:r],e},useContext:uo,useEffect:kl,useImperativeHandle:function(e,r,t){t=null!=t?t.concat([e]):null,gl(4194308,4,xl.bind(null,r,e),t)},useLayoutEffect:function(e,r){return gl(4194308,4,e,r)},useInsertionEffect:function(e,r){gl(4,2,e,r)},useMemo:function(e,r){var t=La();r=void 0===r?null:r;var n=e();if(Aa){Me(!0);try{e()}finally{Me(!1)}}return t.memoizedState=[n,r],n},useReducer:function(e,r,t){var n=La();if(void 0!==t){var i=t(r);if(Aa){Me(!0);try{t(r)}finally{Me(!1)}}}else i=r;return n.memoizedState=n.baseState=i,n.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},e=e.dispatch=Ll.bind(null,Sa,e),[n.memoizedState,e]},useRef:function(e){return La().memoizedState={current:e}},useState:function(e){var r=(e=nl(e)).queue,t=Bl.bind(null,Sa,r);return r.dispatch=t,[e.memoizedState,t]},useDebugValue:Al,useDeferredValue:function(e,r){return Il(La(),e,r)},useTransition:function(){var e=nl(!1);return e=Pl.bind(null,Sa,e.queue,!0,!1),La().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,t){var i=Sa,o=La();if(Ui){if(void 0===t)throw Error(n(407));t=t()}else{if(t=r(),null===Dc)throw Error(n(349));127&Fc||Xa(i,r,t)}o.memoizedState=t;var a={value:t,getSnapshot:r};return o.queue=a,kl(el.bind(null,i,a,e),[e]),i.flags|=2048,yl(9,{destroy:void 0},Qa.bind(null,i,a,t,r),null),t},useId:function(){var e=La(),r=Dc.identifierPrefix;if(Ui){var t=Pi;r="_"+r+"R_"+(t=(Di&~(1<<32-ze(Di)-1)).toString(32)+t),0<(t=Ca++)&&(r+="H"+t.toString(32)),r+="_"}else r="_"+r+"r_"+(t=Da++).toString(32)+"_";return e.memoizedState=r},useHostTransitionStatus:Rl,useFormState:dl,useActionState:dl,useOptimistic:function(e){var r=La();r.memoizedState=r.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=t,r=Hl.bind(null,Sa,!0,t),t.dispatch=r,[e,r]},useMemoCache:Wa,useCacheRefresh:function(){return La().memoizedState=Ul.bind(null,Sa)},useEffectEvent:function(e){var r=La(),t={impl:e};return r.memoizedState=t,function(){if(2&Ic)throw Error(n(440));return t.impl.apply(void 0,arguments)}}},Yl={readContext:uo,use:Ha,useCallback:Cl,useContext:uo,useEffect:$l,useImperativeHandle:Ol,useInsertionEffect:El,useLayoutEffect:jl,useMemo:_l,useReducer:Ka,useRef:bl,useState:function(){return Ka(Ga)},useDebugValue:Al,useDeferredValue:function(e,r){return Dl(Ba(),Ea.memoizedState,e,r)},useTransition:function(){var e=Ka(Ga)[0],r=Ba().memoizedState;return["boolean"==typeof e?e:Va(e),r]},useSyncExternalStore:Ya,useId:Ml,useHostTransitionStatus:Rl,useFormState:hl,useActionState:hl,useOptimistic:function(e,r){return il(Ba(),0,e,r)},useMemoCache:Wa,useCacheRefresh:zl,useEffectEvent:Sl},Xl={readContext:uo,use:Ha,useCallback:Cl,useContext:uo,useEffect:$l,useImperativeHandle:Ol,useInsertionEffect:El,useLayoutEffect:jl,useMemo:_l,useReducer:Za,useRef:bl,useState:function(){return Za(Ga)},useDebugValue:Al,useDeferredValue:function(e,r){var t=Ba();return null===Ea?Il(t,e,r):Dl(t,Ea.memoizedState,e,r)},useTransition:function(){var e=Za(Ga)[0],r=Ba().memoizedState;return["boolean"==typeof e?e:Va(e),r]},useSyncExternalStore:Ya,useId:Ml,useHostTransitionStatus:Rl,useFormState:vl,useActionState:vl,useOptimistic:function(e,r){var t=Ba();return null!==Ea?il(t,0,e,r):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:Wa,useCacheRefresh:zl,useEffectEvent:Sl};function Ql(e,r,t,n){t=null==(t=t(n,r=e.memoizedState))?r:$({},r,t),e.memoizedState=t,0===e.lanes&&(e.updateQueue.baseState=t)}var eu={enqueueSetState:function(e,r,t){e=e._reactInternals;var n=mf(),i=Yo(n);i.payload=r,null!=t&&(i.callback=t),null!==(r=Xo(e,i,n))&&(yf(r,0,n),Qo(r,e,n))},enqueueReplaceState:function(e,r,t){e=e._reactInternals;var n=mf(),i=Yo(n);i.tag=1,i.payload=r,null!=t&&(i.callback=t),null!==(r=Xo(e,i,n))&&(yf(r,0,n),Qo(r,e,n))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var t=mf(),n=Yo(t);n.tag=2,null!=r&&(n.callback=r),null!==(r=Xo(e,n,t))&&(yf(r,0,t),Qo(r,e,t))}};function ru(e,r,t,n,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,o,a):!(r.prototype&&r.prototype.isPureReactComponent&&En(t,n)&&En(i,o))}function tu(e,r,t,n){e=r.state,"function"==typeof r.componentWillReceiveProps&&r.componentWillReceiveProps(t,n),"function"==typeof r.UNSAFE_componentWillReceiveProps&&r.UNSAFE_componentWillReceiveProps(t,n),r.state!==e&&eu.enqueueReplaceState(r,r.state,null)}function nu(e,r){var t=r;if("ref"in r)for(var n in t={},r)"ref"!==n&&(t[n]=r[n]);if(e=e.defaultProps)for(var i in t===r&&(t=$({},t)),e)void 0===t[i]&&(t[i]=e[i]);return t}function iu(e){ti(e)}function ou(e){console.error(e)}function au(e){ti(e)}function lu(e,r){try{(0,e.onUncaughtError)(r.value,{componentStack:r.stack})}catch(e){setTimeout((function(){throw e}))}}function uu(e,r,t){try{(0,e.onCaughtError)(t.value,{componentStack:t.stack,errorBoundary:1===r.tag?r.stateNode:null})}catch(e){setTimeout((function(){throw e}))}}function su(e,r,t){return(t=Yo(t)).tag=3,t.payload={element:null},t.callback=function(){lu(e,r)},t}function cu(e){return(e=Yo(e)).tag=3,e}function fu(e,r,t,n){var i=t.type.getDerivedStateFromError;if("function"==typeof i){var o=n.value;e.payload=function(){return i(o)},e.callback=function(){uu(r,t,n)}}var a=t.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){uu(r,t,n),"function"!=typeof i&&(null===ef?ef=new Set([this]):ef.add(this));var e=n.stack;this.componentDidCatch(n.value,{componentStack:null!==e?e:""})})}var du=Error(n(461)),hu=!1;function mu(e,r,t,n){r.child=null===e?Go(r,null,t,n):Wo(r,e.child,t,n)}function pu(e,r,t,n,i){t=t.render;var o=r.ref;if("ref"in n){var a={};for(var l in n)"ref"!==l&&(a[l]=n[l])}else a=n;return lo(r),n=qa(e,r,t,a,o,i),l=Ma(),null===e||hu?(Ui&&l&&Ni(r),r.flags|=1,mu(e,r,n,i),r.child):(za(e,r,i),Uu(e,r,i))}function vu(e,r,t,n,i){if(null===e){var o=t.type;return"function"!=typeof o||pi(o)||void 0!==o.defaultProps||null!==t.compare?((e=bi(t.type,null,n,r,r.mode,i)).ref=r.ref,e.return=r,r.child=e):(r.tag=15,r.type=o,yu(e,r,o,n,i))}return o=e.child,!Lu(e,i)&&(t=null!==(t=t.compare)?t:En)(o.memoizedProps,n)&&e.ref===r.ref?Uu(e,r,i):(r.flags|=1,(e=vi(o,n)).ref=r.ref,e.return=r,r.child=e)}function yu(e,r,t,n,i){if(null!==e){var o=e.memoizedProps;if(En(o,n)&&e.ref===r.ref){if(hu=!1,r.pendingProps=n=o,!Lu(e,i))return r.lanes=e.lanes,Uu(e,r,i);131072&e.flags&&(hu=!0)}}return Eu(e,r,t,n,i)}function bu(e,r,t,n){var i=n.children,o=null!==e?e.memoizedState:null;if(null===e&&null===r.stateNode&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===n.mode){if(128&r.flags){if(o=null!==o?o.baseLanes|t:t,null!==e){for(n=r.child=e.child,i=0;null!==n;)i=i|n.lanes|n.childLanes,n=n.sibling;n=i&~o}else n=0,r.child=null;return wu(e,r,o,t,n)}if(!(536870912&t))return n=r.lanes=536870912,wu(e,r,null!==o?o.baseLanes|t:t,t,n);r.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ao(0,null!==o?o.cachePool:null),null!==o?ua(r,o):sa(),pa(r)}else null!==o?(Ao(0,o.cachePool),ua(r,o),va(),r.memoizedState=null):(null!==e&&Ao(0,null),sa(),va());return mu(e,r,i,t),r.child}function gu(e,r){return null!==e&&22===e.tag||null!==r.stateNode||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function wu(e,r,t,n,i){var o=Oo();return r.memoizedState={baseLanes:t,cachePool:o=null===o?null:{parent:po._currentValue,pool:o}},null!==e&&Ao(0,null),sa(),pa(r),null!==e&&oo(e,r,n,!0),r.childLanes=i,null}function ku(e,r){return(r=Pu({mode:r.mode,children:r.children},e.mode)).ref=e.ref,e.child=r,r.return=e,r}function $u(e,r,t){return Wo(r,e.child,null,t),(e=ku(r,r.pendingProps)).flags|=2,ya(r),r.memoizedState=null,e}function Su(e,r){var t=r.ref;if(null===t)null!==e&&null!==e.ref&&(r.flags|=4194816);else{if("function"!=typeof t&&"object"!=typeof t)throw Error(n(284));null!==e&&e.ref===t||(r.flags|=4194816)}}function Eu(e,r,t,n,i){return lo(r),t=qa(e,r,t,n,void 0,i),n=Ma(),null===e||hu?(Ui&&n&&Ni(r),r.flags|=1,mu(e,r,t,i),r.child):(za(e,r,i),Uu(e,r,i))}function ju(e,r,t,n,i,o){return lo(r),r.updateQueue=null,t=Ta(r,n,t,i),Na(e),n=Ma(),null===e||hu?(Ui&&n&&Ni(r),r.flags|=1,mu(e,r,t,o),r.child):(za(e,r,o),Uu(e,r,o))}function xu(e,r,t,n,i){if(lo(r),null===r.stateNode){var o=di,a=t.contextType;"object"==typeof a&&null!==a&&(o=uo(a)),o=new t(n,o),r.memoizedState=null!=o.state?o.state:null,o.updater=eu,r.stateNode=o,o._reactInternals=r,(o=r.stateNode).props=n,o.state=r.memoizedState,o.refs={},Jo(r),o.context="object"==typeof(a=t.contextType)&&null!==a?uo(a):di,o.state=r.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ql(r,t,a,n),o.state=r.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&eu.enqueueReplaceState(o,o.state,null),na(r,n,o,i),ta(),o.state=r.memoizedState),"function"==typeof o.componentDidMount&&(r.flags|=4194308),n=!0}else if(null===e){o=r.stateNode;var l=r.memoizedProps,u=nu(t,l);o.props=u;var s=o.context,c=t.contextType;a=di,"object"==typeof c&&null!==c&&(a=uo(c));var f=t.getDerivedStateFromProps;l=r.pendingProps!==l,(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l||s!==a)&&tu(r,o,n,a),Ko=!1;var d=r.memoizedState;o.state=d,na(r,n,o,i),ta(),s=r.memoizedState,l||d!==s||Ko?("function"==typeof f&&(Ql(r,t,f,n),s=r.memoizedState),(u=Ko||ru(r,t,u,n,d,s,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(r.flags|=4194308)):("function"==typeof o.componentDidMount&&(r.flags|=4194308),r.memoizedProps=n,r.memoizedState=s),o.props=n,o.state=s,o.context=a,n=u):("function"==typeof o.componentDidMount&&(r.flags|=4194308),n=!1)}else{o=r.stateNode,Zo(e,r),c=nu(t,a=r.memoizedProps),o.props=c,f=r.pendingProps,d=o.context,u=di,"object"==typeof(s=t.contextType)&&null!==s&&(u=uo(s)),(s="function"==typeof(l=t.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==f||d!==u)&&tu(r,o,n,u),Ko=!1,o.state=d=r.memoizedState,na(r,n,o,i),ta();var h=r.memoizedState;a!==f||d!==h||Ko||null!==e&&null!==e.dependencies&&ao(e.dependencies)?("function"==typeof l&&(Ql(r,t,l,n),h=r.memoizedState),(c=Ko||ru(r,t,c,n,d,h,u)||null!==e&&null!==e.dependencies&&ao(e.dependencies))?(s||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,h,u)),"function"==typeof o.componentDidUpdate&&(r.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(r.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=1024),r.memoizedProps=n,r.memoizedState=h),o.props=n,o.state=h,o.context=u,n=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(r.flags|=1024),n=!1)}return o=n,Su(e,r),n=!!(128&r.flags),o||n?(o=r.stateNode,t=n&&"function"!=typeof t.getDerivedStateFromError?null:o.render(),r.flags|=1,null!==e&&n?(r.child=Wo(r,e.child,null,i),r.child=Wo(r,null,t,i)):mu(e,r,t,i),r.memoizedState=o.state,e=r.child):e=Uu(e,r,i),e}function Ou(e,r,t,n){return Ji(),r.flags|=256,mu(e,r,t,n),r.child}var Au={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cu(e){return{baseLanes:e,cachePool:Co()}}function _u(e,r,t){return e=null!==e?e.childLanes&~t:0,r&&(e|=Hc),e}function Iu(e,r,t){var i,o=r.pendingProps,a=!1,l=!!(128&r.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&ba.current)),i&&(a=!0,r.flags&=-129),i=!!(32&r.flags),r.flags&=-33,null===e){if(Ui){if(a?ha(r):va(),(e=zi)?null!==(e=null!==(e=Ah(e,Bi))&&"&"!==e.data?e:null)&&(r.memoizedState={dehydrated:e,treeContext:null!==Ii?{id:Di,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},(t=ki(e)).return=r,r.child=t,Mi=r,zi=null):e=null,null===e)throw Hi(r);return r.lanes=_h(e)?32:536870912,null}return l=o.children,o=o.fallback,a?(va(),l=Pu({mode:"hidden",children:l},a=r.mode),o=gi(o,a,t,null),l.return=r,o.return=r,l.sibling=o,r.child=l,(o=r.child).memoizedState=Cu(t),o.childLanes=_u(e,i,t),r.memoizedState=Au,gu(null,o)):(ha(r),Du(r,l))}var u=e.memoizedState;if(null!==u){var s=u.dehydrated;if(null!==s)return function(e,r,t,i,o,a,l,u){if(t)return 256&r.flags?(ha(r),r.flags&=-257,Fu(e,r,u)):null!==r.memoizedState?(va(),r.child=e.child,r.flags|=128,null):(va(),a=o.fallback,o=Pu({mode:"visible",children:o.children},l=r.mode),(a=gi(a,l,u,null)).flags|=2,o.return=r,a.return=r,o.sibling=a,r.child=o,Wo(r,e.child,null,u),(o=r.child).memoizedState=Cu(u),o.childLanes=_u(e,i,u),r.memoizedState=Au,gu(null,o));if(ha(r),_h(a)){if(i=a.nextSibling&&a.nextSibling.dataset)var s=i.dgst;return""!==(i=s)&&((o=Error(n(419))).stack="",o.digest=i,Yi({value:o,source:null,stack:null})),Fu(e,r,u)}if(hu||oo(e,r,u,!1),i=!!(u&e.childLanes),hu||i){if(null!==aa.current)return Fu(e,r,u);if(null!==(i=Dc)&&0!==(o=tr(i,u))&&o!==l.retryLane)throw l.retryLane=o,si(e,o),yf(i,0,o),du;return Ch(a)||Cf(),Fu(e,r,u)}return Ch(a)?(r.flags|=192,r.child=e.child,null):(e=l.treeContext,zi=Ih(a.nextSibling),Mi=r,Ui=!0,Li=null,Bi=!1,null!==e&&Ri(r,e),(r=Du(r,o.children)).flags|=134221824,r)}(e,r,l,i,o,s,u,t)}return a?(va(),a=o.fallback,l=r.mode,s=(u=e.child).sibling,(o=vi(u,{mode:"hidden",children:o.children})).subtreeFlags=1206910976&u.subtreeFlags,null!==s?a=vi(s,a):(a=gi(a,l,t,null)).flags|=2,a.return=r,o.return=r,o.sibling=a,r.child=o,gu(null,o),o=r.child,null===(a=e.child.memoizedState)?a=Cu(t):(l=null!==(l=a.cachePool)?l.parent!==(u=po._currentValue)?{parent:u,pool:u}:l:Co(),a={baseLanes:a.baseLanes|t,cachePool:l}),o.memoizedState=a,o.childLanes=_u(e,i,t),r.memoizedState=Au,gu(e.child,o)):(ha(r),e=(t=e.child).sibling,(t=vi(t,{mode:"visible",children:o.children})).return=r,t.sibling=null,null!==e&&(null===(i=r.deletions)?(r.deletions=[e],r.flags|=16):i.push(e)),r.child=t,r.memoizedState=null,t)}function Du(e,r){return(r=Pu({mode:"visible",children:r},e.mode)).return=e,e.child=r}function Pu(e,r){return(e=mi(22,e,null,r)).lanes=0,e}function Fu(e,r,t){return Wo(r,e.child,null,t),(e=Du(r,r.pendingProps.children)).flags|=2,r.memoizedState=null,e}function qu(e,r,t){e.lanes|=r;var n=e.alternate;null!==n&&(n.lanes|=r),no(e.return,r,t)}function Nu(e){for(var r=null;null!==e;){var t=e.alternate;null!==t&&null===ka(t)&&(r=e),e=e.sibling}return r}function Tu(e,r,t,n,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:n,tail:t,tailMode:i,treeForkCount:o}:(a.isBackwards=r,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=t,a.tailMode=i,a.treeForkCount=o)}function Ru(e){var r=e.child;for(e.child=null;null!==r;){var t=r.sibling;r.sibling=e.child,e.child=r,r=t}}function Mu(e,r,t){var n=r.pendingProps,i=n.revealOrder,o=n.tail;n=n.children;var a=ba.current;if(128&r.flags)return ga(0,a),null;var l=!!(2&a);if(l?(a=1&a|2,r.flags|=128):a&=1,ga(0,a),"backwards"===i&&null!==e?(Ru(e),mu(e,r,n,t),Ru(e)):mu(e,r,n,t),n=Ui?Ai:0,!l&&null!==e&&128&e.flags)e:for(e=r.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qu(e,t,r);else if(19===e.tag)qu(e,t,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"backwards":null===(t=Nu(r.child))?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null,Ru(r)),Tu(r,!0,i,null,o,n);break;case"unstable_legacy-backwards":for(t=null,i=r.child,r.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ka(e)){r.child=i;break}e=i.sibling,i.sibling=t,t=i,i=e}Tu(r,!0,t,null,o,n);break;case"together":Tu(r,!1,null,null,void 0,n);break;case"independent":r.memoizedState=null;break;default:null===(t=Nu(r.child))?(i=r.child,r.child=null):(i=t.sibling,t.sibling=null),Tu(r,!1,i,t,o,n)}return r.child}function zu(e,r,t){var n=r.pendingProps;return ro(0,r.type,n.value),mu(e,r,n.children,t),r.child}function Uu(e,r,t){if(null!==e&&(r.dependencies=e.dependencies),Lc|=r.lanes,!(t&r.childLanes)){if(null===e)return null;if(oo(e,r,t,!1),!(t&r.childLanes))return null}if(null!==e&&r.child!==e.child)throw Error(n(153));if(null!==r.child){for(t=vi(e=r.child,e.pendingProps),r.child=t,t.return=r;null!==e.sibling;)(t=t.sibling=vi(e=e.sibling,e.pendingProps)).return=r;t.sibling=null}return r.child}function Lu(e,r){return!!(e.lanes&r)||!(null===(e=e.dependencies)||!ao(e))}function Bu(e,r,t){if(null!==e)if(e.memoizedProps!==r.pendingProps)hu=!0;else{if(!(Lu(e,t)||128&r.flags))return hu=!1,function(e,r,t){switch(r.tag){case 3:de(r,r.stateNode.containerInfo),ro(0,po,e.memoizedState.cache),Ji();break;case 27:case 5:pe(r);break;case 4:de(r,r.stateNode.containerInfo);break;case 10:ro(0,r.type,r.memoizedProps.value);break;case 31:if(null!==r.memoizedState)return r.flags|=128,ma(r),null;break;case 13:var n=r.memoizedState;if(null!==n){if(null!==n.dehydrated)return ha(r),r.flags|=128,null;n=oo(e,r,t,!1);var i=r.child.childLanes;return n||t&i?Iu(e,r,t):(ha(r),null!==(e=Uu(e,r,t))?e.sibling:null)}ha(r);break;case 19:if(128&r.flags)return Mu(e,r,t);if(i=!!(128&e.flags),(n=!!(t&r.childLanes))||(oo(e,r,t,!1),n=!!(t&r.childLanes)),i){if(n)return Mu(e,r,t);r.flags|=128}if(null!==(i=r.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ga(0,ba.current),n)break;return null;case 22:return r.lanes=0,bu(e,r,t,r.pendingProps);case 24:ro(0,po,e.memoizedState.cache)}return Uu(e,r,t)}(e,r,t);hu=!!(131072&e.flags)}else hu=!1,Ui&&1048576&r.flags&&qi(r,Ai,r.index);switch(r.lanes=0,r.tag){case 16:e:{var i=r.pendingProps;if(e=No(r.elementType),r.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===I){r.tag=11,r=pu(null,r,e,i,t);break e}if(o===F){r.tag=14,r=vu(null,r,e,i,t);break e}if(o===_){r.tag=10,r.type=e,r=zu(null,r,t);break e}}throw r=V(e)||e,Error(n(306,r,""))}pi(e)?(i=nu(e,i),r.tag=1,r=xu(null,r,e,i,t)):(r.tag=0,r=Eu(null,r,e,i,t))}return r;case 0:return Eu(e,r,r.type,r.pendingProps,t);case 1:return xu(e,r,i=r.type,o=nu(i,r.pendingProps),t);case 3:e:{if(de(r,r.stateNode.containerInfo),null===e)throw Error(n(387));i=r.pendingProps;var a=r.memoizedState;o=a.element,Zo(e,r),na(r,i,null,t);var l=r.memoizedState;if(ro(0,po,i=l.cache),i!==a.cache&&io(r,[po],t,!0),ta(),i=l.element,a.isDehydrated){if(r.updateQueue.baseState=a={element:i,isDehydrated:!1,cache:l.cache},r.memoizedState=a,256&r.flags){r=Ou(e,r,i,t);break e}if(i!==o){Yi(o=Ei(Error(n(424)),r)),r=Ou(e,r,i,t);break e}for(e=9===(e=r.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,zi=Ih(e.firstChild),Mi=r,Ui=!0,Li=null,Bi=!0,t=Go(r,null,i,t),r.child=t;t;)t.flags=-3&t.flags|134221824,t=t.sibling}else{if(Ji(),i===o){r=Uu(e,r,t);break e}mu(e,r,i,t)}r=r.child}return r;case 26:return Su(e,r),null===e?(t=Vh(r.type,null,r.pendingProps,null))?r.memoizedState=t:Ui||(r.stateNode=Vd(r.type,r.pendingProps,le.current,r)):r.memoizedState=Vh(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return pe(r),null===e&&Ui&&(i=r.stateNode=qh(r.type,r.pendingProps,le.current),Mi=r,Bi=!0,o=zi,Qd(r.type)?(Dh=o,zi=Ih(i.firstChild)):zi=o),mu(e,r,r.pendingProps.children,t),Su(e,r),null===e&&(r.flags|=4194304),r.child;case 5:return null===e&&Ui&&((o=i=zi)&&(null!==(i=function(e,r,t,n){for(;1===e.nodeType;){var i=t;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!n&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(n){if(!e[pr])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==r||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Ih(e.nextSibling)))break}return null}(i,r.type,r.pendingProps,Bi))?(r.stateNode=i,Mi=r,zi=Ih(i.firstChild),Bi=!1,o=!0):o=!1),o||Hi(r)),pe(r),l=null!==e?e.memoizedProps:null,i=(a=r.pendingProps).children,Hd(o=r.type,a)?i=null:null!==l&&Hd(o,l)&&(r.flags|=32),null!==r.memoizedState&&(o=qa(e,r,Ra,null,null,t),mm._currentValue=o),Su(e,r),mu(e,r,i,t),r.child;case 6:return null===e&&Ui&&((e=t=zi)&&(null!==(t=function(e,r,t){if(""===r)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ih(e.nextSibling)))return null}return e}(t,r.pendingProps,Bi))?(r.stateNode=t,Mi=r,zi=null,e=!0):e=!1),e||Hi(r)),null;case 13:return Iu(e,r,t);case 4:return de(r,r.stateNode.containerInfo),i=r.pendingProps,null===e?r.child=Wo(r,null,i,t):mu(e,r,i,t),r.child;case 11:return pu(e,r,r.type,r.pendingProps,t);case 7:return i=r.pendingProps,Su(e,r),mu(e,r,i,t),r.child;case 8:case 12:return mu(e,r,r.pendingProps.children,t),r.child;case 10:return zu(e,r,t);case 9:return o=r.type._context,i=r.pendingProps.children,lo(r),i=i(o=uo(o)),r.flags|=1,mu(e,r,i,t),r.child;case 14:return vu(e,r,r.type,r.pendingProps,t);case 15:return yu(e,r,r.type,r.pendingProps,t);case 19:return Mu(e,r,t);case 31:return function(e,r,t){var i=r.pendingProps,o=!!(128&r.flags);if(r.flags&=-129,null===e){if(Ui){if("hidden"===i.mode)return e=ku(r,i),r.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},gu(null,e);if(ma(r),(e=zi)?null!==(e=null!==(e=Ah(e,Bi))&&"&"===e.data?e:null)&&(r.memoizedState={dehydrated:e,treeContext:null!==Ii?{id:Di,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},(t=ki(e)).return=r,r.child=t,Mi=r,zi=null):e=null,null===e)throw Hi(r);return r.lanes=536870912,null}return ku(r,i)}var a=e.memoizedState;if(null!==a){var l=a.dehydrated;if(ma(r),o)if(256&r.flags)r.flags&=-257,r=$u(e,r,t);else{if(null===r.memoizedState)throw Error(n(558));r.child=e.child,r.flags|=128,r=null}else if(hu||oo(e,r,t,!1),o=!!(t&e.childLanes),hu||o){if(null===aa.current){if(null!==(i=Dc)&&0!==(l=tr(i,t))&&l!==a.retryLane)throw a.retryLane=l,si(e,l),yf(i,0,l),du;Cf()}r=$u(e,r,t)}else e=a.treeContext,zi=Ih(l.nextSibling),Mi=r,Ui=!0,Li=null,Bi=!1,null!==e&&Ri(r,e),(r=ku(r,i)).flags|=134221824;return r}return(e=vi(e.child,{mode:i.mode,children:i.children})).ref=r.ref,r.child=e,e.return=r,e}(e,r,t);case 22:return bu(e,r,t,r.pendingProps);case 24:return lo(r),i=uo(po),null===e?(null===(o=Oo())&&(o=Dc,a=vo(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=t),o=a),r.memoizedState={parent:i,cache:o},Jo(r),ro(0,po,o)):(!!(e.lanes&t)&&(Zo(e,r),na(r,null,null,t),ta()),a=r.memoizedState,(o=e.memoizedState).parent!==i?(r.memoizedState=o={parent:i,cache:i},0===r.lanes&&(r.memoizedState=r.updateQueue.baseState=o),ro(0,po,i)):(ro(0,po,i=a.cache),i!==o.cache&&io(r,[po],t,!0))),mu(e,r,r.pendingProps.children,t),r.child;case 30:return null===r.stateNode&&(r.stateNode={autoName:null,paired:null,clones:null,ref:null}),null!=(i=r.pendingProps).name&&"auto"!==i.name?r.flags|=null===e?18882560:18874368:Ui&&Ni(r),null!==e&&e.memoizedProps.name!==i.name?r.flags|=4194816:Su(e,r),mu(e,r,i.children,t),r.child;case 29:throw r.pendingProps}throw Error(n(156,r.tag))}function Vu(e){e.flags|=4}function Hu(e,r,t,n,i){var o;if((o=!!(32&e.mode))&&(o=null===t?nm(r,n):nm(r,n)&&(n.src!==t.src||n.srcSet!==t.srcSet)),o){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!xf())throw To=Po,Io;e.flags|=8192}}else e.flags&=-16777217}function Wu(e,r){if("stylesheet"!==r.type||4&r.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!im(r)){if(!xf())throw To=Po,Io;e.flags|=8192}}function Gu(e,r){null!==r&&(e.flags|=4),16384&e.flags&&(r=22!==e.tag?Ye():536870912,e.lanes|=r,Wc|=r)}function Ku(e,r){if(!Ui)switch(e.tailMode){case"visible":break;case"collapsed":for(var t=e.tail,n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?r||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(r=e.tail,t=null;null!==r;)null!==r.alternate&&(t=r),r=r.sibling;null===t?e.tail=null:t.sibling=null}}function Ju(e){var r=null!==e.alternate&&e.alternate.child===e.child,t=0,n=0;if(r)for(var i=e.child;null!==i;)t|=i.lanes|i.childLanes,n|=1206910976&i.subtreeFlags,n|=1206910976&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)t|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=t,r}function Zu(e,r,t){var i=r.pendingProps;switch(Ti(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Ju(r),null;case 3:return t=r.stateNode,i=null,null!==e&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),to(po),me(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),null!==e&&null!==e.child||(Ki(r)?Vu(r):null===e||e.memoizedState.isDehydrated&&!(256&r.flags)||(r.flags|=1024,Zi())),Ju(r),null;case 26:var o=r.type,a=r.memoizedState;return null===e?(Vu(r),null!==a?(Ju(r),Wu(r,a)):(Ju(r),Hu(r,o,null,i,t))):a?a!==e.memoizedState?(Vu(r),Ju(r),Wu(r,a)):(Ju(r),r.flags&=-16777217):((e=e.memoizedProps)!==i&&Vu(r),Ju(r),Hu(r,o,e,i,t)),null;case 27:if(ve(r),t=le.current,o=r.type,null!==e&&null!=r.stateNode)e.memoizedProps!==i&&Vu(r);else{if(!i){if(null===r.stateNode)throw Error(n(166));return Ju(r),r.subtreeFlags&=-33554433,null}e=oe.current,Ki(r)?Wi(r):(e=qh(o,i,t),r.stateNode=e,Vu(r))}return Ju(r),r.subtreeFlags&=-33554433,null;case 5:if(ve(r),o=r.type,null!==e&&null!=r.stateNode)e.memoizedProps!==i&&Vu(r);else{if(!i){if(null===r.stateNode)throw Error(n(166));return Ju(r),r.subtreeFlags&=-33554433,null}if(a=oe.current,Ki(r))Wi(r);else{var l=Ud(le.current);switch(a){case 1:a=l.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=l.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=l.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=l.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof i.is?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a="string"==typeof i.is?l.createElement(o,{is:i.is}):l.createElement(o)}}a[ur]=r,a[sr]=i;e:for(l=r.child;null!==l;){if(5===l.tag||6===l.tag)a.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===r)break e;for(;null===l.sibling;){if(null===l.return||l.return===r)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r.stateNode=a;e:switch(Nd(a,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Vu(r)}}return Ju(r),r.subtreeFlags&=-33554433,Hu(r,r.type,null===e?null:e.memoizedProps,r.pendingProps,t),null;case 6:if(e&&null!=r.stateNode)e.memoizedProps!==i&&Vu(r);else{if("string"!=typeof i&&null===r.stateNode)throw Error(n(166));if(e=le.current,Ki(r)){if(e=r.stateNode,t=r.memoizedProps,i=null,null!==(o=Mi))switch(o.tag){case 27:case 5:i=o.memoizedProps}e[ur]=r,(e=!!(e.nodeValue===t||null!==i&&!0===i.suppressHydrationWarning||Pd(e.nodeValue,t)))||Hi(r,!0)}else(e=Ud(e).createTextNode(i))[ur]=r,r.stateNode=e}return Ju(r),null;case 31:if(t=r.memoizedState,null===e||null!==e.memoizedState){if(i=Ki(r),null!==t){if(null===e){if(!i)throw Error(n(318));if(!(e=null!==(e=r.memoizedState)?e.dehydrated:null))throw Error(n(557));e[ur]=r}else Ji(),!(128&r.flags)&&(r.memoizedState=null),r.flags|=4;Ju(r),e=!1}else t=Zi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=t),e=!0;if(!e)return 256&r.flags?(ya(r),r):(ya(r),null);if(128&r.flags)throw Error(n(558))}return Ju(r),null;case 13:if(i=r.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=Ki(r),null!==i&&null!==i.dehydrated){if(null===e){if(!o)throw Error(n(318));if(!(o=null!==(o=r.memoizedState)?o.dehydrated:null))throw Error(n(317));o[ur]=r}else Ji(),!(128&r.flags)&&(r.memoizedState=null),r.flags|=4;Ju(r),o=!1}else o=Zi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&r.flags?(ya(r),r):(ya(r),null)}return ya(r),128&r.flags?(r.lanes=t,r):(e=null!==e&&null!==e.memoizedState,(t=null!==i)&&(o=null,null!==(i=r.child).alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(o=i.alternate.memoizedState.cachePool.pool),a=null,null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(a=i.memoizedState.cachePool.pool),a!==o&&(i.flags|=2048)),t!==e&&t&&(r.child.flags|=8192),Gu(r,r.updateQueue),Ju(r),null);case 4:return me(),null===e&&Sd(r.stateNode.containerInfo),r.flags|=67108864,Ju(r),null;case 10:return to(r.type),Ju(r),null;case 19:if(wa(r),null===(i=r.memoizedState))return Ju(r),null;if(o=!!(128&r.flags),null===(a=i.rendering))if(o)Ku(i,!1);else{if(0!==Uc||null!==e&&128&e.flags)for(e=r.child;null!==e;){if(null!==(a=ka(e))){for(r.flags|=128,Ku(i,!1),r.updateQueue=e=a.updateQueue,Gu(r,e),r.subtreeFlags=0,e=t,t=r.child;null!==t;)yi(t,e),t=t.sibling;return ga(0,1&ba.current|2),Ui&&Fi(r,i.treeForkCount),r.child}e=e.sibling}null!==i.tail&&Ae()>Xc&&(r.flags|=128,o=!0,Ku(i,!1),r.lanes=4194304)}else{if(!o)if(null!==(e=ka(a))){if(r.flags|=128,o=!0,r.updateQueue=e=e.updateQueue,Gu(r,e),Ku(i,!0),null===i.tail&&"collapsed"!==i.tailMode&&"visible"!==i.tailMode&&!a.alternate&&!Ui)return Ju(r),null}else 2*Ae()-i.renderingStartTime>Xc&&536870912!==t&&(r.flags|=128,o=!0,Ku(i,!1),r.lanes=4194304);i.isBackwards?(a.sibling=r.child,r.child=a):(null!==(e=i.last)?e.sibling=a:r.child=a,i.last=a)}if(null!==i.tail){e:{for(t=e=i.tail;null!==t;){if(null!==t.alternate){t=!1;break e}t=t.sibling}t=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ae(),e.sibling=null,a=ba.current,a=o?1&a|2:1&a,"visible"===i.tailMode||"collapsed"===i.tailMode||!t||Ui?ga(0,a):(t=a,Q(fa,r),Q(ba,t),null===da&&(da=r)),Ui&&Fi(r,i.treeForkCount),e}return Ju(r),null;case 22:case 23:return ya(r),ca(),i=null!==r.memoizedState,null!==e?null!==e.memoizedState!==i&&(r.flags|=8192):i&&(r.flags|=8192),i?!!(536870912&t)&&!(128&r.flags)&&(Ju(r),6&r.subtreeFlags&&(r.flags|=8192)):Ju(r),null!==(t=r.updateQueue)&&Gu(r,t.retryQueue),t=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==t&&(r.flags|=2048),null!==e&&X(xo),null;case 24:return t=null,null!==e&&(t=e.memoizedState.cache),r.memoizedState.cache!==t&&(r.flags|=2048),to(po),Ju(r),null;case 25:return null;case 30:return r.flags|=33554432,Ju(r),null}throw Error(n(156,r.tag))}function Yu(e,r){switch(Ti(r),r.tag){case 1:return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 3:return to(po),me(),65536&(e=r.flags)&&!(128&e)?(r.flags=-65537&e|128,r):null;case 26:case 27:case 5:return ve(r),null;case 31:if(null!==r.memoizedState){if(ya(r),null===r.alternate)throw Error(n(340));Ji()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 13:if(ya(r),null!==(e=r.memoizedState)&&null!==e.dehydrated){if(null===r.alternate)throw Error(n(340));Ji()}return 65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 19:return wa(r),65536&(e=r.flags)?(r.flags=-65537&e|128,null!==(e=r.memoizedState)&&(e.rendering=null,e.tail=null),r.flags|=4,r):null;case 4:return me(),null;case 10:return to(r.type),null;case 22:case 23:return ya(r),ca(),null!==e&&X(xo),65536&(e=r.flags)?(r.flags=-65537&e|128,r):null;case 24:return to(po),null;default:return null}}function Xu(e,r){switch(Ti(r),r.tag){case 3:to(po),me();break;case 26:case 27:case 5:ve(r);break;case 4:me();break;case 31:null!==r.memoizedState&&ya(r);break;case 13:ya(r);break;case 19:wa(r);break;case 10:to(r.type);break;case 22:case 23:ya(r),ca(),null!==e&&X(xo);break;case 24:to(po)}}function Qu(e,r){try{var t=r.updateQueue,n=null!==t?t.lastEffect:null;if(null!==n){var i=n.next;t=i;do{if((t.tag&e)===e){n=void 0;var o=t.inst;n=(0,t.create)(),o.destroy=n}t=t.next}while(t!==i)}}catch(e){Kf(r,r.return,e)}}function es(e,r,t){try{var n=r.updateQueue,i=null!==n?n.lastEffect:null;if(null!==i){var o=i.next;n=o;do{if((n.tag&e)===e){var a=n.inst,l=a.destroy;if(void 0!==l){a.destroy=void 0,i=r;var u=t,s=l;try{s()}catch(e){Kf(i,u,e)}}}n=n.next}while(n!==o)}}catch(e){Kf(r,r.return,e)}}function rs(e){var r=e.updateQueue;if(null!==r){var t=e.stateNode;try{oa(r,t)}catch(r){Kf(e,e.return,r)}}}function ts(e,r,t){t.props=nu(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){Kf(e,r,t)}}function ns(e,r){try{var t=e.ref;if(null!==t){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var i=e.stateNode,o=Qn(e.memoizedProps,i);null!==i.ref&&i.ref.name===o||(i.ref=lh(o)),n=i.ref;break;case 7:if(null===e.stateNode){var a=new uh(e);c(e.child,!1,Sh,a,void 0,void 0),e.stateNode=a}n=e.stateNode;break;default:n=e.stateNode}"function"==typeof t?e.refCleanup=t(n):t.current=n}}catch(t){Kf(e,r,t)}}function is(e,r){var t=e.ref,n=e.refCleanup;if(null!==t)if("function"==typeof n)try{n()}catch(t){Kf(e,r,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){Kf(e,r,t)}else t.current=null}function os(e,r){if((5===e.tag||27===e.tag||6===e.tag)&&null===e.alternate&&null!==r)for(var t=0;t<r.length;t++)jh(e.stateNode,r[t])}function as(e){for(var r=e.return;null!==r&&(ss(r)&&jh(e.stateNode,r.stateNode),!us(r));)r=r.return}function ls(e){for(var r=e.return;null!==r&&(ss(r)&&xh(e.stateNode,r.stateNode),!us(r));)r=r.return}function us(e){return 5===e.tag||3===e.tag||27===e.tag}function ss(e){return e&&7===e.tag&&null!==e.stateNode}function cs(e){var r=e.type,t=e.memoizedProps,n=e.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":t.autoFocus&&n.focus();break e;case"img":t.src?n.src=t.src:t.srcSet&&(n.srcset=t.srcSet)}}catch(r){Kf(e,e.return,r)}}function fs(e,r,t){try{var i=e.stateNode;!function(e,r,t,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,l=null,u=null,s=null,c=null,f=null;for(m in t){var d=t[m];if(t.hasOwnProperty(m)&&null!=d)switch(m){case"checked":case"value":break;case"defaultValue":s=d;default:i.hasOwnProperty(m)||Fd(e,r,m,null,i,d)}}for(var h in i){var m=i[h];if(d=t[h],i.hasOwnProperty(h)&&(null!=m||null!=d))switch(h){case"type":m!==d&&(Ir=!0),a=m;break;case"name":m!==d&&(Ir=!0),o=m;break;case"checked":m!==d&&(Ir=!0),c=m;break;case"defaultChecked":m!==d&&(Ir=!0),f=m;break;case"value":m!==d&&(Ir=!0),l=m;break;case"defaultValue":m!==d&&(Ir=!0),u=m;break;case"children":case"dangerouslySetInnerHTML":if(null!=m)throw Error(n(137,r));break;default:m!==d&&Fd(e,r,h,m,i,d)}}return void Lr(e,l,u,s,c,f,a,o);case"select":for(a in m=l=u=h=null,t)if(s=t[a],t.hasOwnProperty(a)&&null!=s)switch(a){case"value":break;case"multiple":m=s;default:i.hasOwnProperty(a)||Fd(e,r,a,null,i,s)}for(o in i)if(a=i[o],s=t[o],i.hasOwnProperty(o)&&(null!=a||null!=s))switch(o){case"value":a!==s&&(Ir=!0),h=a;break;case"defaultValue":a!==s&&(Ir=!0),u=a;break;case"multiple":a!==s&&(Ir=!0),l=a;default:a!==s&&Fd(e,r,o,a,i,s)}return r=u,t=l,i=m,void(null!=h?Hr(e,!!t,h,!1):!!i!=!!t&&(null!=r?Hr(e,!!t,r,!0):Hr(e,!!t,t?[]:"",!1)));case"textarea":for(u in m=h=null,t)if(o=t[u],t.hasOwnProperty(u)&&null!=o&&!i.hasOwnProperty(u))switch(u){case"value":case"children":break;default:Fd(e,r,u,null,i,o)}for(l in i)if(o=i[l],a=t[l],i.hasOwnProperty(l)&&(null!=o||null!=a))switch(l){case"value":o!==a&&(Ir=!0),h=o;break;case"defaultValue":o!==a&&(Ir=!0),m=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(n(91));break;default:o!==a&&Fd(e,r,l,o,i,a)}return void Wr(e,h,m);case"option":for(var p in t)h=t[p],t.hasOwnProperty(p)&&null!=h&&!i.hasOwnProperty(p)&&("selected"===p?e.selected=!1:Fd(e,r,p,null,i,h));for(s in i)h=i[s],m=t[s],!i.hasOwnProperty(s)||h===m||null==h&&null==m||("selected"===s?(h!==m&&(Ir=!0),e.selected=h&&"function"!=typeof h&&"symbol"!=typeof h):Fd(e,r,s,h,i,m));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in t)h=t[v],t.hasOwnProperty(v)&&null!=h&&!i.hasOwnProperty(v)&&Fd(e,r,v,null,i,h);for(c in i)if(h=i[c],m=t[c],i.hasOwnProperty(c)&&h!==m&&(null!=h||null!=m))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(n(137,r));break;default:Fd(e,r,c,h,i,m)}return;default:if(Xr(r)){for(var y in t)h=t[y],t.hasOwnProperty(y)&&void 0!==h&&!i.hasOwnProperty(y)&&qd(e,r,y,void 0,i,h);for(f in i)h=i[f],m=t[f],!i.hasOwnProperty(f)||h===m||void 0===h&&void 0===m||qd(e,r,f,h,i,m);return}}for(var b in t)h=t[b],t.hasOwnProperty(b)&&null!=h&&!i.hasOwnProperty(b)&&Fd(e,r,b,null,i,h);for(d in i)h=i[d],m=t[d],!i.hasOwnProperty(d)||h===m||null==h&&null==m||Fd(e,r,d,h,i,m)}(i,e.type,t,r),i[sr]=r}catch(r){Kf(e,e.return,r)}}function ds(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Qd(e.type)||4===e.tag}function hs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ds(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Qd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ms(e,r,t,n){var i=e.tag;if(5===i||6===i)i=e.stateNode,r?(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).insertBefore(i,r):((r=9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t).appendChild(i),null!=(t=t._reactRootContainer)||null!==r.onclick||(r.onclick=tt)),os(e,n),Ir=!0;else if(4!==i&&(27===i&&(os(e,n),n=null,Qd(e.type)&&(t=e.stateNode,r=null)),null!==(e=e.child)))for(ms(e,r,t,n),e=e.sibling;null!==e;)ms(e,r,t,n),e=e.sibling}function ps(e,r,t,n){var i=e.tag;if(5===i||6===i)i=e.stateNode,r?t.insertBefore(i,r):t.appendChild(i),os(e,n),Ir=!0;else if(4!==i&&(27===i&&(os(e,n),n=null,Qd(e.type)&&(t=e.stateNode)),null!==(e=e.child)))for(ps(e,r,t,n),e=e.sibling;null!==e;)ps(e,r,t,n),e=e.sibling}function vs(e){var r=e.stateNode,t=e.memoizedProps;try{for(var n=e.type,i=r.attributes;i.length;)r.removeAttributeNode(i[0]);Nd(r,n,t),r[ur]=e,r[sr]=t}catch(r){Kf(e,e.return,r)}}var ys=!1,bs=null;function gs(e){(30===e.tag||33554432&e.subtreeFlags)&&(ys=!0)}var ws=null;function ks(){var e=ws;return ws=null,e}var $s=0;function Ss(e,r,t,n,i){return $s=0,Es(e.child,r,t,n,i)}function Es(e,r,t,n,i){for(var o=!1;null!==e;){if(5===e.tag){var a=e.stateNode;if(null!==n){var l=ih(a);n.push(l),l.view&&(o=!0)}else o||ih(a).view&&(o=!0);ys=!0,th(a,0===$s?r:r+"_"+$s,t),$s++}else 22===e.tag&&null!==e.memoizedState||30===e.tag&&i||Es(e.child,r,t,n,i)&&(o=!0);e=e.sibling}return o}function js(e,r){for(;null!==e;)5===e.tag?nh(e.stateNode,e.memoizedProps):22===e.tag&&null!==e.memoizedState||30===e.tag&&r||js(e.child,r),e=e.sibling}function xs(e){if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if((22!==e.tag||null===e.memoizedState)&&(xs(e),30===e.tag&&18874368&e.flags&&e.stateNode.paired)){var r=e.memoizedProps;if(null==r.name||"auto"===r.name)throw Error(n(544));var t=r.name;"none"!==(r=ri(r.default,r.share))&&(Ss(e,t,r,null,!1)||js(e.child,!1))}e=e.sibling}}function Os(e,r){if(30===e.tag){var t=e.stateNode,n=e.memoizedProps,i=Qn(n,t),o=ri(n.default,t.paired?n.share:n.enter);"none"!==o?Ss(e,i,o,null,!1)?(xs(e),t.paired||r||vf(e,n.onEnter)):js(e.child,!1):xs(e)}else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)Os(e,r),e=e.sibling;else xs(e)}function As(e){if(null!==bs&&0!==bs.size){var r=bs;if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&18874368&e.flags){var t=e.memoizedProps,n=t.name;if(null!=n&&"auto"!==n){var i=r.get(n);if(void 0!==i){var o=ri(t.default,t.share);if("none"!==o&&(Ss(e,n,o,null,!1)?(i.paired=o=e.stateNode,o.paired=i,vf(e,t.onShare)):js(e.child,!1)),r.delete(n),0===r.size)break}}}As(e)}e=e.sibling}}}function Cs(e){if(30===e.tag){var r=e.memoizedProps,t=Qn(r,e.stateNode),n=null!==bs?bs.get(t):void 0,i=ri(r.default,void 0!==n?r.share:r.exit);"none"!==i&&(Ss(e,t,i,null,!1)?void 0!==n?(n.paired=i=e.stateNode,i.paired=n,bs.delete(t),vf(e,r.onShare)):vf(e,r.onExit):js(e.child,!1)),null!==bs&&As(e)}else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)Cs(e),e=e.sibling;else null!==bs&&As(e)}function _s(e){for(e=e.child;null!==e;){if(30===e.tag){var r=e.memoizedProps,t=Qn(r,e.stateNode);r=ri(r.default,r.update),e.flags&=-5,"none"!==r&&Ss(e,t,r,e.memoizedState=[],!1)}else 33554432&e.subtreeFlags&&_s(e);e=e.sibling}}function Is(e){if(18874368&e.subtreeFlags)for(e=e.child;null!==e;){if(22!==e.tag||null===e.memoizedState){if(30===e.tag&&18874368&e.flags){var r=e.stateNode;null!==r.paired&&(r.paired=null,js(e.child,!1))}Is(e)}e=e.sibling}}function Ds(e){if(30===e.tag)e.stateNode.paired=null,js(e.child,!1),Is(e);else if(33554432&e.subtreeFlags)for(e=e.child;null!==e;)Ds(e),e=e.sibling;else Is(e)}function Ps(e){for(e=e.child;null!==e;)30===e.tag?js(e.child,!1):!!(33554432&e.subtreeFlags)&&Ps(e),e=e.sibling}function Fs(e,r,t,n,i,o,a){for(var l=!1;null!==r;){if(5===r.tag){var u=r.stateNode;if(null!==o&&$s<o.length){var s,c=o[$s],f=ih(u);if((c.view||f.view)&&(l=!0),s=!(4&e.flags))if(f.clip)s=!0;else{var d=f.rect;s=(s=c.rect).y!==d.y||s.x!==d.x||s.height!==d.height||s.width!==d.width}s&&(e.flags|=4),(f=f.abs?!c.abs:(c=c.rect).height!==(f=f.rect).height||c.width!==f.width)&&(e.flags|=32)}else e.flags|=32;4&e.flags&&th(u,0===$s?t:t+"_"+$s,i),l&&4&e.flags||(null===ws&&(ws=[]),ws.push(u,0===$s?n:n+"_"+$s,r.memoizedProps)),$s++}else 22===r.tag&&null!==r.memoizedState||(30===r.tag&&a?e.flags|=32&r.flags:Fs(e,r.child,t,n,i,o,a)&&(l=!0));r=r.sibling}return l}function qs(e){for(e=e.child;null!==e;){if(30===e.tag){var r,t=e.memoizedProps,n=e.stateNode,i=Qn(t,n),o=ri(t.default,t.update);r=e.memoizedState,e.memoizedState=null,$s=0,i=Fs(n=e,e.child,i,i,o,r,!1),4&e.flags&&i&&vf(e,t.onUpdate)}else 33554432&e.subtreeFlags&&qs(e);e=e.sibling}}var Ns=!1,Ts=!1,Rs=!1,Ms=!1,zs="function"==typeof WeakSet?WeakSet:Set,Us=null,Ls=!1,Bs=!1,Vs=!1,Hs=!1;function Ws(e){for(;null!==Us;){var r=Us,t=e,i=r.alternate,o=r.flags;switch(r.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&o&&null!==i){t=void 0,o=i.memoizedProps,i=i.memoizedState;var a=r.stateNode;try{var l=nu(r.type,o);t=a.getSnapshotBeforeUpdate(l,i),a.__reactInternalSnapshotBeforeUpdate=t}catch(e){Kf(r,r.return,e)}}break;case 3:if(1024&o)if(9===(t=(i=r.stateNode.containerInfo).nodeType))Oh(i);else if(1===t)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Oh(i);break;default:i.textContent=""}break;case 30:t&&null!==i&&(t=Qn(i.memoizedProps,i.stateNode),"none"!==(o=ri((o=r.memoizedProps).default,o.update))&&Ss(i,t,o,i.memoizedState=[],!0));break;default:if(1024&o)throw Error(n(163))}if(null!==(i=r.sibling)){i.return=r.return,Us=i;break}Us=r.return}}function Gs(e,r,t){var n=t.flags;switch(t.tag){case 0:case 11:case 15:dc(e,t),4&n&&Qu(5,t);break;case 1:if(dc(e,t),4&n)if(e=t.stateNode,null===r)try{e.componentDidMount()}catch(e){Kf(t,t.return,e)}else{var i=nu(t.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(i,r,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Kf(t,t.return,e)}}64&n&&rs(t),512&n&&ns(t,t.return);break;case 3:if(dc(e,t),64&n&&null!==(e=t.updateQueue)){if(r=null,null!==t.child)switch(t.child.tag){case 27:case 5:case 1:r=t.child.stateNode}try{oa(e,r)}catch(e){Kf(t,t.return,e)}}break;case 27:null===r&&4&n&&vs(t);case 26:case 5:dc(e,t),null===r&&4&n&&cs(t),512&n&&ns(t,t.return);break;case 12:dc(e,t);break;case 31:dc(e,t),4&n&&tc(e,t);break;case 13:dc(e,t),4&n&&nc(e,t),64&n&&null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)&&function(e,r){var t=e.ownerDocument;if("$~"===e.data)e._reactRetry=r;else if("$?"!==e.data||"loading"!==t.readyState)r();else{var n=function(){r(),t.removeEventListener("DOMContentLoaded",n)};t.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}(e,t=Xf.bind(null,t));break;case 22:if(!(n=null!==t.memoizedState||Ns)){var o=null!==r&&null!==r.memoizedState||Ts;r=Ns,i=Ts,Ns=n,(Ts=o)&&!i?(n=2,!!(8772&t.subtreeFlags)&&(n|=1),mc(e,t,n)):dc(e,t),Ns=r,Ts=i}break;case 30:dc(e,t),512&n&&ns(t,t.return);break;case 7:512&n&&ns(t,t.return);default:dc(e,t)}}function Ks(e,r){for(e=e.child;null!==e;)Js(e,r),e=e.sibling}function Js(e,r){switch(e.tag){case 5:case 26:try{if(r){var t=e.stateNode.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}else{var n=e.stateNode,i=e.memoizedProps.style,o=null!=i&&i.hasOwnProperty("display")?i.display:null;n.style.display=null==o||"boolean"==typeof o?"":(""+o).trim()}}catch(r){Kf(e,e.return,r)}Zs(e,r);break;case 6:try{e.stateNode.nodeValue=r?"":e.memoizedProps,Ir=!0}catch(r){Kf(e,e.return,r)}break;case 18:try{rh(e.stateNode,!!r)}catch(r){Kf(e,e.return,r)}break;case 22:case 23:null===e.memoizedState&&Ks(e,r);break;default:Ks(e,r)}}function Zs(e,r){if(67108864&e.subtreeFlags)for(e=e.child;null!==e;){e:{var t=e,n=r;switch(t.tag){case 4:Js(t,n);break e;case 22:null===t.memoizedState&&Zs(t,n);break e;default:Zs(t,n)}}e=e.sibling}}function Ys(e){var r=e.alternate;null!==r&&(e.alternate=null,Ys(r)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(r=e.stateNode)&&yr(r),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xs=null,Qs=!1;function ec(e,r,t){for(t=t.child;null!==t;)rc(e,r,t),t=t.sibling}function rc(e,r,t){if(Re&&"function"==typeof Re.onCommitFiberUnmount)try{Re.onCommitFiberUnmount(Te,t)}catch(e){}switch(t.tag){case 26:Ts||is(t,r),ec(e,r,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&!Ts&&(t=t.stateNode).parentNode.removeChild(t);break;case 27:Ts||is(t,r),ls(t);var n=Xs,i=Qs;Qd(t.type)&&(Xs=t.stateNode,Qs=!1),ec(e,r,t),Nh(t.stateNode,t.type,t.memoizedProps),Xs=n,Qs=i;break;case 5:Ts||is(t,r),ls(t);case 6:if(6===t.tag&&ls(t),n=Xs,i=Qs,Xs=null,ec(e,r,t),Qs=i,null!==(Xs=n))if(Qs)try{(9===Xs.nodeType?Xs.body:"HTML"===Xs.nodeName?Xs.ownerDocument.body:Xs).removeChild(t.stateNode),Ir=!0}catch(e){Kf(t,r,e)}else try{Xs.removeChild(t.stateNode),Ir=!0}catch(e){Kf(t,r,e)}break;case 18:null!==Xs&&(Qs?(eh(9===(e=Xs).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,t.stateNode),Km(e)):eh(Xs,t.stateNode));break;case 4:n=Xs,i=Qs,Xs=t.stateNode.containerInfo,Qs=!0,ec(e,r,t),Xs=n,Qs=i;break;case 0:case 11:case 14:case 15:es(2,t,r),Ts||es(4,t,r),ec(e,r,t);break;case 1:Ts||(is(t,r),"function"==typeof(n=t.stateNode).componentWillUnmount&&ts(t,r,n)),ec(e,r,t);break;case 21:ec(e,r,t);break;case 22:Ts=(n=Ts)||null!==t.memoizedState,ec(e,r,t),Ts=n;break;case 30:is(t,r),ec(e,r,t);break;case 7:Ts||is(t,r),ec(e,r,t);break;default:ec(e,r,t)}}function tc(e,r){if(null===r.memoizedState&&null!==(e=r.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Km(e)}catch(e){Kf(r,r.return,e)}}}function nc(e,r){if(null===r.memoizedState&&null!==(e=r.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Km(e)}catch(e){Kf(r,r.return,e)}}function ic(e,r){var t=function(e){switch(e.tag){case 31:case 13:case 19:var r=e.stateNode;return null===r&&(r=e.stateNode=new zs),r;case 22:return null===(r=(e=e.stateNode)._retryCache)&&(r=e._retryCache=new zs),r;default:throw Error(n(435,e.tag))}}(e);r.forEach((function(r){if(!t.has(r)){t.add(r);var n=Qf.bind(null,e,r);r.then(n,n)}}))}function oc(e,r,t){var i=r.deletions;if(null!==i)for(var o=0;o<i.length;o++){var a=i[o],l=e,u=r,s=u;e:for(;null!==s;){switch(s.tag){case 27:if(Qd(s.type)){Xs=s.stateNode,Qs=!1;break e}break;case 5:Xs=s.stateNode,Qs=!1;break e;case 3:case 4:Xs=s.stateNode.containerInfo,Qs=!0;break e}s=s.return}if(null===Xs)throw Error(n(160));rc(l,u,a),Xs=null,Qs=!1,null!==(l=a.alternate)&&(l.return=null),a.return=null}if(13886&r.subtreeFlags)for(r=r.child;null!==r;)lc(r,e,t),r=r.sibling}var ac=null;function lc(e,r,t){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(4&o&&null!==(i=null!==(i=e.updateQueue)?i.events:null))for(var a=0;a<i.length;a++){var l=i[a];l.ref.impl=l.nextImpl}oc(r,e,t),uc(e),4&o&&(es(3,e,e.return),Qu(3,e),es(5,e,e.return));break;case 1:oc(r,e,t),uc(e),512&o&&(Ts||null===i||is(i,i.return)),64&o&&Ns&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(e.shared.hiddenCallbacks=null===(t=e.shared.hiddenCallbacks)?r:t.concat(r));break;case 26:if(a=ac,oc(r,e,t),uc(e),512&o&&(Ts||null===i||is(i,i.return)),4&o)if(o=null!==i?i.memoizedState:null,t=e.memoizedState,null===i)if(null===t)if(null===e.stateNode)if(Ns)e.stateNode=Vd(e.type,e.memoizedProps,r.containerInfo,e);else{e:{t=e.memoizedProps,o=a.ownerDocument||a;r:switch(r=e.type){case"title":(!(i=o.getElementsByTagName("title")[0])||i[pr]||i[ur]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),Nd(i,r,t),i[ur]=e,$r(i),r=i;break e;case"link":if(a=rm("link","href",o).get(r+(t.href||"")))for(l=0;l<a.length;l++)if((i=a[l]).getAttribute("href")===(null==t.href||""===t.href?null:t.href)&&i.getAttribute("rel")===(null==t.rel?null:t.rel)&&i.getAttribute("title")===(null==t.title?null:t.title)&&i.getAttribute("crossorigin")===(null==t.crossOrigin?null:t.crossOrigin)){a.splice(l,1);break r}Nd(i=o.createElement(r),r,t),o.head.appendChild(i);break;case"meta":if(a=rm("meta","content",o).get(r+(t.content||"")))for(l=0;l<a.length;l++)if((i=a[l]).getAttribute("content")===(null==t.content?null:""+t.content)&&i.getAttribute("name")===(null==t.name?null:t.name)&&i.getAttribute("property")===(null==t.property?null:t.property)&&i.getAttribute("http-equiv")===(null==t.httpEquiv?null:t.httpEquiv)&&i.getAttribute("charset")===(null==t.charSet?null:t.charSet)){a.splice(l,1);break r}Nd(i=o.createElement(r),r,t),o.head.appendChild(i);break;default:throw Error(n(468,r))}i[ur]=e,$r(i),r=i}e.stateNode=r}else Ns||tm(a,e.type,e.stateNode);else e.stateNode=Zh(a,t,e.memoizedProps);else o!==t?(null===o?null===(r=i.stateNode)||Ts||r.parentNode.removeChild(r):o.count--,null===t?Ns||tm(a,e.type,e.stateNode):Zh(a,t,e.memoizedProps)):null===t&&null!==e.stateNode&&fs(e,e.memoizedProps,i.memoizedProps);break;case 27:oc(r,e,t),uc(e),512&o&&(Ts||null===i||is(i,i.return)),null!==i&&4&o&&fs(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=Rs,Rs=!1,oc(r,e,t),Rs=a,uc(e),512&o&&(Ts||null===i||is(i,i.return)),32&e.flags){r=e.stateNode;try{Kr(r,""),Ir=!0}catch(r){Kf(e,e.return,r)}}4&o&&null!=e.stateNode&&fs(e,r=e.memoizedProps,null!==i?i.memoizedProps:r),1024&o&&(Ms=!0);break;case 6:if(oc(r,e,t),uc(e),4&o){if(null===e.stateNode)throw Error(n(162));r=e.memoizedProps,t=e.stateNode;try{t.nodeValue=r,Ir=!0}catch(r){Kf(e,e.return,r)}}break;case 3:if(Ir=!1,em=null,a=ac,ac=zh(r.containerInfo),oc(r,e,t),ac=a,uc(e),4&o&&null!==i&&i.memoizedState.isDehydrated)try{Km(r.containerInfo)}catch(r){Kf(e,e.return,r)}Ms&&(Ms=!1,sc(e)),Ir=!1;break;case 4:o=Rs,Rs=Ns,i=Dr(),a=ac,ac=zh(e.stateNode.containerInfo),oc(r,e,t),uc(e),ac=a,Ir&&Bs&&(Vs=!0),Ir=i,Rs=o;break;case 12:oc(r,e,t),uc(e);break;case 31:oc(r,e,t),uc(e),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,ic(e,r));break;case 13:oc(r,e,t),uc(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==i&&null!==i.memoizedState)&&(Zc=Ae()),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,ic(e,r));break;case 22:a=null!==e.memoizedState,l=null!==i&&null!==i.memoizedState;var u=Ns,s=Ts,c=Rs;Ns=u||a,Rs=c||a,Ts=s||l,oc(r,e,t),Ts=s,Rs=c,Ns=u,uc(e),8192&o&&((r=e.stateNode)._visibility=a?-2&r._visibility:1|r._visibility,!a||null===i||l||Ns||Ts||(t=Ns,i=Ts,Ns=a||Ns,Ts=r=l||Ts,hc(e,2),Ns=t,Ts=i),!a&&Rs||Ks(e,a)),4&o&&null!==(r=e.updateQueue)&&null!==(t=r.retryQueue)&&(r.retryQueue=null,ic(e,t));break;case 19:oc(r,e,t),uc(e),4&o&&null!==(r=e.updateQueue)&&(e.updateQueue=null,ic(e,r));break;case 30:512&o&&(Ts||null===i||is(i,i.return)),o=Dr(),a=Bs,u=e.memoizedProps,Bs=(l=(335544064&t)===t)&&"none"!==ri(u.default,u.update),oc(r,e,t),uc(e),l&&null!==i&&Ir&&(e.flags|=4),Bs=a,Ir=o;break;case 21:break;case 7:512&o&&(Ts||null===i||is(i,i.return)),i&&null!==i.stateNode&&(i.stateNode._fragmentFiber=e);default:oc(r,e,t),uc(e)}}function uc(e){var r=e.flags;if(2&r){try{for(var t,i=e.return;null!==i;){if(ds(i)){t=i;break}i=i.return}i=null;for(var o=e.return;null!==o;){if(ss(o)){var a=o.stateNode;null===i?i=[a]:i.push(a)}if(us(o))break;o=o.return}var l=i;if(null==t)throw Error(n(160));switch(t.tag){case 27:var u=t.stateNode;ps(e,hs(e),u,l);break;case 5:var s=t.stateNode;32&t.flags&&(Kr(s,""),t.flags&=-33),ps(e,hs(e),s,l);break;case 3:case 4:var c=t.stateNode.containerInfo;ms(e,hs(e),c,l);break;default:throw Error(n(161))}}catch(r){Kf(e,e.return,r)}e.flags&=-3}4096&r&&(e.flags&=-4097)}function sc(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var r=e;sc(r),5===r.tag&&1024&r.flags&&(Sm=!0,(r=r.stateNode).reset(),Sm=!1),e=e.sibling}}function cc(e,r){if(9270&r.subtreeFlags)for(r=r.child;null!==r;)fc(r,e),r=r.sibling;else qs(r)}function fc(e,r){var t=e.alternate;if(null===t)Os(e,!1);else switch(e.tag){case 3:if(Hs=Ls=!1,ks(),cc(r,e),!Ls&&!Vs){if(null!==(e=ws))for(var n=0;n<e.length;n+=3){var i=e[n+1];nh(t=e[n],e[n+2]),null!==(t=t.ownerDocument.documentElement)&&t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}null!==(e=9===(e=r.containerInfo).nodeType?e.documentElement:e.ownerDocument.documentElement)&&""===e.style.viewTransitionName&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Hs=!0}ws=null;break;case 5:default:cc(r,e);break;case 4:n=Ls,Ls=!1,cc(r,e),Ls&&(Vs=!0),Ls=n;break;case 22:null===e.memoizedState&&(null!==t.memoizedState?Os(e,!1):cc(r,e));break;case 30:n=Ls,i=ks(),Ls=!1,cc(r,e),Ls&&(e.flags|=4);var o=e.memoizedProps,a=e.stateNode;r=Qn(o,a),a=Qn(t.memoizedProps,a);var l=ri(o.default,o.update);"none"===l?r=!1:(o=t.memoizedState,t.memoizedState=null,$s=0,r=Fs(e,t=e.child,r,a,l,o,!0),$s!==(null===o?0:o.length)&&(e.flags|=32)),4&e.flags&&r?(vf(e,e.memoizedProps.onUpdate),ws=i):null!==i&&(i.push.apply(i,ws),ws=i),Ls=!!(32&e.flags)||n}}function dc(e,r){if(8772&r.subtreeFlags)for(r=r.child;null!==r;)Gs(e,r.alternate,r),r=r.sibling}function hc(e,r){for(e=e.child;null!==e;){var t=e,n=r;switch(t.tag){case 0:case 11:case 14:case 15:es(4,t,t.return),hc(t,n);break;case 1:is(t,t.return);var i=t.stateNode;"function"==typeof i.componentWillUnmount&&ts(t,t.return,i),hc(t,n);break;case 27:2&n&&Nh(t.stateNode,t.type,t.memoizedProps);case 5:is(t,t.return),5!==t.tag&&27!==t.tag||ls(t),hc(t,n);break;case 6:ls(t);break;case 26:is(t,t.return),i=t.stateNode,null!==t.memoizedState||null===i||Ts||i.parentNode.removeChild(i),hc(t,n);break;case 22:null===t.memoizedState&&hc(t,n);break;case 30:is(t,t.return),hc(t,n);break;case 7:is(t,t.return);default:hc(t,n)}e=e.sibling}}function mc(e,r,t){for(t=8772&r.subtreeFlags?t:-2&t,r=r.child;null!==r;){var n=r.alternate,i=e,o=r,a=o.flags,l=!!(1&t);switch(o.tag){case 0:case 11:case 15:mc(i,o,t),Qu(4,o);break;case 1:if(mc(i,o,t),"function"==typeof(i=(n=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){Kf(n,n.return,e)}if(null!==(i=(n=o).updateQueue)){var u=n.stateNode;try{var s=i.shared.hiddenCallbacks;if(null!==s)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)ia(s[i],u)}catch(e){Kf(n,n.return,e)}}l&&64&a&&rs(o),ns(o,o.return);break;case 27:2&t&&vs(o);case 5:5!==o.tag&&27!==o.tag||as(o),mc(i,o,t),l&&null===n&&4&a&&cs(o),ns(o,o.return);break;case 6:as(o);break;case 26:u=o.stateNode,null!==o.memoizedState||null===u||Ns||tm(zh(u.ownerDocument),o.type,u),mc(i,o,t),l&&null===n&&4&a&&cs(o),ns(o,o.return);break;case 12:mc(i,o,t);break;case 31:mc(i,o,t),l&&4&a&&tc(i,o);break;case 13:mc(i,o,t),l&&4&a&&nc(i,o);break;case 22:null===o.memoizedState&&mc(i,o,t),ns(o,o.return);break;case 30:mc(i,o,t),ns(o,o.return);break;case 7:ns(o,o.return);default:mc(i,o,t)}r=r.sibling}}function pc(e,r){var t=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(t=e.memoizedState.cachePool.pool),e=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(e=r.memoizedState.cachePool.pool),e!==t&&(null!=e&&e.refCount++,null!=t&&yo(t))}function vc(e,r){e=null,null!==r.alternate&&(e=r.alternate.memoizedState.cache),(r=r.memoizedState.cache)!==e&&(r.refCount++,null!=e&&yo(e))}function yc(e,r,t,n){var i=(335544064&t)===t;if(r.subtreeFlags&(i?10262:10256))for(r=r.child;null!==r;)bc(e,r,t,n),r=r.sibling;else i&&Ps(r)}function bc(e,r,t,n){var i=(335544064&t)===t;i&&null===r.alternate&&null!==r.return&&null!==r.return.alternate&&Ds(r);var o=r.flags;switch(r.tag){case 0:case 11:case 15:yc(e,r,t,n),2048&o&&Qu(9,r);break;case 1:case 31:case 13:default:yc(e,r,t,n);break;case 3:yc(e,r,t,n),i&&Hs&&("root"===(e=9===(e=e.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).style.viewTransitionName&&(e.style.viewTransitionName=""),null!==(e=e.ownerDocument.documentElement)&&"none"===e.style.viewTransitionName&&(e.style.viewTransitionName="")),2048&o&&(o=null,null!==r.alternate&&(o=r.alternate.memoizedState.cache),(r=r.memoizedState.cache)!==o&&(r.refCount++,null!=o&&yo(o)));break;case 12:if(2048&o){yc(e,r,t,n),o=r.stateNode;try{var a=r.memoizedProps,l=a.id,u=a.onPostCommit;"function"==typeof u&&u(l,null===r.alternate?"mount":"update",o.passiveEffectDuration,-0)}catch(e){Kf(r,r.return,e)}}else yc(e,r,t,n);break;case 23:break;case 22:a=r.stateNode,l=r.alternate,null!==r.memoizedState?(i&&null!==l&&null===l.memoizedState&&Ds(l),2&a._visibility?yc(e,r,t,n):wc(e,r)):(i&&null!==l&&null!==l.memoizedState&&Ds(r),2&a._visibility?yc(e,r,t,n):(a._visibility|=2,gc(e,r,t,n,!!(10256&r.subtreeFlags)||!1))),2048&o&&pc(l,r);break;case 24:yc(e,r,t,n),2048&o&&vc(r.alternate,r);break;case 30:i&&null!==(o=r.alternate)&&(js(o.child,!0),js(r.child,!0)),yc(e,r,t,n)}}function gc(e,r,t,n,i){for(i=i&&(!!(10256&r.subtreeFlags)||!1),r=r.child;null!==r;){var o=e,a=r,l=t,u=n,s=a.flags;switch(a.tag){case 0:case 11:case 15:gc(o,a,l,u,i),Qu(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?gc(o,a,l,u,i):wc(o,a):(c._visibility|=2,gc(o,a,l,u,i)),i&&2048&s&&pc(a.alternate,a);break;case 24:gc(o,a,l,u,i),i&&2048&s&&vc(a.alternate,a);break;default:gc(o,a,l,u,i)}r=r.sibling}}function wc(e,r){if(10256&r.subtreeFlags)for(r=r.child;null!==r;){var t=e,n=r,i=n.flags;switch(n.tag){case 22:wc(t,n),2048&i&&pc(n.alternate,n);break;case 24:wc(t,n),2048&i&&vc(n.alternate,n);break;default:wc(t,n)}r=r.sibling}}var kc=8192;function $c(e,r,t){if(e.subtreeFlags&kc)for(e=e.child;null!==e;)Sc(e,r,t),e=e.sibling}function Sc(e,r,t){switch(e.tag){case 26:$c(e,r,t),e.flags&kc&&(null!==e.memoizedState?function(e,r,t,n){if(!("stylesheet"!==t.type||"string"==typeof n.media&&!1===matchMedia(n.media).matches||4&t.state.loading)){if(null===t.instance){var i=Hh(n.href),o=r.querySelector(Wh(i));if(o)return null!==(r=o._p)&&"object"==typeof r&&"function"==typeof r.then&&(e.count++,e=sm.bind(e),r.then(e,e)),t.state.loading|=4,t.instance=o,void $r(o);o=r.ownerDocument||r,n=Gh(n),(i=Rh.get(i))&&Xh(n,i),$r(o=o.createElement("link"));var a=o;a._p=new Promise((function(e,r){a.onload=e,a.onerror=r})),Nd(o,"link",n),t.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(t,r),(r=t.state.preload)&&!(3&t.state.loading)&&(e.count++,t=sm.bind(e),r.addEventListener("load",t),r.addEventListener("error",t))}}(t,ac,e.memoizedState,e.memoizedProps):(e=e.stateNode,(335544128&r)===r&&am(t,e)));break;case 5:$c(e,r,t),e.flags&kc&&(e=e.stateNode,(335544128&r)===r&&am(t,e));break;case 3:case 4:var n=ac;ac=zh(e.stateNode.containerInfo),$c(e,r,t),ac=n;break;case 22:null===e.memoizedState&&(null!==(n=e.alternate)&&null!==n.memoizedState?(n=kc,kc=16777216,$c(e,r,t),kc=n):$c(e,r,t));break;case 30:if(e.flags&kc&&null!=(n=e.memoizedProps.name)&&"auto"!==n){var i=e.stateNode;i.paired=null,null===bs&&(bs=new Map),bs.set(n,i)}$c(e,r,t);break;default:$c(e,r,t)}}function Ec(e){var r=e.alternate;if(null!==r&&null!==(e=r.child)){r.child=null;do{r=e.sibling,e.sibling=null,e=r}while(null!==e)}}function jc(e){var r=e.deletions;if(16&e.flags){if(null!==r)for(var t=0;t<r.length;t++){var n=r[t];Us=n,Ac(n,e)}Ec(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)xc(e),e=e.sibling}function xc(e){switch(e.tag){case 0:case 11:case 15:jc(e),2048&e.flags&&es(9,e,e.return);break;case 3:case 12:default:jc(e);break;case 22:var r=e.stateNode;null!==e.memoizedState&&2&r._visibility&&(null===e.return||13!==e.return.tag)?(r._visibility&=-3,Oc(e)):jc(e)}}function Oc(e){var r=e.deletions;if(16&e.flags){if(null!==r)for(var t=0;t<r.length;t++){var n=r[t];Us=n,Ac(n,e)}Ec(e)}for(e=e.child;null!==e;){switch((r=e).tag){case 0:case 11:case 15:es(8,r,r.return),Oc(r);break;case 22:2&(t=r.stateNode)._visibility&&(t._visibility&=-3,Oc(r));break;default:Oc(r)}e=e.sibling}}function Ac(e,r){for(;null!==Us;){var t=Us;switch(t.tag){case 0:case 11:case 15:es(8,t,r);break;case 23:case 22:if(null!==t.memoizedState&&null!==t.memoizedState.cachePool){var n=t.memoizedState.cachePool.pool;null!=n&&n.refCount++}break;case 24:yo(t.memoizedState.cache)}if(null!==(n=t.child))n.return=t,Us=n;else e:for(t=e;null!==Us;){var i=(n=Us).sibling,o=n.return;if(Ys(n),n===t){Us=null;break e}if(null!==i){i.return=o,Us=i;break e}Us=o}}}var Cc={getCacheForType:function(e){var r=uo(po),t=r.data.get(e);return void 0===t&&(t=e(),r.data.set(e,t)),t},cacheSignal:function(){return uo(po).controller.signal}},_c="function"==typeof WeakMap?WeakMap:Map,Ic=0,Dc=null,Pc=null,Fc=0,qc=0,Nc=null,Tc=!1,Rc=!1,Mc=!1,zc=0,Uc=0,Lc=0,Bc=0,Vc=0,Hc=0,Wc=0,Gc=null,Kc=null,Jc=!1,Zc=0,Yc=0,Xc=1/0,Qc=null,ef=null,rf=0,tf=null,nf=null,of=0,af=0,lf=null,uf=null,sf=null,cf=null,ff=null,df=0,hf=null;function mf(){return 2&Ic&&0!==Fc?Fc&-Fc:null!==W.T?hd():or()}function pf(){if(0===Hc)if(536870912&Fc&&!Ui)Hc=536870912;else{var e=Ve;!(3932160&(Ve<<=1))&&(Ve=262144),Hc=e}return null!==(e=fa.current)&&(e.flags|=32),Hc}function vf(e,r){if(null!=r){var t=e.stateNode,n=t.ref;null===n&&(n=t.ref=lh(Qn(e.memoizedProps,t))),null===cf&&(cf=[]),cf.push(r.bind(null,n))}}function yf(e,r,t){(e!==Dc||2!==qc&&9!==qc)&&null===e.cancelPendingCommit||(Ef(e,0),kf(e,Fc,Hc,!1)),Qe(e,t),2&Ic&&e===Dc||(e===Dc&&(!(2&Ic)&&(Bc|=t),4===Uc&&kf(e,Fc,Hc,!1)),ad(e))}function bf(e,r,t){if(6&Ic)throw Error(n(327));for(var i=!t&&!(127&r)&&!(r&e.expiredLanes)||Ke(e,r),o=i?function(e,r){var t=Ic;Ic|=2;var i=Of(),o=Af();Dc!==e||Fc!==r?(Qc=null,Xc=Ae()+500,Ef(e,r)):Rc=Ke(e,r);e:for(;;)try{if(0!==qc&&null!==Pc){r=Pc;var a=Nc;r:switch(qc){case 1:qc=0,Nc=null,qf(e,r,a,1);break;case 2:case 9:if(Fo(a)){qc=0,Nc=null,Ff(r);break}a.then(r=function(){2!==qc&&9!==qc||Dc!==e||(qc=7),ad(e)},r);break e;case 3:qc=7;break e;case 4:qc=5;break e;case 7:Fo(a)?(qc=0,Nc=null,Ff(r)):(qc=0,Nc=null,qf(e,r,a,7));break;case 5:var l=null;switch(Pc.tag){case 26:l=Pc.memoizedState;case 5:case 27:var u=Pc;if(l?im(l):u.stateNode.complete){qc=0,Nc=null;var s=u.sibling;if(null!==s)Pc=s;else{var c=u.return;null!==c?(Pc=c,Nf(c)):Pc=null}break r}}qc=0,Nc=null,qf(e,r,a,5);break;case 6:qc=0,Nc=null,qf(e,r,a,6);break;case 8:Sf(),Uc=6;break e;default:throw Error(n(462))}}Df();break}catch(r){jf(e,r)}return eo=Qi=null,W.H=i,W.A=o,Ic=t,null!==Pc?0:(Dc=null,Fc=0,ai(),Uc)}(e,r):_f(e,r,!0),a=i;;){if(0===o){Rc&&!i&&kf(e,r,0,!1);break}if(t=e.current.alternate,!a||wf(t)){if(2===o){if(e.errorRecoveryDisabledLanes&(a=r))var l=0;else l=0!=(l=-536870913&e.pendingLanes)?l:536870912&l?536870912:0;if(0!==l){r=l;e:{var u=e;o=Gc;var s=u.current.memoizedState.isDehydrated;if(s&&(Ef(u,l).flags|=256),2!==(l=_f(u,l,!1))&&6!==l){if(Mc&&!s){u.errorRecoveryDisabledLanes|=a,Bc|=a,o=4;break e}a=Kc,Kc=o,null!==a&&(null===Kc?Kc=a:Kc.push.apply(Kc,a))}o=l}if(a=!1,2!==o)continue}}if(1===o){Ef(e,0),kf(e,r,0,!0);break}e:{switch(i=e,a=o){case 0:case 1:throw Error(n(345));case 4:if((4194048&r)!==r&&(62914560&r)!==r)break;case 6:kf(i,r,Hc,!Tc);break e;case 2:Kc=null;break;case 3:case 5:break;default:throw Error(n(329))}if((62914560&r)===r&&10<(o=Zc+300-Ae())){if(kf(i,r,Hc,!Tc),0!==Ge(i,0,!0))break e;of=r,i.timeoutHandle=Gd(gf.bind(null,i,t,Kc,Qc,Jc,r,Hc,Bc,Wc,Tc,a,"Throttled",-0,0),o)}else gf(i,t,Kc,Qc,Jc,r,Hc,Bc,Wc,Tc,a,null,-0,0)}break}o=_f(e,r,!1),a=!1}ad(e)}function gf(e,r,t,n,i,o,a,l,u,s,c,f,d,h){e.timeoutHandle=-1;var m,p,v=r.subtreeFlags,y=(335544064&o)===o;if(f=null,(y||8192&v||!(16785408&~v))&&(bs=null,Sc(r,o,f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tt}),y&&(v=f,null!=(y=(9===(y=e.containerInfo).nodeType?y:y.ownerDocument).__reactViewTransition)&&(v.count++,v.waitingForViewTransition=!0,v=sm.bind(v),y.finished.then(v,v))),v=(62914560&o)===o?Zc-Ae():(4194048&o)===o?Yc-Ae():0,p=v,(m=f).stylesheets&&0===m.count&&dm(m,m.stylesheets),null!==(v=0<m.count||0<m.imgCount?function(e){var r=setTimeout((function(){if(m.stylesheets&&dm(m,m.stylesheets),m.unsuspend){var e=m.unsuspend;m.unsuspend=null,e()}}),6e4+p);0<m.imgBytes&&0===lm&&(lm=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,r=0,t=performance.getEntriesByType("resource"),n=0;n<t.length;n++){var i=t[n],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&Rd(a)){for(a=0,l=i.responseEnd,n+=1;n<t.length;n++){var u=t[n],s=u.startTime;if(s>l)break;var c=u.transferSize;c&&Rd(u.initiatorType)&&(a+=c*((u=u.responseEnd)<l?1:(l-s)/(u-s)))}if(--n,r+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return r/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var t=setTimeout((function(){if(m.waitingForImages=!1,0===m.count&&(m.stylesheets&&dm(m,m.stylesheets),m.unsuspend)){var e=m.unsuspend;m.unsuspend=null,e()}}),(m.imgBytes>lm?50:800)+p);return m.unsuspend=e,function(){m.unsuspend=null,clearTimeout(r),clearTimeout(t)}}:null)))return of=o,e.cancelPendingCommit=v(Rf.bind(null,e,r,o,t,n,i,a,l,u,s,c,f,null,d,h)),void kf(e,o,a,!s);Rf(e,r,o,t,n,0,a,l,u,0,0,f)}function wf(e){for(var r=e;;){var t=r.tag;if((0===t||11===t||15===t)&&16384&r.flags&&null!==(t=r.updateQueue)&&null!==(t=t.stores))for(var n=0;n<t.length;n++){var i=t[n],o=i.getSnapshot;i=i.value;try{if(!Sn(o(),i))return!1}catch(e){return!1}}if(t=r.child,16384&r.subtreeFlags&&null!==t)t.return=r,r=t;else{if(r===e)break;for(;null===r.sibling;){if(null===r.return||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function kf(e,r,t,n){r=Je(e,r),r&=~Vc,e.suspendedLanes|=r&=~Bc,e.pingedLanes&=~r,n&&(e.warmLanes|=r),n=e.expirationTimes;for(var i=r;0<i;){var o=31-ze(i),a=1<<o;n[o]=-1,i&=~a}0!==t&&er(e,t,r)}function $f(){return!!(6&Ic)||(ld(0),!1)}function Sf(){if(null!==Pc){if(0===qc)var e=Pc.return;else eo=Qi=null,Ua(e=Pc),zo=null,Uo=0,e=Pc;for(;null!==e;)Xu(e.alternate,e),e=e.return;Pc=null}}function Ef(e,r){var t=e.timeoutHandle;return-1!==t&&(e.timeoutHandle=-1,Kd(t)),null!==(t=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,t()),of=0,Sf(),Dc=e,Pc=t=vi(e.current,null),Fc=r,qc=0,Nc=null,Tc=!1,Rc=Ke(e,r),Mc=!1,Wc=Hc=Vc=Bc=Lc=Uc=0,Kc=Gc=null,Jc=!1,zc=Je(e,r),ai(),t}function jf(e,r){Sa=null,W.H=Jl,r===_o||r===Do?(r=Ro(),qc=3):r===Io?(r=Ro(),qc=4):qc=r===du?8:null!==r&&"object"==typeof r&&"function"==typeof r.then?6:1,Nc=r,null===Pc&&(Uc=1,lu(e,Ei(r,e.current)))}function xf(){var e=fa.current;return null===e||((4194048&Fc)===Fc?null===da:!!((62914560&Fc)===Fc||536870912&Fc)&&e===da)}function Of(){var e=W.H;return W.H=Jl,null===e?Jl:e}function Af(){var e=W.A;return W.A=Cc,e}function Cf(){Uc=4,Tc||(4194048&Fc)!==Fc&&null!==fa.current||(Rc=!0),!(134217727&Lc)&&!(134217727&Bc)||null===Dc||kf(Dc,Fc,Hc,!1)}function _f(e,r,t){var n=Ic;Ic|=2;var i=Of(),o=Af();Dc===e&&Fc===r||(Qc=null,Ef(e,r)),r=!1;var a=Uc;e:for(;;)try{if(0!==qc&&null!==Pc){var l=Pc,u=Nc;switch(qc){case 8:Sf(),a=6;break e;case 3:case 2:case 9:case 6:null===fa.current&&(r=!0);var s=qc;if(qc=0,Nc=null,qf(e,l,u,s),t&&Rc){a=0;break e}break;default:s=qc,qc=0,Nc=null,qf(e,l,u,s)}}If(),a=Uc;break}catch(r){jf(e,r)}return r&&e.shellSuspendCounter++,eo=Qi=null,Ic=n,W.H=i,W.A=o,null===Pc&&(Dc=null,Fc=0,ai()),a}function If(){for(;null!==Pc;)Pf(Pc)}function Df(){for(;null!==Pc&&!xe();)Pf(Pc)}function Pf(e){var r=Bu(e.alternate,e,zc);e.memoizedProps=e.pendingProps,null===r?Nf(e):Pc=r}function Ff(e){var r=e,t=r.alternate;switch(r.tag){case 15:case 0:r=ju(t,r,r.pendingProps,r.type,void 0,Fc);break;case 11:r=ju(t,r,r.pendingProps,r.type.render,r.ref,Fc);break;case 5:Ua(r);var n=r;n===Mi&&(Ui?(Gi(n),5===n.tag&&null!=n.stateNode&&(zi=n.stateNode)):(Gi(n),Ui=!0));default:Xu(t,r),r=Bu(t,r=Pc=yi(r,zc),zc)}e.memoizedProps=e.pendingProps,null===r?Nf(e):Pc=r}function qf(e,r,t,i){eo=Qi=null,Ua(r),zo=null,Uo=0;var o=r.return;try{if(function(e,r,t,i,o){if(t.flags|=32768,null!==i&&"object"==typeof i&&"function"==typeof i.then){if(null!==(r=t.alternate)&&oo(r,t,o,!0),null!==(t=fa.current)){switch(t.tag){case 31:case 13:case 19:return null===da?Cf():null===t.alternate&&0===Uc&&(Uc=3),t.flags&=-257,t.flags|=65536,t.lanes=o,i===Po?t.flags|=16384:(null===(r=t.updateQueue)?t.updateQueue=new Set([i]):r.add(i),Jf(e,i,o)),!1;case 22:return t.flags|=65536,i===Po?t.flags|=16384:(null===(r=t.updateQueue)?(r={transitions:null,markerInstances:null,retryQueue:new Set([i])},t.updateQueue=r):null===(t=r.retryQueue)?r.retryQueue=new Set([i]):t.add(i),Jf(e,i,o)),!1}throw Error(n(435,t.tag))}return Jf(e,i,o),Cf(),!1}if(Ui)return null!==(r=fa.current)?(!(65536&r.flags)&&(r.flags|=256),r.flags|=65536,r.lanes=o,i!==Vi&&Yi(Ei(e=Error(n(422),{cause:i}),t))):(i!==Vi&&Yi(Ei(r=Error(n(423),{cause:i}),t)),(e=e.current.alternate).flags|=65536,e.lanes|=o&=-o,i=Ei(i,t),ea(e,o=su(e.stateNode,i,o)),4!==Uc&&(Uc=2)),!1;var a=Error(n(520),{cause:i});if(a=Ei(a,t),null===Gc?Gc=[a]:Gc.push(a),4!==Uc&&(Uc=2),null===r)return!0;i=Ei(i,t),t=r;do{switch(t.tag){case 3:return t.flags|=65536,t.lanes|=e=o&-o,ea(t,e=su(t.stateNode,i,e)),!1;case 1:if(r=t.type,a=t.stateNode,!(128&t.flags||"function"!=typeof r.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==ef&&ef.has(a))))return t.flags|=65536,t.lanes|=o&=-o,fu(o=cu(o),e,t,i),ea(t,o),!1;break;case 22:if(null!==t.memoizedState)return t.flags|=65536,!1}t=t.return}while(null!==t);return!1}(e,o,r,t,Fc))return Uc=1,lu(e,Ei(t,e.current)),void(Pc=null)}catch(r){if(null!==o)throw Pc=o,r;return Uc=1,lu(e,Ei(t,e.current)),void(Pc=null)}32768&r.flags?(Ui||1===i?e=!0:Rc||536870912&Fc?e=!1:(Tc=e=!0,(2===i||9===i||3===i||6===i)&&null!==(i=fa.current)&&13===i.tag&&(i.flags|=16384)),Tf(r,e)):Nf(r)}function Nf(e){var r=e;do{if(32768&r.flags)return void Tf(r,Tc);e=r.return;var t=Zu(r.alternate,r,zc);if(null!==t)return void(Pc=t);if(null!==(r=r.sibling))return void(Pc=r);Pc=r=e}while(null!==r);0===Uc&&(Uc=5)}function Tf(e,r){do{var t=Yu(e.alternate,e);if(null!==t)return t.flags&=32767,void(Pc=t);if(null!==(t=e.return)&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!r&&null!==(e=e.sibling))return void(Pc=e);Pc=e=t}while(null!==e);Uc=6,Pc=null}function Rf(e,r,t,i,o,a,l,u,s,c,f,d){e.cancelPendingCommit=null;do{Hf()}while(0!==rf);if(6&Ic)throw Error(n(327));if(null!==r){if(r===e.current)throw Error(n(177));e===Dc&&(Pc=Dc=null,Fc=0),nf=r,tf=e,of=t,lf=o,uf=i,function(e,r,t,n,i,o,a){var l=r.lanes|r.childLanes;if(af=l,function(e,r,t,n,i,o){var a=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,s=e.hiddenUpdates;for(t=a&~t;0<t;){var c=31-ze(t),f=1<<c;l[c]=0,u[c]=-1;var d=s[c];if(null!==d)for(s[c]=null,c=0;c<d.length;c++){var h=d[c];null!==h&&(h.lane&=-536870913)}t&=~f}0!==n&&er(e,n,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~r))}(e,t,l|=oi,n,i,o),cf=null,(335544064&t)===t?(ff=function(e){var r=e.transitionTypes;return e.transitionTypes=null,r}(e),n=10262):(ff=null,n=10256),r.subtreeFlags&n||r.flags&n?(e.callbackNode=null,e.callbackPriority=0,Ee(De,(function(){return Wf(),null}))):(e.callbackNode=null,e.callbackPriority=0),ys=!1,n=!!(13878&r.flags),13878&r.subtreeFlags||n){n=W.T,W.T=null,i=G.p,G.p=2,o=Ic,Ic|=4;try{!function(e,r,t){if(Md=Sm,_n(e=Cn(e=e.containerInfo))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else{var i=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;var l=0,u=-1,s=-1,c=0,f=0,d=e,h=null;e:for(;;){for(var m;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==i&&3!==d.nodeType||(s=l+i),3===d.nodeType&&(l+=d.nodeValue.length),null!==(m=d.firstChild);)h=d,d=m;for(;;){if(d===e)break e;if(h===n&&++c===o&&(u=l),h===a&&++f===i&&(s=l),null!==(m=d.nextSibling))break;h=(d=h).parentNode}d=m}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},Sm=!1,Us=r,r=(t=(335544064&t)===t)?9270:1024;null!==Us;){if(e=Us,t&&null!==(n=e.deletions))for(o=0;o<n.length;o++)t&&Cs(n[o]);if(null===e.alternate&&2&e.flags)t&&gs(e),Ws(t);else{if(22===e.tag){if(n=e.alternate,null!==e.memoizedState){null!==n&&null===n.memoizedState&&t&&Cs(n),Ws(t);continue}if(null!==n&&null!==n.memoizedState){t&&gs(e),Ws(t);continue}}n=e.child,e.subtreeFlags&r&&null!==n?(n.return=e,Us=n):(t&&_s(e),Ws(t))}}bs=null}(e,r,t)}finally{Ic=o,G.p=i,W.T=n}}rf=1,ys?sf=function(e,r,t,n,i,o,a,l,u){var s=9===r.nodeType?r:r.ownerDocument;try{var c=s.startViewTransition({update:function(){var r=s.defaultView,t=r.navigation&&r.navigation.transition,a=s.fonts.status;n();var l=[];if("loaded"===a&&"loading"===s.fonts.status&&l.push(s.fonts.ready),a=l.length,null!==e)for(var u=e.suspenseyImages,c=0,f=0;f<u.length;f++){var d=u[f];if(!d.complete){var h=d.getBoundingClientRect();if(0<h.bottom&&0<h.right&&h.top<r.innerHeight&&h.left<r.innerWidth){if((c+=om(d))>lm){l.length=a;break}d=new Promise(oh.bind(d)),l.push(d)}}}return 0<l.length?(r=Promise.race([Promise.all(l),new Promise((function(e){return setTimeout(e,500)}))]).then(i,i),(t?Promise.allSettled([t.finished,r]):r).then(o,o)):(i(),t?t.finished.then(o,o):void o())},types:t});s.__reactViewTransition=c;var f=[];return c.ready.then((function(){for(var e=s.documentElement.getAnimations({subtree:!0}),r=0;r<e.length;r++){var t=e[r],n=t.effect,i=n.pseudoElement;if(null!=i&&i.startsWith("::view-transition")){f.push(t),t=n.getKeyframes();for(var o=i=void 0,l=!0,u=0;u<t.length;u++){var c=t[u],d=c.width;if(void 0===i)i=d;else if(i!==d){l=!1;break}if(d=c.height,void 0===o)o=d;else if(o!==d){l=!1;break}delete c.width,delete c.height,"none"===c.transform&&delete c.transform}l&&void 0!==i&&void 0!==o&&(n.setKeyframes(t),(l=getComputedStyle(n.target,n.pseudoElement)).width!==i||l.height!==o)&&((l=t[0]).width=i,l.height=o,(l=t[t.length-1]).width=i,l.height=o,n.setKeyframes(t))}}a()}),(function(e){s.__reactViewTransition===c&&(s.__reactViewTransition=null);try{"object"==typeof e&&null!==e&&"InvalidStateError"===e.name&&("View transition was skipped because document visibility state is hidden."!==e.message&&"Skipping view transition because document visibility state has become hidden."!==e.message&&"Skipping view transition because viewport size changed."!==e.message&&"Transition was aborted because of invalid state"!==e.message||(e=null)),null!==e&&u(e)}finally{n(),i(),a()}})),c.finished.finally((function(){for(var e=0;e<f.length;e++)f[e].cancel();s.__reactViewTransition===c&&(s.__reactViewTransition=null),l()})),c}catch(e){return n(),i(),a(),null}}(a,e.containerInfo,ff,Uf,Lf,zf,Bf,Wf,Mf):(Uf(),Lf(),Bf())}(e,r,t,l,u,s,d)}}function Mf(e){0!==rf&&(0,tf.onRecoverableError)(e,{componentStack:null})}function zf(){3===rf&&(rf=0,fc(nf,tf),rf=4)}function Uf(){if(1===rf){rf=0;var e=tf,r=nf,t=of,n=!!(13878&r.flags);if(13878&r.subtreeFlags||n){n=W.T,W.T=null;var i=G.p;G.p=2;var o=Ic;Ic|=4;try{Bs=Vs=!1,lc(r,e,t),t=zd;var a=Cn(e.containerInfo),l=t.focusedElem,u=t.selectionRange;if(a!==l&&l&&l.ownerDocument&&An(l.ownerDocument.documentElement,l)){if(null!==u&&_n(l)){var s=u.start,c=u.end;if(void 0===c&&(c=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(c,l.value.length);else{var f=l.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),m=l.textContent.length,p=Math.min(u.start,m),v=void 0===u.end?p:Math.min(u.end,m);!h.extend&&p>v&&(a=v,v=p,p=a);var y=On(l,p),b=On(l,v);if(y&&b&&(1!==h.rangeCount||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var g=f.createRange();g.setStart(y.node,y.offset),h.removeAllRanges(),p>v?(h.addRange(g),h.extend(b.node,b.offset)):(g.setEnd(b.node,b.offset),h.addRange(g))}}}}for(f=[],h=l;h=h.parentNode;)1===h.nodeType&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for("function"==typeof l.focus&&l.focus(),l=0;l<f.length;l++){var w=f[l];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Sm=!!Md,zd=Md=null}finally{Ic=o,G.p=i,W.T=n}}e.current=r,rf=2}}function Lf(){if(2===rf){rf=0;var e=tf,r=nf,t=!!(8772&r.flags);if(8772&r.subtreeFlags||t){t=W.T,W.T=null;var n=G.p;G.p=2;var i=Ic;Ic|=4;try{Gs(e,r.alternate,r)}finally{Ic=i,G.p=n,W.T=t}}rf=3}}function Bf(){if(4===rf||3===rf){rf=0;var e=sf;sf=null,Oe();var r=tf,t=nf,n=of,i=uf,o=(335544064&n)===n?10262:10256;if(t.subtreeFlags&o||t.flags&o?rf=5:(rf=0,nf=tf=null,Vf(r,r.pendingLanes)),0===(o=r.pendingLanes)&&(ef=null),ir(n),t=t.stateNode,Re&&"function"==typeof Re.onCommitFiberRoot)try{Re.onCommitFiberRoot(Te,t,void 0,!(128&~t.current.flags))}catch(e){}if(null!==i){t=W.T,o=G.p,G.p=2,W.T=null;try{for(var a=r.onRecoverableError,l=0;l<i.length;l++){var u=i[l];a(u.value,{componentStack:u.stack})}}finally{W.T=t,G.p=o}}if(a=ff,ff=null,null!==(i=cf)&&(cf=null,null===a&&(a=[]),null!==e))for(u=0;u<i.length;u++)void 0!==(t=(0,i[u])(a))&&e.finished.finally(t);3&of&&Hf(),ad(r),o=r.pendingLanes,261930&n&&42&o?r===hf?df++:(df=0,hf=r):(df=0,hf=null),ld(0)}}function Vf(e,r){0==(e.pooledCacheLanes&=r)&&null!=(r=e.pooledCache)&&(e.pooledCache=null,yo(r))}function Hf(){return null!==sf&&(sf.skipTransition(),sf=null),Uf(),Lf(),Bf(),Wf()}function Wf(){if(5!==rf)return!1;var e=tf,r=af;af=0;var t=ir(of),i=W.T,o=G.p;try{G.p=32>t?32:t,W.T=null,t=lf,lf=null;var a=tf,l=of;if(rf=0,nf=tf=null,of=0,6&Ic)throw Error(n(331));var u=Ic;if(Ic|=4,xc(a.current),bc(a,a.current,l,t),Ic=u,ld(0),Re&&"function"==typeof Re.onPostCommitFiberRoot)try{Re.onPostCommitFiberRoot(Te,a)}catch(e){}return!0}finally{G.p=o,W.T=i,Vf(e,r)}}function Gf(e,r,t){r=Ei(t,r),null!==(e=Xo(e,r=su(e.stateNode,r,2),2))&&(Qe(e,2),ad(e))}function Kf(e,r,t){if(3===e.tag)Gf(e,e,t);else for(;null!==r;){if(3===r.tag){Gf(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"==typeof r.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===ef||!ef.has(n))){e=Ei(t,e),null!==(n=Xo(r,t=cu(2),2))&&(fu(t,n,r,e),Qe(n,2),ad(n));break}}r=r.return}}function Jf(e,r,t){var n=e.pingCache;if(null===n){n=e.pingCache=new _c;var i=new Set;n.set(r,i)}else void 0===(i=n.get(r))&&(i=new Set,n.set(r,i));i.has(t)||(Mc=!0,i.add(t),e=Zf.bind(null,e,r,t),r.then(e,e))}function Zf(e,r,t){var n=e.pingCache;null!==n&&n.delete(r),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,Dc===e&&(Fc&t)===t&&(4===Uc||3===Uc&&(62914560&Fc)===Fc&&300>Ae()-Zc?2&Ic?Vc|=t:Ef(e,0):Vc|=t,Wc===Fc&&(Wc=0)),ad(e)}function Yf(e,r){0===r&&(r=Ye()),null!==(e=si(e,r))&&(Qe(e,r),ad(e))}function Xf(e){var r=e.memoizedState,t=0;null!==r&&(t=r.retryLane),Yf(e,t)}function Qf(e,r){var t=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(t=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(n(314))}null!==i&&i.delete(r),Yf(e,t)}var ed=null,rd=null,td=!1,nd=!1,id=!1,od=0;function ad(e){e!==rd&&null===e.next&&(null===rd?ed=rd=e:rd=rd.next=e),nd=!0,td||(td=!0,Yd((function(){6&Ic?Ee(_e,ud):sd()})))}function ld(e){if(!id&&nd){id=!0;do{for(var r=!1,t=ed;null!==t;){if(0!==e){var n=t.pendingLanes;if(0===n)var i=0;else{var o=t.suspendedLanes,a=t.pingedLanes;i=(1<<31-ze(42|e)+1)-1,i=201326741&(i&=n&~(o&~a))?201326741&i|1:i?2|i:0}0!==i&&(r=!0,dd(t,i))}else i=Fc,!(3&(i=Ge(t,t===Dc?i:0,null!==t.cancelPendingCommit||-1!==t.timeoutHandle)))||Ke(t,i)||(r=!0,dd(t,i));t=t.next}}while(r);id=!1}}function ud(){sd()}function sd(){nd=td=!1;var e,r=0;0!==od&&((e=window.event)&&"popstate"===e.type?e!==Wd&&(Wd=e,1):(Wd=null,0))&&(r=od);for(var t=Ae(),n=null,i=ed;null!==i;){var o=i.next,a=cd(i,t);0===a?(i.next=null,null===n?ed=o:n.next=o,null===o&&(rd=n)):(n=i,(0!==r||3&a)&&(nd=!0)),i=o}0!==rf&&5!==rf||ld(r),0!==od&&(od=0)}function cd(e,r){for(var t=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-ze(o),l=1<<a,u=i[a];-1===u?l&t&&!(l&n)||(i[a]=Ze(l,r)):u<=r&&(e.expiredLanes|=l),o&=~l}if(t=Fc,t=Ge(e,e===(r=Dc)?t:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),n=e.callbackNode,0===t||e===r&&(2===qc||9===qc)||null!==e.cancelPendingCommit)return null!==n&&null!==n&&je(n),e.callbackNode=null,e.callbackPriority=0;if(!(3&t)||Ke(e,t)){if((r=t&-t)===e.callbackPriority)return r;switch(null!==n&&je(n),ir(t)){case 2:case 8:t=Ie;break;case 32:default:t=De;break;case 268435456:t=Fe}return n=fd.bind(null,e),t=Ee(t,n),e.callbackPriority=r,e.callbackNode=t,r}return null!==n&&null!==n&&je(n),e.callbackPriority=2,e.callbackNode=null,2}function fd(e,r){if(0!==rf&&5!==rf)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Hf()&&e.callbackNode!==t)return null;var n=Fc;return 0===(n=Ge(e,e===Dc?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(bf(e,n,r),cd(e,Ae()),null!=e.callbackNode&&e.callbackNode===t?fd.bind(null,e):null)}function dd(e,r){if(Hf())return null;bf(e,r,!0)}function hd(){if(0===od){var e=$o;0===e&&(e=Be,!(261888&(Be<<=1))&&(Be=256)),od=e}return od}function md(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:rt(e)}for(var pd=0;pd<Zn.length;pd++){var vd=Zn[pd];Yn(vd.toLowerCase(),"on"+(vd[0].toUpperCase()+vd.slice(1)))}Yn(Ln,"onAnimationEnd"),Yn(Bn,"onAnimationIteration"),Yn(Vn,"onAnimationStart"),Yn("dblclick","onDoubleClick"),Yn("focusin","onFocus"),Yn("focusout","onBlur"),Yn(Hn,"onTransitionRun"),Yn(Wn,"onTransitionStart"),Yn(Gn,"onTransitionCancel"),Yn(Kn,"onTransitionEnd"),Or("onMouseEnter",["mouseout","mouseover"]),Or("onMouseLeave",["mouseout","mouseover"]),Or("onPointerEnter",["pointerout","pointerover"]),Or("onPointerLeave",["pointerout","pointerover"]),xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xr("onBeforeInput",["compositionend","keypress","textInput","paste"]),xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yd));function gd(e,r){r=!!(4&r);for(var t=0;t<e.length;t++){var n=e[t],i=n.event;n=n.listeners;e:{var o=void 0;if(r)for(var a=n.length-1;0<=a;a--){var l=n[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=s;try{o(i)}catch(e){ti(e)}i.currentTarget=null,o=u}else for(a=0;a<n.length;a++){if(u=(l=n[a]).instance,s=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=s;try{o(i)}catch(e){ti(e)}i.currentTarget=null,o=u}}}}function wd(e,r){var t=r[fr];void 0===t&&(t=r[fr]=new Set);var n=e+"__bubble";t.has(n)||(Ed(r,e,2,!1),t.add(n))}function kd(e,r,t){var n=0;r&&(n|=4),Ed(t,e,n,r)}var $d="_reactListening"+Math.random().toString(36).slice(2);function Sd(e){if(!e[$d]){e[$d]=!0,Er.forEach((function(r){"selectionchange"!==r&&(bd.has(r)||kd(r,!1,e),kd(r,!0,e))}));var r=9===e.nodeType?e:e.ownerDocument;null===r||r[$d]||(r[$d]=!0,kd("selectionchange",!1,r))}}function Ed(e,r,t,n){switch(_m(r)){case 2:var i=Em;break;case 8:i=jm;break;default:i=xm}t=i.bind(null,r,t,e),i=void 0,!dt||"touchstart"!==r&&"touchmove"!==r&&"wheel"!==r||(i=!0),e.addEventListener(r,t,n?void 0===i||{capture:!0,passive:i}:void 0!==i&&{passive:i})}function jd(e,r,t,n,i){var a=n;if(!(1&r||2&r||null===n))e:for(;;){if(null===n)return;var l=n.tag;if(3===l||4===l){var u=n.stateNode.containerInfo;if(u===i)break;if(4===l)for(l=n.return;null!==l;){var s=l.tag;if((3===s||4===s)&&l.stateNode.containerInfo===i)return;l=l.return}for(;null!==u;){if(null===(l=br(u)))return;if(5===(s=l.tag)||6===s||26===s||27===s){n=a=l;continue e}u=u.parentNode}}n=n.return}st((function(){var n=a,i=it(t),l=[];e:{var u=Jn.get(e);if(void 0!==u){var s=xt,c=e;switch(e){case"keypress":if(0===bt(t))break e;case"keydown":case"keyup":s=Ut;break;case"focusin":c="focus",s=Dt;break;case"focusout":c="blur",s=Dt;break;case"beforeblur":case"afterblur":s=Dt;break;case"click":if(2===t.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=_t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=It;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Vt;break;case Ln:case Bn:case Vn:s=Pt;break;case Kn:s=Ht;break;case"scroll":case"scrollend":s=At;break;case"wheel":s=Wt;break;case"copy":case"cut":case"paste":s=Ft;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Lt;break;case"submit":s=Bt;break;case"toggle":case"beforetoggle":s=Gt}var f=!!(4&r),d=!f&&("scroll"===e||"scrollend"===e),h=f?null!==u?u+"Capture":null:u;f=[];for(var m,p=n;null!==p;){var v=p;if(m=v.stateNode,5!==(v=v.tag)&&26!==v&&27!==v||null===m||null===h||null!=(v=ct(p,h))&&f.push(xd(p,v,m)),d)break;p=p.return}0<f.length&&(u=new s(u,c,null,t,i),l.push({event:u,listeners:f}))}}if(!(7&r)){if(u="mouseout"===e||"pointerout"===e,(s="mouseover"===e||"pointerover"===e)&&t!==nt&&(c=t.relatedTarget||t.fromElement)&&(br(c)||c[cr])||(u||s)&&(c=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=n,null!==(s=(s=t.relatedTarget||t.toElement)?br(s):null)&&(d=o(s),f=s.tag,s!==d||5!==f&&27!==f&&6!==f)&&(s=null)):(u=null,s=n),u!==s&&(f=_t,v="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(f=Lt,v="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==u?c:wr(u),m=null==s?c:wr(s),(c=new f(v,p+"leave",u,t,i)).target=d,c.relatedTarget=m,v=null,br(i)===n&&((f=new f(h,p+"enter",s,t,i)).target=m,f.relatedTarget=d,v=f),d=v,f=u&&s?k(u,s,Ad):null,null!==u&&Cd(l,c,u,f,!1),null!==s&&null!==d&&Cd(l,d,s,f,!0))),"select"===(s=(u=n?wr(n):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=dn;else if(an(u))if(hn)y=$n;else{y=wn;var b=gn}else!(s=u.nodeName)||"input"!==s.toLowerCase()||"checkbox"!==u.type&&"radio"!==u.type?n&&Xr(n.elementType)&&(y=dn):y=kn;switch(y&&(y=y(e,n))?ln(l,y,t,i):b&&b(e,u,n),b=n?wr(n):window,e){case"focusin":(an(b)||"true"===b.contentEditable)&&(Dn=b,Pn=n,Fn=null);break;case"focusout":Fn=Pn=Dn=null;break;case"mousedown":qn=!0;break;case"contextmenu":case"mouseup":case"dragend":qn=!1,Nn(l,t,i);break;case"selectionchange":if(In)break;case"keydown":case"keyup":Nn(l,t,i)}var g;if(Jt)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else nn?rn(e,t)&&(w="onCompositionEnd"):"keydown"===e&&229===t.keyCode&&(w="onCompositionStart");w&&(Xt&&"ko"!==t.locale&&(nn||"onCompositionStart"!==w?"onCompositionEnd"===w&&nn&&(g=yt()):(pt="value"in(mt=i)?mt.value:mt.textContent,nn=!0)),0<(b=Od(n,w)).length&&(w=new qt(w,e,null,t,i),l.push({event:w,listeners:b}),(g||null!==(g=tn(t)))&&(w.data=g))),(g=Yt?function(e,r){switch(e){case"compositionend":return tn(r);case"keypress":return 32!==r.which?null:(en=!0,Qt);case"textInput":return(e=r.data)===Qt&&en?null:e;default:return null}}(e,t):function(e,r){if(nn)return"compositionend"===e||!Jt&&rn(e,r)?(e=yt(),vt=pt=mt=null,nn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Xt&&"ko"!==r.locale?null:r.data}}(e,t))&&0<(w=Od(n,"onBeforeInput")).length&&(b=new qt("onBeforeInput","beforeinput",null,t,i),l.push({event:b,listeners:w}),b.data=g),function(e,r,t,n,i){if("submit"===r&&t&&t.stateNode===i){var o=md((i[sr]||null).action),a=n.submitter;a&&null!==(r=(r=a[sr]||null)?md(r.formAction):a.getAttribute("formAction"))&&(o=r,a=null);var l=new xt("action","action",null,n,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==od){var e=new FormData(i,a);ql(t,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(l.preventDefault(),e=new FormData(i,a),ql(t,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(l,e,n,t,i)}gd(l,r)}))}function xd(e,r,t){return{instance:e,listener:r,currentTarget:t}}function Od(e,r){for(var t=r+"Capture",n=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=ct(e,t))&&n.unshift(xd(e,i,o)),null!=(i=ct(e,r))&&n.push(xd(e,i,o))),3===e.tag)return n;e=e.return}return[]}function Ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Cd(e,r,t,n,i){for(var o=r._reactName,a=[];null!==t&&t!==n;){var l=t,u=l.alternate,s=l.stateNode;if(l=l.tag,null!==u&&u===n)break;5!==l&&26!==l&&27!==l||null===s||(u=s,i?null!=(s=ct(t,o))&&a.unshift(xd(t,s,u)):i||null!=(s=ct(t,o))&&a.push(xd(t,s,u))),t=t.return}0!==a.length&&e.push({event:r,listeners:a})}var _d=/\r\n?/g,Id=/\u0000|\uFFFD/g;function Dd(e){return("string"==typeof e?e:""+e).replace(_d,"\n").replace(Id,"")}function Pd(e,r){return r=Dd(r),Dd(e)===r}function Fd(e,r,t,i,o,a){switch(t){case"children":if("string"==typeof i)"body"===r||"textarea"===r&&""===i||Kr(e,i);else{if("number"!=typeof i&&"bigint"!=typeof i)return;"body"!==r&&Kr(e,""+i)}break;case"className":Fr(e,"class",i);break;case"tabIndex":Fr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Fr(e,t,i);break;case"style":return void Yr(e,i,a);case"data":if("object"!==r){Fr(e,"data",i);break}case"src":case"href":if(""===i&&("a"!==r||"href"!==t)){e.removeAttribute(t);break}if(null==i||"function"==typeof i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=rt(i),e.setAttribute(t,i);break;case"action":case"formAction":if("function"==typeof i){e.setAttribute(t,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof a&&("formAction"===t?("input"!==r&&Fd(e,r,"name",o.name,o,null),Fd(e,r,"formEncType",o.formEncType,o,null),Fd(e,r,"formMethod",o.formMethod,o,null),Fd(e,r,"formTarget",o.formTarget,o,null)):(Fd(e,r,"encType",o.encType,o,null),Fd(e,r,"method",o.method,o,null),Fd(e,r,"target",o.target,o,null))),null==i||"symbol"==typeof i||"boolean"==typeof i){e.removeAttribute(t);break}i=rt(i),e.setAttribute(t,i);break;case"onClick":return void(null!=i&&(e.onclick=tt));case"onScroll":return void(null!=i&&wd("scroll",e));case"onScrollEnd":return void(null!=i&&wd("scrollend",e));case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(n(60));(null!=a?a.__html:void 0)!==t&&(e.innerHTML=t)}}break;case"multiple":e.multiple=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"muted":e.muted=i&&"function"!=typeof i&&"symbol"!=typeof i;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==i||"function"==typeof i||"boolean"==typeof i||"symbol"==typeof i){e.removeAttribute("xlink:href");break}t=rt(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,i):e.removeAttribute(t);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":!0===i?e.setAttribute(t,""):!1!==i&&null!=i&&"function"!=typeof i&&"symbol"!=typeof i?e.setAttribute(t,i):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&!isNaN(i)&&1<=i?e.setAttribute(t,i):e.removeAttribute(t);break;case"rowSpan":case"start":null==i||"function"==typeof i||"symbol"==typeof i||isNaN(i)?e.removeAttribute(t):e.setAttribute(t,i);break;case"popover":wd("beforetoggle",e),wd("toggle",e),Pr(e,"popover",i);break;case"xlinkActuate":qr(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":qr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":qr(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":qr(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":qr(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":qr(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":qr(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":qr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":qr(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Pr(e,"is",i);break;case"innerText":case"textContent":return;default:if(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))return;Pr(e,t=Qr.get(t)||t,i)}Ir=!0}function qd(e,r,t,i,o,a){switch(t){case"style":return void Yr(e,i,a);case"dangerouslySetInnerHTML":if(null!=i){if("object"!=typeof i||!("__html"in i))throw Error(n(61));if(null!=(t=i.__html)){if(null!=o.children)throw Error(n(60));(null!=a?a.__html:void 0)!==t&&(e.innerHTML=t)}}break;case"children":if("string"==typeof i)Kr(e,i);else{if("number"!=typeof i&&"bigint"!=typeof i)return;Kr(e,""+i)}break;case"onScroll":return void(null!=i&&wd("scroll",e));case"onScrollEnd":return void(null!=i&&wd("scrollend",e));case"onClick":return void(null!=i&&(e.onclick=tt));case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":return;default:return void(jr.hasOwnProperty(t)||("o"!==t[0]||"n"!==t[1]||(o=t.endsWith("Capture"),a=t.slice(2,o?t.length-7:void 0),"function"==typeof(r=null!=(r=e[sr]||null)?r[t]:null)&&e.removeEventListener(a,r,o),"function"!=typeof i)?(Ir=!0,t in e?e[t]=i:!0===i?e.setAttribute(t,""):Pr(e,t,i)):("function"!=typeof r&&null!==r&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,i,o))))}Ir=!0}function Nd(e,r,t){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":wd("error",e),wd("load",e);var i,o=!1,a=!1;for(i in t)if(t.hasOwnProperty(i)){var l=t[i];if(null!=l)switch(i){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Fd(e,r,i,l,t,null)}}return a&&Fd(e,r,"srcSet",t.srcSet,t,null),void(o&&Fd(e,r,"src",t.src,t,null));case"input":wd("invalid",e);var u=i=l=a=null,s=null,c=null;for(o in t)if(t.hasOwnProperty(o)){var f=t[o];if(null!=f)switch(o){case"name":a=f;break;case"type":l=f;break;case"checked":s=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":u=f;break;case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(n(137,r));break;default:Fd(e,r,o,f,t,null)}}return void Br(e,i,u,s,c,l,a,!1);case"select":for(a in wd("invalid",e),o=l=i=null,t)if(t.hasOwnProperty(a)&&null!=(u=t[a]))switch(a){case"value":i=u;break;case"defaultValue":l=u;break;case"multiple":o=u;default:Fd(e,r,a,u,t,null)}return r=i,t=l,e.multiple=!!o,void(null!=r?Hr(e,!!o,r,!1):null!=t&&Hr(e,!!o,t,!0));case"textarea":for(l in wd("invalid",e),i=a=o=null,t)if(t.hasOwnProperty(l)&&null!=(u=t[l]))switch(l){case"value":o=u;break;case"defaultValue":a=u;break;case"children":i=u;break;case"dangerouslySetInnerHTML":if(null!=u)throw Error(n(91));break;default:Fd(e,r,l,u,t,null)}return void Gr(e,o,a,i);case"option":for(s in t)t.hasOwnProperty(s)&&null!=(o=t[s])&&("selected"===s?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:Fd(e,r,s,o,t,null));return;case"dialog":wd("beforetoggle",e),wd("toggle",e),wd("cancel",e),wd("close",e);break;case"iframe":case"object":wd("load",e);break;case"video":case"audio":for(o=0;o<yd.length;o++)wd(yd[o],e);break;case"image":wd("error",e),wd("load",e);break;case"details":wd("toggle",e);break;case"embed":case"source":case"link":wd("error",e),wd("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in t)if(t.hasOwnProperty(c)&&null!=(o=t[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,r));default:Fd(e,r,c,o,t,null)}return;default:if(Xr(r)){for(f in t)t.hasOwnProperty(f)&&void 0!==(o=t[f])&&qd(e,r,f,o,t,void 0);return}}for(u in t)t.hasOwnProperty(u)&&null!=(o=t[u])&&Fd(e,r,u,o,t,null)}var Td={};function Rd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var Md=null,zd=null;function Ud(e){return 9===e.nodeType?e:e.ownerDocument}function Ld(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Bd(e,r){if(0===e)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===r?0:e}function Vd(e,r,t,n){return(t=Ud(t).createElement(e))[ur]=n,t[sr]=r,Nd(t,e,r),$r(t),t}function Hd(e,r){return"textarea"===e||"noscript"===e||"string"==typeof r.children||"number"==typeof r.children||"bigint"==typeof r.children||"object"==typeof r.dangerouslySetInnerHTML&&null!==r.dangerouslySetInnerHTML&&null!=r.dangerouslySetInnerHTML.__html}var Wd=null,Gd="function"==typeof setTimeout?setTimeout:void 0,Kd="function"==typeof clearTimeout?clearTimeout:void 0,Jd="function"==typeof Promise?Promise:void 0,Zd="function"==typeof requestAnimationFrame?requestAnimationFrame:Gd,Yd="function"==typeof queueMicrotask?queueMicrotask:void 0!==Jd?function(e){return Jd.resolve(null).then(e).catch(Xd)}:Gd;function Xd(e){setTimeout((function(){throw e}))}function Qd(e){return"head"===e}function eh(e,r){var t=r,n=0;do{var i=t.nextSibling;if(e.removeChild(t),i&&8===i.nodeType)if("/$"===(t=i.data)||"/&"===t){if(0===n)return e.removeChild(i),void Km(r);n--}else if("$"===t||"$?"===t||"$~"===t||"$!"===t||"&"===t)n++;else if("html"===t)Th(e.ownerDocument.documentElement);else if("head"===t){Th(t=e.ownerDocument.head);for(var o=t.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[pr]||"SCRIPT"===l||"STYLE"===l||"LINK"===l&&"stylesheet"===o.rel.toLowerCase()||t.removeChild(o),o=a}}else"body"===t&&Th(e.ownerDocument.body);t=i}while(t);Km(r)}function rh(e,r){var t=e;e=0;do{var n=t.nextSibling;if(1===t.nodeType?r?(t._stashedDisplay=t.style.display,t.style.display="none"):(t.style.display=t._stashedDisplay||"",""===t.getAttribute("style")&&t.removeAttribute("style")):3===t.nodeType&&(r?(t._stashedText=t.nodeValue,t.nodeValue=""):t.nodeValue=t._stashedText||""),n&&8===n.nodeType)if("/$"===(t=n.data)){if(0===e)break;e--}else"$"!==t&&"$?"!==t&&"$~"!==t&&"$!"!==t||e++;t=n}while(t)}function th(e,r,t){if(r=CSS.escape(r)!==r?"r-"+btoa(r).replace(/=/g,""):r,e.style.viewTransitionName=r,null!=t&&(e.style.viewTransitionClass=t),"inline"===(t=getComputedStyle(e)).display){if(1===(r=e.getClientRects()).length)var n=1;else for(var i=n=0;i<r.length;i++){var o=r[i];0<o.width&&0<o.height&&n++}1===n&&((e=e.style).display=1===r.length?"inline-block":"block",e.marginTop="-"+t.paddingTop,e.marginBottom="-"+t.paddingBottom)}}function nh(e,r){e=e.style;var t=null!=(r=r.style)?r.hasOwnProperty("viewTransitionName")?r.viewTransitionName:r.hasOwnProperty("view-transition-name")?r["view-transition-name"]:null:null;e.viewTransitionName=null==t||"boolean"==typeof t?"":(""+t).trim(),t=null!=r?r.hasOwnProperty("viewTransitionClass")?r.viewTransitionClass:r.hasOwnProperty("view-transition-class")?r["view-transition-class"]:null:null,e.viewTransitionClass=null==t||"boolean"==typeof t?"":(""+t).trim(),"inline-block"===e.display&&(null==r?e.display=e.margin="":(e.display=null==(t=r.display)||"boolean"==typeof t?"":t,null!=(t=r.margin)?e.margin=t:(t=r.hasOwnProperty("marginTop")?r.marginTop:r["margin-top"],e.marginTop=null==t||"boolean"==typeof t?"":t,r=r.hasOwnProperty("marginBottom")?r.marginBottom:r["margin-bottom"],e.marginBottom=null==r||"boolean"==typeof r?"":r)))}function ih(e){return r=e.getBoundingClientRect(),t=getComputedStyle(e),n=(n=e).ownerDocument.defaultView,{rect:r,abs:"absolute"===t.position||"fixed"===t.position,clip:"none"!==t.clipPath||"visible"!==t.overflow||"none"!==t.filter||"none"!==t.mask||"none"!==t.mask||"0px"!==t.borderRadius,view:0<=r.bottom&&0<=r.right&&r.top<=n.innerHeight&&r.left<=n.innerWidth};var r,t,n}function oh(e){this.addEventListener("load",e),this.addEventListener("error",e)}function ah(e,r){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+r+")"}function lh(e){return{name:e,group:new ah("group",e),imagePair:new ah("image-pair",e),old:new ah("old",e),new:new ah("new",e)}}function uh(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}function sh(e,r,t,n){return p(e).addEventListener(r,t,n),!1}function ch(e,r,t,n){return p(e).removeEventListener(r,t,n),!1}function fh(e){return null!=e&&"boolean"!=typeof e&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function dh(e){return null==e?"c=0":"boolean"==typeof e?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function hh(e,r,t,n){if(0===e.length)return-1;n=dh(n);for(var i=0;i<e.length;i++){var o=e[i];if(o.type===r&&o.listener===t&&dh(o.optionsOrUseCapture)===n)return i}return-1}function mh(e,r){return 6!==e.tag&&function(e,r){function t(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",t,!0),(e.focus||HTMLElement.prototype.focus).call(e,r)}finally{e.ownerDocument.removeEventListener("focus",t,!0)}return n}(e=p(e),r)}function ph(e,r){return r.push(e),!1}function vh(e,r){return!(6===e.tag||(e=p(e))!==r&&!e.contains(r)||(r.blur(),0))}function yh(e,r){return 6===e.tag||(e=p(e),r.observe(e)),!1}function bh(e,r){return 6===e.tag||(e=p(e),r.unobserve(e)),!1}ah.prototype.animate=function(e,r){return(r="number"==typeof r?{duration:r}:$({},r)).pseudoElement=this._selector,this._scope.animate(e,r)},ah.prototype.getAnimations=function(){for(var e=this._scope,r=this._selector,t=e.getAnimations({subtree:!0}),n=[],i=0;i<t.length;i++){var o=t[i].effect;null!==o&&o.target===e&&o.pseudoElement===r&&n.push(t[i])}return n},ah.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)},uh.prototype.addEventListener=function(e,r,t){var n=null,i=null;if(null==t||"boolean"==typeof t||null===(n=t.signal||null)||!n.aborted){null===this._eventListeners&&(this._eventListeners=[]);var o=this._eventListeners;if(-1===hh(o,e,r,t)){var a=this,l=r;null!=t&&"boolean"!=typeof t&&!0===t.once&&(l=function(n){a.removeEventListener(e,r,t),"function"==typeof r?r.call(this,n):r.handleEvent(n)}),null!==n&&(i=a.removeEventListener.bind(a,e,r,t),n.addEventListener("abort",i,{once:!0}),i=n.removeEventListener.bind(n,"abort",i)),n=fh(t),o.push({type:e,listener:r,optionsOrUseCapture:t,attachedListener:l,cleanup:i}),c(this._fragmentFiber.child,!1,sh,e,l,n)}this._eventListeners=o}},uh.prototype.removeEventListener=function(e,r,t){var n=this._eventListeners;if(null!==n&&-1!==(r=hh(n,e,r,t))){var i=n[r];t=i.attachedListener;var o=i.cleanup;i=fh(i.optionsOrUseCapture),c(this._fragmentFiber.child,!1,ch,e,t,i),n.splice(r,1),null!==o&&o()}},uh.prototype.dispatchEvent=function(e){var r=f(this._fragmentFiber);if(null===r)return!0;r=p(r);var t=this._eventListeners;if(null!==t&&0<t.length||!e.bubbles){var n=9===r.nodeType?r.createComment(""):document.createTextNode("");if(t)for(var i=0;i<t.length;i++){var o=t[i];n.addEventListener(o.type,o.attachedListener,fh(o.optionsOrUseCapture))}if(r.appendChild(n),e=n.dispatchEvent(e),t)for(i=0;i<t.length;i++)n.removeEventListener((o=t[i]).type,o.attachedListener,fh(o.optionsOrUseCapture));return r.removeChild(n),e}return r.dispatchEvent(e)},uh.prototype.focus=function(e){c(this._fragmentFiber.child,!0,mh,e,void 0,void 0)},uh.prototype.focusLast=function(e){var r=[];c(this._fragmentFiber.child,!0,ph,r,void 0,void 0);for(var t=r.length-1;0<=t&&!mh(r[t],e);t--);},uh.prototype.blur=function(){var e=f(this._fragmentFiber);null!==e&&null!==(e=Ud(e=p(e)).activeElement)&&c(this._fragmentFiber.child,!1,vh,e,void 0,void 0)},uh.prototype.observeUsing=function(e){null===this._observers&&(this._observers=new Set),this._observers.add(e),c(this._fragmentFiber.child,!1,yh,e,void 0,void 0)},uh.prototype.unobserveUsing=function(e){var r=this._observers;if(null!==r&&r.has(e)){r.delete(e),c(this._fragmentFiber.child,!1,bh,e,void 0,void 0);for(var t=r=0;t<gh.length;t++){var n=gh[t];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):gh[r++]=n}gh.length=r}};var gh=[],wh=!1;function kh(e,r){if(6===e.tag){var t=(e=e.stateNode).ownerDocument.createRange();t.selectNodeContents(e),r.push.apply(r,t.getClientRects())}else e=p(e),r.push.apply(r,e.getClientRects());return!1}function $h(e,r){var t=e.ownerDocument.createRange();t.selectNodeContents(e),e=t.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,r?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}function Sh(e,r){return Eh(e=p(e),r),!1}function Eh(e,r){null==e.reactFragments&&(e.reactFragments=new Set),e.reactFragments.add(r)}function jh(e,r){var t=r._eventListeners;if(null!==t)for(var n=0;n<t.length;n++){var i=t[n];e.addEventListener(i.type,i.attachedListener,fh(i.optionsOrUseCapture))}3!==e.nodeType&&(null!==(t=r._observers)&&t.forEach((function(t){for(var n=0,i=0;i<gh.length;i++){var o=gh[i];o.fragmentInstance===r&&o.observer===t&&o.instance===e||(gh[n++]=o)}gh.length=n,t.observe(e)})),Eh(e,r))}function xh(e,r){var t=r._eventListeners;if(null!==t)for(var n=0;n<t.length;n++){var i=t[n];e.removeEventListener(i.type,i.attachedListener,fh(i.optionsOrUseCapture))}3!==e.nodeType&&(null!==(t=r._observers)&&t.forEach((function(t){"string"==typeof t.rootMargin?function(e,r,t){var n;gh.push({fragmentInstance:e,observer:r,instance:t}),wh||(wh=!0,n=function(){wh=!1;var e=gh;gh=[];for(var r=0;r<e.length;r++){var t=e[r];t.observer.unobserve(t.instance)}},Zd((function(){Zd((function(){return n()}))})))}(r,t,e):t.unobserve(e)})),null!=e.reactFragments&&e.reactFragments.delete(r))}function Oh(e){var r=e.firstChild;for(r&&10===r.nodeType&&(r=r.nextSibling);r;){var t=r;switch(r=r.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":Oh(t),yr(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===t.rel.toLowerCase())continue}e.removeChild(t)}}function Ah(e,r){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!r)return null;if(null===(e=Ih(e.nextSibling)))return null}return e}function Ch(e){return"$?"===e.data||"$~"===e.data}function _h(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ih(e){for(;null!=e;e=e.nextSibling){var r=e.nodeType;if(1===r||3===r)break;if(8===r){if("$"===(r=e.data)||"$!"===r||"$?"===r||"$~"===r||"&"===r||"F!"===r||"F"===r)break;if("/$"===r||"/&"===r)return null}}return e}uh.prototype.getClientRects=function(){var e=[];return c(this._fragmentFiber.child,!1,kh,e,void 0,void 0),e},uh.prototype.getRootNode=function(e){var r=f(this._fragmentFiber);return null===r?this:p(r).getRootNode(e)},uh.prototype.compareDocumentPosition=function(e){var r=f(this._fragmentFiber);if(null===r)return Node.DOCUMENT_POSITION_DISCONNECTED;var t=[];c(this._fragmentFiber.child,!1,ph,t,void 0,void 0);var n=p(r);if(0===t.length){if(t=n,d(this._fragmentFiber)){e:{for(r=this._fragmentFiber.return;null!==r;){if(4===r.tag){r=r.stateNode.containerInfo;break e}if(3===r.tag||5===r.tag||27===r.tag)break;r=r.return}r=null}null!=r&&(t=r)}r=this._fragmentFiber;var i=n=t.compareDocumentPosition(e);return t===e?i=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(i=null===(t=h(r)[1])?Node.DOCUMENT_POSITION_PRECEDING:0===(e=p(t).compareDocumentPosition(e))||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING),i|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}r=p(t[0]),i=p(t[t.length-1]);var o=d(this._fragmentFiber)?r.parentElement:n;if(null==o)return Node.DOCUMENT_POSITION_DISCONNECTED;n=o.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var a=r.compareDocumentPosition(e),l=i.compareDocumentPosition(e),u=a&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=n&&o&&a&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,(r=n&&r===e||o&&i===e||u||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&r===e||!o&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:a)&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||function(e,r,t,n,i){var o=br(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(t=!!o)e:{for(;null!==o;){if(7===o.tag&&(o===r||o.alternate===r)){t=!0;break e}o=o.return}t=!1}return t}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(null===o)return i===(o=i.ownerDocument)||i===o.documentElement||i===o.body;e:{for(o=r,r=f(r);null!==o;){if(!(5!==o.tag&&3!==o.tag&&27!==o.tag||o!==r&&o.alternate!==r)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((r=!!o)&&!(r=o===t)&&(null===(r=k(t,o,w))?r=!1:(c(r,!0,b,o,t),o=v,v=null,r=null!==o)),r):!!(e&Node.DOCUMENT_POSITION_FOLLOWING)&&((r=!!o)&&!(r=o===n)&&(null===(r=k(n,o,w))?r=!1:(c(r,!0,g,o,n),o=v,y=v=null,r=null!==o)),r)}(r,this._fragmentFiber,t[0],t[t.length-1],e)?r:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC},uh.prototype.scrollIntoView=function(e){if("object"==typeof e)throw Error(n(566));var r=[];c(this._fragmentFiber.child,!1,ph,r,void 0,void 0);var t=!1!==e;if(0===r.length){var i=h(this._fragmentFiber);if(null===(i=t?i[1]||i[0]||f(this._fragmentFiber):i[0]||i[1]))return;if(6===i.tag)return void $h(e=p(i),t);if(9!==(i=p(i)).nodeType){if(11===i.nodeType)return void(null!==(t="host"in i?i.host:null)&&t.scrollIntoView(e));i.scrollIntoView(e)}}for(i=t?r.length-1:0;i!==(t?-1:r.length);){var o=r[i];6===o.tag?$h(o=p(o),t):p(o).scrollIntoView(e),i+=t?-1:1}};var Dh=null;function Ph(e){e=e.nextSibling;for(var r=0;e;){if(8===e.nodeType){var t=e.data;if("/$"===t||"/&"===t){if(0===r)return Ih(e.nextSibling);r--}else"$"!==t&&"$!"!==t&&"$?"!==t&&"$~"!==t&&"&"!==t||r++}e=e.nextSibling}return null}function Fh(e){e=e.previousSibling;for(var r=0;e;){if(8===e.nodeType){var t=e.data;if("$"===t||"$!"===t||"$?"===t||"$~"===t||"&"===t){if(0===r)return e;r--}else"/$"!==t&&"/&"!==t||r++}e=e.previousSibling}return null}function qh(e,r,t){switch(r=Ud(t),e){case"html":if(!(e=r.documentElement))throw Error(n(452));return e;case"head":if(!(e=r.head))throw Error(n(453));return e;case"body":if(!(e=r.body))throw Error(n(454));return e;default:throw Error(n(451))}}function Nh(e,r,t){for(var n in t){var i=t[n];t.hasOwnProperty(n)&&null!=i&&Fd(e,r,n,null,Td,i)}null!=t.dangerouslySetInnerHTML&&(e.textContent=""),e.onclick===tt&&(e.onclick=null),yr(e)}function Th(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);yr(e)}var Rh=new Map,Mh=new Set;function zh(e){if("function"==typeof e.getRootNode){var r=e.getRootNode();if(9===r.nodeType||11===r.nodeType)return r}return 9===e.nodeType?e:e.ownerDocument}var Uh=G.d;G.d={f:function(){var e=Uh.f(),r=$f();return e||r},r:function(e){var r=gr(e);null!==r&&5===r.tag&&"form"===r.type?Tl(r):Uh.r(e)},D:function(e){Uh.D(e),Bh("dns-prefetch",e,null)},C:function(e,r){Uh.C(e,r),Bh("preconnect",e,r)},L:function(e,r,t){Uh.L(e,r,t);var n=Lh;if(n&&e&&r){var i='link[rel="preload"][as="'+Ur(r)+'"]';"image"===r&&t&&t.imageSrcSet?(i+='[imagesrcset="'+Ur(t.imageSrcSet)+'"]',"string"==typeof t.imageSizes&&(i+='[imagesizes="'+Ur(t.imageSizes)+'"]')):i+='[href="'+Ur(e)+'"]';var o=i;switch(r){case"style":o=Hh(e);break;case"script":o=Kh(e)}if(!(Rh.has(o)||(e=$({rel:"preload",href:"image"===r&&t&&t.imageSrcSet?void 0:e,as:r},t),Rh.set(o,e),null!==n.querySelector(i)||"style"===r&&n.querySelector(Wh(o))||"script"===r&&n.querySelector(Jh(o))))){var a=n.createElement("link");Nd(a,"link",e),"style"===r&&(a[vr]=!0,a.onload=a.onerror=function(){Sr(a)}),$r(a),n.head.appendChild(a)}}},m:function(e,r){Uh.m(e,r);var t=Lh;if(t&&e){var n=r&&"string"==typeof r.as?r.as:"script",i='link[rel="modulepreload"][as="'+Ur(n)+'"][href="'+Ur(e)+'"]',o=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Kh(e)}if(!Rh.has(o)&&(e=$({rel:"modulepreload",href:e},r),Rh.set(o,e),null===t.querySelector(i))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(Jh(o)))return}Nd(n=t.createElement("link"),"link",e),$r(n),t.head.appendChild(n)}}},X:function(e,r){Uh.X(e,r);var t=Lh;if(t&&e){var n=kr(t).hoistableScripts,i=Kh(e),o=n.get(i);o||((o=t.querySelector(Jh(i)))||(e=$({src:e,async:!0},r),(r=Rh.get(i))&&Qh(e,r),$r(o=t.createElement("script")),Nd(o,"link",e),t.head.appendChild(o)),n.set(i,o={type:"script",instance:o,count:1,state:null}))}},S:function(e,r,t){Uh.S(e,r,t);var n=Lh;if(n&&e){var i=kr(n).hoistableStyles,o=Hh(e);r=r||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=n.querySelector(Wh(o)))l.loading=5;else{e=$({rel:"stylesheet",href:e,"data-precedence":r},t),(t=Rh.get(o))&&Xh(e,t);var u=a=n.createElement("link");$r(u),Nd(u,"link",e),u._p=new Promise((function(e,r){u.onload=e,u.onerror=r})),u.addEventListener("load",(function(){l.loading|=1})),u.addEventListener("error",(function(){l.loading|=2})),l.loading|=4,Yh(a,r,n)}i.set(o,a={type:"stylesheet",instance:a,count:1,state:l})}}},M:function(e,r){Uh.M(e,r);var t=Lh;if(t&&e){var n=kr(t).hoistableScripts,i=Kh(e),o=n.get(i);o||((o=t.querySelector(Jh(i)))||(e=$({src:e,async:!0,type:"module"},r),(r=Rh.get(i))&&Qh(e,r),$r(o=t.createElement("script")),Nd(o,"link",e),t.head.appendChild(o)),n.set(i,o={type:"script",instance:o,count:1,state:null}))}}};var Lh="undefined"==typeof document?null:document;function Bh(e,r,t){var n=Lh;if(n&&"string"==typeof r&&r){var i=Ur(r);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof t&&(i+='[crossorigin="'+t+'"]'),Mh.has(i)||(Mh.add(i),e={rel:e,crossOrigin:t,href:r},null===n.querySelector(i)&&(Nd(r=n.createElement("link"),"link",e),$r(r),n.head.appendChild(r)))}}function Vh(e,r,t,i){var o=(o=le.current)?zh(o):null;if(!o)throw Error(n(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof t.precedence&&"string"==typeof t.href?(t=Hh(t.href),(i=(r=kr(o).hoistableStyles).get(t))||r.set(t,i={type:"style",instance:null,count:0,state:null}),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===t.rel&&"string"==typeof t.href&&"string"==typeof t.precedence){e=Hh(t.href);var a=kr(o).hoistableStyles,l=a.get(e);if(l||(o=o.ownerDocument||o,a.set(e,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}}),(a=o.querySelector(Wh(e)))?a._p||(l.instance=a,l.state.loading=5):((a=Rh.get(e))||Rh.set(e,a={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy}),function(e,r,t,n){if(r=e.querySelector('link[rel="preload"][as="style"]['+r+"]")){if(!0!==r[vr])return void(n.loading=1)}else(r=e.createElement("link"))[vr]=!0,r.onload=r.onerror=Sr.bind(null,r),Nd(r,"link",t),$r(r),e.head.appendChild(r);n.preload=r,r.addEventListener("load",(function(){return n.loading|=1})),r.addEventListener("error",(function(){return n.loading|=2}))}(o,e,a,l.state))),r&&null===i)throw Error(n(528,""));return l}if(r&&null!==i)throw Error(n(529,""));return null;case"script":return r=t.async,"string"==typeof(t=t.src)&&r&&"function"!=typeof r&&"symbol"!=typeof r?(t=Kh(t),(i=(r=kr(o).hoistableScripts).get(t))||r.set(t,i={type:"script",instance:null,count:0,state:null}),i):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,e))}}function Hh(e){return'href="'+Ur(e)+'"'}function Wh(e){return'link[rel="stylesheet"]['+e+"]"}function Gh(e){return $({},e,{"data-precedence":e.precedence,precedence:null})}function Kh(e){return'[src="'+Ur(e)+'"]'}function Jh(e){return"script[async]"+e}function Zh(e,r,t){if(r.count++,null===r.instance)switch(r.type){case"style":var i=e.querySelector('style[data-href~="'+Ur(t.href)+'"]');if(i)return r.instance=i,$r(i),i;var o=$({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return $r(i=(e.ownerDocument||e).createElement("style")),Nd(i,"style",o),Yh(i,t.precedence,e),r.instance=i;case"stylesheet":o=Hh(t.href);var a=e.querySelector(Wh(o));if(a)return r.state.loading|=4,r.instance=a,$r(a),a;i=Gh(t),(o=Rh.get(o))&&Xh(i,o),$r(a=(e.ownerDocument||e).createElement("link"));var l=a;return l._p=new Promise((function(e,r){l.onload=e,l.onerror=r})),Nd(a,"link",i),r.state.loading|=4,Yh(a,t.precedence,e),r.instance=a;case"script":return a=Kh(t.src),(o=e.querySelector(Jh(a)))?(r.instance=o,$r(o),o):(i=t,(o=Rh.get(a))&&Qh(i=$({},t),o),$r(o=(e=e.ownerDocument||e).createElement("script")),Nd(o,"link",i),e.head.appendChild(o),r.instance=o);case"void":return null;default:throw Error(n(443,r.type))}else"stylesheet"===r.type&&!(4&r.state.loading)&&(i=r.instance,r.state.loading|=4,Yh(i,t.precedence,e));return r.instance}function Yh(e,r,t){for(var n=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,o=i,a=0;a<n.length;a++){var l=n[a];if(l.dataset.precedence===r)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(r=9===t.nodeType?t.head:t).insertBefore(e,r.firstChild)}function Xh(e,r){null==e.crossOrigin&&(e.crossOrigin=r.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),null==e.title&&(e.title=r.title)}function Qh(e,r){null==e.crossOrigin&&(e.crossOrigin=r.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=r.referrerPolicy),null==e.integrity&&(e.integrity=r.integrity)}var em=null;function rm(e,r,t){if(null===em){var n=new Map,i=em=new Map;i.set(t,n)}else(n=(i=em).get(t))||(n=new Map,i.set(t,n));if(n.has(e))return n;for(n.set(e,null),t=t.getElementsByTagName(e),i=0;i<t.length;i++){var o=t[i];if(!(o[pr]||o[ur]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(r)||"",l=n.get(a=e+a);l?l.push(o):n.set(a,[o])}}return n}function tm(e,r,t){(e=e.ownerDocument||e).head.insertBefore(t,"title"===r?e.querySelector("head > title"):null)}function nm(e,r){return"img"===e&&null!=r.src&&""!==r.src&&null==r.onLoad&&"lazy"!==r.loading}function im(e){return!!("stylesheet"!==e.type||3&e.state.loading)}function om(e){return(e.width||100)*(e.height||100)*("number"==typeof devicePixelRatio?devicePixelRatio:1)*.25}function am(e,r){"function"==typeof r.decode&&(e.imgCount++,r.complete||(e.imgBytes+=om(r),e.suspenseyImages.push(r)),e=cm.bind(e),r.decode().then(e,e))}var lm=0;function um(e){if(0===e.count&&(0===e.imgCount||!e.waitingForImages))if(e.stylesheets)dm(e,e.stylesheets);else if(e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}}function sm(){this.count--,um(this)}function cm(){this.imgCount--,um(this)}var fm=null;function dm(e,r){e.stylesheets=null,null!==e.unsuspend&&(e.count++,fm=new Map,r.forEach(hm,e),fm=null,sm.call(e))}function hm(e,r){if(!(4&r.state.loading)){var t=fm.get(e);if(t)var n=t.get(null);else{t=new Map,fm.set(e,t);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(t.set(a.dataset.precedence,a),n=a)}n&&t.set(null,n)}a=(i=r.instance).getAttribute("data-precedence"),(o=t.get(a)||n)===n&&t.set(null,i),t.set(a,i),this.count++,n=sm.bind(this),i.addEventListener("load",n),i.addEventListener("error",n),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),r.state.loading|=4}}var mm={$$typeof:_,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function pm(e,r,t,n,i,o,a,l,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=n,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function vm(e,r,t,n,i,o,a,l,u,s,c,f){return e=new pm(e,r,t,a,u,s,c,f,l),r=1,!0===o&&(r|=24),o=mi(3,null,null,r),e.current=o,o.stateNode=e,(r=vo()).refCount++,e.pooledCache=r,r.refCount++,o.memoizedState={element:n,isDehydrated:t,cache:r},Jo(o),e}function ym(e){return e?e=di:di}function bm(e,r,t,n,i,o){i=ym(i),null===n.context?n.context=i:n.pendingContext=i,(n=Yo(r)).payload={element:t},null!==(o=void 0===o?null:o)&&(n.callback=o),null!==(t=Xo(e,n,r))&&(yf(t,0,r),Qo(t,e,r))}function gm(e,r){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var t=e.retryLane;e.retryLane=0!==t&&t<r?t:r}}function wm(e,r){gm(e,r),(e=e.alternate)&&gm(e,r)}function km(e){if(13===e.tag||31===e.tag){var r=si(e,67108864);null!==r&&yf(r,0,67108864),wm(e,67108864)}}function $m(e){if(13===e.tag||31===e.tag){var r=mf(),t=si(e,r=nr(r));null!==t&&yf(t,0,r),wm(e,r)}}var Sm=!0;function Em(e,r,t,n){var i=W.T;W.T=null;var o=G.p;try{G.p=2,xm(e,r,t,n)}finally{G.p=o,W.T=i}}function jm(e,r,t,n){var i=W.T;W.T=null;var o=G.p;try{G.p=8,xm(e,r,t,n)}finally{G.p=o,W.T=i}}function xm(e,r,t,n){if(Sm){var i=Om(n);if(null===i)jd(e,r,n,Am,t),Mm(e,n);else if(function(e,r,t,n,i){switch(r){case"focusin":return Dm=zm(Dm,e,r,t,n,i),!0;case"dragenter":return Pm=zm(Pm,e,r,t,n,i),!0;case"mouseover":return Fm=zm(Fm,e,r,t,n,i),!0;case"pointerover":var o=i.pointerId;return qm.set(o,zm(qm.get(o)||null,e,r,t,n,i)),!0;case"gotpointercapture":return Nm.set(o=i.pointerId,zm(Nm.get(o)||null,e,r,t,n,i)),!0}return!1}(i,e,r,t,n))n.stopPropagation();else if(Mm(e,n),4&r&&-1<Rm.indexOf(e)){for(;null!==i;){var o=gr(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=We(o.pendingLanes);if(0!==a){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var u=1<<31-ze(a);l.entanglements[1]|=u,a&=~u}ad(o),!(6&Ic)&&(Xc=Ae()+500,ld(0))}}break;case 31:case 13:null!==(l=si(o,2))&&yf(l,0,2),$f(),wm(o,2)}if(null===(o=Om(n))&&jd(e,r,n,Am,t),o===i)break;i=o}null!==i&&n.stopPropagation()}else jd(e,r,n,null,t)}}function Om(e){return Cm(e=it(e))}var Am=null;function Cm(e){if(Am=null,null!==(e=br(e))){var r=o(e);if(null===r)e=null;else{var t=r.tag;if(13===t){if(null!==(e=a(r)))return e;e=null}else if(31===t){if(null!==(e=l(r)))return e;e=null}else if(3===t){if(r.stateNode.current.memoizedState.isDehydrated)return 3===r.tag?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return Am=e,null}function _m(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ce()){case _e:return 2;case Ie:return 8;case De:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Im=!1,Dm=null,Pm=null,Fm=null,qm=new Map,Nm=new Map,Tm=[],Rm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Mm(e,r){switch(e){case"focusin":case"focusout":Dm=null;break;case"dragenter":case"dragleave":Pm=null;break;case"mouseover":case"mouseout":Fm=null;break;case"pointerover":case"pointerout":qm.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nm.delete(r.pointerId)}}function zm(e,r,t,n,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:r,domEventName:t,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},null!==r&&null!==(r=gr(r))&&km(r),e):(e.eventSystemFlags|=n,r=e.targetContainers,null!==i&&-1===r.indexOf(i)&&r.push(i),e)}function Um(e){var r=br(e.target);if(null!==r){var t=o(r);if(null!==t)if(13===(r=t.tag)){if(null!==(r=a(t)))return e.blockedOn=r,void ar(e.priority,(function(){$m(t)}))}else if(31===r){if(null!==(r=l(t)))return e.blockedOn=r,void ar(e.priority,(function(){$m(t)}))}else if(3===r&&t.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===t.tag?t.stateNode.containerInfo:null)}e.blockedOn=null}function Lm(e){if(null!==e.blockedOn)return!1;for(var r=e.targetContainers;0<r.length;){var t=Om(e.nativeEvent);if(null!==t)return null!==(r=gr(t))&&km(r),e.blockedOn=t,!1;var n=new(t=e.nativeEvent).constructor(t.type,t);nt=n,t.target.dispatchEvent(n),nt=null,r.shift()}return!0}function Bm(e,r,t){Lm(e)&&t.delete(r)}function Vm(){Im=!1,null!==Dm&&Lm(Dm)&&(Dm=null),null!==Pm&&Lm(Pm)&&(Pm=null),null!==Fm&&Lm(Fm)&&(Fm=null),qm.forEach(Bm),Nm.forEach(Bm)}function Hm(r,t){r.blockedOn===t&&(r.blockedOn=null,Im||(Im=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Vm)))}var Wm=null;function Gm(r){Wm!==r&&(Wm=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,(function(){Wm===r&&(Wm=null);for(var e=0;e<r.length;e+=3){var t=r[e],n=r[e+1],i=r[e+2];if("function"!=typeof n){if(null===Cm(n||t))continue;break}var o=gr(t);null!==o&&(r.splice(e,3),e-=3,ql(o,{pending:!0,data:i,method:t.method,action:n},n,i))}})))}function Km(e){function r(r){return Hm(r,e)}null!==Dm&&Hm(Dm,e),null!==Pm&&Hm(Pm,e),null!==Fm&&Hm(Fm,e),qm.forEach(r),Nm.forEach(r);for(var t=0;t<Tm.length;t++){var n=Tm[t];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Tm.length&&null===(t=Tm[0]).blockedOn;)Um(t),null===t.blockedOn&&Tm.shift();if(null!=(t=(e.ownerDocument||e).$$reactFormReplay))for(n=0;n<t.length;n+=3){var i=t[n],o=t[n+1],a=i[sr]||null;if("function"==typeof o)a||Gm(t);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[sr]||null)l=a.formAction;else if(null!==Cm(i))continue}else l=a.action;"function"==typeof l?t[n+1]=l:(t.splice(n,3),n-=3),Gm(t)}}}function Jm(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise((function(e){return i=e}))},focusReset:"manual",scroll:"manual"})}function r(){null!==i&&(i(),i=null),n||setTimeout(t,20)}function t(){if(!n&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var n=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(t,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),null!==i&&(i(),i=null)}}}function Zm(e){this._internalRoot=e}function Ym(e){this._internalRoot=e}Ym.prototype.render=Zm.prototype.render=function(e){var r=this._internalRoot;if(null===r)throw Error(n(409));bm(r.current,mf(),e,r,null,null)},Ym.prototype.unmount=Zm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var r=e.containerInfo;bm(e.current,2,null,e,null,null),$f(),r[cr]=null}},Ym.prototype.unstable_scheduleHydration=function(e){if(e){var r=or();e={blockedOn:null,target:e,priority:r};for(var t=0;t<Tm.length&&0!==r&&r<Tm[t].priority;t++);Tm.splice(t,0,e),0===t&&Um(e)}};var Xm=r.version;if("19.3.1"!==Xm)throw Error(n(527,Xm,"19.3.1"));G.findDOMNode=function(e){var r=e._reactInternals;if(void 0===r){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=function(e){var r=e.alternate;if(!r){if(null===(r=o(e)))throw Error(n(188));return r!==e?null:e}for(var t=e,i=r;;){var a=t.return;if(null===a)break;var l=a.alternate;if(null===l){if(null!==(i=a.return)){t=i;continue}break}if(a.child===l.child){for(l=a.child;l;){if(l===t)return u(a),e;if(l===i)return u(a),r;l=l.sibling}throw Error(n(188))}if(t.return!==i.return)t=a,i=l;else{for(var s=!1,c=a.child;c;){if(c===t){s=!0,t=a,i=l;break}if(c===i){s=!0,i=a,t=l;break}c=c.sibling}if(!s){for(c=l.child;c;){if(c===t){s=!0,t=l,i=a;break}if(c===i){s=!0,i=l,t=a;break}c=c.sibling}if(!s)throw Error(n(189))}}if(t.alternate!==i)throw Error(n(190))}if(3!==t.tag)throw Error(n(188));return t.stateNode.current===t?e:r}(r),null===(e=null!==e?s(e):null)?null:e.stateNode};var Qm={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.3.1"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ep=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ep.isDisabled&&ep.supportsFiber)try{Te=ep.inject(Qm),Re=ep}catch(e){}}return ue.createRoot=function(e,r){if(!i(e))throw Error(n(299));var t=!1,o="",a=iu,l=ou,u=au;return null!=r&&(!0===r.unstable_strictMode&&(t=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onUncaughtError&&(a=r.onUncaughtError),void 0!==r.onCaughtError&&(l=r.onCaughtError),void 0!==r.onRecoverableError&&(u=r.onRecoverableError)),r=vm(e,1,!1,null,0,t,o,null,a,l,u,Jm),e[cr]=r.current,Sd(e),new Zm(r)},ue.hydrateRoot=function(e,r,t){if(!i(e))throw Error(n(299));var o=!1,a="",l=iu,u=ou,s=au,c=null;return null!=t&&(!0===t.unstable_strictMode&&(o=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(l=t.onUncaughtError),void 0!==t.onCaughtError&&(u=t.onCaughtError),void 0!==t.onRecoverableError&&(s=t.onRecoverableError),void 0!==t.formState&&(c=t.formState)),(r=vm(e,1,!0,r,0,o,a,c,l,u,s,Jm)).context=ym(null),t=r.current,(a=Yo(o=nr(o=mf()))).callback=null,Xo(t,a,o),r.current.lanes=t=o,Qe(r,t),ad(r),e[cr]=r.current,Sd(e),new Ym(r)},ue.version="19.3.1",ue}()),le.exports),ke={exports:{}},$e={},Se=(ge||(ge=1,ke.exports=function(){if(be)return $e;be=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(r,t,n){var i=null;if(void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),"key"in t)for(var o in n={},t)"key"!==o&&(n[o]=t[o]);else n=t;return{$$typeof:e,type:r,key:i,ref:void 0!==(t=n.ref)?t:null,props:n}}return $e.Fragment=r,$e.jsx=t,$e.jsxs=t,$e}()),ke.exports);function Ee(e){return!("object"!=typeof e||null===e||"lastModified"in e&&"number"==typeof e.lastModified&&"undefined"!=typeof File&&e instanceof File||"getMonth"in e&&"function"==typeof e.getMonth&&"undefined"!=typeof Date&&e instanceof Date||Array.isArray(e))}function je(){const e="undefined"!=typeof navigator?navigator.languages:void 0;if(e)try{const r=new Intl.NumberFormat(e).formatToParts(1.1);return r.find((e=>"decimal"===e.type))?.value||"."}catch(e){}return"."}function xe(e){if(""===e)return;if(null===e)return null;const r=je(),t="string"==typeof e&&"."!==r?e.replace(r,"."):e;if(/\.$/.test(t))return e;if(/\.0$/.test(t))return e;if(/\.\d*0$/.test(t))return e;const n=Number(t);return"number"!=typeof n||Number.isNaN(n)?e:n}const Oe=Symbol("__additional_property"),Ae="additionalProperties",Ce="allOf",_e="anyOf",Ie="const",De="default",Pe="dependencies",Fe="__errors",qe="$id",Ne="if",Te="items",Re="$name",Me="oneOf",ze="patternProperties",Ue="properties",Le="readonly",Be="required",Ve="submitButtonOptions",He="$ref",We=Symbol("__rjsf_ref"),Ge=Symbol("__rjsf_ref_cycle"),Ke="$schema",Je="root",Ze="_",Ye=["discriminator","propertyName"],Xe="formContext",Qe="__rjsf",er=`${Qe}_additionalProperties`,rr=`${Qe}_rootSchema`,tr="ui:widget",nr="ui:options",ir="ui:globalOptions",or="https://json-schema.org/draft/2020-12/schema";function ar(e={},r={}){return e?Object.keys(e).filter((e=>e.startsWith("ui:"))).reduce(((r,t)=>{const n=e[t];return t===tr&&Ee(n)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),r):t===nr&&Ee(n)?{...r,...n}:{...r,[t.substring(3)]:n}}),{...r}):{...r}}function lr(e,r={},t){if(!e.additionalProperties&&!e.patternProperties)return!1;const{expandable:n=!0}=ar(r);return!1===n?n:void 0===e.maxProperties||!t||Object.keys(t).length<e.maxProperties}function ur(e){if("object"!=typeof e||null===e)return!1;const r=Object.getPrototypeOf(e);return null===r||r===Object.prototype}function sr(e){const r={[Fe]:[],addError(e){this[Fe].push(e)}};return Array.isArray(e)?e.reduce(((e,r,t)=>({...e,[t]:sr(r)})),r):ur(e)?Object.keys(e).reduce(((r,t)=>({...r,[t]:sr(e[t])})),r):r}const{getOwnPropertyNames:cr,getOwnPropertySymbols:fr}=Object,{hasOwnProperty:dr}=Object.prototype;function hr(e,r){return function(t,n,i){return e(t,n,i)&&r(t,n,i)}}function mr(e){return function(r,t,n){if(!r||!t||"object"!=typeof r||"object"!=typeof t)return e(r,t,n);const{cache:i}=n,o=i.get(r),a=i.get(t);if(o&&a)return o===t&&a===r;i.set(r,t),i.set(t,r);const l=e(r,t,n);return i.delete(r),i.delete(t),l}}function pr(e){return cr(e).concat(fr(e))}const vr=Object.hasOwn||((e,r)=>dr.call(e,r)),{getOwnPropertyDescriptor:yr,keys:br}=Object,gr=Object.is||function(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r};function wr(e,r){return e===r}function kr(e,r){return e.byteLength===r.byteLength&&Dr(new Uint8Array(e),new Uint8Array(r))}function $r(e,r,t){let n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(!t.equals(e[n],r[n],n,n,e,r,t))return!1;return!0}function Sr(e,r){return e.byteLength===r.byteLength&&Dr(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}function Er(e,r){return gr(e.getTime(),r.getTime())}function jr(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function xr(e,r,t){const n=e.size;if(n!==r.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let a,l,u=0;for(;(a=o.next())&&!a.done;){const n=r.entries();let o=!1,s=0;for(;(l=n.next())&&!l.done;){if(i[s]){s++;continue}const n=a.value,c=l.value;if(t.equals(n[0],c[0],u,s,e,r,t)&&t.equals(n[1],c[1],n[0],c[0],e,r,t)){o=i[s]=!0;break}s++}if(!o)return!1;u++}return!0}function Or(e,r,t){const n=br(e);let i=n.length;if(br(r).length!==i)return!1;for(;i-- >0;)if(!Fr(e,r,t,n[i]))return!1;return!0}function Ar(e,r,t){const n=pr(e);let i,o,a,l=n.length;if(pr(r).length!==l)return!1;for(;l-- >0;){if(i=n[l],!Fr(e,r,t,i))return!1;if(o=yr(e,i),a=yr(r,i),(o||a)&&(!o||!a||o.configurable!==a.configurable||o.enumerable!==a.enumerable||o.writable!==a.writable))return!1}return!0}function Cr(e,r){return gr(e.valueOf(),r.valueOf())}function _r(e,r){return e.source===r.source&&e.flags===r.flags}function Ir(e,r,t){const n=e.size;if(n!==r.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let a,l;for(;(a=o.next())&&!a.done;){const n=r.values();let o=!1,u=0;for(;(l=n.next())&&!l.done;){if(!i[u]&&t.equals(a.value,l.value,a.value,l.value,e,r,t)){o=i[u]=!0;break}u++}if(!o)return!1}return!0}function Dr(e,r){let t=e.byteLength;if(r.byteLength!==t||e.byteOffset!==r.byteOffset)return!1;for(;t-- >0;)if(e[t]!==r[t])return!1;return!0}function Pr(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function Fr(e,r,t,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!e.$$typeof&&!r.$$typeof)||vr(r,n)&&t.equals(e[n],r[n],n,n,e,r,t)}const qr=Object.prototype.toString;function Nr(e={}){const{circular:r=!1,createInternalComparator:t,createState:n,strict:i=!1}=e,o=function({circular:e,createCustomConfig:r,strict:t}){let n={areArrayBuffersEqual:kr,areArraysEqual:t?Ar:$r,areDataViewsEqual:Sr,areDatesEqual:Er,areErrorsEqual:jr,areFunctionsEqual:wr,areMapsEqual:t?hr(xr,Ar):xr,areNumbersEqual:gr,areObjectsEqual:t?Ar:Or,arePrimitiveWrappersEqual:Cr,areRegExpsEqual:_r,areSetsEqual:t?hr(Ir,Ar):Ir,areTypedArraysEqual:t?hr(Dr,Ar):Dr,areUrlsEqual:Pr,getUnsupportedCustomComparator:void 0};if(r&&(n=Object.assign({},n,r(n))),e){const e=mr(n.areArraysEqual),r=mr(n.areMapsEqual),t=mr(n.areObjectsEqual),i=mr(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:e,areMapsEqual:r,areObjectsEqual:t,areSetsEqual:i})}return n}(e),a=function(e){const r=function({areArrayBuffersEqual:e,areArraysEqual:r,areDataViewsEqual:t,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:s,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h}){return{"[object Arguments]":u,"[object Array]":r,"[object ArrayBuffer]":e,"[object AsyncGeneratorFunction]":o,"[object BigInt]":l,"[object BigInt64Array]":d,"[object BigUint64Array]":d,"[object Boolean]":s,"[object DataView]":t,"[object Date]":n,"[object Error]":i,"[object Float16Array]":d,"[object Float32Array]":d,"[object Float64Array]":d,"[object Function]":o,"[object GeneratorFunction]":o,"[object Int8Array]":d,"[object Int16Array]":d,"[object Int32Array]":d,"[object Map]":a,"[object Number]":s,"[object Object]":(e,r,t)=>"function"!=typeof e.then&&"function"!=typeof r.then&&u(e,r,t),"[object RegExp]":c,"[object Set]":f,"[object String]":s,"[object URL]":h,"[object Uint8Array]":d,"[object Uint8ClampedArray]":d,"[object Uint16Array]":d,"[object Uint32Array]":d}}(e),{areArraysEqual:t,areDatesEqual:n,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:a,areObjectsEqual:l,areRegExpsEqual:u,areSetsEqual:s,getUnsupportedCustomComparator:c}=e;return function(e,f,d){if(e===f)return!0;if(null==e||null==f)return!1;const h=typeof e;if(h!==typeof f)return!1;if("object"!==h)return"number"===h||"bigint"===h?a(e,f,d):"function"===h&&i(e,f,d);const m=e.constructor;if(m!==f.constructor)return!1;if(m===Object)return l(e,f,d);if(m===Array)return t(e,f,d);if(m===Date)return n(e,f,d);if(m===RegExp)return u(e,f,d);if(m===Map)return o(e,f,d);if(m===Set)return s(e,f,d);if(m===Promise)return!1;if(Array.isArray(e))return t(e,f,d);const p=qr.call(e),v=r[p];if(v)return v(e,f,d);const y=c&&c(e,f,d,p);return!!y&&y(e,f,d)}}(o);var l;return function({circular:e,comparator:r,createState:t,equals:n,strict:i}){if(t)return function(o,a){const{cache:l=(e?new WeakMap:void 0),meta:u}=t();return r(o,a,{cache:l,equals:n,meta:u,strict:i})};if(e)return function(e,t){return r(e,t,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const o={cache:void 0,equals:n,meta:void 0,strict:i};return function(e,t){return r(e,t,o)}}({circular:r,comparator:a,createState:n,equals:t?t(a):(l=a,function(e,r,t,n,i,o,a){return l(e,r,a)}),strict:i})}Nr(),Nr({strict:!0}),Nr({circular:!0}),Nr({circular:!0,strict:!0}),Nr({createInternalComparator:()=>gr}),Nr({strict:!0,createInternalComparator:()=>gr}),Nr({circular:!0,createInternalComparator:()=>gr}),Nr({circular:!0,createInternalComparator:()=>gr,strict:!0});const Tr=Nr({circular:!0,createCustomConfig:()=>({areFunctionsEqual:(e,r)=>"function"==typeof r})});var Rr,Mr,zr,Ur,Lr,Br={exports:{}};function Vr(){if(Mr)return Rr;Mr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),t=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),l=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),u=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),s=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),c=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),f=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u),d=RegExp.prototype.test.bind(/[^\d!"$&'()*+,\-.;=_`a-z{}~]/u),h=RegExp.prototype.test.bind(/(?:^|\.)\d+$/u);function m(e){let r=-1,t=0,n=-1,i=0;for(let o=0;o<e.length;o++)"0"===e[o]?(-1===n&&(n=o),i++,i>t&&(t=i,r=n)):(n=-1,i=0);return t<2?e.join(":"):e.slice(0,r).join(":")+"::"+e.slice(r+t).join(":")}function p(e){const t="["===e[0]&&"]"===e[e.length-1];if(("["===e[0]||"]"===e[e.length-1])&&!t)return{host:e,isIPV6:!1,error:!0};let i=t?e.slice(1,-1):e;if(t&&s(i))return i=i.toLowerCase(),{host:`[${i}]`,escapedHost:i,isIPV6:!1,isIPVFuture:!0};if(function(e){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(i)<2)return{host:e,isIPV6:!1,error:t};let o="";const a=i.indexOf("%");if(-1!==a){const r="%25"===i.slice(a,a+3).toLowerCase()?3:1;if(o=i.slice(a+r),!function(e){if(0===e.length)return!1;for(let r=0;r<e.length;r++)if(!c(e[r])){if(!("%"===e[r]&&r+2<e.length&&n(e.slice(r+1,r+3))))return!1;r+=2}return!0}(o))return{host:e,isIPV6:!1,error:!0};i=i.slice(0,a)}const l=function(e){const t=e.indexOf("::");if(-1!==t&&-1!==e.indexOf("::",t+1))return;const n=-1===t?e.split(":"):e.slice(0,t).split(":"),i=-1===t?[]:e.slice(t+2).split(":");-1!==t&&(1===n.length&&""===n[0]&&(n.length=0),1===i.length&&""===i[0]&&(i.length=0));const o=n.concat(i);let a=0;for(let e=0;e<o.length;e++){const n=o[e];if(""===n)return;if(-1===n.indexOf(".")){if(!u(n))return;o[e]=parseInt(n,16).toString(16),a++}else{if(e!==o.length-1||-1!==t&&0===i.length||!r(n))return;a+=2}}if(-1===t){if(8!==a)return;return m(o)}if(a>=8)return;const l=o.slice(0,n.length);for(let e=a;e<8;e++)l.push("0");for(let e=n.length;e<o.length;e++)l.push(o[e]);return m(l)}(i);return void 0===l?{host:e,isIPV6:!1,error:!0}:{host:l+(o?"%"+o:""),escapedHost:l+(o?"%25"+o:""),isIPV6:!0}}const v={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},y=/[@/?#:]/g,b=/[@/?#]/g;function g(e,r){const t=r?b:y;return t.lastIndex=0,e.replace(t,(e=>v[e]))}function w(e,r=!1){if(-1===e.indexOf("%"))return e;let t="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){const a=e.slice(o+1,o+3);if(n(a)){const e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));r&&i(n)?t+=n:t+="%"+e,o+=2;continue}}t+=e[o]}return t}const k=new Array(256);{const e="0123456789ABCDEF";for(let r=0;r<256;r++)k[r]="%"+e[r>>4]+e[15&r]}function $(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||42===e||43===e||45===e||46===e||47===e||64===e||95===e}function S(e){return e<2048?k[192|e>>6]+k[128|63&e]:e<65536?k[224|e>>12]+k[128|e>>6&63]+k[128|63&e]:k[240|e>>18]+k[128|e>>12&63]+k[128|e>>6&63]+k[128|63&e]}function E(e,r){let t="";for(let i=0;i<e.length;i++){const o=e[i];if("%"===o&&i+2<e.length){const r=e.slice(i+1,i+3);if(n(r)){t+="%"+r.toUpperCase(),i+=2;continue}}if(r(o))t+=o;else{const r=e.charCodeAt(i);if(r<128)t+=k[r];else if(r<55296||r>57343)t+=S(r);else if(r<=56319&&i+1<e.length){const n=e.charCodeAt(i+1);n>=56320&&n<=57343?(t+=S(65536+(r-55296<<10)+(n-56320)),i++):t+=S(65533)}else t+=S(65533)}}return t}function j(e){return E(e,l)}return Rr={BYTE_HEX:k,percentEncodeNonAscii:S,nonSimpleDomain:f,nonSimpleMailtoDomain:function(e){return d(e)||h(e)},recomposeAuthority:function(e){const n=[];if(void 0!==e.userinfo&&(n.push(j(e.userinfo)),n.push("@")),void 0!==e.host){let t=e.host;if(!r(t)){const r=function(e){const r=e.ipv6Zone;if(void 0===r)return;const t=e.host,n=t.indexOf("%");if(-1===n)return;const i=t.slice(0,n)+"%25"+r,o=p("["+i+"]");return!0===o.isIPV6&&o.host===t?"["+i+"]":void 0}(e);if(void 0!==r)t=r;else{let e=p(t);!0!==e.isIPV6&&!0!==e.isIPVFuture&&(t=w(t,!0),e=p(t)),t=!0===e.isIPV6||!0===e.isIPVFuture?`[${e.escapedHost}]`:g(t,!1)}}n.push(t)}if("number"==typeof e.port||"string"==typeof e.port){const r=String(e.port);if(!t(r))throw new TypeError("URI port is malformed.");n.push(":"),n.push(r)}return n.length?n.join(""):void 0},reescapeHostDelimiters:g,normalizePercentEncoding:w,normalizePathEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const a=e[t];if("%"===a&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?r+=n:r+="%"+e,t+=2;continue}}if(o(a))r+=a;else{const n=e.charCodeAt(t);if(n<128)r+=$(n)?a:k[n];else if(n<55296||n>57343)r+=S(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=S(65536+(n-55296<<10)+(i-56320)),t++):r+=S(65533)}else r+=S(65533)}}return r},serializePathEncoding:function(e,r=!1){let t="",i=r&&"/"!==e[0];for(let r=0;r<e.length;r++){const a=e[r];if("%"===a&&r+2<e.length){const i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}if("/"===a&&(i=!1),!o(a)||":"===a&&i){const n=e.charCodeAt(r);if(n<128)t+=k[n];else if(n<55296||n>57343)t+=S(n);else if(n<=56319&&r+1<e.length){const i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=S(65536+(n-55296<<10)+(i-56320)),r++):t+=S(65533)}else t+=S(65533)}else t+=a}return t},normalizeQueryFragmentEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const o=e[t];if("%"===o&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));i(n)?r+=n:r+="%"+e,t+=2;continue}}if(a(o))r+=o;else{const n=e.charCodeAt(t);if(n<128)r+=$(n)?o:k[n];else if(n<55296||n>57343)r+=S(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=S(65536+(n-55296<<10)+(i-56320)),t++):r+=S(65533)}else r+=S(65533)}}return r},encodeUserinfo:j,encodeQuery:function(e){return E(e,a)},encodeFragment:function(e){return E(e,a)},escapePreservingEscapes:function(e){let r="";for(let t=0;t<e.length;t++){const i=e[t];if("%"===i&&t+2<e.length){const i=e.slice(t+1,t+3);if(n(i)){r+="%"+i.toUpperCase(),t+=2;continue}}const o=e.charCodeAt(t);if(o<128)r+=$(o)?i:k[o];else if(o<55296||o>57343)r+=S(o);else if(o<=56319&&t+1<e.length){const n=e.charCodeAt(t+1);n>=56320&&n<=57343?(r+=S(65536+(o-55296<<10)+(n-56320)),t++):r+=S(65533)}else r+=S(65533)}return r},removeDotSegments:function(e){let r=e;const t=[];let n=-1,i=0;for(;i=r.length;){if(1===i){if("."===r)break;if("/"===r){t.push("/");break}t.push(r);break}if(2===i){if("."===r[0]){if("."===r[1])break;if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){t.push("/");break}}else if(3===i&&"/.."===r){0!==t.length&&t.pop(),t.push("/");break}if("."===r[0]){if("."===r[1]){if("/"===r[2]){r=r.slice(3);continue}}else if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){if("/"===r[2]){r=r.slice(2);continue}if("."===r[2]&&"/"===r[3]){r=r.slice(3),0!==t.length&&t.pop();continue}}if(-1===(n=r.indexOf("/",1))){t.push(r);break}t.push(r.slice(0,n)),r=r.slice(n)}return t.join("")},isIPv4:r,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:function(e){let r="",t=0,n=0;for(n=0;n<e.length;n++)if(t=e[n].charCodeAt(0),48!==t){if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(t=e[n].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n]}return r}},Rr}var Hr,Wr=function(){if(Lr)return Br.exports;Lr=1;const{normalizeIPv6:e,removeDotSegments:r,recomposeAuthority:t,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:l,encodeFragment:u,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:f}=Vr(),{SCHEMES:d,getSchemeHandler:h}=function(){if(Ur)return zr;Ur=1;const{isUUID:e,BYTE_HEX:r,percentEncodeNonAscii:t,nonSimpleMailtoDomain:n}=Vr(),i=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,o=["http","https","ws","wss","urn","urn:uuid","mailto"];function a(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function l(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function u(e){const r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const s={scheme:"http",domainHost:!0,parse:l,serialize:u},c={scheme:"https",domainHost:s.domainHost,parse:l,serialize:u},f={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=a(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(a(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const r=e.resourceName.indexOf("?"),t=-1===r?e.resourceName:e.resourceName.slice(0,r);e.path=t&&"/"!==t?t:void 0,e.query=-1===r?void 0:e.resourceName.slice(r+1),e.resourceName=void 0}return e.fragment=void 0,e}},d={scheme:"wss",domainHost:f.domainHost,parse:f.parse,serialize:f.serialize},h={scheme:"urn",parse:function(e,r){if(!e.path)return e.error="URN can not be parsed",e;const t=e.path.match(i);if(t&&t[0]===e.path){const n=r.scheme||e.scheme||"urn";e.nid=t[1].toLowerCase(),e.nss=t[2];const i=D(`${n}:${r.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,r))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,r){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=D(`${t}:${r.nid||n}`);i&&(e=i.serialize(e,r));const o=e;return o.path=`${n||r.nid}:${e.nss}`,r.skipEscape=!0,o},skipNormalize:!0},m={scheme:"urn:uuid",parse:function(r,t){const n=r;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&e(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const r=e;return r.nss=(e.uuid||"").toLowerCase(),r},skipNormalize:!0},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+;:";function v(e,r=!1){const t=new Uint8Array(128);for(let r=0;r<e.length;r++)t[e.charCodeAt(r)]=1;const n=e.replace(/[\\\]^-]/gu,"\\$&");return{all:new RegExp(`^(?:${r?`[${n}]|[^\\0-\\x7F\\uD800-\\uDFFF]`:`[${n}]`})*$`,"u"),table:t,allowNonAscii:r}}const y=v("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+="),b=v("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~!$'()*+,;:@"),g=v(p),w=v(p,!0),k=/^[\da-f]{2}$/iu,$=/^\[[\x21-\x5A\x5E-\x7E]*\]$/u,S="URI mailto has an invalid recipient domain.",E=/[\uD800-\uDFFF]/u;function j(e){if("string"!=typeof e||-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch{return e}}function x(e){let r="";for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n>=55296&&n<=56319&&t+1<e.length){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){r+=e[t]+e[t+1],t++;continue}}r+=n>=55296&&n<=57343?"�":e[t]}return r}function O(e,n){if(n.all.test(e))return e;const i=n.table;let o="";for(let a=0;a<e.length;a++){const l=e.charCodeAt(a);if(l<128)1===i[l]?o+=e[a]:37===l&&a+2<e.length&&k.test(e.slice(a+1,a+3))?(o+="%"+e.slice(a+1,a+3).toUpperCase(),a+=2):o+=r[l];else if(l<55296||l>57343)o+=n.allowNonAscii?e[a]:t(l);else{if(l<=56319&&a+1<e.length){const r=e.charCodeAt(a+1);if(r>=56320&&r<=57343){o+=n.allowNonAscii?e[a]+e[a+1]:t(65536+(l-55296<<10)+(r-56320)),a++;continue}}o+=n.allowNonAscii?"�":t(65533)}}return o}function A(e,r,t){const i=String(e).toLowerCase();if($.test(i))return i;if(""!==i&&!n(i))return i;try{const e=new URL("http://"+i);if(e.username||e.password||e.port||"/"!==e.pathname||e.search||e.hash||!e.hostname)throw new Error(S);return r&&r.unicodeSupport?i:e.hostname}catch{return t&&(t.error=t.error||S),i}}function C(e,r){const t=r&&r.unicodeSupport?w:g;return e.length>1&&"["===e[0]&&"]"===e[e.length-1]?"["+O(e.slice(1,-1),t)+"]":O(e,t)}function _(e){return O(e.replace(/%/gu,"%25"),b)}const I={http:s,https:c,ws:f,wss:d,urn:h,"urn:uuid":m,mailto:{scheme:"mailto",parse:function(e,r){const t=e;let n=t.path,i=t.query;n&&E.test(n)&&(n=x(n)),i&&E.test(i)&&(i=x(i));const o=n?-1===n.indexOf(",")?[n]:n.split(","):[];if(t.path=void 0,i){let e=null,r=0;for(;r<=i.length;){let n=i.indexOf("&",r);-1===n&&(n=i.length);const a=i.slice(r,n);r=n+1;const l=a.indexOf("=");if(l!==a.lastIndexOf("=")){t.error=t.error||"URI mailto has malformed header fields.";continue}const u=j(-1===l?a:a.slice(0,l)),s=u.toLowerCase(),c=-1===l?"":a.slice(l+1);if("to"!==s)"subject"!==s?"body"!==s?(null===e&&(e=Object.create(null)),e[u]=j(c)):t.body=j(c):t.subject=j(c);else{const e=c.split(",");for(let r=0;r<e.length;r++)o.push(e[r])}}null!==e&&(t.headers=e)}t.query=void 0,o.length>0&&(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port)&&(t.userinfo=void 0,t.host=void 0,t.port=void 0,t.error=t.error||"URI mailto must not have an authority component.");for(let e=0;e<o.length;e++){const n=o[e],i=n.lastIndexOf("@");if(i<0){t.error=t.error||S,o[e]=j(n);continue}const a=j(n.slice(0,i)),l=A(j(n.slice(i+1)),r,t);o[e]=a+"@"+l}return o.length&&(t.to=o),t},serialize:function(e,r){const t=e,n=Array.isArray(t.to)?t.to.slice():[],i=t.headers&&"object"==typeof t.headers?Object.assign(Object.create(null),t.headers):Object.create(null),o=Object.create(null);for(const e in i){const r=e.toLowerCase();if("to"===r){const r=String(i[e]).split(",");for(let e=0;e<r.length;e++)n.push(r[e])}else"subject"===r||"body"===r?o[r]=i[e]:o[e]=i[e]}if(void 0!==t.subject&&(o.subject=t.subject),void 0!==t.body&&(o.body=t.body),t.headers=o,n.length){t.userinfo=void 0,t.host=void 0,t.port=void 0;for(let e=0;e<n.length;e++){const t=String(n[e]),i=t.lastIndexOf("@"),o=i>=0?t.slice(0,i):t,a=i>=0?t.slice(i+1):"",l=O(o,y),u=A(j(a),r);n[e]=l+"@"+C(u,r)}t.path=n.join(","),r.skipEscape=!0}else t.path=void 0;let a="",l=0;for(const e in o)0!=l++&&(a+="&"),a+=_(e)+"="+O(String(o[e]),b);return 0!==l?t.query=a:t.headers=void 0,t},domainHost:!1,unicodeSupport:!0,skipNormalize:!0,absolutePath:!0}};function D(e){return e&&(I[e]||I[e.toLowerCase()])||void 0}return Object.setPrototypeOf(I,null),zr={wsIsSecure:a,SCHEMES:I,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:D}}(),m=/^[A-Za-z][A-Za-z0-9+.-]*$/u,p="URI scheme is malformed.";function v(e){const r=unescape(String(e));if(!m.test(r))throw new TypeError(p);return r}function y(e,r){e.host=r.host,void 0!==r.ipv6Zone&&(e.ipv6Zone=r.ipv6Zone)}function b(e,t,n,i){const o={};return i||(e=O(g(e,n),n),t=O(g(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,y(o,t),o.port=t.port,o.path=r(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,y(o,t),o.port=t.port,o.path=r(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=r(t.path):(o.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:t.path:"/"+t.path,o.path=r(o.path)),o.query=t.query):(o.path=e.path,o.query=void 0!==t.query?t.query:e.query),o.userinfo=e.userinfo,y(o,e),o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function g(e,i){const a={host:e.host,ipv6Zone:e.ipv6Zone,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,to:e.to,subject:e.subject,body:e.body,headers:e.headers,error:""},s=Object.assign({},i),c=[];a.scheme&&(a.scheme=v(a.scheme));const f=h(s.scheme||a.scheme);f&&f.serialize&&f.serialize(a,s);const d=!s.skipEscape&&void 0===a.scheme&&!(void 0!==a.userinfo||void 0!==a.host||void 0!==a.port);void 0!==a.path&&(a.path=s.skipEscape?n(a.path):o(a.path,d)),"suffix"!==s.reference&&a.scheme&&(a.scheme=v(a.scheme),c.push(a.scheme,":"));const m=t(a);if(void 0!==m&&("suffix"!==s.reference&&c.push("//"),c.push(m),a.path&&"/"!==a.path[0]&&c.push("/")),void 0!==a.path){let e=a.path;s.absolutePath||f&&f.absolutePath||(e=r(e)),d&&(e=o(e,!0)),void 0===m&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),c.push(e)}return void 0!==a.query&&c.push("?",l(a.query)),void 0!==a.fragment&&c.push("#",u(a.fragment)),c.join("")}const w=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,k=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,$=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function S(e){if(void 0===e)return!1;let r=e.indexOf("%");for(;-1!==r;){if(r+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(r+1,r+3)))return!0;r=e.indexOf("%",r+3)}return!1}function E(e){return"["===e[0]&&"]"===e[e.length-1]}function j(e,r,t,n){const i=e.host&&"["===e.host[0]&&"]"===e.host[e.host.length-1];if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&e.host&&!E(e.host)&&(r.domainHost||t&&t.domainHost)&&!1===n&&!i&&f(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(r){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+r,!0}return!1}function x(r,t){const o=Object.assign({},t),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let u=!1,f=!1,v=!1,y=!1,b=!1,g=!1,x=!1;"suffix"===o.reference&&(r=o.scheme?o.scheme+":"+r:"//"+r);const O=r.match(k);null!==O&&-1!==O[1].indexOf("\\")&&(l.error="URI authority must not contain a literal backslash.",u=!0);const A=r.match($);if(null!==A){const e=A[1],r=e.replace(/[\t\n\r]/g,"");r.length>=2&&("//"!==r.slice(0,2)?(l.error=l.error||"URI authority must not contain a literal backslash.",u=!0):e.length!==r.length&&(l.error=l.error||"URI authority introducer must not contain whitespace.",u=!0))}const C=r.match(w);if(C){if(l.scheme=C[1],l.userinfo=C[3],l.host=C[4],l.port=parseInt(C[5],10),l.path=C[6]||"",l.query=C[7],l.fragment=C[8],void 0!==l.scheme){const e=unescape(l.scheme);m.test(e)?l.scheme=e.toLowerCase():(l.error=l.error||p,g=!0)}f=function(e){const r=e[4];return S(e[3])||void 0!==r&&!E(r)&&S(r)||S(e[6])||S(e[7])||S(e[8])}(C),f&&(l.error=l.error||"URI contains malformed percent-encoding."),isNaN(l.port)&&(l.port=C[5]);const t=function(e,r){return void 0!==r[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(l,C);if(void 0!==t&&(l.error=l.error||t,u=!0),l.host)if(!1===c(l.host)){const r=E(l.host),t=-1!==l.host.indexOf("[")||-1!==l.host.indexOf("]"),n=e(l.host);x=n.isIPV6||!0===n.isIPVFuture,b=t&&(!r||!0===n.error),l.host=x?n.host:n.host.toLowerCase(),x&&!0===n.isIPV6&&-1!==l.host.indexOf("%")&&(l.ipv6Zone=l.host.slice(l.host.indexOf("%")+1)),b&&(l.error=l.error||"URI host is malformed.",u=!0)}else x=!0;l.reference=void 0!==l.scheme||void 0!==l.userinfo||void 0!==l.host||void 0!==l.port||void 0!==l.query||l.path?void 0===l.scheme?"relative":void 0===l.fragment?"absolute":"uri":"same-document",o.reference&&"suffix"!==o.reference&&o.reference!==l.reference&&(l.error=l.error||"URI is not a "+o.reference+" reference.");const w=h(o.scheme||l.scheme);if(b||(y=j(l,o,w,x)),-1!==r.indexOf("%")&&void 0!==l.host&&!b){let e=x?l.host:n(l.host,!0);x||(e=n(e.toLowerCase())),l.host=s(e,x)}(!w||w&&!w.skipNormalize)&&(l.path&&(l.path=i(l.path)),l.query&&(l.query=a(l.query)),l.fragment&&(l.fragment=a(l.fragment))),w&&w.parse&&(w.parse(l,o),w===d.urn&&void 0===l.nid&&(v=!0))}else l.error=l.error||"URI can not be parsed.";return{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:g}}function O(e,r){return x(e,r).parsed}function A(e,r){const{parsed:t,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}=x(e,r);return{normalized:n||i||o||a||l?e:g(t,r),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}}function C(e,r){if("string"!=typeof e&&"object"!=typeof e)return;let t;try{t="string"==typeof e?e:g(e,r)}catch{return}const{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:l,malformedScheme:u}=A(t,r);return i||o||a||l||u?void 0:n}const _={SCHEMES:d,normalize:function(e,r){return"string"==typeof e?e=function(e,r){return A(e,r).normalized}(e,r):"object"==typeof e&&(e=O(g(e,r),r)),e},resolve:function(r,t,n){const i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:a,malformedPercentEncoding:l,malformedSchemeSpecific:u,malformedHost:s,malformedScheme:f}=x(r,i),{parsed:d,malformedAuthorityOrPort:m,malformedPercentEncoding:p,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:w}=x(t,i);if(a||m||l||p||u||v||s||y||f||w)throw new Error(o.error||d.error||"URI is malformed.");const k=b(o,d,i,!0),$=h(n&&n.scheme||k.scheme),S=k.host;j(k,n||{},$,void 0!==S&&""!==S&&(c(S)||e(S).isIPV6));const E=S&&-1!==S.indexOf("%")&&!/\P{ASCII}/u.test(S);if(k.error&&!E)throw new Error(k.error);return i.skipEscape=!0,g(k,i)},resolveComponent:b,equal:function(e,r,t){const n=C(e,t),i=C(r,t);return void 0!==n&&void 0!==i&&n===i},serialize:g,parse:O};return Br.exports=_,Br.exports.default=_,Br.exports.fastUri=_,Br.exports}(),Gr=i(Wr),Kr={},Jr=function(){if(Hr)return Kr;Hr=1;var e=/~/,r=/~[01]/g;function t(e){switch(e){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+e)}function n(n){return e.test(n)?n.replace(r,t):n}function i(e){if("string"==typeof e){if(""===(e=e.split("/"))[0])return e;throw new Error("Invalid JSON pointer.")}if(Array.isArray(e)){for(const r of e)if("string"!=typeof r&&"number"!=typeof r)throw new Error("Invalid JSON pointer. Must be of type string or number.");return e}throw new Error("Invalid JSON pointer.")}function o(e,r){if("object"!=typeof e)throw new Error("Invalid input object.");var t=(r=i(r)).length;if(1===t)return e;for(var o=1;o<t;){if(e=e[n(r[o++])],t===o)return e;if("object"!=typeof e||null===e)return}}function a(e,r,t){if("object"!=typeof e)throw new Error("Invalid input object.");if(0===(r=i(r)).length)throw new Error("Invalid JSON pointer for set.");return function(e,r,t){for(var i,o,a=1,l=r.length;a<l;){if("constructor"===r[a]||"prototype"===r[a]||"__proto__"===r[a])return e;if(i=n(r[a++]),o=l>a,void 0===e[i]&&(Array.isArray(e)&&"-"===i&&(i=e.length),o&&(e[i]=""!==r[a]&&r[a]<1/0||"-"===r[a]?[]:{})),!o)break;e=e[i]}var u=e[i];return void 0===t?delete e[i]:e[i]=t,u}(e,r,t)}return Kr.get=o,Kr.set=a,Kr.compile=function(e){var r=i(e);return{get:function(e){return o(e,r)},set:function(e,t){return a(e,r,t)}}},Kr}(),Zr=i(Jr);function Yr(e,r){if(qe in e&&Gr.equal(e[qe],r))return e;for(const t of Object.values(e))if(Array.isArray(t)){for(const e of t)if(Ee(e)){const t=Yr(e,r);if(void 0!==t)return t}}else if(Ee(t)){const e=Yr(t,r);if(void 0!==e)return e}}function Xr(e,r){const t=e[qe]??r;let n=e;He in n&&(n={...n,[He]:Gr.resolve(t,n[He])});for(const[e,r]of Object.entries(n))Array.isArray(r)?n={...n,[e]:r.map((e=>Ee(e)?Xr(e,t):e))}:Ee(r)&&(n={...n,[e]:Xr(r,t)});return n}function Qr(e,r){const{[e]:t,...n}=r;return[n,t]}function et(e,r={},t=[],n=r[qe]){const i=e||"";let o,a=n;if(i.startsWith("#")){const e=decodeURIComponent(i.substring(1));void 0===a||qe in r&&r[qe]===a?o=Zr.get(r,e):r[Ke]===or&&(o=Yr(r,a.replace(/\/$/,"")),void 0!==o&&(o=Zr.get(o,e)))}else if(r[Ke]===or){const e=a?Gr.resolve(a,i):i,[t,...n]=e.replace(/#\/?$/,"").split("#");o=Yr(r,t.replace(/\/$/,"")),void 0!==o&&(a=o[qe],n.length>0&&(o=Zr.get(o,decodeURIComponent(n.join("#")))))}if(void 0===o)throw new Error(`Could not find a definition for ${e}.`);const l=o[He];if(l){if(t.includes(l)){if(1===t.length)throw new Error(`Definition for ${e} is a circular reference`);const[r,...n]=t,o=[...n,i,r].join(" -> ");throw new Error(`Definition for ${r} contains a circular reference through ${o}`)}const[n,u]=Qr(He,o),s=et(u,r,[...t,i],a);return Object.keys(n).length>0?"https://json-schema.org/draft/2019-09/schema"===r[Ke]||r[Ke]===or?{[Ce]:[n,s]}:{...n,...s}:s}return o}function rt(e,r={},t=r[qe]){return et(e,r,[],t)}const tt=/^(?:0|[1-9]\d*)$/;function nt(e){return e.split(/[.[\]]+/).filter(Boolean)}function it(e){return"__proto__"===e}function ot(e){return"number"==typeof e?Number.isInteger(e)&&e>=0:tt.test(e)}function at(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function lt(e,r,t){let n;if(Array.isArray(r))if(0===r.length)n=void 0;else{n=e;for(let e=0;e<r.length;e++){const t=r[e];if(!at(n)||!Object.hasOwn(n,t)){n=void 0;break}n=n[t]}}else n=at(e)&&Object.hasOwn(e,r)?e[r]:void 0;return void 0===n?t:n}function ut(e,r,t,n=!1){if(!at(e))return e;if(!Array.isArray(r))return it(r)||(e[r]=t),e;const i=r;if(i.some(it))return e;let o=e;for(let e=0;e<i.length;e++){const r=i[e];if(e===i.length-1)o[r]=t;else{const t=Object.hasOwn(o,r)?o[r]:void 0;if(at(t))o=t;else{const t=n||!ot(i[e+1])?{}:[];o[r]=t,at(t)&&(o=t)}}}return e}function st(e,r){if(!Array.isArray(r))return at(e)&&Object.hasOwn(e,r);let t=e;for(let e=0;e<r.length;e++){if(!at(t)||!Object.hasOwn(t,r[e]))return!1;t=t[r[e]]}return r.length>0}function ct(e){let r;const t=lt(e,Ye);return"string"==typeof t?r=t:void 0!==t&&console.warn(`Expecting discriminator to be a string, got "${typeof t}" instead`),r}function ft(e){return Array.isArray(e)?"array":"string"==typeof e?"string":null==e?"null":"boolean"==typeof e?"boolean":"number"!=typeof e||Number.isNaN(e)?"object"==typeof e?"object":"string":"number"}function dt(e){let{type:r}=e;return!r&&e.const?ft(e.const):!r&&e.enum?"string":!r&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(r)&&(r=2===r.length&&r.includes("null")?r.find((e=>"null"!==e)):r[0]),r)}function ht(e,r){const t={...e},n=Object.keys(r).reduce(((t,n)=>{const i=e?e[n]:{},o=r[n];return t[n]=e&&n in e&&Ee(o)?ht(i,o):e&&r&&("object"===dt(e)||"object"===dt(r))&&n===Be&&Array.isArray(i)&&Array.isArray(o)?[...new Set([...i,...o])]:o,t}),t);for(const e of Object.getOwnPropertySymbols(r))n[e]=r[e];return n}function mt(e,r){return e?.[Ue]?.[r]??{}}function pt(e,r,t){if(e&&t){const n=lt(e,t);if(void 0===n)return;for(let e=0;e<r.length;e+=1){const i=mt(r[e],t);if("object"!==i.type&&"array"!==i.type){if(i.const===n)return e;const r=i.enum;if(r?.includes(n))return e}}}}function vt(e,r,t,n,i){if(void 0===r)return 0;const o=pt(r,t,i);if("number"==typeof o)return o;for(let o=0;o<t.length;o+=1){const a=t[o],l=i?a[Ue]?.[i]:void 0;if(i&&void 0!==l){const t=lt(r,i);if(e.isValid(l,t,n))return o}else if(a[Ue]){const t={anyOf:Object.keys(a[Ue]).map((e=>({required:[e]})))};let i;if(a.anyOf){const{...e}=a;e.allOf=e.allOf?e.allOf.slice():[],e.allOf.push(t),i=e}else i={...a,...t};if(delete i.required,e.isValid(i,r,n))return o}else if(e.isValid(a,r,n))return o}return 0}const yt=Object.prototype;function bt(e){for(const r in e)if(yt.hasOwnProperty.call(e,r))return!1;return!0}function gt(e){return"object"==typeof e}function wt(e){return gt(e)?bt(e):!0===e}function kt(e){return void 0!==e.items}function $t(e,r){return e<r?-1:e>r?1:0}function St(e,r){const t=e.length;if(0===t)return r;let n=r.length;if(0===n)return e;if(t<n){const i=e;e=r,r=i,n=t}const i=new Set(e);for(let e=0;e<n;e++)i.add(r[e]);return Array.from(i)}function Et(e,r){const t=[];if(0===e.length||0===r.length)return t;if(e.length>r.length){const t=e;e=r,r=t}const n=new Set(r);for(let r=0;r<e.length&&n.size>0;r++){const i=e[r];n.delete(i)&&t.push(i)}return t}function jt(e){return 0===e.length}function xt(e){return(r,t)=>{const n=r.length-t.length;if(0!==n)return n;for(let n=0;n<r.length;n++)if(r[n]!==t[n]){const i=e(r[n],t[n]);if(0!==i)return i}return 0}}function Ot(e,{threshold:r=12}={}){return t=>{const n=t.length;if(0===n)return t;if(n<=r){const r=[];let i=0;e:for(let o=0;o<n;o++){const n=t[o];for(let t=0;t<i;t++)if(0===e(n,r[t]))continue e;i=r.push(n)}return r}const i=t.slice().sort(e);let o=0;for(let r=1;r<n;r++)0!==e(i[o],i[r])&&++o!==r&&(i[o]=i[r]);return i.length=o+1,i}}new Set(["array","boolean","integer","null","number","object","string"]),new Set(["$defs","definitions","properties","patternProperties","dependencies"]),new Set(["items","allOf","oneOf","anyOf"]),new Set(["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"]);const At=function(e,r){return t=>{if(e.has(t))return e.get(t);const n=r(t);return e.set(t,n),n}},Ct=()=>0,_t=e=>void 0===e,It=e=>"object"!=typeof e,Dt={boolean:0,number:1,string:2};function Pt(e,r){const t=typeof e,n=typeof r;return t===n?$t(e,r):Dt[t]-Dt[n]}function Ft(e,r,t=Ct){return(n,i)=>e(n)?e(i)?t(n,i):-1:e(i)?1:r(n,i)}function qt(e){return Ft(_t,e)}function Nt(e,r){return Ft((r=>void 0===r||e(r)),r)}function Tt(e,r){return Ft(Array.isArray,e,r)}const Rt=qt($t),Mt=Nt((e=>0===e),((e,r)=>e-r));function zt(e){return e}const Ut=(e,r)=>e?Ut(r%e,e):r;function Lt(e,r){return e===r?e:`(?=.*(?:${e}))(?=.*(?:${r}))`}function Bt(e,r,t){const n=e.length,i=r.length;if(n>0&&i>0)for(let o=0;o<n;o++){const n=e[o];for(let e=0;e<i;e++)t(n,r[e])}}function Vt(e,r){return e||r}function Ht(e){return(r,t)=>{const n={...r},i=Object.keys(t),o=i.length;for(let a=0;a<o;a++){const o=i[a];n[o]=void 0===r[o]?t[o]:e(r[o],t[o])}return n}}function Wt(e,r,t){void 0===t||wt(t)?delete e[r]:e[r]=t}const Gt=["properties","patternProperties","additionalProperties"];function Kt(e){const r=Object.keys(e),t=r.length,n=[];for(let i=0;i<t;i++){const t=r[i];n.push({regExp:new RegExp(t),schema:e[t]})}return[n,r]}const Jt=[[],[]];function Zt(e,r,t){const n=t.length;for(let i=0;i<n;i++){const n=t[i];if(!n.regExp.test(r))continue;const o=n.schema;if(!1===o)return!0;e.push(o)}return!1}const Yt=["items","additionalItems"],Xt=["if","then","else"],Qt=["contains"];function en(e,r){return void 0!==r.if&&(e.if=r.if),void 0!==r.then&&(e.then=r.then),void 0!==r.else&&(e.else=r.else),e}function rn(e,{items:r,additionalItems:t}){return e.items=r,Wt(e,"additionalItems",Array.isArray(r)?t:void 0),e}function tn(e,r){if(e===r)return e;switch(e){case"number":if("integer"===r)return"integer";case"integer":if("number"===r)return"integer";default:return}}function nn(e,r,t){return[e,r,t]}const on=[nn("minimum","maximum",(e=>e.maximum>=e.minimum)),nn("exclusiveMinimum","maximum",(e=>e.maximum>e.exclusiveMinimum)),nn("minimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.minimum)),nn("exclusiveMinimum","exclusiveMaximum",(e=>e.exclusiveMaximum>e.exclusiveMinimum)),nn("minLength","maxLength",(e=>e.maxLength>=e.minLength)),nn("minItems","maxItems",(e=>e.maxItems>=e.minItems)),nn("minProperties","maxProperties",(e=>e.maxProperties>=e.minProperties))],{compareSchemaDefinitions:an,compareSchemaValues:ln}=function({deduplicationCache:e=new WeakMap,sortedKeysCache:r=new WeakMap}={}){const t=At(r,(e=>Object.keys(e).sort()));function n(e){return(r,n)=>{const i=t(r),o=t(n),a=Math.min(i.length,o.length);for(let e=0;e<a;e++){const r=$t(i[e],o[e]);if(0!==r)return r}if(i.length!==o.length)return i.length-o.length;for(let t=0;t<a;t++){const o=i[t],a=e(r[o],n[o]);if(0!==a)return a}return 0}}function i(r){const t=xt(r),n=At(e,Ot(r,{threshold:0}));return(e,r)=>t(n(e),n(r))}const o=i($t);function a(e,r){if(gt(e)){if(gt(r)){const t=function(e,r){const t=e.length;if(0===t)return r;const n=r.length;if(0===n)return e;if(n>t){const t=e;e=r,r=t}const i=new Set(e),o=r.length;for(let t=0;t<o;t++){const n=r[t];i.has(n)||e.push(n)}return e}(Object.keys(e),Object.keys(r)),n=t.length;for(let i=0;i<n;i++){const n=t[i];if(e[n]===r[n])continue;const o=(m[n]??l)(e[n],r[n]);if(0!==o)return o}return 0}return!0===r&&bt(e)?0:1}return gt(r)?!0===e&&bt(r)?0:-1:$t(e,r)}const l=qt(s),u=Ft(It,Tt(n(l),xt(s)),Pt);function s(e,r){return null===e?-1:null===r?1:u(e,r)}const c=qt(a),f=Nt(bt,n(c)),d=qt(i(a)),h=Nt(wt,a),m={$id:Rt,$comment:Rt,$defs:f,$ref:Rt,$schema:Rt,const:l,contains:c,contentEncoding:Rt,contentMediaType:Rt,default:l,definitions:f,description:Rt,else:c,examples:l,exclusiveMaximum:Rt,exclusiveMinimum:Rt,format:Rt,if:c,maximum:Rt,maxItems:Rt,maxLength:Rt,maxProperties:Rt,minimum:Rt,multipleOf:Rt,not:c,pattern:Rt,propertyNames:c,readOnly:Rt,then:c,title:Rt,writeOnly:Rt,uniqueItems:Nt((e=>!1===e),Ct),minLength:Mt,minItems:Mt,minProperties:Mt,required:Nt(jt,o),enum:Nt(jt,i(s)),type:qt(((e,r)=>{const t=Array.isArray(e),n=Array.isArray(r);return t||n?o(t?e:[e],n?r:[r]):$t(e,r)})),items:Nt((e=>!Array.isArray(e)&&wt(e)),Tt(a,xt(a))),anyOf:d,allOf:d,oneOf:d,properties:f,patternProperties:f,additionalProperties:h,additionalItems:h,dependencies:Nt(bt,n(qt(Tt(a,o))))};return{compareSchemaValues:s,compareSchemaDefinitions:a}}(),{mergeArrayOfSchemaDefinitions:un}=function({mergePatterns:e=Lt,isSubRegExp:r=Object.is,intersectJson:t=Et,deduplicateJsonSchemaDef:n=zt,defaultMerger:i=zt,assigners:o=[],checks:a=on,mergers:l}={}){function u(e){const r=e.length;let t=e[0];for(let n=1;n<r;n++){const r=v(t,e[n]);if(!1===r)return!1;wt(r)||(t=r)}return t}function s(e,r,t,n,i,o,a){if(e.length=0,!1===t)return!1;if(e.push(t),void 0!==i){if(!1===i)return!1;e.push(i)}if(Zt(e,r,o))return!1;const l=e.length<2;if(!1===a){if(l)return;if(Zt(e,r,n))return!1}else l&&void 0!==a&&e.push(a);return 1===e.length?e[0]:u(e)}function c(e,r,t,n,i,o){const a=t.length;if(a>0&&!1!==i)if(o)Object.assign(e,r);else for(let o=0;o<a;o++){const a=t[o];n.has(a)||(e[a]=v(r[a],i))}return e}function f(e,r){const t=[];if(Bt(e,r,((e,r)=>{try{t.push(v(e,r))}catch{}})),0===t.length)throw new Error(`No valid schema combinations could be produced for "${JSON.stringify(e)}" and "${JSON.stringify(r)}"; the merged result is empty`);return n(t)}const d=function(e){const r=new Map;for(const t of e)for(const e of t[0])r.set(e,t[1]);return r}([[Gt,(t,{properties:n={},patternProperties:i,additionalProperties:o=!0},{properties:a={},patternProperties:l,additionalProperties:u=!0})=>{const f=wt(o),d=wt(u);if(f&&d)return Wt(t,"properties",y(n,a)),Wt(t,"patternProperties",i&&l?y(i,l):i??l),delete t.additionalProperties,t;Wt(t,"additionalProperties",v(o,u));const h={},m=Object.keys(n),p=m.length,[b,g]=i?Kt(i):Jt,[w,k]=l?Kt(l):Jt,$=[],S=new Set,E=d?void 0:u;for(let e=0;e<p;e++){const r=m[e];S.add(r);const t=s($,r,n[r],b,a[r],w,E);void 0!==t&&(h[r]=t)}const j=Object.keys(a),x=j.length,O=f?void 0:o;for(let e=0;e<x;e++){const r=j[e];if(S.has(r))continue;const t=s($,r,a[r],w,void 0,b,O);void 0!==t&&(h[r]=t)}Wt(t,"properties",h);let A={};const C=new Set;return g.length>0&&k.length>0&&Bt(g,k,((t,n)=>{r(t,n)&&C.add(t),r(n,t)&&C.add(n),A[e(t,n)]=v(i[t],l[n])})),A=c(A,i,g,C,u,d),A=c(A,l,k,C,o,f),Wt(t,"patternProperties",A),t}],[Yt,(e,r,t)=>{if(!kt(r))return kt(t)?rn(e,t):(delete e.items,delete e.additionalItems,e);if(!kt(t))return rn(e,r);const{items:n,additionalItems:i}=r,{items:o,additionalItems:a}=t,l=Array.isArray(n),u=Array.isArray(o),s=[];if(e.items=s,l&&u){const[r,t,l]=n.length<o.length?[n.length,i,o]:[o.length,a,n];let u=0;for(;u<r;u++)s.push(v(n[u],o[u]));if(!1===t)e.additionalItems=!1;else{const r=void 0===t||wt(t);for(;u<l.length;u++)s.push(r?l[u]:v(l[u],t));Wt(e,"additionalItems",void 0!==i&&void 0!==a?v(i,a):i??a)}}else if(l||u){const[r,t,u]=l?[n,o,i]:[o,n,a];Wt(e,"additionalItems",u&&v(u,t));for(let e=0;e<r.length;e++)s.push(v(r[e],t))}else delete e.additionalItems,e.items=v(n,o);return e}],[Xt,(e,r,t)=>{en(e,r);const n=en({},t);return e.allOf=void 0===e.allOf?[n]:e.allOf.concat(n),e}],[Qt,(e,r,t)=>{const i=r.contains,o=t.contains;if(i===o)return e;if(!1===i||!1===o)return e.contains=!1,e;if(wt(i))return e.contains=o,e;if(wt(o))return e.contains=i,e;if(1===n([i,o]).length)return e;const a={contains:o};return e.allOf=void 0===e.allOf?[a]:n(e.allOf.concat(a)),e}],...o]),h=new Map;for(const[e,r]of d){const t=h.get(r);void 0===t?h.set(r,[e]):t.push(e)}function m(e,r){const t=h.get(r);for(let r=0;r<t.length;r++)if(void 0!==e[t[r]])return!0;return!1}const p=function(e){const r=new Map;for(const[t,n,i]of e){const e=e=>{if(!i(e))throw new Error(`Schema keys '${t}' and '${n}' are conflicting (${t}: ${JSON.stringify(e[t])}, ${n}: ${JSON.stringify(e[n])})`)};for(const i of[[t,n],[n,t]]){let t=r.get(i[0]);void 0===t&&(t=[],r.set(i[0],t)),t.push({oppositeKey:i[1],check:e})}}return r}(a);function v(e,r){if(!1===e||!1===r)return!1;if(wt(e))return!!wt(r)||r;if(wt(r))return e;let t={...e};const n=new Set,o=new Set,a=Reflect.ownKeys(r),l=a.length;for(let u=0;u<l;u++){const l=a[u],s=r[l];if(void 0===s)continue;const c=p.get(l);if(void 0!==c){const r=c.length;for(let t=0;t<r;t++){const r=c[t];void 0!==e[r.oppositeKey]&&o.add(r.check)}}const f=d.get(l);if(void 0!==f&&m(e,f)){n.add(f);continue}const h=e[l];void 0!==h?t[l]=(b[l]??i)(h,s):t[l]=s}for(const i of n)t=i(t,e,r);for(const e of o)e(t);return t}const y=Ht(v),b={$id:i,$ref:i,$schema:i,$comment:i,$defs:y,definitions:y,type:(e,r)=>{if(e===r)return e;const t=Array.isArray(e),n=Array.isArray(r);if(t||n){if(t||n){const i=new Set;if(t&&n)Bt(e,r,((e,r)=>{const t=tn(e,r);void 0!==t&&i.add(t)}));else{const n=t?e:r,o=t?r:e,a=n.length;for(let e=0;e<a;e++){const r=tn(o,n[e]);void 0!==r&&i.add(r)}}const o=i.size;if(1===o)return i.values().next().value;if(o>1)return Array.from(i)}}else{const t=tn(e,r);if(void 0!==t)return t}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${e.toString()}, ${r.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(e,r)=>{const t=n([e,r]);return 1===t.length?t[0]:{anyOf:t}},pattern:e,readOnly:Vt,writeOnly:Vt,enum:(e,r)=>{const n=t(e,r);if(0===n.length)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(e)}", "${JSON.stringify(r)}"`);return n},anyOf:f,oneOf:f,allOf:(e,r)=>n(e.concat(r)),propertyNames:v,dependencies:Ht(((e,r)=>Array.isArray(e)?Array.isArray(r)?St(e,r):v(r,{required:e}):Array.isArray(r)?v(e,{required:r}):v(e,r))),examples:(e,r)=>{if(!Array.isArray(e)||!Array.isArray(r))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(e)}" and "${JSON.stringify(r)}"`);return St(e,r)},multipleOf:(e,r)=>{let t=1;for(;!Number.isInteger(e)||!Number.isInteger(r);)t*=10,e*=10,r*=10;return((e,r)=>Math.abs(e*r)/Ut(e,r))(e,r)/t},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:Vt,required:St,...l};return{mergeSchemaDefinitions:v,mergeArrayOfSchemaDefinitions:u}}({intersectJson:(sn=ln,(e,r)=>{const t=[];let n=e.length,i=r.length;if(0===n||0===i)return t;if(n>i){const t=e;e=r,r=t;const o=n;n=i,i=o}const o=[...e].sort(sn),a=[...r].sort(sn);let l=0,u=0;for(;l<n&&u<i;){const e=sn(o[l],a[u]);0===e?(0!==t.length&&0===sn(t[t.length-1],o[l])||t.push(o[l]),l++,u++):e<0?l++:u++}return t}),deduplicateJsonSchemaDef:Ot(an)});var sn,cn=function(e){return r=>e(function(e){const r=[],t=[e];for(;t.length>0;){const e=t.pop();if("boolean"==typeof e||void 0===e.allOf){r.push(e);continue}const{allOf:n,...i}=e;r.push(i);for(let e=n.length-1;e>=0;e--)t.push(n[e])}return r}(r))}(un);function fn(e,r,t={},n,i,o=!1){return yn(e,r,t,n,void 0,void 0,i,o)[0]}function dn(e){return"boolean"!=typeof e?e:e?{}:{not:{}}}function hn(e){return e.reduce(((e,r)=>r.length>1?r.flatMap((r=>e.map((e=>[...e,r])))):(e.forEach((e=>e.push(r[0]))),e)),[[]])}function mn(e,r){return Object.fromEntries(Object.entries(e.patternProperties??{}).filter((([e])=>RegExp(e).test(r))))}function pn(e,r,t,n,i,o,a,l,u=!1){const s=vn(r,t,i,void 0,l);return s!==r?yn(e,s,t,o,n,i,a,l,u):[r]}function vn(e,r,t,n,i,o=!1){if(!Ee(e))return e;let a=e,l=n;if(He in a){const{$ref:e,...n}=a;if(t.includes(e))return o?{...a,[Ge]:!0}:a;t.push(e),a={...rt(e,r,l),...n,[We]:e},qe in a&&(l=a[qe])}if(Ue in a){const e=[],n={};for(const[o,u]of Object.entries(a[Ue]??{})){const a=[...t];n[o]=vn(u,r,a,l,i,!i),e.push(a)}for(const r of new Set(e.flat()))t.includes(r)||t.push(r);a={...a,[Ue]:n}}if(Te in a&&!Array.isArray(a.items)&&"boolean"!=typeof a.items&&(a={...a,items:vn(a.items,r,t,l,i)}),i){let n,o;_e in e&&Array.isArray(e[_e])?(n=_e,o=a[_e]):Me in e&&Array.isArray(e[Me])&&(n=Me,o=a[Me]),n&&o&&(a={...a,[n]:o.map((e=>vn(e,r,t,l,i)))})}return Tr(e,a)?e:a}function yn(e,r,t,n,i=!1,o=[],a,l,u=!1){if(!Ee(r))return[{}];const s=function(e,r,t,n,i,o,a,l,u=!1){const s=pn(e,r,t,n,i,o,a,l,u);return s.length>1||s[0]!==r?s:Pe in r&&!u?gn(e,r,t,n,i,o,a).flatMap((r=>yn(e,r,t,o,n,i,a))):Ce in r&&Array.isArray(r[Ce])?hn(r.allOf.map((r=>yn(e,r,t,o,n,i,a,void 0,u)))).map((e=>({...r,allOf:e}))):[r]}(e,r,t,i,o,n,a,l,u);return s.flatMap((r=>{let l=r;if(Ne in l)return function(e,r,t,n,i,o,a,l=!1){const{if:u,then:s,else:c,...f}=r,d=e.isValid(u,o||{},t);let h=[f],m=[];if(n)s&&"boolean"!=typeof s&&(m=m.concat(yn(e,s,t,o,n,i,a,void 0,l))),c&&"boolean"!=typeof c&&(m=m.concat(yn(e,c,t,o,n,i,a,void 0,l)));else{const r=d?s:c;if(void 0!==r){const u=dn(r);m=m.concat(yn(e,u,t,o,n,i,a,void 0,l))}}return m.length&&(h=m.map((e=>ht(f,e)))),h.flatMap((r=>yn(e,r,t,o,n,i,a,void 0,l)))}(e,l,t,i,o,n,a,u);if(Ce in l){if(i){const{allOf:e,...r}=l;return[...e,r]}try{l=a?a(l):function(e){return cn(e)}(l)}catch(e){console.warn("could not merge subschemas in allOf:\n",e);const{allOf:r,...t}=l;return t}}return Ue in l&&ze in l&&(l=Object.keys(l.properties).reduce(((r,i)=>{const o=mn(r,i);return Object.keys(o).length>0&&([r.properties[i]]=yn(e,{allOf:[r.properties[i],...Object.values(o)]},t,lt(n,i),void 0,void 0,a,void 0,u)),r}),{...l,properties:{...l.properties}})),ze in l||Ae in l&&!1!==l.additionalProperties?function(e,r,t,n,i){const o={...r,properties:{...r.properties}},a=n&&Ee(n)?n:{};return Object.keys(a).forEach((r=>{if(!(r in o.properties)){if(ze in o){const n=mn(o,r);if(Object.keys(n).length>0)return o.properties[r]=fn(e,{[Ce]:Object.values(n)},t,a[r],i),void(o.properties[r][Oe]=!0)}if(Ae in o&&!1!==o.additionalProperties){let n;n="boolean"!=typeof o.additionalProperties?He in o.additionalProperties?fn(e,{[He]:o.additionalProperties[He]},t,a[r],i):"type"in o.additionalProperties?{...o.additionalProperties}:_e in o.additionalProperties||Me in o.additionalProperties?{type:"object",...o.additionalProperties}:{type:ft(a[r])}:{type:ft(a[r])},o.properties[r]=n,o.properties[r][Oe]=!0}else o.properties[r]={type:"null"},o.properties[r][Oe]=!0}})),o}(e,l,t,n,a):l}))}function bn(e,r=!1,t){return e.map((e=>{if(!Ee(e))return dn(e);const n=r&&t?vn(e,t,[]):e;return!1===n.additionalProperties?{...n,additionalProperties:!0}:n}))}function gn(e,r,t,n,i,o,a){const{dependencies:l,...u}=r,s=function(e,r,t,n,i){let o;const{oneOf:a,anyOf:l,...u}=r;if(Array.isArray(a)?o=a:Array.isArray(l)&&(o=l),o){const a=void 0===i&&n?{}:i,l=ct(r);o=o.map((e=>vn(e,t,[])));const s=vt(e,a,o,t,l);return n?(vt(e,a,bn(o,!1,t),t,l),o.map((e=>ht(u,e)))):[ht(u,o[s])]}return[r]}(e,u,t,n,o);return s.flatMap((r=>wn(e,l,r,t,n,i,o,a)))}function wn(e,r,t,n,i,o,a,l){let u=[t];for(const s in r)if((i||void 0!==lt(a,s))&&(!t.properties||s in t.properties)){const[c,f]=Qr(s,r);return Array.isArray(f)?u[0]=kn(t,f):Ee(f)&&(u=$n(e,t,n,s,f,i,o,a,l)),u.flatMap((r=>wn(e,c,r,n,i,o,a,l)))}return u}function kn(e,r){if(!r)return e;const t=Array.isArray(e.required)?Array.from(new Set([...e.required,...r])):r;return{...e,required:t}}function $n(e,r,t,n,i,o,a,l,u){return yn(e,i,t,l,o,a,u).flatMap((i=>{const{oneOf:s,...c}=i,f=ht(r,c);if(void 0===s)return f;const d=s.map((r=>"boolean"!=typeof r&&He in r?pn(e,r,t,o,a,l):[r]));return hn(d).flatMap((r=>function(e,r,t,n,i,o,a,l,u){const s=i.filter((r=>{if("boolean"==typeof r||!r?.properties)return!1;const{[n]:i}=r.properties;return!!i&&(e.isValid({type:"object",properties:{[n]:i}},l,t)||o)}));return o||1===s.length?s.flatMap((i=>{const s=i,[c]=Qr(n,s.properties),f={...s,properties:c};return yn(e,f,t,l,o,a,u).map((e=>ht(r,e)))})):(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[r])}(e,f,t,n,r,o,a,l,u)))}))}function Sn(e,r,t,n,i,o={},a){if(Array.isArray(t[i])){const l=ct(t)||n,u=t[i].map((t=>fn(e,t,r,o,a))),s=lt(o,l);if(void 0!==s)return u.find((e=>Tr(lt(e,[Ue,l,De],lt(e,[Ue,l,Ie])),s)))}}function En(e,r,t,n,i){let o=t;if(st(t,He)&&(o=fn(e,t,r,void 0,i)),0===n.length)return o;const a=Array.isArray(n)?[...n]:nt(n),[l,...u]=a;return void 0!==l&&""!==l&&st(o,l)?(o=lt(o,l),En(e,r,o,u,i)):void 0}function jn(e,r,t,n,i,o){const a=En(e,r,t,n,o);return void 0===a?i:a}const xn={title:"!@#$_UNKNOWN_$#@!"},On={type:"object",$id:"_$junk_option_schema_id$_",properties:{__not_really_there__:{type:"number"}}};function An(e,r,t,n,i){let o=0;return t&&(Ee(t.properties)?o+=Object.entries(t.properties).reduce(((t,[o,a])=>{const l=n?.[o];if("boolean"==typeof a)return t;if(st(a,He)){const n=fn(e,a,r,l,i);return t+An(e,r,n,l||{},i)}if((st(a,Me)||st(a,_e))&&l){const n=st(a,Me)?Me:_e,o=ct(a);return t+Cn(e,r,l,lt(a,n),-1,o,i)}if("object"===a.type)return t+("object"==typeof l&&null!==l?1:0)+An(e,r,a,l,i);if(a.type===ft(l)){let e=t+1;return a.default?e+=l===a.default?1:-1:a.const&&(e+=l===a.const?1:-1),e}return t}),0):"string"==typeof t.type&&t.type===ft(n)&&(o+=1)),o}function Cn(e,r,t,n,i=-1,o,a){const l=n.map((e=>vn(e,r,[]))),u=pt(t,n,o);if("number"==typeof u)return u;const s=l.reduce(((n,i,a)=>(1===vt(e,t,[On,i],r,o)&&n.push(a),n)),[]);if(1===s.length)return s[0];s.length||s.push(...l.keys());const c=new Set,{bestIndex:f}=s.reduce(((n,i)=>{const{bestScore:o}=n,u=An(e,r,l[i],t,a);return c.add(u),u>o?{bestIndex:i,bestScore:u}:n}),{bestIndex:i,bestScore:0});return 1===c.size&&i>=0?i:f}function _n(e){const r=e[Ie],t=dt(e);return Ee(r)&&"string"==typeof r?.$data&&"object"!==t&&"array"!==t}function In(e){return Array.isArray(e.enum)&&1===e.enum.length||Ie in e}function Dn(e){return Array.isArray(e.items)&&e.items.every((e=>Ee(e)))}function Pn(e,r,t=!1,n=!1,i=!1){if(Array.isArray(r)){const o=Array.isArray(e)?e:[],a=i?r:o,l=(i?o:r).map(((e,l)=>void 0!==a[l]?Pn(o[l],r[l],t,n,i):e));return(t||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(Ee(r)){const o=Object.assign({},e),a=r,l=Ee(e)?e:void 0;return Object.keys(a).reduce(((e,r)=>{const u=a[r],s=void 0!==l&&r in l,c=r in a,f=l?.[r]??{},d=s&&Ee(f)&&Object.values(f).some((e=>Ee(e)||Array.isArray(e))),h=s&&Ee(l?.[r]),m=c&&Ee(u);return h&&m&&!d?(e[r]={...l?.[r],...u},e):(e[r]=Pn(l?.[r],u,t,n,i&&(s||!c)),o)}),o)}return n&&(void 0!==e&&null==r||"number"==typeof r&&Number.isNaN(r))||i&&null!=r?e:r}function Fn(e,r,t=!1){return Object.keys(r).reduce(((n,i)=>{const o=e?e[i]:{},a=r[i];if(e&&i in e&&Ee(a))n[i]=Fn(o,a,t);else if(t&&Array.isArray(o)&&Array.isArray(a)){let e=a;"preventDuplicates"===t&&(e=a.reduce(((e,r)=>(o.includes(r)||e.push(r),e)),[])),n[i]=o.concat(e)}else n[i]=a;return n}),{...e})}function qn(e,r){if(e.enum){let t,n;if(r){const{enumNames:e,enumOrder:i}=ar(r);t=e,n=i}let i=e.enum.map(((e,r)=>({label:Array.isArray(t)?t[r]||String(e):t?.[String(e)]||String(e),value:e})));return n&&(i=function(e,r){const t=new Map(e.map((e=>[String(e.value),e]))),n=new Set(r.filter((e=>"*"!==e)).map(String)),i=e.filter((e=>!n.has(String(e.value))));return r.flatMap((e=>{if("*"===e)return i;const r=t.get(String(e));return r?[r]:[]}))}(i,n)),i}let t,n;e.anyOf?(t=e.anyOf,n=r?.anyOf):e.oneOf&&(t=e.oneOf,n=r?.oneOf);let i=ct(e);if(r){const{optionsSchemaSelector:e=i}=ar(r);i=e}return t?.map(((e,r)=>{const{title:t}=ar(n?.[r]),o=e;let a,l=t;if(i){const e=mt(o,i);a=lt(e,De,lt(e,Ie)),l=l??e?.title??o.title??String(a)}else a=function(e){if("enum"in e&&Array.isArray(e.enum)&&1===e.enum.length)return e.enum[0];if(Ie in e)return e.const;throw new Error("schema cannot be inferred as a constant")}(o),l=l??o.title??String(a);return{schema:o,label:l,value:a}}))}function Nn(e,r,t={},n){const i=fn(e,r,t,void 0,n),o=i.oneOf||i.anyOf;return!!Array.isArray(i.enum)||!!Array.isArray(o)&&o.every((e=>"boolean"!=typeof e&&In(e)))}function Tn(e,r,t,n){return!(!r.uniqueItems||!r.items||"boolean"==typeof r.items)&&Nn(e,r.items,t,n)}const Rn=["string","number","integer","boolean","null"];var Mn;function zn(e,r){return Boolean("populateDefaults"===r?.allOf&&Ce in e)}function Un(e,r=Mn.Ignore,t=-1){if(t>=0){if(Array.isArray(e.items)&&t<e.items.length){const r=e.items[t];if("boolean"!=typeof r)return r}}else if(e.items&&!Array.isArray(e.items)&&"boolean"!=typeof e.items)return e.items;return r!==Mn.Ignore&&Ee(e.additionalItems)?e.additionalItems:{}}function Ln(e){return void 0===e||Ee(e)&&0===Object.keys(e).length}function Bn(e,r){const{default:t,type:n}=e;var i;return Array.isArray(n)&&n.includes("null")&&!("string"==typeof(i=r)||Array.isArray(i)?i.length>0:"object"==typeof i&&null!==i&&Object.keys(i).length>0)&&null===t?null:r}function Vn(e,r,t,n,i,o=[],a={},l=!1,u=!1){const{emptyObjectFields:s="populateAllDefaults"}=a;if(!0===n||l)e[r]=t;else if("excludeObjectChildren"===n)(u&&void 0!==t||!Ee(t)||Object.keys(t).length>0)&&(e[r]=t);else if("skipDefaults"!==s){const n=void 0===i?o.includes(r):i;Ee(t)?"skipEmptyDefaults"===s?Object.keys(t).length>0&&(e[r]=t):(Object.keys(t).length>0||o.includes(r))&&(n||"populateRequiredDefaults"!==s)&&(e[r]=t):void 0!==t&&("populateAllDefaults"===s||"skipEmptyDefaults"===s||n&&o.includes(r))&&(e[r]=t)}}function Hn(e,r,t={}){const{parentDefaults:n,rawFormData:i,rootSchema:o={},includeUndefinedValues:a=!1,_recurseList:l=[],experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:s,required:c,shouldMergeDefaultsIntoFormData:f=!1,initialDefaultsGenerated:d}=t;let h=Ee(i)?i:{};const m=Ee(r)?r:{};let p=n;const v=p&&"ancestorWins"===u?.nestedDefaultsPrecedence;let y=null,b=u,g=l;if(void 0===m[Ie]||"never"===u?.constAsDefaults||_n(m))if(!Ee(p)||!Ee(m.default)||m[_e]||m[Me]||m[He])if(!(De in m)||v||m[_e]||m[Me]||m[He])if(He in m){const e=m[He];l.includes(e)||(g=l.concat(e),y=rt(e,o)),y&&!p&&Ln(i)&&(p=m.default),f&&y&&!Ee(i)&&(h=i)}else if(Pe in m){const r={...Gn(e,m,t,p),...h},n=gn(e,m,o,!1,[],r,s);[y]=n}else if(Dn(m)&&!v)p=m.items.map(((r,t)=>Hn(e,r,{rootSchema:o,includeUndefinedValues:a,_recurseList:l,experimental_defaultFormStateBehavior:u,experimental_customMergeAllOf:s,parentDefaults:Array.isArray(n)?n[t]:void 0,rawFormData:h,required:c,shouldMergeDefaultsIntoFormData:f})));else if(Me in m){const{oneOf:r,...t}=m;if(0===r.length)return;const n=ct(m),{type:a="null"}=t;!Array.isArray(a)&&Rn.includes(a)&&"skipOneOf"===b?.constAsDefaults&&(b={...b,constAsDefaults:"never"}),y=r[Cn(e,o,i??m.default,r,0,n,s)],y=ht(t,y)}else if(_e in m){const{anyOf:r,...t}=m;if(0===r.length)return;const n=ct(m);y=r[Cn(e,o,i??m.default,r,0,n,s)],y=ht(t,y)}else zn(m,u)&&"object"!==dt(m)&&(y=fn(e,m,o,i,s));else p=m.default;else p=v?Fn(m.default,p):Fn(p,m.default);else p=m[Ie];if(y)return Hn(e,y,{rootSchema:o,includeUndefinedValues:a,_recurseList:g,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:s,parentDefaults:p,rawFormData:i??h,required:c,shouldMergeDefaultsIntoFormData:f,initialDefaultsGenerated:d});void 0===p&&(p=m.default);let w=Gn(e,m,t,p)??p;if(f){const{arrayMinItems:r={}}=u||{},{mergeExtraDefaults:t}=r,n=Wn(e,m,o,i,u,s);Ee(i)&&!(Ce in m)||(w=Pn(w,n,t,!0))}return w}function Wn(e,r,t,n,i,o){const a=zn(r,i),l=a?fn(e,r,t,n,o):r,u=!In(l)&&Nn(e,l,t,o);let s=n;if(u){const e=qn(l),r=e?.some((e=>Tr(e.value,n)));s=r?n:void 0}return l[Ie]&&"always"===i?.constAsDefaults?s=l.const:Ee(s)&&Ee(l.properties)&&(s=Object.keys(l.properties).reduce(((r,n)=>{const u=mt(l,n);return n in r&&(a||Ee(u)&&Ce in u)&&(r[n]=Wn(e,u,t,r[n],i,o)),r}),{...s})),s}function Gn(e,r,t={},n){switch(dt(r)){case"object":return function(e,r,{rawFormData:t,rootSchema:n={},includeUndefinedValues:i=!1,_recurseList:o=[],experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,required:u,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}={},f){{const d=Ee(t)?t:{},h=r,m=zn(h,a)||"skipEmptyDefaults"!==a?.emptyObjectFields&&Ne in h?fn(e,h,n,d,l):h,p=m[Ie],v=Object.keys(m.properties||{}).reduce(((r,t)=>{const h=mt(m,t),v=Ee(p)&&void 0!==p[t],y=(Ee(h)&&Ie in h||v)&&"never"!==a?.constAsDefaults&&!_n(h);return Vn(r,t,Hn(e,h,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===i,parentDefaults:lt(f,t),rawFormData:lt(d,t),required:m.required?.includes(t),shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}),i,u,m.required,a,y,"null"===h?.type),r}),{});if(m.additionalProperties&&!c){const r=Ee(m.additionalProperties)?m.additionalProperties:{},t=new Set,h=[];Object.keys(d).filter((e=>!m.properties||!m.properties[e])).forEach((e=>{t.add(e),h.push(e)})),Ee(f)&&0===h.length&&Object.keys(f).filter((e=>!m.properties||!m.properties[e])).forEach((e=>t.add(e))),t.forEach((t=>{const p=Hn(e,r,{rootSchema:n,_recurseList:o,experimental_defaultFormStateBehavior:a,experimental_customMergeAllOf:l,includeUndefinedValues:!0===i,parentDefaults:lt(f,t),rawFormData:lt(d,t),required:m.required?.includes(t),shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c});Vn(v,t,p,i,u,h)}))}return Bn(r,v)}}(e,r,t,n);case"array":return function(e,r,{rawFormData:t,rootSchema:n={},_recurseList:i=[],experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,required:l,requiredAsRoot:u=!1,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c}={},f){let d=f;const h=r,m=o?.arrayMinItems??{},{populate:p,mergeExtraDefaults:v}=m,y="never"===p,b="requiredOnly"===p,g="all"===p||!y&&!b,w=m?.computeSkipPopulate??(()=>!1),k="skipEmptyDefaults"===o?.emptyObjectFields?void 0:[];if(Array.isArray(d)&&(d=d.map(((r,u)=>{const f=Un(h,Mn.Fallback,u),d=Array.isArray(t)?t[u]:void 0;return Hn(e,f,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,parentDefaults:r,rawFormData:d,required:l,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c})}))),Array.isArray(t)){const r=Un(h);if(y)d=t;else{const u=t.map(((t,u)=>Hn(e,r,{rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,rawFormData:t,parentDefaults:lt(d,u),required:l,shouldMergeDefaultsIntoFormData:s,initialDefaultsGenerated:c})));d=Pn(d,u,(b&&l||g)&&v)}}const $=Array.isArray(d)?d.length:0;if(y)return s&&!l?d:d??k;if(b&&!l)return d||void 0;let S;if(!h.minItems||Tn(e,h,n,a)||w(e,h,n)||h.minItems<=$)S=d||!l&&!u?d:k;else{const r=d||[],t=Un(h,Mn.Invert),u=t.default,c=Array.from({length:h.minItems-$},(()=>Hn(e,t,{parentDefaults:u,rootSchema:n,_recurseList:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,required:l,shouldMergeDefaultsIntoFormData:s})));S=r.concat(c)}return Bn(r,S)}(e,r,t,n);case"boolean":{const e=t.experimental_defaultFormStateBehavior?.requiredBooleanDefault;return("skip"===e||!t.required||void 0!==n)&&void 0}default:return}}function Kn(e,r,t,n,i=!1,o,a,l){if(!Ee(r))throw new Error(`Invalid schema: ${r}`);const u=Ln(t),[s]=yn(e,r,n??{},t,void 0,void 0,a,void 0,u),c=Hn(e,s,{rootSchema:n??(u?r:void 0),includeUndefinedValues:i,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,rawFormData:t,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:l,requiredAsRoot:!0});if("object"!==s.type&&Ee(s.default))return{...c,...t};if(Ee(t)||Array.isArray(t)){const{mergeDefaultsIntoFormData:r}=o||{},i="useDefaultIfFormDataUndefined"===r;return Pn(c,Wn(e,s,n??s,t,o,a),!0,i,!0)}return c}function Jn(e={}){return"widget"in ar(e)&&"hidden"!==ar(e).widget}function Zn(e,r,t={},n,i){if("files"===t[tr])return!0;if(r.items){const t=fn(e,r.items,n,void 0,i);return"string"===t.type&&"data-url"===t.format}return!1}function Yn(e){return null==e||""===e||(Array.isArray(e)?0===e.length:!!Ee(e)&&Object.values(e).every(Yn))}!function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"}(Mn||(Mn={}));const Xn=Symbol("no Value");function Qn(e){if(Array.isArray(e.enum))return e.enum;const r=e.oneOf||e.anyOf;if(!Array.isArray(r))return;const t=r.map((e=>Ie in e?e[Ie]:Array.isArray(e.enum)&&1===e.enum.length?e.enum[0]:Xn)).filter((e=>e!==Xn));return t.length>0?t:void 0}function ei(e,r,t,n,i={},o){let a;const l=t?.[Ue];if(l){const u={},s=n?.[Ue];s&&Object.keys(s).forEach((e=>{st(i,e)&&(u[e]=void 0)}));const c=Object.keys(l),f={};c.forEach((a=>{const l=i?.[a],s=!st(n,[Ue,a]),c=mt(n,a),d=mt(t,a),h=fn(e,c,r,l,o),m=Tr(c,d)?h:fn(e,d,r,l,o),p=h.type,v=m.type;if(!p||p===v)if(a in u&&delete u[a],"object"===v||"array"===v&&Array.isArray(l)){const t=ei(e,r,m,s&&"array"===v?m:h,l,o);void 0===t&&"array"!==v||(f[a]=t)}else{const e=lt(m,De,Xn),r=lt(h,De,Xn);e!==Xn&&e!==l&&(s&&void 0===l||r===l?u[a]=e:!0===m.readOnly&&(u[a]=void 0));const t=lt(m,Ie,Xn),n=lt(h,Ie,Xn);if(t!==Xn&&t!==l&&(u[a]=n===l?t:void 0),st(i,a)){const e=function(e,r){const t=Qn(e);if(!t||t.some((e=>Tr(e,r))))return Xn;const n=lt(e,De,Xn);return n!==Xn&&t.some((e=>Tr(e,n)))?n:1===t.length?t[0]:void 0}(m,l);e!==Xn&&(u[a]=e)}}})),a={..."string"==typeof i||Array.isArray(i)?void 0:i,...u,...f}}else if("array"===n?.type&&"array"===t?.type&&Array.isArray(i)){let l=n.items,u=t.items;if("object"!=typeof l||"object"!=typeof u||Array.isArray(l)||Array.isArray(u))"boolean"==typeof l&&"boolean"==typeof u&&l===u&&(a=i);else{const n=l,s=u;l=fn(e,n,r,i,o),u=Tr(n,s)?l:fn(e,s,r,i,o);const c=lt(l,"type"),f=lt(u,"type");if(!c||c===f){const l=t.maxItems??-1;if("object"===f)a=i.reduce(((t,i)=>{const a=fn(e,n,r,i,o),u=Tr(n,s)?a:fn(e,s,r,i,o),c=ei(e,r,u,a,i,o);return void 0!==c&&(l<0||t.length<l)&&t.push(c),t}),[]);else{const e=Qn(u),r=e?i.filter((r=>e.some((e=>Tr(e,r))))):i;a=l>0&&r.length>l?r.slice(0,l):r}}}}return a}function ri(e,r,t,n,i,o=[],a){if(He in r||Pe in r||Ce in r||Ne in r){const l=fn(e,r,n,i,a);if(-1===o.findIndex((e=>Tr(e,l))))return ri(e,l,t,n,i,o.concat(l),a)}let l={[Re]:t.replace(/^\./,"")};if(Me in r||_e in r){const u=Me in r?r.oneOf:r.anyOf,s=ct(r),c=u[Cn(e,n,i,u,0,s,a)];l={...l,...ri(e,c,t,n,i,o,a)}}if(Ae in r&&!1!==r[Ae]){ut(l,er,!0);const u=Ee(r[Ae])?r[Ae]:{},s=r[Ue]??{};for(const r of Object.keys(i??{}))r in s||(l[r]=ri(e,u,`${t}.${r}`,n,lt(i,r),o,a))}if(Te in r&&Array.isArray(i)){const{items:u,additionalItems:s}=r;Array.isArray(u)?i.forEach(((r,i)=>{u[i]?l[i]=ri(e,u[i],`${t}.${i}`,n,r,o,a):s?l[i]=ri(e,s,`${t}.${i}`,n,r,o,a):console.warn(`Unable to generate path schema for "${t}.${i}". No schema defined for it`)})):i.forEach(((r,i)=>{l[i]=ri(e,u,`${t}.${i}`,n,r,o,a)}))}else if(Ue in r)for(const u in r.properties){const s=mt(r,u);l[u]=ri(e,s,`${t}.${u}`,n,lt(i,u),o,a)}return l}function ti(e,r,t="",n,i,o){return ri(e,r,t,n,i,void 0,o)}class ni{rootSchema;validator;experimental_defaultFormStateBehavior;experimental_customMergeAllOf;constructor(e,r,t,n){this.rootSchema=r?.[Ke]===or?Xr(r,r[qe]??"#"):r,this.validator=e,this.experimental_defaultFormStateBehavior=t,this.experimental_customMergeAllOf=n}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(e,r,t={},n){return!(!e||!r||this.validator===e&&Tr(this.rootSchema,r)&&Tr(this.experimental_defaultFormStateBehavior,t)&&this.experimental_customMergeAllOf===n)}findFieldInSchema(e,r,t){return function(e,r,t,n,i={},o){const a=Array.isArray(n)?[...n]:n.split(".");let l=t;const u=a.pop(),s=String(u);a.length&&a.forEach((t=>{l=jn(e,r,l,[Ue,t],{},o),st(l,Me)?l=Sn(e,r,l,s,Me,lt(i,t),o):st(l,_e)&&(l=Sn(e,r,l,s,_e,lt(i,t),o))})),st(l,Me)?l=Sn(e,r,l,s,Me,i,o):st(l,_e)&&(l=Sn(e,r,l,s,_e,i,o));let c=jn(e,r,l,[Ue,u],xn,o);c===xn&&(c=void 0);const f=jn(e,r,l,Be,[],o);let d;return c&&Array.isArray(f)&&(d=f.includes(s)),{field:c,isRequired:d}}(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(e,r,t,n){return Sn(this.validator,this.rootSchema,e,r,t,n,this.experimental_customMergeAllOf)}getDefaultFormState(e,r,t=!1,n){return Kn(this.validator,e,r,this.rootSchema,t,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,n)}getDisplayLabel(e,r,t){return function(e,r,t={},n,i,o){const a=ar(t,i),{label:l=!0}=a;let u=Boolean(l);if(u){const i=dt(r),a=Boolean(r[Oe]);"array"===i&&(u=a||Tn(e,r,n,o)||Zn(e,r,t,n,o)||Jn(t)),"object"===i&&(u=a),"boolean"===i&&t&&!t[tr]&&(u=!1),t?.["ui:field"]&&(u=!1)}return u}(this.validator,e,r,this.rootSchema,t,this.experimental_customMergeAllOf)}getClosestMatchingOption(e,r,t,n){return Cn(this.validator,this.rootSchema,e,r,t,n,this.experimental_customMergeAllOf)}getFirstMatchingOption(e,r,t){return vt(this.validator,e,r,this.rootSchema,t)}getFromSchema(e,r,t){return jn(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}isFilesArray(e,r){return Zn(this.validator,e,r,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(e){return Tn(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(e){return Nn(this.validator,e,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(e,r){return function(e,r,t={},n,i){function o(e){return Ee(e)}function a(e){return Ee(e)}function l(r,n,o,a){if(!Array.isArray(r)||Nn(e,n,t,i))return a;const l=bn(r,!0,t),s=Cn(e,t,o,l,0,ct(n),i),c=r[s];return u(Ee(c)?vn(c,t,[]):l[s],o,a,!1)}function u(r,n,s,c=!0){if(void 0===n||!1===r)return;if(!0===r||!r||0===Object.keys(r).length)return s??(c?n:void 0);let f=r;const{$ref:d,allOf:h}=f;if(void 0!==d)return u(rt(d,t),n,s,c);if(h){f=function(e,r){return r?r(e):cn(e)}(f,i);const e=f.allOf;if(e)for(let r=0;r<e.length;r++)s=u(e[r],n,s,!1)}let m=function(e,r,t){const{anyOf:n}=e;if(!Array.isArray(n))return t;if(void 0===r||Array.isArray(r)&&0===r.length||Ee(r)&&0===Object.keys(r).length){let e=t;for(const t of n)e=u(t,r,e,!1);return e}return l(n,e,r,t)}(f,n,l(f.oneOf,f,n,s));const p=dt(f);if("object"===p){if(!o(n))return;m=function(e,r,n){const{properties:i,additionalProperties:o,patternProperties:l}=e,s=new Set(e.required??[]);function c(e,r,i,o=!1){const l=u(r,i,n[e]);if(!o&&Ee(l)){let e=a(r)?r:{};void 0!==e.$ref&&(e=rt(e.$ref,t));const n=new Set(e.required??[]);if(Object.entries(l).every((([e,r])=>!n.has(e)&&Yn(r))))return}void 0!==l&&(n[e]=l)}if(void 0!==i)for(const[e,t]of Object.entries(i))c(e,t,r[e],s.has(e));let f;if(void 0!==l){f=[];const e=Object.entries(l).map((([e,r])=>[new RegExp(e),r])),t=new Set(Object.keys(i??{}));for(const[n,i]of Object.entries(r))if(!t.has(n)){const r=e.find((([e])=>e.test(n)));void 0===r?f.push(n):c(n,r[1],i)}}if(void 0!==o&&!1!==o){const e=o;if(void 0!==f)for(const t of f)c(t,e,r[t]);else{const t=new Set(Object.keys(i??{}));for(const[n,i]of Object.entries(r))t.has(n)||c(n,e,i)}}return n}(f,n,o(m)?m:{})}else if("array"===p){if(!Array.isArray(n))return;void 0!==f.items&&(m=function(e,r,t){const{items:n,additionalItems:i}=e;if(Array.isArray(n)){const e=Math.min(n.length,r.length);let o=0;for(;o<e;o+=1)t[o]=u(n[o],r[o]);if(!i)return t.length=e,t;for(;o<r.length;o+=1)t[o]=u(i,r[o])}else for(let e=0;e<r.length;e+=1)t[e]=u(n,r[e]);return t.length=r.length,t}(f,n,Array.isArray(m)?m:[]))}const v=function(r,n,i){const{if:o,then:l,else:s}=r;if(void 0===o)return i;const c=(a(o)?e.isValid(o,n,t):o)?l:s;return void 0===c?i:u(c,n,i,!1)}(f,n,m);if(!1===f.additionalProperties&&o(v)){const e=new Set(Object.keys(f.properties??{})),r=f.patternProperties?Object.keys(f.patternProperties).map((e=>new RegExp(e))):[];for(const t of Object.keys(v))e.has(t)||r.some((e=>e.test(t)))||delete v[t]}const y=function(e,r,t){const{dependencies:n}=e;if(void 0===n||!o(r))return t;let i=t;for(const[e,t]of Object.entries(n))e in r&&!Array.isArray(t)&&(i=u(t,r,i,!1));return i}(f,n,v);return y??(c?n:void 0)}return u(r,n)}(this.validator,e,this.rootSchema,r)}retrieveSchema(e,r,t){return fn(this.validator,e,this.rootSchema,r,this.experimental_customMergeAllOf,t)}sanitizeDataForNewSchema(e,r,t){return ei(this.validator,this.rootSchema,e,r,t,this.experimental_customMergeAllOf)}toPathSchema(e,r,t){return ti(this.validator,e,r,this.rootSchema,t,this.experimental_customMergeAllOf)}}function ii(e,r){let t=String(e);for(;t.length<r;)t=`0${t}`;return t}function oi(e,r){const t=e<=0&&r<=0;if(!t&&(e<0||r<0))throw new Error(`Both start (${e}) and stop (${r}) must both be <= 0 or > 0, got one of each`);const n=(new Date).getFullYear(),i=t?n+e:e,o=t?n+r:r;if(i>o)return oi(r,e).reverse();const a=[];for(let e=i;e<=o;e+=1)a.push({value:e,label:ii(e,2)});return a}function ai(e,r){return function(e,r){let t=e;if(Array.isArray(r)){const e=t.split(/(%\d)/);r.forEach(((r,t)=>{const n=e.findIndex((e=>e===`%${t+1}`));n>=0&&(e[n]=r)})),t=e.join("")}return t}(e,r)}function li(e,r=[],t){if(Array.isArray(e))return e.map((e=>li(e,r))).filter((e=>void 0!==e));const n=""===e||null===e?-1:Number(e),i=r[n];return i?i.value:t}function ui(e,r){return Array.isArray(r)?r.some((r=>Tr(r,e))):Tr(r,e)}function si(e,r=[],t=!1){const n=r.map(((r,t)=>ui(r.value,e)?String(t):void 0)).filter((e=>void 0!==e));return t?n:n[0]}function ci(e,r,t){if(""===e||!Array.isArray(r))return t;const n=r.find((r=>String(r.value)===e));if(n)return n.value;const i=Number(e);return!Number.isNaN(i)&&i>=0&&i<r.length?r[i].value:t}function fi(e,r,t="indexed",n){return"realValue"!==t?li(e,r,n):Array.isArray(e)?e.map((e=>ci(e,r,n))):ci(e,r,n)}function di(e,r,t="indexed"){return"realValue"!==t?String(r):null==e?"":String("object"==typeof e?r:e)}class hi{errorSchema={};constructor(e){this.resetAllErrors(e)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(e){const r="string"==typeof e?nt(e):e??[];if(0===r.length)return this.errorSchema;let t=lt(this.errorSchema,r);return t||(t={},ut(this.errorSchema,r,t,!0)),t}resetAllErrors(e){return this.errorSchema=e?structuredClone(e):{},this}addErrors(e,r){const t=this.getOrCreateErrorBlock(r);let n=t[Fe];return Array.isArray(n)||(n=[],t[Fe]=n),t[Fe]=Array.isArray(e)?[...new Set([...n,...e])]:[...new Set([...n,e])],this}setErrors(e,r){const t=this.getOrCreateErrorBlock(r),n=Array.isArray(e)?[...new Set([...e])]:[e];return t[Fe]=n,this}clearErrors(e){return this.getOrCreateErrorBlock(e)[Fe]=[],this}}function mi(e,r){return ur(e)&&ur(r)?pi(e,r,!0):Array.isArray(e)&&Array.isArray(r)&&e.length===r.length?e.flatMap(((e,t)=>{if(Tr(e,r[t]))return[];const n=mi(e,r[t]);return n.length?n.map((e=>`${t}.${e}`)):[String(t)]})):[]}function pi(e,r,t=!1){if(e===r)return[];if(!ur(e))return ur(r)?Object.keys(r):[];if(!ur(r))return Object.keys(e);const n=Object.keys(e),i=new Set(n);return[...n.filter((t=>!Tr(e[t],lt(r,t)))).flatMap((n=>{if(!t)return[n];const i=mi(e[n],lt(r,n));return i.length?i.map((e=>`${n}.${e}`)):[n]})),...Object.keys(r).filter((e=>!i.has(e)))]}function vi(e){const r={};return e.multipleOf&&(r.step=e.multipleOf),(e.minimum||0===e.minimum)&&(r.min=e.minimum),(e.maximum||0===e.maximum)&&(r.max=e.maximum),r}function yi(e,r,t={},n=!0){const i={type:r||"text",...vi(e)};return t.inputType?i.type=t.inputType:r||("number"===e.type?"."===je()?(i.type="number",n&&void 0===i.step&&(i.step="any")):i.type="text":"integer"===e.type&&(i.type="number",void 0===i.step&&(i.step=1))),["date","datetime-local","time","week","month"].includes(i.type)&&(void 0!==e.formatMinimum&&(i.min=e.formatMinimum),void 0!==e.formatMaximum&&(i.max=e.formatMaximum)),t.autocomplete&&(i.autoComplete=t.autocomplete),t.autocapitalize&&(i.autoCapitalize=t.autocapitalize),t.accept&&(i.accept=t.accept),i}function bi(e){return e?.optionValueFormat??"indexed"}const gi={props:{disabled:!1},submitText:"Submit",norender:!1};function wi(e,r,t={}){const{templates:n}=r;return"ButtonTemplates"===e?n[e]:Object.hasOwn(t,e)&&"string"==typeof t[e]&&Object.hasOwn(n,t[e])?n[t[e]]:t[e]||n[e]}let ki=0;function $i(){if("test"!==lt(globalThis,["process","env","NODE_ENV"]))return{};const e=new Map;return new Proxy({},{get:(r,t)=>(e.has(t)||(ki+=1,e.set(t,`test-id-${ki}`)),e.get(t))})}var Si,Ei,ji={exports:{}},xi={},Oi=(Ei||(Ei=1,ji.exports=function(){if(Si)return xi;Si=1;var e,r=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function p(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case r:switch(e=e.type){case n:case o:case i:case c:case f:return e;default:switch(e=e&&e.$$typeof){case u:case l:case s:case h:case d:case a:return e;default:return m}}case t:return m}}}return e=Symbol.for("react.module.reference"),xi.ContextConsumer=l,xi.ContextProvider=a,xi.Element=r,xi.ForwardRef=s,xi.Fragment=n,xi.Lazy=h,xi.Memo=d,xi.Portal=t,xi.Profiler=o,xi.StrictMode=i,xi.Suspense=c,xi.SuspenseList=f,xi.isAsyncMode=function(){return!1},xi.isConcurrentMode=function(){return!1},xi.isContextConsumer=function(e){return p(e)===l},xi.isContextProvider=function(e){return p(e)===a},xi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},xi.isForwardRef=function(e){return p(e)===s},xi.isFragment=function(e){return p(e)===n},xi.isLazy=function(e){return p(e)===h},xi.isMemo=function(e){return p(e)===d},xi.isPortal=function(e){return p(e)===t},xi.isProfiler=function(e){return p(e)===o},xi.isStrictMode=function(e){return p(e)===i},xi.isSuspense=function(e){return p(e)===c},xi.isSuspenseList=function(e){return p(e)===f},xi.isValidElementType=function(r){return"string"==typeof r||"function"==typeof r||r===n||r===o||r===i||r===c||r===f||r===m||"object"==typeof r&&null!==r&&(r.$$typeof===h||r.$$typeof===d||r.$$typeof===a||r.$$typeof===l||r.$$typeof===s||r.$$typeof===e||void 0!==r.getModuleId)},xi.typeOf=p,xi}()),ji.exports),Ai=i(Oi);const Ci={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function _i(e,r,t={}){const n=dt(e);if("function"==typeof r||r&&Ai.isForwardRef(oe.createElement(r))||Ai.isMemo(r))return function(e){let{MergedWidget:r}=e;if(!r){const t=e.defaultProps?.options||{};r=({options:r,...n})=>Se.jsx(e,{options:{...t,...r},...n}),e.MergedWidget=r}return r}(r);if("string"!=typeof r)throw new Error(`Unsupported widget definition: ${typeof r} in schema: ${JSON.stringify(e)}`);if(r in t)return _i(e,t[r],t);if("string"==typeof n){if(!(n in Ci))throw new Error(`No widget for type '${n}' in schema: ${JSON.stringify(e)}`);if(r in Ci[n])return _i(e,t[Ci[n][r]],t)}throw new Error(`No widget '${r}' for type '${n}' in schema: ${JSON.stringify(e)}`)}function Ii(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r&=r;return r.toString(16)}function Di(e){if(Array.isArray(e))return`[${e.map((e=>void 0===e?"undefined":Di(e))).join(",")}]`;if(null===e||"object"!=typeof e)return JSON.stringify("function"==typeof e?null:e);const r=e;return`{${Object.keys(r).sort().filter((e=>{return void 0!==(t=r[e])&&"function"!=typeof t&&"symbol"!=typeof t;var t})).map((e=>`${JSON.stringify(e)}:${Di(r[e])}`)).join(",")}}`}function Pi(e){return Ii(Di(e))}function Fi(e,r){return`${"string"==typeof e?e:e[qe]}__${r}`}function qi(e){return Fi(e,"description")}function Ni(e){return Fi(e,"error")}function Ti(e){return Fi(e,"examples")}function Ri(e){return Fi(e,"help")}function Mi(e){return Fi(e,"title")}function zi(e,r=!1){const t=r?` ${Ti(e)}`:"";return`${Ni(e)} ${qi(e)} ${Ri(e)}${t}`}function Ui(e,r){return`${e}-${r}`}function Li(e,r){return Fi(e,r)}function Bi(e,r){return Fi(e,`optional${r}`)}function Vi(e){return null!=e&&(!("object"==typeof e&&!Array.isArray(e))||Object.keys(e).length>0)}function Hi(e,r,t){return r?t:e}function Wi(e,r,t){const n=["layoutGridLookupMap"];return st(e,Xe)&&n.unshift(Xe),lt(e,[...n,r],t)}function Gi(){}function Ki(e,r=!0){if(!e)return{year:-1,month:-1,day:-1,hour:r?-1:0,minute:r?-1:0,second:r?-1:0};const t=new Date(e);if(Number.isNaN(t.getTime()))throw new Error(`Unable to parse date ${e}`);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:r?t.getUTCHours():0,minute:r?t.getUTCMinutes():0,second:r?t.getUTCSeconds():0}}function Ji(e,r,t,n={}){const{format:i}=e,o=t.isSelect(e)?qn(e,r):void 0;let a=o?"select":"text";return i&&function(e,r,t={}){try{return _i(e,r,t),!0}catch(e){const r=e;if(r.message&&(r.message.startsWith("No widget")||r.message.startsWith("Unsupported widget")))return!1;throw e}}(e,i,n)&&(a=i),{defaultWidget:a,enumOptions:o}}function Zi(e,r,t=!0,n=[]){if(!Ee(e))return!1;let i=e,o=n;if("string"==typeof i[He]){const e=i[He];if(o.includes(e))return!1;o=[...o,e];try{const t=rt(e,r);if(Ee(t)){const{[He]:e,...r}=i;i={...t,...r}}}catch{return!1}}if(!t&&(Pe in i||Ne in i))return!0;const a=i[Ue],l=i[ze],u=i[Te],s=i[Pe],c=Ee(s)?Object.values(s).filter(Ee):[];return[...Ee(a)?Object.values(a):[],...Ee(l)?Object.values(l):[],...Array.isArray(u)?u:[u],i[Ae],...i[Ce]??[],...i[_e]??[],...i[Me]??[],...c,i.then,i.else].some((e=>Zi(e,r,!1,o)))}function Yi(e){return!!e.const||(1===e.enum?.length&&!0===e.enum[0]||(1===e.anyOf?.length?Yi(e.anyOf[0]):1===e.oneOf?.length?Yi(e.oneOf[0]):!!e.allOf&&e.allOf.some((e=>Yi(e)))))}function Xi({hideLabel:e,id:r,multiple:t,options:n,registry:i,uiSchema:o,value:a}){if(t||e)return null;const{label:l=!0}=ar(o,i.globalUiOptions);if(!l)return null;const u=n.enumOptions?.find((({value:e})=>ui(e,a))),s=u?.schema?.description;if(!s)return null;const c=wi("DescriptionFieldTemplate",i,n);return Se.jsx(c,{id:qi(r),description:s,schema:u.schema,uiSchema:o,registry:i})}function Qi(e,r){if(Object.is(e,r))return!0;if(null==e||null==r)return!1;if("object"!=typeof e||"object"!=typeof r)return!1;const t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(let n=0;n<t.length;n+=1){const i=t[n];if(!Object.hasOwn(r,i)||!Object.is(e[i],r[i]))return!1}return!0}function eo(e){const r=[...new Set(e.map((e=>Ee(e)?dt(e):void 0)).flat().filter((e=>void 0!==e)))];return 1===r.length?r[0]:r}function ro(e,r,t,n){const{enableOptionalDataFieldForType:i=[]}=ar(n,e.globalUiOptions);let o;return o=_e in r&&Array.isArray(r[_e])?eo(r[_e]):Me in r&&Array.isArray(r[Me])?eo(r[Me]):dt(r),!(function(e,r){const{rootSchema:t,schemaUtils:n}=e;if(Tr(r,t))return!0;if(He in t){const e=n.retrieveSchema(t);return Tr(r,e)}return!1}(e,r)||t||!o||Array.isArray(o)||!i.find((e=>e===o)))}function to(e,r=!0){const{year:t,month:n,day:i,hour:o=0,minute:a=0,second:l=0}=e,u=Date.UTC(t,n-1,i,o,a,l),s=new Date(u).toJSON();return r?s:s.slice(0,10)}function no(e,r=[]){return e?io(e,r):[]}function io(e,r){const t=e[Fe],n=`.${r.join(".")}`,i=Array.isArray(t)?t.map((e=>({property:n,message:e,stack:`${n} ${e}`}))):[];return Object.keys(e).reduce(((t,n)=>{const i=e[n];return n!==Fe&&ur(i)?t.concat(io(i,[...r,n])):t}),i)}function oo(e,r,t,n){const i=Array.isArray(t)?t:t?.path,o=""===e?[]:[e],a=i?i.concat(...o):o,l=[r.idPrefix,...a].join(r.idSeparator);let u;return r.nameGenerator&&a.length>0&&(u=r.nameGenerator(a,r.idPrefix,n)),{path:a,[qe]:l,...void 0!==u&&{name:u}}}function ao(e){return lo(e)}function lo(e){return Object.keys(e).reduce(((r,t)=>{if("addError"===t)return r;const n=e[t];return ur(n)?{...r,[t]:lo(n)}:{...r,[t]:n}}),{})}function uo(e){const{className:r="form-control",type:t,range:n,value:i,select:o,rootId:a,name:l,disabled:u,readonly:s,autofocus:c,registry:f,onBlur:d,onFocus:h}=e,m=`${a}_${t}`,{SelectWidget:p}=f.widgets,v=oe.useCallback((e=>o(t,e)),[o,t]);return Se.jsx(p,{schema:{type:"integer"},id:m,name:l,className:r,options:{enumOptions:oi(n[0],n[1])},placeholder:t,value:i,disabled:u,readonly:s,autofocus:c,onChange:v,onBlur:d,onFocus:h,registry:f,label:"","aria-describedby":zi(a)})}function so(e){const r=oe.useRef(e);return Tr(e,r.current)||(r.current=e),r.current}function co(e,r){return e.replace(";base64",`;name=${encodeURIComponent(r)};base64`)}async function fo(e){const{name:r,size:t,type:n}=e;return new Promise(((i,o)=>{const a=new window.FileReader;a.onerror=o,a.onload=e=>{i("string"==typeof e.target?.result?{dataURL:co(e.target.result,r),name:r,size:t,type:n}:{dataURL:null,name:r,size:t,type:n})},a.readAsDataURL(e)}))}function ho(e){return e.reduce(((e,r)=>{if(!r)return e;try{const{blob:t,name:n}=function(e){if(!e.includes("data:"))throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(2!==r.length)throw new Error("File is invalid: dataURI must be base64");const[t,n]=r,[i,...o]=t.split(";"),a=i||"",l=decodeURI(o.map((e=>e.split("="))).find((([e])=>"name"===e))?.[1]||"unknown");try{const e=atob(n),r=new Array(e.length);for(let t=0;t<e.length;t+=1)r[t]=e.charCodeAt(t);return{blob:new window.Blob([new Uint8Array(r)],{type:a}),name:l}}catch(e){throw new Error(`File is invalid: ${e.message}`)}}(r);return[...e,{dataURL:r,name:n,size:t.size,type:t.type}]}catch{return e}}),[])}function mo(e){if(!e)return"";const r=new Date(e);return`${ii(r.getFullYear(),4)}-${ii(r.getMonth()+1,2)}-${ii(r.getDate(),2)}T${ii(r.getHours(),2)}:${ii(r.getMinutes(),2)}:${ii(r.getSeconds(),2)}.${ii(r.getMilliseconds(),3)}`}function po(e,r,t=!1){if(!r)return e;const{errors:n,errorSchema:i}=e;let o=no(r),a=r;return i&&Object.keys(i).length>0&&(a=Fn(i,r,!t||"preventDuplicates"),o=[...n].concat(o)),{errorSchema:a,errors:o}}function vo(e){return Array.isArray(e)?[...e].map((e=>vo(e))):Ee(e)?function(e){const r=e;for(const e in r)if(Object.hasOwn(r,e)){const t=r[e];r[e]=e===He&&"string"==typeof t&&t.startsWith("#")?rr+t:vo(t)}return e}({...e}):e}var yo;!function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.ExpandButton="Expand Cycle",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.DeprecatedLabel="%1 (deprecated)",e.CycleDetected='Circular reference ($ref cycle) detected for field "%1". You may choose to expand to the next cycle break',e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"}(yo||(yo={}));let bo=0;function go(){return bo+=1,`rjsf-array-item-${bo}`}function wo(e){return Array.isArray(e)?e.map((e=>({key:go(),item:e}))):[]}function ko(e){return Array.isArray(e)?e.map((e=>e.item)):[]}function $o(e){return Array.isArray(e.type)?!e.type.includes("null"):"null"!==e.type}function So(e,r,t,n){let{addable:i}=ar(n,e.globalUiOptions);return!1!==i&&(i=void 0===r.maxItems||t.length<r.maxItems),i}function Eo(e,r,t,n){if("function"!=typeof e.items)return e.items;try{return e.items(r,t,n)}catch(e){return void console.error(`Error executing dynamic uiSchema.items function for item at index ${t}:`,e)}}function jo(e,r){const{schemaUtils:t,globalFormOptions:n}=e;let i=r.items;return n.useFallbackUiForUnsupportedType&&!i?i={}:Dn(r)&&function(e){return!0===e.additionalItems&&console.warn("additionalItems=true is currently not supported"),Ee(e.additionalItems)}(r)&&(i=r.additionalItems),t.getDefaultFormState(i)}function xo(e){const{schema:r,fieldPathId:t,uiSchema:n,formData:i=[],disabled:o=!1,readonly:a=!1,autofocus:l=!1,required:u=!1,placeholder:s,onBlur:c,onFocus:f,registry:d,rawErrors:h,name:m,onSelectChange:p}=e,{widgets:v,schemaUtils:y,globalFormOptions:b,globalUiOptions:g}=d,w=qn(y.retrieveSchema(r.items,i),n?.items??n),{widget:k="select",title:$,...S}=ar(n,g),E=_i(r,k,v),j=$??r.title??m,x=y.getDisplayLabel(r,n,g),O=so(oo("",b,t,!0));return Se.jsx(E,{id:O[qe],name:m,multiple:!0,onChange:p,onBlur:c,onFocus:f,options:{...S,enumOptions:w},schema:r,uiSchema:n,registry:d,value:i,disabled:o,readonly:a,required:u,label:j,hideLabel:!x,placeholder:s,autofocus:l,rawErrors:h,htmlName:O.name})}function Oo(e){const{schema:r,fieldPathId:t,uiSchema:n,disabled:i=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,hideError:u,placeholder:s,onBlur:c,onFocus:f,formData:d=[],registry:h,rawErrors:m,name:p,onSelectChange:v}=e,{widgets:y,schemaUtils:b,globalFormOptions:g,globalUiOptions:w}=h,{widget:k,title:$,...S}=ar(n,w),E=_i(r,k,y),j=$??r.title??p,x=b.getDisplayLabel(r,n,w),O=so(oo("",g,t,!0));return Se.jsx(E,{id:O[qe],name:p,multiple:!0,onChange:v,onBlur:c,onFocus:f,options:S,schema:r,uiSchema:n,registry:h,value:d,disabled:i,readonly:o,hideError:u,required:l,label:j,hideLabel:!x,placeholder:s,autofocus:a,rawErrors:m,htmlName:O.name})}function Ao(e){const{schema:r,uiSchema:t,fieldPathId:n,name:i,disabled:o=!1,readonly:a=!1,autofocus:l=!1,required:u=!1,onBlur:s,onFocus:c,registry:f,formData:d=[],rawErrors:h,onSelectChange:m}=e,{widgets:p,schemaUtils:v,globalFormOptions:y,globalUiOptions:b}=f,{widget:g="files",title:w,...k}=ar(t,b),$=_i(r,g,p),S=w??r.title??i,E=v.getDisplayLabel(r,t,b),j=so(oo("",y,n,!0));return Se.jsx($,{options:k,id:j[qe],name:i,multiple:!0,onChange:m,onBlur:s,onFocus:c,schema:r,uiSchema:t,value:d,disabled:o,readonly:a,required:u,registry:f,autofocus:l,rawErrors:h,label:S,hideLabel:!E,htmlName:j.name})}const Co=oe.memo((function(e){const{itemKey:r,index:t,name:n,disabled:i,hideError:o,readonly:a,registry:l,uiOptions:u,parentUiSchema:s,canAdd:c,canRemove:f=!0,canMoveUp:d,canMoveDown:h,rawItemSchema:m,itemData:p,itemUiSchema:v,parentFieldPathId:y,itemErrorSchema:b,autofocus:g,onBlur:w,onFocus:k,onChange:$,rawErrors:S,totalItems:E,title:j,handleAddItem:x,handleCopyItem:O,handleRemoveItem:A,handleReorderItems:C}=e,{schemaUtils:_,fields:{ArraySchemaField:I,SchemaField:D},globalUiOptions:P,globalFormOptions:F}=l,q=oe.useMemo((()=>_.retrieveSchema(m,p)),[_,m,p]),N=oe.useMemo((()=>oo(t,F,y)),[t,F,y]),T=I||D,R=wi("ArrayFieldItemTemplate",l,u),M=_.getDisplayLabel(q,v,P),{description:z}=ar(v),U=!!z||!!q.description,{orderable:L=!0,removable:B=!0,copyable:V=!1}=u,H={moveUp:L&&d,moveDown:L&&h,copy:V&&c,remove:B&&f,toolbar:!1};H.toolbar=Object.keys(H).some((e=>H[e]));const W=oe.useCallback((e=>{x(e,t+1)}),[x,t]),G=oe.useCallback((e=>{O(e,t)}),[O,t]),K=oe.useCallback((e=>{A(e,t)}),[A,t]),J=oe.useCallback((e=>{C(e,t,t-1)}),[C,t]),Z=oe.useCallback((e=>{C(e,t,t+1)}),[C,t]),Y={children:Se.jsx(T,{name:n,title:j,index:t,schema:q,uiSchema:v,formData:p,errorSchema:b,fieldPathId:N,required:$o(q),onChange:$,onBlur:w,onFocus:k,registry:l,disabled:i,readonly:a,hideError:o,autofocus:g,rawErrors:S}),buttonsProps:{fieldPathId:N,disabled:i,readonly:a,canAdd:c,hasCopy:H.copy,hasMoveUp:H.moveUp,hasMoveDown:H.moveDown,hasRemove:H.remove,index:t,totalItems:E,onAddItem:W,onCopyItem:G,onRemoveItem:K,onMoveUpItem:J,onMoveDownItem:Z,registry:l,schema:q,uiSchema:v},itemKey:r,className:"rjsf-array-item",disabled:i,hasToolbar:H.toolbar,index:t,totalItems:E,readonly:a,registry:l,schema:q,uiSchema:v,parentUiSchema:s,displayLabel:M,hasDescription:U};return Se.jsx(R,{...Y})}));function _o(e){const{schema:r,uiSchema:t={},errorSchema:n,fieldPathId:i,formData:o,name:a,title:l,disabled:u=!1,readonly:s=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,onChange:y,keyedFormData:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$}=e,S=r.title||l||a,{schemaUtils:E,fields:j,formContext:x,globalUiOptions:O}=h,{OptionalDataControlsField:A}=j,C=oe.useMemo((()=>ar(t,O)),[t,O]),_=oe.useMemo((()=>Ee(r.items)?r.items:{}),[r.items]),I=oe.useMemo((()=>E.retrieveSchema(_)),[E,_]),D=oe.useMemo((()=>ko(b)),[b]),P=ro(h,r,f,t),F=Vi(o),q=oe.useMemo((()=>So(h,r,D,t)&&(!P||F)),[h,r,D,t,P,F]),N=F?b:[],T=P?" rjsf-optional-array-field":"",R=e.childFieldPathId??i,M=P?Se.jsx(A,{...e,fieldPathId:R}):void 0,z={canAdd:q,items:N.map(((e,r)=>{const{key:i,item:o}=e,l=o,E=n?n[r]:void 0,j=Eo(t,o,r,x);return Se.jsx(Co,{itemKey:i,index:r,name:a&&`${a}-${r}`,registry:h,uiOptions:C,parentUiSchema:t,hideError:d,readonly:s,disabled:u,required:f,title:S?`${S}-${r+1}`:void 0,canAdd:q,canMoveUp:r>0,canMoveDown:r<D.length-1,rawItemSchema:_,parentFieldPathId:R,itemErrorSchema:E,itemData:l,itemUiSchema:j,autofocus:c&&0===r,onBlur:m,onFocus:p,rawErrors:v,totalItems:b.length,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$,onChange:y},i)})),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${I.type}${T}`,disabled:u,fieldPathId:i,uiSchema:t,onAddClick:g,readonly:s,required:f,schema:r,title:S,formData:D,rawErrors:v,registry:h,optionalDataControl:M},U=wi("ArrayFieldTemplate",h,C);return Se.jsx(U,{...z})}function Io(e){const{schema:r,uiSchema:t={},formData:n,errorSchema:i,fieldPathId:o,name:a,title:l,disabled:u=!1,readonly:s=!1,autofocus:c=!1,required:f=!1,hideError:d=!1,registry:h,onBlur:m,onFocus:p,rawErrors:v,keyedFormData:y,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$}=e;let{formData:S=[]}=e;const E=r.title||l||a,{fields:j,formContext:x,globalUiOptions:O}=h,A=oe.useMemo((()=>ar(t,O)),[t,O]),{OptionalDataControlsField:C}=j,_=ro(h,r,f,t),I=Vi(n),D=oe.useMemo((()=>Array.isArray(r.items)?r.items:[]),[r.items]),P=Ee(r.additionalItems),F=e.childFieldPathId??o;S.length<D.length&&(S=S.concat(new Array(D.length-S.length)));const q=I?y:[],N=_?" rjsf-optional-array-field":"",T=_?Se.jsx(C,{...e,fieldPathId:F}):void 0,R=So(h,r,S,t)&&P&&(!_||I),M={canAdd:R,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${N}`,disabled:u,fieldPathId:o,formData:n,items:q.map(((e,n)=>{const{key:o,item:l}=e,j=l,O=n>=D.length,C=(O&&Ee(r.additionalItems)?r.additionalItems:D[n])||{};let _;return _=O?t.additionalItems:Array.isArray(t.items)?t.items[n]:Eo(t,l,n,x),Se.jsx(Co,{index:n,itemKey:o,name:a&&`${a}-${n}`,registry:h,uiOptions:A,parentUiSchema:t,hideError:d,readonly:s,disabled:u,required:f,title:E?`${E}-${n+1}`:void 0,canAdd:R,canRemove:O,canMoveUp:n>=D.length+1,canMoveDown:O&&n<S.length-1,rawItemSchema:C,itemData:j,itemUiSchema:_,parentFieldPathId:F,itemErrorSchema:i?i[n]:void 0,autofocus:c&&0===n,onBlur:m,onFocus:p,rawErrors:v,totalItems:y.length,onChange:b,handleAddItem:g,handleCopyItem:w,handleRemoveItem:k,handleReorderItems:$},o)})),onAddClick:g,readonly:s,required:f,registry:h,schema:r,uiSchema:t,title:E,errorSchema:i,rawErrors:v,optionalDataControl:T},z=wi("ArrayFieldTemplate",h,A);return Se.jsx(z,{...M})}function Do(e){const{schema:r,uiSchema:t,errorSchema:n,fieldPathId:i,registry:o,formData:a,onChange:l}=e,{globalFormOptions:u,schemaUtils:s,translateString:c}=o,{keyedFormData:f,updateKeyedFormData:d}=function(e=[]){const r=oe.useMemo((()=>Pi(e)),[e]),[t,n]=oe.useState((()=>({formDataHash:r,keyedFormData:wo(e)})));let{keyedFormData:i,formDataHash:o}=t;if(r!==o){const t=Array.isArray(e)?e:[],a=i||[];i=t.length===a.length?a.map(((e,r)=>({key:e.key,item:t[r]}))):wo(t),o=r,n({formDataHash:o,keyedFormData:i})}return{keyedFormData:i,updateKeyedFormData:oe.useCallback((e=>{const r=ko(e),t=Pi(r);return n({formDataHash:t,keyedFormData:e}),r}),[])}}(a),h=oe.useRef(f);h.current=f;const m=oe.useRef(n);m.current=n;const p=e.childFieldPathId??i,v=oe.useCallback(((e,t)=>{let n;if(e&&e.preventDefault(),m.current){n={};for(const e of Object.keys(m.current)){const r=parseInt(e,10);void 0===t||r<t?ut(n,r,m.current[r]):r>=t&&ut(n,r+1,m.current[r])}}const i={key:go(),item:jo(o,r)},a=[...h.current];void 0!==t?a.splice(t,0,i):a.push(i),l(d(a),p.path,n)}),[o,r,l,d,p]),y=oe.useCallback(((e,r)=>{let t;if(e&&e.preventDefault(),m.current){t={};for(const e of Object.keys(m.current)){const n=parseInt(e,10);n<=r?ut(t,n,m.current[n]):n>r&&ut(t,n+1,m.current[n])}}const n={key:go(),item:structuredClone(h.current[r].item)},i=[...h.current];void 0!==r?i.splice(r+1,0,n):i.push(n),l(d(i),p.path,t)}),[l,d,p]),b=oe.useCallback(((e,r)=>{let t;if(e&&e.preventDefault(),m.current){t={};for(const e of Object.keys(m.current)){const n=parseInt(e,10);n<r?ut(t,n,m.current[n]):n>r&&ut(t,n-1,m.current[n])}}const n=h.current.filter(((e,t)=>t!==r));l(d(n),p.path,t)}),[l,d,p]),g=oe.useCallback(((e,r,t)=>{let n;if(e&&(e.preventDefault(),e.currentTarget.blur()),m.current){n={};for(const e of Object.keys(m.current)){const i=parseInt(e,10);i===r?ut(n,t,m.current[r]):i===t?ut(n,r,m.current[t]):ut(n,e,m.current[i])}}const i=function(){const e=h.current.slice();return e.splice(r,1),e.splice(t,0,h.current[r]),e}();l(d(i),p.path,n)}),[l,d,p]),w=oe.useCallback(((e,r,t,n)=>{const i="number"==typeof r.at(-1);l(i&&void 0===e?null:e,r,t,n)}),[l]),k=oe.useCallback((e=>{l(e,p.path,void 0,p?.[qe])}),[l,p]),$={...e,formData:a,fieldPathId:p,onSelectChange:k},S={...e,handleAddItem:v,handleCopyItem:y,handleRemoveItem:b,handleReorderItems:g,keyedFormData:f,onChange:w};if(!(Te in r)){if(!u.useFallbackUiForUnsupportedType){const e=ar(t),n=wi("UnsupportedFieldTemplate",o,e);return Se.jsx(n,{schema:r,fieldPathId:i,reason:c(yo.MissingItems),registry:o})}const e={...r,[Te]:{type:void 0}};$.schema=e,S.schema=e}return s.isMultiSelect($.schema)?Se.jsx(xo,{...$}):Jn(t)?Se.jsx(Oo,{...$}):Dn($.schema)?Se.jsx(Io,{...S}):s.isFilesArray($.schema,t)?Se.jsx(Ao,{...$}):Se.jsx(_o,{...S})}function Po(e){const{schema:r,name:t,uiSchema:n,fieldPathId:i,formData:o,registry:a,required:l,disabled:u,readonly:s,hideError:c,autofocus:f,title:d,onChange:h,onFocus:m,onBlur:p,rawErrors:v}=e,{title:y}=r,{widgets:b,translateString:g,globalUiOptions:w}=a,{widget:k="checkbox",title:$,label:S=!0,enumNames:E,...j}=ar(n,w),x=_i(r,k,b),O=g(yo.YesLabel),A=g(yo.NoLabel);let C;const _=$??y??d??t;if(Array.isArray(r.oneOf))C=qn({oneOf:r.oneOf.map((e=>{if(Ee(e))return{...e,title:e.title||(!0===e.const?O:A)}})).filter((e=>e))},n);else{const e=r.enum??[!0,!1];C=!E&&2===e.length&&e.every((e=>"boolean"==typeof e))?[{value:e[0],label:e[0]?O:A},{value:e[1],label:e[1]?O:A}]:qn({enum:e},n)}const I=oe.useCallback(((e,r,t)=>h(e,i.path,r,t)),[h,i]);return Se.jsx(x,{options:{...j,enumOptions:C},schema:r,uiSchema:n,id:i.$id,name:t,onChange:I,onFocus:m,onBlur:p,label:_,hideLabel:!S,value:o,required:l,disabled:u,readonly:s,hideError:c,registry:a,autofocus:f,rawErrors:v,htmlName:i.name})}function Fo(e){const[r,t]=oe.useState(!1),{name:n,registry:i,schema:o,uiSchema:a,fieldPathId:l}=e,{globalUiOptions:u}=i,s=wi("CyclicSchemaExpandTemplate",i,ar(a,u));if(!r)return Se.jsx(s,{registry:i,schema:o,uiSchema:a,name:n,fieldPathId:l,onExpand:()=>t(!0)});const{fields:c}=i,{SchemaField:f}=c;return Se.jsx(f,{...e,schema:{...o,[Ge]:!1}})}function qo(e){const{id:r,formData:t,displayLabel:n=!0,schema:i,name:o,uiSchema:a,required:l,disabled:u=!1,readonly:s=!1,onBlur:c,onFocus:f,registry:d,fieldPathId:h,onChange:m,errorSchema:p}=e,{translateString:v,fields:y,globalFormOptions:b}=d,[g,w]=oe.useState(function(e){const r=typeof e;return"string"===r||"number"===r||"boolean"===r?r:"object"===r?Array.isArray(e)?"array":"object":"string"}(t)),k=ar(a),$=so(oo("__internal_type_selector",b,h)),S=v(yo.Type),E=oe.useMemo((()=>({type:"string",enum:["string","number","boolean","object","array"],default:"string",title:S})),[S]);if(!b.useFallbackUiForUnsupportedType){const{reason:r=v(yo.UnknownFieldType,[String(i.type)])}=e,t=wi("UnsupportedFieldTemplate",d,k);return Se.jsx(t,{schema:i,fieldPathId:h,reason:r,registry:d})}const j=wi("FallbackFieldTemplate",d,k),{SchemaField:x}=y;return Se.jsx(j,{schema:i,registry:d,typeSelector:Se.jsx(x,{fieldPathId:$,name:`${o}__fallback_type`,schema:E,formData:g,onChange:e=>{null!=e&&(w(e),m(function(e,r){switch(r){case"string":return String(e);case"number":{const r=Number(e);return Number.isNaN(r)?0:r}case"boolean":return Boolean(e);default:return e}}(t,e),h.path,p,r))},onBlur:c,onFocus:f,registry:d,hideLabel:!n,disabled:u,readonly:s,required:l},t?Pi(t):"__empty__"),schemaField:Se.jsx(x,{...e,schema:{type:g,title:v(yo.Value),..."object"===g&&{additionalProperties:!0}}})})}var No,To;!function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"}(No||(No={})),function(e){e.ALL="all",e.SOME="some",e.NONE="none"}(To||(To={}));const Ro=/^\$lookup=(.+)/,Mo="layoutGrid";function zo(e,r){return e??r}const Uo=$i();function Lo(e,r,t){let n={},i=e[r];if(ur(i)){const{children:e,className:r,...o}=i;if(i=e,r){const e=r.split(" ").map((e=>Wi(t,e,e))).join(" ");n={...o,className:e}}else n=o}if(!Array.isArray(i))throw new TypeError(`Expected array for "${r}" in ${JSON.stringify(e)}`);return{children:i,gridProps:n}}function Bo(e,r,t){let n,i=r;if(/^\d+?$/.test(t)&&e&&"array"===e?.type&&Te in e){const o=Number(t),a=e[Te];n=Array.isArray(a)?o>a.length?a.at(-1):a[o]:a,i={[qe]:r[qe],path:[...r.path.slice(0,r.path.length-1),o]}}return{rawSchema:n,fieldPathId:i}}function Vo(e){const{childrenLayoutGridSchemaId:r,...t}=e,{registry:n,schema:i,formData:o}=t,{schemaUtils:a}=n,l=a.retrieveSchema(i,o);return r.map((e=>oe.createElement(Zo,{...t,key:`layoutGrid-${Pi(e)}`,schema:l,layoutGridSchema:e})))}function Ho(e){const{layoutGridSchema:r,...t}=e,{formData:n,registry:i}=t,{children:o,gridProps:a}=Lo(r,No.CONDITION,i),{operator:l,field:u="",value:s}=a;return function(e,r,t="$0m3tH1nG Un3xP3cT3d"){const n=[r].flat().sort(),i=[t].flat().sort();switch(e){case To.ALL:return Tr(n,i);case To.SOME:return n.some((e=>i.includes(e)));case To.NONE:return!n.some((e=>i.includes(e)));default:return!1}}(l,lt(n,nt(u),null),s)?Se.jsx(Vo,{...t,childrenLayoutGridSchemaId:o}):null}function Wo(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Lo(r,No.COLUMN,n),l=wi("GridTemplate",n,ar(i));return Se.jsx(l,{column:!0,"data-testid":Uo.col,...a,children:Se.jsx(Vo,{...t,childrenLayoutGridSchemaId:o})})}function Go(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Lo(r,No.COLUMNS,n),l=wi("GridTemplate",n,ar(i));return o.map((e=>Se.jsx(l,{column:!0,"data-testid":Uo.col,...a,children:Se.jsx(Vo,{...t,childrenLayoutGridSchemaId:[e]})},`column-${Pi(e)}`)))}function Ko(e){const{layoutGridSchema:r,...t}=e,{registry:n,uiSchema:i}=t,{children:o,gridProps:a}=Lo(r,No.ROW,n),l=wi("GridTemplate",n,ar(i));return Se.jsx(l,{...a,"data-testid":Uo.row,children:Se.jsx(Vo,{...t,childrenLayoutGridSchemaId:o})})}function Jo(e){const{gridSchema:r,schema:t,uiSchema:n,errorSchema:i,fieldPathId:o,onBlur:a,onFocus:l,formData:u,readonly:s,registry:c,layoutGridSchema:f,...d}=e,{onChange:h}=d,{fields:m}=c,{SchemaField:p,LayoutMultiSchemaField:v}=m,y=function(e,r){let t,n,i=null,o={};if("string"==typeof r||void 0===r)t=r??"";else{const{name:a="",render:l,...u}=r;t=a,o=u,Object.entries(o).forEach((([r,t])=>{if("string"==typeof t){const n=Ro.exec(t);if(Array.isArray(n)&&n.length>1){const t=n[1];o[r]=Wi(e,t,t)}}})),i=function(e,r){let t=e;return"string"==typeof t&&(t=Wi(r,t)),"function"==typeof t?t:null}(l,e),!a&&i&&(n=Se.jsx(i,{...u,"data-testid":Uo.uiComponent}))}return{name:t,UIComponent:i,uiProps:o,rendered:n}}(c,r),{name:b,UIComponent:g,uiProps:w}=y,{schema:k,isRequired:$,isReadonly:S,optionsInfo:E,fieldPathId:j}=function(e,r,t,n,i){const{schemaUtils:o,globalFormOptions:a}=e;let l=t,u=i;const s=r.split("."),c=s.pop();let f,d=o.retrieveSchema(l,n),h=n,m=d.readOnly;s.forEach((e=>{u=oo(e,a,u);const r=d?.[Ue];if(r)l=r[e]??{};else if(d&&(Me in d||_e in d)){const r=o.findSelectedOptionInXxxOf(d,e,Me in d?Me:_e,h);l=mt(r,e)}else{const r=Bo(d,u,e);l=r.rawSchema??{},u=r.fieldPathId}h=lt(h,e,{}),d=o.retrieveSchema(l,h),m=zo(d.readOnly,m)}));let p=!1;if(d&&0!==Object.keys(d).length||(d=void 0),d&&c){d&&(Me in d||_e in d)&&(d=o.findSelectedOptionInXxxOf(d,c,Me in d?Me:_e,h)),u=oo(c,a,u),p=void 0!==d&&Array.isArray(d.required)&&d.required.includes(c);const e=Bo(d,u,c);if(e.rawSchema?(d=e.rawSchema,u=e.fieldPathId):(d=d?.[Ue]?.[c],d=d?o.retrieveSchema(d):d),m=zo(d?.readOnly,m),d&&(Me in d||_e in d)){const e=Me in d?Me:_e,r=ct(d);f={options:d[e],hasDiscriminator:!!r}}}return{schema:d,isRequired:p,isReadonly:m,optionsInfo:f,fieldPathId:u}}(c,b,t,u,o),x=so(j);if(y.rendered)return y.rendered;if(k){const e=E?.hasDiscriminator?v:p,{fieldUiSchema:r,uiReadonly:t}=function(e,r,t,n,i){const o=t?.[ir]??{},a=lt(t,nt(e)),l={...a?.[nr]??{},...r,...o},u={...a};Object.keys(l).length>0&&(u[nr]=l),Object.keys(o).length>0&&(u[ir]=o);let{readonly:s}=ar(u);if(!0===i||void 0===s&&!0===n){s=!0;const e=u[nr];e&&Le in e?e[Le]=!0:u[`ui:${Le}`]=!0}return{fieldUiSchema:u,uiReadonly:s}}(b,w,n,S,s),o=nt(b);return Se.jsx(e,{"data-testid":E?.hasDiscriminator?Uo.layoutMultiSchemaField:Uo.field,...d,name:b,required:$,readonly:t,schema:k,uiSchema:r,errorSchema:lt(i,o),fieldPathId:x,formData:lt(u,o),onChange:h,onBlur:a,onFocus:l,options:E?.options,registry:c})}return g?Se.jsx(g,{"data-testid":Uo.uiComponent,...d,name:b,required:$,formData:u,readOnly:!!S||s,errorSchema:i,uiSchema:n,schema:t,fieldPathId:o,onBlur:a,onFocus:l,registry:c,...w}):null}function Zo(e){const{uiSchema:r}=e;let{layoutGridSchema:t}=e;const n=ar(r);if(!t&&Mo in n&&Ee(n[Mo])&&(t=n[Mo]),Ee(t)){if(No.ROW in t)return Se.jsx(Ko,{...e,layoutGridSchema:t});if(No.COLUMN in t)return Se.jsx(Wo,{...e,layoutGridSchema:t});if(No.COLUMNS in t)return Se.jsx(Go,{...e,layoutGridSchema:t});if(No.CONDITION in t)return Se.jsx(Ho,{...e,layoutGridSchema:t})}return Se.jsx(Jo,{...e,gridSchema:t})}function Yo(e){const{fieldPathId:r,title:t,schema:n,uiSchema:i,required:o,registry:a,name:l}=e,u=ar(i,a.globalUiOptions),{title:s}=u,{title:c}=n,f=s||t||c||l;if(!f)return null;const d=wi("TitleFieldTemplate",a,u);return Se.jsx(d,{id:Mi(r),title:f,required:o,schema:n,uiSchema:i,registry:a})}function Xo(e,r){return r&&e?.required?ht({required:e.required},r):r}function Qo(e){return De in e||Ie in e}function ea(e,r,t){if(Qo(e.retrieveSchema(mt(r,t))))return!0;const n=r[De];return ur(n)&&t in n}function ra(e,r,t,n,i){let o=e.sanitizeDataForNewSchema(t,n,r);const a=Xo(i,t);if(a){const t=Xo(i,n);let l,u=!1;const s=()=>(u||(l=t?e.getDefaultFormState(t,void 0,"excludeObjectChildren"):void 0,u=!0),l);let c,f=!1;const d=()=>(f||(c=e.getDefaultFormState(a,void 0,"excludeObjectChildren"),f=!0),c);if(ur(o)){const n=o,i=ur(r)?r:{},l=Object.keys(n).filter((e=>void 0!==i[e]));if(l.length>0){const r=d(),u=ur(r)?r:{},c=l.filter((r=>void 0!==u[r]&&ea(e,a,r)));if(c.length>0){const r=r=>{if(!t||!ea(e,t,r))return!1;const n=s();return ur(n)&&Tr(n[r],i[r])},a={...n};c.forEach((e=>{(void 0===n[e]||r(e))&&delete a[e]})),o=a}}}else void 0!==o&&t&&Qo(a)&&Qo(t)&&Tr(s(),r)&&void 0!==d()&&(o=void 0);o=void 0===o?d():e.getDefaultFormState(a,o,"excludeObjectChildren")}return o}function ta(e,r,t){return e.map((({schema:e})=>e)).find((e=>{const n=e[Ue]?.[r];return lt(n,De,lt(n,Ie,"!@#!@$@#$!@$#"))===t}))}function na(e,r,t,n,i){const o=r.map((e=>t.retrieveSchema(e,i)));let a=e;Me in e?a={...e,[Me]:o}:_e in e&&(a={...e,[_e]:o});const l=qn(a,n);if(!l)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(a)}`);return l}function ia(e){const{name:r,baseType:t,disabled:n=!1,formData:i,fieldPathId:o,onBlur:a,onChange:l,options:u,onFocus:s,registry:c,uiSchema:f,schema:d,autofocus:h,readonly:m,required:p,errorSchema:v,hideError:y=!1}=e,{widgets:b,schemaUtils:g,globalUiOptions:w}=c,[k,$]=oe.useState(na(d,u,g,f,i)),S=o[qe],E=ct(d),j=wi("FieldErrorTemplate",c,u),x=wi("FieldTemplate",c,u),O=Pi(d),A=Pi(u),C=f?Pi(f):"",_=i?Pi(i):"";oe.useEffect((()=>{$(na(d,u,g,f,i))}),[O,A,g,C,_]);const{widget:I=(E?"radio":"select"),title:D="",placeholder:P="",optionsSchemaSelector:F=E,hideError:q,...N}=ar(f);if(!F)throw new Error("No selector field provided for the LayoutMultiSchemaField");const T=lt(i,F);let R=mt(k[0]?.schema,F);const M=ta(k,F,T);R=R?.type?R:{...R,type:M?.type||t};const z=_i(R,I,b),U=void 0===q?y:Boolean(q),L=v?.[Fe]??[],B={...v};delete B[Fe];const V=g.getDisplayLabel(d,f,w),H={enumOptions:k,...N},W=!U&&L.length>0?Se.jsx(j,{fieldPathId:o,schema:d,errors:L,registry:c}):void 0;return Se.jsx(x,{fieldPathId:o,id:S,schema:d,label:(D||d.title)??"",disabled:n||Array.isArray(k)&&0===k.length,uiSchema:f,required:p,readonly:!!m,registry:c,displayLabel:V,errors:W,onChange:l,onKeyRename:Gi,onKeyRenameBlur:Gi,onRemoveProperty:Gi,children:Se.jsx(z,{id:S,name:r,schema:d,label:(D||d.title)??"",disabled:n||Array.isArray(k)&&0===k.length,uiSchema:f,autofocus:h,readonly:m,required:p,registry:c,multiple:!1,rawErrors:L,hideError:U,hideLabel:!V,errorSchema:B,placeholder:P,onChange:e=>{if(n||m)return;const r=ta(k,F,e),t=ta(k,F,T),a=ra(g,i,r,t,d);a&&ut(a,F,e),l(a,o.path,void 0,S)},onBlur:a,onFocus:s,value:T,options:H,htmlName:o.name})})}function oa(e){const{name:r,disabled:t=!1,errorSchema:n,formData:i,fieldPathId:o,onBlur:a,onChange:l,onFocus:u,options:s,readonly:c,registry:f,required:d=!1,schema:h,uiSchema:m}=e,{schemaUtils:p}=f,v=Pi(i??null),y=oe.useMemo((()=>s.map((e=>p.retrieveSchema(e,i)))),[s,p,v]),[b,g]=oe.useState((()=>{const e=ct(h);return p.getClosestMatchingOption(i,y,0,e)})),w=oe.useRef(!1),k=oe.useRef(i),$=oe.useRef(o.$id);oe.useEffect((()=>{const e=k.current,r=$.current;if(k.current=i,$.current=o.$id,!Tr(i,e)&&o.$id===r){if(w.current)return void(w.current=!1);const e=ct(h),r=p.getClosestMatchingOption(i,y,b,e);r!==b&&g(r)}}));const S=`${o.$id}${h.oneOf?"__oneof_select":"__anyof_select"}`,E=oe.useCallback((e=>{if(t||c)return;const r=void 0!==e?parseInt(e,10):-1;if(r===b)return;const n=ra(p,i,r>=0?y[r]:void 0,b>=0?y[b]:void 0,h);g(r),w.current=!0,l(n,o.path,void 0,S)}),[b,y,t,c,h,p,i,o,l,S]),{widgets:j,fields:x,translateString:O,globalUiOptions:A}=f,{SchemaField:C}=x,_=wi("MultiSchemaFieldTemplate",f,A),I=ro(f,h,d,m),D=Vi(i),{widget:P="select",placeholder:F,autofocus:q,autocomplete:N,title:T=h.title,...R}=ar(m,A),M=_i({type:"number"},P,j),z=n?.[Fe]??[],U={...n};delete U[Fe];const L=p.getDisplayLabel(h,m,A),B=b>=0&&y[b]||null;let V;if(B){const{required:e,type:r}=h,t={};e&&(t.required=e),void 0===r||"type"in B||(t.type=r),V=Object.keys(t).length>0?ht(t,B):B}let H=[];Me in h&&m&&Me in m?Array.isArray(m[Me])?H=m[Me]:console.warn(`uiSchema.oneOf is not an array for "${T||r}"`):_e in h&&m&&_e in m&&(Array.isArray(m[_e])?H=m[_e]:console.warn(`uiSchema.anyOf is not an array for "${T||r}"`));let W=m;b>=0&&H.length>b&&(W=H[b]);const G=T?yo.TitleOptionPrefix:yo.OptionPrefix,K=T?[T]:[],J=y.map(((e,r)=>{const{title:t=e.title}=ar(H[r]);return{label:t||O(G,K.concat(String(r+1))),value:r}})),Z=!I||D?Se.jsx(M,{id:S,name:`${r}${h.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:E,onBlur:a,onFocus:u,disabled:t||0===J.length,multiple:!1,rawErrors:z,errorSchema:U,value:b>=0?b:void 0,options:{enumOptions:J,...R},registry:f,placeholder:F,autocomplete:N,autofocus:q,label:T??r,hideLabel:!L,readonly:c}):void 0,Y=V&&"null"!==V.type&&Se.jsx(C,{...e,schema:V,uiSchema:W})||null;return Se.jsx(_,{schema:h,registry:f,uiSchema:m,selector:Z,optionSchemaField:Y})}function aa(e){const{formData:r,onChange:t,fieldPathId:n}=e;return oe.useEffect((()=>{void 0===r&&t(null,n.path)}),[n,r,t]),null}Zo.TEST_IDS=Uo;const la=/\.([0-9]*0)*$/,ua=/[0.]0*$/;function sa(e){const{registry:r,onChange:t,formData:n,value:i}=e,[o,a]=oe.useState(i),{StringField:l}=r.fields,u=je();let s=n;const c=oe.useCallback(((e,r,n,i)=>{a(e);const o="string"==typeof e?e.replace(u,"."):e,l=`${o}`.startsWith(".")?`0${o}`:o,s="string"==typeof l&&la.exec(l)?xe(l.replace(ua,"")):xe(l);t(s,r,n,i)}),[t,u]);if("string"==typeof o&&"number"==typeof s){const e=o.replace(u,"."),r=String(s).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^(${r})?\\.?0*$`);e.match(t)&&(s=o)}let f=s;if("number"==typeof s&&"."!==u){const{schema:t,uiSchema:n}=e,{schemaUtils:i,widgets:o}=r,{defaultWidget:a}=Ji(t,n,i,o),{widget:l=a,inputType:c}=ar(n);"text"===l&&"number"!==c&&(f=String(s).replace(".",u))}return Se.jsx(l,{...e,formData:f,onChange:c})}var ca={af:"",applyfunction:"",ic:"",invisiblecomma:"",invisibletimes:"",it:"",lrm:"",negativemediumspace:"",negativethickspace:"",negativethinspace:"",negativeverythinspace:"",nobreak:"",rlm:"",shy:"",zerowidthspace:"",zwj:"",zwnj:"",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:"\t",newline:"\n",emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:" ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"},fa=32,da=13,ha=10,ma=96,pa=126,va=91,ya=94,ba=62,ga=35,wa=45,ka=61,$a=92,Sa=42,Ea=95,ja=60,xa=93,Oa=33,Aa=58,Ca=102,_a=104,Ia=119,Da=116,Pa=63,Fa=46,qa=47,Na=39,Ta=34,Ra=43,Ma=124,za=123,Ua=40,La=41,Ba=48,Va=57,Ha=65,Wa=90,Ga=97,Ka=122,Ja=128,Za=32,Ya=0,Xa=1,Qa=2,el=3,rl=4,tl=5,nl=6,il=7,ol=8,al=9,ll=10,ul=11,sl=12,cl=13,fl=14,dl=15,hl=16,ml=18,pl=19,vl=20,yl=21,bl=22,gl=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,wl={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"},kl={};function $l(e){if(!e)return kl;var r={};for(var t in e){var n=t.toLowerCase(),i=wl[n];if(i)r[i]=e[t];else{var o=t.indexOf(":");-1===o?r[t]=e[t]:r[t.slice(0,o)+t[o+1].toUpperCase()+t.slice(o+2)]=e[t]}}return r}var Sl=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function El(e){return-1===e.indexOf("&")?e:e.replace(gl,((e,r)=>{var t,n=ca[t=r]||ca[t.toLowerCase()];if(n)return n;if("#"===r[0]){var i="x"===r[1]||"X"===r[1]?Number.parseInt(r.slice(2),16):Number.parseInt(r.slice(1),10);return 0===i||i>=55296&&i<=57343||i>1114111?"�":i<=65535?String.fromCharCode(i):String.fromCharCode(55296+(i-65536>>10),56320+(i-65536&1023))}return e}))}var jl=/(javascript|vbscript|data(?!:image)):/i;function xl(e){if(jl.test(e))return null;if(-1===e.indexOf("%"))return e;try{let r=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(jl.test(r))return null}catch{return null}return e}var Ol,Al,Cl={};for(Ol=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],Al=0;Al<Ol.length;Al++)Cl[Ol[Al]]="a";for(Cl[231]=Cl[199]="c",Cl[240]=Cl[208]="d",Ol=[200,201,202,203,233,232,234,235],Al=0;Al<Ol.length;Al++)Cl[Ol[Al]]="e";for(Ol=[207,239,206,238,205,237,204,236],Al=0;Al<Ol.length;Al++)Cl[Ol[Al]]="i";for(Cl[209]=Cl[241]="n",Ol=[248,216,339,338,213,245,212,244,211,243,210,242],Al=0;Al<Ol.length;Al++)Cl[Ol[Al]]="o";for(Ol=[220,252,219,251,218,250,217,249],Al=0;Al<Ol.length;Al++)Cl[Ol[Al]]="u";function _l(e){for(var r="",t=-1,n=e.length,i=0;i<n;i++){var o=e.charCodeAt(i);if(o>=Ga&&o<=Ka||o>=Ba&&o<=Va)t<0&&(t=i);else if(o>=Ha&&o<=Wa)t>=0&&(r+=e.slice(t,i),t=-1),r+=String.fromCharCode(o+Za);else if(o!==fa&&o!==wa){t>=0&&(r+=e.slice(t,i),t=-1);var a=Cl[o];a&&(r+=a)}else t>=0&&(r+=e.slice(t,i),t=-1),r+="-"}return t>=0&&(r+=e.slice(t)),r}function Il(e,r,t){return e.startsWith(r,t)}Cl[376]=Cl[255]=Cl[221]=Cl[253]="y";var Dl=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function Pl(e){let r=e.toLowerCase();if(Dl.has(r))return!0;let t=r.indexOf(":");return-1!==t&&(r=r.slice(t+1),Dl.has(r))}var Fl=(()=>{var e,r=new Uint8Array(128);for(r[9]=1,r[ha]=3,r[12]=1,r[da]=3,r[fa]=1,e=Oa;e<=qa;e++)r[e]=4;for(e=Aa;e<=64;e++)r[e]=4;for(e=va;e<=ma;e++)r[e]=4;for(e=za;e<=pa;e++)r[e]=4;for(e=Ba;e<=Va;e++)r[e]=16;for(e=Ha;e<=Wa;e++)r[e]=8;for(e=Ga;e<=Ka;e++)r[e]=8;return r})(),ql=/[\p{P}\p{S}]/u,Nl=/\p{Zs}/u,Tl=[];function Rl(e,r,t){let n=t??e.length;for(;r<n&&(" "===e[r]||"\t"===e[r]);)r++;return r}function Ml(e){if(!e)return!1;for(var r in e)return!0;return!1}var zl=/^\n+/;function Ul(e){if((e.type===sl||e.type===ll)&&e.a)return[];if(e.type===hl){var r=e.children;return r?r.flatMap(Ul):[]}return e.type===vl?e.text?.trim()?[e]:[]:e.type===ll&&e.children?[{...e,children:e.children?.flatMap(Ul)}]:[e]}function Ll(e){for(var r=0;r<e.length;r++){if(e[r].type===ll){var t=e[r],n=!1;if(t.c&&r===e.length-1){var i=void 0===t.j?t.a?t.e||"":(t.e||"")+(t.h||""):t.j,o=`</${String(t.tag).toLowerCase()}>`,a=i.toLowerCase().indexOf(o);-1!==a&&i.slice(a+o.length).replace(/<\/[a-z][a-z0-9-]*\s*>/gi,"").trim()&&(n=!0)}n||(t.c=!1)}"children"in e[r]&&e[r].children&&Ll(e[r].children)}}function Bl(e,r,t,n){var i;return i=void 0===r?function(e){var r="";for(var t in e){var n=e[t];!0===n?r+=` ${t}`:void 0!==n&&null!=n&&!1!==n&&(r+=` ${t}="${String(n)}"`)}return r}(t):r.length>0&&r.charCodeAt(0)>fa?` ${r}`:r,`<${e}${i}${n}`}function Vl(e){var r=e.tag,t=e.type===sl,n=e,i=n.b,o=`</${r}>`;if(!t&&n.a)return{kind:"literal",literal:(n.h||o)+(n.e||"")};if(t)return e.a?{kind:"literal",literal:e.h||o}:e.m?{kind:"literal",literal:e.m}:{kind:"literal",literal:Bl(r,i,e.attrs," />")};var a=Bl(r,i,e.attrs,">"),l=n.children,u=null!=l&&l.length>0;if(n.c&&void 0!==n.j)return u?{kind:"sandwich",open:a,close:o}:{kind:"literal",literal:n.j};if(n.c&&!u)return{kind:"literal",literal:a+(n.e||"")+(n.h||o)};if(null!=l&&l.length>0){for(var s="",c=0;c<l.length;c++){var f=l[c];if(f.type!==vl)return{kind:"sandwich",open:a,close:o};s+=f.text}return{kind:"literal",literal:a+s+o}}var d=n.e||"";return d&&-1!==d.indexOf(o)?{kind:"literal",literal:a+d}:{kind:"literal",literal:a+d+o}}function Hl(e){return null==e||!1!==e.tagfilter}function Wl(e,r,t){if(-1===r.indexOf("."))return e?.[r]||t;for(var n=e,i=r.split("."),o=0;o<i.length&&(n=n?.[i[o]],void 0!==n);)o++;return n||t}function Gl(...e){return e.filter(Boolean).join(" ")}var Kl=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),Jl=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Zl(e){return Kl.has(e.toLowerCase())}function Yl(e){return Jl.lastIndex=0,e.replace(Jl,((e,r,t,n)=>`<${r}${t}${n}`))}function Xl(e,r){var t,n=e||{},i=n.slugify;if(i){var o=i;t=e=>o(e,_l)}else t=_l;return{disableAutoLink:n.disableAutoLink,disableFrontmatter:n.disableFrontmatter,disableParsingRawHTML:n.disableParsingRawHTML,enforceAtxHeadings:n.enforceAtxHeadings,evalUnserializableExpressions:n.evalUnserializableExpressions,forceBlock:n.forceBlock,forceInline:void 0===r?n.forceInline:r,ignoreHTMLBlocks:n.ignoreHTMLBlocks,optimizeForStreaming:n.optimizeForStreaming,preserveFrontmatter:n.preserveFrontmatter,sanitizer:n.sanitizer||xl,slugify:t,tagfilter:Hl(n)}}var Ql=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,eu=/^<[A-Z]/,ru=["script","pre","style","textarea"],tu=new Set(ru),nu=/<(?:pre|script|style|textarea)\b/i,iu=/<(?:pre|script|style|textarea)\b/iy,ou=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,au=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,lu=new Uint8Array(128);(()=>{for(var e=[ma,Sa,Ea,pa,ka,va,Oa,ja,$a,38,ha,_a,Ia,Ca],r=0;r<e.length;r++)lu[e[r]]=1})();var uu=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function su(e,r,t){for(var n=r,i=t;n<i&&(e.charCodeAt(n)===fa||9===e.charCodeAt(n));)n++;if(n>=i)return!1;e.charCodeAt(n)===Ma&&n++;for(var o=0;n<i;){for(;n<i&&(e.charCodeAt(n)===fa||9===e.charCodeAt(n));)n++;if(n>=i)break;if(e.charCodeAt(n)===Ma&&o>0){for(var a=n+1;a<i&&(e.charCodeAt(a)===fa||9===e.charCodeAt(a));)a++;if(a>=i)return!0}if(e.charCodeAt(n)===Aa&&n++,n>=i||e.charCodeAt(n)!==wa)return!1;for(;n<i&&e.charCodeAt(n)===wa;)n++;for(n<i&&e.charCodeAt(n)===Aa&&n++,o++;n<i&&(e.charCodeAt(n)===fa||9===e.charCodeAt(n));)n++;if(n<i){if(e.charCodeAt(n)!==Ma)return!1;n++}}return o>0}var cu=/[\u0000-\u001F\u007F]/g,fu={action:1,background:1,cite:1,data:1,formaction:1,href:1,longdesc:1,poster:1,src:1,"xlink:href":1},du=/&#(x[0-9a-f]+|[0-9]+);?/gi;function hu(e,r,t){if(t&&r.charCodeAt(0)===za)return!1;var n=e.charCodeAt(0),i=e.charCodeAt(1);if(!(111!==n&&79!==n||110!==i&&78!==i))return!(t&&""===r);var o=e.toLowerCase();if("srcdoc"===o)return!0;if("style"===o)return/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(r);if(1===fu[o]){var a=function(e){return-1===e.indexOf("&#")?e:e.replace(du,((e,r)=>{var t=120===r.charCodeAt(0)||88===r.charCodeAt(0)?Number.parseInt(r.slice(1),16):Number.parseInt(r,10);return t>0&&t<=1114111?String.fromCodePoint(t):e}))}(El(r));if(null===xl(a))return!0;var l=a.replace(cu,"");return l!==a&&null===xl(l)}return!1}function mu(e){return"<"+(e.f?"/":"")+e.tag+e.g+e.b+(e.n?e.r?" />":"/>":">")}function pu(e,r,t,n){for(var i=[],o=r,a=0;a<n.length;a+=2){var l=n[a];if(l>o){var u=e.slice(o,l).trim();u&&i.push(u)}o=n[a+1]}if(o<t){var s=e.slice(o,t).trim();s&&i.push(s)}return i.join(" ")}function vu(e,r){if(e.charCodeAt(r)!==ja)return null;let t=r+1,n=e.length,i=!1;e.charCodeAt(t)===qa&&(t++,i=!0);let o=t,a=e.charCodeAt(t);if(!(a>=Ga&&a<=Ka||a>=Ha&&a<=Wa))return null;for(;t<n&&(e.charCodeAt(t)>=Ga&&e.charCodeAt(t)<=Ka||e.charCodeAt(t)>=Ha&&e.charCodeAt(t)<=Wa||e.charCodeAt(t)>=Ba&&e.charCodeAt(t)<=Va||e.charCodeAt(t)===wa);)t++;let l=e.slice(o,t);if(!l)return null;let u=l.charCodeAt(0),s=u>=Ha&&u<=Wa||-1!==l.indexOf("-"),c=t;for(;t<n&&(e.charCodeAt(t)===fa||9===e.charCodeAt(t)||e.charCodeAt(t)===ha);)t++;let f=e.slice(c,t);if(t===c&&t<n){var d=e.charCodeAt(t);if(d!==ba&&d!==qa)return null}let h=t,m={},p=!1;for(var v=null;t<n;){let r=e.charCodeAt(t);if(r===ba)return{r:p,u:s,f:i,b:v?pu(e,h,t,v):e.slice(h,t),q:null!=v,n:!1,g:f,attrs:m,end:t+1,tag:l};if(r!==fa&&9!==r&&r!==ha){if(r===qa&&t+1<n&&e.charCodeAt(t+1)===ba)return p=t>h&&e.charCodeAt(t-1)===fa,{r:p,u:s,f:i,b:v?pu(e,h,t,v):e.slice(h,t),q:null!=v,n:!0,g:f,attrs:m,end:t+2,tag:l};var y,b,g=t,w=e.charCodeAt(t);if(!(w>=Ga&&w<=Ka||w>=Ha&&w<=Wa||w===Ea||w===Aa))return null;for(t++;t<n&&((O=e.charCodeAt(t))>=Ga&&O<=Ka||O>=Ha&&O<=Wa||O>=Ba&&O<=Va||O===Ea||O===Fa||O===Aa||O===wa);)t++;for(var k=e.slice(g,t),$=t;t<n&&(e.charCodeAt(t)===fa||9===e.charCodeAt(t));)t++;if(e.charCodeAt(t)===ka){for(t++;t<n&&(e.charCodeAt(t)===fa||9===e.charCodeAt(t));)t++;var S=e.charCodeAt(t);if(S===Ta||S===Na){t++;for(var E=t;t<n&&e.charCodeAt(t)!==S;)t++;if(t>=n)return null;if(y=e.slice(E,t),t++,t<n){var j=e.charCodeAt(t);if(j!==fa&&9!==j&&j!==ha&&j!==ba&&j!==qa)return null}b=t}else if(S===za){var x=1;for(E=t,t++;t<n&&x>0;){var O;(O=e.charCodeAt(t))===za?x++:125===O&&x--,t++}y=e.slice(E,t),b=t}else{for(E=t;t<n;){var A=e.charCodeAt(t);if(A===fa||9===A||A===ba||A===ha||A===Ta||A===Na||A===ka||A===ja||A===ma)break;t++}if(t===E)return null;y=e.slice(E,t),b=t}}else y="",b=$;hu(k,y,s)?(null===v&&(v=[]),v.push(g,b)):m[k]=y}else t++}return null}function yu(e){var r=e.indexOf("<");if(-1===r)return e;for(var t="",n=0,i=!1;-1!==r;){var o=vu(e,r);o?(o.q&&(t+=e.slice(n,r)+mu(o),n=o.end,i=!0),r=e.indexOf("<",o.end)):r=e.indexOf("<",r+1)}return i?t+e.slice(n):e}function bu(e,r,t){let n=e.length;if(e.charCodeAt(r)!==va)return null;let i=r+1<n&&e.charCodeAt(r+1)===ya,o=r+1;for(;o<n;){if((v=e.charCodeAt(o))===xa){o++;break}if(v===va)return null;v===$a&&o+1<n&&o++,o++}if(o>n||e.charCodeAt(o-1)!==xa)return null;let a=e.slice(r+1,o-1);if(a.length>999)return null;let l=$u(a);if(!l||o>=n||e.charCodeAt(o)!==Aa)return null;o++;let u=!1;for(;o<n;){let r=e.charCodeAt(o);if(r===fa||9===r)o++;else{if(r!==ha||u)break;u=!0,o++}}if(i){let r=e.indexOf("\n",o),i=e.slice(o,r<0?n:r).trim();return t[l]={target:i,title:void 0},r<0?n:r+1}var s;if(o<n&&e.charCodeAt(o)===ja){o++;for(var c=o;o<n&&e.charCodeAt(o)!==ba&&e.charCodeAt(o)!==ha;)e.charCodeAt(o)===$a&&o+1<n&&o++,o++;if(o>=n||e.charCodeAt(o)!==ba)return null;s=e.slice(c,o),o++;for(var f=e.indexOf("\n",o),d=f<0?n:f,h=o;h<d&&(e.charCodeAt(h)===fa||9===e.charCodeAt(h));)h++;if(h<d){if(h===o)return null;var m=e.charCodeAt(h);if(m!==Ta&&m!==Na&&m!==Ua)return null}}else{c=o;for(var p=0;o<n;){var v;if((v=e.charCodeAt(o))===Ua)p++;else if(v===La){if(0===p)break;p--}else{if(v===fa||9===v||v===ha)break;v===$a&&o+1<n&&o++}o++}if(!(s=e.slice(c,o)))return null}for(;o<n&&(e.charCodeAt(o)===fa||9===e.charCodeAt(o));)o++;var y,b=e.indexOf("\n",o),g=b<0?n:b,w=!1,k=o,$=o;if(o===g&&o<n)for($=o+1;$<n&&(e.charCodeAt($)===fa||9===e.charCodeAt($));)$++;if($<n){var S=e.charCodeAt($);if(S===Ta||S===Na||S===Ua){for(var E=S===Ua?41:S,j=$+1,x=j;j<n;){var O=e.charCodeAt(j);if(O===E){for(var A=j+1;A<n&&(e.charCodeAt(A)===fa||9===e.charCodeAt(A));)A++;(A>=n||e.charCodeAt(A)===ha)&&(y=e.slice(x,j),w=!0,k=A<n?A+1:n);break}if(O===$a&&j+1<n)j+=2;else{if(O===ha&&j+1<n&&e.charCodeAt(j+1)===ha)break;j++}}if(!w&&$===o)return null}}if(w)return t[l]||(t[l]={target:El(Eu(s)),title:void 0===y?y:El(Eu(y))}),k;for(;o<g&&(e.charCodeAt(o)===fa||9===e.charCodeAt(o));)o++;return o<g?null:(t[l]||(t[l]={target:El(Eu(s)),title:y}),b<0?n:b+1)}var gu,wu=new Uint8Array(Fl);for(wu[ga]|=32,wu[ba]|=32,wu[wa]|=96,wu[Ra]|=32,wu[Sa]|=96,wu[Ea]|=96,wu[ma]|=96,wu[pa]|=96,wu[ja]|=96,wu[va]|=64,wu[Oa]|=64,wu[Ma]|=32,gu=Ba;gu<=Va;gu++)wu[gu]|=32;function ku(e){if(e.indexOf("[")<0&&e.indexOf("]")<0)return!1;for(var r=0;r<e.length;r++)if(e.charCodeAt(r)!==$a){if(e.charCodeAt(r)===va||e.charCodeAt(r)===xa)return!0}else r++;return!1}function $u(e){for(var r=e.length,t=!0,n=r>0,i=0;i<r;i++){var o=e.charCodeAt(i);if(o===fa){if(t){n=!1;break}t=!0}else{if(o<33||o>126||o>=Ha&&o<=Wa){n=!1;break}t=!1}}if(n&&!t)return e;var a=e.replace(/\s+/g," ").trim();return-1!==a.indexOf("ẞ")?a.replace(/\u1E9E/g,"ss").toLowerCase():a.toLowerCase()}function Su(e){return e<Ja?wu[e]:160===e?1:0}function Eu(e){return-1===e.indexOf("\\")?e:e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var ju=null,xu=-1,Ou=-1;function Au(e,r){if(r>=xu&&r<=Ou&&e===ju)return Ou;var t=e.indexOf("\n",r),n=t<0?e.length:t;return ju=e,xu=r,Ou=n,n}function Cu(e,r){let t=Au(e,r);return t<e.length?t+1:t}function _u(e,r,t){for(;r<t;){let t=e.charCodeAt(r);if(t!==fa&&9!==t)break;r++}return r}function Iu(e,r){let t=Cu(e,r);for(;t<e.length;){if(Nu(e,t,Au(e,t)))return t;t=Cu(e,t)}return e.length}function Du(e,r,t,n){let i=0;for(;r+i<t&&e.charCodeAt(r+i)===n;)i++;return i}var Pu=0,Fu=0;function qu(e,r,t){for(Pu=0,Fu=0;r+Fu<t;){let t=e.charCodeAt(r+Fu);if(9===t)Pu+=4-Pu%4;else{if(t!==fa)break;Pu++}Fu++}}function Nu(e,r,t){return _u(e,r,t)>=t}function Tu(e,r){if(!e)return e;var t=r.v||(r.v=Object.create(null)),n=t[e];if(void 0===n)return t[e]=0,e;for(var i=n+1,o=`${e}-${i}`;void 0!==t[o];)o=`${e}-${++i}`;return t[e]=i,t[o]=0,o}function Ru(e,r,t,n){let i=Au(e,r);if(qu(e,r,i),Pu>3)return null;let o=r+Fu;if(e.charCodeAt(o)!==ga)return null;let a=Du(e,o,i,35);if(a<1||a>6||(o+=a,o<i&&e.charCodeAt(o)!==fa&&9!==e.charCodeAt(o)))return null;o=_u(e,o,i);for(var l=i;l>o&&e.charCodeAt(l-1)===fa;)l--;for(var u=l;l>o&&e.charCodeAt(l-1)===ga;)l--;if(l<u)if(l===o||e.charCodeAt(l-1)===fa)for(;l>o&&e.charCodeAt(l-1)===fa;)l--;else l=u;let s=us(e.slice(o,l),!1,t,n);return{node:{type:al,level:a,children:s,id:""},end:Cu(e,i)}}function Mu(e,r){let t=Au(e,r);if(qu(e,r,t),Pu>3)return null;let n=r+Fu,i=e.charCodeAt(n);if(i!==wa&&i!==Sa&&i!==Ea)return null;let o=0;for(;n<t;){let r=e.charCodeAt(n);if(r===i)o++;else if(r!==fa&&9!==r)return null;n++}return o<3?null:{node:{type:Qa},end:Cu(e,t)}}var zu=0,Uu=0,Lu="";function Bu(e,r){let t=Au(e,r);if(qu(e,r,t),Pu>3)return null;let n=Pu,i=r+Fu,o=e.charCodeAt(i);if(o!==ma&&o!==pa)return null;let a=Du(e,i,t,o);if(a<3)return null;i+=a;let l=_u(e,i,t),u=t;if(o===ma)for(let r=l;r<t;r++)if(e.charCodeAt(r)===ma)return null;for(;u>l&&(e.charCodeAt(u-1)===fa||9===e.charCodeAt(u-1));)u--;let s=e.slice(l,u),c="",f="",d=s.indexOf(" ");var h;if(-1===d?c=s:(c=s.slice(0,d),f=s.slice(d+1).trim()),c=Eu(c),f){uu.lastIndex=0;for(var m;null!=(m=uu.exec(f));)h||(h={}),h[m[1]]=void 0===m[2]?m[3]:m[2]}let p=Cu(e,t),v=e.length,y=e.length;var b,g;o===zu&&a===Uu?b=Lu:(b=String.fromCharCode(o).repeat(a),zu=o,Uu=a,Lu=b);for(var w=p;w<e.length;){var k=e.indexOf(b,w);if(-1===k)break;for(var $=k,S=0;$>0&&S<4&&e.charCodeAt($-1)===fa;)$--,S++;if(S<=3&&(0===$||e.charCodeAt($-1)===ha)){for(var E=k+a;E<e.length&&e.charCodeAt(E)===o;)E++;var j=Au(e,E);if(Nu(e,E,j)){v=$,y=Cu(e,j);break}}w=k+1}if(0===n)g=v>p&&e.charCodeAt(v-1)===ha?e.slice(p,v-1):e.slice(p,v);else{g="";for(var x=p;x<v;){var O=Au(e,x);qu(e,x,O);var A=Math.min(Fu,n);g+=`${e.slice(x+A,O)}\n`,x=Cu(e,O)}g.length>0&&g.charCodeAt(g.length-1)===ha&&(g=g.slice(0,-1))}return{node:{type:el,lang:c||void 0,text:g,infoString:f||void 0,attrs:h},end:y}}function Vu(e,r,t){for(var n=0,i=r;i<t&&n<4;)9===e.charCodeAt(i)?n+=4-n%4:n++,i++;if(n<4)return"";for(var o="",a=4;a<n;a++)o+=" ";return o+e.slice(i,t)}function Hu(e,r){if(qu(e,r,Au(e,r)),Pu<4)return null;let t="",n=r;for(;n<e.length;){let r=Au(e,n);if(qu(e,n,r),Nu(e,n,r)){for(var i=`${Vu(e,n,r)}\n`,o=Cu(e,r);o<e.length;){var a=Au(e,o);if(!Nu(e,o,a)){qu(e,o,a),Pu>=4&&(t+=i,n=o);break}i+=`${Vu(e,o,a)}\n`,o=Cu(e,a)}if(n!==o)break;continue}if(Pu<4)break;let f=0,d=0;var l=0;for(let t=n;t<r&&d<4;t++){if(9===e.charCodeAt(t)){var u=4-d%4;d+u>4&&(l=d+u-4),d+=u}else d++;f++}var s="";if(l>0)for(var c=0;c<l;c++)s+=" ";t+=`${s+=e.slice(n+f,r)}\n`,n=Cu(e,r)}for(;t.length>0&&t.charCodeAt(t.length-1)===ha;)t=t.slice(0,-1);return t?{node:{type:el,lang:void 0,text:t,infoString:void 0,attrs:void 0},end:n}:null}function Wu(e,r,t,n){if(qu(e,r,Au(e,r)),Pu>3)return null;if(e.charCodeAt(r+Fu)!==ba)return null;let i,o="",a=r,l=!1,u=!1,s=!1;for(;a<e.length;){let r=Au(e,a);qu(e,a,r);let t=a+Fu;if(e.charCodeAt(t)===ba){let n=t+1;var c=Pu+1,f=!1;if(n<r){var d=e.charCodeAt(n);d===fa?(n++,c++,f=!0):9===d&&(f=!0)}for(var h="",m=!1,p=n;p<r;p++)if(9===e.charCodeAt(p)){m=!0;break}if(m){var v=c;if(f&&n<r&&9===e.charCodeAt(n)){for(var y=4-v%4,b=0;b<y-1;b++)h+=" ";v+=y,n++}for(var g=n;g<r;g++)if(9===e.charCodeAt(g)){for(var w=4-v%4,k=0;k<w;k++)h+=" ";v+=w}else h+=e[g],v++}else h=e.slice(n,r);if(!o&&!i){let t=h.match(/^\[!([A-Za-z]+)\]\s*$/);if(t){i=t[1].toUpperCase(),a=Cu(e,r);continue}}o+=`${h}\n`;var $=h.trimStart();$.startsWith("```")||$.startsWith("~~~")?s=!s:(h.startsWith(" ")||h.startsWith("\t"))&&(s=!0),u=$.length>0,a=Cu(e,r)}else{if(!o||Nu(e,a,r)||!u)break;if(Pu<4){var S=a+Fu,E=S<r?e.charCodeAt(S):0;if(E===ga||E===ba||E===ma||E===pa||E===ja||(E===wa||E===Sa||E===Ea)&&Mu(e,a)||(E===wa||E===Sa||E===Ra)&&S+1<r&&(e.charCodeAt(S+1)===fa||9===e.charCodeAt(S+1)))break;if(E>=Ba&&E<=Va){for(var j=S;j<r&&e.charCodeAt(j)>=Ba&&e.charCodeAt(j)<=Va;)j++;if(j<r&&(e.charCodeAt(j)===Fa||e.charCodeAt(j)===La))break}}if(s)break;o+=`${e.slice(a,r)}\n`,l=!0,a=Cu(e,r)}}if(!o&&!i)return null;var{inBlockQuote:x,l:O}=t;t.inBlockQuote=!0,l&&(t.l=!0);var A=t.i;t.i=A||!Nu(e,a,e.length);let C=Gs(o||"",t,n);return t.i=A,t.inBlockQuote=x,t.l=O,{node:{type:Ya,children:C,alert:i||void 0},end:a}}function Gu(e,r,t){for(var n=0,i=r;i<t;i++)9===e.charCodeAt(i)?n+=4-n%4:n++;return n}function Ku(e,r,t){if(qu(e,r,t),Pu>3)return null;var n=r+Fu;if(n>=t)return null;var i=e.charCodeAt(n),o=Pu,a=n,l=n;if(i===wa||i===Sa||i===Ra){if((a=n+1)<t&&e.charCodeAt(a)!==fa&&9!==e.charCodeAt(a)&&e.charCodeAt(a)!==ha)return null}else{if(!(i>=Ba&&i<=Va))return null;for(;l<t&&l-n<9;){var u=e.charCodeAt(l);if(u<Ba||u>Va)break;l++}if(!(l>n&&l<t))return null;var s=e.charCodeAt(l);if(s!==Fa&&s!==La)return null;if((a=l+1)<t&&e.charCodeAt(a)!==fa&&9!==e.charCodeAt(a)&&e.charCodeAt(a)!==ha)return null}var c=a,f=Gu(e,r,a),d=0,h=c,m=f;if(c>=t)return{ordered:i>=Ba&&i<=Va,marker:i>=Ba&&i<=Va?e[l]:e[n],start:i>=Ba&&i<=Va?Number.parseInt(e.slice(n,l),10):void 0,contentStart:c,contentCol:f+1,markerCol:o,isEmpty:!0};for(;h<t&&(e.charCodeAt(h)===fa||9===e.charCodeAt(h));)9===e.charCodeAt(h)?m+=4-m%4:m++,h++,d++;var p=h>=t;return p||m-f>4?(m=f+1,h=c+1,d=1):0===d&&(m=f+1,h=c,d=1),{ordered:i>=Ba&&i<=Va,marker:i>=Ba&&i<=Va?e[l]:e[n],start:i>=Ba&&i<=Va?Number.parseInt(e.slice(n,l),10):void 0,contentStart:h,contentCol:m,markerCol:o,isEmpty:p}}var Ju=0;function Zu(e,r,t,n){var i=0,o=r;for(Ju=0;o<t&&i<n;){var a=e.charCodeAt(o);if(9===a){var l=4-i%4;if(i+l>n){Ju=i+l-n,o++,i=n;break}i+=l}else{if(a!==fa)break;i++}o++}return o}function Yu(e,r,t,n){var i=Au(e,r),o=Ku(e,r,i);if(!o)return null;var a=[],l=r,u=o.contentCol,s="",c=o.isEmpty,f=!1,d=!1;if(!o.isEmpty){for(var h=!1,m=o.contentStart;m<i;m++)if(9===e.charCodeAt(m)){h=!0;break}if(h){var p="",v=Gu(e,r,o.contentStart),y=v-o.contentCol;if(y>0)for(var b=0;b<y;b++)p+=" ";for(var g=o.contentStart;g<i;g++)if(9===e.charCodeAt(g)){for(var w=4-v%4,k=0;k<w;k++)p+=" ";v+=w}else p+=e[g],v++;s=`${p}\n`}else s=`${e.slice(o.contentStart,i)}\n`}for(l=Cu(e,i);l<e.length;){var $=Au(e,l);qu(e,l,$);var S=e.charCodeAt(l+Fu);if(Pu<u&&(S===wa||S===Sa||S===Ea)&&Pu<=3&&Mu(e,l))break;var E=Ku(e,l,$);if(E&&E.ordered===o.ordered&&E.marker===o.marker&&E.markerCol<u)a.push({contentCol:u,raw:s,hasBlankAfter:f,isEmpty:c}),f&&(d=!0),u=E.contentCol,c=E.isEmpty,f=!1,s=E.isEmpty?"":`${e.slice(E.contentStart,$)}\n`,l=Cu(e,$);else if(Nu(e,l,$)){var j=Zu(e,l,$,u);if(Ju>0||j<$){for(var x="",O=0;O<Ju;O++)x+=" ";s+=`${x+e.slice(j,$)}\n`}else s+="\n";l=Cu(e,$);for(var A=!1,C=0;C<s.length;C++){var _=s.charCodeAt(C);if(_!==ha&&_!==da&&_!==fa&&9!==_){A=!0;break}}if(c&&!A){if(!(l<e.length))break;var I=Ku(e,l,Au(e,l));if(!I||I.ordered!==o.ordered||I.marker!==o.marker)break;f=!0}if(l<e.length){var D=Au(e,l);qu(e,l,D);var P=e.charCodeAt(l+Fu);if((P===wa||P===Sa||P===Ea)&&Pu<=3&&Mu(e,l))break;var F=Ku(e,l,D);if(F&&F.ordered===o.ordered&&F.marker===o.marker&&F.markerCol<u){f=!0;continue}if(!Nu(e,l,D)&&Pu<u)break}}else{if(!(Pu>=u)){for(var q=!1,N=0;N<s.length;N++){var T=s.charCodeAt(N);if(T!==ha&&T!==da&&T!==fa&&9!==T){q=!0;break}}if(!f&&q&&!c){var R=l+Fu,M=e.charCodeAt(R);if(M!==ga&&M!==ba&&M!==ja&&M!==ma&&M!==pa&&(M!==wa&&M!==Sa&&M!==Ea&&M!==Ra||null==Mu(e,l)&&null==Ku(e,l,$))&&!(M>=Ba&&M<=Va&&null!=Ku(e,l,$))){s+=`${e.slice(R,$)}\n`,l=Cu(e,$);continue}}break}var z=Zu(e,l,$,u);if(Ju>0){for(var U="",L=u,B=0;B<Ju;B++)U+=" ",L++;for(var V=z;V<$;V++)if(9===e.charCodeAt(V)){for(var H=4-L%4,W=0;W<H;W++)U+=" ";L+=H}else U+=e[V],L++;s+=`${U}\n`}else s+=`${e.slice(z,$)}\n`;l=Cu(e,$)}}if(a.push({contentCol:u,raw:s,hasBlankAfter:f,isEmpty:c}),0===a.length)return null;var G=d;if(!G)for(var K=0;K<a.length;K++){if(a[K].hasBlankAfter&&K<a.length-1){G=!0;break}if(!a[K].isEmpty){for(var J=a[K].raw,Z=J.length,Y=0,X=!1,Q=!1,ee=!1,re=!1,te=0,ne=0,ie=-1;Y<Z;){var oe=J.indexOf("\n",Y);if(oe<0&&(oe=Z),re){qu(J,Y,oe);for(var ae=J.slice(Y+Fu,oe),le=0;le<ae.length&&ae.charCodeAt(le)===te;)le++;le>=ne&&""===ae.slice(le).trim()&&(re=!1),Y=oe<Z?oe+1:Z}else if(Nu(J,Y,oe))ie>=0?ee=!0:X&&(Q=!0),Y=oe<Z?oe+1:Z;else{if(qu(J,Y,oe),ie>=0){if(Pu>=ie){Y=oe<Z?oe+1:Z;continue}var ue=Ku(J,Y,oe);if(ue&&ue.markerCol<ie&&ue.contentCol<=ie){Y=oe<Z?oe+1:Z;continue}if(ue){Y=oe<Z?oe+1:Z;continue}ie=-1,ee&&(Q=!0,ee=!1)}var se=J.slice(Y+Fu,oe),ce=se.charCodeAt(0);if((ce===ma||ce===pa)&&Pu<=3){for(var fe=0;fe<se.length&&se.charCodeAt(fe)===ce;)fe++;if(fe>=3){if(Q&&X){G=!0;break}re=!0,te=ce,ne=fe,X=!0,Y=oe<Z?oe+1:Z;continue}}var de=Pu<=3?Ku(J,Y,oe):null;if(de&&X){if(Q){G=!0;break}ie=de.contentCol,ee=!1,Y=oe<Z?oe+1:Z,X=!0}else{if(Q){G=!0;break}X=!0,Y=oe<Z?oe+1:Z}}}if(G)break}}for(var he=[],me=0;me<a.length;me++){for(var pe=a[me],ve=pe.raw,ye=ve.length;ye>0&&ve.charCodeAt(ye-1)===ha;)ye--;var be,ge=ye<ve.length?ve.slice(0,ye):ve,we=null;if(ge.length>=3&&ge.charCodeAt(0)===va){var ke=ge[1];(" "===ke||"x"===ke||"X"===ke)&&ge.charCodeAt(2)===xa&&(we={type:ol,completed:"x"===ke||"X"===ke},ge=ge.slice(3))}if(pe.isEmpty&&""===ge.trim())be=[];else if(G){var $e=t.inList;t.inList=!0;var Se=t.i;t.i=Se||me!==a.length-1,be=Gs(ge,t,n),t.i=Se,t.inList=$e}else{var Ee=t.inList;t.inList=!0;var je=t.i;if(t.i=je||me!==a.length-1,be=Gs(ge,t,n),t.i=je,t.inList=Ee,1===be.length&&be[0].type===hl)be=be[0].children;else if(t.p){var xe=[];t.p.push({src:be,dest:xe,unwrap:!0}),be=xe}else{for(var Oe=[],Ae=0;Ae<be.length;Ae++)if(be[Ae].type===hl)for(var Ce=be[Ae].children,_e=0;_e<Ce.length;_e++)Oe.push(Ce[_e]);else Oe.push(be[Ae]);be=Oe}}if(we){var Ie=[we,{type:vl,text:" "}];if(t.p)t.p.push({src:be,dest:Ie,unwrap:!1});else for(var De=0;De<be.length;De++)Ie.push(be[De]);he.push(Ie)}else he.push(be)}return{node:{type:o.ordered?dl:bl,start:o.ordered?o.start:void 0,items:he},end:l}}var Xu=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function Qu(e,r,t){let n={};for(let[a,l]of Object.entries(e)){let e=a.toLowerCase();if("style"===e&&"string"==typeof l){let e={},r=[],t=0,i=0;for(let e=0;e<l.length;e++){let n=l.charCodeAt(e);n===Ua?t++:n===La?t--:59===n&&0===t&&(r.push(l.slice(i,e)),i=e+1)}i<l.length&&r.push(l.slice(i));let o=!1;r.forEach((r=>{let t=r.indexOf(":");if(-1===t)return;let n=r.slice(0,t).trim(),i=r.slice(t+1).trim();if(n&&i){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(i))return void(o=!0);let r=-1===n.indexOf("-")?n:n.replace(/-([a-z])/g,((e,r)=>r.toUpperCase()));e[r]=i}})),!o&&Object.keys(e).length>0&&(n[a]=e)}else if("href"!==e&&"src"!==e||!t?.sanitizer)if(""===l)n[a]=!0;else if(l.length>=2&&l.charCodeAt(0)===za&&125===l.charCodeAt(l.length-1)){var i=l.slice(1,-1);if(i.length>0){var o=i.charCodeAt(0);if(o===va||o===za)try{n[a]=JSON.parse(i);continue}catch{}}if("true"===i){n[a]=!0;continue}if("false"===i){n[a]=!1;continue}if(t?.evalUnserializableExpressions)try{n[a]=(0,eval)(`(${i})`);continue}catch{}n[a]=i}else n[a]=l;else{let i=t.sanitizer(l,r,e);null!=i&&(n[a]=i)}}return n}function es(e,r,t){let n=r.length;if(0===n)return t;var i=r.charCodeAt(0);if(!(i>=Ha&&i<=Wa||i>=Ga&&i<=Ka)){for(var o=String.fromCharCode(i),a=e.length-n,l=t;l<=a;){var u=e.indexOf(o,l);if(-1===u||u>a)return-1;for(var s=!0,c=1;c<n;c++){var f=e.charCodeAt(u+c),d=r.charCodeAt(c);if(f>=Ha&&f<=Wa&&(f+=Za),d>=Ha&&d<=Wa&&(d+=Za),f!==d){s=!1;break}}if(s)return u;l=u+1}return-1}i>=Ha&&i<=Wa&&(i+=Za);for(let o=t;o<=e.length-n;o++){var h=e.charCodeAt(o);if(h>=Ha&&h<=Wa&&(h+=Za),h!==i)continue;let t=!0;for(let i=1;i<n;i++){let n=e.charCodeAt(o+i),a=r.charCodeAt(i);if(n>=Ha&&n<=Wa&&(n+=Za),a>=Ha&&a<=Wa&&(a+=Za),n!==a){t=!1;break}}if(t)return o}return-1}var rs=-1;function ts(e,r,t){let n=t.toLowerCase(),i=`<${n}`,o=`</${n}`,a=1,l=r,u=e.length;for(rs=-1;l<u&&a>0;){let r=es(e,i,l),t=es(e,o,l);if(-1===t)return-1;if(-1!==r&&r<t){let t=vu(e,r);t?(t.tag.toLowerCase()===n&&!t.f&&!t.n&&!Pl(t.tag)&&a++,l=t.end):l=r+1}else{var s=t+o.length,c=s<u?e.charCodeAt(s):62;if((c===ba||c===fa||9===c||c===ha)&&(a--,0===a)){rs=t;let r=t+o.length;for(;r<u&&e.charCodeAt(r)!==ba;)r++;return r+1}l=t+1}}return-1}function ns(e,r,t,n){if(n.ignoreHTMLBlocks||n.disableParsingRawHTML)return null;var i=Au(e,r);if(qu(e,r,i),Pu>3&&!t.inHTML)return null;var o=r+Fu;if(e.charCodeAt(o)!==ja)return null;var a=e.indexOf(">",o+1);if(-1!==a&&a<i){var l=e.slice(o+1,a);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(l)||/^[^\s@]+@[^\s@]+$/.test(l))return null}var u=function(e,r){if(e.charCodeAt(r)!==ja)return 0;var t=r+1,n=e.length;if(e.charCodeAt(t)===Oa&&e.charCodeAt(t+1)===wa&&e.charCodeAt(t+2)===wa)return 2;if(e.charCodeAt(t)===Pa)return 3;if(e.charCodeAt(t)===Oa){var i=e.charCodeAt(t+1);if(i>=Ha&&i<=Wa)return 4;if("[CDATA["===e.slice(t+1,t+8))return 5}for(var o=e.charCodeAt(t)===qa,a=o?t+1:t,l=a;l<n;){var u=e.charCodeAt(l);if(!(u>=Ha&&u<=Wa||u>=Ga&&u<=Ka||u>=Ba&&u<=Va||u===wa))break;l++}if(l===a)return 0;var s=e.slice(a,l);if(tu.has(s.toLowerCase())){if(o)return 0;var c=e.charCodeAt(l);return c===fa||9===c||c===ba||c===ha||l>=n?1:0}if(Xu.has(s.toLowerCase())){if(o){for(var f=l;f<n&&(e.charCodeAt(f)===fa||9===e.charCodeAt(f));)f++;return f<n&&e.charCodeAt(f)===ba?6:0}var d=l<n?e.charCodeAt(l):-1;return d===fa||9===d||d===ba||d===ha||d===qa||-1===d?6:0}if(o){for(var h=l;h<n&&(e.charCodeAt(h)===fa||9===e.charCodeAt(h));)h++;if(h<n&&e.charCodeAt(h)===ba){var m=Au(e,r);if(""===e.slice(h+1,m).trim())return 7}}else{var p=Au(e,r),v=vu(e,r);if(v&&v.end<=p&&""===e.slice(v.end,p).trim())return 7}return 0}(e,o);if(u>=1&&u<=5){var s=e.length;if(1===u){for(var c=e.length,f=0;f<ru.length;f++){var d=es(e,`</${ru[f]}>`,o);d>=0&&d<c&&(c=d)}if(c<e.length){var h=e.indexOf(">",c);s=h>=0?Cu(e,h+1):e.length}}else{var m=2===u?"--\x3e":3===u?"?>":4===u?">":"]]>",p=e.indexOf(m,o);p>=0&&(s=Cu(e,p+m.length))}var v=e.slice(o,s);if(u>=2)return{node:{type:ul,text:v,s:!1,raw:!0},end:s};var y="div",b=v.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);b&&(y=b[1]);var g,w=vu(e,o),k={};w&&!w.f&&(k=Qu(w.attrs,y,n),g=w.g+w.b);var $,S,E,j=es(v,`</${y.toLowerCase()}`,0),x="";if(w?.f){E=v.slice(0,w.end-o);for(var O=v.slice(w.end-o);O.length>0&&O.charCodeAt(O.length-1)===ha;)O=O.slice(0,-1);O&&(S=yu(O))}else if(w&&!w.f){var A=w.end-o;if(-1===j){for(var C=v;C.length>0&&C.charCodeAt(C.length-1)===ha;)C=C.slice(0,-1);$=yu(C)}else{var _=A;v.charCodeAt(_)===ha&&_++;for(var I=j;I>_;){var D=v.charCodeAt(I-1);if(D!==fa&&9!==D&&D!==ha&&D!==da)break;I--}var P=v.slice(_,I);P&&(S=yu(P));for(var F=v.slice(j);F.length>0&&F.charCodeAt(F.length-1)===ha;)F=F.slice(0,-1);E=yu(F),x=v.slice(A,j).trim()}}return{node:{type:ll,tag:y,attrs:k,b:g,children:[],e:S,h:E,j:$,text:x,c:!0,a:!!w&&w.f},end:s}}if(6===u||7===u){var q=Iu(e,r),N=q<e.length?q:e.length,T=e.slice(o,N),R=q<e.length?Cu(e,q):e.length,M=vu(e,o);if(M){var z=M.tag,U=z.toLowerCase();if(M.f){var L=e.slice(M.end,N);return{node:{type:ll,tag:z,attrs:{},children:[],h:e.slice(o,M.end),e:L?yu(L):void 0,text:L,c:!0,a:!0},end:R}}if(M.n||Pl(z))return{node:{type:ll,tag:z,attrs:Qu(M.attrs,z,n),b:M.g+M.b,children:[],text:"",c:!1,a:!1},end:M.end<e.length&&e.charCodeAt(M.end)===ha?M.end+1:M.end};var B=t.d||0,V=e.slice(o,N),H=-1,W=-1,G=!1;if(B<10){for(var K=`</${U}`,J=1,Z=M.end-o;Z<V.length&&J>0;){var Y=es(V,`<${U}`,Z),X=es(V,K,Z);if(-1===X)break;if(-1!==Y&&Y<X){var Q=Y+U.length+1;if(Q<V.length){var ee=V.charCodeAt(Q);(ee===fa||9===ee||ee===ha||ee===ba||ee===qa)&&J++}Z=Y+1}else{var re=X+K.length;if(re<V.length){var te=V.charCodeAt(re);if((te===ba||te===fa||9===te||te===ha)&&0==--J){H=X;for(var ne=re;ne<V.length&&V.charCodeAt(ne)!==ba;)ne++;W=ne+1;break}}else if(0==--J){H=X,W=V.length;break}Z=X+1}}if(-1===H&&!M.f&&(6===u||M.u)){var ie=ts(e,M.end,U);if(-1!==ie){for(var oe=rs,ae=!1,le=!1,ue=!1,se=0,ce=!1,fe=!1,de=M.end;de<oe;){var he=e.charCodeAt(de);if(he===ha)fe&&(ae=!0),ce||se++,fe=!0,de++;else if(he===fa||9===he)de++;else{if(!ce&&(ce=!0,se>=2&&he===ja)){ue=!0;break}if(fe=!1,he===ja){var me=32|e.charCodeAt(de+1);if((112===me||115===me||me===Da)&&(iu.lastIndex=de,iu.test(e))){le=!0;break}}de++}}if(ae&&!ue&&!le){var pe=Au(e,ie);N=pe,R=Cu(e,pe),V=e.slice(o,N),T=e.slice(o,N),H=oe-o,W=ie-o,G=!0}}}}var ve=-1!==M.b.indexOf("\n")||-1!==M.g.indexOf("\n"),ye=!1;-1!==H&&(ye=0===V.slice(W).trim().length);var be=!1,ge=N,we=R;if(-1!==H){var ke=o+W,$e=Au(e,ke-1);if(ke<$e){for(var Se=ke;Se<$e&&(e.charCodeAt(Se)===fa||9===e.charCodeAt(Se));)Se++;if(Se<$e&&e.charCodeAt(Se)===ja){var Ee=vu(e,Se);Ee&&!Ee.f&&(be=!0,ge=ke,we=ke,ye=!0)}}if(!be){var je=Cu(e,$e);if(je<N){for(var xe=je;xe<N&&(e.charCodeAt(xe)===fa||9===e.charCodeAt(xe));)xe++;xe<N&&e.charCodeAt(xe)===ja&&vu(e,xe)&&(be=!0,ge=$e,we=je,ye=!0)}}!be&&t.inHTML&&(be=!0,ge=$e,we=Cu(e,$e),ye=0===e.slice(ke,$e).trim().length)}var Oe=[],Ae="";if(-1!==H){var Ce=(Ae=V.slice(M.end-o,H)).trim();if(Ce){var{inline:_e,inHTML:Ie,d:De}=t;if(t.inHTML=!0,t.d=B+1,"p"===U)t.inline=!0,Oe=us(Ce,!1,t,n);else{var Pe=-1!==Ae.indexOf("\n\n"),Fe=ou.test(Ce),qe=au.test(Ce),Ne=Pe||Fe||t.inHTML&&qe;!(Ae.length>=2&&Ae.charCodeAt(0)===ha&&Ae.charCodeAt(Ae.length-1)===ha)||Pe||Fe||qe?Ne||qe?(t.inline=!1,Oe=Gs(Ae,t,n)):(t.inline=!0,Oe=us(Ce,!1,t,n)):Oe=[{type:vl,text:Ce}]}t.inline=_e,t.inHTML=Ie,t.d=De}}var Te=!1;if(6===u&&-1!==H&&!t.inHTML&&!ve){var Re=/<[a-zA-Z][^>]*>/.test(Ae),Me=-1!==Ae.indexOf("\n\n")||ou.test(Ae);Re&&!Me&&(Te=!0)}if(!G&&(t.inHTML||7===u||ve||!ye||Te)){var ze,Ue,Le=!1;if(-1!==H&&be){var Be=!1;if(t.inHTML&&W<V.length){for(var Ve=W;Ve<V.length&&V.charCodeAt(Ve)!==ha;)Ve++;var He=V.slice(W,Ve).trim();Be=He.length>1&&He.charCodeAt(0)===ja&&He.charCodeAt(1)!==qa}Ue=Be?V.slice(M.end-o):Ae,Le=!0}else 7!==u&&!t.inHTML||-1===H?be?ze=e.slice(o,ge):ve?ze=T:(Ue=V.slice(M.end-o)).charCodeAt(0)===ha&&(Ue=Ue.slice(1)):(Ue=V.slice(M.end-o)).charCodeAt(0)===ha&&(Ue=Ue.slice(1));var We=void 0!==ze,Ge=yu(void 0===ze?Ue||"":ze),Ke={type:ll,tag:z,attrs:Qu(M.attrs,z,n),b:M.g+M.b,children:Oe,e:We?void 0:Ge,j:We?Ge:void 0,text:Ge,c:!0,a:!1};return Le&&(Ke.x=!0),{node:Ke,end:we}}var Je=yu(Ae);return{node:{type:ll,tag:z,attrs:Qu(M.attrs,z,n),b:M.g+M.b,children:Oe,e:G?void 0:Je,text:Je,c:!1,a:!1},end:we}}var Ze,Ye,Xe,Qe=T.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),er=Qe?Qe[2]:"div",rr=!!Qe&&"/"===Qe[1],tr="";if(rr){var nr=T.indexOf(">");-1===nr?Ze=T:(Ze=T.slice(0,nr+1),(tr=T.slice(nr+1))&&(Ye=yu(tr)))}else Xe=yu(T);return{node:{type:ll,tag:er,attrs:{},children:[],e:Ye,h:Ze,j:Xe,text:rr?tr:T,c:!0,a:rr},end:R}}var ir=vu(e,o);if(!ir)return null;var or=ir.tag,ar=or.toLowerCase(),lr=or.charCodeAt(0),ur=lr>=Ha&&lr<=Wa;if(!(ur||Xu.has(ar)||tu.has(ar)||ar.includes("-")))return null;if(ir.f)return{node:{type:sl,tag:or,attrs:{},h:e.slice(o,ir.end),a:!0},end:ir.end};var sr=ts(e,ir.end,or),cr=[];if(-1!==sr){var fr=e.slice(ir.end,rs),dr=fr.trim();if(dr){var hr=-1!==fr.indexOf("\n\n"),mr=ou.test(dr),pr=au.test(dr),vr=t.inline,yr=t.inHTML,br=t.d;t.inHTML=!0,t.d=(t.d||0)+1,hr||mr||pr?(t.inline=!1,cr=Gs(fr,t,n)):(t.inline=!0,cr=us(dr,!1,t,n)),t.inline=vr,t.inHTML=yr,t.d=br}var gr=Au(e,sr),wr=e.slice(sr,gr).trim()?sr:Cu(e,sr),kr=e.slice(o,ur?sr:wr);return{node:{type:ll,tag:or,attrs:Qu(ir.attrs,or,n),b:ir.g+ir.b,children:cr,j:yu(kr),text:ur?fr:kr,c:!0,a:!1},end:wr}}var $r=Iu(e,ir.end),Sr=$r<e.length?Cu(e,$r):$r,Er=e.slice(ir.end,$r);if(Er.trim()){var{inline:jr,inHTML:xr,d:Or}=t;t.inline=!1,t.inHTML=!0,t.d=(t.d||0)+1,cr=Gs(Er,t,n),t.inline=jr,t.inHTML=xr,t.d=Or}var Ar=e.slice(ir.end,$r);return{node:{type:ll,tag:or,attrs:Qu(ir.attrs,or,n),b:ir.g+ir.b,children:cr,e:yu(Ar),text:Er,c:!0,a:!1},end:Sr}}function is(e,r,t){for(var n=0,i=e.length;n<i&&(e.charCodeAt(n)===fa||9===e.charCodeAt(n));)n++;for(;i>n&&(e.charCodeAt(i-1)===fa||9===e.charCodeAt(i-1));)i--;n<i&&e.charCodeAt(n)===Ma&&n++,i>n&&e.charCodeAt(i-1)===Ma&&(i-2<n||e.charCodeAt(i-2)!==$a)&&i--;for(var o=[],a=n,l=!1,u=[],s=n;s<i;){var c=e.charCodeAt(s);if(c===$a&&s+1<i)e.charCodeAt(s+1)===Ma?(l||(l=!0,u=[]),u.push(e.slice(a,s)),u.push("|"),a=s+=2):s+=2;else if(c!==ma)if(c!==Ma)s++;else{var f=l?(u.push(e.slice(a,s)),u.join("")):e.slice(a,s);o.push(f.trim()),a=++s,l=!1,u=[]}else{for(var d=0;s<i&&e.charCodeAt(s)===ma;)d++,s++;for(var h=!1;s<i&&!h;){for(var m=0;s<i&&e.charCodeAt(s)===ma;)m++,s++;m===d?h=!0:0===m&&s++}}}var p=l?(u.push(e.slice(a,i)),u.join("")):e.slice(a,i);return o.push(p.trim()),o.map((e=>{var n=-1===e.indexOf("\\|")?e:e.replace(/\\\|/g,"|");return n?us(n,!1,r,t):[]}))}function os(e,r,t,n){let i=Au(e,r);var o=e.indexOf("|",r);if(o<0||o>=i)return null;let a=Cu(e,i);if(a>=e.length)return null;let l=Au(e,a);if(!su(e,a,l))return null;let u=e.slice(r,i),s=e.slice(a,l);for(var c=[],f=0,d=s.length;f<d&&(s.charCodeAt(f)===fa||9===s.charCodeAt(f));)f++;for(f<d&&s.charCodeAt(f)===Ma&&f++;f<d;){for(;f<d&&(s.charCodeAt(f)===fa||9===s.charCodeAt(f));)f++;if(f>=d||s.charCodeAt(f)===Ma)break;var h=s.charCodeAt(f)===Aa;for(h&&f++;f<d&&s.charCodeAt(f)===wa;)f++;var m=f<d&&s.charCodeAt(f)===Aa;for(m&&f++,c.push(h&&m?"center":m?"right":h?"left":null);f<d&&(s.charCodeAt(f)===fa||9===s.charCodeAt(f));)f++;f<d&&s.charCodeAt(f)===Ma&&f++}let p=is(u,t,n);if(c.length!==p.length)return null;let v=[],y=Cu(e,l);for(;y<e.length;){let r=Au(e,y),i=e.slice(y,r);if(Nu(e,y,r))break;if(qu(e,y,r),Pu<4){var b=e.charCodeAt(y+Fu);if(b===ba||b===ga||(b===wa||b===Sa||b===Ea)&&Mu(e,y))break;if(b===ma||b===pa){for(var g=y+Fu,w=0;g<r&&e.charCodeAt(g)===b;)w++,g++;if(w>=3)break}}v.push(is(i,t,n)),y=Cu(e,r)}if(n.optimizeForStreaming&&0===v.length)return null;for(var k=p.length,$=0;$<v.length;$++)if(v[$].length<k)for(;v[$].length<k;)v[$].push([]);else v[$].length>k&&(v[$].length=k);return{node:{type:pl,header:p,cells:v,align:c},end:y}}function as(e,r,t){if(qu(e,r,Au(e,r)),Pu>3)return null;var n=r+Fu;if(e.charCodeAt(n)!==va)return null;if(n+1<e.length&&e.charCodeAt(n+1)===ya){var i=function(e,r,t){var n=e.length;if(e.charCodeAt(r)!==va||r+1>=n||e.charCodeAt(r+1)!==ya)return null;for(var i=r+2,o=i;i<n&&e.charCodeAt(i)!==xa;){if(e.charCodeAt(i)===ha)return null;i++}if(i>=n)return null;var a=`^${e.slice(o,i)}`.toLowerCase();if(++i>=n||e.charCodeAt(i)!==Aa)return null;for(i++;i<n&&(e.charCodeAt(i)===fa||9===e.charCodeAt(i));)i++;if(i<n&&e.charCodeAt(i)===ha)for(i++;i<n&&(e.charCodeAt(i)===fa||9===e.charCodeAt(i));)i++;var l=e.indexOf("\n",i);l<0&&(l=n);for(var u=e.slice(i,l).trim(),s=l<n?l+1:n;s<n;){var c=Au(e,s);if(qu(e,s,c),!(Pu>=2)||Nu(e,s,c)){if(Nu(e,s,c)){var f=Cu(e,c);if(f<n&&(qu(e,f,Au(e,f)),Pu>=2)){u+="\n",s=Cu(e,c);continue}break}break}u+=`\n${e.slice(s,c)}`,s=Cu(e,c)}var d=t.refs;return d&&!d[a]&&(d[a]={target:u,title:void 0}),{node:{type:tl},end:s}}(e,n,t);return i||null}t.refs||(t.refs={});var o=bu(e,n,t.refs);return null===o?null:{node:{type:ml},end:o}}function ls(e,r,t,n){let i=r,o=0,a=0,l=-1;for(;i<e.length;){let r=l>=0?l:Au(e,i);if(l=-1,Nu(e,i,r))break;if(qu(e,i,r),Pu<4&&a>0&&!t.l){let t=e.charCodeAt(i+Fu);if(t===ka||t===wa){let n=i+Fu;for(;n<r&&e.charCodeAt(n)===t;)n++;for(;n<r&&(e.charCodeAt(n)===fa||9===e.charCodeAt(n));)n++;if(n>=r){o=t===ka?1:2,i=Cu(e,r);break}}}a=r;let k=Cu(e,r);if(k<e.length){if(30===e.charCodeAt(k)){var u=Au(e,k);i=Cu(e,u),a=u;continue}let r=Au(e,k);if(l=r,qu(e,k,r),Pu<4){let o=e.charCodeAt(k+Fu);if(o===ba){i=k;break}if(o===ga){for(var s=k+Fu,c=0;s<r&&e.charCodeAt(s)===ga&&c<=6;)c++,s++;if(c>=1&&c<=6&&(s>=r||e.charCodeAt(s)===fa||9===e.charCodeAt(s))){i=k;break}}if(o===ma||o===pa){for(var f=k+Fu,d=0;f<r&&e.charCodeAt(f)===o;)d++,f++;if(d>=3){i=k;break}}if(o===ja){var h=k+Fu+1,m=h<r?e.charCodeAt(h):0,p=m===Oa||m===Pa;if(p||m!==qa){if(!p){for(var v=h;v<r&&(e.charCodeAt(v)>=Ha&&e.charCodeAt(v)<=Wa||e.charCodeAt(v)>=Ga&&e.charCodeAt(v)<=Ka||e.charCodeAt(v)>=Ba&&e.charCodeAt(v)<=Va||e.charCodeAt(v)===wa);)v++;if(v>h){var y=e.slice(h,v).toLowerCase();p=Xu.has(y)||tu.has(y)}}}else{for(var b=h+1,g=b;g<r&&(e.charCodeAt(g)>=Ha&&e.charCodeAt(g)<=Wa||e.charCodeAt(g)>=Ga&&e.charCodeAt(g)<=Ka||e.charCodeAt(g)>=Ba&&e.charCodeAt(g)<=Va||e.charCodeAt(g)===wa);)g++;g>b&&(p=Xu.has(e.slice(b,g).toLowerCase()))}if(p&&ns(e,k,t,n)){i=k;break}}if(o===wa||o===Sa||o===Ra){let t=k+Fu+1;if(t<r&&(e.charCodeAt(t)===fa||9===e.charCodeAt(t))&&_u(e,t,r)<r&&!Mu(e,k)){i=k;break}}if(o>=Ba&&o<=Va){let t=k+Fu;for(;t<r&&e.charCodeAt(t)>=Ba&&e.charCodeAt(t)<=Va;)t++;if(t<r&&(e.charCodeAt(t)===Fa||e.charCodeAt(t)===La)&&t-(k+Fu)==1&&49===e.charCodeAt(k+Fu)){var w=t+1;if(w<r&&(e.charCodeAt(w)===fa||9===e.charCodeAt(w))&&_u(e,w,r)<r){i=k;break}}}if(o===Ma){let t=Cu(e,r);if(t<e.length&&su(e,t,Au(e,t))){i=k;break}}if((o===wa||o===Sa||o===Ea)&&Mu(e,k)){if(o!==wa){i=k;break}let t=k+Fu;for(;t<r&&e.charCodeAt(t)===wa;)t++;for(;t<r&&(e.charCodeAt(t)===fa||9===e.charCodeAt(t));)t++;if(t<r){i=k;break}}}}i=Cu(e,r)}for(var k=o?a:i;k>r&&(e.charCodeAt(k-1)===ha||e.charCodeAt(k-1)===da||e.charCodeAt(k-1)===fa||9===e.charCodeAt(k-1));)k--;for(var $=r;$<k&&(e.charCodeAt($)===fa||9===e.charCodeAt($));)$++;if($>=k)return null;for(var S=!1,E=$;E<k;E++)if(30===e.charCodeAt(E)){S=!0;break}var j=S?e.slice($,k).replace(/\u001E/g,""):e.slice($,k);if(!j)return null;let x=us(j,!0,t,n);return o?{node:{type:al,level:o,children:x,id:""},end:i}:{node:{type:hl,children:x},end:i}}function us(e,r,t,n){var i=t.t;if(!i){var o=t.k;t.k=r;var a=Bs(e,0,e.length,t,n);return t.k=o,a}var l=[];return i.push({dest:l,text:e,breaks:r,inline:t.inline,inAnchor:t.inAnchor,inHTML:t.inHTML,htmlDepth:t.d,inList:t.inList,inBlockQuote:t.inBlockQuote,noSetext:t.l,depth:t.o}),l}function ss(e,r,t){if(e.charCodeAt(r)!==ma)return null;let n=Du(e,r,t,96),i=r+n;for(;i<t;){let o=e.indexOf("`",i);if(o<0||o>=t)return null;let a=Du(e,o,t,96);if(a===n){let t=e.slice(r+n,o);return-1!==t.indexOf("\n")&&(t=t.replace(/\n/g," ")),t.length>0&&" "===t[0]&&" "===t.at(-1)&&t.trim().length>0&&(t=t.slice(1,-1)),{node:{type:rl,text:t},end:o+a}}i=o+a}return null}function cs(e,r,t){if(e.charCodeAt(r)!==ma)return r;let n=Du(e,r,t,96),i=r+n;for(;i<t;){let o=e.indexOf("`",i);if(o<0||o>=t)return r;let a=Du(e,o,t,96);if(a===n)return o+a;i=o+a}return r}function fs(e,r,t){if(e.charCodeAt(r)!==ja)return r;if(r+1<t&&e.charCodeAt(r+1)===qa){let n=r+2;for(;n<t&&e.charCodeAt(n)!==ba;)n++;return n<t?n+1:r}if(r+3<t&&e.charCodeAt(r+1)===Oa&&e.charCodeAt(r+2)===wa&&e.charCodeAt(r+3)===wa){let t=e.indexOf("--\x3e",r+4);return t>=0?t+3:r}let n=r+1,i=n;for(;n<t;){let r=e.charCodeAt(n);if(!(r>=Ha&&r<=Wa||r>=Ga&&r<=Ka||r>=Ba&&r<=Va||r===wa))break;n++}if(n===i)return r;let o=e.slice(i,n).toLowerCase(),a=!1;for(;n<t;){let i=e.charCodeAt(n);if(i===ba){n++;break}if(i===qa&&n+1<t&&e.charCodeAt(n+1)===ba){n+=2,a=!0;break}if(i!==Ta&&i!==Na){if(i===ha)return r;n++}else{var l=i;for(n++;n<t&&e.charCodeAt(n)!==l;)n++;n<t&&n++}}if(a||Pl(o))return n;let u=1;for(;n<t&&u>0;)if(e.charCodeAt(n)===ja)if(n+1<t&&e.charCodeAt(n+1)===qa){let r=n+2,i=r;for(;i<t&&(e.charCodeAt(i)>=Ha&&e.charCodeAt(i)<=Wa||e.charCodeAt(i)>=Ga&&e.charCodeAt(i)<=Ka);)i++;if(e.slice(r,i).toLowerCase()===o){for(;i<t&&e.charCodeAt(i)!==ba;)i++;if(i<t&&i++,u--,0===u)return i}n=i}else{let r=n+1,i=r;for(;i<t&&(e.charCodeAt(i)>=Ha&&e.charCodeAt(i)<=Wa||e.charCodeAt(i)>=Ga&&e.charCodeAt(i)<=Ka);)i++;e.slice(r,i).toLowerCase()===o&&u++,n++}else n++;return n}function ds(e,r,t,n,i){if(e.charCodeAt(r)!==pa||r+1>=t||e.charCodeAt(r+1)!==pa)return null;let o=r+2;for(;o+1<t;){let a=e.charCodeAt(o);if(a===ma){let r=cs(e,o,t);if(r>o){o=r;continue}}if(a===pa&&e.charCodeAt(o+1)===pa){let t=e.slice(r+2,o),a=Bs(t,0,t.length,n,i);return{node:{type:yl,tag:"del",children:a},end:o+2}}a===$a&&o+1<t&&o++,o++}return null}function hs(e,r,t,n,i){if(e.charCodeAt(r)!==ka||r+1>=t||e.charCodeAt(r+1)!==ka)return null;let o=r+2;for(;o+1<t;){let a=e.charCodeAt(o);if(a===ma){let r=cs(e,o,t);if(r>o){o=r;continue}}if(a===ka&&e.charCodeAt(o+1)===ka&&o>r+2){let t=e.slice(r+2,o),a=Bs(t,0,t.length,n,i);return{node:{type:yl,tag:"mark",children:a},end:o+2}}a===$a&&o+1<t&&o++,o++}return null}function ms(e,r,t){return e<Ja?!!(4&Su(e)):ql.test(r[t])}function ps(e,r,t){return e<Ja?!!(1&Su(e)):Nl.test(r[t])}function vs(e,r,t){var n=e.charCodeAt(r);if(n!==Sa&&n!==Ea)return null;var i=Du(e,r,t,n);if(0===i)return null;var o,a,l=r>0?e.charCodeAt(r-1):32,u=r+i<t?e.charCodeAt(r+i):32,s=ps(l,e,r-1),c=ps(u,e,r+i),f=r>0&&ms(l,e,r-1),d=r+i<t&&ms(u,e,r+i),h=!c&&(!d||s||f),m=!s&&(!f||c||d);return n===Sa?(o=h,a=m):(o=h&&(!m||f),a=m&&(!h||d)),{len:i,canOpen:o,canClose:a}}function ys(e,r,t,n){return null===r(e,t,n)?null:e}var bs=0,gs=0,ws=0,ks=0,$s=0,Ss=0,Es=0,js=0,xs=null,Os=0,As=[],Cs=256;function _s(e,r,t,n,i){let o=e.charCodeAt(r)===Oa,a=o?r+1:r;if(e.charCodeAt(a)!==va||ks===js&&a>=ws)return null;var l=Os===js?xs:null,u=null===l?0:l[a];if(u<0)return null;var s=u;if(0===u){var c=e.indexOf("]",a+1);if(c<0||c>=t)return ws=a,ks=js,null;s=a+1;var f=0;As[f++]=a;for(var d=t-a>=Cs;s<t&&f>0;){var h=e.charCodeAt(s);if(h===$a&&s+1<t)s+=2;else{if(h===ma){var m=cs(e,s,t);if(m>s){s=m;continue}}if(h===ja){var p=Is(e,s,t);if(p){s=p.end;continue}var v=fs(e,s,t);if(v>s){s=v;continue}}if(h===va)As[f++]=s;else if(h===xa){var y=As[--f];null===l&&d&&s-a>=Cs&&(l=xs=new Int32Array(t),Os=js),null!==l&&(l[y]=s+1)}s++}}if(f>0){if(null===l&&d&&s-a>=Cs&&(l=xs=new Int32Array(t),Os=js),null!==l)for(;f>0;)l[As[--f]]=-1;return null}}var b=s-1,g=e.slice(a+1,b),w=s<t?e.charCodeAt(s):0,k=!1;if(w===Ua){var $=!0;for(s++;s<t&&(e.charCodeAt(s)===fa||e.charCodeAt(s)===ha);)s++;var S="",E=s;if(s<t&&e.charCodeAt(s)===ja){for(E=++s;E<t&&e.charCodeAt(E)!==ba;)if(e.charCodeAt(E)===$a&&E+1<t)E+=2;else{if(e.charCodeAt(E)===ha){$=!1;break}E++}$&&(E>=t||e.charCodeAt(E)!==ba)&&($=!1),$&&(S=e.slice(s,E),E++)}else if($){var j=gs===js?bs:-1;if(j>=0&&s>=j)$=!1;else{for(var x=0,O=!1;E<t;){var A=e.charCodeAt(E);if(A===$a&&E+1<t)E+=2;else{if(A===Ua)x++;else if(A===La){if(O=!0,0===x)break;x--}else if(A===fa||A===ha)break;E++}}E>=t&&!O&&(j<0||s<j)&&(bs=s,gs=js),S=e.slice(s,E)}}if($){for(s=E;s<t&&(e.charCodeAt(s)===fa||e.charCodeAt(s)===ha);)s++;var C;if(s<t){var _=e.charCodeAt(s);if(_===Ta||_===Na||_===Ua){for(var I=_===Ua?41:_,D=++s;s<t&&e.charCodeAt(s)!==I;)e.charCodeAt(s)===$a&&s+1<t&&s++,s++;s>=t?$=!1:(C=e.slice(D,s),s++)}}if($){for(;s<t&&(e.charCodeAt(s)===fa||e.charCodeAt(s)===ha);)s++;(s>=t||e.charCodeAt(s)!==La)&&($=!1)}}if($){if(s++,S=El(Eu(S)),void 0!==C&&(C=El(Eu(C))),o){var P=Ns(Bs(g,0,g.length,n,i));return{node:{type:cl,target:ys(S,i?.sanitizer||xl,"img","src"),alt:P,title:C},end:s}}var F=n.inAnchor;n.inAnchor=!0;var q=F?[{type:vl,text:g}]:Bs(g,0,g.length,n,i);return n.inAnchor=F,!n.inAnchor&&qs(q)?null:{node:{type:fl,target:ys(S,i?.sanitizer||xl,"a","href"),title:C,children:q},end:s}}s=b+1,k=!0}var N="",T=s;if(k||w!==va){if(ku(g))return null;N=$u(g)}else{var R=s+1;T=R;for(var M=!1;T<t&&e.charCodeAt(T)!==xa;)if(e.charCodeAt(T)===$a&&T+1<t)T+=2;else{if(e.charCodeAt(T)===va){M=!0;break}T++}if(M||T>=t)return null;var z=e.slice(R,T);if(z.trim())N=$u(z);else{if(ku(g))return null;N=$u(g)}T+=1}var U=n.refs?.[N];if(!U)return null;if(o)return{node:{type:cl,target:ys(U.target,i?.sanitizer||xl,"img","src"),alt:Ns(Bs(g,0,g.length,n,i)),title:U.title},end:T};var L=n.inAnchor;return n.inAnchor=!0,q=L?[{type:vl,text:g}]:Bs(g,0,g.length,n,i),n.inAnchor=L,!n.inAnchor&&qs(q)?null:{node:{type:fl,target:ys(U.target,i?.sanitizer||xl,"a","href"),title:U.title,children:q},end:T}}function Is(e,r,t){if(e.charCodeAt(r)!==ja)return null;for(var n=r+1;n<t;){var i=e.charCodeAt(n);if(i===ba)break;if(i===fa||i===ha||i===da||i===ja)return null;n++}if(n>=t||e.charCodeAt(n)!==ba)return null;var o=e.slice(r+1,n);return o.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:fl,target:o,title:void 0,children:[{type:vl,text:o}]},end:n+1}:-1!==o.indexOf("@")&&/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(o)?{node:{type:fl,target:`mailto:${o}`,title:void 0,children:[{type:vl,text:o}]},end:n+1}:null}function Ds(e,r,t){if(e.charCodeAt(r)!==va||r+1>=t||e.charCodeAt(r+1)!==ya||Ss===js&&r>=$s)return null;let n=r+2;for(;n<t&&e.charCodeAt(n)!==xa&&e.charCodeAt(n)!==ha;)n++;if(n>=t)return $s=r,Ss=js,null;if(e.charCodeAt(n)!==xa)return null;let i=e.slice(r+2,n);return i?{node:{type:nl,target:`#${_l(i)}`,text:i},end:n+1}:null}function Ps(e,r,t,n){if(n.disableBareUrls)return null;var i="",o=!1,a=e.charCodeAt(r);if(a===_a||72===a?r+8<=t&&e.charCodeAt(r+1)===Da&&e.charCodeAt(r+2)===Da&&112===e.charCodeAt(r+3)&&(115===e.charCodeAt(r+4)&&e.charCodeAt(r+5)===Aa&&e.charCodeAt(r+6)===qa&&e.charCodeAt(r+7)===qa?i="https://":e.charCodeAt(r+4)===Aa&&e.charCodeAt(r+5)===qa&&e.charCodeAt(r+6)===qa&&(i="http://")):a===Ca||70===a?r+6<=t&&e.charCodeAt(r+1)===Da&&112===e.charCodeAt(r+2)&&e.charCodeAt(r+3)===Aa&&e.charCodeAt(r+4)===qa&&e.charCodeAt(r+5)===qa&&(i="ftp://"):(a===Ia||87===a)&&r+4<=t&&e.charCodeAt(r+1)===Ia&&e.charCodeAt(r+2)===Ia&&e.charCodeAt(r+3)===Fa&&(i="www.",o=!0),!i)return null;let l=r+i.length;for(;l<t;){let r=e.charCodeAt(l);if(r===fa||r===ha||9===r||r===da||r===ja||r===ba)break;l++}for(var u=0,s=0,c=r;c<l;c++){var f=e.charCodeAt(c);f===Ua?u++:f===La&&s++}let d=l;for(;d>r+i.length;){let t=e.charCodeAt(d-1);if(t===Fa||44===t||t===Aa||t===Oa||t===Pa||t===La||t===Sa||t===Ea||t===pa){if(t===La){if(u>=s)break;s--}d--}else{if(59!==t)break;for(var h=d-2;h>r&&(e.charCodeAt(h)>=Ha&&e.charCodeAt(h)<=Wa||e.charCodeAt(h)>=Ga&&e.charCodeAt(h)<=Ka||e.charCodeAt(h)>=Ba&&e.charCodeAt(h)<=Va);)h--;h>=r&&38===e.charCodeAt(h)?d=h:d--}}if(d<=r+i.length)return null;var m=r+(o?4:i.length),p=e.indexOf("/",m);if((p<0||p>d)&&(p=d),o&&-1===e.indexOf(".",m))return null;for(var v=-1,y=-1,b=p-1;b>=m;b--)if(e.charCodeAt(b)===Fa){if(!(v<0)){y=b;break}v=b}for(b=y>=0?y+1:m;b<p;b++)if(e.charCodeAt(b)===Ea)return null;var g=e.slice(r,d);return{node:{type:fl,target:o?`http://${g}`:g,title:void 0,children:[{type:vl,text:g}]},end:d}}function Fs(e,r,t,n){if(n.disableBareUrls)return null;for(var i=r,o=i;i<t&&((s=e.charCodeAt(i))>=Ha&&s<=Wa||s>=Ga&&s<=Ka||s>=Ba&&s<=Va||s===Fa||s===Oa||s===ga||36===s||37===s||38===s||s===Na||s===Sa||s===Ra||s===qa||s===ka||s===Pa||s===ya||s===Ea||s===ma||s===za||s===Ma||125===s||s===pa||s===wa);)i++;if(i===o||i>=t||64!==e.charCodeAt(i))return null;for(var a=++i,l=-1,u=i;i<t;){var s;if((s=e.charCodeAt(i))>=Ha&&s<=Wa||s>=Ga&&s<=Ka||s>=Ba&&s<=Va)i++;else if((s===wa||s===Ea)&&i>a)i++;else{if(s!==Fa)break;if(i===a)break;var c=e.charCodeAt(i-1);if(c===wa||c===Ea||i-u>63)break;if(!(i+1<t))break;var f=e.charCodeAt(i+1);if(!(f>=Ha&&f<=Wa||f>=Ga&&f<=Ka||f>=Ba&&f<=Va))break;l=i,u=i+1,i++}}if(i-u>63||l<0)return null;var d=e.charCodeAt(i-1);if(!(d>=Ha&&d<=Wa||d>=Ga&&d<=Ka||d>=Ba&&d<=Va)||i<=l+1)return null;for(var h=-1,m=l-1;m>=a;m--)if(e.charCodeAt(m)===Fa){h=m;break}for(m=h>=0?h+1:a;m<i;m++)if(e.charCodeAt(m)===Ea)return null;var p=e.slice(r,i);return{node:{type:fl,target:`mailto:${p}`,title:void 0,children:[{type:vl,text:p}]},end:i}}function qs(e){for(var r=0;r<e.length;r++)if(e[r].type===fl||"children"in e[r]&&Array.isArray(e[r].children)&&qs(e[r].children))return!0;return!1}function Ns(e,r){for(var t="",n=0;n<e.length;n++){var i=e[n];i.type===vl?t+=i.text:i.type===Xa?t+=" ":i.type===rl||i.type===nl?t+=i.text:"children"in i&&Array.isArray(i.children)?t+=Ns(i.children,r):!r&&i.type===cl&&(t+=i.alt||"")}return t}function Ts(e,r,t){for(var n=0;n<e.length;n++){var i=e[n];if(i.type===al&&(i.id=Tu(t(Ns(i.children,!0)),r)),"children"in i){var o=i.children;Array.isArray(o)&&Ts(o,r,t)}if((i.type===dl||i.type===bl)&&Array.isArray(i.items))for(var a=i.items,l=0;l<a.length;l++)Ts(a[l],r,t)}}function Rs(e){return{type:vl,text:e}}function Ms(e,r,t){var n=r+1;if(n>=t)return-1;if(e.charCodeAt(n)===ga){var i=++n<t&&(120===e.charCodeAt(n)||88===e.charCodeAt(n));i&&n++;for(var o=n,a=i?6:7;n<t&&n-o<=a;){var l=e.charCodeAt(n);if(!(l>=Ba&&l<=Va||i&&(l>=Ha&&l<=70||l>=Ga&&l<=Ca)))break;n++}return n===o||n-o>a?-1:n<t&&59===e.charCodeAt(n)?n+1:-1}for(var u=n;n<t&&n-u<48;){var s=e.charCodeAt(n);if(!(s>=Ha&&s<=Wa||s>=Ga&&s<=Ka||s>=Ba&&s<=Va))break;n++}return n===u?-1:n<t&&59===e.charCodeAt(n)?n+1:-1}function zs(e,r,t,n,i){if(e.charCodeAt(r)!==ja)return null;var o=r+1;if(o>=t)return null;var a=e.charCodeAt(o);if(a===Oa&&o+1<t&&e.charCodeAt(o+1)===wa&&o+2<t&&e.charCodeAt(o+2)===wa){var l=o+3;if(l<t&&e.charCodeAt(l)===ba)return{node:{type:ul,text:"",s:!0},end:l+1};if(l+1<t&&e.charCodeAt(l)===wa&&e.charCodeAt(l+1)===ba)return{node:{type:ul,text:"-",s:!0},end:l+2};var u=e.indexOf("--\x3e",l);return-1!==u&&u<=t-3?{node:{type:ul,text:e.slice(r+4,u),s:!1},end:u+3}:null}if(a===Pa){var s=e.indexOf("?>",o+1);return-1!==s&&s<t?{node:{type:sl,tag:"?",attrs:{},m:e.slice(r,s+2),a:!1},end:s+2}:null}if(a===Oa&&o+1<t){var c=e.charCodeAt(o+1);if(c===va&&"[CDATA["===e.slice(o+1,o+8)){var f=e.indexOf("]]>",o+8);return-1!==f&&f<t?{node:{type:sl,tag:"![CDATA[",attrs:{},m:e.slice(r,f+3),a:!1},end:f+3}:null}if(c>=Ha&&c<=Wa){var d=e.indexOf(">",o+2);return-1!==d&&d<t?{node:{type:sl,tag:`!${e.slice(o+1,d)}`,attrs:{},m:e.slice(r,d+1),a:!1},end:d+1}:null}}if(a===qa){var h=o+1;if(h>=t)return null;var m=e.charCodeAt(h);if(!(m>=Ha&&m<=Wa||m>=Ga&&m<=Ka))return null;for(h++;h<t;){var p=e.charCodeAt(h);if(!(p>=Ha&&p<=Wa||p>=Ga&&p<=Ka||p>=Ba&&p<=Va||p===wa))break;h++}for(;h<t&&(e.charCodeAt(h)===fa||9===e.charCodeAt(h)||e.charCodeAt(h)===ha);)h++;if(h<t&&e.charCodeAt(h)===ba){var v=e.slice(o+1,h).trim();return{node:{type:sl,tag:v,attrs:{},h:e.slice(r,h+1),a:!0},end:h+1}}return null}if(!(a>=Ha&&a<=Wa||a>=Ga&&a<=Ka))return null;var y=vu(e,r);if(!y)return null;var b=y.tag,g=b.toLowerCase();if(y.n||Pl(b))return{node:{type:sl,tag:b,attrs:Qu(y.attrs,b,i),m:y.q?mu(y):e.slice(r,y.end),a:!1},end:y.end};var w=tu.has(g),k=ts(e.slice(0,t),y.end,b);if(-1===k)return{node:{type:sl,tag:b,attrs:Qu(y.attrs,b,i),m:y.q?mu(y):e.slice(r,y.end),a:!1},end:y.end};var $=function(e,r,t){let n=r.length;var i=r.charCodeAt(0);i>=Ha&&i<=Wa&&(i+=Za);for(let a=Math.min(t,e.length-n);a>=0;a--){var o=e.charCodeAt(a);if(o>=Ha&&o<=Wa&&(o+=Za),o!==i)continue;let t=!0;for(let i=1;i<n;i++){let n=e.charCodeAt(a+i),o=r.charCodeAt(i);if(n>=Ha&&n<=Wa&&(n+=Za),o>=Ha&&o<=Wa&&(o+=Za),n!==o){t=!1;break}}if(t)return a}return-1}(e,`</${g}`,k),S=e.slice(y.end,$);if(w){var E=yu(S);return{node:{type:ll,tag:b,attrs:Qu(y.attrs,b,i),b:y.g+y.b,children:[],e:E||void 0,h:e.slice($,k),text:E,c:!0,a:!1},end:k}}var j=[],x=S.trim();if(x){var{inAnchor:O,inline:A,k:C}=n;"a"===g&&(n.inAnchor=!0),n.k=!1,-1!==x.indexOf("\n\n")||/^#{1,6}\s/.test(x)?(n.inline=!1,j=Gs(x,n,i)):j=Bs(x,0,x.length,n,i),n.inAnchor=O,n.inline=A,n.k=C}return{node:{type:ll,tag:b,attrs:Qu(y.attrs,b,i),b:y.b,children:j,text:yu(S),c:!1,a:!1},end:k}}var Us=200,Ls=0;function Bs(e,r,t,n,i){if(++Ls>Us)return Ls--,[{type:vl,text:e.slice(r,t)}];var o=js;2147483647===Es&&(gs=0,ks=0,Ss=0,Os=0,Es=0),js=++Es;let a=n;if(i.optimizeForStreaming){let n=function(e,r){for(var t=1,n=r+1;n<e.length;n++){var i=e.charCodeAt(n);if(i===va)t++;else if(i===xa&&0==--t)return n}return-1},i=e.slice(r,t),o=i;for(var l=0,u=0,s=0,c=0,f=0,d=-1,h=-1,m=-1,p=-1,v=-1,y=0;y<i.length;y++){var b=i.charCodeAt(y);b===Sa?y+1<i.length&&i.charCodeAt(y+1)===Sa?(l++,d=y,y++):(u++,h=y):b===Ea?y+1<i.length&&i.charCodeAt(y+1)===Ea?(s++,m=y,y++):(c++,p=y):b===pa&&y+1<i.length&&i.charCodeAt(y+1)===pa&&(f++,v=y,y++)}var g=[];f%2==1&&v>=0&&g.push([v,2]),s%2==1&&m>=0&&g.push([m,2]),c%2==1&&p>=0&&g.push([p,1]),l%2==1&&d>=0&&g.push([d,2]),u%2==1&&h>=0&&g.push([h,1]),g.sort(((e,r)=>r[0]-e[0]));for(var w=0;w<g.length;w++){var k=g[w][0],$=g[w][1];i=i.slice(0,k)+i.slice(k+$)}let a=0,M=-1;for(let e=0;e<i.length;e++)i.charCodeAt(e)===ma&&(a++,M=e);if(a%2==1&&-1!==M){let e=!1,r=-1,t=0;for(;t<i.length;)i.charCodeAt(t)===ma&&(e?(e=!1,r=-1):(r=t,e=!0)),t++;e&&-1!==r&&(i=i.slice(0,r))}for(var S=!0;S;){S=!1;for(var E=-1,j=-1,x=-1,O=!1,A=0;A<i.length;A++)if(i.charCodeAt(A)===va&&(0===A||i.charCodeAt(A-1)!==$a)){var C=A>0&&i.charCodeAt(A-1)===Oa,_=C?A-1:A,I=n(i,A);if(-1===I)E=_,O=C,j=A+1,x=i.length;else{var D=I+1;if(D>=i.length)E=_,O=C,j=A+1,x=I;else if(i.charCodeAt(D)===Ua){var P=i.indexOf(")",D+1);-1===P?(E=_,O=C,j=A+1,x=I,A=i.length):A=P}else if(i.charCodeAt(D)===va){var F=i.indexOf("]",D+1);-1===F?(E=_,O=C,j=A+1,x=I,A=i.length):A=F}else A=I}}if(E>=0){var q=O?"":i.slice(j,x);i=i.slice(0,E)+q,S=!0}}let z=i.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(z&&void 0!==z.index){var N=z[0].length-z[2].length;if(!(N>=2&&z[0].charCodeAt(N-2)===qa)){for(var T=0,R=0;R<z.index;R++)i.charCodeAt(R)===ma&&T++;T%2!=1&&-1===es(i,`</${z[1]}`,0)&&(i=i.slice(0,z.index)+z[2])}}i!==o&&(e=e.slice(0,r)+i,t=r+i.length)}let M=[];var z=[];let U=r;var L="",B=i.disableAutoLink||i.disableBareUrls||a.inAnchor?-1:e.indexOf("@",r);for(B>=t&&(B=-1);r<t;){let n=e.charCodeAt(r),o=null;if(n===ma)o=ss(e,r,t),o||(r+=Du(e,r,t,ma)-1);else if(n===Sa||n===Ea){var V=vs(e,r,t);if(V){if(V.canOpen||V.canClose){(L||r>U)&&(M.push(Rs(L+e.slice(U,r))),L="");var H=Rs(e.slice(r,r+V.len));z.push({idx:M.length,ch:n,len:V.len,canOpen:V.canOpen,canClose:V.canClose,active:!0}),M.push(H),U=r+=V.len;continue}r+=V.len-1}}else if(n===pa)o=ds(e,r,t,a,i);else if(n===ka)o=hs(e,r,t,a,i);else if(n===va)r+1<t&&e.charCodeAt(r+1)===ya&&(o=Ds(e,r,t)),o||(o=_s(e,r,t,a,i));else if(n===Oa&&r+1<t&&e.charCodeAt(r+1)===va)o=_s(e,r,t,a,i);else if(n===ja)o=Is(e,r,t),!(o||i.disableParsingRawHTML||i.ignoreHTMLBlocks)&&(o=zs(e,r,t,a,i));else if(38===n){var W=Ms(e,r,t);if(-1!==W){var G=e.slice(r,W),K=El(G);if(K!==G){L=L+e.slice(U,r)+K,r=W,U=W;continue}}}else if(!(n!==_a&&n!==Ia&&n!==Ca||a.inAnchor||i.disableAutoLink||0!==r&&e.charCodeAt(r-1)===ja)){var J=r+1<t?e.charCodeAt(r+1):0;(n===_a&&J===Da||n===Ca&&J===Da||n===Ia&&J===Ia)&&(o=Ps(e,r,t,i))}if(!o&&B>=0&&B-r<=64&&!a.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(n>=Ha&&n<=Wa||n>=Ga&&n<=Ka||n>=Ba&&n<=Va)&&(o=Fs(e,r,t,i),!o&&r>=B&&(B=e.indexOf("@",r+1))>=t&&(B=-1)),n===ha&&a.k){var Z=!1,Y=0;if(r>U&&e.charCodeAt(r-1)===$a)Z=!0,Y=1;else{for(var X=0,Q=r-1;Q>=U&&e.charCodeAt(Q)===fa;)X++,Q--;X>=2&&(Z=!0,Y=X)}if(Z){for((L||r-Y>U)&&(M.push(Rs(L+e.slice(U,r-Y))),L=""),M.push({type:Xa}),r++;r<t&&e.charCodeAt(r)===fa;)r++;U=r;continue}var ee=r>U&&e.charCodeAt(r-1)===fa,re=r+1<t&&e.charCodeAt(r+1)===fa;if(ee||re){for(var te=r;te>U&&e.charCodeAt(te-1)===fa;)te--;for(L+=`${e.slice(U,te)}\n`,r++;r<t&&e.charCodeAt(r)===fa;)r++;U=r;continue}}if(o)(L||r>U)&&(M.push(Rs(L+e.slice(U,r))),L=""),M.push(o.node),U=r=o.end;else{if(n===$a&&r+1<t&&4&Su(e.charCodeAt(r+1))){(L||r>U)&&(M.push(Rs(L+e.slice(U,r))),L=""),M.push(Rs(e[r+1])),U=r+=2;continue}if(r++,B<0||B-r>64)for(;r<t&&!(B>=0&&B-r<=64);){var ne=e.charCodeAt(r);if(!(ne<Ja)||lu[ne])break;r++}}}return(L||t>U)&&(M.push(Rs(L+e.slice(U,t))),L=""),z.length>0&&function(e,r){if(0!==r.length){for(var t=e.length,n=Array(t),i=null,o=null,a=0;a<t;a++){var l={node:e[a],prev:o,next:null};o?o.next=l:i=l,n[a]=l,o=l}for(var u=Array(r.length),s=0;s<r.length;s++)u[s]=n[r[s].idx];for(var c=[],f=0;f<12;f++)c[f]=-1;for(var d=0;d<r.length;){var h=r[d];if(h.active&&h.canClose){for(var m=6*(h.ch===Sa?0:1)+h.len%3*2+(h.canOpen?1:0),p=void 0===c[m]?-1:c[m],v=-1,y=d-1;y>p;y--){var b=r[y];if(b.active&&b.ch===h.ch&&b.canOpen&&(!h.canOpen&&!b.canClose||(b.len+h.len)%3!=0||b.len%3==0)){v=y;break}}if(v<0)c[m]=d-1,!h.canOpen&&(h.active=!1),d++;else{var g=r[v],w=g.len>=2&&h.len>=2,k=w?2:1;g.len-=k,h.len-=k;var $=u[v],S=u[d],E=$.node,j=S.node;E.text=E.text.slice(0,E.text.length-k),j.text=j.text.slice(k);for(var x=[],O=$.next;O&&O!==S;)x.push(O.node),O=O.next;var A={node:{type:yl,tag:w?"strong":"em",children:x},prev:$,next:S};$.next=A,S.prev=A;for(var C=v+1;C<d;C++)r[C].active=!1;if(0===g.len&&(g.active=!1,""===E.text)){var _=$.prev;A.prev=_,_?_.next=A:i=A}if(0===h.len){if(h.active=!1,""===j.text){var I=S.next;A.next=I,I&&(I.prev=A)}d++}}}else d++}for(var D=0,P=i;P;){var F=P.node;if(F.type===vl){var q=F;if(""===q.text){P=P.next;continue}if(D>0&&e[D-1].type===vl){e[D-1].text+=q.text,P=P.next;continue}}e[D++]=F,P=P.next}e.length=D}}(M,z),js=o,Ls--,M}var Vs,Hs,Ws=500;function Gs(e,r,t){var n=r.o||0;if(n>Ws)return[{type:vl,text:e}];if(r.o=n+1,t.optimizeForStreaming&&!r.i&&!r.w){for(var i=e.length;i>0&&e.charCodeAt(i-1)===ha;)i--;for(var o=i;o>0&&e.charCodeAt(o-1)!==ha;)o--;if(i>o&&e.charCodeAt(o)===Ma){for(var a=!1,l=o+1;l<i;l++){var u=e.charCodeAt(l);if(u!==fa&&9!==u&&u!==Ma&&u!==Aa&&u!==wa){a=!0;break}}for(var s=!1,c=!1,f=0,d=o,h=o-1;h>0;){for(var m=h;m>0&&e.charCodeAt(m-1)!==ha;)m--;if(e.charCodeAt(m)!==Ma)break;d=m;for(var p=!0,v=!1,y=m;y<h;y++){var b=e.charCodeAt(y);if(b===wa)v=!0;else if(b!==fa&&9!==b&&b!==Aa&&b!==Ma){p=!1;break}}p&&v?(s=!0,c=!0):c||f++,h=m-1}a?s||(e=e.slice(0,o).trimEnd()):e=s&&f>0?e.slice(0,o).trimEnd():e.slice(0,d).trimEnd()}for(var g=-1,w=-1,k=-1,$=!1,S=e.length-1;S>=0;S--)if(e.charCodeAt(S)===ja){for(var E=S+1<e.length?e.charCodeAt(S+1):0,j=E>=Ha&&E<=Wa||E>=Ga&&E<=Ka,x=E===qa&&S+2<e.length&&(e.charCodeAt(S+2)>=Ha&&e.charCodeAt(S+2)<=Wa||e.charCodeAt(S+2)>=Ga&&e.charCodeAt(S+2)<=Ka),O=E===Oa||E===Pa,A=e.length;A>S+1&&e.charCodeAt(A-1)===ha;)A--;if(j||x||O||S+1>=A){var C=S+1;if((x||j)&&(C=S+2),j||x)for(;C<e.length;){var _=e.charCodeAt(C);if(!(_>=Ha&&_<=Wa||_>=Ga&&_<=Ka||_>=Ba&&_<=Va))break;C++}for(var I=j||x?C:S+2;I<e.length&&e.charCodeAt(I)!==ba;)I++;if(I>=e.length)g=S,$=!0;else if((j||x)&&e.charCodeAt(I-1)!==qa){for(var D=!1,P=I+1;P<e.length;P++)if(e.charCodeAt(P)===ja){D=!0;break}D||(g=S,w=C,k=I+1)}}break}if(g>=0){for(var F=0,q=0;q<g;q++)e.charCodeAt(q)===ma&&F++;if(F%2==0)if($)e=e.slice(0,g);else{var N=e.slice(g+1,w);-1===es(e,`</${N}`,0)&&(e=e.slice(0,g)+e.slice(k))}}for(var T=e.length;T>0&&e.charCodeAt(T-1)===ha;)T--;if(T>0){for(var R=T;R>0&&e.charCodeAt(R-1)!==ha;)R--;for(var M=R,z=0;M<T&&e.charCodeAt(M)===fa&&z<3;)M++,z++;if(R>0&&M<T&&function(e,r,t){var n=e.charCodeAt(r);if(n!==ka&&n!==wa)return!1;for(var i=r;i<t&&e.charCodeAt(i)===n;)i++;for(;i<t&&(e.charCodeAt(i)===fa||9===e.charCodeAt(i));)i++;return i>=t}(e,M,T)){for(var U=R-1,L=U;L>0&&e.charCodeAt(L-1)!==ha;)L--;Nu(e,L,U)||(e=e.slice(0,R).trimEnd())}}var B=e.length;if(B>0){for(var V=e.lastIndexOf("\n"),H=-1===V?0:V+1,W=B,G=H,K=0;G<W&&e.charCodeAt(G)===fa&&K<3;)G++,K++;if(G<W){var J=e.charCodeAt(G),Z=!1;if(J===Sa||J===wa||J===Ra){var Y=G+1;if(Y>=W||e.charCodeAt(Y)===fa||9===e.charCodeAt(Y)){for(var X=Y;X<W&&(e.charCodeAt(X)===fa||9===e.charCodeAt(X));)X++;X>=W&&(Z=!0)}}else if(J>=Ba&&J<=Va){for(var Q=G;Q<W&&e.charCodeAt(Q)>=Ba&&e.charCodeAt(Q)<=Va;)Q++;if(Q<W&&(e.charCodeAt(Q)===Fa||e.charCodeAt(Q)===La)){var ee=Q+1;if(ee>=W||e.charCodeAt(ee)===fa||9===e.charCodeAt(ee)){for(var re=ee;re<W&&(e.charCodeAt(re)===fa||9===e.charCodeAt(re));)re++;re>=W&&(Z=!0)}}}Z&&(e=e.slice(0,H).trimEnd())}}}if(r.inline)return Bs(e,0,e.length,r,t);let te=[],ne=0,ie=e.length;if(0===ne&&!t.disableFrontmatter&&e.startsWith("---")){let r=function(e){if(!Il(e,"---"))return null;let r=3;for(;r<e.length&&(" "===e[r]||"\t"===e[r]);)r++;if(r<e.length&&"\r"===e[r]&&r++,r>=e.length||"\n"!==e[r])return null;r++;let t=!1;for(;r<e.length;){let n=r;for(;r<e.length&&"\n"!==e[r]&&"\r"!==e[r];)r++;if(r>=e.length)break;let i=r;if("\r"===e[r]&&r++,r<e.length&&"\n"===e[r]&&r++,Il(e,"---",n))return{endPos:r,hasValidYaml:t};if(!t){let r=Rl(e,n,i);if(r<i){let n=e.charCodeAt(r);if(n>=Ga&&n<=Ka||n>=Ha&&n<=Wa||n>=Ba&&n<=Va||n===Ea){for(r++;r<i&&(n=e.charCodeAt(r),n>=Ga&&n<=Ka||n>=Ha&&n<=Wa||n>=Ba&&n<=Va||n===Ea||n===wa||n===Fa);)r++;r<i&&e.charCodeAt(r)===Aa&&(r++,r>=i?t=!0:(n=e.charCodeAt(r),(n===fa||9===n)&&(t=!0)))}}}}return null}(e);if(r?.hasValidYaml){if(!1!==t.preserveFrontmatter){let t=e.slice(0,r.endPos).trimEnd();te.push({type:il,text:t})}ne=r.endPos}}for(;ne<ie;){for(var oe=e.indexOf("\n",ne),ae=oe<0?ie:oe;ne<ie&&Nu(e,ne,ae);)ne=ae<ie?ae+1:ae,ne<ie&&(ae=(oe=e.indexOf("\n",ne))<0?ie:oe);if(ne>=ie)break;var le=30===e.charCodeAt(ne);qu(e,ne,ae);let n=null;if(ju=e,xu=ne,Ou=ae,!le&&Pu>=4&&!r.inHTML)n=Hu(e,ne);else if(!le){let i=e.charCodeAt(ne+Fu);i===ga?n=Ru(e,ne,r,t):i===ba?n=Wu(e,ne,r,t):i===ma||i===pa?n=Bu(e,ne):i===wa||i===Sa||i===Ea?(n=Mu(e,ne),!n&&(n=Yu(e,ne,r,t))):i===Ra||i>=Ba&&i<=Va?n=Yu(e,ne,r,t):i===ja?n=ns(e,ne,r,t):i===Ma?n=os(e,ne,r,t):i===va&&(n=as(e,ne,r))}if(!n){for(var ue=!1,se=ne;se<ae;se++)if(e.charCodeAt(se)===Ma){ue=!0;break}ue&&(n=os(e,ne,r,t))}if(n||(n=ls(e,ne,r,t)),n)n.node.type!==ml&&te.push(n.node),ne=n.end;else{var ce=e.indexOf("\n",ne);ne=ce<0?ie:ce+1}}return r.o=n,te}function Ks(e,r){var t=vu(e,r);return t?{tagName:t.tag,tagLower:t.tag.toLowerCase(),attrs:t.b,whitespaceBeforeAttrs:t.g,isSelfClosing:t.n,hasSpaceBeforeSlash:t.r,isClosing:t.f,hasNewline:t.g.includes("\n")||t.b.includes("\n"),endPos:t.end}:null}function Js(e,r,t){var n,i;Ls=0,e=function(e){var r=e.indexOf("\r"),t=e.indexOf("\0");if(-1===r&&-1===t)return e;var n=e.length;Tl.length=0;var i=0,o=0;for(o=-1===r?t:-1===t||r<t?r:t;o<n;o++){var a=e.charCodeAt(o);a===da?(i<o&&Tl.push(e.slice(i,o)),o+1<n&&e.charCodeAt(o+1)===ha&&o++,Tl.push("\n"),i=o+1):0===a&&(i<o&&Tl.push(e.slice(i,o)),Tl.push("�"),i=o+1)}return i<n&&Tl.push(e.slice(i)),Tl.join("")}(e),!r.refs&&(r.refs={}),(t.optimizeForStreaming||r.inline)&&(r.w=function(e,r,t){if(!t.optimizeForStreaming&&-1===e.indexOf("["))return!1;for(var n=0,i=e.length,o=!1,a=!1;n<i;){for(var l=e.indexOf("\n",n),u=l<0?i:l,s=n,c=0;s<u&&c<4;)if(e.charCodeAt(s)===fa)c++,s++;else{if(9!==e.charCodeAt(s))break;c+=4,s++}if(s>=u)o=!1,n=l<0?i:l+1;else{if(c<4){var f=e.charCodeAt(s);if(f===ma||f===pa){for(var d=f,h=0,m=s;m<u&&e.charCodeAt(m)===d;)h++,m++;if(h>=3){var p=!0;if(d===ma)for(var v=m;v<u;v++)if(e.charCodeAt(v)===ma){p=!1;break}if(p){o=!1;for(var y=l<0?i:l+1;y<i;){for(var b=y,g=0;b<i&&g<4;){var w=e.charCodeAt(b);if(w===fa)g++,b++;else{if(9!==w)break;g+=4,b++}}if(g<4&&b<i&&e.charCodeAt(b)===d){for(var k=0;b<i&&e.charCodeAt(b)===d;)k++,b++;if(k>=h){for(;b<i&&(e.charCodeAt(b)===fa||9===e.charCodeAt(b));)b++;if(b>=i||e.charCodeAt(b)===ha){n=b>=i?i:b+1;break}}}for(;y<i&&e.charCodeAt(y)!==ha;)y++;y<i&&y++}y>=i&&(n=i,a=!0);continue}}}}for(var $=s;$<u&&e.charCodeAt($)===ba;){++$<u&&e.charCodeAt($)===fa&&$++;for(var S=0;$<u&&S<4;)if(e.charCodeAt($)===fa)S++,$++;else{if(9!==e.charCodeAt($))break;S+=4,$++}if(S>=4)break;o=!1}if(!o&&c<4&&$<u&&e.charCodeAt($)===va&&!($+1<i&&e.charCodeAt($+1)===ya)){var E=bu(e,$,r);if(E){n=E,o=!1;continue}}var j=e.charCodeAt(s);if(j===ga&&c<4)o=!1;else if(c<4&&(j===wa||j===Sa||j===Ea)){for(var x=s,O=0;x<u;){var A=e.charCodeAt(x);if(A===j)O++;else if(A!==fa&&9!==A)break;x++}o=!(O>=3&&x>=u)}else o=!0;n=l<0?i:l+1}}return a}(e,r.refs,t)),r.t||(r.t=n=[],r.p=i=[]);let o=Gs(e,r,t);if(n&&i){for(var a=n,l={inline:r.inline,inAnchor:r.inAnchor,inHTML:r.inHTML,htmlDepth:r.d,inList:r.inList,inBlockQuote:r.inBlockQuote,noSetext:r.l,depth:r.o},u=0;u<a.length;u++){var s=a[u];r.inline=s.inline,r.inAnchor=s.inAnchor,r.inHTML=s.inHTML,r.d=s.htmlDepth,r.inList=s.inList,r.inBlockQuote=s.inBlockQuote,r.l=s.noSetext,r.o=s.depth,r.k=s.breaks;var c=Bs(s.text,0,s.text.length,r,t);r.k=!1;for(var f=0;f<c.length;f++)s.dest.push(c[f])}r.inline=l.inline,r.inAnchor=l.inAnchor,r.inHTML=l.inHTML,r.d=l.htmlDepth,r.inList=l.inList,r.inBlockQuote=l.inBlockQuote,r.l=l.noSetext,r.o=l.depth;for(var d=i,h=0;h<d.length;h++)for(var m=d[h],p=0;p<m.src.length;p++){var v=m.src[p];if(m.unwrap&&v.type===hl)for(var y=v.children,b=0;b<y.length;b++)m.dest.push(y[b]);else m.dest.push(v)}r.t=void 0,r.p=void 0,Ts(o,r,t.slugify)}return Ml(r.refs)?[{type:ml,refs:r.refs},...o]:o}try{Hs=oe.createElement("div"),Vs=null!=Hs&&"object"==typeof Hs&&"$$typeof"in Hs&&"symbol"==typeof Hs.$$typeof?Hs.$$typeof:Symbol.for("react.transitional.element")}catch{Vs=Symbol.for("react.transitional.element")}function Zs(e,r,t){return{$$typeof:Vs,type:e,key:null==t?null:String(t),ref:null,props:r,_owner:null,_store:{},_debugStack:null,_debugTask:null}}function Ys(e,r){var t={key:e};if(r){var n=$l(r);for(var i in n)t[i]=n[i]}return t}var Xs=typeof oe.createContext>"u"?void 0:oe.createContext(void 0);function Qs(e,r,t,n,i,o,a,l,u){switch(e.type){case Ya:{let i={key:t.key};return e.alert&&(i.className=`markdown-alert-${o(e.alert.toLowerCase(),_l)}`,e.children.unshift(function(e){return{attrs:{},children:[{type:vl,text:e}],c:!0,type:ll,tag:"header"}}(e.alert))),n("blockquote",i,r(e.children,t))}case Xa:return n("br",{key:t.key});case Qa:return n("hr",{key:t.key});case il:return l.preserveFrontmatter?n("pre",{key:t.key},e.text):null;case el:{let r=e.lang?El(e.lang):"";var s=e.attrs?$l(e.attrs):{};return s.className=r?`language-${r} lang-${r}`:"",n("pre",{key:t.key},n("code",s,e.text))}case rl:return n("code",{key:t.key},e.text);case nl:return n("a",{key:t.key,href:i(e.target,"a","href")||void 0},n("sup",null,e.text));case ol:return n("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"});case al:return n(`h${e.level}`,{id:e.id,key:t.key},r(e.children,t));case ll:{let o=e;if(Hl(l)&&Zl(o.tag)){var c=Vl(o);return"literal"===c.kind?n("span",{key:t.key},c.literal):n("span",{key:t.key},...function(e,r,t){var n=[],i=t;if(e&&n.push(e),Array.isArray(r))for(var o=0;o<r.length;o++)n.push(r[o]);else null!=r&&n.push(r);i&&n.push(i);for(var a=[],l=0;l<n.length;l++){var u=n[l];"string"==typeof u&&a.length>0&&"string"==typeof a.at(-1)?a[a.length-1]=a.at(-1)+u:a.push(u)}return a}(c.open,o.children?r(o.children,t):null,c.close))}let s=o.j,v=void 0!==s,y=v?s:o.a?o.e||"":(o.e||"")+(o.h||"");if(y&&o.c){let n=function(e){return tu.has(e)}(o.tag.toLowerCase()),c=o.children,b=null!=c&&c.length>0;if(n){let r=v?s:o.e||"",n=Hl(l)?Yl(r):r;if(/<[a-z][^>]{0,100}>/i.test(y)){var f=Ys(t.key,e.attrs);return f.dangerouslySetInnerHTML={__html:n},u(e.tag,f)}return u(e.tag,Ys(t.key,e.attrs),n)}let g=new RegExp(`^<${o.tag}(\\s|>)`,"i");if(b&&!g.test(y)&&Hl(l)&&function(e){return Jl.lastIndex=0,Jl.test(e)}(y))return u(e.tag,Ys(t.key,e.attrs),r(c,t));if(function(e){return nu.test(e)}(y)){let r=Hl(l)?Yl(y):y;var d=Ys(t.key,e.attrs);return d.dangerouslySetInnerHTML={__html:r},u(e.tag,d)}let w=Xl({slugify:l.slugify,sanitizer:i,tagfilter:!0}),k=function(e){return e.replace(/>\s+</g,"><").replace(/\n+/g," ").trim()}(y);if(new RegExp(`^<${o.tag}(\\s[^>]*)?>(\\s*</${o.tag}>)?$`,"i").test(k))return o.children&&o.children.length>0?u(e.tag,Ys(t.key,e.attrs),r(o.children,t)):u(e.tag,Ys(t.key,e.attrs));let $=Js(k,{inline:!1,refs:a,inHTML:!1},w);Ll($);let S=o.tag.toLowerCase(),E=v;if(E&&b)return u(e.tag,Ys(t.key,e.attrs),r(c,t));if(E)return r($.flatMap(Ul),t);var h=function(e,r){for(var t=0;t<e.length;t++){var n=e[t];if(n.type===hl&&n.children)for(var i=n.children,o=0;o<i.length;o++){var a=i[o];if(a.type===sl&&a.a&&a.tag.toLowerCase()===r){var l=e.slice(0,t);o>0&&l.push({type:hl,children:i.slice(0,o)});var u=[];if(o+1<i.length){var s=i.slice(o+1).filter((e=>!(e.type===sl&&e.a)));s.length>0&&(u=s)}return{found:!0,beforeClose:l,afterClose:u=u.concat(e.slice(t+1))}}}if((n.type===sl||n.type===ll)&&n.a&&n.tag.toLowerCase()===r)return{found:!0,beforeClose:e.slice(0,t),afterClose:e.slice(t+1)}}return{found:!1,beforeClose:e,afterClose:[]}}($,S);if(h.found&&h.afterClose.length>0){var m=h.beforeClose.flatMap(Ul),p=h.afterClose.flatMap(Ul);return Zs(oe.Fragment,{children:[u(e.tag,Ys(t.key,e.attrs),r(m,t)),r(p,t)]},t.key)}return u(e.tag,Ys(t.key,e.attrs),r($.flatMap(Ul),t))}return Pl(e.tag)?u(e.tag,Ys(t.key,e.attrs)):u(e.tag,Ys(t.key,e.attrs),e.children?r(e.children,t):"")}case sl:{let r=e;if(Hl(l)&&Zl(r.tag)){var v=Vl(r);return n("span",{key:t.key},"literal"===v.kind?v.literal:v.open+(v.close||""))}return u(e.tag,Ys(t.key,e.attrs))}case cl:{let r=null===e.target?null:i(e.target,"img","src");return n("img",{key:t.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:r||void 0})}case fl:{let o={key:t.key};if(null!=e.target){let r=function(e,r,t,n){var i=r(e,t,n);return null===i?null:function(e){for(var r=!1,t=0;t<e.length;t++)if((i=e.charCodeAt(t))<=fa||i===Ta||37===i||i===ja||i===ba||i===va||i===$a||i===xa||i===ya||i===ma||i>=123){r=!0;break}if(!r)return e;var n="";for(t=0;t<e.length;t++){var i;if(37===(i=e.charCodeAt(t))&&t+2<e.length){var o=e.charCodeAt(t+1),a=e.charCodeAt(t+2);if((o>=Ba&&o<=Va||o>=Ha&&o<=70||o>=Ga&&o<=Ca)&&(a>=Ba&&a<=Va||a>=Ha&&a<=70||a>=Ga&&a<=Ca)){n+=e[t]+e[t+1]+e[t+2],t+=2;continue}}if(i>=55296&&i<=57343){if(i<=56319&&t+1<e.length){var l=e.charCodeAt(t+1);if(l>=56320&&l<=57343){n+=encodeURI(e[t]+e[t+1]),t++;continue}}n+=e[t]}else n+=encodeURI(e[t])}return n}(i)}(e.target,i,"a","href");null!=r&&(o.href=r)}return e.title&&(o.title=e.title),n("a",o,r(e.children,t))}case pl:{let i=e;return n("table",{key:t.key},n("thead",{key:"thead"},n("tr",null,i.header.map((function(e,o){return n("th",{key:o,style:null===i.align[o]?{}:{textAlign:i.align[o]}},r(e,t))})))),i.cells.length>0&&n("tbody",{key:"tbody"},i.cells.map((function(e,o){return n("tr",{key:o},e.map((function(e,o){return n("td",{key:o,style:null===i.align[o]?{}:{textAlign:i.align[o]}},r(e,t))})))}))))}case vl:return e.text;case yl:return n(e.tag,{key:t.key},r(e.children,t));case dl:case bl:return n(e.type===dl?"ol":"ul",{key:t.key,start:e.type===dl?e.start:void 0},e.items.map((function(e,i){return n("li",{key:i},r(e,t))})));case hl:return n("p",{key:t.key},r(e.children,t));default:return null}}function ec(e="",r={}){let t={...r||{}};t.overrides=t.overrides||{};let n={};return function(e){let r=t.forceInline||!(t.forceBlock||Sl.test(e)),i=Xl(t,r),o=r?e:function(e){for(var r=e.length;r>0&&("\n"===e[r-1]||"\r"===e[r-1]);)r--;return`${e.slice(0,r).replace(zl,"")}\n\n`}(e);return function(e,r){let t={...r||{}};t.overrides=t.overrides||{};let n=t.slugify||_l,i=t.sanitizer||xl,o=t.createElement,a=Ml(t.overrides),l=e=>ec(e,{...t,wrapper:null});function u(e,r,...n){var i=r||{},l=e;if(a){var u=Wl(t.overrides,`${e}.props`,{});l=((e,r)=>{let t=Wl(r,e,void 0);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Wl(r,`${e}.component`,e):e})(e,t.overrides),i={...i,...u,className:Gl(i.className,u.className)||void 0}}if(!o){var s=i.key;return null!=s&&delete i.key,1===n.length?i.children=n[0]:n.length>1&&(i.children=n),Zs(l,i,s)}return o(l,i,...n)}let s=Xl(t,t.forceInline),c=e[0]&&e[0].type===ml?e[0].refs:{},f=((e,r,t,n,i,o,a)=>{var l=(u,s={})=>{var c=Array.isArray(u)?u:[u],f=(s.renderDepth||0)+1;if(f>2500)return(e=>e.map((e=>"text"in e?e.text:"")))(c);s.renderDepth=f;for(var d=s.key,h=[],m=!1,p=0;p<c.length;p++){var v;if(s.key=p,e){var y=Qs.bind(null,c[p],l,s,r,t,n,i,o,a);v=e(y,c[p],l,s)}else v=Qs(c[p],l,s,r,t,n,i,o,a);var b="string"==typeof v;if(m&&"string"==typeof v){var g=h.at(-1);h[h.length-1]=("string"==typeof g?g:"")+v}else if(null!=v)if(Array.isArray(v))for(var w=0;w<v.length;w++)h.push(v[w]);else h.push(v);m=b}return s.key=d,s.renderDepth=f-1,h};return l})(t.renderRule,u,i,n,c,t,(function(e,r,...t){return r&&function(e){for(var r in e){var t=e[r];if("string"==typeof t&&t.length>0&&t.charCodeAt(0)===ja&&(Ql.test(t)||eu.test(t)||Ks(t,0))){var n=l(t.trim());e[r]="innerHTML"===r&&Array.isArray(n)?n[0]:n}}}(r),u(e,r,...t)})),d=f(e,{inline:t.forceInline,refs:c}),h=function(e){var r=[];if(!e)return r;for(var t in e)94===t.charCodeAt(0)&&r.push({identifier:t,footnote:e[t].target});return r}(c);if(h.length>0&&d.push(u("footer",{key:"footer"},h.map((function(e){let r=e.identifier.charCodeAt(0)===ya?e.identifier.slice(1):e.identifier,t=Js(e.footnote,{inline:!0,refs:c},s);return u("div",{id:n(r,_l),key:e.identifier},`${r}: `,f(t,{inline:!0,refs:c}))})))),null===t.wrapper)return d;let m,p=t.wrapper||(t.forceInline?"span":"div");if(!(d.length>1||t.forceWrapper))return 1===d.length?d[0]:null;m=d;var v=t.wrapperProps?{...t.wrapperProps}:{};return v.children=m,Zs(p,v,"outer")}(Js(o,{inline:r,refs:n},i),{...t,forceInline:r})}(e)}var rc=({children:e,options:r,...t})=>{if(!(typeof oe.useContext<"u"))return ec(e??"",{...r,overrides:{...r?.overrides},wrapperProps:{...r?.wrapperProps,...t}});let n=Xs?oe.useContext(Xs):void 0,i=function(e){let r=oe.useRef(e),t=r.current;if(t!==e){var n=!0,i=0;for(var o in e)if(i++,!Object.is(t[o],e[o])){n=!1;break}if(n){var a=0;for(var l in t)a++;n=a===i}n||(r.current=e)}return r.current}(t),o=oe.useMemo((()=>({...n,...r,overrides:{...n?.overrides,...r?.overrides},wrapperProps:{...n?.wrapperProps,...r?.wrapperProps,...i}})),[n,r,i]),a=e??"";return oe.useMemo((()=>ec(a,o)),[a,o])};const tc=Symbol("remove-this-key"),nc=Symbol("reset");function ic(e,r){return Array.isArray(e.required)&&e.required.includes(r)}function oc(e){return Boolean(e?.[Oe])}function ac(e){return Object.keys(e).filter((r=>oc(e[r])))}const lc=oe.memo((function(e){const{fieldPathId:r,schema:t,registry:n,uiSchema:i,errorSchema:o,formData:a,onChange:l,onBlur:u,onFocus:s,disabled:c,readonly:f,required:d,hideError:h,propertyName:m,handleKeyRename:p,handleRemoveProperty:v,addedByAdditionalProperties:y}=e,[b,g]=oe.useState(!1),{globalFormOptions:w,fields:k}=n,{SchemaField:$}=k,S=so(oo(m,w,r.path)),E=oe.useCallback(((e,r,t,n)=>{let i=e;void 0===e&&y&&Tr(r,S.path)&&(i=""),l(i,r,t,n)}),[l,y,S]),j=oe.useCallback((e=>{m!==e&&g(!0),p(m,e)}),[m,p]),x=oe.useCallback((e=>{const{target:{value:r}}=e;j(r)}),[j]),O=oe.useCallback((()=>{v(m)}),[m,v]);return Se.jsx($,{name:m,required:d,schema:t,uiSchema:i,errorSchema:o,fieldPathId:S,formData:a,wasPropertyKeyModified:b,onKeyRename:j,onKeyRenameBlur:x,onRemoveProperty:O,onChange:E,onBlur:u,onFocus:s,registry:n,disabled:c,readonly:f,hideError:h})}));function uc(e){const{schema:r,uiSchema:t={},formData:n,errorSchema:i,fieldPathId:o,name:a,required:l=!1,disabled:u,readonly:s,hideError:c,onBlur:f,onFocus:d,onChange:h,registry:m,title:p}=e,{fields:v,schemaUtils:y,translateString:b,globalUiOptions:g}=m,{OptionalDataControlsField:w}=v,k=oe.useRef(n);k.current=n;const $=oe.useMemo((()=>y.retrieveSchema(r,n,!0)),[y,r,n]),S=oe.useMemo((()=>ar(t,g)),[t,g]),E=oe.useMemo((()=>$.properties??{}),[$.properties]),j=e.childFieldPathId??o,x=oe.useRef({previousKey:"",currentKey:void 0}),[O,A]=oe.useState((()=>ac(E))),C=oe.useMemo((()=>{const e=new Set(ac(E));return Object.keys(E).filter((r=>!e.has(r)))}),[E]),_=S.title??$.title??p??a,I=S.description??$.description,D=ro(m,$,l,t),P=Vi(n);let F=[];const q=oe.useCallback(((e,r)=>{const{duplicateKeySuffixSeparator:n="-"}=ar(t,g);let i=0,o=e;for(;st(r,o);)i+=1,o=`${e}${n}${i}`;return o}),[t,g]),N=oe.useCallback((()=>{if(!$.additionalProperties&&!$.patternProperties)return;const e={...n},r=q("newKey",e);if($.patternProperties)ut(e,r,null);else{let t,i,o;if(Ee($.additionalProperties)){t=$.additionalProperties.type,i=$.additionalProperties.const,o=$.additionalProperties.default;let e=$.additionalProperties;He in e&&(e=y.retrieveSchema({[He]:e[He]},n),t=e.type,i=e.const,o=y.getDefaultFormState(e,o)),t||!(_e in e)&&!(Me in e)||(t="object")}const a=i??o??function(e,r){switch(r){case"array":return[];case"boolean":return!1;case"null":return null;case"number":return 0;case"object":return{};default:return e(yo.NewStringDefault)}}(b,t);ut(e,r,a)}x.current.previousKey===r&&(x.current.currentKey=r,x.current.previousKey=q(r,e)),A((e=>[...e,r])),h(e,j.path)}),[n,h,b,y,j,q,$]),T=oe.useCallback(((e,r)=>{if(e!==r){const t=k.current,n=q(r,t),i={...t},o={[e]:n},a=Object.keys(i).map((e=>{const r=Object.hasOwn(o,e)?o[e]:e;return{[r]:i[e]}})),l=Object.assign({},...a);k.current=l,e!==x.current.currentKey&&(x.current.previousKey=e),x.current.currentKey=n,A((r=>r.map((r=>r===e?n:r)))),h(l,j.path)}}),[h,j,q]),R=oe.useCallback((e=>{A((r=>r.filter((r=>r!==e)))),h(tc,[...j.path,e])}),[h,j]),M=oe.useCallback((e=>x.current.currentKey===e?x.current.previousKey:e),[]);if(!D||P)try{const e=new Set(C),r=O.filter((r=>Object.hasOwn(E,r)&&!e.has(r)));F=function(e,r){if(!Array.isArray(r))return e;const t=e=>e.reduce(((e,r)=>(e[r]=!0,e)),{}),n=t(e),i=r.filter((e=>"*"===e||n[e])),o=t(i),a=e.filter((e=>!o[e])),l=i.indexOf("*");if(-1===l){if(a.length)throw new Error("uiSchema order list does not contain "+((u=a).length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`));return i}var u;if(l!==i.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const s=[...i];return s.splice(l,1,...a),s}([...C,...r],S.order)}catch(e){return Se.jsxs("div",{children:[Se.jsx("p",{className:"rjsf-config-error",style:{color:"red"},children:Se.jsx(rc,{options:{disableParsingRawHTML:!0},children:b(yo.InvalidObjectField,[a||"root",e.message])})}),Se.jsx("pre",{children:JSON.stringify($)})]})}const z=wi("ObjectFieldTemplate",m,S),U=D?Se.jsx(w,{...e,fieldPathId:j,schema:$}):void 0,L={title:!1===S.label?"":_,description:!1===S.label?void 0:I,properties:F.map((e=>{const r=oc($.properties?.[e]),o=r?t.additionalProperties:t[e],a="hidden"===ar(o).widget;return{content:Se.jsx(lc,{propertyName:e,required:ic($,e),schema:mt($,e),uiSchema:o,errorSchema:lt(i,e),fieldPathId:j,formData:lt(n,e),handleKeyRename:T,handleRemoveProperty:R,addedByAdditionalProperties:r,onChange:h,onBlur:f,onFocus:d,registry:m,disabled:u,readonly:s,hideError:c},M(e)),name:e,readonly:s,disabled:u,required:l,hidden:a}})),readonly:s,disabled:u,required:l,fieldPathId:o,uiSchema:t,errorSchema:i,schema:$,formData:n,registry:m,optionalDataControl:U,className:D?"rjsf-optional-object-field":void 0};return Se.jsx(z,{...L,onAddProperty:N})}function sc(e){const{schema:r,uiSchema:t={},formData:n,disabled:i=!1,readonly:o=!1,onChange:a,errorSchema:l,fieldPathId:u,registry:s}=e,{globalUiOptions:c={},schemaUtils:f,translateString:d}=s,h=wi("OptionalDataControlsTemplate",s,ar(t,c)),m=Vi(n);let p,v,y,b;return i||o?(p=Bi(u,"Msg"),v=m?void 0:d(yo.OptionalObjectEmptyMsg)):(v=d(m?yo.OptionalObjectRemove:yo.OptionalObjectAdd),m?(p=Bi(u,"Remove"),b=()=>a(void 0,u.path,l)):(p=Bi(u,"Add"),y=()=>{let e=f.getDefaultFormState(r,n,"excludeObjectChildren");void 0===e&&(e="array"===dt(r)?[]:{}),a(e,u.path,l)})),v&&Se.jsx(h,{id:p,registry:s,schema:r,uiSchema:t,label:v,onAddClick:y,onRemoveClick:b})}const cc={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"},fc=oe.memo((function(e){const{schema:r,fieldPathId:t,uiSchema:n,formData:i,errorSchema:o,name:a,onChange:l,onKeyRename:u,onKeyRenameBlur:s,onRemoveProperty:c,required:f=!1,registry:d,wasPropertyKeyModified:h=!1}=e,{schemaUtils:m,globalFormOptions:p,globalUiOptions:v,fields:y}=d,{AnyOfField:b,OneOfField:g,CyclicSchemaField:w}=y,k=t[qe],$=oe.useCallback(((e,r,t,n)=>l(e,r,t,n||k)),[k,l]);if(r[Ge])return Se.jsx(w,{...e});const S=function(e,r,t){const n=e[We]??e[He],i=t.uiSchemaDefinitions,o=n&&i?i[n]:void 0;let a;if(a=o?r&&0!==Object.keys(r).length?Fn(o,r):{...o}:r||{},i){let r=e;if(n&&e[He]&&!e[We])try{r=rt(n,t.rootSchema)}catch(e){return console.warn("could not resolve $ref in resolveUiSchema:\n",e),a}for(const e of[Me,_e]){const t=r[e];if(Array.isArray(t)&&t.length>0){const r=a[e],n=Array.isArray(r)?[...r]:[];let o=!1;for(let e=0;e<t.length;e++){const r=t[e],a=r?.[We]??r?.[He];a&&a in i&&(n[e]=Fn(i[a],n[e]||{}),o=!0)}o&&(a[e]=n)}}}return a}(r,n,d),E=ar(S,v),j=wi("FieldTemplate",d,E),x=wi("DescriptionFieldTemplate",d,E),O=wi("FieldHelpTemplate",d,E),A=wi("FieldErrorTemplate",d,E),C=m.retrieveSchema(r,i),_=function(e,r,t){const{field:n}=r,{fields:i,schemaUtils:o}=t;if("function"==typeof n)return n;if("string"==typeof n&&n in i)return i[n];const a=dt(e),l=Array.isArray(a)?a[0]:a||"",u=e.$id;let s=cc[l];return u&&u in i&&(s=u),!e.anyOf&&!e.oneOf||o.isSelect(e)||"ObjectField"===s?s in i?i[s]:i.FallbackField:()=>null}(C,E,d),I=Boolean(C.deprecated)?E.deprecatedHandling??"label":void 0,D=Boolean(E.disabled??e.disabled)||"disable"===I,P=Boolean(E.readonly??(e.readonly||e.schema.readOnly||C.readOnly)),F=E.hideError,q=void 0===F?e.hideError:Boolean(F),N=Boolean(E.autofocus??e.autofocus);if(0===Object.keys(C).length)return null;let T,R,M=m.getDisplayLabel(C,S,v),z={fieldPathId:t};if(!(!(_e in C)&&!(Me in C)||E.field&&!0===E.fieldReplacesAnyOrOneOf||m.isSelect(C))){C[_e]?(T=b,R=C[_e].map((e=>m.retrieveSchema(Ee(e)?e:{},i)))):C[Me]&&(T=g,R=C[Me].map((e=>m.retrieveSchema(Ee(e)?e:{},i))));const e=ro(d,C,f,S),r=Vi(i);M=M&&(!e||r),z={childFieldPathId:t,fieldPathId:oo("XxxOf",p,t)}}const{__errors:U,...L}=o||{},{"ui:classNames":B,classNames:V,"ui:style":H,...W}=S;if(nr in W){const{classNames:e,style:r,...t}=W[nr];W[nr]=t}const G=Se.jsx(_,{...e,onChange:$,...z,schema:C,uiSchema:W,disabled:D,readonly:P,hideError:q,autofocus:N,errorSchema:L,rawErrors:U}),K=t[qe];let J;J=h||Oe in C?a:E.title||e.schema.title||C.title||e.title||a,"label"===I&&(J=d.translateString(yo.DeprecatedLabel,[J]));const Z=E.description||e.schema.description||C.description||"",{help:Y}=E,X="hidden"===E.widget||"hide"===I,Q=["rjsf-field",`rjsf-field-${dt(C)}`];!q&&U&&U.length>0&&Q.push("rjsf-field-error"),E.classNames&&Q.push(E.classNames);const ee=Se.jsx(O,{help:Y,fieldPathId:t,schema:C,uiSchema:S,hasErrors:!q&&U&&U.length>0,registry:d}),re=q||T&&!m.isSelect(C)?void 0:Se.jsx(A,{errors:U,errorSchema:o,fieldPathId:t,schema:C,uiSchema:S,registry:d}),te={description:Se.jsx(x,{id:qi(K),description:Z,schema:C,uiSchema:S,registry:d}),rawDescription:Z,help:ee,rawHelp:"string"==typeof Y?Y:void 0,errors:re,rawErrors:q?void 0:U,fieldPathId:t,id:K,label:J,hidden:X,onChange:l,onKeyRename:u,onKeyRenameBlur:s,onRemoveProperty:c,required:f,disabled:D,readonly:P,hideError:q,displayLabel:M,classNames:Q.join(" ").trim(),style:E.style,formData:i,schema:C,uiSchema:S,registry:d};return Se.jsx(j,{...te,children:Se.jsxs(Se.Fragment,{children:[G,T&&Se.jsx(T,{name:a,disabled:D,readonly:P,hideError:q,errorSchema:o,formData:i,fieldPathId:t,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:R,registry:d,required:f,schema:C,uiSchema:S})]})})}),((e,r)=>{const{experimental_componentUpdateStrategy:t="customDeep"}=r.registry.globalFormOptions;return"always"!==t&&("shallow"===t?Qi(e,r):Tr(e,r))}));function dc(e){const{schema:r,name:t,uiSchema:n,fieldPathId:i,formData:o,required:a,disabled:l=!1,readonly:u=!1,autofocus:s=!1,onChange:c,onBlur:f,onFocus:d,registry:h,rawErrors:m,hideError:p,title:v}=e,{title:y}=r,{widgets:b,schemaUtils:g,globalUiOptions:w}=h,{defaultWidget:k,enumOptions:$}=Ji(r,n,g,b),{widget:S=k,placeholder:E="",title:j,...x}=ar(n),O=g.getDisplayLabel(r,n,w),A=j??v??y??t,C=_i(r,S,b),_=oe.useCallback(((e,r,t)=>c(e,i.path,r,t)),[c,i]);return Se.jsx(C,{options:{...x,enumOptions:$},schema:r,uiSchema:n,id:i.$id,name:t,label:A,hideLabel:!O,hideError:p,value:o,onChange:_,onBlur:f,onFocus:d,required:a,disabled:l,readonly:u,autofocus:s,registry:h,placeholder:E,rawErrors:m,htmlName:i.name})}function hc(e){const{fieldPathId:r,description:t,registry:n,schema:i,uiSchema:o}=e,a=ar(o,n.globalUiOptions),{label:l=!0}=a;if(!t||!l)return null;const u=wi("DescriptionFieldTemplate",n,a);return Se.jsx(u,{id:qi(r),description:t,schema:i,uiSchema:o,registry:n})}function mc(e){const{disabled:r,hasCopy:t,hasMoveDown:n,hasMoveUp:i,hasRemove:o,fieldPathId:a,onCopyItem:l,onRemoveItem:u,onMoveDownItem:s,onMoveUpItem:c,readonly:f,registry:d,uiSchema:h}=e,{CopyButton:m,MoveDownButton:p,MoveUpButton:v,RemoveButton:y}=d.templates.ButtonTemplates;return Se.jsxs(Se.Fragment,{children:[(i||n)&&Se.jsx(v,{id:Li(a,"moveUp"),className:"rjsf-array-item-move-up",disabled:r||f||!i,onClick:c,uiSchema:h,registry:d}),(i||n)&&Se.jsx(p,{id:Li(a,"moveDown"),className:"rjsf-array-item-move-down",disabled:r||f||!n,onClick:s,uiSchema:h,registry:d}),t&&Se.jsx(m,{id:Li(a,"copy"),className:"rjsf-array-item-copy",disabled:r||f,onClick:l,uiSchema:h,registry:d}),o&&Se.jsx(y,{id:Li(a,"remove"),className:"rjsf-array-item-remove",disabled:r||f,onClick:u,uiSchema:h,registry:d})]})}function pc(e){const{children:r,className:t,buttonsProps:n,displayLabel:i,hasDescription:o,hasToolbar:a,registry:l,uiSchema:u}=e,s=wi("ArrayFieldItemButtonsTemplate",l,ar(u)),c={display:"flex",justifyContent:"flex-end",marginTop:i?(o?31:9)+"px":0};return Se.jsxs("div",{className:t,style:{display:"flex",alignItems:i?"center":"baseline"},children:[Se.jsx("div",{className:a?"col-xs-9 col-md-10 col-xl-11":"col-xs-12",children:r}),a&&Se.jsx("div",{className:"col-xs-3 col-md-2 col-xl-1 array-item-toolbox",children:Se.jsx("div",{className:"btn-group",style:c,children:Se.jsx(s,{...n,style:{flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"}})})})]})}function vc(e){const{canAdd:r,className:t,disabled:n,fieldPathId:i,uiSchema:o,items:a,optionalDataControl:l,onAddClick:u,readonly:s,registry:c,required:f,schema:d,title:h}=e,m=ar(o),p=wi("ArrayFieldDescriptionTemplate",c,m),v=wi("ArrayFieldTitleTemplate",c,m),y=!s&&!n,{ButtonTemplates:{AddButton:b}}=c.templates;return Se.jsxs("fieldset",{className:t,id:i.$id,children:[Se.jsx(v,{fieldPathId:i,title:m.title||h,required:f,schema:d,uiSchema:o,registry:c,optionalDataControl:y?l:void 0}),Se.jsx(p,{fieldPathId:i,description:m.description||d.description,schema:d,uiSchema:o,registry:c}),y?void 0:l,Se.jsx("div",{className:"row array-item-list",children:a}),r&&Se.jsx(b,{id:Li(i,"add"),className:"rjsf-array-item-add",onClick:u,disabled:n||s,uiSchema:o,registry:c})]})}function yc(e){const{fieldPathId:r,title:t,schema:n,uiSchema:i,required:o,registry:a,optionalDataControl:l}=e,u=ar(i,a.globalUiOptions),{label:s=!0}=u;if(!t||!s)return null;const c=wi("TitleFieldTemplate",a,u);return Se.jsx(c,{id:Mi(r),title:t,required:o,schema:n,uiSchema:i,registry:a,optionalDataControl:l})}function bc(e){const{id:r,schema:t}=e,{examples:n,default:i}=t;return Array.isArray(n)?Se.jsx("datalist",{id:Ti(r),children:n.concat(void 0===i||n.map(String).includes(String(i))?[]:[i]).map((e=>Se.jsx("option",{value:e},String(e))))},`datalist_${r}`):null}function gc(e){const{id:r,name:t,htmlName:n,value:i,readonly:o,disabled:a,autofocus:l,onBlur:u,onFocus:s,onChange:c,onChangeOverride:f,options:d,schema:h,uiSchema:m,registry:p,rawErrors:v,type:y,hideLabel:b,hideError:g,...w}=e,{ClearButton:k}=p.templates.ButtonTemplates;if(!r)throw console.log("No id for",e),new Error(`no id for props ${JSON.stringify(e)}`);const $={...w,...yi(h,y,d)};let S;S="number"===$.type||"integer"===$.type?i||0===i?i:"":null==i?"":i;const E=oe.useCallback((({target:{value:e}})=>c(""===e?d.emptyValue:e)),[c,d]),j=oe.useCallback((({target:e})=>u(r,e?.value)),[u,r]),x=oe.useCallback((({target:e})=>s(r,e?.value)),[s,r]),O=oe.useCallback((e=>{e.preventDefault(),e.stopPropagation(),c(d.emptyValue)}),[c,d.emptyValue]);return Se.jsxs(Se.Fragment,{children:[Se.jsx("input",{id:r,name:n||r,className:"form-control",readOnly:o,disabled:a,autoFocus:l,value:S,...$,list:h.examples?Ti(r):void 0,onChange:f||E,onBlur:j,onFocus:x,"aria-describedby":zi(r,!!h.examples)}),d.allowClearTextInputs&&!o&&!a&&S&&Se.jsx(k,{registry:p,onClick:O}),Se.jsx(bc,{id:r,schema:h})]})}const wc=oe.memo((function(e){const{iconType:r="default",icon:t,className:n,uiSchema:i,registry:o,...a}=e;return Se.jsx("button",{type:"button",className:`btn btn-${r} ${n}`,...a,children:Se.jsx("i",{className:`glyphicon glyphicon-${t}`})})})),kc=oe.memo((function(e){const{registry:{translateString:r}}=e;return Se.jsx(wc,{title:r(yo.CopyButton),...e,icon:"copy"})})),$c=oe.memo((function(e){const{registry:{translateString:r}}=e;return Se.jsx(wc,{title:r(yo.MoveDownButton),...e,icon:"arrow-down"})})),Sc=oe.memo((function(e){const{registry:{translateString:r}}=e;return Se.jsx(wc,{title:r(yo.MoveUpButton),...e,icon:"arrow-up"})})),Ec=oe.memo((function(e){const{registry:{translateString:r}}=e;return Se.jsx(wc,{title:r(yo.RemoveButton),...e,iconType:"danger",icon:"remove"})})),jc=oe.memo((function({id:e,className:r,onClick:t,disabled:n,registry:i,...o}){const{translateString:a}=i;return Se.jsx(wc,{id:e,iconType:"default",icon:"remove",className:"btn-clear col-xs-12",title:a(yo.ClearButton),onClick:t,disabled:n,registry:i,...o})}));function xc({id:e,className:r,onClick:t,disabled:n,registry:i}){const{translateString:o}=i;return Se.jsx("div",{className:"row",children:Se.jsx("p",{className:`col-xs-4 col-sm-2 col-lg-1 col-xs-offset-8 col-sm-offset-10 col-lg-offset-11 text-right ${r}`,children:Se.jsx(wc,{id:e,iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:o(yo.AddButton),onClick:t,disabled:n,registry:i})})})}function Oc({uiSchema:e}){const{submitText:r,norender:t,props:n={}}=function(e={}){const r=ar(e);if(r?.[Ve]){const e=r[Ve];return{...gi,...e}}return gi}(e);return t?null:Se.jsx("div",{children:Se.jsx("button",{type:"submit",...n,className:`btn btn-info ${n.className||""}`,children:r})})}function Ac(e){const{name:r,fieldPathId:t,registry:n,onExpand:i}=e,{translateString:o}=n,a=`${t[qe]}-button`;return Se.jsxs("div",{style:{marginTop:"1rem"},children:[Se.jsx("div",{className:"text-danger",children:o(yo.CycleDetected,[r])}),Se.jsxs("div",{children:[Se.jsx("button",{id:a,type:"button",className:"btn btn-sm btn-warning",onClick:()=>i(t[qe]),children:o(yo.ExpandButton)})," "]})]})}const Cc=$i();function _c({description:e,registry:r,uiSchema:t={}}){const{globalUiOptions:n}=r;return ar(t,n).enableMarkdownInDescription&&"string"==typeof e?Se.jsx(rc,{options:{disableParsingRawHTML:!0},"data-testid":Cc.markdown,children:e}):e}function Ic(e){const{id:r,description:t,registry:n,uiSchema:i}=e;return t?Se.jsx("div",{id:r,className:"field-description",children:Se.jsx(_c,{description:t,registry:n,uiSchema:i})}):null}function Dc({errors:e,registry:r}){const{translateString:t}=r;return Se.jsxs("div",{className:"panel panel-danger errors",children:[Se.jsx("div",{className:"panel-heading",children:Se.jsx("h3",{className:"panel-title",children:t(yo.ErrorsLabel)})}),Se.jsx("ul",{className:"list-group",children:e.map(((e,r)=>Se.jsx("li",{className:"list-group-item text-danger",children:e.stack},r)))})]})}function Pc(e){const{schema:r,registry:t,typeSelector:n,schemaField:i}=e,o=wi("MultiSchemaFieldTemplate",t);return Se.jsx(o,{selector:n,optionSchemaField:i,schema:r,registry:t})}function Fc(e){const{errors:r=[],fieldPathId:t}=e;if(0===r.length)return null;const n=Ni(t);return Se.jsx("div",{children:Se.jsx("ul",{id:n,className:"error-detail bs-callout bs-callout-info",children:r.filter((e=>!!e)).map(((e,r)=>Se.jsx("li",{className:"text-danger",children:e},r)))})})}_c.TEST_IDS=Cc;const qc=$i();function Nc({help:e,registry:r,uiSchema:t={}}){const{globalUiOptions:n}=r;return ar(t,n).enableMarkdownInHelp&&"string"==typeof e?Se.jsx(rc,{options:{disableParsingRawHTML:!0},"data-testid":qc.markdown,children:e}):e}function Tc(e){const{fieldPathId:r,help:t,uiSchema:n,registry:i}=e;return t?Se.jsx("div",{id:Ri(r),className:"help-block",children:Se.jsx(Nc,{help:t,registry:i,uiSchema:n})}):null}function Rc(e){const{label:r,required:t,id:n}=e;return r?Se.jsxs("label",{className:"control-label",htmlFor:n,children:[r,t&&Se.jsx("span",{className:"required",children:"*"})]}):null}function Mc(e){const{id:r,label:t,children:n,errors:i,help:o,description:a,hidden:l,required:u,displayLabel:s,registry:c,uiSchema:f}=e,d=ar(f),h=wi("WrapIfAdditionalTemplate",c,d);if(l)return Se.jsx("div",{className:"hidden",children:n});const m="checkbox"===d.widget;return Se.jsxs(h,{...e,children:[s&&!m&&Se.jsx(Rc,{label:t,required:u,id:r}),s&&a?a:null,n,i,o]})}function zc(e){const{children:r,column:t,className:n,...i}=e;return Se.jsx("div",{className:n,...i,children:r})}function Uc(e){const{selector:r,optionSchemaField:t}=e;return Se.jsxs("div",{className:"panel panel-default panel-body",children:[Se.jsx("div",{className:"form-group",children:r}),t]})}function Lc(e){const{className:r,description:t,disabled:n,formData:i,fieldPathId:o,onAddProperty:a,optionalDataControl:l,properties:u,readonly:s,registry:c,required:f,schema:d,title:h,uiSchema:m}=e,p=ar(m),v=wi("TitleFieldTemplate",c,p),y=wi("DescriptionFieldTemplate",c,p);if((d.oneOf||d.anyOf)&&!d.properties&&0===u.length)return null;const b=!s&&!n,{ButtonTemplates:{AddButton:g}}=c.templates;return Se.jsxs("fieldset",{className:r,id:o.$id,children:[h&&Se.jsx(v,{id:Mi(o),title:h,required:f,schema:d,uiSchema:m,registry:c,optionalDataControl:b?l:void 0}),t&&Se.jsx(y,{id:qi(o),description:t,schema:d,uiSchema:m,registry:c}),b?void 0:l,u.map((e=>e.content)),lr(d,m,i)&&Se.jsx(g,{id:Li(o,"add"),className:"rjsf-object-property-expand",onClick:a,disabled:n||s,uiSchema:m,registry:c})]})}function Bc(e){const{id:r,registry:t,label:n,onAddClick:i,onRemoveClick:o}=e;return i?Se.jsx(wc,{id:r,registry:t,icon:"plus",className:"rjsf-add-optional-data btn-sm",onClick:i,title:n}):o?Se.jsx(wc,{id:r,registry:t,icon:"remove",className:"rjsf-remove-optional-data btn-sm",onClick:o,title:n}):Se.jsx("em",{id:r,children:n})}function Vc(e){const{id:r,title:t,required:n,optionalDataControl:i}=e;return Se.jsxs("legend",{id:r,children:[t,n&&Se.jsx("span",{className:"required",children:"*"}),i&&Se.jsx("span",{className:"pull-right",style:{marginBottom:"2px"},children:i})]})}function Hc(e){const{schema:r,fieldPathId:t,reason:n,registry:i}=e,{translateString:o}=i;let a=yo.UnsupportedField;const l=[];return t?.$id&&(a=yo.UnsupportedFieldWithId,l.push(t.$id)),n&&(a=a===yo.UnsupportedField?yo.UnsupportedFieldWithReason:yo.UnsupportedFieldWithIdAndReason,l.push(n)),Se.jsxs("div",{className:"unsupported-field",children:[Se.jsx("p",{children:Se.jsx(rc,{options:{disableParsingRawHTML:!0},children:o(a,l)})}),r&&Se.jsx("pre",{children:JSON.stringify(r,null,2)})]})}function Wc(e){const{id:r,classNames:t,style:n,disabled:i,displayLabel:o,label:a,onKeyRenameBlur:l,onRemoveProperty:u,rawDescription:s,readonly:c,required:f,schema:d,hideError:h,rawErrors:m,children:p,uiSchema:v,registry:y}=e,{templates:b,translateString:g}=y,{RemoveButton:w}=b.ButtonTemplates,k=g(yo.KeyLabel,[a]),$=Oe in d,S=!!s,E=["form-group",t];!h&&m&&m.length>0&&E.push("has-error has-danger");const j=E.join(" ").trim();if(!$)return Se.jsx("div",{className:j,style:n,children:p});const x=S?46:26;return Se.jsx("div",{className:j,style:n,children:Se.jsxs("div",{className:"row",children:[Se.jsx("div",{className:"col-xs-5 form-additional",children:Se.jsxs("div",{className:"form-group",children:[o&&Se.jsx(Rc,{label:k,required:f,id:`${r}-key`}),o&&s&&Se.jsx("div",{children:" "}),Se.jsx("input",{className:"form-control",type:"text",id:`${r}-key`,onBlur:l,defaultValue:a},a)]})}),Se.jsx("div",{className:"form-additional form-group col-xs-5",children:p}),Se.jsx("div",{className:"col-xs-2",style:{marginTop:o?`${x}px`:void 0},children:Se.jsx(w,{id:Li(r,"remove"),className:"rjsf-object-property-remove btn-block",style:{border:"0"},disabled:i||c,onClick:u,uiSchema:v,registry:y})})]})})}function Gc({time:e=!0,...r}){const{AltDateWidget:t}=r.registry.widgets;return Se.jsx(t,{time:e,...r})}function Kc(e){const{disabled:r=!1,readonly:t=!1,autofocus:n=!1,options:i,id:o,name:a,registry:l,onBlur:u,onFocus:s}=e,{translateString:c}=l,{elements:f,handleChange:d,handleClear:h,handleSetNow:m}=function(e){const{time:r=!1,disabled:t=!1,readonly:n=!1,options:i,onChange:o,value:a}=e,[l,u]=oe.useState(Ki(a,r));oe.useEffect((()=>{u(Ki(a,r))}),[r,a]);const s=oe.useCallback(((e,t)=>{const n={...l,[e]:void 0===t?-1:t};!function(e){return Object.values(e).every((e=>-1!==e))}(n)?u(n):o(to(n,r))}),[l,o,r]),c=oe.useCallback((e=>{e.preventDefault(),t||n||o(void 0)}),[t,n,o]),f=oe.useCallback((e=>{if(e.preventDefault(),t||n)return;const i=Ki((new Date).toJSON(),r);o(to(i,r))}),[t,n,r,o]),d=oe.useMemo((()=>function(e,r,t=[1900,(new Date).getFullYear()+2],n="YMD"){const{day:i,month:o,year:a,hour:l,minute:u,second:s}=e,c={type:"day",range:[1,31],value:i},f={type:"month",range:[1,12],value:o},d={type:"year",range:t,value:a},h=[];switch(n){case"MDY":h.push(f,c,d);break;case"DMY":h.push(c,f,d);break;default:h.push(d,f,c)}return r&&h.push({type:"hour",range:[0,23],value:l},{type:"minute",range:[0,59],value:u},{type:"second",range:[0,59],value:s}),h}(l,r,i.yearsRange,i.format)),[l,r,i.yearsRange,i.format]);return{elements:d,handleChange:s,handleClear:c,handleSetNow:f}}(e);return Se.jsxs("ul",{className:"list-inline",children:[f.map(((e,i)=>Se.jsx("li",{className:"list-inline-item",children:Se.jsx(uo,{rootId:o,name:a,select:d,...e,disabled:r,readonly:t,registry:l,onBlur:u,onFocus:s,autofocus:n&&0===i})},i))),("undefined"===i.hideNowButton||!i.hideNowButton)&&Se.jsx("li",{className:"list-inline-item",children:Se.jsx("button",{type:"button",className:"btn btn-info btn-now",onClick:m,children:c(yo.NowLabel)})}),("undefined"===i.hideClearButton||!i.hideClearButton)&&Se.jsx("li",{className:"list-inline-item",children:Se.jsx("button",{type:"button",className:"btn btn-warning btn-clear",onClick:h,children:c(yo.ClearLabel)})})]})}function Jc({id:e,disabled:r,options:t,value:n,autofocus:i=!1,readonly:o,onChange:a,onBlur:l,onFocus:u,htmlName:s}){const{inline:c=!1,enumOptions:f,enumDisabled:d,emptyValue:h}=t,m=bi(t),p=Array.isArray(n)?n:[n],v=oe.useCallback((({target:r})=>l(e,fi(r?.value,f,m,h))),[l,e,f,h,m]),y=oe.useCallback((({target:r})=>u(e,fi(r?.value,f,m,h))),[u,e,f,h,m]);return Se.jsx("div",{className:"checkboxes",id:e,children:Array.isArray(f)&&f.map(((t,n)=>{const l=ui(t.value,p),u=Array.isArray(d)&&d.includes(t.value),h=r||u||o?"disabled":"",b=Se.jsxs("span",{children:[Se.jsx("input",{type:"checkbox",id:Ui(e,n),name:s||e,checked:l,value:di(t.value,n,m),disabled:r||u||o,autoFocus:i&&0===n,onChange:e=>{a(e.target.checked?function(e,r,t=[]){const n=li(e,t);if(null!=n){const e=t.findIndex((e=>n===e.value)),i=t.map((({value:e})=>e));return r.slice(0,e).concat(n,r.slice(e)).sort(((e,r)=>Number(i.indexOf(e)>i.indexOf(r))))}return r}(n,p,f):function(e,r,t=[]){const n=li(e,t);return Array.isArray(r)?r.filter((e=>!Tr(e,n))):Tr(n,r)?void 0:r}(n,p,f))},onBlur:v,onFocus:y,"aria-describedby":zi(e)}),Se.jsx("span",{children:t.label})]});return c?Se.jsx("label",{className:`checkbox-inline ${h}`,children:b},String(t.value)):Se.jsx("div",{className:`checkbox ${h}`,children:Se.jsx("label",{children:b})},String(t.value))}))})}function Zc({schema:e,uiSchema:r,options:t,id:n,value:i,disabled:o,readonly:a,label:l,hideLabel:u,autofocus:s=!1,onBlur:c,onFocus:f,onChange:d,registry:h,htmlName:m,required:p}){const v=wi("DescriptionFieldTemplate",h,t),y=Yi(e)&&p,b=oe.useCallback((e=>d(e.target.checked)),[d]),g=oe.useCallback((e=>c(n,e.target.checked)),[c,n]),w=oe.useCallback((e=>f(n,e.target.checked)),[f,n]),k="checkbox"===ar(r).widget?void 0:t.description??e.description;return Se.jsxs("div",{className:"checkbox "+(o||a?"disabled":""),children:[!u&&k&&Se.jsx(v,{id:qi(n),description:k,schema:e,uiSchema:r,registry:h}),Se.jsxs("label",{children:[Se.jsx("input",{type:"checkbox",id:n,name:m||n,checked:void 0!==i&&i,required:p,disabled:o||a,autoFocus:s,onChange:b,onBlur:g,onFocus:w,"aria-describedby":zi(n)}),Hi(Se.jsxs("span",{children:[l,y&&Se.jsx("span",{className:"required",children:"*"})]}),u)]})]})}function Yc(e){const{disabled:r,readonly:t,options:n,registry:i}=e,o=wi("BaseInputTemplate",i,n);return Se.jsx(o,{type:"color",...e,disabled:r||t})}function Xc(e){const{onChange:r,value:t,options:n,registry:i}=e,o=wi("BaseInputTemplate",i,n);return Se.jsx(o,{type:"datetime-local",...e,value:mo(t),onChange:e=>{return r((t=e)?new Date(t).toJSON():void 0);var t}})}function Qc(e){const{onChange:r,options:t,registry:n}=e,i=wi("BaseInputTemplate",n,t),o=oe.useCallback((e=>r(e||void 0)),[r]);return Se.jsx(i,{type:"date",...e,onChange:o})}function ef(e){const{options:r,registry:t}=e,n=wi("BaseInputTemplate",t,r);return Se.jsx(n,{type:"email",...e})}function rf({fileInfo:e,registry:r}){const{translateString:t}=r,{dataURL:n,type:i,name:o}=e;if(!n)return null;const a=t(yo.PreviewLabel);return["image/jpeg","image/png"].includes(i)?Se.jsx("img",{src:n,alt:a,style:{maxWidth:"100%"},className:"file-preview"}):Se.jsxs(Se.Fragment,{children:[" ",Se.jsx("a",{download:`preview-${o}`,href:n,className:"file-download",children:a})]})}function tf({filesInfo:e,registry:r,preview:t,onRemove:n,options:i}){if(0===e.length)return null;const{translateString:o}=r,{RemoveButton:a}=wi("ButtonTemplates",r,i);return Se.jsx("ul",{className:"file-info",children:e.map(((e,i)=>{const{name:l,size:u,type:s}=e;return Se.jsxs("li",{children:[Se.jsx(rc,{children:o(yo.FilesInfo,[l,s,String(u)])}),t&&Se.jsx(rf,{fileInfo:e,registry:r}),Se.jsx(a,{onClick:()=>n(i),registry:r})]},i)}))})}function nf(e){const{disabled:r,readonly:t,required:n,multiple:i,onChange:o,value:a,options:l,registry:u}=e,{filesInfo:s,handleChange:c,handleRemove:f}=function(e,r,t=!1){const n=oe.useMemo((()=>t&&e?Array.isArray(e)?e:[e]:[]),[e,t]);return{filesInfo:oe.useMemo((()=>Array.isArray(e)?ho(e):ho([e||""])),[e]),handleChange:oe.useCallback((async e=>{const i=await async function(e){return Promise.all(Array.from(e).map(fo))}(e),o=i.map((e=>e.dataURL||null));r(t?n.concat(...o):o[0])}),[n,t,r]),handleRemove:oe.useCallback((e=>{if(t){const t=n.filter(((r,t)=>t!==e));r(t)}else r(void 0)}),[n,t,r])}}(a,o,i),d=wi("BaseInputTemplate",u,l);return Se.jsxs("div",{children:[Se.jsx(d,{...e,disabled:r||t,type:"file",required:!a&&n,onChangeOverride:e=>{e.target.files&&c(e.target.files)},value:"",accept:l.accept?String(l.accept):void 0}),Se.jsx(tf,{filesInfo:s,onRemove:f,registry:u,preview:l.filePreview,options:l})]})}function of({id:e,value:r,htmlName:t}){return Se.jsx("input",{type:"hidden",id:e,name:t||e,value:void 0===r?"":r})}function af(e){const{options:r,registry:t}=e,n=wi("BaseInputTemplate",t,r);return Se.jsx(n,{type:"password",...e})}function lf({options:e,value:r,required:t,disabled:n,readonly:i,autofocus:o=!1,onBlur:a,onFocus:l,onChange:u,id:s,htmlName:c}){const{enumOptions:f,enumDisabled:d,inline:h,emptyValue:m}=e,p=bi(e),v=oe.useCallback((({target:e})=>a(s,fi(e?.value,f,p,m))),[a,f,m,s,p]),y=oe.useCallback((({target:e})=>l(s,fi(e?.value,f,p,m))),[l,f,m,s,p]);return Se.jsx("div",{className:"field-radio-group",id:s,role:"radiogroup",children:Array.isArray(f)&&f.map(((e,a)=>{const l=ui(e.value,r),f=Array.isArray(d)&&d.includes(e.value),m=n||f||i?"disabled":"",b=Se.jsxs("span",{children:[Se.jsx("input",{type:"radio",id:Ui(s,a),checked:l,name:c||s,required:t,value:di(e.value,a,p),disabled:n||f||i,autoFocus:o&&0===a,onChange:()=>u(e.value),onBlur:v,onFocus:y,"aria-describedby":zi(s)}),Se.jsx("span",{children:e.label})]});return h?Se.jsx("label",{className:`radio-inline ${m}`,children:b},String(e.value)):Se.jsx("div",{className:`radio ${m}`,children:Se.jsx("label",{children:b})},String(e.value))}))})}function uf(e){const{value:r,registry:{templates:{BaseInputTemplate:t}}}=e;return Se.jsxs("div",{className:"field-range-wrapper",children:[Se.jsx(t,{type:"range",...e}),Se.jsx("span",{className:"range-view",children:r})]})}function sf({id:e,value:r,required:t,disabled:n,readonly:i,onChange:o,onFocus:a,onBlur:l,schema:u,options:s,htmlName:c}){const{stars:f=5,shape:d="star"}=s,h=u.maximum?Math.min(u.maximum,5):Math.min(Math.max(f,1),5),m=u.minimum||0,p=oe.useCallback((e=>{n||i||o(e)}),[o,n,i]),v=oe.useCallback((r=>{if(a){const t=Number(r.target.dataset.value);a(e,t)}}),[a,e]),y=oe.useCallback((r=>{if(l){const t=Number(r.target.dataset.value);l(e,t)}}),[l,e]),b=e=>"heart"===d?e?"♥":"♡":e?"★":"☆";return Se.jsxs("div",{className:"rating-widget",style:{display:"inline-flex",fontSize:"1.5rem",cursor:n||i?"default":"pointer"},children:[[...Array(h)].map(((e,t)=>{const o=m+t,a=o<=r;return Se.jsx("span",{onClick:()=>p(o),onKeyDown:e=>("Enter"===e.key||" "===e.key)&&p(o),onFocus:v,onBlur:y,"data-value":o,tabIndex:n||i?-1:0,role:"radio","aria-checked":o===r,"aria-label":`${o} ${"heart"===d?"heart":"star"}${1===o?"":"s"}`,style:{color:a?"#FFD700":"#ccc",padding:"0 0.2rem",transition:"color 0.2s",userSelect:"none"},children:b(a)},t)})),Se.jsx("input",{type:"hidden",id:e,name:c||e,value:r||"",required:t,disabled:n||i,"aria-hidden":"true"})]})}function cf(e,r){return r?Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value)):e.target.value}function ff({schema:e,id:r,options:t,value:n,required:i,disabled:o,readonly:a,multiple:l=!1,autofocus:u=!1,onChange:s,onBlur:c,onFocus:f,placeholder:d,htmlName:h,registry:m,uiSchema:p}){const{enumOptions:v,enumDisabled:y,emptyValue:b}=t,g=l?[]:"",w=bi(t),k=oe.useCallback((e=>{const t=cf(e,l);return f(r,fi(t,v,w,b))}),[f,r,l,v,b,w]),$=oe.useCallback((e=>{const t=cf(e,l);return c(r,fi(t,v,w,b))}),[c,r,l,v,b,w]),S=oe.useCallback((e=>{const r=cf(e,l);return s(fi(r,v,w,b))}),[s,l,v,b,w]),E=function(e,r,t,n="indexed",i){if(void 0===e||t&&Array.isArray(e)&&e.length<1||!t&&e===i)return i;if("realValue"===n)return t?e.map(String):String(e);const o=si(e,r,t);return void 0===o?i:o}(n,v,l,w,g),j=!l&&void 0===e.default;return function(e,r,t,n=!1){!n&&Array.isArray(t)&&void 0!==r.default&&void 0===si(r.default,t,n)&&console.error(`The schema default value "${r.default}" is not one of the values in the enum options for "${e}"`)}(r,e,v,l),Se.jsxs(Se.Fragment,{children:[Se.jsx(Xi,{id:r,multiple:l,options:t,registry:m,uiSchema:p,value:n}),Se.jsxs("select",{id:r,name:h||r,multiple:l,className:"form-control",value:E,required:i,disabled:o||a,autoFocus:u,onBlur:$,onFocus:k,onChange:S,"aria-describedby":zi(r),children:[j&&Se.jsx("option",{value:"",children:d}),Array.isArray(v)&&v.map((({value:e,label:r},t)=>{const n=y&&y.includes(e);return Se.jsx("option",{value:di(e,t,w),disabled:n,children:r},String(e))}))]})]})}function df({id:e,options:r,placeholder:t,value:n,required:i,disabled:o,readonly:a,autofocus:l=!1,onChange:u,onBlur:s,onFocus:c,htmlName:f}){const d=oe.useCallback((({target:{value:e}})=>u(""===e?r.emptyValue:e)),[u,r.emptyValue]),h=oe.useCallback((({target:r})=>s(e,r?.value)),[s,e]),m=oe.useCallback((({target:r})=>c(e,r?.value)),[e,c]);return Se.jsx("textarea",{id:e,name:f||e,className:"form-control",value:n||"",placeholder:t,required:i,disabled:o,readOnly:a,autoFocus:l,rows:r.rows,onBlur:h,onFocus:m,onChange:d,"aria-describedby":zi(e)})}function hf(e){const{options:r,registry:t}=e,n=wi("BaseInputTemplate",t,r);return Se.jsx(n,{...e})}function mf(e){const{onChange:r,options:t,registry:n,schema:i,value:o}=e,a=wi("BaseInputTemplate",n,t),l="number"==typeof i.multipleOf&&Number.isFinite(i.multipleOf)&&i.multipleOf<60,u=oe.useCallback((e=>{r(e?l?e:`${e}:00`:void 0)}),[l,r]),s="string"==typeof o&&!l&&/^\d{2}:\d{2}:00$/.test(o)?o.slice(0,-3):o;return Se.jsx(a,{type:"time",...e,value:s,onChange:u})}function pf(e){const{options:r,registry:t}=e,n=wi("BaseInputTemplate",t,r);return Se.jsx(n,{type:"number",...e})}function vf(e){const{options:r,registry:t}=e,n=wi("BaseInputTemplate",t,r);return Se.jsx(n,{type:"url",...e})}function yf(){return{fields:{AnyOfField:oa,ArrayField:Do,BooleanField:Po,CyclicSchemaField:Fo,FallbackField:qo,LayoutGridField:Zo,LayoutHeaderField:Yo,LayoutMultiSchemaField:ia,NumberField:sa,ObjectField:uc,OneOfField:oa,OptionalDataControlsField:sc,SchemaField:fc,StringField:dc,NullField:aa},templates:{ArrayFieldDescriptionTemplate:hc,ArrayFieldItemTemplate:pc,ArrayFieldItemButtonsTemplate:mc,ArrayFieldTemplate:vc,ArrayFieldTitleTemplate:yc,ButtonTemplates:{SubmitButton:Oc,AddButton:xc,CopyButton:kc,MoveDownButton:$c,MoveUpButton:Sc,RemoveButton:Ec,ClearButton:jc},BaseInputTemplate:gc,CyclicSchemaExpandTemplate:Ac,DescriptionFieldTemplate:Ic,ErrorListTemplate:Dc,FallbackFieldTemplate:Pc,FieldTemplate:Mc,FieldErrorTemplate:Fc,FieldHelpTemplate:Tc,GridTemplate:zc,MultiSchemaFieldTemplate:Uc,ObjectFieldTemplate:Lc,OptionalDataControlsTemplate:Bc,TitleFieldTemplate:Vc,UnsupportedFieldTemplate:Hc,WrapIfAdditionalTemplate:Wc},widgets:{AltDateWidget:Kc,AltDateTimeWidget:Gc,CheckboxWidget:Zc,CheckboxesWidget:Jc,ColorWidget:Yc,DateWidget:Qc,DateTimeWidget:Xc,EmailWidget:ef,FileWidget:nf,HiddenWidget:of,PasswordWidget:af,RadioWidget:lf,RangeWidget:uf,RatingWidget:sf,SelectWidget:ff,TextWidget:hf,TextareaWidget:df,TimeWidget:mf,UpDownWidget:pf,URLWidget:vf},rootSchema:{},formContext:{},translateString:ai,globalFormOptions:{idPrefix:Je,idSeparator:Ze,useFallbackUiForUnsupportedType:!1}}}function bf(e,r){const{schema:t,uiSchema:n,fieldPathId:i,schemaUtils:o,formData:a,edit:l,errors:u,errorSchema:s}=e;return{schema:t,uiSchema:n,fieldPathId:i,schemaUtils:o,formData:a,edit:l,errors:u,errorSchema:s,...void 0!==r&&{status:r}}}function gf(e){return function e(r,t){if(!t||null!==r){if(Array.isArray(r))return r.map((r=>e(r,!1)));if(Ee(r)){const n=Object.entries(r).reduce(((r,[t,n])=>(void 0!==n&&(r[t]=e(n,!1)),r)),{});return t&&0===Object.keys(n).length?void 0:n}return r}}(e,!0)}Nc.TEST_IDS=qc;let wf=class e extends oe.Component{formElement;pendingChanges=[];lastReportedFormData;static getDerivedStateFromProps(e,r){if(e.extraErrors!==r.prevExtraErrors){const t={errors:r.schemaValidationErrors||[],errorSchema:r.schemaValidationErrorSchema||{}};let{errors:n,errorSchema:i}=t;return e.extraErrors&&({errors:n,errorSchema:i}=po(t,e.extraErrors)),r.customErrors&&({errors:n,errorSchema:i}=po({errors:n,errorSchema:i},r.customErrors.ErrorSchema,!0)),{prevExtraErrors:e.extraErrors,errors:n,errorSchema:i}}return null}constructor(e){if(super(e),!e.validator)throw new Error("A validator is required for Form functionality to work");const{formData:r,initialFormData:t}=e,n=r??t;this.state={...this.getStateFromProps(e,n,void 0,void 0,void 0,!0),prevExtraErrors:e.extraErrors},Tr(this.state.formData,n)||this.reportChange(bf(this.state)),this.formElement=oe.createRef()}isReportedFormData(e){if(!this.lastReportedFormData)return!1;const{formData:r,awaitingReply:t}=this.lastReportedFormData;return t?Tr(gf(e),gf(r)):Tr(e,r)}reportChange(e,...r){const{onChange:t}=this.props;t&&(this.lastReportedFormData={formData:e.formData,awaitingReply:!0},t(e,...r))}getSnapshotBeforeUpdate(e,r){if(!Tr(this.props,e)){const t=pi(this.props.formData,e.formData),n=pi(this.props.formData,this.state.formData),i=!Tr(e.schema,this.props.schema),o=t.length>0||!Tr(e.formData,this.props.formData),a=n.length>0||!Tr(this.state.formData,this.props.formData),l=this.getStateFromProps(this.props,this.props.formData,i||o?void 0:this.state.retrievedSchema,i,(()=>pi(this.props.formData,e.formData,!0)),!a);return{nextState:l,shouldUpdate:!Tr(l,r),isEchoOfState:(!a||void 0===this.props.formData||this.isReportedFormData(this.props.formData))&&!i&&Tr(e.experimental_defaultFormStateBehavior,this.props.experimental_defaultFormStateBehavior)}}return{shouldUpdate:!1}}componentDidUpdate(e,r,t){if(t.shouldUpdate){const{nextState:e,isEchoOfState:n}=t,i=!Tr(e.formData,this.props.formData);if(this.lastReportedFormData&&"formData"in this.props&&(this.lastReportedFormData=n?{formData:this.props.formData,awaitingReply:!1}:void 0),n&&i){const{formData:r,retrievedSchema:t,errors:n,errorSchema:i,schemaValidationErrors:o,schemaValidationErrorSchema:a}=this.state,l=this.props.liveValidate&&!this.props.noValidate;return void this.setState({...e,formData:r,retrievedSchema:t,...l&&{errors:n,errorSchema:i,schemaValidationErrors:o,schemaValidationErrorSchema:a}})}i&&!Tr(e.formData,r.formData)&&this.reportChange(bf(e)),this.setState(e)}}getStateFromProps(r,t,n,i=!1,o=()=>[],a=!1,l=!1){const u=this.state||{},s="schema"in r?r.schema:this.props.schema,c="validator"in r?r.validator:this.props.validator,f=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{},d=void 0===r.formData&&void 0===this.props.formData,h=void 0!==t,m=h&&!r.noValidate&&("liveValidate"in r?r.liveValidate:this.props.liveValidate),p="experimental_defaultFormStateBehavior"in r?r.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior,v="experimental_customMergeAllOf"in r?r.experimental_customMergeAllOf:this.props.experimental_customMergeAllOf;let{schemaUtils:y,hasNestedConditionalSchema:b}=u;y&&!y.doesSchemaUtilsDiffer(c,s,p,v)||(y=function(e,r,t={},n){return new ni(e,r,t,n)}(c,s,p,v),b=Zi(y.getRootSchema(),y.getRootSchema()));const g=y.getRootSchema();let w,k,$=t;t===nc?$=void 0:void 0===t&&d&&($=u.formData);let S=!1;const E=[];do{w=y.getDefaultFormState(g,$,!1,u.initialDefaultsGenerated);const e=l?Pi({formData:w}):"";if(k=this.updateRetrievedSchema(n??y.retrieveSchema(g,w)),!l||E.includes(e)||!b&&Tr(k,u.retrievedSchema))S=!1;else{const r=y.sanitizeDataForNewSchema(k,u.retrievedSchema,w);if(S=!Tr(r,w),S){w=r,$=r;const e=Pi({formData:r});S=!E.includes(e),E.push(e)}E.push(e)}}while(S);let j,x,{schemaValidationErrors:O,schemaValidationErrorSchema:A}=u;if(m&&!a){const e=this.liveValidate(g,y,u.errorSchema,w,void 0,u.customErrors,n,void 0!==n);j=e.errors,x=e.errorSchema,O=e.schemaValidationErrors,A=e.schemaValidationErrorSchema}else{const t=r.noValidate||i?{errors:[],errorSchema:{}}:r.liveValidate?{errors:u.errors||[],errorSchema:u.errorSchema||{}}:{errors:u.schemaValidationErrors||[],errorSchema:u.schemaValidationErrorSchema||{}};if(j=t.errors,x=t.errorSchema,!m){const e=o();if(e.length>0){const r=e.reduce(((e,r)=>{const t=nt(r);for(let r=1;r<t.length;r++)ut(e,[...t.slice(0,r),Fe],void 0,!0);return ut(e,t,void 0,!0)}),{});A=Fn(t.errorSchema,r,"preventDuplicates"),x=A}}const n=e.mergeErrors({errorSchema:x,errors:j},r.extraErrors,u.customErrors);j=n.errors,x=n.errorSchema}const C=e.getRegistry(r,g,y),_=Tr(u.registry,C)?u.registry:C;return{schemaUtils:y,schema:g,uiSchema:f,fieldPathId:u.fieldPathId&&u.fieldPathId?.[qe]===_.globalFormOptions.idPrefix?u.fieldPathId:oo("",_.globalFormOptions),formData:w,edit:h,errors:j,errorSchema:x,schemaValidationErrors:O,schemaValidationErrorSchema:A,retrievedSchema:k,hasNestedConditionalSchema:b,initialDefaultsGenerated:!0,registry:_}}shouldComponentUpdate(e,r){const{experimental_componentUpdateStrategy:t="customDeep"}=this.props;return function(e,r,t,n="customDeep"){if("always"===n)return!0;if("shallow"===n){const{props:n,state:i}=e;return!Qi(n,r)||!Qi(i,t)}const{props:i,state:o}=e;return!Tr(i,r)||!Tr(o,t)}(this,e,r,t)}validate(e,r=this.state.schema,t,n){const i=t||this.state.schemaUtils,{customValidate:o,transformErrors:a,uiSchema:l}=this.props,u=n??r,s=e?JSON.parse(JSON.stringify(e)):void 0;return i.getValidator().validateFormData(s,u,o,a,l)}renderErrors(e){const{errors:r,errorSchema:t,schema:n,uiSchema:i}=this.state,o=wi("ErrorListTemplate",e,ar(i));return r?.length?Se.jsx(o,{errors:r,errorSchema:t||{},schema:n,uiSchema:i,registry:e}):null}static mergeErrors(e,r,t){let{errorSchema:n,errors:i}=e;if(r){const t=po(e,r);n=t.errorSchema,i=t.errors}if(t){const e=po({errors:i,errorSchema:n},t.ErrorSchema,!0);n=e.errorSchema,i=e.errors}return{errors:i,errorSchema:n}}liveValidate(r,t,n,i,o,a,l,u=!1){const s=this.validate(i,r,t,l),{errors:c}=s;let{errorSchema:f}=s;u&&(f=Fn(n,s.errorSchema,"preventDuplicates"));const d=c,h=f;return{...e.mergeErrors({errorSchema:f,errors:c},o,a),schemaValidationErrors:d,schemaValidationErrorSchema:h}}getUsedFormData=(e,r)=>function(e,r){if(0===r.length&&"object"!=typeof e)return e;const t={};return r.forEach((r=>{const n=Array.isArray(r)?r:nt(r);st(e,n)&&ut(t,n,lt(e,n))})),Array.isArray(e)?Object.keys(t).map((e=>t[e])):t}(e,r);getFieldNames=(e,r)=>function(e,r){const t=(e,r)=>"object"!=typeof e||null===e||(Array.isArray(e)?0===e.length:0===Object.keys(e).length)||r,n=(e,i=[],o=[[]])=>{const a=Object.keys(e);return a.forEach((l=>{const u=e[l];if("object"==typeof u){const e=o.map((e=>[...e,l]));u[er]&&""!==u[Re]?i.push(u[Re]):n(u,i,e)}else l===Re&&""!==u&&o.forEach((e=>{const n=lt(r,e),o=1===a.length;(t(n,o)||Array.isArray(n)&&n.every((e=>t(e,o))))&&i.push(e)}))})),i};return n(e)}(e,r);omitExtraData=e=>{const{schema:r,schemaUtils:t}=this.state;return t.omitExtraData(r,e)};setFieldValue=(e,r)=>{const{registry:t}=this.state,n=Array.isArray(e)?e:e.split("."),i=oo("",t.globalFormOptions,n);this.onChange(r,n,void 0,i[qe])};onChange=(e,r,t,n)=>{this.pendingChanges.push({newValue:e,path:r,newErrorSchema:t,id:n}),1===this.pendingChanges.length&&this.processPendingChange()};processPendingChange(){if(0===this.pendingChanges.length)return;const{newValue:r,path:t,id:n}=this.pendingChanges[0],{newErrorSchema:i}=this.pendingChanges[0],{extraErrors:o,omitExtraData:a,liveOmit:l,noValidate:u,liveValidate:s,disabled:c,readonly:f}=this.props,{formData:d,schemaUtils:h,schema:m,fieldPathId:p,schemaValidationErrorSchema:v,errors:y}=this.state;let{customErrors:b,retrievedSchema:g}=this.state,w=v;const k=!t||0===t.length||1===t.length&&t[0]===(p.path[0]||"");let $=k?r:structuredClone(d);const S=Ee($)&&Object.keys($).length>0&&Object.values($).every((e=>void 0===e))&&null==d?void 0:$;if(Ee($)||Array.isArray($)){let e=!1;if(r===tc)!function(e,r){const t=function(e){return Array.isArray(e)?e:[e]}(r);if(0===t.length)return!0;const n=t.length>1?lt(e,t.slice(0,-1)):e;if(null==n)return!0;try{return Reflect.deleteProperty(n,t[t.length-1])}catch{return!1}}($,t);else if(!k){let n=r;if(void 0===r)if("number"==typeof t[t.length-1])n=null;else{const{field:r}=h.findFieldInSchema(m,t,d);r&&(Me in r||_e in r)||void 0===r||(e=!0)}ut($,t,e?void 0:n)}const n=g&&!k&&!Ee(r)&&!Array.isArray(r)&&!c&&!f,i=this.getStateFromProps(this.props,S,void 0,void 0,void 0,!0,n);$=i.formData,g=i.retrievedSchema,e&&$&&ut($,t,void 0)}const E=!u&&(!0===s||"onChange"===s);let j={formData:$,retrievedSchema:g},x=$;if(!0!==a||!0!==l&&"onChange"!==l||(x=this.omitExtraData($),j={...j,formData:x}),i){const e=k?v:lt(v,t);if(e&&Object.keys(e).length>0)k?w=i:(w=structuredClone(v),ut(w,t,i,!0));else if(b||(b=new hi),k){const e=i[Fe];e&&b.setErrors(e)}else ut(b.ErrorSchema,t,i,!0)}else b&<(b.ErrorSchema,[...t,Fe])&&b.clearErrors(t);if(E&&1===this.pendingChanges.length){const e=this.liveValidate(m,h,w,x,o,b,g);j={...j,formData:x,...e,customErrors:b}}else if(!u&&i){const r=e.mergeErrors({errorSchema:w,errors:y},o,b);j={...j,formData:x,...r,customErrors:b}}this.setState(j,(()=>{this.reportChange(bf({...this.state,...j}),n),this.pendingChanges.shift(),this.processPendingChange()}))}updateRetrievedSchema(e){return Tr(e,this.state?.retrievedSchema)?this.state.retrievedSchema:e}reset=()=>{const{formData:e,initialFormData:r=nc}=this.props,t={formData:this.getStateFromProps(this.props,e??r,void 0,void 0,void 0,!0).formData,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{},initialDefaultsGenerated:!1,customErrors:void 0};this.setState(t,(()=>this.reportChange(bf({...this.state,...t}))))};onBlur=(e,r)=>{const{onBlur:t,omitExtraData:n,liveOmit:i,liveValidate:o}=this.props;if(t&&t(e,r),!0===n&&"onBlur"===i||"onBlur"===o){const{extraErrors:r}=this.props,{formData:t}=this.state;let a=t,l={formData:a};if(!0===n&&"onBlur"===i&&(a=this.omitExtraData(t),l={formData:a}),"onBlur"===o){const{schema:e,schemaUtils:t,errorSchema:n,customErrors:i,retrievedSchema:o}=this.state,u=this.liveValidate(e,t,n,a,r,i,o);l={formData:a,...u,customErrors:i}}const u=Object.keys(l).filter((e=>!e.startsWith("schemaValidation"))).some((e=>!Tr(this.state[e],l[e])));this.setState(l,(()=>{u&&this.reportChange(bf({...this.state,...l}),e)}))}};onFocus=(e,r)=>{const{onFocus:t}=this.props;t&&t(e,r)};onSubmit=e=>{if(e.preventDefault(),e.target!==e.currentTarget)return;e.persist();const{omitExtraData:r,extraErrors:t,noValidate:n,onSubmit:i}=this.props;let{formData:o}=this.state;if(!0===r&&(o=this.omitExtraData(o)),n||this.validateFormWithFormData(o)){const r=t||{},n=t?no(t):[];this.setState({formData:o,errors:n,errorSchema:r,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{i&&i(bf({...this.state,formData:o},"submitted"),e)}))}};static getGlobalFormOptions(e){const{uiSchema:r={},experimental_componentUpdateStrategy:t,idSeparator:n=Ze,idPrefix:i=Je,nameGenerator:o,useFallbackUiForUnsupportedType:a=!1}=e;return{idPrefix:r["ui:rootFieldId"]||i,idSeparator:n,useFallbackUiForUnsupportedType:a,...void 0!==t&&{experimental_componentUpdateStrategy:t},...void 0!==o&&{nameGenerator:o}}}static getRegistry(r,t,n){const{translateString:i,uiSchema:o={}}=r,{fields:a,templates:l,widgets:u,formContext:s,translateString:c}=yf();return{fields:{...a,...r.fields},templates:{...l,...r.templates,ButtonTemplates:{...l.ButtonTemplates,...r.templates?.ButtonTemplates}},widgets:{...u,...r.widgets},rootSchema:t,formContext:r.formContext||s,schemaUtils:n,translateString:i||c,globalUiOptions:o[ir],globalFormOptions:e.getGlobalFormOptions(r),uiSchemaDefinitions:o["ui:definitions"]??{}}}submit=()=>{if(this.formElement.current){const e=new CustomEvent("submit",{cancelable:!0});e.preventDefault(),this.formElement.current.dispatchEvent(e),this.formElement.current.requestSubmit()}};focusOnError(e){const{idPrefix:r="root",idSeparator:t="_"}=this.props,{property:n}=e,i=nt(n??"");i.unshift(r);const o=i.join(t);let a=this.formElement.current.elements[o];a||(a=this.formElement.current.querySelector(`input[id^="${o}"], button[id^="${o}"]`)),a?.length&&(a=a[0]),a&&a.focus()}validateFormWithFormData=r=>{const{extraErrors:t,extraErrorsBlockSubmit:n,focusOnFirstError:i,onError:o}=this.props,{errors:a}=this.state,l=this.validate(r),{errors:u,errorSchema:s}=t?e.mergeErrors(l,t):l,c=l.errors.length>0||t&&n;return c?(i&&("function"==typeof i?i(u[0]):this.focusOnError(u[0])),this.setState({errors:u,errorSchema:s,schemaValidationErrors:l.errors,schemaValidationErrorSchema:l.errorSchema},(()=>{o?o(u):console.error("Form validation failed",u)}))):u.length>0?this.setState({errors:u,errorSchema:s,schemaValidationErrors:[],schemaValidationErrorSchema:{}}):a.length>0&&this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}}),!c};validateForm(){const{omitExtraData:e}=this.props;let{formData:r}=this.state;return!0===e&&(r=this.omitExtraData(r)),this.validateFormWithFormData(r)}render(){const{children:e,id:r,className:t="",tagName:n,name:i,method:o,target:a,action:l,autoComplete:u,enctype:s,acceptCharset:c,noHtml5Validate:f=!1,disabled:d,readonly:h,showErrorList:m="top",_internalFormWrapper:p}=this.props,{schema:v,uiSchema:y,formData:b,errorSchema:g,fieldPathId:w,registry:k}=this.state,{SchemaField:$}=k.fields,{SubmitButton:S}=k.templates.ButtonTemplates,E=p?n:void 0,j=p||n||"form";let{[Ve]:x={}}=ar(y);d&&(x={...x,props:{...x.props,disabled:!0}});const O={[nr]:{[Ve]:x}};return Se.jsxs(j,{className:t||"rjsf",id:r,name:i,method:o,target:a,action:l,autoComplete:u,encType:s,acceptCharset:c,noValidate:f,onSubmit:this.onSubmit,as:E,ref:this.formElement,children:["top"===m&&this.renderErrors(k),Se.jsx($,{name:"",schema:v,uiSchema:y,errorSchema:g,fieldPathId:w,formData:b,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:k,disabled:d,readonly:h}),e||Se.jsx(S,{uiSchema:O,registry:k}),"bottom"===m&&this.renderErrors(k)]})}};function kf(e,r,t,n,i,o,a,l){const{validationError:u}=r;let s=function(e=[],r,t,n){const i=e.map((e=>{const{instancePath:t,keyword:i,params:o,schemaPath:a,parentSchema:l,...u}=e;let{message:s=""}=u,c=t.replace(/\//g,"."),f=`${c} ${s}`.trim(),d="";const h=[...o.deps?.split(", ")||[],o.missingProperty,o.property].filter((e=>e));if(h.length>0)h.forEach((e=>{let t=ar(lt(r,nt(c?`${c}.${e}`:e))).title;if(void 0===t){const n=a.replace(/\/properties\//g,"/").split("/").slice(1,-1).concat([e]);t=ar(lt(r,n)).title}if(void 0===t){const n=c.replace(/^\./,"").split(".").filter(Boolean);t=lt(r,[...n,e,"title"])}if(t)s=s.replace(`'${e}'`,`'${t}'`),d=t;else{const r=lt(l,[Ue,e,"title"]);if(r)s=s.replace(`'${e}'`,`'${r}'`),d=r;else if(n){const r=c.replace(/^\./,"").split(".").filter(Boolean),t=[];for(const e of r)t.push(Ue,e);t.push(Ue,e,"title");const i=lt(n,t);i&&(s=s.replace(`'${e}'`,`'${i}'`),d=i)}}})),f=s;else{const e=ar(lt(r,nt(c))).title;if(e)f=`'${e}' ${s}`.trim(),d=e;else{const e=l?.title;e&&(f=`'${e}' ${s}`.trim(),d=e)}}return"missingProperty"in o&&(c=c?`${c}.${o.missingProperty}`:o.missingProperty),{name:i,property:c,message:s,params:o,stack:f,schemaPath:a,title:d}}));return function(e,r="none"){return"all"===r?e:e.reduce(((e,t)=>{const{message:n,schemaPath:i}=t,o="anyOf"!==r?i?.indexOf(`/${_e}/`):void 0,a="oneOf"!==r?i?.indexOf(`/${Me}/`):void 0;let l;o&&o>=0?l=i?.substring(0,o):a&&a>=0&&(l=i?.substring(0,a));const u=l?e.find((e=>e.message===n&&e.schemaPath?.startsWith(l))):void 0;return u||e.push(t),e}),[])}(i,t)}(r.errors,a,l,n);u&&(s=[...s,{stack:u.message}]),"function"==typeof o&&(s=o(s,a));let c=function(e){const r=new hi;return e.length&&e.forEach((e=>{const{property:t,message:n}=e,i=t?nt(t):[];n&&r.addErrors(n,i)})),r.ErrorSchema}(s);if(u&&(c={...c,$schema:{__errors:[u.message]}}),"function"!=typeof i)return{errors:s,errorSchema:c};const f=Kn(e,n,t,n,!0);return po({errors:s,errorSchema:c},ao(i(f,sr(f),a,c)))}var $f,Sf={exports:{}},Ef={},jf={},xf={},Of={},Af={},Cf={};function _f(){return $f||($f=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class r{}e._CodeOrName=r,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends r{constructor(r){if(super(),!e.IDENTIFIER.test(r))throw new Error("CodeGen: name must be a valid identifier");this.str=r}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=t;class n extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,r)=>`${e}${r}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,r)=>(r instanceof t&&(e[r.str]=(e[r.str]||0)+1),e)),{})}}function i(e,...r){const t=[e[0]];let i=0;for(;i<r.length;)l(t,r[i]),t.push(e[++i]);return new n(t)}e._Code=n,e.nil=new n(""),e._=i;const o=new n("+");function a(e,...r){const t=[s(e[0])];let i=0;for(;i<r.length;)t.push(o),l(t,r[i]),t.push(o,s(e[++i]));return function(e){let r=1;for(;r<e.length-1;){if(e[r]===o){const t=u(e[r-1],e[r+1]);if(void 0!==t){e.splice(r-1,3,t);continue}e[r++]="+"}r++}}(t),new n(t)}function l(e,r){var i;r instanceof n?e.push(...r._items):e.push(r instanceof t?r:"number"==typeof(i=r)||"boolean"==typeof i||null===i?i:s(Array.isArray(i)?i.join(","):i))}function u(e,r){if('""'===r)return e;if('""'===e)return r;if("string"==typeof e){if(r instanceof t||'"'!==e[e.length-1])return;return"string"!=typeof r?`${e.slice(0,-1)}${r}"`:'"'===r[0]?e.slice(0,-1)+r.slice(1):void 0}return"string"!=typeof r||'"'!==r[0]||e instanceof t?void 0:`"${e}${r.slice(1)}`}function s(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=a,e.addCodeArg=l,e.strConcat=function(e,r){return r.emptyStr()?e:e.emptyStr()?r:a`${e}${r}`},e.stringify=function(e){return new n(s(e))},e.safeStringify=s,e.getProperty=function(r){return"string"==typeof r&&e.IDENTIFIER.test(r)?new n(`.${r}`):i`[${r}]`},e.getEsmExportName=function(r){if("string"==typeof r&&e.IDENTIFIER.test(r))return new n(`${r}`);throw new Error(`CodeGen: invalid export name: ${r}, use explicit $id name mapping`)},e.regexpCode=function(e){return new n(e.toString())}}(Cf)),Cf}var If,Df,Pf={};function Ff(){return If||(If=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const r=_f();class t extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n||(e.UsedValueState=n={})),e.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class i{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var r,t;if((null===(t=null===(r=this._parent)||void 0===r?void 0:r._prefixes)||void 0===t?void 0:t.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=i;class o extends r.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}e.ValueScopeName=o;const a=r._`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?a:r.nil}}get(){return this._scope}name(e){return new o(e,this._newName(e))}value(e,r){var t;if(void 0===r.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:i}=n,o=null!==(t=r.key)&&void 0!==t?t:r.ref;let a=this._values[i];if(a){const e=a.get(o);if(e)return e}else a=this._values[i]=new Map;a.set(o,n);const l=this._scope[i]||(this._scope[i]=[]),u=l.length;return l[u]=r.ref,n.setValue(r,{property:i,itemIndex:u}),n}getValue(e,r){const t=this._values[e];if(t)return t.get(r)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`}))}scopeCode(e=this._values,r,t){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),r,t)}_reduceValues(i,o,a={},l){let u=r.nil;for(const s in i){const c=i[s];if(!c)continue;const f=a[s]=a[s]||new Map;c.forEach((i=>{if(f.has(i))return;f.set(i,n.Started);let a=o(i);if(a)u=r._`${u}${this.opts.es5?e.varKinds.var:e.varKinds.const} ${i} = ${a};${this.opts._n}`;else{if(!(a=null==l?void 0:l(i)))throw new t(i);u=r._`${u}${a}${this.opts._n}`}f.set(i,n.Completed)}))}return u}}}(Pf)),Pf}function qf(){return Df||(Df=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const r=_f(),t=Ff();var n=_f();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=Ff();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class o{optimizeNodes(){return this}optimizeNames(e,r){return this}}class a extends o{constructor(e,r,t){super(),this.varKind=e,this.name=r,this.rhs=t}render({es5:e,_n:r}){return`${e?t.varKinds.var:this.varKind} ${this.name}${void 0===this.rhs?"":` = ${this.rhs}`};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=C(this.rhs,e,r)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class l extends o{constructor(e,r,t){super(),this.lhs=e,this.rhs=r,this.sideEffects=t}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=C(this.rhs,e,t),this}get names(){return A(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class u extends l{constructor(e,r,t,n){super(e,t,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class s extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class c extends o{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends o{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class d extends o{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=C(this.code,e,r),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class h extends o{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((r,t)=>r+t.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let r=e.length;for(;r--;){const t=e[r].optimizeNodes();Array.isArray(t)?e.splice(r,1,...t):t?e[r]=t:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){const{nodes:t}=this;let n=t.length;for(;n--;){const i=t[n];i.optimizeNames(e,r)||(_(e,i.names),t.splice(n,1))}return t.length>0?this:void 0}get names(){return this.nodes.reduce(((e,r)=>O(e,r.names)),{})}}class m extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class p extends h{}class v extends m{}v.kind="else";class y extends m{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let r=this.else;if(r){const e=r.optimizeNodes();r=this.else=Array.isArray(e)?new v(e):e}return r?!1===e?r instanceof y?r:r.nodes:this.nodes.length?this:new y(I(e),r instanceof y?[r]:r.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,r){var t;if(this.else=null===(t=this.else)||void 0===t?void 0:t.optimizeNames(e,r),super.optimizeNames(e,r)||this.else)return this.condition=C(this.condition,e,r),this}get names(){const e=super.names;return A(e,this.condition),this.else&&O(e,this.else.names),e}}y.kind="if";class b extends m{}b.kind="for";class g extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=C(this.iteration,e,r),this}get names(){return O(super.names,this.iteration.names)}}class w extends b{constructor(e,r,t,n){super(),this.varKind=e,this.name=r,this.from=t,this.to=n}render(e){const r=e.es5?t.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=A(super.names,this.from);return A(e,this.to)}}class k extends b{constructor(e,r,t,n){super(),this.loop=e,this.varKind=r,this.name=t,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=C(this.iterable,e,r),this}get names(){return O(super.names,this.iterable.names)}}class $ extends m{constructor(e,r,t){super(),this.name=e,this.args=r,this.async=t}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class E extends m{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(r=this.finally)||void 0===r||r.optimizeNodes(),this}optimizeNames(e,r){var t,n;return super.optimizeNames(e,r),null===(t=this.catch)||void 0===t||t.optimizeNames(e,r),null===(n=this.finally)||void 0===n||n.optimizeNames(e,r),this}get names(){const e=super.names;return this.catch&&O(e,this.catch.names),this.finally&&O(e,this.finally.names),e}}class j extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}j.kind="catch";class x extends m{render(e){return"finally"+super.render(e)}}function O(e,r){for(const t in r)e[t]=(e[t]||0)+(r[t]||0);return e}function A(e,t){return t instanceof r._CodeOrName?O(e,t.names):e}function C(e,t,n){return e instanceof r.Name?i(e):function(e){return e instanceof r._Code&&e._items.some((e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str]))}(e)?new r._Code(e._items.reduce(((e,t)=>(t instanceof r.Name&&(t=i(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e)),[])):e;function i(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function _(e,r){for(const t in r)e[t]=(e[t]||0)-(r[t]||0)}function I(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${q(e)}`}x.kind="finally",e.CodeGen=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?"\n":""},this._extScope=e,this._scope=new t.Scope({parent:e}),this._nodes=[new p]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){const t=this._extScope.value(e,r);return(this._values[t.prefix]||(this._values[t.prefix]=new Set)).add(t),t}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,t,n){const i=this._scope.toName(r);return void 0!==t&&n&&(this._constants[i.str]=t),this._leafNode(new a(e,i,t)),i}const(e,r,n){return this._def(t.varKinds.const,e,r,n)}let(e,r,n){return this._def(t.varKinds.let,e,r,n)}var(e,r,n){return this._def(t.varKinds.var,e,r,n)}assign(e,r,t){return this._leafNode(new l(e,r,t))}add(r,t){return this._leafNode(new u(r,e.operators.ADD,t))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new d(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,r,t){if(this._blockNode(new y(e)),r&&t)this.code(r).else().code(t).endIf();else if(r)this.code(r).endIf();else if(t)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new y(e))}else(){return this._elseNode(new v)}endIf(){return this._endBlockNode(y,v)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new g(e),r)}forRange(e,r,n,i,o=(this.opts.es5?t.varKinds.var:t.varKinds.let)){const a=this._scope.toName(e);return this._for(new w(o,a,r,n),(()=>i(a)))}forOf(e,n,i,o=t.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=n instanceof r.Name?n:this.var("_arr",n);return this.forRange("_i",0,r._`${e}.length`,(t=>{this.var(a,r._`${e}[${t}]`),i(a)}))}return this._for(new k("of",o,a,n),(()=>i(a)))}forIn(e,n,i,o=(this.opts.es5?t.varKinds.var:t.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${n})`,i);const a=this._scope.toName(e);return this._for(new k("in",o,a,n),(()=>i(a)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new s(e))}break(e){return this._leafNode(new c(e))}return(e){const r=new S;if(this._blockNode(r),this.code(e),1!==r.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,r,t){if(!r&&!t)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new E;if(this._blockNode(n),this.code(e),r){const e=this.name("e");this._currNode=n.catch=new j(e),r(e)}return t&&(this._currNode=n.finally=new x,this.code(t)),this._endBlockNode(j,x)}throw(e){return this._leafNode(new f(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){const r=this._blockStarts.pop();if(void 0===r)throw new Error("CodeGen: not in self-balancing block");const t=this._nodes.length-r;if(t<0||void 0!==e&&t!==e)throw new Error(`CodeGen: wrong number of nodes: ${t} vs ${e} expected`);return this._nodes.length=r,this}func(e,t=r.nil,n,i){return this._blockNode(new $(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){const t=this._currNode;if(t instanceof e||r&&t instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){const r=this._currNode;if(!(r instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const r=this._nodes;r[r.length-1]=e}},e.not=I;const D=F(e.operators.AND);e.and=function(...e){return e.reduce(D)};const P=F(e.operators.OR);function F(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${q(t)} ${e} ${q(n)}`}function q(e){return e instanceof r.Name?e:r._`(${e})`}e.or=function(...e){return e.reduce(P)}}(Af)),Af}var Nf,Tf={};function Rf(){if(Nf)return Tf;Nf=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.checkStrictMode=Tf.getErrorPath=Tf.Type=Tf.useFunc=Tf.setEvaluated=Tf.evaluatedPropsToName=Tf.mergeEvaluated=Tf.eachItem=Tf.unescapeJsonPointer=Tf.escapeJsonPointer=Tf.escapeFragment=Tf.unescapeFragment=Tf.schemaRefOrVal=Tf.schemaHasRulesButRef=Tf.schemaHasRules=Tf.checkUnknownRules=Tf.alwaysValidSchema=Tf.toHash=void 0;const e=qf(),r=_f();function t(e,r=e.schema){const{opts:t,self:n}=e;if(!t.strictSchema)return;if("boolean"==typeof r)return;const i=n.RULES.keywords;for(const t in r)i[t]||f(e,`unknown keyword: "${t}"`)}function n(e,r){if("boolean"==typeof e)return!e;for(const t in e)if(r[t])return!0;return!1}function i(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function a({mergeNames:r,mergeToName:t,mergeValues:n,resultToName:i}){return(o,a,l,u)=>{const s=void 0===l?a:l instanceof e.Name?(a instanceof e.Name?r(o,a,l):t(o,a,l),l):a instanceof e.Name?(t(o,l,a),a):n(a,l);return u!==e.Name||s instanceof e.Name?s:i(o,s)}}function l(r,t){if(!0===t)return r.var("props",!0);const n=r.var("props",e._`{}`);return void 0!==t&&u(r,n,t),n}function u(r,t,n){Object.keys(n).forEach((n=>r.assign(e._`${t}${(0,e.getProperty)(n)}`,!0)))}Tf.toHash=function(e){const r={};for(const t of e)r[t]=!0;return r},Tf.alwaysValidSchema=function(e,r){return"boolean"==typeof r?r:0===Object.keys(r).length||(t(e,r),!n(r,e.self.RULES.all))},Tf.checkUnknownRules=t,Tf.schemaHasRules=n,Tf.schemaHasRulesButRef=function(e,r){if("boolean"==typeof e)return!e;for(const t in e)if("$ref"!==t&&r.all[t])return!0;return!1},Tf.schemaRefOrVal=function({topSchemaRef:r,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return e._`${n}`}return e._`${r}${t}${(0,e.getProperty)(i)}`},Tf.unescapeFragment=function(e){return o(decodeURIComponent(e))},Tf.escapeFragment=function(e){return encodeURIComponent(i(e))},Tf.escapeJsonPointer=i,Tf.unescapeJsonPointer=o,Tf.eachItem=function(e,r){if(Array.isArray(e))for(const t of e)r(t);else r(e)},Tf.mergeEvaluated={props:a({mergeNames:(r,t,n)=>r.if(e._`${n} !== true && ${t} !== undefined`,(()=>{r.if(e._`${t} === true`,(()=>r.assign(n,!0)),(()=>r.assign(n,e._`${n} || {}`).code(e._`Object.assign(${n}, ${t})`)))})),mergeToName:(r,t,n)=>r.if(e._`${n} !== true`,(()=>{!0===t?r.assign(n,!0):(r.assign(n,e._`${n} || {}`),u(r,n,t))})),mergeValues:(e,r)=>!0===e||{...e,...r},resultToName:l}),items:a({mergeNames:(r,t,n)=>r.if(e._`${n} !== true && ${t} !== undefined`,(()=>r.assign(n,e._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(r,t,n)=>r.if(e._`${n} !== true`,(()=>r.assign(n,!0===t||e._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,r)=>!0===e||Math.max(e,r),resultToName:(e,r)=>e.var("items",r)})},Tf.evaluatedPropsToName=l,Tf.setEvaluated=u;const s={};var c;function f(e,r,t=e.opts.strictSchema){if(t){if(r=`strict mode: ${r}`,!0===t)throw new Error(r);e.self.logger.warn(r)}}return Tf.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:s[t.code]||(s[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(c||(Tf.Type=c={})),Tf.getErrorPath=function(r,t,n){if(r instanceof e.Name){const i=t===c.Num;return n?i?e._`"[" + ${r} + "]"`:e._`"['" + ${r} + "']"`:i?e._`"/" + ${r}`:e._`"/" + ${r}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,e.getProperty)(r).toString():"/"+i(r)},Tf.checkStrictMode=f,Tf}var Mf,zf,Uf,Lf={};function Bf(){if(Mf)return Lf;Mf=1,Object.defineProperty(Lf,"__esModule",{value:!0});const e=qf(),r={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Lf.default=r,Lf}function Vf(){return zf||(zf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const r=qf(),t=Rf(),n=Bf();function i(e,t){const i=e.const("err",t);e.if(r._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,r._`[${i}]`)),r._`${n.default.vErrors}.push(${i})`),e.code(r._`${n.default.errors}++`)}function o(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}e.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},e.reportError=function(t,n=e.keywordError,a,u){const{it:s}=t,{gen:c,compositeRule:f,allErrors:d}=s,h=l(t,n,a);(null!=u?u:f||d)?i(c,h):o(s,r._`[${h}]`)},e.reportExtraError=function(r,t=e.keywordError,a){const{it:u}=r,{gen:s,compositeRule:c,allErrors:f}=u;i(s,l(r,t,a)),c||f||o(u,n.default.vErrors)},e.resetErrorsCount=function(e,t){e.assign(n.default.errors,t),e.if(r._`${n.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(r._`${n.default.vErrors}.length`,t)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:t,schemaValue:i,data:o,errsCount:a,it:l}){if(void 0===a)throw new Error("ajv implementation error");const u=e.name("err");e.forRange("i",a,n.default.errors,(a=>{e.const(u,r._`${n.default.vErrors}[${a}]`),e.if(r._`${u}.instancePath === undefined`,(()=>e.assign(r._`${u}.instancePath`,(0,r.strConcat)(n.default.instancePath,l.errorPath)))),e.assign(r._`${u}.schemaPath`,r.str`${l.errSchemaPath}/${t}`),l.opts.verbose&&(e.assign(r._`${u}.schema`,i),e.assign(r._`${u}.data`,o))}))};const a={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function l(e,t,i){const{createErrors:o}=e.it;return!1===o?r._`{}`:function(e,t,i={}){const{gen:o,it:l}=e,c=[u(l,i),s(e,i)];return function(e,{params:t,message:i},o){const{keyword:l,data:u,schemaValue:s,it:c}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:m}=c;o.push([a.keyword,l],[a.params,"function"==typeof t?t(e):t||r._`{}`]),f.messages&&o.push([a.message,"function"==typeof i?i(e):i]),f.verbose&&o.push([a.schema,s],[a.parentSchema,r._`${h}${m}`],[n.default.data,u]),d&&o.push([a.propertyName,d])}(e,t,c),o.object(...c)}(e,t,i)}function u({errorPath:e},{instancePath:i}){const o=i?r.str`${e}${(0,t.getErrorPath)(i,t.Type.Str)}`:e;return[n.default.instancePath,(0,r.strConcat)(n.default.instancePath,o)]}function s({keyword:e,it:{errSchemaPath:n}},{schemaPath:i,parentSchema:o}){let l=o?n:r.str`${n}/${e}`;return i&&(l=r.str`${l}${(0,t.getErrorPath)(i,t.Type.Str)}`),[a.schemaPath,l]}}(Of)),Of}function Hf(){if(Uf)return xf;Uf=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.boolOrEmptySchema=xf.topBoolOrEmptySchema=void 0;const e=Vf(),r=qf(),t=Bf(),n={message:"boolean schema is false"};function i(r,t){const{gen:i,data:o}=r;(0,e.reportError)({gen:i,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r},n,void 0,t)}return xf.topBoolOrEmptySchema=function(e){const{gen:n,schema:o,validateName:a}=e;!1===o?i(e,!1):"object"==typeof o&&!0===o.$async?n.return(t.default.data):(n.assign(r._`${a}.errors`,null),n.return(!0))},xf.boolOrEmptySchema=function(e,r){const{gen:t,schema:n}=e;!1===n?(t.var(r,!1),i(e)):t.var(r,!0)},xf}var Wf,Gf={},Kf={};function Jf(){if(Wf)return Kf;Wf=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.getRules=Kf.isJSONType=void 0;const e=new Set(["string","number","integer","boolean","null","object","array"]);return Kf.isJSONType=function(r){return"string"==typeof r&&e.has(r)},Kf.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}},Kf}var Zf,Yf,Xf={};function Qf(){if(Zf)return Xf;function e(e,t){return t.rules.some((t=>r(e,t)))}function r(e,r){var t;return void 0!==e[r.keyword]||(null===(t=r.definition.implements)||void 0===t?void 0:t.some((r=>void 0!==e[r])))}return Zf=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.shouldUseRule=Xf.shouldUseGroup=Xf.schemaHasRulesForType=void 0,Xf.schemaHasRulesForType=function({schema:r,self:t},n){const i=t.RULES.types[n];return i&&!0!==i&&e(r,i)},Xf.shouldUseGroup=e,Xf.shouldUseRule=r,Xf}function ed(){if(Yf)return Gf;Yf=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.reportTypeError=Gf.checkDataTypes=Gf.checkDataType=Gf.coerceAndCheckDataType=Gf.getJSONTypes=Gf.getSchemaTypes=Gf.DataType=void 0;const e=Jf(),r=Qf(),t=Vf(),n=qf(),i=Rf();var o;function a(r){const t=Array.isArray(r)?r:r?[r]:[];if(t.every(e.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(o||(Gf.DataType=o={})),Gf.getSchemaTypes=function(e){const r=a(e.type);if(r.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!r.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&r.push("null")}return r},Gf.getJSONTypes=a,Gf.coerceAndCheckDataType=function(e,t){const{gen:i,data:a,opts:u}=e,c=function(e,r){return r?e.filter((e=>l.has(e)||"array"===r&&"array"===e)):[]}(t,u.coerceTypes),d=t.length>0&&!(0===c.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(d){const r=s(t,a,u.strictNumbers,o.Wrong);i.if(r,(()=>{c.length?function(e,r,t){const{gen:i,data:o,opts:a}=e,u=i.let("dataType",n._`typeof ${o}`),c=i.let("coerced",n._`undefined`);"array"===a.coerceTypes&&i.if(n._`${u} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,(()=>i.assign(o,n._`${o}[0]`).assign(u,n._`typeof ${o}`).if(s(r,o,a.strictNumbers),(()=>i.assign(c,o))))),i.if(n._`${c} !== undefined`);for(const e of t)(l.has(e)||"array"===e&&"array"===a.coerceTypes)&&d(e);function d(e){switch(e){case"string":return void i.elseIf(n._`${u} == "number" || ${u} == "boolean"`).assign(c,n._`"" + ${o}`).elseIf(n._`${o} === null`).assign(c,n._`""`);case"number":return void i.elseIf(n._`${u} == "boolean" || ${o} === null
|
|
11
|
+
|| (${u} == "string" && ${o} && ${o} == +${o})`).assign(c,n._`+${o}`);case"integer":return void i.elseIf(n._`${u} === "boolean" || ${o} === null
|
|
12
|
+
|| (${u} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,n._`+${o}`);case"boolean":return void i.elseIf(n._`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf(n._`${o} === "true" || ${o} === 1`).assign(c,!0);case"null":return i.elseIf(n._`${o} === "" || ${o} === 0 || ${o} === false`),void i.assign(c,null);case"array":i.elseIf(n._`${u} === "string" || ${u} === "number"
|
|
13
|
+
|| ${u} === "boolean" || ${o} === null`).assign(c,n._`[${o}]`)}}i.else(),f(e),i.endIf(),i.if(n._`${c} !== undefined`,(()=>{i.assign(o,c),function({gen:e,parentData:r,parentDataProperty:t},i){e.if(n._`${r} !== undefined`,(()=>e.assign(n._`${r}[${t}]`,i)))}(e,c)}))}(e,t,c):f(e)}))}return d};const l=new Set(["string","number","integer","boolean","null"]);function u(e,r,t,i=o.Correct){const a=i===o.Correct?n.operators.EQ:n.operators.NEQ;let l;switch(e){case"null":return n._`${r} ${a} null`;case"array":l=n._`Array.isArray(${r})`;break;case"object":l=n._`${r} && typeof ${r} == "object" && !Array.isArray(${r})`;break;case"integer":l=u(n._`!(${r} % 1) && !isNaN(${r})`);break;case"number":l=u();break;default:return n._`typeof ${r} ${a} ${e}`}return i===o.Correct?l:(0,n.not)(l);function u(e=n.nil){return(0,n.and)(n._`typeof ${r} == "number"`,e,t?n._`isFinite(${r})`:n.nil)}}function s(e,r,t,o){if(1===e.length)return u(e[0],r,t,o);let a;const l=(0,i.toHash)(e);if(l.array&&l.object){const e=n._`typeof ${r} != "object"`;a=l.null?e:n._`!${r} || ${e}`,delete l.null,delete l.array,delete l.object}else a=n.nil;l.number&&delete l.integer;for(const e in l)a=(0,n.and)(a,u(e,r,t,o));return a}Gf.checkDataType=u,Gf.checkDataTypes=s;const c={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:r})=>"string"==typeof e?n._`{type: ${e}}`:n._`{type: ${r}}`};function f(e){const r=function(e){const{gen:r,data:t,schema:n}=e,o=(0,i.schemaRefOrVal)(e,n,"type");return{gen:r,keyword:"type",data:t,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);(0,t.reportError)(r,c)}return Gf.reportTypeError=f,Gf}var rd,td={};function nd(){if(rd)return td;rd=1,Object.defineProperty(td,"__esModule",{value:!0}),td.assignDefaults=void 0;const e=qf(),r=Rf();function t(t,n,i){const{gen:o,compositeRule:a,data:l,opts:u}=t;if(void 0===i)return;const s=e._`${l}${(0,e.getProperty)(n)}`;if(a)return void(0,r.checkStrictMode)(t,`default is ignored for: ${s}`);let c=e._`${s} === undefined`;"empty"===u.useDefaults&&(c=e._`${c} || ${s} === null || ${s} === ""`),o.if(c,e._`${s} = ${(0,e.stringify)(i)}`)}return td.assignDefaults=function(e,r){const{properties:n,items:i}=e.schema;if("object"===r&&n)for(const r in n)t(e,r,n[r].default);else"array"===r&&Array.isArray(i)&&i.forEach(((r,n)=>t(e,n,r.default)))},td}var id,od,ad={},ld={};function ud(){if(id)return ld;id=1,Object.defineProperty(ld,"__esModule",{value:!0}),ld.validateUnion=ld.validateArray=ld.usePattern=ld.callValidateCode=ld.schemaProperties=ld.allSchemaProperties=ld.noPropertyInData=ld.propertyInData=ld.isOwnProperty=ld.hasPropFunc=ld.reportMissingProp=ld.checkMissingProp=ld.checkReportMissingProp=void 0;const e=qf(),r=Rf(),t=Bf(),n=Rf();function i(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:e._`Object.prototype.hasOwnProperty`})}function o(r,t,n){return e._`${i(r)}.call(${t}, ${n})`}function a(r,t,n,i){const a=e._`${t}${(0,e.getProperty)(n)} === undefined`;return i?(0,e.or)(a,(0,e.not)(o(r,t,n))):a}function l(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}ld.checkReportMissingProp=function(r,t){const{gen:n,data:i,it:o}=r;n.if(a(n,i,t,o.opts.ownProperties),(()=>{r.setParams({missingProperty:e._`${t}`},!0),r.error()}))},ld.checkMissingProp=function({gen:r,data:t,it:{opts:n}},i,o){return(0,e.or)(...i.map((i=>(0,e.and)(a(r,t,i,n.ownProperties),e._`${o} = ${i}`))))},ld.reportMissingProp=function(e,r){e.setParams({missingProperty:r},!0),e.error()},ld.hasPropFunc=i,ld.isOwnProperty=o,ld.propertyInData=function(r,t,n,i){const a=e._`${t}${(0,e.getProperty)(n)} !== undefined`;return i?e._`${a} && ${o(r,t,n)}`:a},ld.noPropertyInData=a,ld.allSchemaProperties=l,ld.schemaProperties=function(e,t){return l(t).filter((n=>!(0,r.alwaysValidSchema)(e,t[n])))},ld.callValidateCode=function({schemaCode:r,data:n,it:{gen:i,topSchemaRef:o,schemaPath:a,errorPath:l},it:u},s,c,f){const d=f?e._`${r}, ${n}, ${o}${a}`:n,h=[[t.default.instancePath,(0,e.strConcat)(t.default.instancePath,l)],[t.default.parentData,u.parentData],[t.default.parentDataProperty,u.parentDataProperty],[t.default.rootData,t.default.rootData]];u.opts.dynamicRef&&h.push([t.default.dynamicAnchors,t.default.dynamicAnchors]);const m=e._`${d}, ${i.object(...h)}`;return c!==e.nil?e._`${s}.call(${c}, ${m})`:e._`${s}(${m})`};const u=e._`new RegExp`;return ld.usePattern=function({gen:r,it:{opts:t}},i){const o=t.unicodeRegExp?"u":"",{regExp:a}=t.code,l=a(i,o);return r.scopeValue("pattern",{key:l.toString(),ref:l,code:e._`${"new RegExp"===a.code?u:(0,n.useFunc)(r,a)}(${i}, ${o})`})},ld.validateArray=function(t){const{gen:n,data:i,keyword:o,it:a}=t,l=n.name("valid");if(a.allErrors){const e=n.let("valid",!0);return u((()=>n.assign(e,!1))),e}return n.var(l,!0),u((()=>n.break())),l;function u(a){const u=n.const("len",e._`${i}.length`);n.forRange("i",0,u,(i=>{t.subschema({keyword:o,dataProp:i,dataPropType:r.Type.Num},l),n.if((0,e.not)(l),a)}))}},ld.validateUnion=function(t){const{gen:n,schema:i,keyword:o,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some((e=>(0,r.alwaysValidSchema)(a,e)))&&!a.opts.unevaluated)return;const l=n.let("valid",!1),u=n.name("_valid");n.block((()=>i.forEach(((r,i)=>{const a=t.subschema({keyword:o,schemaProp:i,compositeRule:!0},u);n.assign(l,e._`${l} || ${u}`),t.mergeValidEvaluated(a,u)||n.if((0,e.not)(l))})))),t.result(l,(()=>t.reset()),(()=>t.error(!0)))},ld}function sd(){if(od)return ad;od=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.validateKeywordUsage=ad.validSchemaType=ad.funcKeywordCode=ad.macroKeywordCode=void 0;const e=qf(),r=Bf(),t=ud(),n=Vf();function i(r){const{gen:t,data:n,it:i}=r;t.if(i.parentData,(()=>t.assign(n,e._`${i.parentData}[${i.parentDataProperty}]`)))}function o(r,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return r.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,e.stringify)(n)})}return ad.macroKeywordCode=function(r,t){const{gen:n,keyword:i,schema:a,parentSchema:l,it:u}=r,s=t.macro.call(u.self,a,l,u),c=o(n,i,s);!1!==u.opts.validateSchema&&u.self.validateSchema(s,!0);const f=n.name("valid");r.subschema({schema:s,schemaPath:e.nil,errSchemaPath:`${u.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},f),r.pass(f,(()=>r.error(!0)))},ad.funcKeywordCode=function(a,l){var u;const{gen:s,keyword:c,schema:f,parentSchema:d,$data:h,it:m}=a;!function({schemaEnv:e},r){if(r.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,l);const p=!h&&l.compile?l.compile.call(m.self,f,d,m):l.validate,v=o(s,c,p),y=s.let("valid");function b(n=(l.async?e._`await `:e.nil)){s.assign(y,e._`${n}${(0,t.callValidateCode)(a,v,m.opts.passContext?r.default.this:r.default.self,!("compile"in l&&!h||!1===l.schema))}`,l.modifying)}function g(r){var t;s.if((0,e.not)(null!==(t=l.valid)&&void 0!==t?t:y),r)}a.block$data(y,(function(){if(!1===l.errors)b(),l.modifying&&i(a),g((()=>a.error()));else{const t=l.async?function(){const r=s.let("ruleErrs",null);return s.try((()=>b(e._`await `)),(t=>s.assign(y,!1).if(e._`${t} instanceof ${m.ValidationError}`,(()=>s.assign(r,e._`${t}.errors`)),(()=>s.throw(t))))),r}():function(){const r=e._`${v}.errors`;return s.assign(r,null),b(e.nil),r}();l.modifying&&i(a),g((()=>function(t,i){const{gen:o}=t;o.if(e._`Array.isArray(${i})`,(()=>{o.assign(r.default.vErrors,e._`${r.default.vErrors} === null ? ${i} : ${r.default.vErrors}.concat(${i})`).assign(r.default.errors,e._`${r.default.vErrors}.length`),(0,n.extendErrors)(t)}),(()=>t.error()))}(a,t)))}})),a.ok(null!==(u=l.valid)&&void 0!==u?u:y)},ad.validSchemaType=function(e,r,t=!1){return!r.length||r.some((r=>"array"===r?Array.isArray(e):"object"===r?e&&"object"==typeof e&&!Array.isArray(e):typeof e==r||t&&void 0===e))},ad.validateKeywordUsage=function({schema:e,opts:r,self:t,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const a=i.dependencies;if(null==a?void 0:a.some((r=>!Object.prototype.hasOwnProperty.call(e,r))))throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${n}": `+t.errorsText(i.validateSchema.errors);if("log"!==r.validateSchema)throw new Error(e);t.logger.error(e)}},ad}var cd,fd={};function dd(){if(cd)return fd;cd=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.extendSubschemaMode=fd.extendSubschemaData=fd.getSubschema=void 0;const e=qf(),r=Rf();return fd.getSubschema=function(t,{keyword:n,schemaProp:i,schema:o,schemaPath:a,errSchemaPath:l,topSchemaRef:u}){if(void 0!==n&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==n){const o=t.schema[n];return void 0===i?{schema:o,schemaPath:e._`${t.schemaPath}${(0,e.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${n}`}:{schema:o[i],schemaPath:e._`${t.schemaPath}${(0,e.getProperty)(n)}${(0,e.getProperty)(i)}`,errSchemaPath:`${t.errSchemaPath}/${n}/${(0,r.escapeFragment)(i)}`}}if(void 0!==o){if(void 0===a||void 0===l||void 0===u)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:a,topSchemaRef:u,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')},fd.extendSubschemaData=function(t,n,{dataProp:i,dataPropType:o,data:a,dataTypes:l,propertyName:u}){if(void 0!==a&&void 0!==i)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:s}=n;if(void 0!==i){const{errorPath:a,dataPathArr:l,opts:u}=n;c(s.let("data",e._`${n.data}${(0,e.getProperty)(i)}`,!0)),t.errorPath=e.str`${a}${(0,r.getErrorPath)(i,o,u.jsPropertySyntax)}`,t.parentDataProperty=e._`${i}`,t.dataPathArr=[...l,t.parentDataProperty]}function c(e){t.data=e,t.dataLevel=n.dataLevel+1,t.dataTypes=[],n.definedProperties=new Set,t.parentData=n.data,t.dataNames=[...n.dataNames,e]}void 0!==a&&(c(a instanceof e.Name?a:s.let("data",a,!0)),void 0!==u&&(t.propertyName=u)),l&&(t.dataTypes=l)},fd.extendSubschemaMode=function(e,{jtdDiscriminator:r,jtdMetadata:t,compositeRule:n,createErrors:i,allErrors:o}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=r,e.jtdMetadata=t},fd}var hd,md,pd={};function vd(){return md||(md=1,hd=function e(r,t){if(r===t)return!0;if(r&&t&&"object"==typeof r&&"object"==typeof t){if(r.constructor!==t.constructor)return!1;var n,i,o;if(Array.isArray(r)){if((n=r.length)!=t.length)return!1;for(i=n;0!=i--;)if(!e(r[i],t[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if((n=(o=Object.keys(r)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!=i--;){var a=o[i];if(!e(r[a],t[a]))return!1}return!0}return r!=r&&t!=t}),hd}var yd,bd,gd,wd={exports:{}};function kd(){if(yd)return wd.exports;yd=1;var e=wd.exports=function(e,t,n){"function"==typeof t&&(n=t,t={}),r(t,"function"==typeof(n=t.cb||n)?n:n.pre||function(){},n.post||function(){},e,"",e)};function r(t,n,i,o,a,l,u,s,c,f){if(o&&"object"==typeof o&&!Array.isArray(o)){for(var d in n(o,a,l,u,s,c,f),o){var h=o[d];if(Array.isArray(h)){if(d in e.arrayKeywords)for(var m=0;m<h.length;m++)r(t,n,i,h[m],a+"/"+d+"/"+m,l,a,d,o,m)}else if(d in e.propsKeywords){if(h&&"object"==typeof h)for(var p in h)r(t,n,i,h[p],a+"/"+d+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),l,a,d,o,p)}else(d in e.keywords||t.allKeys&&!(d in e.skipKeywords))&&r(t,n,i,h,a+"/"+d,l,a,d,o)}i(o,a,l,u,s,c,f)}}return e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0},wd.exports}function $d(){if(bd)return pd;bd=1,Object.defineProperty(pd,"__esModule",{value:!0}),pd.getSchemaRefs=pd.resolveUrl=pd.normalizeId=pd._getFullPath=pd.getFullPath=pd.inlineRef=void 0;const e=Rf(),r=vd(),t=kd(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);pd.inlineRef=function(e,r=!0){return"boolean"==typeof e||(!0===r?!o(e):!!r&&a(e)<=r)};const i=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function o(e){for(const r in e){if(i.has(r))return!0;const t=e[r];if(Array.isArray(t)&&t.some(o))return!0;if("object"==typeof t&&o(t))return!0}return!1}function a(r){let t=0;for(const i in r){if("$ref"===i)return 1/0;if(t++,!n.has(i)&&("object"==typeof r[i]&&(0,e.eachItem)(r[i],(e=>t+=a(e))),t===1/0))return 1/0}return t}function l(e,r="",t){!1!==t&&(r=c(r));const n=e.parse(r);return u(e,n)}function u(e,r){return e.serialize(r).split("#")[0]+"#"}pd.getFullPath=l,pd._getFullPath=u;const s=/#\/?$/;function c(e){return e?e.replace(s,""):""}pd.normalizeId=c,pd.resolveUrl=function(e,r,t){return t=c(t),e.resolve(r,t)};const f=/^[a-z_][-a-z0-9._]*$/i;return pd.getSchemaRefs=function(e,n){if("boolean"==typeof e)return{};const{schemaId:i,uriResolver:o}=this.opts,a=c(e[i]||n),u={"":a},s=l(o,a,!1),d={},h=new Set;return t(e,{allKeys:!0},((e,r,t,n)=>{if(void 0===n)return;const o=s+r;let a=u[n];function l(r){if(r=c(a?(0,this.opts.uriResolver.resolve)(a,r):r),h.has(r))throw p(r);h.add(r);let t=this.refs[r];return"string"==typeof t&&(t=this.refs[t]),"object"==typeof t?m(e,t.schema,r):r!==c(o)&&("#"===r[0]?(m(e,d[r],r),d[r]=e):this.refs[r]=o),r}function v(e){if("string"==typeof e){if(!f.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[i]&&(a=l.call(this,e[i])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),u[r]=a})),d;function m(e,t,n){if(void 0!==t&&!r(e,t))throw p(n)}function p(e){return new Error(`reference "${e}" resolves to more than one schema`)}},pd}function Sd(){if(gd)return jf;gd=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.getData=jf.KeywordCxt=jf.validateFunctionCode=void 0;const e=Hf(),r=ed(),t=Qf(),n=ed(),i=nd(),o=sd(),a=dd(),l=qf(),u=Bf(),s=$d(),c=Rf(),f=Vf();function d({gen:e,validateName:r,schema:t,schemaEnv:n,opts:i},o){i.code.es5?e.func(r,l._`${u.default.data}, ${u.default.valCxt}`,n.$async,(()=>{e.code(l._`"use strict"; ${h(t,i)}`),function(e,r){e.if(u.default.valCxt,(()=>{e.var(u.default.instancePath,l._`${u.default.valCxt}.${u.default.instancePath}`),e.var(u.default.parentData,l._`${u.default.valCxt}.${u.default.parentData}`),e.var(u.default.parentDataProperty,l._`${u.default.valCxt}.${u.default.parentDataProperty}`),e.var(u.default.rootData,l._`${u.default.valCxt}.${u.default.rootData}`),r.dynamicRef&&e.var(u.default.dynamicAnchors,l._`${u.default.valCxt}.${u.default.dynamicAnchors}`)}),(()=>{e.var(u.default.instancePath,l._`""`),e.var(u.default.parentData,l._`undefined`),e.var(u.default.parentDataProperty,l._`undefined`),e.var(u.default.rootData,u.default.data),r.dynamicRef&&e.var(u.default.dynamicAnchors,l._`{}`)}))}(e,i),e.code(o)})):e.func(r,l._`${u.default.data}, ${function(e){return l._`{${u.default.instancePath}="", ${u.default.parentData}, ${u.default.parentDataProperty}, ${u.default.rootData}=${u.default.data}${e.dynamicRef?l._`, ${u.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,n.$async,(()=>e.code(h(t,i)).code(o)))}function h(e,r){const t="object"==typeof e&&e[r.schemaId];return t&&(r.code.source||r.code.process)?l._`/*# sourceURL=${t} */`:l.nil}function m({schema:e,self:r}){if("boolean"==typeof e)return!e;for(const t in e)if(r.RULES.all[t])return!0;return!1}function p(e){return"boolean"!=typeof e.schema}function v(e){(0,c.checkUnknownRules)(e),function(e){const{schema:r,errSchemaPath:t,opts:n,self:i}=e;r.$ref&&n.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(r,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}(e)}function y(e,t){if(e.opts.jtd)return g(e,[],!1,t);const n=(0,r.getSchemaTypes)(e.schema);g(e,n,!(0,r.coerceAndCheckDataType)(e,n),t)}function b({gen:e,schemaEnv:r,schema:t,errSchemaPath:n,opts:i}){const o=t.$comment;if(!0===i.$comment)e.code(l._`${u.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const t=l.str`${n}/$comment`,i=e.scopeValue("root",{ref:r.root});e.code(l._`${u.default.self}.opts.$comment(${o}, ${t}, ${i}.schema)`)}}function g(e,r,i,o){const{gen:a,schema:s,data:f,allErrors:d,opts:h,self:m}=e,{RULES:p}=m;function v(c){(0,t.shouldUseGroup)(s,c)&&(c.type?(a.if((0,n.checkDataType)(c.type,f,h.strictNumbers)),w(e,c),1===r.length&&r[0]===c.type&&i&&(a.else(),(0,n.reportTypeError)(e)),a.endIf()):w(e,c),d||a.if(l._`${u.default.errors} === ${o||0}`))}!s.$ref||!h.ignoreKeywordsWithRef&&(0,c.schemaHasRulesButRef)(s,p)?(h.jtd||function(e,r){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,r){r.length&&(e.dataTypes.length?(r.forEach((r=>{k(e.dataTypes,r)||$(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,r){const t=[];for(const n of e.dataTypes)k(r,n)?t.push(n):r.includes("integer")&&"number"===n&&t.push("integer");e.dataTypes=t}(e,r)):e.dataTypes=r)}(e,r),e.opts.allowUnionTypes||function(e,r){r.length>1&&(2!==r.length||!r.includes("null"))&&$(e,"use allowUnionTypes to allow union type keyword")}(e,r),function(e,r){const n=e.self.RULES.all;for(const i in n){const o=n[i];if("object"==typeof o&&(0,t.shouldUseRule)(e.schema,o)){const{type:t}=o.definition;t.length&&!t.some((e=>{return(t=r).includes(n=e)||"number"===n&&t.includes("integer");var t,n}))&&$(e,`missing type "${t.join(",")}" for keyword "${i}"`)}}}(e,e.dataTypes))}(e,r),a.block((()=>{for(const e of p.rules)v(e);v(p.post)}))):a.block((()=>E(e,"$ref",p.all.$ref.definition)))}function w(e,r){const{gen:n,schema:o,opts:{useDefaults:a}}=e;a&&(0,i.assignDefaults)(e,r.type),n.block((()=>{for(const n of r.rules)(0,t.shouldUseRule)(o,n)&&E(e,n.keyword,n.definition,r.type)}))}function k(e,r){return e.includes(r)||"integer"===r&&e.includes("number")}function $(e,r){(0,c.checkStrictMode)(e,r+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,e.opts.strictTypes)}jf.validateFunctionCode=function(r){p(r)&&(v(r),m(r))?function(e){const{schema:r,opts:t,gen:n}=e;d(e,(()=>{t.$comment&&r.$comment&&b(e),function(e){const{schema:r,opts:t}=e;void 0!==r.default&&t.useDefaults&&t.strictSchema&&(0,c.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(u.default.vErrors,null),n.let(u.default.errors,0),t.unevaluated&&function(e){const{gen:r,validateName:t}=e;e.evaluated=r.const("evaluated",l._`${t}.evaluated`),r.if(l._`${e.evaluated}.dynamicProps`,(()=>r.assign(l._`${e.evaluated}.props`,l._`undefined`))),r.if(l._`${e.evaluated}.dynamicItems`,(()=>r.assign(l._`${e.evaluated}.items`,l._`undefined`)))}(e),y(e),function(e){const{gen:r,schemaEnv:t,validateName:n,ValidationError:i,opts:o}=e;t.$async?r.if(l._`${u.default.errors} === 0`,(()=>r.return(u.default.data)),(()=>r.throw(l._`new ${i}(${u.default.vErrors})`))):(r.assign(l._`${n}.errors`,u.default.vErrors),o.unevaluated&&function({gen:e,evaluated:r,props:t,items:n}){t instanceof l.Name&&e.assign(l._`${r}.props`,t),n instanceof l.Name&&e.assign(l._`${r}.items`,n)}(e),r.return(l._`${u.default.errors} === 0`))}(e)}))}(r):d(r,(()=>(0,e.topBoolOrEmptySchema)(r)))};class S{constructor(e,r,t){if((0,o.validateKeywordUsage)(e,r,t),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=t,this.data=e.data,this.schema=e.schema[t],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,c.schemaRefOrVal)(e,this.schema,t,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",O(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${t} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:!1!==r.errors)&&(this.errsCount=e.gen.const("_errs",u.default.errors))}result(e,r,t){this.failResult((0,l.not)(e),r,t)}failResult(e,r,t){this.gen.if(e),t?t():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,l.not)(e),void 0,r)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:r}=this;this.fail(l._`${r} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,r,t){if(r)return this.setParams(r),this._error(e,t),void this.setParams({});this._error(e,t)}_error(e,r){(e?f.reportExtraError:f.reportError)(this,this.def.error,r)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,t=l.nil){this.gen.block((()=>{this.check$data(e,t),r()}))}check$data(e=l.nil,r=l.nil){if(!this.$data)return;const{gen:t,schemaCode:n,schemaType:i,def:o}=this;t.if((0,l.or)(l._`${n} === undefined`,r)),e!==l.nil&&t.assign(e,!0),(i.length||o.validateSchema)&&(t.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&t.assign(e,!1)),t.else()}invalid$data(){const{gen:e,schemaCode:r,schemaType:t,def:i,it:o}=this;return(0,l.or)(function(){if(t.length){if(!(r instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(t)?t:[t];return l._`${(0,n.checkDataTypes)(e,r,o.opts.strictNumbers,n.DataType.Wrong)}`}return l.nil}(),function(){if(i.validateSchema){const t=e.scopeValue("validate$data",{ref:i.validateSchema});return l._`!${t}(${r})`}return l.nil}())}subschema(r,t){const n=(0,a.getSubschema)(this.it,r);(0,a.extendSubschemaData)(n,this.it,r),(0,a.extendSubschemaMode)(n,r);const i={...this.it,...n,items:void 0,props:void 0};return function(r,t){p(r)&&(v(r),m(r))?function(e,r){const{schema:t,gen:n,opts:i}=e;i.$comment&&t.$comment&&b(e),function(e){const r=e.schema[e.opts.schemaId];r&&(e.baseId=(0,s.resolveUrl)(e.opts.uriResolver,e.baseId,r))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=n.const("_errs",u.default.errors);y(e,o),n.var(r,l._`${o} === ${u.default.errors}`)}(r,t):(0,e.boolOrEmptySchema)(r,t)}(i,t),i}mergeEvaluated(e,r){const{it:t,gen:n}=this;t.opts.unevaluated&&(!0!==t.props&&void 0!==e.props&&(t.props=c.mergeEvaluated.props(n,e.props,t.props,r)),!0!==t.items&&void 0!==e.items&&(t.items=c.mergeEvaluated.items(n,e.items,t.items,r)))}mergeValidEvaluated(e,r){const{it:t,gen:n}=this;if(t.opts.unevaluated&&(!0!==t.props||!0!==t.items))return n.if(r,(()=>this.mergeEvaluated(e,l.Name))),!0}}function E(e,r,t,n){const i=new S(e,t,r);"code"in t?t.code(i,n):i.$data&&t.validate?(0,o.funcKeywordCode)(i,t):"macro"in t?(0,o.macroKeywordCode)(i,t):(t.compile||t.validate)&&(0,o.funcKeywordCode)(i,t)}jf.KeywordCxt=S;const j=/^\/(?:[^~]|~0|~1)*$/,x=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function O(e,{dataLevel:r,dataNames:t,dataPathArr:n}){let i,o;if(""===e)return u.default.rootData;if("/"===e[0]){if(!j.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=u.default.rootData}else{const a=x.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const l=+a[1];if(i=a[2],"#"===i){if(l>=r)throw new Error(f("property/index",l));return n[r-l]}if(l>r)throw new Error(f("data",l));if(o=t[r-l],!i)return o}let a=o;const s=i.split("/");for(const e of s)e&&(o=l._`${o}${(0,l.getProperty)((0,c.unescapeJsonPointer)(e))}`,a=l._`${a} && ${o}`);return a;function f(e,t){return`Cannot access ${e} ${t} levels up, current level is ${r}`}}return jf.getData=O,jf}var Ed,jd={};function xd(){if(Ed)return jd;Ed=1,Object.defineProperty(jd,"__esModule",{value:!0});class e extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}return jd.default=e,jd}var Od,Ad={};function Cd(){if(Od)return Ad;Od=1,Object.defineProperty(Ad,"__esModule",{value:!0});const e=$d();class r extends Error{constructor(r,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,e.resolveUrl)(r,t,n),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Ad.default=r,Ad}var _d,Id={};function Dd(){if(_d)return Id;_d=1,Object.defineProperty(Id,"__esModule",{value:!0}),Id.resolveSchema=Id.getCompilingSchema=Id.resolveRef=Id.compileSchema=Id.SchemaEnv=void 0;const e=qf(),r=xd(),t=Bf(),n=$d(),i=Rf(),o=Sd();class a{constructor(e){var r;let t;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(r=e.baseId)&&void 0!==r?r:(0,n.normalizeId)(null==t?void 0:t[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==t?void 0:t.$async,this.refs={}}}function l(i){const a=s.call(this,i);if(a)return a;const l=(0,n.getFullPath)(this.opts.uriResolver,i.root.baseId),{es5:u,lines:c}=this.opts.code,{ownProperties:f}=this.opts,d=new e.CodeGen(this.scope,{es5:u,lines:c,ownProperties:f});let h;i.$async&&(h=d.scopeValue("Error",{ref:r.default,code:e._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");i.validateName=m;const p={gen:d,allErrors:this.opts.allErrors,data:t.default.data,parentData:t.default.parentData,parentDataProperty:t.default.parentDataProperty,dataNames:[t.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:i.schema,code:(0,e.stringify)(i.schema)}:{ref:i.schema}),validateName:m,ValidationError:h,schema:i.schema,schemaEnv:i,rootId:l,baseId:i.baseId||l,schemaPath:e.nil,errSchemaPath:i.schemaPath||(this.opts.jtd?"":"#"),errorPath:e._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(i),(0,o.validateFunctionCode)(p),d.optimize(this.opts.code.optimize);const r=d.toString();v=`${d.scopeRefs(t.default.scope)}return ${r}`,this.opts.code.process&&(v=this.opts.code.process(v,i));const n=new Function(`${t.default.self}`,`${t.default.scope}`,v)(this,this.scope.get());if(this.scope.value(m,{ref:n}),n.errors=null,n.schema=i.schema,n.schemaEnv=i,i.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:m,validateCode:r,scopeValues:d._values}),this.opts.unevaluated){const{props:r,items:t}=p;n.evaluated={props:r instanceof e.Name?void 0:r,items:t instanceof e.Name?void 0:t,dynamicProps:r instanceof e.Name,dynamicItems:t instanceof e.Name},n.source&&(n.source.evaluated=(0,e.stringify)(n.evaluated))}return i.validate=n,i}catch(e){throw delete i.validate,delete i.validateName,v&&this.logger.error("Error compiling schema, function code:",v),e}finally{this._compilations.delete(i)}}function u(e){return(0,n.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function s(e){for(const n of this._compilations)if((r=n).schema===(t=e).schema&&r.root===t.root&&r.baseId===t.baseId)return n;var r,t}function c(e,r){let t;for(;"string"==typeof(t=this.refs[r]);)r=t;return t||this.schemas[r]||f.call(this,e,r)}function f(e,r){const t=this.opts.uriResolver.parse(r),i=(0,n._getFullPath)(this.opts.uriResolver,t);let o=(0,n.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===o)return h.call(this,t,e);const u=(0,n.normalizeId)(i),s=this.refs[u]||this.schemas[u];if("string"==typeof s){const r=f.call(this,e,s);if("object"!=typeof(null==r?void 0:r.schema))return;return h.call(this,t,r)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||l.call(this,s),u===(0,n.normalizeId)(r)){const{schema:r}=s,{schemaId:t}=this.opts,i=r[t];return i&&(o=(0,n.resolveUrl)(this.opts.uriResolver,o,i)),new a({schema:r,schemaId:t,root:e,baseId:o})}return h.call(this,t,s)}}Id.SchemaEnv=a,Id.compileSchema=l,Id.resolveRef=function(e,r,t){var i;t=(0,n.resolveUrl)(this.opts.uriResolver,r,t);const o=e.refs[t];if(o)return o;let l=c.call(this,e,t);if(void 0===l){const n=null===(i=e.localRefs)||void 0===i?void 0:i[t],{schemaId:o}=this.opts;n&&(l=new a({schema:n,schemaId:o,root:e,baseId:r}))}return void 0!==l?e.refs[t]=u.call(this,l):void 0},Id.getCompilingSchema=s,Id.resolveSchema=f;const d=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function h(e,{baseId:r,schema:t,root:o}){var l;if("/"!==(null===(l=e.fragment)||void 0===l?void 0:l[0]))return;for(const o of e.fragment.slice(1).split("/")){if("boolean"==typeof t)return;const e=t[(0,i.unescapeFragment)(o)];if(void 0===e)return;const a="object"==typeof(t=e)&&t[this.opts.schemaId];!d.has(o)&&a&&(r=(0,n.resolveUrl)(this.opts.uriResolver,r,a))}let u;if("boolean"!=typeof t&&t.$ref&&!(0,i.schemaHasRulesButRef)(t,this.RULES)){const e=(0,n.resolveUrl)(this.opts.uriResolver,r,t.$ref);u=f.call(this,o,e)}const{schemaId:s}=this.opts;return u=u||new a({schema:t,schemaId:s,root:o,baseId:r}),u.schema!==u.root.schema?u:void 0}return Id}var Pd,Fd,qd,Nd,Td,Rd,Md,zd={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1},Ud={},Ld={exports:{}};function Bd(){if(Fd)return Pd;Fd=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),t=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),l=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),u=new Array(256);{const e="0123456789ABCDEF";for(let r=0;r<256;r++)u[r]="%"+e[r>>4]+e[15&r]}function s(e){return e<2048?u[192|e>>6]+u[128|63&e]:e<65536?u[224|e>>12]+u[128|e>>6&63]+u[128|63&e]:u[240|e>>18]+u[128|e>>12&63]+u[128|e>>6&63]+u[128|63&e]}const c=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),f=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),d=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),h=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function m(e){let r=-1,t=0,n=-1,i=0;for(let o=0;o<e.length;o++)"0"===e[o]?(-1===n&&(n=o),i++,i>t&&(t=i,r=n)):(n=-1,i=0);return t<2?e.join(":"):e.slice(0,r).join(":")+"::"+e.slice(r+t).join(":")}function p(e){const t="["===e[0]&&"]"===e[e.length-1];if(("["===e[0]||"]"===e[e.length-1])&&!t)return{host:e,isIPV6:!1,error:!0};let i=t?e.slice(1,-1):e;if(t&&f(i))return i=i.toLowerCase(),{host:`[${i}]`,escapedHost:i,isIPV6:!1,isIPVFuture:!0};if(function(e){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(i)<2)return{host:e,isIPV6:!1,error:t};let o="";const a=i.indexOf("%");if(-1!==a){const r="%25"===i.slice(a,a+3).toLowerCase()?3:1;if(o=i.slice(a+r),!function(e){if(0===e.length)return!1;for(let r=0;r<e.length;r++)if(!d(e[r])){if(!("%"===e[r]&&r+2<e.length&&n(e.slice(r+1,r+3))))return!1;r+=2}return!0}(o))return{host:e,isIPV6:!1,error:!0};i=i.slice(0,a)}const l=function(e){const t=e.indexOf("::");if(-1!==t&&-1!==e.indexOf("::",t+1))return;const n=-1===t?e.split(":"):e.slice(0,t).split(":"),i=-1===t?[]:e.slice(t+2).split(":");-1!==t&&(1===n.length&&""===n[0]&&(n.length=0),1===i.length&&""===i[0]&&(i.length=0));const o=n.concat(i);let a=0;for(let e=0;e<o.length;e++){const n=o[e];if(""===n)return;if(-1===n.indexOf(".")){if(!c(n))return;o[e]=parseInt(n,16).toString(16),a++}else{if(e!==o.length-1||-1!==t&&0===i.length||!r(n))return;a+=2}}if(-1===t){if(8!==a)return;return m(o)}if(a>=8)return;const l=o.slice(0,n.length);for(let e=a;e<8;e++)l.push("0");for(let e=n.length;e<o.length;e++)l.push(o[e]);return m(l)}(i);return void 0===l?{host:e,isIPV6:!1,error:!0}:{host:l+(o?"%"+o:""),escapedHost:l+(o?"%25"+o:""),isIPV6:!0}}const v={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},y=/[@/?#:]/g,b=/[@/?#]/g;function g(e,r){const t=r?b:y;return t.lastIndex=0,e.replace(t,(e=>v[e]))}function w(e,r=!1){if(-1===e.indexOf("%"))return e;let t="";for(let o=0;o<e.length;o++){if("%"===e[o]&&o+2<e.length){const a=e.slice(o+1,o+3);if(n(a)){const e=a.toUpperCase(),n=String.fromCharCode(parseInt(e,16));r&&i(n)?t+=n:t+="%"+e,o+=2;continue}}t+=e[o]}return t}function k(e,r){let t="";for(let i=0;i<e.length;i++){const o=e[i];if("%"===o&&i+2<e.length){const r=e.slice(i+1,i+3);if(n(r)){t+="%"+r.toUpperCase(),i+=2;continue}}if(r(o))t+=o;else{const r=e.charCodeAt(i);if(r<128)t+=u[r];else if(r<55296||r>57343)t+=s(r);else if(r<=56319&&i+1<e.length){const n=e.charCodeAt(i+1);n>=56320&&n<=57343?(t+=s(65536+(r-55296<<10)+(n-56320)),i++):t+=s(65533)}else t+=s(65533)}}return t}function $(e){return k(e,l)}function S(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||42===e||43===e||45===e||46===e||47===e||64===e||95===e}return Pd={nonSimpleDomain:h,recomposeAuthority:function(e){const n=[];if(void 0!==e.userinfo&&(n.push($(e.userinfo)),n.push("@")),void 0!==e.host){let t=e.host;if(!r(t)){let e=p(t);!0!==e.isIPV6&&!0!==e.isIPVFuture&&(t=w(t,!0),e=p(t)),t=!0===e.isIPV6||!0===e.isIPVFuture?`[${e.escapedHost}]`:g(t,!1)}n.push(t)}if("number"==typeof e.port||"string"==typeof e.port){const r=String(e.port);if(!t(r))throw new TypeError("URI port is malformed.");n.push(":"),n.push(r)}return n.length?n.join(""):void 0},reescapeHostDelimiters:g,normalizePercentEncoding:w,normalizePathEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const a=e[t];if("%"===a&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?r+=n:r+="%"+e,t+=2;continue}}if(o(a))r+=a;else{const n=e.charCodeAt(t);if(n<128)r+=S(n)?a:u[n];else if(n<55296||n>57343)r+=s(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=s(65536+(n-55296<<10)+(i-56320)),t++):r+=s(65533)}else r+=s(65533)}}return r},serializePathEncoding:function(e,r=!1){let t="",i=r&&"/"!==e[0];for(let r=0;r<e.length;r++){const a=e[r];if("%"===a&&r+2<e.length){const i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}if("/"===a&&(i=!1),!o(a)||":"===a&&i){const n=e.charCodeAt(r);if(n<128)t+=u[n];else if(n<55296||n>57343)t+=s(n);else if(n<=56319&&r+1<e.length){const i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=s(65536+(n-55296<<10)+(i-56320)),r++):t+=s(65533)}else t+=s(65533)}else t+=a}return t},normalizeQueryFragmentEncoding:function(e){let r="";for(let t=0;t<e.length;t++){const o=e[t];if("%"===o&&t+2<e.length){const o=e.slice(t+1,t+3);if(n(o)){const e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));i(n)?r+=n:r+="%"+e,t+=2;continue}}if(a(o))r+=o;else{const n=e.charCodeAt(t);if(n<128)r+=S(n)?o:u[n];else if(n<55296||n>57343)r+=s(n);else if(n<=56319&&t+1<e.length){const i=e.charCodeAt(t+1);i>=56320&&i<=57343?(r+=s(65536+(n-55296<<10)+(i-56320)),t++):r+=s(65533)}else r+=s(65533)}}return r},encodeUserinfo:$,encodeQuery:function(e){return k(e,a)},encodeFragment:function(e){return k(e,a)},escapePreservingEscapes:function(e){let r="";for(let t=0;t<e.length;t++){if("%"===e[t]&&t+2<e.length){const i=e.slice(t+1,t+3);if(n(i)){r+="%"+i.toUpperCase(),t+=2;continue}}r+=escape(e[t])}return r},removeDotSegments:function(e){let r=e;const t=[];let n=-1,i=0;for(;i=r.length;){if(1===i){if("."===r)break;if("/"===r){t.push("/");break}t.push(r);break}if(2===i){if("."===r[0]){if("."===r[1])break;if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&("."===r[1]||"/"===r[1])){t.push("/");break}}else if(3===i&&"/.."===r){0!==t.length&&t.pop(),t.push("/");break}if("."===r[0]){if("."===r[1]){if("/"===r[2]){r=r.slice(3);continue}}else if("/"===r[1]){r=r.slice(2);continue}}else if("/"===r[0]&&"."===r[1]){if("/"===r[2]){r=r.slice(2);continue}if("."===r[2]&&"/"===r[3]){r=r.slice(3),0!==t.length&&t.pop();continue}}if(-1===(n=r.indexOf("/",1))){t.push(r);break}t.push(r.slice(0,n)),r=r.slice(n)}return t.join("")},isIPv4:r,isUUID:e,normalizeIPv6:p,stringArrayToHexStripped:function(e){let r="",t=0,n=0;for(n=0;n<e.length;n++)if(t=e[n].charCodeAt(0),48!==t){if(!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n];break}for(n+=1;n<e.length;n++){if(t=e[n].charCodeAt(0),!(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102))return"";r+=e[n]}return r}},Pd}function Vd(){if(Rd)return Ud;Rd=1,Object.defineProperty(Ud,"__esModule",{value:!0});const e=function(){if(Td)return Ld.exports;Td=1;const{normalizeIPv6:e,removeDotSegments:r,recomposeAuthority:t,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:l,encodeFragment:u,reescapeHostDelimiters:s,isIPv4:c,nonSimpleDomain:f}=Bd(),{SCHEMES:d,getSchemeHandler:h}=function(){if(Nd)return qd;Nd=1;const{isUUID:e}=Bd(),r=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,t=["http","https","ws","wss","urn","urn:uuid"];function n(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function i(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function o(e){const r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const a={scheme:"http",domainHost:!0,parse:i,serialize:o},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=n(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(n(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const r=e.resourceName.indexOf("?"),t=-1===r?e.resourceName:e.resourceName.slice(0,r);e.path=t&&"/"!==t?t:void 0,e.query=-1===r?void 0:e.resourceName.slice(r+1),e.resourceName=void 0}return e.fragment=void 0,e}},u={http:a,https:{scheme:"https",domainHost:a.domainHost,parse:i,serialize:o},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(r);if(n&&n[0]===e.path){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=s(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,r){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const t=r.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=s(`${t}:${r.nid||n}`);i&&(e=i.serialize(e,r));const o=e;return o.path=`${n||r.nid}:${e.nss}`,r.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(r,t){const n=r;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&e(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const r=e;return r.nss=(e.uuid||"").toLowerCase(),r},skipNormalize:!0}};function s(e){return e&&(u[e]||u[e.toLowerCase()])||void 0}return Object.setPrototypeOf(u,null),qd={wsIsSecure:n,SCHEMES:u,isValidSchemeName:function(e){return-1!==t.indexOf(e)},getSchemeHandler:s}}(),m=/^[A-Za-z][A-Za-z0-9+.-]*$/u,p="URI scheme is malformed.";function v(e){const r=unescape(String(e));if(!m.test(r))throw new TypeError(p);return r}function y(e,t,n,i){const o={};return i||(e=x(b(e,n),n),t=x(b(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=r(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=r(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=r(t.path):(o.path=void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:t.path:"/"+t.path,o.path=r(o.path)),o.query=t.query):(o.path=e.path,o.query=void 0!==t.query?t.query:e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function b(e,i){const a={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},s=Object.assign({},i),c=[];a.scheme&&(a.scheme=v(a.scheme));const f=h(s.scheme||a.scheme);f&&f.serialize&&f.serialize(a,s);const d=!s.skipEscape&&void 0===a.scheme&&!(void 0!==a.userinfo||void 0!==a.host||void 0!==a.port);void 0!==a.path&&(a.path=s.skipEscape?n(a.path):o(a.path,d)),"suffix"!==s.reference&&a.scheme&&(a.scheme=v(a.scheme),c.push(a.scheme,":"));const m=t(a);if(void 0!==m&&("suffix"!==s.reference&&c.push("//"),c.push(m),a.path&&"/"!==a.path[0]&&c.push("/")),void 0!==a.path){let e=a.path;s.absolutePath||f&&f.absolutePath||(e=r(e)),d&&(e=o(e,!0)),void 0===m&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),c.push(e)}return void 0!==a.query&&c.push("?",l(a.query)),void 0!==a.fragment&&c.push("#",u(a.fragment)),c.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,w=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,k=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function $(e){if(void 0===e)return!1;let r=e.indexOf("%");for(;-1!==r;){if(r+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(r+1,r+3)))return!0;r=e.indexOf("%",r+3)}return!1}function S(e){return"["===e[0]&&"]"===e[e.length-1]}function E(e,r,t,n){if(!r.unicodeSupport&&(!t||!t.unicodeSupport)&&e.host&&!S(e.host)&&(r.domainHost||t&&t.domainHost)&&!1===n&&f(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(r){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+r,!0}return!1}function j(r,t){const o=Object.assign({},t),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let u=!1,f=!1,v=!1,y=!1,b=!1,j=!1,x=!1;"suffix"===o.reference&&(r=o.scheme?o.scheme+":"+r:"//"+r);const O=r.match(w);null!==O&&-1!==O[1].indexOf("\\")&&(l.error="URI authority must not contain a literal backslash.",u=!0);const A=r.match(k);if(null!==A){const e=A[1],r=e.replace(/[\t\n\r]/g,"");r.length>=2&&("//"!==r.slice(0,2)?(l.error=l.error||"URI authority must not contain a literal backslash.",u=!0):e.length!==r.length&&(l.error=l.error||"URI authority introducer must not contain whitespace.",u=!0))}const C=r.match(g);if(C){if(l.scheme=C[1],l.userinfo=C[3],l.host=C[4],l.port=parseInt(C[5],10),l.path=C[6]||"",l.query=C[7],l.fragment=C[8],void 0!==l.scheme){const e=unescape(l.scheme);m.test(e)?l.scheme=e.toLowerCase():(l.error=l.error||p,j=!0)}f=function(e){const r=e[4];return $(e[3])||void 0!==r&&!S(r)&&$(r)||$(e[6])||$(e[7])||$(e[8])}(C),f&&(l.error=l.error||"URI contains malformed percent-encoding."),isNaN(l.port)&&(l.port=C[5]);const t=function(e,r){return void 0!==r[2]&&e.path&&"/"!==e.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof e.port&&(e.port<0||e.port>65535)?"URI port is malformed.":void 0}(l,C);if(void 0!==t&&(l.error=l.error||t,u=!0),l.host)if(!1===c(l.host)){const r=S(l.host),t=-1!==l.host.indexOf("[")||-1!==l.host.indexOf("]"),n=e(l.host);x=n.isIPV6||!0===n.isIPVFuture,b=t&&(!r||!0===n.error),l.host=x?n.host:n.host.toLowerCase(),b&&(l.error=l.error||"URI host is malformed.",u=!0)}else x=!0;l.reference=void 0!==l.scheme||void 0!==l.userinfo||void 0!==l.host||void 0!==l.port||void 0!==l.query||l.path?void 0===l.scheme?"relative":void 0===l.fragment?"absolute":"uri":"same-document",o.reference&&"suffix"!==o.reference&&o.reference!==l.reference&&(l.error=l.error||"URI is not a "+o.reference+" reference.");const g=h(o.scheme||l.scheme);if(b||(y=E(l,o,g,x)),-1!==r.indexOf("%")&&void 0!==l.host&&!b){let e=x?l.host:n(l.host,!0);x||(e=n(e.toLowerCase())),l.host=s(e,x)}(!g||g&&!g.skipNormalize)&&(l.path&&(l.path=i(l.path)),l.query&&(l.query=a(l.query)),l.fragment&&(l.fragment=a(l.fragment))),g&&g.parse&&(g.parse(l,o),g===d.urn&&void 0===l.nid&&(v=!0))}else l.error=l.error||"URI can not be parsed.";return{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:v,malformedHost:y,malformedScheme:j}}function x(e,r){return j(e,r).parsed}function O(e,r){const{parsed:t,malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}=j(e,r);return{normalized:n||i||o||a||l?e:b(t,r),malformedAuthorityOrPort:n,malformedPercentEncoding:i,malformedSchemeSpecific:o,malformedHost:a,malformedScheme:l}}function A(e,r){if("string"!=typeof e&&"object"!=typeof e)return;let t;try{t="string"==typeof e?e:b(e,r)}catch{return}const{normalized:n,malformedAuthorityOrPort:i,malformedPercentEncoding:o,malformedSchemeSpecific:a,malformedHost:l,malformedScheme:u}=O(t,r);return i||o||a||l||u?void 0:n}const C={SCHEMES:d,normalize:function(e,r){return"string"==typeof e?e=function(e,r){return O(e,r).normalized}(e,r):"object"==typeof e&&(e=x(b(e,r),r)),e},resolve:function(r,t,n){const i=n?Object.assign({scheme:"null"},n):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:a,malformedPercentEncoding:l,malformedSchemeSpecific:u,malformedHost:s,malformedScheme:f}=j(r,i),{parsed:d,malformedAuthorityOrPort:m,malformedPercentEncoding:p,malformedSchemeSpecific:v,malformedHost:g,malformedScheme:w}=j(t,i);if(a||m||l||p||u||v||s||g||f||w)throw new Error(o.error||d.error||"URI is malformed.");const k=y(o,d,i,!0),$=h(n&&n.scheme||k.scheme),S=k.host;E(k,n||{},$,void 0!==S&&""!==S&&(c(S)||e(S).isIPV6));const x=S&&-1!==S.indexOf("%")&&!/\P{ASCII}/u.test(S);if(k.error&&!x)throw new Error(k.error);return i.skipEscape=!0,b(k,i)},resolveComponent:y,equal:function(e,r,t){const n=A(e,t),i=A(r,t);return void 0!==n&&void 0!==i&&n===i},serialize:b,parse:x};return Ld.exports=C,Ld.exports.default=C,Ld.exports.fastUri=C,Ld.exports}();return e.code='require("ajv/dist/runtime/uri").default',Ud.default=e,Ud}function Hd(){return Md||(Md=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var r=Sd();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var t=qf();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=xd(),i=Cd(),o=Jf(),a=Dd(),l=qf(),u=$d(),s=ed(),c=Rf(),f=zd,d=Vd(),h=(e,r)=>new RegExp(e,r);h.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],p=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var r,t,n,i,o,a,l,u,s,c,f,m,p,v,y,b,g,w,k,$,S,E,j,x,O;const A=e.strict,C=null===(r=e.code)||void 0===r?void 0:r.optimize,_=!0===C||void 0===C?1:C||0,I=null!==(n=null===(t=e.code)||void 0===t?void 0:t.regExp)&&void 0!==n?n:h,D=null!==(i=e.uriResolver)&&void 0!==i?i:d.default;return{strictSchema:null===(a=null!==(o=e.strictSchema)&&void 0!==o?o:A)||void 0===a||a,strictNumbers:null===(u=null!==(l=e.strictNumbers)&&void 0!==l?l:A)||void 0===u||u,strictTypes:null!==(c=null!==(s=e.strictTypes)&&void 0!==s?s:A)&&void 0!==c?c:"log",strictTuples:null!==(m=null!==(f=e.strictTuples)&&void 0!==f?f:A)&&void 0!==m?m:"log",strictRequired:null!==(v=null!==(p=e.strictRequired)&&void 0!==p?p:A)&&void 0!==v&&v,code:e.code?{...e.code,optimize:_,regExp:I}:{optimize:_,regExp:I},loopRequired:null!==(y=e.loopRequired)&&void 0!==y?y:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(g=e.meta)||void 0===g||g,messages:null===(w=e.messages)||void 0===w||w,inlineRefs:null===(k=e.inlineRefs)||void 0===k||k,schemaId:null!==($=e.schemaId)&&void 0!==$?$:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(E=e.validateSchema)||void 0===E||E,validateFormats:null===(j=e.validateFormats)||void 0===j||j,unicodeRegExp:null===(x=e.unicodeRegExp)||void 0===x||x,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:D}}class g{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:r,lines:t}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:p,es5:r,lines:t}),this.logger=function(e){if(!1===e)return x;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),w.call(this,v,e,"NOT SUPPORTED"),w.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=j.call(this),e.formats&&S.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&E.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),$.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:r,schemaId:t}=this.opts;let n=f;"id"===t&&(n={...f},n.id=n.$id,delete n.$id),r&&e&&this.addMetaSchema(n,n[t],!1)}defaultMeta(){const{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[r]||e:void 0}validate(e,r){let t;if("string"==typeof e){if(t=this.getSchema(e),!t)throw new Error(`no schema with key or ref "${e}"`)}else t=this.compile(e);const n=t(r);return"$async"in t||(this.errors=t.errors),n}compile(e,r){const t=this._addSchema(e,r);return t.validate||this._compileSchemaEnv(t)}compileAsync(e,r){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:t}=this.opts;return n.call(this,e,r);async function n(e,r){await o.call(this,e.$schema);const t=this._addSchema(e,r);return t.validate||a.call(this,t)}async function o(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function a(e){try{return this._compileSchemaEnv(e)}catch(r){if(!(r instanceof i.default))throw r;return l.call(this,r),await u.call(this,r.missingSchema),a.call(this,e)}}function l({missingSchema:e,missingRef:r}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${r} cannot be resolved`)}async function u(e){const t=await s.call(this,e);this.refs[e]||await o.call(this,t.$schema),this.refs[e]||this.addSchema(t,e,r)}async function s(e){const r=this._loading[e];if(r)return r;try{return await(this._loading[e]=t(e))}finally{delete this._loading[e]}}}addSchema(e,r,t,n=this.opts.validateSchema){if(Array.isArray(e)){for(const r of e)this.addSchema(r,void 0,t,n);return this}let i;if("object"==typeof e){const{schemaId:r}=this.opts;if(i=e[r],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${r} must be string`)}return r=(0,u.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(e,t,r,n,!0),this}addMetaSchema(e,r,t=this.opts.validateSchema){return this.addSchema(e,r,!0,t),this}validateSchema(e,r){if("boolean"==typeof e)return!0;let t;if(t=e.$schema,void 0!==t&&"string"!=typeof t)throw new Error("$schema must be a string");if(t=t||this.opts.defaultMeta||this.defaultMeta(),!t)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(t,e);if(!n&&r){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let r;for(;"string"==typeof(r=k.call(this,e));)e=r;if(void 0===r){const{schemaId:t}=this.opts,n=new a.SchemaEnv({schema:{},schemaId:t});if(r=a.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const r=k.call(this,e);return"object"==typeof r&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let r=e[this.opts.schemaId];return r&&(r=(0,u.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const r of e)this.addKeyword(r);return this}addKeyword(e,r){let t;if("string"==typeof e)t=e,"object"==typeof r&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=t);else{if("object"!=typeof e||void 0!==r)throw new Error("invalid addKeywords parameters");if(t=(r=e).keyword,Array.isArray(t)&&!t.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(A.call(this,t,r),!r)return(0,c.eachItem)(t,(e=>C.call(this,e))),this;I.call(this,r);const n={...r,type:(0,s.getJSONTypes)(r.type),schemaType:(0,s.getJSONTypes)(r.schemaType)};return(0,c.eachItem)(t,0===n.type.length?e=>C.call(this,e,n):e=>n.type.forEach((r=>C.call(this,e,n,r)))),this}getKeyword(e){const r=this.RULES.all[e];return"object"==typeof r?r.definition:!!r}removeKeyword(e){const{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(const t of r.rules){const r=t.rules.findIndex((r=>r.keyword===e));r>=0&&t.rules.splice(r,1)}return this}addFormat(e,r){return"string"==typeof r&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:t="data"}={}){return e&&0!==e.length?e.map((e=>`${t}${e.instancePath} ${e.message}`)).reduce(((e,t)=>e+r+t)):"No errors"}$dataMetaSchema(e,r){const t=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of r){const r=n.split("/").slice(1);let i=e;for(const e of r)i=i[e];for(const e in t){const r=t[e];if("object"!=typeof r)continue;const{$data:n}=r.definition,o=i[e];n&&o&&(i[e]=P(o))}}return e}_removeAllSchemas(e,r){for(const t in e){const n=e[t];r&&!r.test(t)||("string"==typeof n?delete e[t]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[t]))}}_addSchema(e,r,t,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:l}=this.opts;if("object"==typeof e)o=e[l];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let s=this._cache.get(e);if(void 0!==s)return s;t=(0,u.normalizeId)(o||t);const c=u.getSchemaRefs.call(this,e,t);return s=new a.SchemaEnv({schema:e,schemaId:l,meta:r,baseId:t,localRefs:c}),this._cache.set(s.schema,s),i&&!t.startsWith("#")&&(t&&this._checkUnique(t),this.refs[t]=s),n&&this.validateSchema(e,!0),s}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):a.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const r=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,e)}finally{this.opts=r}}}function w(e,r,t,n="error"){for(const i in e)i in r&&this.logger[n](`${t}: option ${i}. ${e[i]}`)}function k(e){return e=(0,u.normalizeId)(e),this.schemas[e]||this.refs[e]}function $(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const r in e)this.addSchema(e[r],r)}function S(){for(const e in this.opts.formats){const r=this.opts.formats[e];r&&this.addFormat(e,r)}}function E(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const r in e){const t=e[r];t.keyword||(t.keyword=r),this.addKeyword(t)}}}function j(){const e={...this.opts};for(const r of m)delete e[r];return e}g.ValidationError=n.default,g.MissingRefError=i.default,e.default=g;const x={log(){},warn(){},error(){}},O=/^[a-z_$][a-z0-9_$:-]*$/i;function A(e,r){const{RULES:t}=this;if((0,c.eachItem)(e,(e=>{if(t.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),r&&r.$data&&!("code"in r)&&!("validate"in r))throw new Error('$data keyword must have "code" or "validate" function')}function C(e,r,t){var n;const i=null==r?void 0:r.post;if(t&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=i?o.post:o.rules.find((({type:e})=>e===t));if(a||(a={type:t,rules:[]},o.rules.push(a)),o.keywords[e]=!0,!r)return;const l={keyword:e,definition:{...r,type:(0,s.getJSONTypes)(r.type),schemaType:(0,s.getJSONTypes)(r.schemaType)}};r.before?_.call(this,a,l,r.before):a.rules.push(l),o.all[e]=l,null===(n=r.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function _(e,r,t){const n=e.rules.findIndex((e=>e.keyword===t));n>=0?e.rules.splice(n,0,r):(e.rules.push(r),this.logger.warn(`rule ${t} is not defined`))}function I(e){let{metaSchema:r}=e;void 0!==r&&(e.$data&&this.opts.$data&&(r=P(r)),e.validateSchema=this.compile(r,!0))}const D={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function P(e){return{anyOf:[e,D]}}}(Ef)),Ef}var Wd,Gd={},Kd={},Jd={};function Zd(){return Wd||(Wd=1,Object.defineProperty(Jd,"__esModule",{value:!0}),Jd.default={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}),Jd}var Yd,Xd,Qd={};function eh(){if(Yd)return Qd;Yd=1,Object.defineProperty(Qd,"__esModule",{value:!0}),Qd.callRef=Qd.getValidate=void 0;const e=Cd(),r=ud(),t=qf(),n=Bf(),i=Dd(),o=Rf(),a={keyword:"$ref",schemaType:"string",code(r){const{gen:n,schema:o,it:a}=r,{baseId:s,schemaEnv:c,validateName:f,opts:d,self:h}=a,{root:m}=c;if(("#"===o||"#/"===o)&&s===m.baseId)return function(){if(c===m)return u(r,f,c,c.$async);const e=n.scopeValue("root",{ref:m});return u(r,t._`${e}.validate`,m,m.$async)}();const p=i.resolveRef.call(h,m,s,o);if(void 0===p)throw new e.default(a.opts.uriResolver,s,o);return p instanceof i.SchemaEnv?function(e){const t=l(r,e);u(r,t,e,e.$async)}(p):function(e){const i=n.scopeValue("schema",!0===d.code.source?{ref:e,code:(0,t.stringify)(e)}:{ref:e}),a=n.name("valid"),l=r.subschema({schema:e,dataTypes:[],schemaPath:t.nil,topSchemaRef:i,errSchemaPath:o},a);r.mergeEvaluated(l),r.ok(a)}(p)}};function l(e,r){const{gen:n}=e;return r.validate?n.scopeValue("validate",{ref:r.validate}):t._`${n.scopeValue("wrapper",{ref:r})}.validate`}function u(e,i,a,l){const{gen:u,it:s}=e,{allErrors:c,schemaEnv:f,opts:d}=s,h=d.passContext?n.default.this:t.nil;function m(e){const r=t._`${e}.errors`;u.assign(n.default.vErrors,t._`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`),u.assign(n.default.errors,t._`${n.default.vErrors}.length`)}function p(e){var r;if(!s.opts.unevaluated)return;const n=null===(r=null==a?void 0:a.validate)||void 0===r?void 0:r.evaluated;if(!0!==s.props)if(n&&!n.dynamicProps)void 0!==n.props&&(s.props=o.mergeEvaluated.props(u,n.props,s.props));else{const r=u.var("props",t._`${e}.evaluated.props`);s.props=o.mergeEvaluated.props(u,r,s.props,t.Name)}if(!0!==s.items)if(n&&!n.dynamicItems)void 0!==n.items&&(s.items=o.mergeEvaluated.items(u,n.items,s.items));else{const r=u.var("items",t._`${e}.evaluated.items`);s.items=o.mergeEvaluated.items(u,r,s.items,t.Name)}}l?function(){if(!f.$async)throw new Error("async schema referenced by sync schema");const n=u.let("valid");u.try((()=>{u.code(t._`await ${(0,r.callValidateCode)(e,i,h)}`),p(i),c||u.assign(n,!0)}),(e=>{u.if(t._`!(${e} instanceof ${s.ValidationError})`,(()=>u.throw(e))),m(e),c||u.assign(n,!1)})),e.ok(n)}():e.result((0,r.callValidateCode)(e,i,h),(()=>p(i)),(()=>m(i)))}return Qd.getValidate=l,Qd.callRef=u,Qd.default=a,Qd}function rh(){return Xd||(Xd=1,Object.defineProperty(Kd,"__esModule",{value:!0}),Kd.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Zd().default,eh().default]),Kd}var th,nh={},ih={};function oh(){if(th)return ih;th=1,Object.defineProperty(ih,"__esModule",{value:!0});const e=qf(),r=e.operators,t={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},n={message:({keyword:r,schemaCode:n})=>e.str`must be ${t[r].okStr} ${n}`,params:({keyword:r,schemaCode:n})=>e._`{comparison: ${t[r].okStr}, limit: ${n}}`},i={keyword:Object.keys(t),type:"number",schemaType:"number",$data:!0,error:n,code(r){const{keyword:n,data:i,schemaCode:o}=r;r.fail$data(e._`${i} ${t[n].fail} ${o} || isNaN(${i})`)}};return ih.default=i,ih}var ah,lh={};function uh(){if(ah)return lh;ah=1,Object.defineProperty(lh,"__esModule",{value:!0});const e=qf();return lh.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>e.str`must be multiple of ${r}`,params:({schemaCode:r})=>e._`{multipleOf: ${r}}`},code(r){const{gen:t,data:n,schemaCode:i,it:o}=r,a=o.opts.multipleOfPrecision,l=t.let("res"),u=a?e._`Math.abs(Math.round(${l}) - ${l}) > 1e-${a}`:e._`${l} !== parseInt(${l})`;r.fail$data(e._`(${i} === 0 || (${l} = ${n}/${i}, ${u}))`)}},lh}var sh,ch,fh={},dh={};function hh(){if(sh)return dh;function e(e){const r=e.length;let t,n=0,i=0;for(;i<r;)n++,t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<r&&(t=e.charCodeAt(i),56320==(64512&t)&&i++);return n}return sh=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',dh}function mh(){if(ch)return fh;ch=1,Object.defineProperty(fh,"__esModule",{value:!0});const e=qf(),r=Rf(),t=hh(),n={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxLength"===r?"more":"fewer"} than ${t} characters`,params:({schemaCode:r})=>e._`{limit: ${r}}`},i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:n,code(n){const{keyword:i,data:o,schemaCode:a,it:l}=n,u="maxLength"===i?e.operators.GT:e.operators.LT,s=!1===l.opts.unicode?e._`${o}.length`:e._`${(0,r.useFunc)(n.gen,t.default)}(${o})`;n.fail$data(e._`${s} ${u} ${a}`)}};return fh.default=i,fh}var ph,vh={};function yh(){if(ph)return vh;ph=1,Object.defineProperty(vh,"__esModule",{value:!0});const e=ud(),r=Rf(),t=qf(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>t.str`must match pattern "${e}"`,params:({schemaCode:e})=>t._`{pattern: ${e}}`},code(n){const{gen:i,data:o,$data:a,schema:l,schemaCode:u,it:s}=n,c=s.opts.unicodeRegExp?"u":"";if(a){const{regExp:e}=s.opts.code,a="new RegExp"===e.code?t._`new RegExp`:(0,r.useFunc)(i,e),l=i.let("valid");i.try((()=>i.assign(l,t._`${a}(${u}, ${c}).test(${o})`)),(()=>i.assign(l,!1))),n.fail$data(t._`!${l}`)}else{const r=(0,e.usePattern)(n,l);n.fail$data(t._`!${r}.test(${o})`)}}};return vh.default=n,vh}var bh,gh={};function wh(){if(bh)return gh;bh=1,Object.defineProperty(gh,"__esModule",{value:!0});const e=qf(),r={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxProperties"===r?"more":"fewer"} than ${t} properties`,params:({schemaCode:r})=>e._`{limit: ${r}}`},t={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:r,code(r){const{keyword:t,data:n,schemaCode:i}=r;r.fail$data(e._`Object.keys(${n}).length ${"maxProperties"===t?e.operators.GT:e.operators.LT} ${i}`)}};return gh.default=t,gh}var kh,$h={};function Sh(){if(kh)return $h;kh=1,Object.defineProperty($h,"__esModule",{value:!0});const e=ud(),r=qf(),t=Rf();return $h.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>r.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>r._`{missingProperty: ${e}}`},code(n){const{gen:i,schema:o,schemaCode:a,data:l,$data:u,it:s}=n,{opts:c}=s;if(!u&&0===o.length)return;const f=o.length>=c.loopRequired;if(s.allErrors?function(){if(f||u)n.block$data(r.nil,d);else for(const r of o)(0,e.checkReportMissingProp)(n,r)}():function(){const t=i.let("missing");if(f||u){const o=i.let("valid",!0);n.block$data(o,(()=>function(t,o){n.setParams({missingProperty:t}),i.forOf(t,a,(()=>{i.assign(o,(0,e.propertyInData)(i,l,t,c.ownProperties)),i.if((0,r.not)(o),(()=>{n.error(),i.break()}))}),r.nil)}(t,o))),n.ok(o)}else i.if((0,e.checkMissingProp)(n,o,t)),(0,e.reportMissingProp)(n,t),i.else()}(),c.strictRequired){const e=n.parentSchema.properties,{definedProperties:r}=n.it;for(const n of o)void 0!==(null==e?void 0:e[n])||r.has(n)||(0,t.checkStrictMode)(s,`required property "${n}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`,s.opts.strictRequired)}function d(){i.forOf("prop",a,(r=>{n.setParams({missingProperty:r}),i.if((0,e.noPropertyInData)(i,l,r,c.ownProperties),(()=>n.error()))}))}}},$h}var Eh,jh={};function xh(){if(Eh)return jh;Eh=1,Object.defineProperty(jh,"__esModule",{value:!0});const e=qf(),r={message:({keyword:r,schemaCode:t})=>e.str`must NOT have ${"maxItems"===r?"more":"fewer"} than ${t} items`,params:({schemaCode:r})=>e._`{limit: ${r}}`},t={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:r,code(r){const{keyword:t,data:n,schemaCode:i}=r;r.fail$data(e._`${n}.length ${"maxItems"===t?e.operators.GT:e.operators.LT} ${i}`)}};return jh.default=t,jh}var Oh,Ah,Ch={},_h={};function Ih(){if(Oh)return _h;Oh=1,Object.defineProperty(_h,"__esModule",{value:!0});const e=vd();return e.code='require("ajv/dist/runtime/equal").default',_h.default=e,_h}function Dh(){if(Ah)return Ch;Ah=1,Object.defineProperty(Ch,"__esModule",{value:!0});const e=ed(),r=qf(),t=Rf(),n=Ih();return Ch.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>r.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>r._`{i: ${e}, j: ${t}}`},code(i){const{gen:o,data:a,$data:l,schema:u,parentSchema:s,schemaCode:c,it:f}=i;if(!l&&!u)return;const d=o.let("valid"),h=s.items?(0,e.getSchemaTypes)(s.items):[];function m(t,n){const l=o.name("item"),u=(0,e.checkDataTypes)(h,l,f.opts.strictNumbers,e.DataType.Wrong),s=o.const("indices",r._`{}`);o.for(r._`;${t}--;`,(()=>{o.let(l,r._`${a}[${t}]`),o.if(u,r._`continue`),h.length>1&&o.if(r._`typeof ${l} == "string"`,r._`${l} += "_"`),o.if(r._`typeof ${s}[${l}] == "number"`,(()=>{o.assign(n,r._`${s}[${l}]`),i.error(),o.assign(d,!1).break()})).code(r._`${s}[${l}] = ${t}`)}))}function p(e,l){const u=(0,t.useFunc)(o,n.default),s=o.name("outer");o.label(s).for(r._`;${e}--;`,(()=>o.for(r._`${l} = ${e}; ${l}--;`,(()=>o.if(r._`${u}(${a}[${e}], ${a}[${l}])`,(()=>{i.error(),o.assign(d,!1).break(s)}))))))}i.block$data(d,(function(){const e=o.let("i",r._`${a}.length`),t=o.let("j");i.setParams({i:e,j:t}),o.assign(d,!0),o.if(r._`${e} > 1`,(()=>(h.length>0&&!h.some((e=>"object"===e||"array"===e))?m:p)(e,t)))}),r._`${c} === false`),i.ok(d)}},Ch}var Ph,Fh={};function qh(){if(Ph)return Fh;Ph=1,Object.defineProperty(Fh,"__esModule",{value:!0});const e=qf(),r=Rf(),t=Ih();return Fh.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>e._`{allowedValue: ${r}}`},code(n){const{gen:i,data:o,$data:a,schemaCode:l,schema:u}=n;a||u&&"object"==typeof u?n.fail$data(e._`!${(0,r.useFunc)(i,t.default)}(${o}, ${l})`):n.fail(e._`${u} !== ${o}`)}},Fh}var Nh,Th,Rh={};function Mh(){if(Nh)return Rh;Nh=1,Object.defineProperty(Rh,"__esModule",{value:!0});const e=qf(),r=Rf(),t=Ih();return Rh.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>e._`{allowedValues: ${r}}`},code(n){const{gen:i,data:o,$data:a,schema:l,schemaCode:u,it:s}=n;if(!a&&0===l.length)throw new Error("enum must have non-empty array");let c;const f=()=>null!=c?c:c=(0,r.useFunc)(i,t.default);let d;if(l.length>=s.opts.loopEnum||a)d=i.let("valid"),n.block$data(d,(function(){i.assign(d,!1),i.forOf("v",u,(r=>i.if(e._`${f()}(${o}, ${r})`,(()=>i.assign(d,!0).break()))))}));else{if(!Array.isArray(l))throw new Error("ajv implementation error");const r=i.const("vSchema",u);d=(0,e.or)(...l.map(((t,n)=>function(r,t){const n=l[t];return"object"==typeof n&&null!==n?e._`${f()}(${o}, ${r}[${t}])`:e._`${o} === ${n}`}(r,n))))}n.pass(d)}},Rh}function zh(){return Th||(Th=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.default=[oh().default,uh().default,mh().default,yh().default,wh().default,Sh().default,xh().default,Dh().default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qh().default,Mh().default]),nh}var Uh,Lh={},Bh={};function Vh(){if(Uh)return Bh;Uh=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.validateAdditionalItems=void 0;const e=qf(),r=Rf(),t={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>e.str`must NOT have more than ${r} items`,params:({params:{len:r}})=>e._`{limit: ${r}}`},code(e){const{parentSchema:t,it:i}=e,{items:o}=t;Array.isArray(o)?n(e,o):(0,r.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas')}};function n(t,n){const{gen:i,schema:o,data:a,keyword:l,it:u}=t;u.items=!0;const s=i.const("len",e._`${a}.length`);if(!1===o)t.setParams({len:n.length}),t.pass(e._`${s} <= ${n.length}`);else if("object"==typeof o&&!(0,r.alwaysValidSchema)(u,o)){const o=i.var("valid",e._`${s} <= ${n.length}`);i.if((0,e.not)(o),(()=>function(o){i.forRange("i",n.length,s,(n=>{t.subschema({keyword:l,dataProp:n,dataPropType:r.Type.Num},o),u.allErrors||i.if((0,e.not)(o),(()=>i.break()))}))}(o))),t.ok(o)}}return Bh.validateAdditionalItems=n,Bh.default=t,Bh}var Hh,Wh,Gh={},Kh={};function Jh(){if(Hh)return Kh;Hh=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.validateTuple=void 0;const e=qf(),r=Rf(),t=ud(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:n,it:o}=e;if(Array.isArray(n))return i(e,"additionalItems",n);o.items=!0,(0,r.alwaysValidSchema)(o,n)||e.ok((0,t.validateArray)(e))}};function i(t,n,i=t.schema){const{gen:o,parentSchema:a,data:l,keyword:u,it:s}=t;!function(e){const{opts:t,errSchemaPath:o}=s,a=i.length;t.strictTuples&&!(a===e.minItems&&(a===e.maxItems||!1===e[n]))&&(0,r.checkStrictMode)(s,`"${u}" is ${a}-tuple, but minItems or maxItems/${n} are not specified or different at path "${o}"`,t.strictTuples)}(a),s.opts.unevaluated&&i.length&&!0!==s.items&&(s.items=r.mergeEvaluated.items(o,i.length,s.items));const c=o.name("valid"),f=o.const("len",e._`${l}.length`);i.forEach(((n,i)=>{(0,r.alwaysValidSchema)(s,n)||(o.if(e._`${f} > ${i}`,(()=>t.subschema({keyword:u,schemaProp:i,dataProp:i},c))),t.ok(c))}))}return Kh.validateTuple=i,Kh.default=n,Kh}function Zh(){if(Wh)return Gh;Wh=1,Object.defineProperty(Gh,"__esModule",{value:!0});const e=Jh();return Gh.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")},Gh}var Yh,Xh={};function Qh(){if(Yh)return Xh;Yh=1,Object.defineProperty(Xh,"__esModule",{value:!0});const e=qf(),r=Rf(),t=ud(),n=Vh(),i={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:r}})=>e.str`must NOT have more than ${r} items`,params:({params:{len:r}})=>e._`{limit: ${r}}`},code(e){const{schema:i,parentSchema:o,it:a}=e,{prefixItems:l}=o;a.items=!0,(0,r.alwaysValidSchema)(a,i)||(l?(0,n.validateAdditionalItems)(e,l):e.ok((0,t.validateArray)(e)))}};return Xh.default=i,Xh}var em,rm={};function tm(){if(em)return rm;em=1,Object.defineProperty(rm,"__esModule",{value:!0});const e=qf(),r=Rf();return rm.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:r,max:t}})=>void 0===t?e.str`must contain at least ${r} valid item(s)`:e.str`must contain at least ${r} and no more than ${t} valid item(s)`,params:({params:{min:r,max:t}})=>void 0===t?e._`{minContains: ${r}}`:e._`{minContains: ${r}, maxContains: ${t}}`},code(t){const{gen:n,schema:i,parentSchema:o,data:a,it:l}=t;let u,s;const{minContains:c,maxContains:f}=o;l.opts.next?(u=void 0===c?1:c,s=f):u=1;const d=n.const("len",e._`${a}.length`);if(t.setParams({min:u,max:s}),void 0===s&&0===u)return void(0,r.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==s&&u>s)return(0,r.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),void t.fail();if((0,r.alwaysValidSchema)(l,i)){let r=e._`${d} >= ${u}`;return void 0!==s&&(r=e._`${r} && ${d} <= ${s}`),void t.pass(r)}l.items=!0;const h=n.name("valid");function m(){const r=n.name("_valid"),t=n.let("count",0);p(r,(()=>n.if(r,(()=>function(r){n.code(e._`${r}++`),void 0===s?n.if(e._`${r} >= ${u}`,(()=>n.assign(h,!0).break())):(n.if(e._`${r} > ${s}`,(()=>n.assign(h,!1).break())),1===u?n.assign(h,!0):n.if(e._`${r} >= ${u}`,(()=>n.assign(h,!0))))}(t)))))}function p(e,i){n.forRange("i",0,d,(n=>{t.subschema({keyword:"contains",dataProp:n,dataPropType:r.Type.Num,compositeRule:!0},e),i()}))}void 0===s&&1===u?p(h,(()=>n.if(h,(()=>n.break())))):0===u?(n.let(h,!0),void 0!==s&&n.if(e._`${a}.length > 0`,m)):(n.let(h,!1),m()),t.result(h,(()=>t.reset()))}},rm}var nm,im={};function om(){return nm||(nm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const r=qf(),t=Rf(),n=ud();e.error={message:({params:{property:e,depsCount:t,deps:n}})=>r.str`must have ${1===t?"property":"properties"} ${n} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
|
|
14
|
+
missingProperty: ${i},
|
|
15
|
+
depsCount: ${t},
|
|
16
|
+
deps: ${n}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[r,t]=function({schema:e}){const r={},t={};for(const n in e)"__proto__"!==n&&((Array.isArray(e[n])?r:t)[n]=e[n]);return[r,t]}(e);o(e,r),a(e,t)}};function o(e,t=e.schema){const{gen:i,data:o,it:a}=e;if(0===Object.keys(t).length)return;const l=i.let("missing");for(const u in t){const s=t[u];if(0===s.length)continue;const c=(0,n.propertyInData)(i,o,u,a.opts.ownProperties);e.setParams({property:u,depsCount:s.length,deps:s.join(", ")}),a.allErrors?i.if(c,(()=>{for(const r of s)(0,n.checkReportMissingProp)(e,r)})):(i.if(r._`${c} && (${(0,n.checkMissingProp)(e,s,l)})`),(0,n.reportMissingProp)(e,l),i.else())}}function a(e,r=e.schema){const{gen:i,data:o,keyword:a,it:l}=e,u=i.name("valid");for(const s in r)(0,t.alwaysValidSchema)(l,r[s])||(i.if((0,n.propertyInData)(i,o,s,l.opts.ownProperties),(()=>{const r=e.subschema({keyword:a,schemaProp:s},u);e.mergeValidEvaluated(r,u)}),(()=>i.var(u,!0))),e.ok(u))}e.validatePropertyDeps=o,e.validateSchemaDeps=a,e.default=i}(im)),im}var am,lm={};function um(){if(am)return lm;am=1,Object.defineProperty(lm,"__esModule",{value:!0});const e=qf(),r=Rf();return lm.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:r})=>e._`{propertyName: ${r.propertyName}}`},code(t){const{gen:n,schema:i,data:o,it:a}=t;if((0,r.alwaysValidSchema)(a,i))return;const l=n.name("valid");n.forIn("key",o,(r=>{t.setParams({propertyName:r}),t.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},l),n.if((0,e.not)(l),(()=>{t.error(!0),a.allErrors||n.break()}))})),t.ok(l)}},lm}var sm,cm={};function fm(){if(sm)return cm;sm=1,Object.defineProperty(cm,"__esModule",{value:!0});const e=ud(),r=qf(),t=Bf(),n=Rf(),i={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>r._`{additionalProperty: ${e.additionalProperty}}`},code(i){const{gen:o,schema:a,parentSchema:l,data:u,errsCount:s,it:c}=i;if(!s)throw new Error("ajv implementation error");const{allErrors:f,opts:d}=c;if(c.props=!0,"all"!==d.removeAdditional&&(0,n.alwaysValidSchema)(c,a))return;const h=(0,e.allSchemaProperties)(l.properties),m=(0,e.allSchemaProperties)(l.patternProperties);function p(e){o.code(r._`delete ${u}[${e}]`)}function v(e){if("all"===d.removeAdditional||d.removeAdditional&&!1===a)p(e);else{if(!1===a)return i.setParams({additionalProperty:e}),i.error(),void(f||o.break());if("object"==typeof a&&!(0,n.alwaysValidSchema)(c,a)){const t=o.name("valid");"failing"===d.removeAdditional?(y(e,t,!1),o.if((0,r.not)(t),(()=>{i.reset(),p(e)}))):(y(e,t),f||o.if((0,r.not)(t),(()=>o.break())))}}}function y(e,r,t){const o={keyword:"additionalProperties",dataProp:e,dataPropType:n.Type.Str};!1===t&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(o,r)}o.forIn("key",u,(t=>{h.length||m.length?o.if(function(t){let a;if(h.length>8){const r=(0,n.schemaRefOrVal)(c,l.properties,"properties");a=(0,e.isOwnProperty)(o,r,t)}else a=h.length?(0,r.or)(...h.map((e=>r._`${t} === ${e}`))):r.nil;return m.length&&(a=(0,r.or)(a,...m.map((n=>r._`${(0,e.usePattern)(i,n)}.test(${t})`)))),(0,r.not)(a)}(t),(()=>v(t))):v(t)})),i.ok(r._`${s} === ${t.default.errors}`)}};return cm.default=i,cm}var dm,hm={};function mm(){if(dm)return hm;dm=1,Object.defineProperty(hm,"__esModule",{value:!0});const e=Sd(),r=ud(),t=Rf(),n=fm(),i={keyword:"properties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,parentSchema:l,data:u,it:s}=i;"all"===s.opts.removeAdditional&&void 0===l.additionalProperties&&n.default.code(new e.KeywordCxt(s,n.default,"additionalProperties"));const c=(0,r.allSchemaProperties)(a);for(const e of c)s.definedProperties.add(e);s.opts.unevaluated&&c.length&&!0!==s.props&&(s.props=t.mergeEvaluated.props(o,(0,t.toHash)(c),s.props));const f=c.filter((e=>!(0,t.alwaysValidSchema)(s,a[e])));if(0===f.length)return;const d=o.name("valid");for(const e of f)h(e)?m(e):(o.if((0,r.propertyInData)(o,u,e,s.opts.ownProperties)),m(e),s.allErrors||o.else().var(d,!0),o.endIf()),i.it.definedProperties.add(e),i.ok(d);function h(e){return s.opts.useDefaults&&!s.compositeRule&&void 0!==a[e].default}function m(e){i.subschema({keyword:"properties",schemaProp:e,dataProp:e},d)}}};return hm.default=i,hm}var pm,vm={};function ym(){if(pm)return vm;pm=1,Object.defineProperty(vm,"__esModule",{value:!0});const e=ud(),r=qf(),t=Rf(),n=Rf(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(i){const{gen:o,schema:a,data:l,parentSchema:u,it:s}=i,{opts:c}=s,f=(0,e.allSchemaProperties)(a),d=f.filter((e=>(0,t.alwaysValidSchema)(s,a[e])));if(0===f.length||d.length===f.length&&(!s.opts.unevaluated||!0===s.props))return;const h=c.strictSchema&&!c.allowMatchingProperties&&u.properties,m=o.name("valid");!0===s.props||s.props instanceof r.Name||(s.props=(0,n.evaluatedPropsToName)(o,s.props));const{props:p}=s;function v(e){for(const r in h)new RegExp(e).test(r)&&(0,t.checkStrictMode)(s,`property ${r} matches pattern ${e} (use allowMatchingProperties)`)}function y(t){o.forIn("key",l,(a=>{o.if(r._`${(0,e.usePattern)(i,t)}.test(${a})`,(()=>{const e=d.includes(t);e||i.subschema({keyword:"patternProperties",schemaProp:t,dataProp:a,dataPropType:n.Type.Str},m),s.opts.unevaluated&&!0!==p?o.assign(r._`${p}[${a}]`,!0):e||s.allErrors||o.if((0,r.not)(m),(()=>o.break()))}))}))}!function(){for(const e of f)h&&v(e),s.allErrors?y(e):(o.var(m,!0),y(e),o.if(m))}()}};return vm.default=i,vm}var bm,gm={};function wm(){if(bm)return gm;bm=1,Object.defineProperty(gm,"__esModule",{value:!0});const e=Rf();return gm.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:t,schema:n,it:i}=r;if((0,e.alwaysValidSchema)(i,n))return void r.fail();const o=t.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,(()=>r.reset()),(()=>r.error()))},error:{message:"must NOT be valid"}},gm}var km,$m={};function Sm(){return km||(km=1,Object.defineProperty($m,"__esModule",{value:!0}),$m.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ud().validateUnion,error:{message:"must match a schema in anyOf"}}),$m}var Em,jm={};function xm(){if(Em)return jm;Em=1,Object.defineProperty(jm,"__esModule",{value:!0});const e=qf(),r=Rf();return jm.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:r})=>e._`{passingSchemas: ${r.passing}}`},code(t){const{gen:n,schema:i,parentSchema:o,it:a}=t;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const l=i,u=n.let("valid",!1),s=n.let("passing",null),c=n.name("_valid");t.setParams({passing:s}),n.block((function(){l.forEach(((i,o)=>{let l;(0,r.alwaysValidSchema)(a,i)?n.var(c,!0):l=t.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},c),o>0&&n.if(e._`${c} && ${u}`).assign(u,!1).assign(s,e._`[${s}, ${o}]`).else(),n.if(c,(()=>{n.assign(u,!0),n.assign(s,o),l&&t.mergeEvaluated(l,e.Name)}))}))})),t.result(u,(()=>t.reset()),(()=>t.error(!0)))}},jm}var Om,Am={};function Cm(){if(Om)return Am;Om=1,Object.defineProperty(Am,"__esModule",{value:!0});const e=Rf();return Am.default={keyword:"allOf",schemaType:"array",code(r){const{gen:t,schema:n,it:i}=r;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach(((t,n)=>{if((0,e.alwaysValidSchema)(i,t))return;const a=r.subschema({keyword:"allOf",schemaProp:n},o);r.ok(o),r.mergeEvaluated(a)}))}},Am}var _m,Im={};function Dm(){if(_m)return Im;_m=1,Object.defineProperty(Im,"__esModule",{value:!0});const e=qf(),r=Rf(),t={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>e.str`must match "${r.ifClause}" schema`,params:({params:r})=>e._`{failingKeyword: ${r.ifClause}}`},code(t){const{gen:i,parentSchema:o,it:a}=t;void 0===o.then&&void 0===o.else&&(0,r.checkStrictMode)(a,'"if" without "then" and "else" is ignored');const l=n(a,"then"),u=n(a,"else");if(!l&&!u)return;const s=i.let("valid",!0),c=i.name("_valid");if(function(){const e=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(e)}(),t.reset(),l&&u){const e=i.let("ifClause");t.setParams({ifClause:e}),i.if(c,f("then",e),f("else",e))}else l?i.if(c,f("then")):i.if((0,e.not)(c),f("else"));function f(r,n){return()=>{const o=t.subschema({keyword:r},c);i.assign(s,c),t.mergeValidEvaluated(o,s),n?i.assign(n,e._`${r}`):t.setParams({ifClause:r})}}t.pass(s,(()=>t.error(!0)))}};function n(e,t){const n=e.schema[t];return void 0!==n&&!(0,r.alwaysValidSchema)(e,n)}return Im.default=t,Im}var Pm,Fm,qm={};function Nm(){if(Pm)return qm;Pm=1,Object.defineProperty(qm,"__esModule",{value:!0});const e=Rf(),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:t,it:n}){void 0===t.if&&(0,e.checkStrictMode)(n,`"${r}" without "if" is ignored`)}};return qm.default=r,qm}function Tm(){if(Fm)return Lh;Fm=1,Object.defineProperty(Lh,"__esModule",{value:!0});const e=Vh(),r=Zh(),t=Jh(),n=Qh(),i=tm(),o=om(),a=um(),l=fm(),u=mm(),s=ym(),c=wm(),f=Sm(),d=xm(),h=Cm(),m=Dm(),p=Nm();return Lh.default=function(v=!1){const y=[c.default,f.default,d.default,h.default,m.default,p.default,a.default,l.default,o.default,u.default,s.default];return v?y.push(r.default,n.default):y.push(e.default,t.default),y.push(i.default),y},Lh}var Rm,Mm,zm={},Um={};function Lm(){if(Rm)return Um;Rm=1,Object.defineProperty(Um,"__esModule",{value:!0});const e=qf(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>e.str`must match format "${r}"`,params:({schemaCode:r})=>e._`{format: ${r}}`},code(r,t){const{gen:n,data:i,$data:o,schema:a,schemaCode:l,it:u}=r,{opts:s,errSchemaPath:c,schemaEnv:f,self:d}=u;s.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:d.formats,code:s.code.formats}),a=n.const("fDef",e._`${o}[${l}]`),u=n.let("fType"),c=n.let("format");n.if(e._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>n.assign(u,e._`${a}.type || "string"`).assign(c,e._`${a}.validate`)),(()=>n.assign(u,e._`"string"`).assign(c,a))),r.fail$data((0,e.or)(!1===s.strictSchema?e.nil:e._`${l} && !${c}`,function(){const r=f.$async?e._`(${a}.async ? await ${c}(${i}) : ${c}(${i}))`:e._`${c}(${i})`,n=e._`(typeof ${c} == "function" ? ${r} : ${c}.test(${i}))`;return e._`${c} && ${c} !== true && ${u} === ${t} && !${n}`}()))}():function(){const o=d.formats[a];if(!o)return void function(){if(!1!==s.strictSchema)throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${c}"`}d.logger.warn(e())}();if(!0===o)return;const[l,u,h]=function(r){const t=r instanceof RegExp?(0,e.regexpCode)(r):s.code.formats?e._`${s.code.formats}${(0,e.getProperty)(a)}`:void 0,i=n.scopeValue("formats",{key:a,ref:r,code:t});return"object"!=typeof r||r instanceof RegExp?["string",r,i]:[r.type||"string",r.validate,e._`${i}.validate`]}(o);l===t&&r.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!f.$async)throw new Error("async format in sync schema");return e._`await ${h}(${i})`}return"function"==typeof u?e._`${h}(${i})`:e._`${h}.test(${i})`}())}())}};return Um.default=r,Um}function Bm(){return Mm||(Mm=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.default=[Lm().default]),zm}var Vm,Hm,Wm={};function Gm(){return Vm||(Vm=1,Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.contentVocabulary=Wm.metadataVocabulary=void 0,Wm.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Wm.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Wm}function Km(){if(Hm)return Gd;Hm=1,Object.defineProperty(Gd,"__esModule",{value:!0});const e=rh(),r=zh(),t=Tm(),n=Bm(),i=Gm(),o=[e.default,r.default,(0,t.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Gd.default=o,Gd}var Jm,Zm,Ym={},Xm={};function Qm(){return Jm||(Jm=1,Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(e||(Xm.DiscrError=e={}))),Xm;var e}function ep(){if(Zm)return Ym;Zm=1,Object.defineProperty(Ym,"__esModule",{value:!0});const e=qf(),r=Qm(),t=Dd(),n=Cd(),i=Rf(),o={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===r.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:r,tag:t,tagName:n}})=>e._`{error: ${r}, tag: ${n}, tagValue: ${t}}`},code(o){const{gen:a,data:l,schema:u,parentSchema:s,it:c}=o,{oneOf:f}=s;if(!c.opts.discriminator)throw new Error("discriminator: requires discriminator option");const d=u.propertyName;if("string"!=typeof d)throw new Error("discriminator: requires propertyName");if(u.mapping)throw new Error("discriminator: mapping is not supported");if(!f)throw new Error("discriminator: requires oneOf keyword");const h=a.let("valid",!1),m=a.const("tag",e._`${l}${(0,e.getProperty)(d)}`);function p(r){const t=a.name("valid"),n=o.subschema({keyword:"oneOf",schemaProp:r},t);return o.mergeEvaluated(n,e.Name),t}a.if(e._`typeof ${m} == "string"`,(()=>function(){const l=function(){var e;const r={},o=l(s);let a=!0;for(let r=0;r<f.length;r++){let s=f[r];if((null==s?void 0:s.$ref)&&!(0,i.schemaHasRulesButRef)(s,c.self.RULES)){const e=s.$ref;if(s=t.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e),s instanceof t.SchemaEnv&&(s=s.schema),void 0===s)throw new n.default(c.opts.uriResolver,c.baseId,e)}const h=null===(e=null==s?void 0:s.properties)||void 0===e?void 0:e[d];if("object"!=typeof h)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${d}"`);a=a&&(o||l(s)),u(h,r)}if(!a)throw new Error(`discriminator: "${d}" must be required`);return r;function l({required:e}){return Array.isArray(e)&&e.includes(d)}function u(e,r){if(e.const)h(e.const,r);else{if(!e.enum)throw new Error(`discriminator: "properties/${d}" must have "const" or "enum"`);for(const t of e.enum)h(t,r)}}function h(e,t){if("string"!=typeof e||e in r)throw new Error(`discriminator: "${d}" values must be unique strings`);r[e]=t}}();a.if(!1);for(const r in l)a.elseIf(e._`${m} === ${r}`),a.assign(h,p(l[r]));a.else(),o.error(!1,{discrError:r.DiscrError.Mapping,tag:m,tagName:d}),a.endIf()}()),(()=>o.error(!1,{discrError:r.DiscrError.Tag,tag:m,tagName:d}))),o.ok(h)}};return Ym.default=o,Ym}var rp,tp={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};function np(){return rp||(rp=1,function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MissingRefError=r.ValidationError=r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=r.Ajv=void 0;const t=Hd(),n=Km(),i=ep(),o=tp,a=["/properties"],l="http://json-schema.org/draft-07/schema";class u extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.Ajv=u,e.exports=r=u,e.exports.Ajv=u,Object.defineProperty(r,"__esModule",{value:!0}),r.default=u;var s=Sd();Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return s.KeywordCxt}});var c=qf();Object.defineProperty(r,"_",{enumerable:!0,get:function(){return c._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return c.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return c.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return c.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return c.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return c.CodeGen}});var f=xd();Object.defineProperty(r,"ValidationError",{enumerable:!0,get:function(){return f.default}});var d=Cd();Object.defineProperty(r,"MissingRefError",{enumerable:!0,get:function(){return d.default}})}(Sf,Sf.exports)),Sf.exports}var ip,op,ap,lp=i(np()),up={exports:{}},sp={},cp={},fp=(ap||(ap=1,function(e,r){Object.defineProperty(r,"__esModule",{value:!0});const t=(ip||(ip=1,function(e){function r(e,r){return{validate:e,compare:r}}Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0,e.fullFormats={date:r(i,o),time:r(l,u),"date-time":r((function(e){const r=e.split(s);return 2===r.length&&i(r[0])&&l(r[1],!0)}),c),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return f.test(e)&&d.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(y.test(e))return!1;try{return!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return h.lastIndex=0,h.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=p&&e>=m}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:v},double:{type:"number",validate:v},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,c),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);const t=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const r=t.exec(e);if(!r)return!1;const i=+r[2],o=+r[3];return i>=1&&i<=12&&o>=1&&o<=(2!==i||(a=+r[1])%4!=0||a%100==0&&a%400!=0?n[i]:29);var a}function o(e,r){if(e&&r)return e>r?1:e<r?-1:0}const a=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function l(e,r){const t=a.exec(e);if(!t)return!1;const n=+t[1],i=+t[2],o=+t[3];return(n<=23&&i<=59&&o<=59||23===n&&59===i&&60===o)&&(!r||""!==t[5])}function u(e,r){if(!e||!r)return;const t=a.exec(e),n=a.exec(r);return t&&n?(e=t[1]+t[2]+t[3]+(t[4]||""))>(r=n[1]+n[2]+n[3]+(n[4]||""))?1:e<r?-1:0:void 0}const s=/t|\s/i;function c(e,r){if(!e||!r)return;const[t,n]=e.split(s),[i,a]=r.split(s),l=o(t,i);return void 0!==l?l||u(n,a):void 0}const f=/\/|:/,d=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,h=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,m=-2147483648,p=2**31-1;function v(){return!0}const y=/[^\\]\\Z/}(sp)),sp),n=(op||(op=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const r=np(),t=qf(),n=t.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:e,schemaCode:r})=>t.str`should be ${i[e].okStr} ${r}`,params:({keyword:e,schemaCode:r})=>t._`{comparison: ${i[e].okStr}, limit: ${r}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(e){const{gen:n,data:o,schemaCode:a,keyword:l,it:u}=e,{opts:s,self:c}=u;if(!s.validateFormats)return;const f=new r.KeywordCxt(u,c.RULES.all.format.definition,"format");function d(e){return t._`${e}.compare(${o}, ${a}) ${i[l].fail} 0`}f.$data?function(){const r=n.scopeValue("formats",{ref:c.formats,code:s.code.formats}),i=n.const("fmt",t._`${r}[${f.schemaCode}]`);e.fail$data(t.or(t._`typeof ${i} != "object"`,t._`${i} instanceof RegExp`,t._`typeof ${i}.compare != "function"`,d(i)))}():function(){const r=f.schema,i=c.formats[r];if(!i||!0===i)return;if("object"!=typeof i||i instanceof RegExp||"function"!=typeof i.compare)throw new Error(`"${l}": format "${r}" does not define "compare" function`);const o=n.scopeValue("formats",{key:r,ref:i,code:s.code.formats?t._`${s.code.formats}${t.getProperty(r)}`:void 0});e.fail$data(d(o))}()},dependencies:["format"]},e.default=r=>(r.addKeyword(e.formatLimitDefinition),r)}(cp)),cp),i=qf(),o=new i.Name("fullFormats"),a=new i.Name("fastFormats"),l=(e,r={keywords:!0})=>{if(Array.isArray(r))return u(e,r,t.fullFormats,o),e;const[i,l]="fast"===r.mode?[t.fastFormats,a]:[t.fullFormats,o];return u(e,r.formats||t.formatNames,i,l),r.keywords&&n.default(e),e};function u(e,r,t,n){var o,a;null!==(o=(a=e.opts.code).formats)&&void 0!==o||(a.formats=i._`require("ajv-formats/dist/formats").${n}`);for(const n of r)e.addFormat(n,t[n])}l.get=(e,r="full")=>{const n=("fast"===r?t.fastFormats:t.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=r=l,Object.defineProperty(r,"__esModule",{value:!0}),r.default=l}(up,up.exports)),up.exports),dp=i(fp);const hp={allErrors:!0,multipleOfPrecision:8,strict:!1,verbose:!0,discriminator:!1},mp=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,pp=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;class vp{ajv;localizer;suppressDuplicateFiltering;lastSeenRootSchema;hasRegisteredRootSchema=!1;constructor(e,r){const{additionalMetaSchemas:t,customFormats:n,ajvOptionsOverrides:i,ajvFormatOptions:o,AjvClass:a,extenderFn:l,suppressDuplicateFiltering:u}=e;this.ajv=function(e,r,t={},n,i=lp,o){let a=new i({...hp,...t});return n?dp(a,n):!1!==n&&dp(a),a.addFormat("data-url",pp),a.addFormat("color",mp),a.addKeyword(er),Array.isArray(e)&&a.addMetaSchema(e),Ee(r)&&Object.keys(r).forEach((e=>{a.addFormat(e,r[e])})),o&&(a=o(a)),a}(t,n,i,o,a,l),this.localizer=r,this.suppressDuplicateFiltering=u}reset(){this.ajv.removeSchema(),this.lastSeenRootSchema=void 0,this.hasRegisteredRootSchema=!1}rawValidation(e,r){let t,n,i;try{e[qe]&&(n=this.ajv.getSchema(e[qe])),void 0===n&&(n=this.ajv.compile(e)),n(r)}catch(r){t=r,void 0===n&&this.ajv.removeSchema(void 0!==e[qe]?e[qe]:e)}return n&&("function"==typeof this.localizer&&((n.errors??[]).forEach((e=>{["missingProperty","property"].forEach((r=>{e.params?.[r]&&(e.params[r]=`'${e.params[r]}'`)})),e.params?.deps&&(e.params.deps=e.params.deps.split(", ").map((e=>`'${e}'`)).join(", "))})),this.localizer(n.errors),(n.errors??[]).forEach((e=>{["missingProperty","property"].forEach((r=>{e.params?.[r]&&(e.params[r]=e.params[r].slice(1,-1))})),e.params?.deps&&(e.params.deps=e.params.deps.split(", ").map((e=>e.slice(1,-1))).join(", "))}))),i=n.errors||void 0,n.errors=null),{errors:i,validationError:t}}validateFormData(e,r,t,n,i){return kf(this,this.rawValidation(r,e),e,r,t,n,i,this.suppressDuplicateFiltering)}handleSchemaUpdate(e){if(this.lastSeenRootSchema===e&&this.hasRegisteredRootSchema)return;const r=e[qe]??rr;void 0===this.ajv.getSchema(r)?this.ajv.addSchema(e,r):Tr(e,this.ajv.getSchema(r)?.schema)||(this.ajv.removeSchema(r),this.ajv.addSchema(e,r)),this.lastSeenRootSchema=e,this.hasRegisteredRootSchema=!0}isValid(e,r,t){let n,i=!1;try{this.handleSchemaUpdate(t);const o=vo(e);let a;return n=o[qe]??function(e){return Ii(Di(e))}(o),a=this.ajv.getSchema(n),void 0===a&&(a=this.ajv.addSchema(o,n).getSchema(n)||this.ajv.compile(o)),i=!0,a(r)}catch(e){return console.warn("Error encountered compiling schema:",e),i||void 0===n||this.ajv.removeSchema(n),!1}}}function yp(e={},r){return new vp(e,r)}function bp(e={}){return $p(e.type,"object")}function gp(e){return $p(e.type,"array")}function wp(e){return $p(e.type,"number")}function kp(e){return $p(e.type,"integer")}function $p(e,r){return Array.isArray(e)?e.includes(r):e===r}function Sp(e){if(e)return ae.createElement("h1",{className:"mdc-typography mdc-typography--headline1"},e)}function Ep(e){if(e)return ae.createElement("limel-markdown",{value:e})}function jp(e,r,t){for(;e;){if(Array.isArray(e)&&bp(r.items)){e=e[0];continue}if(Array.isArray(e)||"object"!=typeof e)return _p(e,r);const n=Cp(r,t),i=Op(e=xp(e,n.properties),n);if(!i||!n.properties)return null;const[o,a]=i;e=a,r=n.properties[o]}return null}function xp(e,r){if(!r||u(r))return e;const t={};for(const n of Object.keys(r))t[n]=e[n];return t}function Op(e,r){return[["title",e.title],["name",e.name],Ap(e,r),...Object.entries(e)].find((e=>{const r=e[1];return!!r&&"boolean"!=typeof r}))}function Ap(e,r){if(!("required"in r))return[null,null];const t=Object.keys(e).find((e=>r.required.includes(e)));return t?[t,e[t]]:[null,null]}function Cp(e,r){let t=e;if(gp(e)&&(t=e.items),t.$ref){const e=t.$ref.split("/").slice(1).join(".");t=l(r,e)}return t}function _p(e,r){var t;return gp(r)&&r.items.anyOf?r.items.anyOf.filter((r=>e.includes(r.const))).map((e=>e.title)).join(", "):r.oneOf?(null===(t=r.oneOf.find((r=>e===r.const)))||void 0===t?void 0:t.title)||`${e} is an invalid option`:e}function Ip(e){return!!e&&Object.entries(e).some((([e,r])=>"__errors"===e?Array.isArray(r)&&r.length>0:Ip(r)))}yp();const Dp="--number-of-columns";class Pp extends ae.Component{constructor(e){super(e),this.props=e,this.handleResize=this.handleResize.bind(this),this.state={maxColumns:5},this.elementRef=ae.createRef()}componentDidMount(){this.observer=new ResizeObserver(this.handleResize),this.observer.observe(this.elementRef.current),window.addEventListener("resize",this.handleResize,{capture:!0,passive:!0})}componentWillUnmount(){this.observer.unobserve(this.elementRef.current),window.removeEventListener("resize",this.handleResize,{capture:!0})}handleResize(){requestAnimationFrame((()=>{const e=this.elementRef.current;if(!e)return;const r=e.getBoundingClientRect().width,t=Math.min(5,Math.max(1,Math.floor(r/240))),n=this.getColumnCount(t);e.style.getPropertyValue(Dp)!==`${n}`&&e.style.setProperty(Dp,`${n}`),t!==this.state.maxColumns&&this.setState({maxColumns:t})}))}render(){var e;const r=["limel-form-layout--grid"],t=this.getColumnCount(this.state.maxColumns);return r.push(`layout-${t}-columns`),this.hasAutoFlowDense()&&r.push("auto-reorder-to-avoid-empty-cells"),ae.createElement("div",{className:r.join(" "),"data-schema-path":Vp(null!==(e=this.props.schemaPath)&&void 0!==e?e:[]),ref:this.elementRef},this.props.children)}getColumnCount(e){return Math.min(this.props.options.columns||5,e)}hasAutoFlowDense(){return!1!==this.props.options.dense}}const Fp=oe.createContext(!1);class qp extends ae.Component{constructor(e){super(e),this.props=e}render(){const e=["row"];return this.icon&&e.push("has-icon"),ae.createElement("div",{className:e.join(" ")},this.renderMainInformation(),this.renderDescription())}renderIcon(){if(this.icon)return ae.createElement("limel-icon",{name:this.icon})}renderMainInformation(){return ae.createElement("div",{className:"main-information"},this.renderIcon(),this.renderTitle(),this.renderChildren())}renderTitle(){var e;return ae.createElement("h1",{className:"title"},null===(e=this.schema)||void 0===e?void 0:e.title)}renderDescription(){var e;if(null===(e=this.schema)||void 0===e?void 0:e.description)return ae.createElement("limel-markdown",{class:"description",value:this.schema.description})}renderChildren(){return ae.createElement(Fp.Provider,{value:!0},this.props.children)}get schema(){return this.props.children.props.schema}get icon(){var e,r,t;return null===(t=null===(r=null===(e=this.schema)||void 0===e?void 0:e.lime)||void 0===r?void 0:r.layout)||void 0===t?void 0:t.icon}}class Np extends ae.Component{constructor(e){super(e),this.props=e,this.elementRef=ae.createRef()}render(){var e;return ae.createElement("div",{className:"limel-form-row--layout","data-schema-path":Vp(null!==(e=this.props.schemaPath)&&void 0!==e?e:[]),ref:this.elementRef},this.props.children.map(((e,r)=>ae.createElement(qp,{key:r.toString()},e))))}}function Tp(e,r){var t;const n=null===(t=e.lime)||void 0===t?void 0:t.help;if(n)return ae.createElement("limel-help",Object.assign("string"==typeof n?{value:n}:Object.assign({},n),r))}const Rp=oe.createContext(null),Mp=oe.createContext(null),zp=e=>{const r=oe.useContext(Rp),t=e.fieldPathId.$id;return r&&"root"!==t?ae.createElement(Rp.Provider,{value:null},Lp(e.properties,e.schema,e.fieldPathId.path.map(String))):"root"!==t&&(null===(n=e.schema.lime)||void 0===n?void 0:n.collapsible)?function(e){var r;const t=!(!1!==e.schema.lime.collapsed),n=Tp(e.schema,{slot:"header"}),i=!0===(null===(r=e.registry.formContext)||void 0===r?void 0:r.revealErrors)&&Ip(e.errorSchema);return ae.createElement("limel-collapsible-section",{header:e.title,id:Up(e.registry.formContext.schema,e.fieldPathId),"is-open":t,invalid:i},n,Ep(e.description),Lp(e.properties,e.schema,e.fieldPathId.path.map(String)))}(e):function(e){return ae.createElement(ae.Fragment,{},function(e){const r=Tp(e.schema);return r?ae.createElement(ae.Fragment,{},Sp(e.title),r):Sp(e.title)}(e),Ep(e.description),Lp(e.properties,e.schema,e.fieldPathId.path.map(String)))}(e);var n};function Up(e,r){var t,n;return`${null!==(n=null===(t=e.$ref)||void 0===t?void 0:t.replaceAll(/\//g,".").slice(2))&&void 0!==n?n:""}${r.path.map((e=>`.properties.${e}`)).join("")}`}function Lp(e,r,t){var n;return function(e,r,t){return{default:Bp,grid:Hp,row:Wp}[(null==r?void 0:r.type)||"default"](e,r,t)}(e,null===(n=r.lime)||void 0===n?void 0:n.layout,t)}function Bp(e,r,t){return ae.createElement("div",{className:"limel-form-layout--default","data-schema-path":Vp(t)},e.map((e=>e.content)))}function Vp(e){return 0===e.length?"/":`/${e.join("/")}`}function Hp(e,r,t){return ae.createElement(Pp,{options:r,schemaPath:t},e.map((e=>e.content)))}function Wp(e,r,t){return ae.createElement(Np,{schemaPath:t},e.map((e=>e.content)))}const Gp=yp({customFormats:{integer:function(e){return Number.isInteger(Number(e))}},ajvOptionsOverrides:{allErrors:!0,multipleOfPrecision:2}}),Kp=(e,r,t,n)=>{if(!P(r))return r;if(Jp(t))return r;const i=fn(Gp,t,n,e),o=((e={},r={})=>X(Object.keys(e),Object.keys(r)).filter((t=>!S(r[t],e[t]))))(fn(Gp,t,n,r).properties,i.properties);for(const e of o)delete r[e];return r};function Jp(e){return!!e.additionalProperties&&(!("properties"in e)||0===Object.values(e.properties).filter(h(Zp)).length)}function Zp(e){return!0===e[Oe]}const Yp=e=>{const r=null==e?void 0:e.type;return!!r&&(Array.isArray(r)?r.includes("null"):"null"===r)},Xp=e=>{let r=e.classNames;const t=function(e){var r;const t=null===(r=e.lime)||void 0===r?void 0:r.layout,n=null==t?void 0:t.colSpan;return!n&&bp(e)?"all":n}(e.schema),n=function(e){var r;const t=null===(r=e.lime)||void 0===r?void 0:r.layout;return null==t?void 0:t.rowSpan}(e.schema);let i;return t&&(r+=` limel-form-layout-colspan--${t}`),n&&(i={gridRow:`span ${n}`,minHeight:`calc(var(--min-height-of-one-row) * ${n})`}),ae.createElement("div",{className:r,style:i,"data-schema-path":Qp(e)},e.children)};function Qp(e){var r;if(bp(e.schema)&&function(e){var r,t;return!(null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.name)&&!Jp(e)}(e.schema))return;const t=null===(r=e.fieldPathId)||void 0===r?void 0:r.path;return t?Vp(t.map(String)):void 0}const ev="arrayReorder";class rv extends ae.Component{constructor(e){super(e),this.cachedContextValue=null,this.handleAddClick=e=>{e.stopPropagation(),this.props.onAddClick(e)},this.setContainer=e=>{this.container!==e&&(this.dragToReorder.teardown(),this.container=null!=e?e:void 0,this.setupDragController())},this.handleReorder=({order:e,fromIndex:r,toIndex:t})=>{var n;this.setState({order:e.map(Number)}),null===(n=this.container)||void 0===n||n.dispatchEvent(new CustomEvent(ev,{bubbles:!0,detail:{fromIndex:r,toIndex:t}}))},this.state={order:this.extractIndices(e.items)},this.dragToReorder=new b({draggable:'.array-item[data-reorderable="true"]',onReorder:this.handleReorder})}componentWillUnmount(){this.dragToReorder.teardown()}componentDidMount(){this.setupDragController()}componentDidUpdate(e){if(e.items!==this.props.items){const e=this.extractIndices(this.props.items);if(!this.arraysEqual(this.state.order,e))return void this.setState({order:e},(()=>{this.setupDragController()}))}e.items===this.props.items&&e.schema===this.props.schema&&e.disabled===this.props.disabled&&e.readonly===this.props.readonly||this.setupDragController()}render(){const e=this.getOrderedItems(),r=this.getContextValue();return ae.createElement(Rp.Provider,{value:r},ae.createElement("div",{},Sp(this.props.title),Ep(this.props.schema.description),ae.createElement("div",{className:"array-items",ref:this.setContainer},e),this.renderAddButton()))}renderAddButton(){if(this.props.canAdd)return ae.createElement("limel-button",{label:this.props.title||"Add",onClick:this.handleAddClick,icon:"plus_math",class:"button-add-new"})}getOrderedItems(){var e;const r=null!==(e=this.props.items)&&void 0!==e?e:[];if(0===r.length)return[];const t=new Map(r.entries()),n=[],i=new Set;for(const e of this.state.order){const r=t.get(e);r&&(n.push(r),i.add(e))}for(const[e,r]of t)i.has(e)||n.push(r);return n}setupDragController(){this.container&&this.canReorderItems()?this.dragToReorder.setup(this.container):this.dragToReorder.teardown()}canReorderItems(){if(this.props.disabled||this.props.readonly)return!1;const e=this.props.schema;return!1!==((null==e?void 0:e.lime)||{}).allowItemReorder}arraysEqual(e,r){if(e.length!==r.length)return!1;let t=0;for(const n of e){if(n!==r[t])return!1;t+=1}return!0}extractIndices(e=[]){return(null!=e?e:[]).map(((e,r)=>r))}getContextValue(){var e,r,t;const n=this.props.schema,i=null!==(e=this.props.formData)&&void 0!==e?e:[],o=(null!==(t=null===(r=this.props.fieldPathId)||void 0===r?void 0:r.path)&&void 0!==t?t:[]).map(String),a=Vp(o);return this.cachedContextValue&&this.cachedSchema===n&&this.cachedFormData===i&&this.cachedPath===a||(this.cachedSchema=n,this.cachedFormData=i,this.cachedPath=a,this.cachedContextValue={arraySchema:n,formData:i,schemaPath:o}),this.cachedContextValue}}class tv extends ae.Component{constructor(e){super(e),this.props=e,this.state={isOpen:!1},this.handleOpen=()=>{this.setState({isOpen:!0})},this.handleAction=this.handleAction.bind(this),this.state={isOpen:nv(e)}}componentDidMount(){const e=this.section;e.addEventListener("action",this.handleAction),e.addEventListener("open",this.handleOpen),this.setActions(e)}componentDidUpdate(){this.setActions(this.section)}componentWillUnmount(){const e=this.section;e.removeEventListener("action",this.handleAction),e.removeEventListener("open",this.handleOpen)}render(){const{data:e,schema:r,formSchema:t,errorSchema:n,revealErrors:i}=this.props;let o;this.state.isOpen&&(o=this.props.children);const a=this.props.allowItemReorder?ae.createElement("limel-drag-handle",{slot:"header",class:"drag-handle"}):null,l=!0===i&&Ip(n);return ae.createElement("limel-collapsible-section",{header:jp(e,r,t)||"New item",class:"array-item limel-form-array-item--object",ref:e=>{this.section=e},"is-open":this.state.isOpen,"data-schema-path":this.props.schemaPath,"data-reorder-id":String(this.props.index),"data-reorderable":this.props.allowItemReorder?"true":"false",invalid:l},a,o)}setActions(e){const{buttonsProps:r,allowItemRemoval:t}=this.props,n=[];t&&n.push({id:"remove",icon:"trash",disabled:!r.hasRemove,run:r.onRemoveItem}),e.actions=n}handleAction(e){e.stopPropagation(),e.detail.run(e)}}function nv(e){return!!iv(e.data)||S(e.data,function(e){var r,t;const n=null===(r=e.schema)||void 0===r?void 0:r.items,i=Array.isArray(n)?n[e.index]:n;if(i)return Kn(Gp,i,void 0,null!==(t=e.formSchema)&&void 0!==t?t:i,!1,{constAsDefaults:"skipOneOf",requiredBooleanDefault:"skip"})}(e))}function iv(e){return"object"==typeof e&&(!!u(e)||Object.values(e).every(iv))}class ov extends ae.Component{constructor(e){super(e),this.props=e,this.handleRemove=e=>{this.props.buttonsProps.onRemoveItem(e)},this.setRemoveButton=e=>{this.removeButton&&this.removeButton.removeEventListener("click",this.handleRemove),this.removeButton=e||void 0,this.removeButton&&this.removeButton.addEventListener("click",this.handleRemove)}}componentWillUnmount(){this.setRemoveButton(void 0)}render(){const{allowItemReorder:e}=this.props;return ae.createElement("div",{className:"array-item limel-form-array-item--simple","data-reorder-id":String(this.props.index),"data-reorderable":e?"true":"false"},this.props.children,this.renderRemoveButton(),this.renderDragHandle())}renderDragHandle(){if(this.props.allowItemReorder)return ae.createElement("limel-drag-handle",{class:"drag-handle"})}renderRemoveButton(){if(this.props.allowItemRemoval)return ae.createElement("limel-icon-button",{icon:"trash",disabled:!this.props.buttonsProps.hasRemove,ref:this.setRemoveButton})}}const av=e=>{const r=oe.useContext(Rp),t=oe.useContext(Mp),n=null==r?void 0:r.arraySchema,i=null==r?void 0:r.formData,o=e.registry.formContext,a=function(e,r){if(!1===((null==r?void 0:r.lime)||{}).allowItemReorder)return!1;const{buttonsProps:t}=e;return Boolean((null==t?void 0:t.hasMoveDown)||(null==t?void 0:t.hasMoveUp))}(e,n),l=function(e){return!1!==((null==e?void 0:e.lime)||{}).allowItemRemoval}(n);if(n&&bp(n.items)){const u=Array.isArray(i)?i[e.index]:void 0;return ae.createElement(tv,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,data:u,schema:n,formSchema:null==o?void 0:o.schema,allowItemRemoval:l,allowItemReorder:a,errorSchema:null==t?void 0:t[e.index],revealErrors:!0===(null==o?void 0:o.revealErrors),schemaPath:Vp([...r.schemaPath,String(e.index)])},e.children)}return ae.createElement(ov,{key:e.itemKey,buttonsProps:e.buttonsProps,index:e.index,allowItemRemoval:l,allowItemReorder:a},e.children)};function lv(e){return!function(e){return null==e}(e)&&""!==e&&(Array.isArray(e)?e.length>0:e instanceof Date||"object"!=typeof e||!u(e))}function uv(e){return e.hasErrors&&(e.modified||e.hasValue||!e.required||!!e.revealErrors)}function sv(e){return e.required||e.minItems>0}function cv(e,r,t){return(null==e?void 0:e.length)>0?Z(o(e[0]).toLowerCase()):t||r}class fv extends ae.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=e=>{this.props.events.change(e.nativeEvent)},this.handleBlur=this.handleBlur.bind(this)}handleBlur(){this.setState({modified:!0})}getLabel(){if(this.context)return"";const{schema:e,label:r,hideLabel:t}=this.props.widgetProps;return t?"":r||e.title}isInvalid(){var e;const{modified:r}=this.state,{rawErrors:t,required:n,schema:i,registry:o}=this.props.widgetProps;return uv({hasErrors:!!t,modified:r,hasValue:lv(this.getValue()),required:sv({required:n,minItems:i.minItems}),revealErrors:!0===(null===(e=null==o?void 0:o.formContext)||void 0===e?void 0:e.revealErrors)})}getHelperText(){const{rawErrors:e,schema:r}=this.props.widgetProps;return this.isInvalid()?cv(e||[],r.description):this.context?"":r.description}getValue(){const{value:e}=this.props,{value:r}=this.props.widgetProps;return e||r}render(){const{name:e,extraProps:r}=this.props,t=this.isDisabled(),n=this.getValue(),i=this.isReadOnly();return ae.createElement(ae.Fragment,{},ae.createElement(e,Object.assign(Object.assign({value:n,label:this.getLabel(),disabled:t,readonly:i,required:sv({required:this.props.widgetProps.required,minItems:this.props.widgetProps.schema.minItems}),invalid:this.isInvalid(),"helper-text":this.getHelperText()},r),{onChange:this.handleChange,onBlur:this.handleBlur})),Tp(this.props.widgetProps.schema))}isDisabled(){var e,r;const t=this.props.widgetProps,n=t.schema.lime;return t.disabled||(null==n?void 0:n.disabled)||(null===(r=null===(e=null==n?void 0:n.component)||void 0===e?void 0:e.props)||void 0===r?void 0:r.disabled)}isReadOnly(){return this.props.widgetProps.readonly}}fv.contextType=Fp;class dv extends ae.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,r;const t=this.props,{type:n="datetime"}=t,i=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(t,["type"]);return ae.createElement(fv,{name:"limel-date-picker",value:this.getValue(),events:{change:this.handleChange},widgetProps:i,extraProps:Object.assign({type:n},null===(r=null===(e=i.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)})}getValue(){return"string"==typeof this.props.value?new Date(this.props.value):this.props.value}handleChange(e){const r=this.props;if(e.stopPropagation(),!r.onChange)return;if(!e.detail)return void r.onChange(null);const t=E(e.detail).format({"date-time":"YYYY-MM-DDTHH:mm:ssZ",date:"YYYY-MM-DD",time:"HH:mm:ss"}[r.schema.format]);r.onChange(t)}}const hv=e=>{var{value:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["value"]);return"string"==typeof r&&mv.test(r)&&(r=new Date("2000-01-01T"+r)),ae.createElement(dv,Object.assign({type:"time",value:r},t))},mv=/^\d\d:\d\d/,{fields:pv}=yf(),vv=pv.SchemaField,yv=e=>{if(!customElements.get(e))throw new Error(`Custom form element '${e}' is not defined!`)};class bv extends ae.Component{constructor(e){super(e),this.state={modified:!1},this.handleChange=this.handleChange.bind(this),this.handleCustomComponentChange=this.handleCustomComponentChange.bind(this)}isInvalid(){var e;const{modified:r}=this.state,{errorSchema:t,required:n,schema:i,registry:o}=this.props;return uv({hasErrors:!u(t),modified:r,hasValue:lv(this.props.formData),required:sv({required:n,minItems:i.minItems}),revealErrors:!0===(null===(e=o.formContext)||void 0===e?void 0:e.revealErrors)})}getHelperText(){var e,r,t;const{errorSchema:n,schema:i}=this.props,o=!u(n)&&"__errors"in n,a=this.isInvalid()&&o?n.__errors:[],l=null===(t=null===(r=null===(e=i.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)||void 0===t?void 0:t.helperText;return cv(a,i.description,l)}handleCustomComponentChange(e){const{schema:r}=this.props;e.stopPropagation();let t=e.nativeEvent.detail;((e,r)=>null===e&&!Yp(r))(t,r)&&(t=void 0),this.handleChange(t,this.props.fieldPathId.path)}handleChange(e,r){const{formData:t,schema:n}=this.props,{rootSchema:i}=this.props.registry;if(this.setState({modified:!0}),this.isDeepLeafChange(r))return void this.props.onChange(e,r);const o=Kp(t,e,n,i);this.props.onChange(o,r)}isDeepLeafChange(e){const{fieldPathId:r}=this.props;return!!r&&e.length>r.path.length}buildCustomComponentProps(){const{disabled:e,readonly:r,name:t,registry:n,schema:i,errorSchema:o,fieldPathId:a}=this.props,l=i,u=function(e,r){const t=e.propsFactory;if("function"!=typeof t)return{};return t(r)||{}}(n.formContext,l);return Object.assign(Object.assign({},u),{value:this.props.formData,required:sv({required:this.props.required,minItems:l.minItems}),readonly:r||l.readOnly,disabled:e,invalid:this.isInvalid(),label:this.context?"":l.title,helperText:this.context&&!this.isInvalid()?"":this.getHelperText(),ref:e=>{var r;return e.formInfo={schema:l,rootSchema:n.formContext.schema,errorSchema:o,rootValue:n.formContext.rootValue,name:t,schemaPath:null===(r=null==a?void 0:a.path)||void 0===r?void 0:r.map(String)},()=>{}}})}renderCustomComponent(e){const r=e.schema,{name:t,props:n}=(e=>{var r,t,n,i;return{name:null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.name,props:(null===(i=null===(n=e.lime)||void 0===n?void 0:n.component)||void 0===i?void 0:i.props)||{}}})(r);yv(t);const i=ae.createElement(t,Object.assign(Object.assign(Object.assign({},n),this.buildCustomComponentProps()),{onChange:this.handleCustomComponentChange}));return ae.createElement(Xp,Object.assign(Object.assign({},this.props),{classNames:"rjsf-field rjsf-field-custom"}),i,Tp(r))}render(){var e;if(null===(e=this.props.schema.lime)||void 0===e?void 0:e.hidden)return null;if((()=>{var e,r;const t=null===(r=null===(e=this.props.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.name;if(!t)return!1;try{yv(t)}catch(e){return console.warn(`Custom component ${t} not defined`),!1}return!0})())return this.renderCustomComponent(this.props);const r=this.props.schema,t=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return"time"===this.props.schema.format&&(t.uiSchema=Object.assign({"ui:widget":hv},t.uiSchema)),(wp(r)||kp(r))&&(t.uiSchema=Object.assign({"ui:inputType":"number"},t.uiSchema)),ae.createElement(vv,t)}}bv.contextType=Fp;const{fields:gv}=yf(),wv=gv.ArrayField;class kv extends ae.Component{constructor(e){super(e),this.handleChange=this.handleChange.bind(this),this.handleReorder=this.handleReorder.bind(this),this.setWrapper=this.setWrapper.bind(this)}componentWillUnmount(){this.setWrapper(null)}setWrapper(e){this.wrapper&&this.wrapper.removeEventListener(ev,this.handleReorder),this.wrapper=null!=e?e:void 0,this.wrapper&&this.wrapper.addEventListener(ev,this.handleReorder)}handleReorder(e){e.stopPropagation();const{fromIndex:r,toIndex:t}=e.detail,{formData:n,fieldPathId:i}=this.props;if(!Array.isArray(n)||!i)return;const o=[...n],[a]=o.splice(r,1);o.splice(t,0,a),this.props.onChange(o,i.path)}handleChange(e,r){const{formData:t,schema:n}=this.props,{rootSchema:i}=this.props.registry;if(this.isDeepLeafChange(r))return void this.handleDeepLeafChange(e,r);if(!t)return void this.props.onChange(e,r);if(t.length!==e.length)return void this.props.onChange(e,r);const o=[];for(const[r,n]of t.entries())e[r]!==n&&o.push(r);if(1===o.length){const r=o[0];e[r]=Kp(t[r],e[r],n.items,i)}this.props.onChange(e,r)}isDeepLeafChange(e){const{formData:r,fieldPathId:t}=this.props;return Array.isArray(r)&&!!t&&e.length>t.path.length}handleDeepLeafChange(e,r){const{formData:t,fieldPathId:n}=this.props,[i,...o]=r.slice(n.path.length),a=Number(i),l=[...t];l[a]=this.buildResetItem(e,a,o),this.props.onChange(l,n.path)}buildResetItem(e,r,t){const{formData:n,schema:i}=this.props,{rootSchema:o}=this.props.registry,a=Array.isArray(i.items)?i.items[r]:i.items,l=function(e,r){let t=e;for(const e of r){if(!t)return;t=$v(t,e)}return t}(a,t),u=null!==e||Yp(l)?e:void 0,s=n[r],c=function(e,r,t){if(0===r.length)return t;const n=function(e,r){return Array.isArray(e)||P(e)?j(e):"number"==typeof r?[]:{}}(e,r[0]);return function(e,r,t){null==e||d(e,r,t)}(n,r,t),n}(s,t,u);return Kp(s,c,a,o)}render(){var e;const r=Object.assign(Object.assign({},this.props),{onChange:this.handleChange});return ae.createElement("div",{ref:this.setWrapper},ae.createElement(Mp.Provider,{value:null!==(e=this.props.errorSchema)&&void 0!==e?e:null},ae.createElement(wv,r)))}}function $v(e,r){var t;if("number"==typeof r){const t=e.items;return Array.isArray(t)?t[r]:t}return null===(t=e.properties)||void 0===t?void 0:t[r]}class Sv extends ae.Component{constructor(e){super(e),this.state={validationError:"",modified:!1},this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;let r="{}";try{r=JSON.stringify(e.formData,null," ".repeat(4))}catch(e){}const{validationError:t,modified:n}=this.state,{errorSchema:i,formData:o,required:a}=e,l=!u(i)&&(n||null!=o||!a),s=t.length>0||l;let c;return t?c=t:l&&(c=Ev(i)),ae.createElement("limel-code-editor",{value:r,language:"json",lineNumbers:!0,fold:!0,lint:!0,onChange:this.handleChange,invalid:s,helperText:c})}componentDidUpdate(e){e.formData===this.props.formData||""===this.state.validationError&&!this.state.modified||this.setState({validationError:"",modified:!1})}handleChange(e){const r=this.props;if(e.stopPropagation(),!r.onChange)return;let t;try{t=JSON.parse(e.nativeEvent.detail)}catch(e){const r=e instanceof SyntaxError?`Invalid JSON: ${e.message}`:"Should be a valid JSON document";return void this.setState({validationError:r,modified:!0})}r.onChange(t,r.fieldPathId.path),this.setState({validationError:"",modified:!0})}}function Ev(e){if(e&&"object"==typeof e){if("__errors"in e&&Array.isArray(e.__errors)){const r=e.__errors;if(r.length>0)return r[0]}for(const[r,t]of Object.entries(e)){if("__errors"===r||!t||"object"!=typeof t)continue;const e=Ev(t);if(e)return`${r}: ${e}`}}}const{fields:jv}=yf(),xv=jv.ObjectField;class Ov extends ae.Component{render(){return Jp(this.props.schema)?ae.createElement(ae.Fragment,{},Sp(this.props.schema.title),Ep(this.props.schema.description),ae.createElement(Sv,this.props)):ae.createElement(xv,this.props)}}class Av extends ae.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,r=e.schema;let t,n;const i=function(e){var r,t;let n={};return(null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.props)&&(n=Object.assign(Object.assign({},n),e.lime.component.props)),n}(e.schema);return function(e){return e.multipleOf<1&&0===e.minimum&&1===e.maximum}(r)&&(t=100,n="%"),ae.createElement(fv,{name:"limel-slider",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({valuemin:r.minimum,valuemax:r.maximum,step:r.multipleOf,factor:t,unit:n},i)})}handleChange(e){const r=this.props;e.stopPropagation(),r.onChange&&r.onChange(e.detail)}}class Cv extends ae.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props;if((wp(r=e.schema)||kp(r))&&"minimum"in r&&"maximum"in r&&"multipleOf"in r)return ae.createElement(Av,e);var r;const t=_v(e.schema),n=function(e){return wp(e)&&e.multipleOf?+e.multipleOf||"any":kp(e)?Math.floor(+e.multipleOf)||1:"any"}(e.schema),i=function(e){var r,t;let n={};return e.minimum&&(n.min=e.minimum),e.maximum&&(n.max=e.maximum),e.maxLength&&(n.maxlength=e.maxLength),e.minLength&&(n.minlength=e.minLength),(null===(t=null===(r=e.lime)||void 0===r?void 0:r.component)||void 0===t?void 0:t.props)&&(n=Object.assign(Object.assign({},n),e.lime.component.props)),n}(e.schema);return ae.createElement(fv,{name:"limel-input-field",value:e.value,events:{change:this.handleChange},widgetProps:e,extraProps:Object.assign({step:n,type:t},i)})}handleChange(e){e.stopPropagation();const r=this.props,t=_v(r.schema);if(!r.onChange)return;let n;n=e.detail||"number"==typeof e.detail?e.detail:"number"===t||r.required?null:"",r.onChange(n)}}function _v(e){return wp(e)||kp(e)?"number":"email"===e.format?"email":"text"}function Iv(e){var r;const t=e.schema;return{text:e.label,value:e.value,secondaryText:null==t?void 0:t.description,icon:null===(r=null==t?void 0:t.lime)||void 0===r?void 0:r.icon,disabled:!!(null==t?void 0:t.readOnly)}}const Dv={CheckboxWidget:class extends ae.Component{constructor(e){super(e),this.props=e,this.handleChange=this.handleChange.bind(this)}render(){const e=this.props,r=null!==(i=null===(n=null===(t=e.schema.lime)||void 0===t?void 0:t.component)||void 0===n?void 0:n.props)&&void 0!==i?i:{};var t,n,i;return ae.createElement(fv,{name:"limel-checkbox",value:e.value,widgetProps:e,extraProps:Object.assign({checked:!!e.value},r),events:{change:this.handleChange}})}handleChange(e){const r=this.props;e.stopPropagation(),r.onChange&&r.onChange(e.detail)}},DateTimeWidget:dv,DateWidget:e=>{var{value:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["value"]);return"string"==typeof r&&/-\d\d$/.test(r)&&(r+="T00:00"),ae.createElement(dv,Object.assign({type:"date",value:r},t))},EmailWidget:Cv,TextWidget:Cv,SelectWidget:class extends ae.Component{constructor(e){super(e),this.props=e,this.state={modified:!1},this.handleChange=this.handleChange.bind(this)}render(){var e,r;const t=this.props,n=t.options.enumOptions.map(Iv);let i;i=t.multiple?function(e,r){return r.filter((r=>e.includes(r.value)))}(t.value,n):function(e,r){return r.find((r=>r.value===e))}(t.value,n);const o=(null===(r=null===(e=t.schema.lime)||void 0===e?void 0:e.component)||void 0===r?void 0:r.props)||{};return ae.createElement(fv,{name:"limel-select",value:i,events:{change:this.handleChange},widgetProps:t,extraProps:Object.assign({multiple:t.multiple,options:n},o)})}handleChange(e){const r=this.props;if(e.stopPropagation(),r.onChange)if(x(e.detail)){const t=e.detail.map((e=>e.value));r.onChange(t)}else r.onChange(e.detail.value)}},RangeWidget:Av};var Pv=ye();const Fv="limel-form-field--highlighted";function qv(e,r){const t=Vp(r.map(String));return e.querySelector(`[data-schema-path="${CSS.escape(t)}"]`)}function Nv(e,r){for(let t=r;t&&t!==e;t=t.parentElement)Tv(t)&&Rv(t)}function Tv(e){return"LIMEL-COLLAPSIBLE-SECTION"===e.tagName&&!e.isOpen}function Rv(e){e.isOpen=!0,Pv.flushSync((()=>{e.dispatchEvent(new CustomEvent("open"))}))}async function Mv(e){let r="",t=0;const n=performance.now()+2e3;for(;performance.now()<n;){await zv();const{top:n,height:i}=e.getBoundingClientRect(),o=`${n}:${i}`;if(t=i>0&&o===r?t+1:0,3===t)return;r=o}}function zv(){return new Promise((e=>requestAnimationFrame((()=>e()))))}const Uv=class{constructor(t){e(this,t),this.change=r(this,"change",7),this.validate=r(this,"validate",7),this.schema={},this.disabled=!1,this.revealErrors=!1,this.isValid=!0,this.initialized=!1,this.handleChange=this.handleChange.bind(this),this.getCustomErrorMessages=this.getCustomErrorMessages.bind(this)}connectedCallback(){this.initialize()}componentDidLoad(){this.initialize(),this.showHighlightedField()}handleHighlightedFieldChange(e,r){S(e,r)||this.showHighlightedField()}initialize(){!this.initialized&&this.host.shadowRoot.querySelector(".root")&&(this.initialized=!0,this.reactRender(),this.validateFormData())}componentDidUpdate(){this.reactRender(),this.validateFormData()}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=void 0),this.initialized=!1}render(){return t("div",{key:"e57ab791f09cd1e8271437e91822ffabcfe2a118",class:"root"})}reactRender(){if(!this.root){const e=this.host.shadowRoot.querySelector(".root");this.root=we.createRoot(e)}this.root.render(ae.createElement(wf,{schema:this.prepareSchema(this.schema),formData:this.value,onChange:this.handleChange,widgets:Dv,validator:Gp,liveValidate:"onChange",experimental_defaultFormStateBehavior:{constAsDefaults:"skipOneOf",requiredBooleanDefault:"skip"},showErrorList:!1,extraErrors:this.getExtraErrors(this.errors),templates:{FieldTemplate:Xp,ArrayFieldTemplate:rv,ArrayFieldItemTemplate:av,ObjectFieldTemplate:zp},disabled:this.disabled,transformErrors:this.getCustomErrorMessages,formContext:{schema:this.schema,rootValue:this.value,propsFactory:this.propsFactory,revealErrors:this.revealErrors},fields:{SchemaField:bv,ArrayField:kv,ObjectField:Ov}},[]))}showHighlightedField(){this.highlightedField&&async function(e,r){if(!await async function(e,r){for(let t=0;t<30;t++){if(qv(e,r.slice(0,1)))return!0;await zv()}return!1}(e,r))return;let t;for(let n=1;n<=r.length;n++){const i=qv(e,r.slice(0,n));if(!i)break;t=i,Nv(e,i)}if(!t)return;const n=await O(t);await Mv(t),t.scrollIntoView({block:"center",behavior:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"}),null==n||n.focus({preventScroll:!0}),await Mv(t),function(e){e.classList.remove(Fv);const r=t=>{"highlight-field-shadow"===t.animationName&&(e.classList.remove(Fv),e.removeEventListener("animationend",r))};requestAnimationFrame((()=>{e.classList.add(Fv),e.addEventListener("animationend",r)}))}(t)}(this.host.shadowRoot.querySelector(".root"),this.highlightedField)}handleChange(e){this.change.emit(e.formData)}validateFormData(){var e;const{errors:r}=Gp.validateFormData(null!==(e=this.value)&&void 0!==e?e:{},this.prepareSchema(this.schema));this.emitValidationStatus(r)}prepareSchema(e){const{$id:r}=e,t=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(e,["$id"]),n=JSON.stringify(t);let i=5381;for(let e=0;e<n.length;e++)i=(i<<5)+i+n.codePointAt(e)&4294967295;const o=(i>>>0).toString(36);return Object.assign(Object.assign({},e),{$id:r?`${r}-${o}`:o})}hasExtraErrors(){return!!this.errors&&Object.keys(this.errors).length>0}emitValidationStatus(e){const r=!(e&&0!==e.length||this.hasExtraErrors()),t=this.mapErrors(null!=e?e:[]);this.isValid===r&&r||this.validate.emit({valid:r,errors:t}),this.isValid=r}mapErrors(e){return e.map((e=>({name:e.name,property:e.property,message:e.message,schemaPath:e.schemaPath,params:e.params})))}getExtraErrors(e){var r,t,n;if(e)return r=e,n={},t=a(t=e=>Array.isArray(e)?{__errors:e}:this.getExtraErrors(e)),C(r,(function(e,r,i){A(n,r,t(e,r,i))})),n}getCustomErrorMessages(e){if(!this.transformErrors)return e;const r=this.mapErrors(e);return this.transformErrors.call({},r).map((r=>{const t=e.find((e=>r.property===e.property));return Object.assign(Object.assign({},t),{message:r.message})}))}get host(){return n(this)}static get watchers(){return{highlightedField:[{handleHighlightedFieldChange:0}]}}};Uv.style='@charset "UTF-8";.limel-form-row--layout{--limel-form-row-border-radius:0.375rem;--limel-form-row-icon-size:1.75rem;--limel-form-row-main-information-gap:0.5rem;display:flex;flex-direction:column}.limel-form-row--layout .row{display:flex;gap:0.5rem;flex-direction:column;padding:0.5rem 1rem}.limel-form-row--layout .row:nth-child(odd){background-color:var(--form-background-color-of-odd-rows, rgb(var(--contrast-200)))}.limel-form-row--layout .row:nth-child(even){background-color:var(--form-background-color-of-even-rows, transparent)}.limel-form-row--layout .row:first-child{border-radius:var(--limel-form-row-border-radius) var(--limel-form-row-border-radius) 0 0}.limel-form-row--layout .row:last-child{border-radius:0 0 var(--limel-form-row-border-radius) var(--limel-form-row-border-radius)}.limel-form-row--layout .main-information{position:relative;display:flex;flex-direction:row;align-items:center;gap:var(--limel-form-row-main-information-gap);min-width:0}.limel-form-row--layout .main-information{position:relative}.limel-form-row--layout .main-information>.rjsf-field{position:unset}.limel-form-row--layout .main-information>.rjsf-field limel-help{top:0}.limel-form-row--layout limel-icon{color:rgb(var(--contrast-1200));width:var(--limel-form-row-icon-size);flex-shrink:0;min-width:0}.limel-form-row--layout .title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;font-weight:normal;flex-grow:1;color:var(--limel-theme-on-surface-color);font-size:0.875rem}.limel-form-row--layout .description{margin:0;color:var(--limel-theme-text-secondary-on-background-color);font-size:var(--limel-theme-default-small-font-size);line-height:1.5}.limel-form-row--layout .has-icon .description{padding-left:calc(var(--limel-form-row-icon-size) + var(--limel-form-row-main-information-gap))}.limel-form-row--layout .rjsf-field{flex-shrink:0;display:flex;align-content:center}.limel-form-row--layout .rjsf-field limel-slider{min-width:8rem;display:block}*,*::after,*::before{box-sizing:border-box}.rjsf-field{min-width:0}.limel-form-array-item--simple{display:flex;align-items:center;padding:0.25rem}.limel-form-array-item--simple>*:first-child{flex:1;min-width:0}.array-items{isolation:isolate;display:flex;flex-direction:column;row-gap:var(--form-row-gap, 0.5rem);margin-top:1rem}.array-items.has-an-item-which-is-being-dragged limel-collapsible-section{--limel-cs-grid-template-rows:0fr;--limel-cs-opacity-transition-speed:0.2s;--limel-cs-grid-template-rows-transition-speed:0.2s;--limel-cs-open-header-bottom-border-radius:0.75rem}.array-item:has(limel-drag-handle:hover),.array-item:has(limel-drag-handle:focus-within),.array-item.is-elevated,.array-item.sortable-chosen{will-change:transform, box-shadow, border-radius, background-color}.array-item.sortable-ghost{border-radius:0.5rem;box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}.array-item.sortable-chosen{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color)}.array-item.is-elevated[draggable=false]{animation:sit-here 0.8s forwards}@keyframes sit-here{0%{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}100%{box-shadow:none}}limel-drag-handle{order:10}limel-collapsible-section.is-being-dragged{border-radius:0.75rem !important}.limel-form-layout--default{display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem)}.limel-form-layout--grid{--min-height-of-one-row:2.5rem;display:grid;column-gap:var(--form-column-gap, 1rem);row-gap:var(--form-row-gap, 1rem);padding:var(--form-body-padding, 1rem);grid-template-columns:repeat(var(--number-of-columns), minmax(0, 1fr))}.limel-form-layout--grid.auto-reorder-to-avoid-empty-cells{grid-auto-flow:dense}.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--1,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-1-columns .limel-form-layout-colspan--5{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--2,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-2-columns .limel-form-layout-colspan--5{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--3,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-3-columns .limel-form-layout-colspan--5{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--4,.limel-form-layout--grid.layout-4-columns .limel-form-layout-colspan--5{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--1{grid-column:span 1}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--2{grid-column:span 2}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--3{grid-column:span 3}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--4{grid-column:span 4}.limel-form-layout--grid.layout-5-columns .limel-form-layout-colspan--5{grid-column:span 5}.limel-form-layout--grid .limel-form-layout-colspan--all{grid-column:1/-1}.limel-form-layout--grid limel-checkbox,.limel-form-layout--grid limel-switch{min-height:var(--min-height-of-one-row)}.limel-form-layout--grid limel-checkbox{display:block}.limel-form-layout--grid limel-switch{margin-left:0.5rem}.form-error{color:var(--limel-theme-error-color);font-size:0.6875rem;line-height:1.5;visibility:inherit;padding-right:1rem;padding-left:1rem;padding-top:0.25rem}.button-add-new{margin-top:0.5rem;width:100%}h1{position:relative;margin-top:0;margin-bottom:0;word-break:break-word;hyphens:auto;-webkit-hyphens:auto;text-wrap:balance;font-size:var(--limel-form-h1-font-size);line-height:calc(var(--limel-form-h1-font-size) * 1.42857);letter-spacing:-0.01rem;font-weight:500}limel-markdown{display:block;margin-bottom:0.5rem}.rjsf-field{position:relative}.rjsf-field limel-help{position:absolute;top:calc(var(--form-row-gap, 1rem) * -0.5);left:calc(var(--form-column-gap, 1rem) * -0.5)}.rjsf-field h1{color:rgb(var(--contrast-1400), 0.8)}.rjsf-field h1{--limel-form-h1-font-size:1.476rem;font-weight:800}.rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.383rem;font-weight:700}.rjsf-field .rjsf-field h1:before{content:"";display:block;position:absolute;top:0;bottom:0;margin:auto;left:-0.75rem;background-color:var(--lime-primary-color, var(--limel-theme-primary-color));width:0.125rem;height:1.5rem;border-radius:0.125rem;opacity:0.6}.rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.296rem;font-weight:600}.rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.215rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.138rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1{--limel-form-h1-font-size:1.067rem}.rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field .rjsf-field h1:before{display:none}.limel-form-field--highlighted{position:relative}.limel-form-field--highlighted::after{content:"";position:absolute;inset:-0.25rem;border-radius:0.5rem;pointer-events:none;animation-name:highlight-field-background, highlight-field-shadow;animation-duration:6s;animation-delay:0.1s, 0.3s;animation-timing-function:ease-in-out}@media (prefers-reduced-motion){.limel-form-field--highlighted::after{animation-duration:4s;animation-delay:0s}}@keyframes highlight-field-background{0%{background-color:transparent}12.5%{background-color:color-mix(in srgb, var(--lime-primary-color, var(--limel-theme-primary-color)), transparent 65%)}45%,100%{background-color:transparent}}@keyframes highlight-field-shadow{0%,25%,50%{box-shadow:none}12.5%,37.5%{box-shadow:var(--shadow-depth-8-focused)}62.5%,72.5%{box-shadow:var(--shadow-depth-8-focused);animation-timing-function:ease-out}100%{box-shadow:none}}@media (prefers-reduced-motion){@keyframes highlight-field-shadow{0%,25%{box-shadow:var(--shadow-depth-8-focused);animation-timing-function:ease-out}100%{box-shadow:none}}}';export{Uv as limel_form}
|