@sankhyalabs/sankhyablocks 10.1.0-dev.5 → 10.1.0-dev.50
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/LICENSE +4 -1
- package/dist/cjs/{ConfigStorage-72f34bd4.js → ConfigStorage-a1fab5ca.js} +19 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-991b0349.js → DataFetcher-384d2ce8.js} +2 -2751
- package/dist/cjs/{FormConfigHelper-e253a418.js → FormConfigHelper-28fe4668.js} +3 -1
- package/dist/cjs/{ISave-ebf6b4ed.js → ISave-ecbe9336.js} +1 -1
- package/dist/cjs/ImageUtils-d6139911.js +144 -0
- package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
- package/dist/cjs/{SnkFormConfigManager-cdbb29d4.js → SnkFormConfigManager-44386305.js} +5 -5
- package/dist/cjs/SnkMessageBuilder-a9300ebe.js +2833 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-011bec79.js → SnkMultiSelectionListDataSource-293bc3d2.js} +61 -47
- package/dist/cjs/{auth-fetcher-c3cac878.js → auth-fetcher-6b134ec4.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +1 -1
- package/dist/cjs/configs-button.cjs.entry.js +1 -1
- package/dist/cjs/css-shim-a27d231b.js +6 -0
- package/dist/cjs/{dataunit-fetcher-8bf469e7.js → dataunit-fetcher-b9822794.js} +66 -6
- package/dist/cjs/dom-ff96a4bc.js +75 -0
- package/dist/cjs/field-config_2.cjs.entry.js +3 -3
- package/dist/cjs/fields-layout.cjs.entry.js +6 -6
- package/dist/cjs/fields-selector.cjs.entry.js +3 -3
- package/dist/cjs/{form-config-fetcher-c7af90d8.js → form-config-fetcher-45d1964c.js} +19 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +3 -3
- package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1529 -177
- package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
- package/dist/cjs/loader.cjs.js +16 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
- package/dist/cjs/sankhyablocks.cjs.js +132 -4
- package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +166 -116
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +29 -9
- package/dist/cjs/snk-attach.cjs.entry.js +63 -25
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +3 -1
- package/dist/cjs/snk-crud.cjs.entry.js +350 -109
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -7
- package/dist/cjs/{snk-data-unit-7d587ad5.js → snk-data-unit-4b6dc396.js} +21 -12
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +19 -20
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +2 -2
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
- package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +41 -3
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +147 -94
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
- package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +70 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +22 -11
- package/dist/cjs/snk-grid.cjs.entry.js +67 -34
- package/dist/cjs/{snk-guides-viewer-366d5c32.js → snk-guides-viewer-b4ca3437.js} +78 -214
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -18
- package/dist/cjs/snk-image-input.cjs.entry.js +160 -0
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +8 -7
- package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +30 -35
- package/dist/cjs/snk-taskbar.cjs.entry.js +183 -126
- package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
- package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +9 -0
- package/dist/collection/components/snk-actions-button/actions/executor/launch-screen.executor.js +6 -3
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
- package/dist/collection/components/snk-application/snk-application.js +20 -2
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +94 -19
- package/dist/collection/components/snk-configurator/snk-configurator.js +2 -0
- package/dist/collection/components/snk-crud/snk-crud.css +50 -0
- package/dist/collection/components/snk-crud/snk-crud.js +165 -98
- package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +5 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +90 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +90 -205
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +5 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +7 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +22 -8
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +166 -78
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +3 -1
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -3
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +4 -4
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -4
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +2 -2
- package/dist/collection/components/snk-form-config/snk-form-config.js +15 -5
- package/dist/collection/components/snk-grid/snk-grid.css +24 -3
- package/dist/collection/components/snk-grid/snk-grid.js +174 -22
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +153 -51
- package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
- package/dist/collection/components/snk-image-input/snk-image-input.js +338 -0
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +135 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +35 -23
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +54 -37
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +248 -132
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/configs/ConfigStorage.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +40 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +24 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +1 -0
- package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +1 -0
- package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +1 -0
- package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
- package/dist/components/ConfigStorage.js +17 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/DataFetcher.js +3 -2731
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +3 -3
- package/dist/components/SnkMessageBuilder.js +2831 -0
- package/dist/components/dataunit-fetcher.js +65 -5
- package/dist/components/field-config2.js +4 -2
- package/dist/components/fields-layout2.js +4 -4
- package/dist/components/form-config-fetcher.js +18 -0
- package/dist/components/guides-configurator2.js +2 -2
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index2.js +90 -21
- package/dist/components/snk-actions-button2.js +12 -6
- package/dist/components/snk-application2.js +22 -2
- package/dist/components/snk-attach2.js +70 -28
- package/dist/components/snk-configurator2.js +2 -0
- package/dist/components/snk-crud.js +433 -176
- package/dist/components/snk-custom-slot-guide.d.ts +11 -0
- package/dist/components/snk-custom-slot-guide.js +55 -0
- package/dist/components/snk-data-exporter2.js +3 -1
- package/dist/components/snk-data-unit2.js +10 -1
- package/dist/components/snk-detail-view2.js +213 -318
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +116 -80
- package/dist/components/snk-filter-detail2.js +1 -1
- package/dist/components/snk-filter-item2.js +9 -3
- package/dist/components/snk-filter-modal2.js +22 -9
- package/dist/components/snk-filter-number.js +12 -8
- package/dist/components/snk-filter-period.js +13 -6
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config2.js +15 -5
- package/dist/components/snk-form-view2.js +79 -10
- package/dist/components/snk-grid-config2.js +109 -50
- package/dist/components/snk-grid2.js +107 -63
- package/dist/components/snk-image-input.d.ts +11 -0
- package/dist/components/snk-image-input.js +6 -0
- package/dist/components/snk-image-input2.js +316 -0
- package/dist/components/snk-layout-form-config2.js +1 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +0 -1
- package/dist/components/snk-simple-crud2.js +47 -46
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +256 -176
- package/dist/components/snk-view-representation2.js +1 -1
- package/dist/components/sortable.esm.js +76 -90
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/esm/{ConfigStorage-22324b6b.js → ConfigStorage-76872695.js} +19 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-450828a0.js → DataFetcher-e60f8d53.js} +3 -2731
- package/dist/esm/{FormConfigHelper-e89ca25c.js → FormConfigHelper-d09669f3.js} +3 -1
- package/dist/esm/{ISave-61153166.js → ISave-4929c071.js} +1 -1
- package/dist/esm/ImageUtils-efbea0e4.js +138 -0
- package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
- package/dist/esm/{SnkFormConfigManager-b5a92e12.js → SnkFormConfigManager-83f6b22f.js} +5 -5
- package/dist/esm/SnkMessageBuilder-1eb7a1af.js +2831 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-d7ce2e54.js → SnkMultiSelectionListDataSource-f6cabd15.js} +55 -41
- package/dist/esm/{auth-fetcher-eef9d01e.js → auth-fetcher-1a31c1e4.js} +1 -1
- package/dist/esm/config-header.entry.js +1 -1
- package/dist/esm/configs-button.entry.js +1 -1
- package/dist/esm/css-shim-9f2d321e.js +4 -0
- package/dist/esm/{dataunit-fetcher-da9596f6.js → dataunit-fetcher-c176e002.js} +65 -5
- package/dist/esm/dom-64053c71.js +73 -0
- package/dist/esm/field-config_2.entry.js +3 -3
- package/dist/esm/fields-layout.entry.js +6 -6
- package/dist/esm/fields-selector.entry.js +3 -3
- package/dist/esm/{form-config-fetcher-8d0a5e1c.js → form-config-fetcher-b44b2727.js} +19 -1
- package/dist/esm/guides-configurator.entry.js +3 -3
- package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1521 -177
- package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
- package/dist/esm/loader.js +17 -3
- package/dist/esm/pesquisa-grid_2.entry.js +6 -5
- package/dist/esm/sankhyablocks.js +133 -5
- package/dist/esm/shadow-css-98135883.js +387 -0
- package/dist/esm/snk-actions-button_9.entry.js +167 -117
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +28 -8
- package/dist/esm/snk-attach.entry.js +62 -24
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +3 -1
- package/dist/esm/snk-crud.entry.js +342 -101
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
- package/dist/esm/snk-data-exporter.entry.js +9 -7
- package/dist/esm/{snk-data-unit-99616a07.js → snk-data-unit-d8cfa950.js} +12 -3
- package/dist/esm/snk-data-unit.entry.js +5 -4
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +17 -18
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +2 -2
- package/dist/esm/snk-expression-group_2.entry.js +2 -2
- package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +41 -4
- package/dist/esm/snk-filter-bar_4.entry.js +148 -95
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -3
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-modal-item.entry.js +5 -4
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +11 -7
- package/dist/esm/snk-filter-period.entry.js +14 -7
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +71 -9
- package/dist/esm/snk-form_2.entry.js +22 -11
- package/dist/esm/snk-grid.entry.js +64 -31
- package/dist/esm/{snk-guides-viewer-240de636.js → snk-guides-viewer-cc37535b.js} +79 -215
- package/dist/esm/snk-guides-viewer.entry.js +11 -18
- package/dist/esm/snk-image-input.entry.js +156 -0
- package/dist/esm/snk-layout-form-config.entry.js +68 -0
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +8 -7
- package/dist/esm/snk-pesquisa.entry.js +6 -6
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +28 -33
- package/dist/esm/snk-taskbar.entry.js +184 -127
- package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
- package/dist/esm/taskbar-elements-63651ca7.js +149 -0
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
- package/dist/sankhyablocks/p-0afc64df.entry.js +1 -0
- package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
- package/dist/sankhyablocks/p-134702f6.entry.js +1 -0
- package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
- package/dist/sankhyablocks/p-20f03230.entry.js +1 -0
- package/dist/sankhyablocks/p-26f1919e.entry.js +1 -0
- package/dist/sankhyablocks/p-2af8aca3.js +1 -0
- package/dist/sankhyablocks/p-2c9d0870.js +2 -0
- package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/p-3072136e.js +1 -0
- package/dist/sankhyablocks/p-33492640.entry.js +1 -0
- package/dist/sankhyablocks/{p-002d4d2b.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/p-3870748a.js +28 -0
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/{p-7d6f1285.js → p-3c990841.js} +2 -2
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
- package/dist/sankhyablocks/p-4d04bc75.entry.js +1 -0
- package/dist/sankhyablocks/{p-840fb68c.js → p-4f7adf97.js} +2 -2
- package/dist/sankhyablocks/p-554c0e54.js +1 -0
- package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
- package/dist/sankhyablocks/p-68c1a093.js +1 -0
- package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
- package/dist/sankhyablocks/p-6e278003.js +60 -0
- package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/p-771b137e.js +1 -0
- package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
- package/dist/sankhyablocks/p-7ad91135.entry.js +1 -0
- package/dist/sankhyablocks/p-82bcb4cf.entry.js +1 -0
- package/dist/sankhyablocks/p-855ccf64.entry.js +1 -0
- package/dist/sankhyablocks/{p-118c221e.js → p-8b4d6719.js} +1 -1
- package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
- package/dist/sankhyablocks/p-8fe740b7.entry.js +11 -0
- package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
- package/dist/sankhyablocks/p-95af0bb1.entry.js +1 -0
- package/dist/sankhyablocks/{p-0b9a42ad.entry.js → p-9742ea0e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-9e77e136.js +1 -0
- package/dist/sankhyablocks/p-9e7dc97d.entry.js +1 -0
- package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/p-a905712a.entry.js +1 -0
- package/dist/sankhyablocks/{p-92cfc028.js → p-ab5e12fa.js} +1 -1
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-af673291.js +1 -0
- package/dist/sankhyablocks/p-aff2d081.entry.js +1 -0
- package/dist/sankhyablocks/p-b0a357b4.entry.js +1 -0
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-bab4cde4.entry.js +1 -0
- package/dist/sankhyablocks/p-c0d6a821.entry.js +1 -0
- package/dist/sankhyablocks/p-c3ec6642.js +19 -0
- package/dist/sankhyablocks/p-ca3728c0.entry.js +1 -0
- package/dist/sankhyablocks/p-cbb8e351.js +7 -0
- package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
- package/dist/sankhyablocks/p-d9ec8c4b.entry.js +1 -0
- package/dist/sankhyablocks/p-da455c82.js +12 -0
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/p-e8df1dea.entry.js +1 -0
- package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
- package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
- package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
- package/dist/sankhyablocks/p-f5ad0720.js +1 -0
- package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/p-fec88660.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +22 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +33 -11
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +13 -25
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +2 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +29 -1
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +11 -0
- package/dist/types/components/snk-image-input/snk-image-input.d.ts +57 -0
- package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
- package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +32 -21
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +347 -5
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
- package/package.json +7 -8
- package/react/components.d.ts +4 -0
- package/react/components.js +4 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/taskbar-elements-fb5d1e08.js +0 -132
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/taskbar-elements-faaf5d8f.js +0 -129
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
- package/dist/sankhyablocks/p-0948dc0a.entry.js +0 -11
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-1a9c5684.entry.js +0 -1
- package/dist/sankhyablocks/p-1d589380.entry.js +0 -1
- package/dist/sankhyablocks/p-21107f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-28f50632.js +0 -1
- package/dist/sankhyablocks/p-39be771c.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-4963dd2a.entry.js +0 -1
- package/dist/sankhyablocks/p-51833248.js +0 -7
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-55f6fef2.entry.js +0 -1
- package/dist/sankhyablocks/p-56f16390.entry.js +0 -1
- package/dist/sankhyablocks/p-58683e28.js +0 -60
- package/dist/sankhyablocks/p-5ea893c5.entry.js +0 -1
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-62aef37a.js +0 -1
- package/dist/sankhyablocks/p-62e9b9b8.entry.js +0 -1
- package/dist/sankhyablocks/p-669bb869.entry.js +0 -1
- package/dist/sankhyablocks/p-6ee2ca7a.entry.js +0 -1
- package/dist/sankhyablocks/p-7cac3870.entry.js +0 -1
- package/dist/sankhyablocks/p-86e54841.entry.js +0 -1
- package/dist/sankhyablocks/p-88b337fe.entry.js +0 -1
- package/dist/sankhyablocks/p-91005a00.entry.js +0 -1
- package/dist/sankhyablocks/p-91a9abb6.entry.js +0 -1
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-ada013c0.entry.js +0 -1
- package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
- package/dist/sankhyablocks/p-b987e15d.js +0 -1
- package/dist/sankhyablocks/p-c35fc941.js +0 -26
- package/dist/sankhyablocks/p-c4fcf1fb.entry.js +0 -1
- package/dist/sankhyablocks/p-c98c79c3.entry.js +0 -1
- package/dist/sankhyablocks/p-cadf4846.entry.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-e91c3c57.entry.js +0 -1
- package/dist/sankhyablocks/p-ea729922.entry.js +0 -1
- package/dist/sankhyablocks/p-ec5fbad8.js +0 -1
- package/dist/sankhyablocks/p-f5e942b7.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DataType as t,ApplicationContext as e,StringUtils as n,ErrorException as i,WarningException as r,ObjectUtils as s,ServiceCanceledException as o}from"@sankhyalabs/core";import{P as u}from"./p-8d884fab.js";import{S as a}from"./p-554c0e54.js";import{DataUnitTransient as c}from"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(t,e,n){return t(n={path:e,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var f=h((function(t,e){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==l&&l,i=function(){function t(){this.fetch=!1,this.DOMException=n.DOMException}return t.prototype=n,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==l&&l||{},i="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,s="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in n,u="ArrayBuffer"in n;if(u)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function h(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function v(t){this.map={},t instanceof v?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function m(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function y(t){var e=new FileReader,n=m(e);return e.readAsArrayBuffer(t),n}function b(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:s&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&s&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=b(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=b(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(s)return this.blob().then(y);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,n,i,r=p(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,n=m(e=new FileReader),i=/charset=([A-Za-z0-9_-]+)/.exec(t.type),e.readAsText(t,i?i[1]:"utf-8"),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i<e.length;i++)n[i]=String.fromCharCode(e[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(t,e){t=h(t),e=f(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},v.prototype.delete=function(t){delete this.map[h(t)]},v.prototype.get=function(t){return t=h(t),this.has(t)?this.map[t]:null},v.prototype.has=function(t){return this.map.hasOwnProperty(h(t))},v.prototype.set=function(t,e){this.map[h(t)]=f(e)},v.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},v.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),d(t)},v.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),d(t)},v.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),d(t)},r&&(v.prototype[Symbol.iterator]=v.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(t,e){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var i,r,s=(e=e||{}).body;if(t instanceof E){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new v(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,s||null==t._bodyInit||(s=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new v(e.headers)),this.method=(r=(i=e.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&s)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(s),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function O(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new v(e.headers),this.url=e.url||"",this._initBody(t)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},w.call(E.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var S=[301,302,303,307,308];T.redirect=function(t,e){if(-1===S.indexOf(e))throw new RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function D(t,i){return new Promise((function(r,o){var a=new E(t,i);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new v,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();try{e.append(i,r)}catch(t){console.warn("Response "+t.message)}}})),e)};n.status=0===a.url.indexOf("file://")&&(c.status<200||c.status>599)?200:c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var i="response"in c?c.response:c.responseText;setTimeout((function(){r(new T(i,n))}),0)},c.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){o(new e.DOMException("Aborted","AbortError"))}),0)},c.open(a.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(a.url),!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&(s?c.responseType="blob":u&&(c.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof v||n.Headers&&i.headers instanceof n.Headers)){var d=[];Object.getOwnPropertyNames(i.headers).forEach((function(t){d.push(h(t)),c.setRequestHeader(t,f(i.headers[t]))})),a.headers.forEach((function(t,e){-1===d.indexOf(e)&&c.setRequestHeader(e,t)}))}else a.headers.forEach((function(t,e){c.setRequestHeader(e,t)}));a.signal&&(a.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",l)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}D.polyfill=!0,n.fetch||(n.fetch=D,n.Headers=v,n.Request=E,n.Response=T),e.Headers=v,e.Request=E,e.Response=T,e.fetch=D,Object.defineProperty(e,"__esModule",{value:!0})}({})}(i),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var r=n.fetch?n:i;(e=r.fetch).default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,t.exports=e})),d=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isObjectLike=function(t){return"object"==typeof t&&null!==t}})),v=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.invariant=function(t,e){if(!Boolean(t))throw new Error(null!=e?e:"Unexpected invariant triggered.")}})),p=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLocation=function(t,e){let i=0,r=1;for(const s of t.body.matchAll(n)){if("number"==typeof s.index||(0,v.invariant)(!1),s.index>=e)break;i=s.index+s[0].length,r+=1}return{line:r,column:e+1-i}};const n=/\r\n|[\n\r]/g})),m=h((function(t,e){function n(t,e){const n=t.locationOffset.column-1,r="".padStart(n)+t.body,s=e.line-1,o=e.line+(t.locationOffset.line-1),u=e.column+(1===e.line?n:0),a=`${t.name}:${o}:${u}\n`,c=r.split(/\r\n|[\n\r]/g),l=c[s];if(l.length>120){const t=Math.floor(u/80),e=u%80,n=[];for(let t=0;t<l.length;t+=80)n.push(l.slice(t,t+80));return a+i([[`${o} |`,n[0]],...n.slice(1,t+1).map((t=>["|",t])),["|","^".padStart(e)],["|",n[t+1]]])}return a+i([[o-1+" |",c[s-1]],[`${o} |`,l],["|","^".padStart(u)],[`${o+1} |`,c[s+1]]])}function i(t){const e=t.filter((([t,e])=>void 0!==e)),n=Math.max(...e.map((([t])=>t.length)));return e.map((([t,e])=>t.padStart(n)+(e?" "+e:""))).join("\n")}Object.defineProperty(e,"__esModule",{value:!0}),e.printLocation=function(t){return n(t.source,(0,p.getLocation)(t.source,t.start))},e.printSourceLocation=n})),y=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLError=void 0,e.formatError=function(t){return t.toJSON()},e.printError=function(t){return t.toString()};class n extends Error{constructor(t,...e){var r,s,o;const{nodes:u,source:a,positions:c,path:l,originalError:h,extensions:f}=function(t){const e=t[0];return null==e||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}(e);super(t),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=h?h:void 0,this.nodes=i(Array.isArray(u)?u:u?[u]:void 0);const v=i(null===(r=this.nodes)||void 0===r?void 0:r.map((t=>t.loc)).filter((t=>null!=t)));this.source=null!=a?a:null==v||null===(s=v[0])||void 0===s?void 0:s.source,this.positions=null!=c?c:null==v?void 0:v.map((t=>t.start)),this.locations=c&&a?c.map((t=>(0,p.getLocation)(a,t))):null==v?void 0:v.map((t=>(0,p.getLocation)(t.source,t.start)));const m=(0,d.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!==(o=null!=f?f:m)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,n):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const e of this.nodes)e.loc&&(t+="\n\n"+(0,m.printLocation)(e.loc));else if(this.source&&this.locations)for(const e of this.locations)t+="\n\n"+(0,m.printSourceLocation)(this.source,e);return t}toJSON(){const t={message:this.message};return null!=this.locations&&(t.locations=this.locations),null!=this.path&&(t.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function i(t){return void 0===t||0===t.length?void 0:t}e.GraphQLError=n})),b=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.syntaxError=function(t,e,n){return new y.GraphQLError(`Syntax Error: ${n}`,{source:t,positions:[e]})}})),w=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Token=e.QueryDocumentKeys=e.OperationTypeNode=e.Location=void 0,e.isNode=function(t){const e=null==t?void 0:t.kind;return"string"==typeof e&&s.has(e)};class n{constructor(t,e,n){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}e.Location=n;class i{constructor(t,e,n,i,r,s){this.kind=t,this.start=e,this.end=n,this.line=i,this.column=r,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}e.Token=i;const r={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};e.QueryDocumentKeys=r;const s=new Set(Object.keys(r));var o;e.OperationTypeNode=o,function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"}(o||(e.OperationTypeNode=o={}))})),g=h((function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.DirectiveLocation=void 0,e.DirectiveLocation=n,function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(n||(e.DirectiveLocation=n={}))})),E=h((function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Kind=void 0,e.Kind=n,function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(e.Kind=n={}))})),O=h((function(t,e){function n(t){return t>=48&&t<=57}function i(t){return t>=97&&t<=122||t>=65&&t<=90}Object.defineProperty(e,"__esModule",{value:!0}),e.isDigit=n,e.isLetter=i,e.isNameContinue=function(t){return i(t)||n(t)||95===t},e.isNameStart=function(t){return i(t)||95===t},e.isWhiteSpace=function(t){return 9===t||32===t}})),T=h((function(t,e){function n(t){let e=0;for(;e<t.length&&(0,O.isWhiteSpace)(t.charCodeAt(e));)++e;return e}Object.defineProperty(e,"__esModule",{value:!0}),e.dedentBlockStringLines=function(t){var e;let i=Number.MAX_SAFE_INTEGER,r=null,s=-1;for(let e=0;e<t.length;++e){var o;const u=t[e],a=n(u);a!==u.length&&(r=null!==(o=r)&&void 0!==o?o:e,s=e,0!==e&&a<i&&(i=a))}return t.map(((t,e)=>0===e?t:t.slice(i))).slice(null!==(e=r)&&void 0!==e?e:0,s+1)},e.isPrintableAsBlockString=function(t){if(""===t)return!0;let e=!0,n=!1,i=!0,r=!1;for(let s=0;s<t.length;++s)switch(t.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(e&&!r)return!1;r=!0,e=!0,n=!1;break;case 9:case 32:n||(n=e);break;default:i&&(i=n),e=!1}return!e&&(!i||!r)},e.printBlockString=function(t,e){const n=t.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),r=1===i.length,s=i.length>1&&i.slice(1).every((t=>0===t.length||(0,O.isWhiteSpace)(t.charCodeAt(0)))),o=n.endsWith('\\"""'),u=t.endsWith('"')&&!o,a=t.endsWith("\\"),c=u||a,l=!(null!=e&&e.minimize)&&(!r||t.length>70||c||s||o);let h="";const f=r&&(0,O.isWhiteSpace)(t.charCodeAt(0));return(l&&!f||s)&&(h+="\n"),h+=n,(l||c)&&(h+="\n"),'"""'+h+'"""'}})),S=h((function(t,e){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.TokenKind=void 0,e.TokenKind=n,function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"}(n||(e.TokenKind=n={}))})),D=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Lexer=void 0,e.isPunctuatorTokenKind=function(t){return t===S.TokenKind.BANG||t===S.TokenKind.DOLLAR||t===S.TokenKind.AMP||t===S.TokenKind.PAREN_L||t===S.TokenKind.PAREN_R||t===S.TokenKind.SPREAD||t===S.TokenKind.COLON||t===S.TokenKind.EQUALS||t===S.TokenKind.AT||t===S.TokenKind.BRACKET_L||t===S.TokenKind.BRACKET_R||t===S.TokenKind.BRACE_L||t===S.TokenKind.PIPE||t===S.TokenKind.BRACE_R};class n{constructor(t){const e=new w.Token(S.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==S.TokenKind.EOF)do{if(t.next)t=t.next;else{const e=c(this,t.end);t.next=e,e.prev=t,t=e}}while(t.kind===S.TokenKind.COMMENT);return t}}function i(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function r(t,e){return s(t.charCodeAt(e))&&o(t.charCodeAt(e+1))}function s(t){return t>=55296&&t<=56319}function o(t){return t>=56320&&t<=57343}function u(t,e){const n=t.source.body.codePointAt(e);if(void 0===n)return S.TokenKind.EOF;if(n>=32&&n<=126){const t=String.fromCodePoint(n);return'"'===t?"'\"'":`"${t}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function a(t,e,n,i,r){return new w.Token(e,n,i,t.line,1+n-t.lineStart,r)}function c(t,e){const n=t.source.body,s=n.length;let o=e;for(;o<s;){const e=n.charCodeAt(o);switch(e){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++t.line,t.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++t.line,t.lineStart=o;continue;case 35:return l(t,o);case 33:return a(t,S.TokenKind.BANG,o,o+1);case 36:return a(t,S.TokenKind.DOLLAR,o,o+1);case 38:return a(t,S.TokenKind.AMP,o,o+1);case 40:return a(t,S.TokenKind.PAREN_L,o,o+1);case 41:return a(t,S.TokenKind.PAREN_R,o,o+1);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return a(t,S.TokenKind.SPREAD,o,o+3);break;case 58:return a(t,S.TokenKind.COLON,o,o+1);case 61:return a(t,S.TokenKind.EQUALS,o,o+1);case 64:return a(t,S.TokenKind.AT,o,o+1);case 91:return a(t,S.TokenKind.BRACKET_L,o,o+1);case 93:return a(t,S.TokenKind.BRACKET_R,o,o+1);case 123:return a(t,S.TokenKind.BRACE_L,o,o+1);case 124:return a(t,S.TokenKind.PIPE,o,o+1);case 125:return a(t,S.TokenKind.BRACE_R,o,o+1);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?E(t,o):d(t,o)}if((0,O.isDigit)(e)||45===e)return h(t,o,e);if((0,O.isNameStart)(e))return D(t,o);throw(0,b.syntaxError)(t.source,o,39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":i(e)||r(n,o)?`Unexpected character: ${u(t,o)}.`:`Invalid character: ${u(t,o)}.`)}return a(t,S.TokenKind.EOF,s,s)}function l(t,e){const n=t.source.body,s=n.length;let o=e+1;for(;o<s;){const t=n.charCodeAt(o);if(10===t||13===t)break;if(i(t))++o;else{if(!r(n,o))break;o+=2}}return a(t,S.TokenKind.COMMENT,e,o,n.slice(e+1,o))}function h(t,e,n){const i=t.source.body;let r=e,s=n,o=!1;if(45===s&&(s=i.charCodeAt(++r)),48===s){if(s=i.charCodeAt(++r),(0,O.isDigit)(s))throw(0,b.syntaxError)(t.source,r,`Invalid number, unexpected digit after 0: ${u(t,r)}.`)}else r=f(t,r,s),s=i.charCodeAt(r);if(46===s&&(o=!0,s=i.charCodeAt(++r),r=f(t,r,s),s=i.charCodeAt(r)),69!==s&&101!==s||(o=!0,s=i.charCodeAt(++r),43!==s&&45!==s||(s=i.charCodeAt(++r)),r=f(t,r,s),s=i.charCodeAt(r)),46===s||(0,O.isNameStart)(s))throw(0,b.syntaxError)(t.source,r,`Invalid number, expected digit but got: ${u(t,r)}.`);return a(t,o?S.TokenKind.FLOAT:S.TokenKind.INT,e,r,i.slice(e,r))}function f(t,e,n){if(!(0,O.isDigit)(n))throw(0,b.syntaxError)(t.source,e,`Invalid number, expected digit but got: ${u(t,e)}.`);const i=t.source.body;let r=e+1;for(;(0,O.isDigit)(i.charCodeAt(r));)++r;return r}function d(t,e){const n=t.source.body,s=n.length;let o=e+1,c=o,l="";for(;o<s;){const s=n.charCodeAt(o);if(34===s)return l+=n.slice(c,o),a(t,S.TokenKind.STRING,e,o+1,l);if(92!==s){if(10===s||13===s)break;if(i(s))++o;else{if(!r(n,o))throw(0,b.syntaxError)(t.source,o,`Invalid character within String: ${u(t,o)}.`);o+=2}}else{l+=n.slice(c,o);const e=117===n.charCodeAt(o+1)?123===n.charCodeAt(o+2)?v(t,o):p(t,o):g(t,o);l+=e.value,o+=e.size,c=o}}throw(0,b.syntaxError)(t.source,o,"Unterminated string.")}function v(t,e){const n=t.source.body;let r=0,s=3;for(;s<12;){const t=n.charCodeAt(e+s++);if(125===t){if(s<5||!i(r))break;return{value:String.fromCodePoint(r),size:s}}if(r=r<<4|y(t),r<0)break}throw(0,b.syntaxError)(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+s)}".`)}function p(t,e){const n=t.source.body,r=m(n,e+2);if(i(r))return{value:String.fromCodePoint(r),size:6};if(s(r)&&92===n.charCodeAt(e+6)&&117===n.charCodeAt(e+7)){const t=m(n,e+8);if(o(t))return{value:String.fromCodePoint(r,t),size:12}}throw(0,b.syntaxError)(t.source,e,`Invalid Unicode escape sequence: "${n.slice(e,e+6)}".`)}function m(t,e){return y(t.charCodeAt(e))<<12|y(t.charCodeAt(e+1))<<8|y(t.charCodeAt(e+2))<<4|y(t.charCodeAt(e+3))}function y(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function g(t,e){const n=t.source.body;switch(n.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw(0,b.syntaxError)(t.source,e,`Invalid character escape sequence: "${n.slice(e,e+2)}".`)}function E(t,e){const n=t.source.body,s=n.length;let o=t.lineStart,c=e+3,l=c,h="";const f=[];for(;c<s;){const s=n.charCodeAt(c);if(34===s&&34===n.charCodeAt(c+1)&&34===n.charCodeAt(c+2)){h+=n.slice(l,c),f.push(h);const i=a(t,S.TokenKind.BLOCK_STRING,e,c+3,(0,T.dedentBlockStringLines)(f).join("\n"));return t.line+=f.length-1,t.lineStart=o,i}if(92!==s||34!==n.charCodeAt(c+1)||34!==n.charCodeAt(c+2)||34!==n.charCodeAt(c+3))if(10!==s&&13!==s)if(i(s))++c;else{if(!r(n,c))throw(0,b.syntaxError)(t.source,c,`Invalid character within String: ${u(t,c)}.`);c+=2}else h+=n.slice(l,c),f.push(h),13===s&&10===n.charCodeAt(c+1)?c+=2:++c,h="",l=c,o=c;else h+=n.slice(l,c),l=c+1,c+=4}throw(0,b.syntaxError)(t.source,c,"Unterminated string.")}function D(t,e){const n=t.source.body,i=n.length;let r=e+1;for(;r<i;){const t=n.charCodeAt(r);if(!(0,O.isNameContinue)(t))break;++r}return a(t,S.TokenKind.NAME,e,r,n.slice(e,r))}e.Lexer=n})),j=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.devAssert=function(t,e){if(!Boolean(t))throw new Error(e)}})),I=h((function(t,e){function n(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,e){if(null===t)return"null";if(e.includes(t))return"[Circular]";const i=[...e,t];if(function(t){return"function"==typeof t.toJSON}(t)){const e=t.toJSON();if(e!==t)return"string"==typeof e?e:n(e,i)}else if(Array.isArray(t))return function(t,e){if(0===t.length)return"[]";if(e.length>2)return"[Array]";const i=Math.min(10,t.length),r=t.length-i,s=[];for(let r=0;r<i;++r)s.push(n(t[r],e));return 1===r?s.push("... 1 more item"):r>1&&s.push(`... ${r} more items`),"["+s.join(", ")+"]"}(t,i);return function(t,e){const i=Object.entries(t);if(0===i.length)return"{}";if(e.length>2)return"["+function(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){const e=t.constructor.name;if("string"==typeof e&&""!==e)return e}return e}(t)+"]";const r=i.map((([t,i])=>t+": "+n(i,e)));return"{ "+r.join(", ")+" }"}(t,i)}(t,e);default:return String(t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.inspect=function(t){return n(t,[])}})),N=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.instanceOf=void 0,e.instanceOf=function(t,e){return t instanceof e}})),x=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Source=void 0,e.isSource=function(t){return(0,N.instanceOf)(t,n)};class n{constructor(t,e="GraphQL request",n={line:1,column:1}){"string"==typeof t||(0,j.devAssert)(!1,`Body must be a string. Received: ${(0,I.inspect)(t)}.`),this.body=t,this.name=e,this.locationOffset=n,this.locationOffset.line>0||(0,j.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,j.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}e.Source=n})),k=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0,e.parse=function(t,e){return new n(t,e).parseDocument()},e.parseConstValue=function(t,e){const i=new n(t,e);i.expectToken(S.TokenKind.SOF);const r=i.parseConstValueLiteral();return i.expectToken(S.TokenKind.EOF),r},e.parseType=function(t,e){const i=new n(t,e);i.expectToken(S.TokenKind.SOF);const r=i.parseTypeReference();return i.expectToken(S.TokenKind.EOF),r},e.parseValue=function(t,e){const i=new n(t,e);i.expectToken(S.TokenKind.SOF);const r=i.parseValueLiteral(!1);return i.expectToken(S.TokenKind.EOF),r};class n{constructor(t,e={}){const n=(0,x.isSource)(t)?t:new x.Source(t);this._lexer=new D.Lexer(n),this._options=e,this._tokenCounter=0}parseName(){const t=this.expectToken(S.TokenKind.NAME);return this.node(t,{kind:E.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:E.Kind.DOCUMENT,definitions:this.many(S.TokenKind.SOF,this.parseDefinition,S.TokenKind.EOF)})}parseDefinition(){if(this.peek(S.TokenKind.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(e.kind===S.TokenKind.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw(0,b.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(S.TokenKind.BRACE_L))return this.node(t,{kind:E.Kind.OPERATION_DEFINITION,operation:w.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseOperationType();let n;return this.peek(S.TokenKind.NAME)&&(n=this.parseName()),this.node(t,{kind:E.Kind.OPERATION_DEFINITION,operation:e,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(S.TokenKind.NAME);switch(t.value){case"query":return w.OperationTypeNode.QUERY;case"mutation":return w.OperationTypeNode.MUTATION;case"subscription":return w.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(S.TokenKind.PAREN_L,this.parseVariableDefinition,S.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:E.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(S.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(S.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(S.TokenKind.DOLLAR),this.node(t,{kind:E.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:E.Kind.SELECTION_SET,selections:this.many(S.TokenKind.BRACE_L,this.parseSelection,S.TokenKind.BRACE_R)})}parseSelection(){return this.peek(S.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let n,i;return this.expectOptionalToken(S.TokenKind.COLON)?(n=e,i=this.parseName()):i=e,this.node(t,{kind:E.Kind.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(S.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){return this.optionalMany(S.TokenKind.PAREN_L,t?this.parseConstArgument:this.parseArgument,S.TokenKind.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,n=this.parseName();return this.expectToken(S.TokenKind.COLON),this.node(e,{kind:E.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(S.TokenKind.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(S.TokenKind.NAME)?this.node(t,{kind:E.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:E.Kind.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this.node(t,!0===this._options.allowLegacyFragmentVariables?{kind:E.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:E.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case S.TokenKind.BRACKET_L:return this.parseList(t);case S.TokenKind.BRACE_L:return this.parseObject(t);case S.TokenKind.INT:return this.advanceLexer(),this.node(e,{kind:E.Kind.INT,value:e.value});case S.TokenKind.FLOAT:return this.advanceLexer(),this.node(e,{kind:E.Kind.FLOAT,value:e.value});case S.TokenKind.STRING:case S.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case S.TokenKind.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:E.Kind.BOOLEAN,value:!0});case"false":return this.node(e,{kind:E.Kind.BOOLEAN,value:!1});case"null":return this.node(e,{kind:E.Kind.NULL});default:return this.node(e,{kind:E.Kind.ENUM,value:e.value})}case S.TokenKind.DOLLAR:if(t){if(this.expectToken(S.TokenKind.DOLLAR),this._lexer.token.kind===S.TokenKind.NAME)throw(0,b.syntaxError)(this._lexer.source,e.start,`Unexpected variable "$${this._lexer.token.value}" in constant value.`);throw this.unexpected(e)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:E.Kind.STRING,value:t.value,block:t.kind===S.TokenKind.BLOCK_STRING})}parseList(t){return this.node(this._lexer.token,{kind:E.Kind.LIST,values:this.any(S.TokenKind.BRACKET_L,(()=>this.parseValueLiteral(t)),S.TokenKind.BRACKET_R)})}parseObject(t){return this.node(this._lexer.token,{kind:E.Kind.OBJECT,fields:this.any(S.TokenKind.BRACE_L,(()=>this.parseObjectField(t)),S.TokenKind.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,n=this.parseName();return this.expectToken(S.TokenKind.COLON),this.node(e,{kind:E.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(S.TokenKind.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(S.TokenKind.AT),this.node(e,{kind:E.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(S.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(S.TokenKind.BRACKET_R),e=this.node(t,{kind:E.Kind.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(S.TokenKind.BANG)?this.node(t,{kind:E.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:E.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(S.TokenKind.STRING)||this.peek(S.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(S.TokenKind.BRACE_L,this.parseOperationTypeDefinition,S.TokenKind.BRACE_R);return this.node(t,{kind:E.Kind.SCHEMA_DEFINITION,description:e,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(S.TokenKind.COLON);const n=this.parseNamedType();return this.node(t,{kind:E.Kind.OPERATION_TYPE_DEFINITION,operation:e,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:E.Kind.SCALAR_TYPE_DEFINITION,description:e,name:n,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:E.Kind.OBJECT_TYPE_DEFINITION,description:e,name:n,interfaces:i,directives:r,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(S.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(S.TokenKind.BRACE_L,this.parseFieldDefinition,S.TokenKind.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(S.TokenKind.COLON);const r=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:E.Kind.FIELD_DEFINITION,description:e,name:n,arguments:i,type:r,directives:s})}parseArgumentDefs(){return this.optionalMany(S.TokenKind.PAREN_L,this.parseInputValueDef,S.TokenKind.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseName();this.expectToken(S.TokenKind.COLON);const i=this.parseTypeReference();let r;this.expectOptionalToken(S.TokenKind.EQUALS)&&(r=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:E.Kind.INPUT_VALUE_DEFINITION,description:e,name:n,type:i,defaultValue:r,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:E.Kind.INTERFACE_TYPE_DEFINITION,description:e,name:n,interfaces:i,directives:r,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(t,{kind:E.Kind.UNION_TYPE_DEFINITION,description:e,name:n,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(S.TokenKind.EQUALS)?this.delimitedMany(S.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(t,{kind:E.Kind.ENUM_TYPE_DEFINITION,description:e,name:n,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(S.TokenKind.BRACE_L,this.parseEnumValueDefinition,S.TokenKind.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:E.Kind.ENUM_VALUE_DEFINITION,description:e,name:n,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,b.syntaxError)(this._lexer.source,this._lexer.token.start,`${i(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(t,{kind:E.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:n,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(S.TokenKind.BRACE_L,this.parseInputValueDef,S.TokenKind.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===S.TokenKind.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),n=this.optionalMany(S.TokenKind.BRACE_L,this.parseOperationTypeDefinition,S.TokenKind.BRACE_R);if(0===e.length&&0===n.length)throw this.unexpected();return this.node(t,{kind:E.Kind.SCHEMA_EXTENSION,directives:e,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(t,{kind:E.Kind.SCALAR_TYPE_EXTENSION,name:e,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:E.Kind.OBJECT_TYPE_EXTENSION,name:e,interfaces:n,directives:i,fields:r})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(t,{kind:E.Kind.INTERFACE_TYPE_EXTENSION,name:e,interfaces:n,directives:i,fields:r})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:E.Kind.UNION_TYPE_EXTENSION,name:e,directives:n,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:E.Kind.ENUM_TYPE_EXTENSION,name:e,directives:n,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return this.node(t,{kind:E.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:n,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(S.TokenKind.AT);const n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:E.Kind.DIRECTIVE_DEFINITION,description:e,name:n,arguments:i,repeatable:r,locations:s})}parseDirectiveLocations(){return this.delimitedMany(S.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(g.DirectiveLocation,e.value))return e;throw this.unexpected(t)}node(t,e){return!0!==this._options.noLocation&&(e.loc=new w.Location(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw(0,b.syntaxError)(this._lexer.source,e.start,`Expected ${r(t)}, found ${i(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t&&(this.advanceLexer(),!0)}expectKeyword(t){const e=this._lexer.token;if(e.kind!==S.TokenKind.NAME||e.value!==t)throw(0,b.syntaxError)(this._lexer.source,e.start,`Expected "${t}", found ${i(e)}.`);this.advanceLexer()}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===S.TokenKind.NAME&&e.value===t&&(this.advanceLexer(),!0)}unexpected(t){const e=null!=t?t:this._lexer.token;return(0,b.syntaxError)(this._lexer.source,e.start,`Unexpected ${i(e)}.`)}any(t,e,n){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(n);)i.push(e.call(this));return i}optionalMany(t,e,n){if(this.expectOptionalToken(t)){const t=[];do{t.push(e.call(this))}while(!this.expectOptionalToken(n));return t}return[]}many(t,e,n){this.expectToken(t);const i=[];do{i.push(e.call(this))}while(!this.expectOptionalToken(n));return i}delimitedMany(t,e){this.expectOptionalToken(t);const n=[];do{n.push(e.call(this))}while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(void 0!==t&&e.kind!==S.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,b.syntaxError)(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function i(t){const e=t.value;return r(t.kind)+(null!=e?` "${e}"`:"")}function r(t){return(0,D.isPunctuatorTokenKind)(t)?`"${t}"`:t}e.Parser=n})),_=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.printString=function(t){return`"${t.replace(n,i)}"`};const n=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(t){return r[t.charCodeAt(0)]}const r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]})),A=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BREAK=void 0,e.getEnterLeaveForKind=i,e.getVisitFn=function(t,e,n){const{enter:r,leave:s}=i(t,e);return n?s:r},e.visit=function(t,e,r=w.QueryDocumentKeys){const s=new Map;for(const t of Object.values(E.Kind))s.set(t,i(e,t));let o,u,a,c=Array.isArray(t),l=[t],h=-1,f=[],d=t;const v=[],p=[];do{h++;const t=h===l.length,i=t&&0!==f.length;if(t){if(u=0===p.length?void 0:v[v.length-1],d=a,a=p.pop(),i)if(c){d=d.slice();let t=0;for(const[e,n]of f){const i=e-t;null===n?(d.splice(i,1),t++):d[i]=n}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(const[t,e]of f)d[t]=e}h=o.index,l=o.keys,f=o.edits,c=o.inArray,o=o.prev}else if(a){if(u=c?h:l[h],d=a[u],null==d)continue;v.push(u)}let g;if(!Array.isArray(d)){var m,y;(0,w.isNode)(d)||(0,j.devAssert)(!1,`Invalid AST Node: ${(0,I.inspect)(d)}.`);const i=t?null===(m=s.get(d.kind))||void 0===m?void 0:m.leave:null===(y=s.get(d.kind))||void 0===y?void 0:y.enter;if(g=null==i?void 0:i.call(e,d,u,a,v,p),g===n)break;if(!1===g){if(!t){v.pop();continue}}else if(void 0!==g&&(f.push([u,g]),!t)){if(!(0,w.isNode)(g)){v.pop();continue}d=g}}var b;void 0===g&&i&&f.push([u,d]),t?v.pop():(o={inArray:c,index:h,keys:l,edits:f,prev:o},c=Array.isArray(d),l=c?d:null!==(b=r[d.kind])&&void 0!==b?b:[],h=-1,f=[],a&&p.push(a),a=d)}while(void 0!==o);return 0!==f.length?f[f.length-1][1]:t},e.visitInParallel=function(t){const e=new Array(t.length).fill(null),r=Object.create(null);for(const s of Object.values(E.Kind)){let o=!1;const u=new Array(t.length).fill(void 0),a=new Array(t.length).fill(void 0);for(let e=0;e<t.length;++e){const{enter:n,leave:r}=i(t[e],s);o||(o=null!=n||null!=r),u[e]=n,a[e]=r}o&&(r[s]={enter(...i){const r=i[0];for(let o=0;o<t.length;o++)if(null===e[o]){var s;const a=null===(s=u[o])||void 0===s?void 0:s.apply(t[o],i);if(!1===a)e[o]=r;else if(a===n)e[o]=n;else if(void 0!==a)return a}},leave(...i){const r=i[0];for(let o=0;o<t.length;o++)if(null===e[o]){var s;const r=null===(s=a[o])||void 0===s?void 0:s.apply(t[o],i);if(r===n)e[o]=n;else if(void 0!==r&&!1!==r)return r}else e[o]===r&&(e[o]=null)}})}return r};const n=Object.freeze({});function i(t,e){const n=t[e];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}e.BREAK=n})),F=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.print=function(t){return(0,A.visit)(t,n)};const n={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>i(t.definitions,"\n\n")},OperationDefinition:{leave(t){const e=s("(",i(t.variableDefinitions,", "),")"),n=i([t.operation,i([t.name,e]),i(t.directives," ")]," ");return("query"===n?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r})=>t+": "+e+s(" = ",n)+s(" ",i(r," "))},SelectionSet:{leave:({selections:t})=>r(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:u}){const a=s("",t,": ")+e;let c=a+s("(",i(n,", "),")");return c.length>80&&(c=a+s("(\n",o(i(n,"\n")),"\n)")),i([c,i(r," "),u]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+s(" ",i(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>i(["...",s("on ",t),i(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:o})=>`fragment ${t}${s("(",i(n,", "),")")} on ${e} ${s("",i(r," ")," ")}`+o},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?(0,T.printBlockString)(t):(0,_.printString)(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+i(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+i(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+s("(",i(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>s("",t,"\n")+i(["schema",i(e," "),r(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>s("",t,"\n")+i(["scalar",e,i(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:o,fields:u})=>s("",t,"\n")+i(["type",e,s("implements ",i(n," & ")),i(o," "),r(u)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:a})=>s("",t,"\n")+e+(u(n)?s("(\n",o(i(n,"\n")),"\n)"):s("(",i(n,", "),")"))+": "+r+s(" ",i(a," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:o})=>s("",t,"\n")+i([e+": "+n,s("= ",r),i(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:o,fields:u})=>s("",t,"\n")+i(["interface",e,s("implements ",i(n," & ")),i(o," "),r(u)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>s("",t,"\n")+i(["union",e,i(n," "),s("= ",i(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:o})=>s("",t,"\n")+i(["enum",e,i(n," "),r(o)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>s("",t,"\n")+i([e,i(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:o})=>s("",t,"\n")+i(["input",e,i(n," "),r(o)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:r,locations:a})=>s("",t,"\n")+"directive @"+e+(u(n)?s("(\n",o(i(n,"\n")),"\n)"):s("(",i(n,", "),")"))+(r?" repeatable":"")+" on "+i(a," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>i(["extend schema",i(t," "),r(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>i(["extend scalar",t,i(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:o})=>i(["extend type",t,s("implements ",i(e," & ")),i(n," "),r(o)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:o})=>i(["extend interface",t,s("implements ",i(e," & ")),i(n," "),r(o)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>i(["extend union",t,i(e," "),s("= ",i(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>i(["extend enum",t,i(e," "),r(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>i(["extend input",t,i(e," "),r(n)]," ")}};function i(t,e=""){var n;return null!==(n=null==t?void 0:t.filter((t=>t)).join(e))&&void 0!==n?n:""}function r(t){return s("{\n",o(i(t,"\n")),"\n}")}function s(t,e,n=""){return null!=e&&""!==e?t+e+n:""}function o(t){return s(" ",t.replace(/\n/g,"\n "))}function u(t){var e;return null!==(e=null==t?void 0:t.some((t=>t.includes("\n"))))&&void 0!==e&&e}})),$=function(t){var e=t.name,n=t.type;this.uri=t.uri,this.name=e,this.type=n},q=function(t){return"undefined"!=typeof File&&t instanceof File||"undefined"!=typeof Blob&&t instanceof Blob||t instanceof $},C=function t(e,n,i){var r;void 0===n&&(n=""),void 0===i&&(i=q);var s=new Map;function o(t,e){var n=s.get(e);n?n.push.apply(n,t):s.set(e,t)}if(i(e))r=null,o([n],e);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&e instanceof FileList)r=Array.prototype.map.call(e,(function(t,e){return o([""+u+e],t),null}));else if(Array.isArray(e))r=e.map((function(e,n){var r=t(e,""+u+n,i);return r.files.forEach(o),r.clone}));else if(e&&e.constructor===Object)for(var a in r={},e){var c=t(e[a],""+u+a,i);c.files.forEach(o),r[a]=c.clone}else r=e}return{clone:r,files:s}},U=q,M="object"==typeof self?self.FormData:window.FormData,P=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultJsonSerializer=void 0,e.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}})),R=h((function(t,e){var n=l&&l.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(M),r=function(t){return U(t)||null!==t&&"object"==typeof t&&"function"==typeof t.pipe};e.default=function(t,e,n,s){void 0===s&&(s=P.defaultJsonSerializer);var o=C({query:t,variables:e,operationName:n},"",r),u=o.clone,a=o.files;if(0===a.size){if(!Array.isArray(t))return s.stringify(u);if(void 0!==e&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");var c=t.reduce((function(t,n,i){return t.push({query:n,variables:e?e[i]:void 0}),t}),[]);return s.stringify(c)}var l=new("undefined"==typeof FormData?i.default:FormData);l.append("operations",s.stringify(u));var h={},f=0;return a.forEach((function(t){h[++f]=t})),l.append("map",s.stringify(h)),f=0,a.forEach((function(t,e){l.append(""+ ++f,e)})),l}})),V=h((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parseBatchRequestsExtendedArgs=e.parseRawRequestExtendedArgs=e.parseRequestExtendedArgs=e.parseBatchRequestArgs=e.parseRawRequestArgs=e.parseRequestArgs=void 0,e.parseRequestArgs=function(t,e,n){return t.document?t:{document:t,variables:e,requestHeaders:n,signal:void 0}},e.parseRawRequestArgs=function(t,e,n){return t.query?t:{query:t,variables:e,requestHeaders:n,signal:void 0}},e.parseBatchRequestArgs=function(t,e){return t.documents?t:{documents:t,requestHeaders:e,signal:void 0}},e.parseRequestExtendedArgs=function(t,e,n,i){return t.document?t:{url:t,document:e,variables:n,requestHeaders:i,signal:void 0}},e.parseRawRequestExtendedArgs=function(t,e,n,i){return t.query?t:{url:t,query:e,variables:n,requestHeaders:i,signal:void 0}},e.parseBatchRequestsExtendedArgs=function(t,e,n){return t.documents?t:{url:t,documents:e,requestHeaders:n,signal:void 0}}})),L=h((function(t,e){var n,i=l&&l.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ClientError=void 0;var r=function(t){function e(n,i){var r=this,s=e.extractMessage(n)+": "+JSON.stringify({response:n,request:i});return r=t.call(this,s)||this,Object.setPrototypeOf(r,e.prototype),r.response=n,r.request=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(r,e),r}return i(e,t),e.extractMessage=function(t){try{return t.errors[0].message}catch(e){return"GraphQL Error (Code: "+t.status+")"}},e}(Error);e.ClientError=r})),B=h((function(t,e){var n=l&&l.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},i=l&&l.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{a(i.next(t))}catch(t){s(t)}}function u(t){try{a(i.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}a((i=i.apply(t,e||[])).next())}))},r=l&&l.__generator||function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLWebSocketClient=void 0;var s="ping",o="pong",u="complete",a=function(){function t(t,e,n){this._type=t,this._payload=e,this._id=n}return Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){var t={type:this.type};return null!=this.id&&null!=this.id&&(t.id=this.id),null!=this.payload&&null!=this.payload&&(t.payload=this.payload),JSON.stringify(t)},enumerable:!1,configurable:!0}),t.parse=function(e,n){var i=JSON.parse(e),r=i.id;return new t(i.type,n(i.payload),r)},t}(),c=function(){function t(t,e){var c=this,l=e.onInit,d=e.onAcknowledged,v=e.onPing,p=e.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=t,t.onopen=function(){return i(c,void 0,void 0,(function(){var e,n,i,s;return r(this,(function(r){switch(r.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(e=t).send,i=h,l?[4,l()]:[3,2];case 1:return s=r.sent(),[3,3];case 2:s=null,r.label=3;case 3:return n.apply(e,[i.apply(void 0,[s]).text]),[2]}}))}))},t.onclose=function(){c.socketState.acknowledged=!1,c.socketState.subscriptions={}},t.onerror=function(t){console.error(t)},t.onmessage=function(e){try{var i=(void 0===y&&(y=function(t){return t}),a.parse(e.data,y));switch(i.type){case"connection_ack":return void(c.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(c.socketState.acknowledged=!0,d&&d(i.payload)));case s:return void(v?v(i.payload).then((function(e){return t.send(f(e).text)})):t.send(f(null).text));case o:return void(p&&p(i.payload))}if(!c.socketState.acknowledged)return;if(null==i.id||!c.socketState.subscriptions[i.id])return;var r=c.socketState.subscriptions[i.id],l=r.query,h=r.variables,m=r.subscriber;switch(i.type){case"next":return!i.payload.errors&&i.payload.data&&m.next&&m.next(i.payload.data),void(i.payload.errors&&m.error&&m.error(new L.ClientError(n(n({},i.payload),{status:200}),{query:l,variables:h})));case"error":return void(m.error&&m.error(new L.ClientError({errors:i.payload,status:200},{query:l,variables:h})));case u:return m.complete&&m.complete(),void delete c.socketState.subscriptions[i.id]}}catch(e){console.error(e),t.close(1006)}var y;t.close(4400,"Unknown graphql-ws message.")}}return t.prototype.makeSubscribe=function(t,e,n,i){var r,s,o=this,c=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[c]={query:t,variables:n,subscriber:i},this.socket.send((r=c,s={query:t,operationName:e,variables:n},new a("subscribe",s,r)).text),function(){o.socket.send(function(t){return new a(u,void 0,t)}(c).text),delete o.socketState.subscriptions[c]}},t.prototype.rawRequest=function(t,e){var n=this;return new Promise((function(i,r){var s;n.rawSubscribe(t,{next:function(t,e){return s={data:t,extensions:e}},error:r,complete:function(){return i(s)}},e)}))},t.prototype.request=function(t,e){var n=this;return new Promise((function(i,r){var s;n.subscribe(t,{next:function(t){return s=t},error:r,complete:function(){return i(s)}},e)}))},t.prototype.subscribe=function(t,e,n){var i=G.resolveRequestDocument(t);return this.makeSubscribe(i.query,i.operationName,n,e)},t.prototype.rawSubscribe=function(t,e,n){return this.makeSubscribe(t,void 0,n,e)},t.prototype.ping=function(t){this.socket.send(function(t){return new a(s,t,void 0)}(t).text)},t.prototype.close=function(){this.socket.close(1e3)},t.PROTOCOL="graphql-transport-ws",t}();function h(t){return new a("connection_init",t)}function f(t){return new a(o,t,void 0)}e.GraphQLWebSocketClient=c})),G=h((function(t,e){var n=l&&l.__assign||function(){return n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},n.apply(this,arguments)},i=l&&l.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=l&&l.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=l&&l.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e},o=l&&l.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(r,s){function o(t){try{a(i.next(t))}catch(t){s(t)}}function u(t){try{a(i.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}a((i=i.apply(t,e||[])).next())}))},u=l&&l.__generator||function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){o.label=s[1];break}if(6===s[0]&&o.label<r[1]){o.label=r[1],r=s;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(s);break}r[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},a=l&&l.__rest||function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},c=l&&l.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLWebSocketClient=e.gql=e.resolveRequestDocument=e.batchRequests=e.request=e.rawRequest=e.GraphQLClient=e.ClientError=void 0;var h=s(f),d=h,v=c(R);Object.defineProperty(e,"ClientError",{enumerable:!0,get:function(){return L.ClientError}});var p=function(t){var e={};return t&&("undefined"!=typeof Headers&&t instanceof Headers||t instanceof d.Headers?e=function(t){var e={};return t.forEach((function(t,n){e[n]=t})),e}(t):Array.isArray(t)?t.forEach((function(t){e[t[0]]=t[1]})):e=t),e},m=function(t){return t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},y=function(t){var e=t.url,i=t.query,r=t.variables,s=t.operationName,a=t.headers,c=t.fetch,l=t.fetchOptions;return o(void 0,void 0,void 0,(function(){var t;return u(this,(function(o){switch(o.label){case 0:return t=v.default(i,r,s,l.jsonSerializer),[4,c(e,n({method:"POST",headers:n(n({},"string"==typeof t?{"Content-Type":"application/json"}:{}),a),body:t},l))];case 1:return[2,o.sent()]}}))}))},b=function(t){var e=t.url,i=t.query,r=t.variables,s=t.operationName,a=t.headers,c=t.fetch,l=t.fetchOptions;return o(void 0,void 0,void 0,(function(){var t;return u(this,(function(o){switch(o.label){case 0:return t=function(t){var e=t.query,n=t.variables,i=t.operationName,r=t.jsonSerializer;if(!Array.isArray(e)){var s=["query="+encodeURIComponent(m(e))];return n&&s.push("variables="+encodeURIComponent(r.stringify(n))),i&&s.push("operationName="+encodeURIComponent(i)),s.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var o=e.reduce((function(t,e,i){return t.push({query:m(e),variables:n?r.stringify(n[i]):void 0}),t}),[]);return"query="+encodeURIComponent(r.stringify(o))}({query:i,variables:r,operationName:s,jsonSerializer:l.jsonSerializer}),[4,c(e+"?"+t,n({method:"GET",headers:a},l))];case 1:return[2,o.sent()]}}))}))},w=function(){function t(t,e){this.url=t,this.options=e||{}}return t.prototype.rawRequest=function(t,e,i){return o(this,void 0,void 0,(function(){var r,s,o,c,l,f,d,v,m,y;return u(this,(function(){return r=V.parseRawRequestArgs(t,e,i),o=(s=this.options).headers,l=void 0===(c=s.fetch)?h.default:c,d=void 0===(f=s.method)?"POST":f,v=a(s,["headers","fetch","method"]),m=this.url,void 0!==r.signal&&(v.signal=r.signal),y=S(r.query).operationName,[2,g({url:m,query:r.query,variables:r.variables,headers:n(n({},p(D(o))),p(r.requestHeaders)),operationName:y,fetch:l,method:d,fetchOptions:v})]}))}))},t.prototype.request=function(t,e,i){return o(this,void 0,void 0,(function(){var r,s,o,c,l,f,d,v,m,y,b;return u(this,(function(u){switch(u.label){case 0:return r=V.parseRequestArgs(t,e,i),o=(s=this.options).headers,l=void 0===(c=s.fetch)?h.default:c,d=void 0===(f=s.method)?"POST":f,v=a(s,["headers","fetch","method"]),m=this.url,void 0!==r.signal&&(v.signal=r.signal),y=S(r.document),b=y.operationName,[4,g({url:m,query:y.query,variables:r.variables,headers:n(n({},p(D(o))),p(r.requestHeaders)),operationName:b,fetch:l,method:d,fetchOptions:v})];case 1:return[2,u.sent().data]}}))}))},t.prototype.batchRequests=function(t,e){return o(this,void 0,void 0,(function(){var i,r,s,o,c,l,f,d,v,m,y;return u(this,(function(u){switch(u.label){case 0:return i=V.parseBatchRequestArgs(t,e),s=(r=this.options).headers,c=void 0===(o=r.fetch)?h.default:o,f=void 0===(l=r.method)?"POST":l,d=a(r,["headers","fetch","method"]),v=this.url,void 0!==i.signal&&(d.signal=i.signal),m=i.documents.map((function(t){return S(t.document).query})),y=i.documents.map((function(t){return t.variables})),[4,g({url:v,query:m,variables:y,headers:n(n({},p(D(s))),p(i.requestHeaders)),operationName:void 0,fetch:c,method:f,fetchOptions:d})];case 1:return[2,u.sent().data]}}))}))},t.prototype.setHeaders=function(t){return this.options.headers=t,this},t.prototype.setHeader=function(t,e){var n,i=this.options.headers;return i?i[t]=e:this.options.headers=((n={})[t]=e,n),this},t.prototype.setEndpoint=function(t){return this.url=t,this},t}();function g(t){var e=t.url,i=t.query,r=t.variables,s=t.headers,c=t.operationName,l=t.fetch,h=t.method,f=void 0===h?"POST":h,d=t.fetchOptions;return o(this,void 0,void 0,(function(){var t,o,h,v,p,m,w,g,E,T;return u(this,(function(u){switch(u.label){case 0:return t="POST"===f.toUpperCase()?y:b,o=Array.isArray(i),[4,t({url:e,query:i,variables:r,operationName:c,headers:s,fetch:l,fetchOptions:d})];case 1:return[4,O(h=u.sent(),d.jsonSerializer)];case 2:if(v=u.sent(),p=o&&Array.isArray(v)?!v.some((function(t){return!t.data})):!!v.data,m=!v.errors||"all"===d.errorPolicy||"ignore"===d.errorPolicy,h.ok&&m&&p)return w=h.headers,g=h.status,E=a(v,["errors"]),T="ignore"===d.errorPolicy?E:v,[2,n(n({},o?{data:T}:T),{headers:w,status:g})];throw new L.ClientError(n(n({},"string"==typeof v?{error:v}:v),{status:h.status,headers:h.headers}),{query:i,variables:r})}}))}))}function E(t,e,i,r){return o(this,void 0,void 0,(function(){var s;return u(this,(function(){return s=V.parseRequestExtendedArgs(t,e,i,r),[2,new w(s.url).request(n({},s))]}))}))}function O(t,e){return void 0===e&&(e=P.defaultJsonSerializer),o(this,void 0,void 0,(function(){var n,i,r;return u(this,(function(s){switch(s.label){case 0:return t.headers.forEach((function(t,e){"content-type"===e.toLowerCase()&&(n=t)})),n&&n.toLowerCase().startsWith("application/json")?(r=(i=e).parse,[4,t.text()]):[3,2];case 1:return[2,r.apply(i,[s.sent()])];case 2:return[2,t.text()]}}))}))}function T(t){var e,n=void 0,i=t.definitions.filter((function(t){return"OperationDefinition"===t.kind}));return 1===i.length&&(n=null===(e=i[0].name)||void 0===e?void 0:e.value),n}function S(t){if("string"==typeof t){var e=void 0;try{e=T(k.parse(t))}catch(t){}return{query:t,operationName:e}}var n=T(t);return{query:F.print(t),operationName:n}}function D(t){return"function"==typeof t?t():t}e.GraphQLClient=w,e.rawRequest=function(t,e,i,r){return o(this,void 0,void 0,(function(){var s;return u(this,(function(){return s=V.parseRawRequestExtendedArgs(t,e,i,r),[2,new w(s.url).rawRequest(n({},s))]}))}))},e.request=E,e.batchRequests=function(t,e,i){return o(this,void 0,void 0,(function(){var r;return u(this,(function(){return r=V.parseBatchRequestsExtendedArgs(t,e,i),[2,new w(r.url).batchRequests(n({},r))]}))}))},e.default=E,e.resolveRequestDocument=S,e.gql=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.reduce((function(t,n,i){return""+t+n+(i in e?e[i]:"")}),"")},Object.defineProperty(e,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return B.GraphQLWebSocketClient}})}));!function(){const t=window.XMLHttpRequest;window.XMLHttpRequest=function(){const e=new t;let n;const i=e.open;e.open=function(t,n,...r){i.call(e,t,n,...r)};const r=e.send;return e.send=function(t){if(top.charcleaner&&"function"==typeof top.charcleaner.a)try{n="string"==typeof t?JSON.parse(t):t;var i=JSON.stringify(n),s=top.charcleaner.a(i);e.setRequestHeader("sktk",s)}catch(t){}r.call(e,t)},e}}();class J{static getQueryParams(t){const e=new Map,n=/[?&]?([^=]+)=([^&]*)/g;let i;for(t=(t=window.unescape(t)).split("+").join(" ");i=n.exec(t);)e.set(window.decodeURIComponent(i[1]),i[2]);return e.set("urlBase",this.getUrlBase()),window.moduleID&&window.URIServiceBroker&&(e.set("moduleID",window.moduleID),e.set("URIServiceBroker",window.URIServiceBroker)),e}static getUrlBase(){return window.mock_url?window.mock_url:`${location.protocol}//${location.hostname}${location.port?":"+location.port:""}`}static getResourceIdFromUrlToken(t){try{const e=t.split("/");return e[1]?atob(e[1]):null}catch(t){throw new Error("Erro ao obter resourceId:"+t)}}static getPkObjectFromUrlToken(t){try{let e=t.split("/")[2];return e?e.indexOf("&")>-1?JSON.parse(atob(e.split("&")[0])):JSON.parse(atob(e)):null}catch(t){throw new Error("Erro ao obter a PK do objeto:"+t)}}}class H{constructor(t,e,n){this.req=t,this.resolve=e,this.reject=n}putVariable(t,e){this.req.values[t]=e}reCall(){return K.get().callGraphQL(this.req).then(this.resolve,this.reject)}putTXPro(e,n){this.req&&this.req.values&&(this.req.values.changes||[]).length&&this.req.values.changes[0].fields.push({dataType:t.TEXT,fieldName:`${c.DATA_UNIT_TRANSIENT_PREFIX_NAME}${e}`,value:n})}}class z{constructor(t,e,n,i){this.serviceName=t,this.requestBody=e,this.successCallback=n,this.errorCallback=i}reCall(t){return t&&(this.requestBody=t),K.get().callServiceBroker(this.serviceName,this.requestBody).then(this.successCallback,this.errorCallback)}}var Q=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,r){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,r,(e=t[n](e)).done,e.value)}))}}};class K{constructor(){this.ready=!0,this.watingRequestsById=new Map}static getMessage(t,e){return this.messageBuilder||(this.messageBuilder=new a),this.messageBuilder.getMessage(t,e)}static get(){if(!K.instance){K.instance=new K;const t=document.querySelector(this.appTagName);null===t?K.instance.resume():(!0===e.getContextValue("__SNK__APPLICATION__LOADING__")&&K.instance.pause(),t.addEventListener("applicationLoading",(()=>K.instance.pause())),t.addEventListener("applicationLoaded",(()=>K.instance.resume())))}return this.instance.application=e.getContextValue("__SNK__APPLICATION__"),this.instance}static getGraphQLPath(){return n.isEmpty(this.instance.graphqlPath)&&null!=this.instance.application&&(this.instance.graphqlPath=`/${this.instance.application.getModuleName()}/graphql`),this.instance.graphqlPath}static addRequestListener(t){K.requestListener.indexOf(t)<0&&K.requestListener.push(t)}static removeRequestListener(t){const e=K.requestListener.indexOf(t);e>-1&&K.requestListener.splice(e,1)}processGraphQlErrorInfo(t){var e,n;const s=K.getMessage("dataFetcher.errorDetected"),o=t[0];if(o.length>0){const t=o[0],u=(null==t?void 0:t.message)?null==t?void 0:t.message:K.getMessage("dataFetcher.noErrorMessage"),a=(null===(e=null==t?void 0:t.extensions)||void 0===e?void 0:e.level)?"WARNING":"ERROR",c=(null===(n=null==t?void 0:t.extensions)||void 0===n?void 0:n.code)?t.extensions.code:"";return"WARNING"===a?new r(s,u,c):new i(s,u,c)}return new i(s,K.getMessage("dataFetcher.noErrorInfo"))}processServiceBrokerErrorInfo(t){const e=K.getMessage("dataFetcher.errorDetected");let n,s,{statusMessage:o,tsError:u}=t||{};return o||(o=K.getMessage("dataFetcher.noErrorInfo")),u&&(n=u.tsErrorCode,s="WARNING"),"WARNING"===s?new r(e,o,n):new i(e,o,n)}isDevMode(){return null===window||void 0===window?void 0:window.hasOwnProperty("wksdata")}async callGraphQL(t,e=!1){var n;this.ready&&(this.pause(),window.requestAnimationFrame((()=>this.resume())));const i=this.getReqKey(t);if(t.queryID=i,t.values.queryID=i,K.clientEventsByID){t.values.registeredEventListeners=[];for(let[e]of K.clientEventsByID)t.values.registeredEventListeners.push(e)}return this.ready?new Promise((async(n,r)=>{let s=this.getQueryTemplate(t);const o=await this.fecthGraphQL([{document:s,variables:t.values}],e);o.errors.length>0?await this.proccesGraphQLClientEvents(null==o?void 0:o.extensions,t,n,r)||r(this.processGraphQlErrorInfo(o.errors)):(n(o.data[0][i]),await this.proccesGraphQLClientEvents(null==o?void 0:o.extensions,t,n,r))})):(this.watingRequestsById.has(i)||this.watingRequestsById.set(i,new W(t,e)),null===(n=this.watingRequestsById.get(i))||void 0===n?void 0:n.promise)}resolveURL(){return J.getUrlBase()}async proccesGraphQLClientEvents(t,e,n,i){if(null==t)return!1;for(const s in t){const{clientEvents:o}=t[s];if(!o)return!1;for(const t in o){if(!K.hasClientEvent(t))throw console.warn(K.getMessage("dataFetcher.clientEventNotRegisteredWarn",{id:t})),new r(K.getMessage("dataFetcher.clientEventNotRegisteredTitle"),K.getMessage("dataFetcher.clientEventNotRegisteredMsg",{id:t}));K.clientEventsByID.get(t).forEach((async r=>{await r({id:t,content:JSON.parse(o[t])},new H(e,n,i))}))}return Object.keys(o).length>0}return!1}async processServiceBrokerClientEvents(t){var e,n,i,r,s,o,u,a;const{clientEvents:c,serviceName:l,payloadJson:h,accept:f,reject:d}=t;if(!(null==c?void 0:c.length))return;const v=new z(l,h,f,d);try{for(var p,m=!0,y=Q(c);!(e=(p=await y.next()).done);){r=p.value,m=!1;try{const t=r;if(K.hasClientEvent(t.id)){const e=K.clientEventsByID.get(t.id),n={id:t.id,content:t};try{for(var b,w=!0,g=(o=void 0,Q(e));!(s=(b=await g.next()).done);){a=b.value,w=!1;try{const t=a;await t(n,v)}finally{w=!0}}}catch(t){o={error:t}}finally{try{w||s||!(u=g.return)||await u.call(g)}finally{if(o)throw o.error}}}}finally{m=!0}}}catch(t){n={error:t}}finally{try{m||e||!(i=y.return)||await i.call(y)}finally{if(n)throw n.error}}}async processPrinting(t){"true"===(null==t?void 0:t.pendingPrinting)&&await u.getInstance().processPendingPrinting(null==t?void 0:t.transactionId),"localPrintings"in t&&u.getInstance().processLocalPrinting(null==t?void 0:t.localPrintings)}getContext(t){var e;const i=J.getQueryParams(location.search);return{baseUrl:`${this.resolveURL()}/${t}/service.sbr`,appName:window.APPLICATION_NAME||"SankhyaBlocks",mgeSession:`${window.mgeSession||i.get("mgeSession")}`,globalID:window.GLOBALID||n.generateUUID(),resourceID:window.resourceID||(null===(e=window.workspace)||void 0===e?void 0:e.resourceID)}}async callServiceBroker(t,e,r){return new Promise((async(o,u)=>{const a=t.split("@"),[c,l]=2===a.length?a:["mge",t],h=this.getContext(c);let f=`${h.baseUrl}?serviceName=${l}&counter=21&application=${h.appName}&outputType=json&preventTransform=false&mgeSession=${h.mgeSession}&resourceID=${h.resourceID}&globalID=${h.globalID}&allowConcurrentCalls=true`;f=await this.addUrlParams(r,f),this.isDevMode()&&(document.cookie=`JSESSIONID=${h.mgeSession};`);const d=new XMLHttpRequest;var v={};"string"==typeof e&&(e=s.stringToObject(e)),e.hasOwnProperty("requestBody")?v=e:v.requestBody=e;for(let[t]of K.clientEventsByID)v.requestBody.hasOwnProperty("clientEventList")||(v.requestBody.clientEventList={clientEvent:[]}),v.requestBody.clientEventList.clientEvent.push({$:t});const p=n.generateUUID();K.requestListener.forEach((t=>t.onRequestStart({url:f,requestBody:e,requestId:p}))),d.open("POST",f,!0),d.withCredentials=!0,d.send(s.objectToString(v)),d.onreadystatechange=async()=>{var n;if(4==d.readyState&&200==d.status)try{const e=JSON.parse(d.responseText);await this.processPrinting(e),this.isServiceBrokerError(e)?u(this.processServiceBrokerErrorInfo(e)):e.status==K.SERVICE_BROKER_STATUS.SERVICE_CANCELED?e.statusMessage&&console.debug(`[DataFetcher] ${e.statusMessage}`):(o(e.responseBody),e.status==K.SERVICE_BROKER_STATUS.INFO&&(null===(n=this.application)||void 0===n||n.info(e.statusMessage))),this.processServiceBrokerClientEvents({clientEvents:null==e?void 0:e.clientEvents,serviceName:t,payloadJson:v,accept:o,reject:u})}catch(t){console.warn(K.getMessage("dataFetcher.serviceExecutionErrorWarn",{err:t})),u(new i(K.getMessage("dataFetcher.serviceExecutionError"),t))}else 4==d.readyState&&200!=d.status&&u(new i(K.getMessage("dataFetcher.serviceExecutionErrorWithName",{serviceName:t}),d.responseText));K.requestListener.forEach((t=>t.onRequestEnd({url:f,requestBody:e,requestId:p})))}}))}async addUrlParams(t,e){var i;const r=(null==t?void 0:t.urlParams)||{},s=await(null===(i=this.application)||void 0===i?void 0:i.getAttributeFromHTMLWrapper("VSS"));if(n.isEmpty(s)||(r.vss=s),0===Object.keys(r).length)return e;-1===e.indexOf("?")&&(e+="?");for(const t in r)e+=`&${t}=${r[t]}`;return e}isServiceBrokerError(t){return!t.hasOwnProperty("status")||t.status==K.SERVICE_BROKER_STATUS.ERROR||t.status==K.SERVICE_BROKER_STATUS.TIMEOUT}getReqKey(t){return window.btoa(n.hashCode(`${t.query}${JSON.stringify(t.values||"")}`)).replace(/=/g,"")}getQueryTemplate(t){return(t.query||"").replaceAll("$queryAlias$",t.queryID)}pause(){this.ready=!1}async resume(){if(this.ready=!0,this.watingRequestsById.size>0){const t=this.watingRequestsById;this.watingRequestsById=new Map,this.executePendingRequest(t)}}async executePendingRequest(t){var e,n;const r=[];let s=!0;t.forEach((t=>{const e=this.getQueryTemplate(t.request);r.push({document:e,variables:Object.assign({},t.request.values)}),s=s&&t.quietMode}));const u=await this.fecthGraphQL(r,s),{data:a,errors:c,extensions:l}=u;for(const r of c){const s=Object.values(r);for(const u of s){const s=t.get(u.request.variables[u.index].queryID),a=await this.proccesGraphQLClientEvents(l,s.request,s.resolve,s.reject),c=await Promise.race([s.promise,new Promise((t=>{t(!1)}))]);a&&!1!==c||(Object.keys(r[0].extensions).includes("SERVICE_CANCELED")||Object.keys(l).includes("isServiceCancelled")?((null===(e=t.get(u.request.variables[u.index].queryID))||void 0===e?void 0:e.reject)||Promise.reject)(new o(K.getMessage("dataFetcher.serviceCanceled"),u.message)):((null===(n=t.get(u.request.variables[u.index].queryID))||void 0===n?void 0:n.reject)||Promise.reject)(new i(K.getMessage("dataFetcher.errorDetected"),u.message)))}}for(const e of a){const n=Object.entries(e);for(const[e,i]of n){const n=t.get(e);await this.proccesGraphQLClientEvents(l,n.request,n.resolve,n.reject),((null==n?void 0:n.resolve)||Promise.resolve)(i)}}}buildGraphQlURL(t){const e=J.getQueryParams(location.search),n=`${window.mgeSession||e.get("mgeSession")}`;let i=`${this.resolveURL()+K.getGraphQLPath()}`;return n&&(i+=`?mgeSession=${n}`),t&&(i+=(i.indexOf("?")>-1?"&":"?")+"quietMode=true"),i}async fecthGraphQL(t,e){const r=[],s=[],o=[],u=this.buildGraphQlURL(e),a=n.generateUUID();K.requestListener.forEach((e=>e.onRequestStart({url:u,requestBody:t,requestId:a})));try{(await G.batchRequests(u,t,{"Content-Type":"application/json; charset=UTF-8"})).forEach(((e,n)=>{var i;(null===(i=null==e?void 0:e.errors)||void 0===i?void 0:i.length)>0?s.push(e.errors.map((e=>this.normalizeErrorResponse(e,t,n)))):r.push(e.data),e.extensions&&o.push(e.extensions)}))}catch(e){if(this.isHttpError(e))throw K.requestListener.forEach((e=>e.onRequestEnd({url:u,requestBody:t,requestId:a}))),new i("Falha de comunicação",e.message);{const t=e.request;Object.entries(e.response).forEach((([e,n])=>{n.errors?s.push(n.errors.map((n=>(n.request=t,n.index=Number(e),n)))):n.data&&r.push(n.data)}))}}return K.requestListener.forEach((e=>e.onRequestEnd({url:u,requestBody:t,requestId:a}))),{data:r,errors:s,extensions:o}}isHttpError(t){var e;return!t.response&&!t.request||(null===(e=null==t?void 0:t.response)||void 0===e?void 0:e.status)>=300}normalizeErrorResponse(t,e,n){const i=Object.assign({},e[n]),{variables:r}=i;return i.variables=[],i.variables[n]=r,t.request=i,t.index=Number(n),t}static addClientEvent(t,e){let n=K.clientEventsByID.get(t);if(null!=n){if(n.some((t=>t.toString()===e.toString())))return;n.push(e)}else K.clientEventsByID.set(t,[e])}static hasClientEvent(t){return K.clientEventsByID.has(t)}static removeClientEvent(t){return K.clientEventsByID.delete(t)}}K.appTagName="snk-application",K.requestListener=[],K.SERVICE_BROKER_STATUS={ERROR:0,INFO:2,OK:1,TIMEOUT:3,SERVICE_CANCELED:4},K.clientEventsByID=new Map;class W{constructor(t,e){this._resolve=()=>{},this._reject=()=>{},this._request=void 0,this._request=t,this._promisse=new Promise(((t,e)=>{this._resolve=t,this._reject=e})),this._quietMode=e}get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promisse}get request(){return this._request}get quietMode(){return this._quietMode}}export{K as D,J as U,G as d}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e="sankhyablocks",t={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,cmpDidLoad:!0,cmpDidRender:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpShouldUpdate:!0,cmpWillLoad:!0,cmpWillRender:!0,cmpWillUpdate:!0,connectedCallback:!0,constructableCSS:!0,cssAnnotations:!0,cssVarShim:!1,devTools:!1,disconnectedCallback:!0,dynamicImportShim:!1,element:!1,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTarget:!0,hostListenerTargetBody:!0,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!0,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,initializeNextTick:!1,invisiblePrehydration:!1,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,safari10:!1,scoped:!0,scopedSlotTextContentFix:!1,scriptDataOpts:!1,shadowDelegatesFocus:!1,shadowDom:!0,shadowDomShim:!1,slot:!0,slotChildNodesFix:!1,slotRelocation:!0,state:!0,style:!0,svg:!1,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0,watchCallback:!0};let n,o,s,l,r=0,i=!1,c=!1,a=!1,d=!1,u=null,f=0,p=!1;const m={isDev:!!t.isDev,isBrowser:!0,isServer:!1,isTesting:!!t.isTesting},h={},$=e=>{const t=new URL(e,ht.t);return t.origin!==ut.location.origin?t.href:t.pathname},y=(e,n="")=>{if(t.profile&&performance.mark){const t=`st:${e}:${n}:${r++}`;return performance.mark(t),()=>performance.measure(`[Stencil] ${e}() <${n}>`,t)}return()=>{}},b="s-id",v="sty-id",g="c-id",w="http://www.w3.org/1999/xlink",C={},S=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,o;return null!==(o=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==o?o:void 0}const x=(e,n,...o)=>{let s=null,l=null,r=null,i=!1,c=!1;const a=[],d=n=>{for(let o=0;o<n.length;o++)s=n[o],Array.isArray(s)?d(s):null!=s&&"boolean"!=typeof s&&((i="function"!=typeof e&&!S(s))?s+="":t.isDev&&"function"!=typeof e&&void 0===s.o&&st("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),i&&c?a[a.length-1].l+=s:a.push(i?T(null,s):s),c=i)};if(d(o),n&&(t.isDev&&"input"===e&&D(n),t.vdomKey&&n.key&&(l=n.key),t.slotRelocation&&n.name&&(r=n.name),t.vdomClass)){const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}if(t.isDev&&a.some(R)&&st("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),t.vdomFunctional&&"function"==typeof e)return e(null===n?{}:n,a,j);const u=T(e,null);return u.i=n,a.length>0&&(u.u=a),t.vdomKey&&(u.p=l),t.slotRelocation&&(u.m=r),u},T=(e,n)=>{const o={o:0,$:e,l:n,v:null,u:null};return t.vdomAttribute&&(o.i=null),t.vdomKey&&(o.p=null),t.slotRelocation&&(o.m=null),o},L={},R=e=>e&&e.$===L,j={forEach:(e,t)=>e.map(E).forEach(t),map:(e,t)=>e.map(E).map(t).map(O)},E=e=>({vattrs:e.i,vchildren:e.u,vkey:e.p,vname:e.m,vtag:e.$,vtext:e.l}),O=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),x(e.vtag,t,...e.vchildren||[])}const t=T(e.vtag,e.vtext);return t.i=e.vattrs,t.u=e.vchildren,t.p=e.vkey,t.m=e.vname,t},D=e=>{const t=Object.keys(e),n=t.indexOf("value");if(-1===n)return;const o=t.indexOf("type"),s=t.indexOf("min"),l=t.indexOf("max"),r=t.indexOf("step");(n<o||n<s||n<l||n<r)&<('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},M=(e,n,o,s,l,r,i)=>{let c,a,d,u;if(1===r.nodeType){for(c=r.getAttribute(g),c&&(a=c.split("."),a[0]!==i&&"0"!==a[0]||(d={o:0,g:a[0],C:a[1],S:a[2],k:a[3],$:r.tagName.toLowerCase(),v:r,i:null,u:null,p:null,m:null,l:null},n.push(d),r.removeAttribute(g),e.u||(e.u=[]),e.u[d.k]=d,e=d,s&&"0"===d.S&&(s[d.k]=d.v))),u=r.childNodes.length-1;u>=0;u--)M(e,n,o,s,l,r.childNodes[u],i);if(r.shadowRoot)for(u=r.shadowRoot.childNodes.length-1;u>=0;u--)M(e,n,o,s,l,r.shadowRoot.childNodes[u],i)}else if(8===r.nodeType)a=r.nodeValue.split("."),a[1]!==i&&"0"!==a[1]||(c=a[0],d={o:0,g:a[1],C:a[2],S:a[3],k:a[4],v:r,i:null,u:null,p:null,m:null,$:null,l:null},"t"===c?(d.v=r.nextSibling,d.v&&3===d.v.nodeType&&(d.l=d.v.textContent,n.push(d),r.remove(),e.u||(e.u=[]),e.u[d.k]=d,s&&"0"===d.S&&(s[d.k]=d.v))):d.g===i&&("s"===c?(d.$="slot",r["s-sn"]=a[5]?d.m=a[5]:"",r["s-sr"]=!0,t.shadowDom&&s&&(d.v=pt.createElement(d.$),d.m&&d.v.setAttribute("name",d.m),r.parentNode.insertBefore(d.v,r),r.remove(),"0"===d.S&&(s[d.k]=d.v)),o.push(d),e.u||(e.u=[]),e.u[d.k]=d):"r"===c&&(t.shadowDom&&s?r.remove():t.slotRelocation&&(l["s-cr"]=r,r["s-cn"]=!0))));else if(e&&"style"===e.$){const t=T(null,r.textContent);t.v=r,t.k="0",e.u=[t]}},N=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)N(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)N(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},P=e=>dt.map((t=>t(e))).find((e=>!!e)),I=(e,n)=>null==e||S(e)?e:t.propBoolean&&4&n?"false"!==e&&(""===e||!!e):t.propNumber&&2&n?parseFloat(e):t.propString&&1&n?e+"":e,U=e=>t.lazyLoad?Ge(e).T:e,H=(e,n,o)=>{const s=U(e);return{emit:e=>(t.isDev&&!s.isConnected&<(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`),F(s,n,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:e}))}},F=(e,t,n)=>{const o=ht.ce(t,n);return e.dispatchEvent(o),o},W=new WeakMap,A=(e,t,n)=>{let o=at.get(e);bt&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,at.set(e,o)},_=(e,n,o)=>{var s;let l=z(n,o);const r=at.get(l);if(!t.attachStyles)return l;if(e=11===e.nodeType?e:pt,r)if("string"==typeof r){let n,o=W.get(e=e.head||e);if(o||W.set(e,o=new Set),!o.has(l)){if(t.hydrateClientSide&&e.host&&(n=e.querySelector(`[${v}="${l}"]`)))n.innerHTML=r;else{n=pt.createElement("style"),n.innerHTML=r;const o=null!==(s=ht.L)&&void 0!==s?s:k(pt);null!=o&&n.setAttribute("nonce",o),(t.hydrateServerSide||t.hotModuleReplacement)&&n.setAttribute(v,l),e.insertBefore(n,e.querySelector("link"))}o&&o.add(l)}}else t.constructableCSS&&!e.adoptedStyleSheets.includes(r)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]);return l},V=e=>{const n=e.R,o=e.T,s=n.o,l=y("attachStyles",n.j),r=_(t.shadowDom&&$t&&o.shadowRoot?o.shadowRoot:o.getRootNode(),n,e.O);(t.shadowDom||t.scoped)&&t.cssAnnotations&&10&s&&(o["s-sc"]=r,o.classList.add(r+"-h"),t.scoped&&2&s&&o.classList.add(r+"-s")),l()},z=(e,n)=>"sc-"+(t.mode&&n&&32&e.o?e.j+"-"+n:e.j),B=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),X=(e,n,o,s,l,r)=>{if(o!==s){let i=tt(e,n),c=n.toLowerCase();if(t.vdomClass&&"class"===n){const t=e.classList,n=J(o),l=J(s);t.remove(...n.filter((e=>e&&!l.includes(e)))),t.add(...l.filter((e=>e&&!n.includes(e))))}else if(t.vdomStyle&&"style"===n){if(t.updatable)for(const n in o)s&&null!=s[n]||(!t.hydrateServerSide&&n.includes("-")?e.style.removeProperty(n):e.style[n]="");for(const n in s)o&&s[n]===o[n]||(!t.hydrateServerSide&&n.includes("-")?e.style.setProperty(n,s[n]):e.style[n]=s[n])}else if(t.vdomKey&&"key"===n);else if(t.vdomRef&&"ref"===n)s&&s(e);else if(!t.vdomListener||(t.lazyLoad?i:e.__lookupSetter__(n))||"o"!==n[0]||"n"!==n[1]){if(t.vdomPropOrAttr){const a=S(s);if((i||a&&null!==s)&&!l)try{if(e.tagName.includes("-"))e[n]=s;else{const t=null==s?"":s;"list"===n?i=!1:null!=o&&e[n]==t||(e[n]=t)}}catch(e){}let d=!1;t.vdomXlink&&c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,d=!0),null==s||!1===s?!1===s&&""!==e.getAttribute(n)||(t.vdomXlink&&d?e.removeAttributeNS(w,n):e.removeAttribute(n)):(!i||4&r||l)&&!a&&(s=!0===s?"":s,t.vdomXlink&&d?e.setAttributeNS(w,n,s):e.setAttribute(n,s))}}else n="-"===n[2]?n.slice(3):tt(ut,c)?c.slice(2):c[2]+n.slice(3),o&&ht.rel(e,n,o,!1),s&&ht.ael(e,n,s,!1)}},q=/\s/,J=e=>e?e.split(q):[],Q=(e,n,o,s)=>{const l=11===n.v.nodeType&&n.v.host?n.v.host:n.v,r=e&&e.i||C,i=n.i||C;if(t.updatable)for(s in r)s in i||X(l,s,r[s],void 0,o,n.o);for(s in i)X(l,s,r[s],i[s],o,n.o)},Y=(e,l,r,c)=>{const u=l.u[r];let f,p,m,h=0;if(t.slotRelocation&&!i&&(a=!0,"slot"===u.$&&(n&&c.classList.add(n+"-s"),u.o|=u.u?2:1)),t.isDev&&u.v&&st(`The JSX ${null!==u.l?`"${u.l}" text`:`"${u.$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),t.vdomText&&null!==u.l)f=u.v=pt.createTextNode(u.l);else if(t.slotRelocation&&1&u.o)f=u.v=t.isDebug||t.hydrateServerSide?de(u):pt.createTextNode("");else{if(t.svg&&!d&&(d="svg"===u.$),f=u.v=t.svg?pt.createElementNS(d?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",t.slotRelocation&&2&u.o?"slot-fb":u.$):pt.createElement(t.slotRelocation&&2&u.o?"slot-fb":u.$),t.svg&&d&&"foreignObject"===u.$&&(d=!1),t.vdomAttribute&&Q(null,u,d),(t.shadowDom||t.scoped)&&null!=n&&f["s-si"]!==n&&f.classList.add(f["s-si"]=n),u.u)for(h=0;h<u.u.length;++h)p=Y(e,u,h,f),p&&f.appendChild(p);t.svg&&("svg"===u.$?d=!1:"foreignObject"===f.tagName&&(d=!0))}return t.slotRelocation&&(f["s-hn"]=s,3&u.o&&(f["s-sr"]=!0,f["s-cr"]=o,f["s-sn"]=u.m||"",m=e&&e.u&&e.u[r],m&&m.$===u.$&&e.v&&K(e.v,!1))),f},K=(e,t)=>{ht.o|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==s&&o["s-ol"]&&(ne(o).insertBefore(o,te(o)),o["s-ol"].remove(),o["s-ol"]=void 0,a=!0),t&&K(o,t)}ht.o&=-2},G=(e,n,o,l,r,i)=>{let c,a=t.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(t.shadowDom&&a.shadowRoot&&a.tagName===s&&(a=a.shadowRoot);r<=i;++r)l[r]&&(c=Y(null,o,r,e),c&&(l[r].v=c,a.insertBefore(c,t.slotRelocation?te(n):n)))},Z=(e,n,o,s,l)=>{for(;n<=o;++n)(s=e[n])&&(l=s.v,ce(s),t.slotRelocation&&(c=!0,l["s-ol"]?l["s-ol"].remove():K(l,!0)),l.remove())},ee=(e,n)=>e.$===n.$&&(t.slotRelocation&&"slot"===e.$?e.m===n.m:!t.vdomKey||e.p===n.p),te=e=>e&&e["s-ol"]||e,ne=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,oe=(e,n)=>{const o=n.v=e.v,s=e.u,l=n.u,r=n.$,i=n.l;let c;t.vdomText&&null!==i?t.vdomText&&t.slotRelocation&&(c=o["s-cr"])?c.parentNode.textContent=i:t.vdomText&&e.l!==i&&(o.data=i):(t.svg&&(d="svg"===r||"foreignObject"!==r&&d),(t.vdomAttribute||t.reflect)&&(t.slot&&"slot"===r||Q(e,n,d)),t.updatable&&null!==s&&null!==l?((e,n,o,s)=>{let l,r,i=0,c=0,a=0,d=0,u=n.length-1,f=n[0],p=n[u],m=s.length-1,h=s[0],$=s[m];for(;i<=u&&c<=m;)if(null==f)f=n[++i];else if(null==p)p=n[--u];else if(null==h)h=s[++c];else if(null==$)$=s[--m];else if(ee(f,h))oe(f,h),f=n[++i],h=s[++c];else if(ee(p,$))oe(p,$),p=n[--u],$=s[--m];else if(ee(f,$))!t.slotRelocation||"slot"!==f.$&&"slot"!==$.$||K(f.v.parentNode,!1),oe(f,$),e.insertBefore(f.v,p.v.nextSibling),f=n[++i],$=s[--m];else if(ee(p,h))!t.slotRelocation||"slot"!==f.$&&"slot"!==$.$||K(p.v.parentNode,!1),oe(p,h),e.insertBefore(p.v,f.v),p=n[--u],h=s[++c];else{if(a=-1,t.vdomKey)for(d=i;d<=u;++d)if(n[d]&&null!==n[d].p&&n[d].p===h.p){a=d;break}t.vdomKey&&a>=0?(r=n[a],r.$!==h.$?l=Y(n&&n[c],o,a,e):(oe(r,h),n[a]=void 0,l=r.v),h=s[++c]):(l=Y(n&&n[c],o,c,e),h=s[++c]),l&&(t.slotRelocation?ne(f.v).insertBefore(l,te(f.v)):f.v.parentNode.insertBefore(l,f.v))}i>u?G(e,null==s[m+1]?null:s[m+1].v,o,s,c,m):t.updatable&&c>m&&Z(n,i,u)})(o,s,n,l):null!==l?(t.updatable&&t.vdomText&&null!==e.l&&(o.textContent=""),G(o,null,n,l,0,l.length-1)):t.updatable&&null!==s&&Z(s,0,s.length-1),t.svg&&d&&"svg"===r&&(d=!1))},se=e=>{const t=e.childNodes;let n,o,s,l,r,i;for(o=0,s=t.length;o<s;o++)if(n=t[o],1===n.nodeType){if(n["s-sr"])for(r=n["s-sn"],n.hidden=!1,l=0;l<s;l++)if(i=t[l].nodeType,t[l]["s-hn"]!==n["s-hn"]||""!==r){if(1===i&&r===t[l].getAttribute("slot")){n.hidden=!0;break}}else if(1===i||3===i&&""!==t[l].textContent.trim()){n.hidden=!0;break}se(n)}},le=[],re=e=>{let t,n,o,s,l,r,i=0;const a=e.childNodes,d=a.length;for(;i<d;i++){if(t=a[i],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(o=n.parentNode.childNodes,s=t["s-sn"],r=o.length-1;r>=0;r--)n=o[r],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(ie(n,s)?(l=le.find((e=>e.D===n)),c=!0,n["s-sn"]=n["s-sn"]||s,l?l.M=t:le.push({M:t,D:n}),n["s-sr"]&&le.map((e=>{ie(e.D,n["s-sn"])&&(l=le.find((e=>e.D===n)),l&&!e.M&&(e.M=l.M))}))):le.some((e=>e.D===n))||le.push({D:n}));1===t.nodeType&&re(t)}},ie=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,ce=e=>{t.vdomRef&&(e.i&&e.i.ref&&e.i.ref(null),e.u&&e.u.map(ce))},ae=(e,l)=>{const r=e.T,d=e.R,u=e.N||T(null,null),f=R(l)?l:x(null,null,l);if(s=r.tagName,t.isDev&&Array.isArray(l)&&l.some(R))throw Error(`The <Host> must be the single root component.\nLooks like the render() function of "${s.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(t.reflect&&d.P&&(f.i=f.i||{},d.P.map((([e,t])=>f.i[t]=r[e]))),f.$=null,f.o|=4,e.N=f,f.v=u.v=t.shadowDom&&r.shadowRoot||r,(t.scoped||t.shadowDom)&&(n=r["s-sc"]),t.slotRelocation&&(o=r["s-cr"],i=$t&&0!=(1&d.o),c=!1),oe(u,f),t.slotRelocation){if(ht.o|=1,a){let e,n,o,s,l,r;re(f.v);let i=0;for(;i<le.length;i++)e=le[i],n=e.D,n["s-ol"]||(o=t.isDebug||t.hydrateServerSide?ue(n):pt.createTextNode(""),o["s-nr"]=n,n.parentNode.insertBefore(n["s-ol"]=o,n));for(i=0;i<le.length;i++)if(e=le[i],n=e.D,e.M){for(s=e.M.parentNode,l=e.M.nextSibling,o=n["s-ol"];o=o.previousSibling;)if(r=o["s-nr"],r&&r["s-sn"]===n["s-sn"]&&s===r.parentNode&&(r=r.nextSibling,!r||!r["s-nr"])){l=r;break}(!l&&s!==n.parentNode||n.nextSibling!==l)&&n!==l&&(!n["s-hn"]&&n["s-ol"]&&(n["s-hn"]=n["s-ol"].parentNode.nodeName),s.insertBefore(n,l))}else 1===n.nodeType&&(n.hidden=!0)}c&&se(f.v),ht.o&=-2,le.length=0}},de=e=>pt.createComment(`<slot${e.m?' name="'+e.m+'"':""}> (host=${s.toLowerCase()})`),ue=e=>pt.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),fe=(e,n)=>{t.asyncLoading&&n&&!e.I&&n["s-p"]&&n["s-p"].push(new Promise((t=>e.I=t)))},pe=(e,n)=>{if(t.taskQueue&&t.updatable&&(e.o|=16),t.asyncLoading&&4&e.o)return void(e.o|=512);fe(e,e.U);const o=()=>me(e,n);return t.taskQueue?Rt(o):o()},me=(e,n)=>{const o=e.T,s=y("scheduleUpdate",e.R.j),l=t.lazyLoad?e.F:o;let r;return n?(t.lazyLoad&&t.hostListener&&(e.o|=256,e.W&&(e.W.map((([e,t])=>ge(l,e,t))),e.W=null)),Ce(o,"componentWillLoad"),t.cmpWillLoad&&(r=ge(l,"componentWillLoad"))):(Ce(o,"componentWillUpdate"),t.cmpWillUpdate&&(r=ge(l,"componentWillUpdate"))),Ce(o,"componentWillRender"),t.cmpWillRender&&(r=we(r,(()=>ge(l,"componentWillRender")))),s(),we(r,(()=>he(e,l,n)))},he=async(e,n,o)=>{const s=e.T,l=y("update",e.R.j),r=s["s-rc"];t.style&&o&&V(e);const i=y("render",e.R.j);if(t.isDev&&(e.o|=1024),t.hydrateServerSide?await $e(e,n,s):$e(e,n,s),t.isDev&&(e.A++,e.o&=-1025),t.hydrateServerSide)try{ke(s),o&&(1&e.R.o?s["s-en"]="":2&e.R.o&&(s["s-en"]="c"))}catch(e){nt(e,s)}if(t.asyncLoading&&r&&(r.map((e=>e())),s["s-rc"]=void 0),i(),l(),t.asyncLoading){const t=s["s-p"],n=()=>ye(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}else ye(e)},$e=(e,n,o)=>{const s=!!t.allRenderFn,l=!!t.lazyLoad,r=!!t.taskQueue,i=!!t.updatable;try{if(u=n,n=(s||n.render)&&n.render(),i&&r&&(e.o&=-17),(i||l)&&(e.o|=2),t.hasRenderFn||t.reflect)if(t.vdomRender||t.reflect){if(t.hydrateServerSide)return Promise.resolve(n).then((t=>ae(e,t)));ae(e,n)}else o.textContent=n}catch(t){nt(t,e.T)}return u=null,null},ye=e=>{const n=e.R.j,o=e.T,s=y("postUpdate",n),l=t.lazyLoad?e.F:o,r=e.U;t.cmpDidRender&&(t.isDev&&(e.o|=1024),ge(l,"componentDidRender"),t.isDev&&(e.o&=-1025)),Ce(o,"componentDidRender"),64&e.o?(t.cmpDidUpdate&&(t.isDev&&(e.o|=1024),ge(l,"componentDidUpdate"),t.isDev&&(e.o&=-1025)),Ce(o,"componentDidUpdate"),s()):(e.o|=64,t.asyncLoading&&t.cssAnnotations&&Se(o),t.cmpDidLoad&&(t.isDev&&(e.o|=2048),ge(l,"componentDidLoad"),t.isDev&&(e.o&=-2049)),Ce(o,"componentDidLoad"),s(),t.asyncLoading&&(e._(o),r||ve(n))),t.hotModuleReplacement&&o["s-hmr-load"]&&o["s-hmr-load"](),t.method&&t.lazyLoad&&e.V(o),t.asyncLoading&&(e.I&&(e.I(),e.I=void 0),512&e.o&&Tt((()=>pe(e,!1))),e.o&=-517)},be=e=>{if(t.updatable){const t=Ge(e),n=t.T.isConnected;return n&&2==(18&t.o)&&pe(t,!1),n}return!1},ve=n=>{t.cssAnnotations&&Se(pt.documentElement),t.asyncQueue&&(ht.o|=2),Tt((()=>F(ut,"appload",{detail:{namespace:e}}))),t.profile&&performance.measure&&performance.measure(`[Stencil] ${e} initial load (by ${n})`,"st:app:start")},ge=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){nt(e)}},we=(e,t)=>e&&e.then?e.then(t):t(),Ce=(n,o)=>{t.lifecycleDOMEvents&&F(n,"stencil_"+o,{bubbles:!0,composed:!0,detail:{namespace:e}})},Se=e=>t.hydratedClass?e.classList.add("hydrated"):t.hydratedAttribute?e.setAttribute("hydrated",""):void 0,ke=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e<n;e++){const n=t[e];"function"==typeof n.connectedCallback&&n.connectedCallback(),ke(n)}},xe=(e,t)=>Ge(e).B.get(t),Te=(e,n,o,s)=>{const l=Ge(e),r=t.lazyLoad?l.T:e,i=l.B.get(n),c=l.o,a=t.lazyLoad?l.F:r;if(o=I(o,s.X[n][0]),(!t.lazyLoad||!(8&c)||void 0===i)&&o!==i&&(!Number.isNaN(i)||!Number.isNaN(o))&&(l.B.set(n,o),t.isDev&&(1024&l.o?lt(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",r,"\nNew value",o,"\nOld value",i):2048&l.o&<(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",r,"\nNew value",o,"\nOld value",i)),!t.lazyLoad||a)){if(t.watchCallback&&s.q&&128&c){const e=s.q[n];e&&e.map((e=>{try{a[e](o,i,n)}catch(e){nt(e,r)}}))}if(t.updatable&&2==(18&c)){if(t.cmpShouldUpdate&&a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,i,n))return;pe(l,!1)}}},Le=(e,n,o)=>{if(t.member&&n.X){t.watchCallback&&e.watchers&&(n.q=e.watchers);const s=Object.entries(n.X),l=e.prototype;if(s.map((([e,[s]])=>{(t.prop||t.state)&&(31&s||(!t.lazyLoad||2&o)&&32&s)?Object.defineProperty(l,e,{get(){return xe(this,e)},set(l){t.isDev&&0==(1&o)&&0==(8&Ge(this).o)&&0!=(31&s)&&0==(1024&s)&<(`@Prop() "${e}" on <${n.j}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`),Te(this,e,l,n)},configurable:!0,enumerable:!0}):t.lazyLoad&&t.method&&1&o&&64&s&&Object.defineProperty(l,e,{value(...t){const n=Ge(this);return n.J.then((()=>n.F[e](...t)))}})})),t.observeAttribute&&(!t.lazyLoad||1&o)){const o=new Map;l.attributeChangedCallback=function(e,t,n){ht.jmp((()=>{const t=o.get(e);if(this.hasOwnProperty(t))n=this[t],delete this[t];else if(l.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==n)return;this[t]=(null!==n||"boolean"!=typeof this[t])&&n}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,s])=>{const l=s[1]||e;return o.set(l,e),t.reflect&&512&s[0]&&n.P.push([e,l]),l}))}}return e},Re=async(e,n,o,s,l)=>{if((t.lazyLoad||t.hydrateServerSide||t.style)&&0==(32&n.o)){if(t.lazyLoad||t.hydrateClientSide){if(n.o|=32,(l=ct(o,n,s)).then){const e=((e,n)=>t.profile&&performance.mark?(0===performance.getEntriesByName(e,"mark").length&&performance.mark(e),()=>{0===performance.getEntriesByName(n,"measure").length&&performance.measure(n,e)}):()=>{})(`st:load:${o.j}:${n.O}`,`[Stencil] Load module for <${o.j}>`);l=await l,e()}if((t.isDev||t.isDebug)&&!l)throw Error(`Constructor for "${o.j}#${n.O}" was not found`);t.member&&!l.isProxied&&(t.watchCallback&&(o.q=l.watchers),Le(l,o,2),l.isProxied=!0);const e=y("createInstance",o.j);t.member&&(n.o|=8);try{new l(n)}catch(e){nt(e)}t.member&&(n.o&=-9),t.watchCallback&&(n.o|=128),e(),je(n.F)}else l=e.constructor,n.o|=32,customElements.whenDefined(o.j).then((()=>n.o|=128));if(t.style&&l.style){let s=l.style;t.mode&&"string"!=typeof s&&(s=s[n.O=P(e)],t.hydrateServerSide&&n.O&&e.setAttribute("s-mode",n.O));const r=z(o,n.O);if(!at.has(r)){const e=y("registerStyles",o.j);!t.hydrateServerSide&&t.shadowDom&&t.shadowDomShim&&8&o.o&&(s=await import("./p-da455c82.js").then((e=>e.scopeCss(s,r,!1)))),A(r,s,!!(1&o.o)),e()}}}const r=n.U,i=()=>pe(n,!0);t.asyncLoading&&r&&r["s-rc"]?r["s-rc"].push(i):i()},je=e=>{t.lazyLoad&&t.connectedCallback&&ge(e,"connectedCallback")},Ee=e=>{if(0==(1&ht.o)){const n=Ge(e),o=n.R,s=y("connectedCallback",o.j);if(t.hostListenerTargetParent&&Ve(e,n,o.Y,!0),1&n.o)Ve(e,n,o.Y,!1),je(n.F);else{let s;if(n.o|=1,t.hydrateClientSide&&(s=e.getAttribute(b),s)){if(t.shadowDom&&$t&&1&o.o){const n=t.mode?_(e.shadowRoot,o,e.getAttribute("s-mode")):_(e.shadowRoot,o);e.classList.remove(n+"-h",n+"-s")}((e,n,o,s)=>{const l=y("hydrateClient",n),r=e.shadowRoot,i=[],c=t.shadowDom&&r?[]:null,a=s.N=T(n,null);ht.K||N(pt.body,ht.K=new Map),e[b]=o,e.removeAttribute(b),M(a,i,[],c,e,e,o),i.map((e=>{const t=e.g+"."+e.C,o=ht.K.get(t),s=e.v;o&&$t&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),r||(s["s-hn"]=n,o&&(s["s-ol"]=o,s["s-ol"]["s-nr"]=s)),ht.K.delete(t)})),t.shadowDom&&r&&c.map((e=>{e&&r.appendChild(e)})),l()})(e,o.j,s,n)}if(t.slotRelocation&&!s&&(t.hydrateServerSide||(t.slot||t.shadowDom)&&12&o.o)&&Oe(e),t.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(t.hydrateClientSide&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){fe(n,n.U=o);break}}t.prop&&!t.hydrateServerSide&&o.X&&Object.entries(o.X).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),t.initializeNextTick?Tt((()=>Re(e,n,o))):Re(e,n,o)}s()}},Oe=e=>{const n=e["s-cr"]=pt.createComment(t.isDebug?`content-ref (host=${e.localName})`:"");n["s-cn"]=!0,e.insertBefore(n,e.firstChild)},De=e=>{if(0==(1&ht.o)){const n=Ge(e),o=t.lazyLoad?n.F:e;t.hostListener&&n.G&&(n.G.map((e=>e())),n.G=void 0),t.lazyLoad&&t.disconnectedCallback&&ge(o,"disconnectedCallback"),t.cmpDidUnload&&ge(o,"componentDidUnload")}},Me=(e,n)=>{const o={o:n[0],j:n[1]};t.member&&(o.X=n[2]),t.hostListener&&(o.Y=n[3]),t.watchCallback&&(o.q=e.q),t.reflect&&(o.P=[]),t.shadowDom&&!$t&&1&o.o&&(o.o|=8);const s=e.prototype.connectedCallback,l=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){et(this,o)},connectedCallback(){Ee(this),t.connectedCallback&&s&&s.call(this)},disconnectedCallback(){De(this),t.disconnectedCallback&&l&&l.call(this)},__attachShadow(){$t?this.attachShadow(t.shadowDelegatesFocus?{mode:"open",delegatesFocus:!!(16&o.o)}:{mode:"open"}):this.shadowRoot=this}}),e.is=o.j,Le(e,o,3)},Ne=e=>{const n=e.cloneNode;e.cloneNode=function(e){const o=this,s=!!t.shadowDom&&o.shadowRoot&&$t,l=n.call(o,!!s&&e);if(t.slot&&!s&&e){let e,n,s=0;const r=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si"];for(;s<o.childNodes.length;s++)e=o.childNodes[s]["s-nr"],n=r.every((e=>!o.childNodes[s][e])),e&&(t.appendChildSlotFix&&l.__appendChild?l.__appendChild(e.cloneNode(!0)):l.appendChild(e.cloneNode(!0))),n&&l.appendChild(o.childNodes[s].cloneNode(!0))}return l}},Pe=e=>{e.__appendChild=e.appendChild,e.appendChild=function(e){const t=e["s-sn"]=He(e),n=Fe(this.childNodes,t);if(n){const o=We(n,t),s=o[o.length-1];return s.parentNode.insertBefore(e,s.nextSibling)}return this.__appendChild(e)}},Ie=(e,n)=>{if(t.scoped&&2&n.o){const t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),Object.defineProperty(e,"textContent",{get(){var e;const t=Fe(this.childNodes,"");return 3===(null===(e=null==t?void 0:t.nextSibling)||void 0===e?void 0:e.nodeType)?t.nextSibling.textContent:t?t.textContent:this.__textContent},set(e){var t;const n=Fe(this.childNodes,"");if(3===(null===(t=null==n?void 0:n.nextSibling)||void 0===t?void 0:t.nodeType))n.nextSibling.textContent=e;else if(n)n.textContent=e;else{this.__textContent=e;const t=this["s-cr"];t&&this.insertBefore(t,this.firstChild)}}})}},Ue=(e,t)=>{class n extends Array{item(e){return this[e]}}if(8&t.o){const t=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map((e=>1===e.nodeType))}}),Object.defineProperty(e,"childElementCount",{get:()=>e.children.length}),Object.defineProperty(e,"childNodes",{get(){const e=t.call(this);if(0==(1&ht.o)&&2&Ge(this).o){const t=new n;for(let n=0;n<e.length;n++){const o=e[n]["s-nr"];o&&t.push(o)}return t}return n.from(e)}})}},He=e=>e["s-sn"]||1===e.nodeType&&e.getAttribute("slot")||"",Fe=(e,t)=>{let n,o=0;for(;o<e.length;o++){if(n=e[o],n["s-sr"]&&n["s-sn"]===t)return n;if(n=Fe(n.childNodes,t),n)return n}return null},We=(e,t)=>{const n=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},Ae=(e,n={})=>{var o;t.profile&&performance.mark&&performance.mark("st:app:start"),(()=>{if(t.devTools){const e=ut.stencil=ut.stencil||{},t=e.inspect;e.inspect=e=>{let n=(e=>{const t=Ge(e);if(!t)return;const n=t.o,o=t.T;return{renderCount:t.A,flags:{hasRendered:!!(2&n),hasConnected:!!(1&n),isWaitingForChildren:!!(4&n),isConstructingInstance:!!(8&n),isQueuedForUpdate:!!(16&n),hasInitializedComponent:!!(32&n),hasLoadedComponent:!!(64&n),isWatchReady:!!(128&n),isListenReady:!!(256&n),needsRerender:!!(512&n)},instanceValues:t.B,ancestorComponent:t.U,hostElement:o,lazyInstance:t.F,vnode:t.N,modeName:t.O,onReadyPromise:t.Z,onReadyResolve:t._,onInstancePromise:t.J,onInstanceResolve:t.V,onRenderResolve:t.I,queuedListeners:t.W,rmListeners:t.G,"s-id":o["s-id"],"s-cr":o["s-cr"],"s-lr":o["s-lr"],"s-p":o["s-p"],"s-rc":o["s-rc"],"s-sc":o["s-sc"]}})(e);return n||"function"!=typeof t||(n=t(e)),n}}})();const s=y("bootstrapLazy"),l=[],r=n.exclude||[],i=ut.customElements,c=pt.head,a=c.querySelector("meta[charset]"),d=pt.createElement("style"),u=[],f=pt.querySelectorAll(`[${v}]`);let p,m=!0,h=0;if(Object.assign(ht,n),ht.t=new URL(n.resourcesUrl||"./",pt.baseURI).href,t.asyncQueue&&n.syncQueue&&(ht.o|=4),t.hydrateClientSide&&(ht.o|=2),t.hydrateClientSide&&t.shadowDom)for(;h<f.length;h++)A(f[h].getAttribute(v),B(f[h].innerHTML),!0);if(e.map((e=>{e[1].map((o=>{const s={o:o[0],j:o[1],X:o[2],Y:o[3]};t.member&&(s.X=o[2]),t.hostListener&&(s.Y=o[3]),t.reflect&&(s.P=[]),t.watchCallback&&(s.q={}),t.shadowDom&&!$t&&1&s.o&&(s.o|=8);const c=t.transformTagName&&n.transformTagName?n.transformTagName(s.j):s.j,a=class extends HTMLElement{constructor(e){super(e),et(e=this,s),t.shadowDom&&1&s.o&&($t?e.attachShadow(t.shadowDelegatesFocus?{mode:"open",delegatesFocus:!!(16&s.o)}:{mode:"open"}):t.hydrateServerSide||"shadowRoot"in e||(e.shadowRoot=e)),t.slotChildNodesFix&&Ue(e,s)}connectedCallback(){p&&(clearTimeout(p),p=null),m?u.push(this):ht.jmp((()=>Ee(this)))}disconnectedCallback(){ht.jmp((()=>De(this)))}componentOnReady(){return Ge(this).Z}};t.cloneNodeFix&&Ne(a.prototype),t.appendChildSlotFix&&Pe(a.prototype),t.hotModuleReplacement&&(a.prototype["s-hmr"]=function(e){((e,t,n)=>{const o=Ge(e);o.o=1,e["s-hmr-load"]=()=>{delete e["s-hmr-load"]},Re(e,o,t,n)})(this,s,e)}),t.scopedSlotTextContentFix&&Ie(a.prototype,s),s.ee=e[0],r.includes(c)||i.get(c)||(l.push(c),i.define(c,Le(a,s,1)))}))})),t.invisiblePrehydration&&(t.hydratedClass||t.hydratedAttribute)){d.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",d.setAttribute("data-styles","");const e=null!==(o=ht.L)&&void 0!==o?o:k(pt);null!=e&&d.setAttribute("nonce",e),c.insertBefore(d,a?a.nextSibling:c.firstChild)}m=!1,u.length?u.map((e=>e.connectedCallback())):ht.jmp(t.profile?()=>p=setTimeout(ve,30,"timeout"):()=>p=setTimeout(ve,30)),s()},_e=(e,t)=>t,Ve=(e,n,o,s)=>{t.hostListener&&o&&(t.hostListenerTargetParent&&(o=o.filter(s?([e])=>32&e:([e])=>!(32&e))),o.map((([o,s,l])=>{const r=t.hostListenerTarget?Be(e,o):e,i=ze(n,l),c=Xe(o);ht.ael(r,s,i,c),(n.G=n.G||[]).push((()=>ht.rel(r,s,i,c)))})))},ze=(e,n)=>o=>{try{t.lazyLoad?256&e.o?e.F[n](o):(e.W=e.W||[]).push([n,o]):e.T[n](o)}catch(e){nt(e)}},Be=(e,n)=>t.hostListenerTargetDocument&&4&n?pt:t.hostListenerTargetWindow&&8&n?ut:t.hostListenerTargetBody&&16&n?pt.body:t.hostListenerTargetParent&&32&n?e.parentElement:e,Xe=e=>({passive:0!=(1&e),capture:0!=(2&e)}),qe=e=>ht.L=e,Je=(e,t,n,o)=>{null!=t&&(null!=t["s-nr"]&&o.push(t),1===t.nodeType&&t.childNodes.forEach((t=>{const s=Ge(t);null==s||n.staticComponents.has(t.nodeName.toLowerCase())||Qe(e,t,s.N,n,{nodeIds:0}),Je(e,t,n,o)})))},Qe=(e,t,n,o,s)=>{if(null!=n){const l=++o.hostIds;if(t.setAttribute(b,l),null!=t["s-cr"]&&(t["s-cr"].nodeValue="r."+l),null!=n.u){const t=0;n.u.forEach(((n,o)=>{Ye(e,n,s,l,t,o)}))}if(t&&n&&n.v&&!t.hasAttribute("c-id")){const e=t.parentElement;if(e&&e.childNodes){const o=Array.from(e.childNodes),s=o.find((e=>8===e.nodeType&&e["s-sr"]));if(s){const e=o.indexOf(t)-1;n.v.setAttribute(g,`${s["s-host-id"]}.${s["s-node-id"]}.0.${e}`)}}}}},Ye=(e,t,n,o,s,l)=>{const r=t.v;if(null==r)return;const i=n.nodeIds++,c=`${o}.${i}.${s}.${l}`;if(r["s-host-id"]=o,r["s-node-id"]=i,1===r.nodeType)r.setAttribute(g,c);else if(3===r.nodeType){const t=r.parentNode,n=t.nodeName;if("STYLE"!==n&&"SCRIPT"!==n){const n=e.createComment("t."+c);t.insertBefore(n,r)}}else 8===r.nodeType&&r["s-sr"]&&(r.nodeValue=`s.${c}.${r["s-sn"]||""}`);if(null!=t.u){const l=s+1;t.u.forEach(((t,s)=>{Ye(e,t,n,o,l,s)}))}},Ke=new WeakMap,Ge=e=>Ke.get(e),Ze=(e,t)=>Ke.set(t.F=e,t),et=(e,n)=>{const o={o:0,T:e,R:n,B:new Map};return t.isDev&&(o.A=0),t.method&&t.lazyLoad&&(o.J=new Promise((e=>o.V=e))),t.asyncLoading&&(o.Z=new Promise((e=>o._=e)),e["s-p"]=[],e["s-rc"]=[]),Ve(e,o,n.Y,!1),Ke.set(e,o)},tt=(e,t)=>t in e,nt=(e,t)=>(l||console.error)(e,t),ot=t.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],st=(...e)=>console.error(...ot,...e),lt=(...e)=>console.warn(...ot,...e),rt=(...e)=>console.info(...ot,...e),it=new Map,ct=(e,n,o)=>{const s=e.j.replace(/-/g,"_"),l=e.ee;if(t.isDev&&"string"!=typeof l)return void st(`Trying to lazily load component <${e.j}> with style mode "${n.O}", but it does not exist.`);const r=!t.hotModuleReplacement&&it.get(l);return r?r[s]:import(`./${l}.entry.js${t.hotModuleReplacement&&o?"?s-hmr="+o:""}`).then((e=>(t.hotModuleReplacement||it.set(l,e),e[s])),nt)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},at=new Map,dt=[],ut="undefined"!=typeof window?window:{},ft=t.cssVarShim?ut.CSS:null,pt=ut.document||{head:{}},mt=ut.HTMLElement||class{},ht={o:0,t:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},$t=!t.shadowDomShim||!t.shadowDom||(()=>(pt.head.attachShadow+"").indexOf("[native")>-1)(),yt=e=>Promise.resolve(e),bt=!!t.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),vt=[],gt=[],wt=[],Ct=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&ht.o?Tt(xt):ht.raf(xt))},St=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){nt(e)}e.length=0},kt=(e,t)=>{let n=0,o=0;for(;n<e.length&&(o=performance.now())<t;)try{e[n++](o)}catch(e){nt(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},xt=()=>{if(t.asyncQueue&&f++,St(vt),t.asyncQueue){const e=2==(6&ht.o)?performance.now()+14*Math.ceil(.1*f):1/0;kt(gt,e),kt(wt,e),gt.length>0&&(wt.push(...gt),gt.length=0),(p=vt.length+gt.length+wt.length>0)?ht.raf(xt):f=0}else St(gt),(p=vt.length>0)&&ht.raf(xt)},Tt=e=>yt().then(e),Lt=Ct(vt,!1),Rt=Ct(gt,!0),jt=Object.freeze({__proto__:null,Build:m,CSS:ft,Context:h,Fragment:_e,H:mt,HTMLElement:mt,Host:L,STENCIL_DEV_MODE:ot,addHostEventListeners:Ve,bootstrapLazy:Ae,cmpModules:it,connectedCallback:Ee,consoleDevError:st,consoleDevInfo:rt,consoleDevWarn:lt,consoleError:nt,createEvent:H,defineCustomElement:(e,t)=>{customElements.define(t[1],Me(e,t))},disconnectedCallback:De,doc:pt,forceModeUpdate:e=>{if(t.style&&t.mode&&!t.lazyLoad){const t=P(e),n=Ge(e);if(n.O!==t){const o=n.R,s=e["s-sc"],l=z(o,t),r=e.constructor.style[t],i=o.o;r&&(at.has(l)||A(l,r,!!(1&i)),n.O=t,e.classList.remove(s+"-h",s+"-s"),V(n),be(e))}}},forceUpdate:be,getAssetPath:$,getConnect:(e,t)=>{const n=()=>{let e=pt.querySelector(t);return e||(e=pt.createElement(t),pt.body.appendChild(e)),"function"==typeof e.componentOnReady?e.componentOnReady():Promise.resolve(e)};return{create:(...e)=>n().then((t=>t.create(...e))),componentOnReady:n}},getContext:(e,n)=>n in h?h[n]:"window"===n?ut:"document"===n?pt:"isServer"===n||"isPrerender"===n?!!t.hydrateServerSide:"isClient"===n?!t.hydrateServerSide:"resourcesUrl"===n||"publicPath"===n?$("."):"queue"===n?{write:Rt,read:Lt,tick:{then:e=>Tt(e)}}:void 0,getElement:U,getHostRef:Ge,getMode:e=>Ge(e).O,getRenderingRef:()=>u,getValue:xe,h:x,insertVdomAnnotations:(e,t)=>{if(null!=e){const n={hostIds:0,rootLevelIds:0,staticComponents:new Set(t)},o=[];Je(e,e.body,n,o),o.forEach((t=>{if(null!=t){const o=t["s-nr"];let s=o["s-host-id"],l=o["s-node-id"],r=`${s}.${l}`;if(null==s)if(s=0,n.rootLevelIds++,l=n.rootLevelIds,r=`${s}.${l}`,1===o.nodeType)o.setAttribute(g,r);else if(3===o.nodeType){if(0===s&&""===o.nodeValue.trim())return void t.remove();const n=e.createComment(r);n.nodeValue="t."+r,o.parentNode.insertBefore(n,o)}let i="o."+r;const c=t.parentElement;c&&(""===c["s-en"]?i+=".":"c"===c["s-en"]&&(i+=".c")),t.nodeValue=i}}))}},isMemberInElement:tt,loadModule:ct,modeResolutionChain:dt,nextTick:Tt,parsePropertyValue:I,plt:ht,postUpdateComponent:ye,promiseResolve:yt,proxyComponent:Le,proxyCustomElement:Me,readTask:Lt,registerHost:et,registerInstance:Ze,renderVdom:ae,setAssetPath:e=>ht.t=e,setErrorHandler:e=>l=e,setMode:e=>dt.push(e),setNonce:qe,setPlatformHelpers:e=>{Object.assign(ht,e)},setPlatformOptions:e=>Object.assign(ht,e),setValue:Te,styles:at,supportsConstructableStylesheets:bt,supportsListenerOptions:!0,supportsShadow:$t,win:ut,writeTask:Rt,BUILD:t,Env:{},NAMESPACE:e});export{t as B,ft as C,_e as F,mt as H,e as N,jt as S,ht as a,Ae as b,rt as c,pt as d,H as e,L as f,U as g,x as h,be as i,yt as p,Ze as r,qe as s,ut as w}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,
|
|
1
|
+
import{r as t,e as s,h as i,g as e}from"./p-2c9d0870.js";import{ElementIDUtils as h,ApplicationContext as r}from"@sankhyalabs/core";import{F as a}from"./p-ff1990ad.js";const o=class{constructor(i){t(this,i),this.valueChanged=s(this,"valueChanged",7),this._isSearchPlus=!1,this.config=void 0,this.value=void 0,this.errorMessage=void 0}async ezChangeListener(t){this.errorMessage=void 0,this.value=this._isSearchPlus?await this._searchInput.getValueAsync():this._searchInput.value,this.valueChanged.emit(this.value)}componentDidLoad(){this._element&&h.addIDInfo(this._element,"filterContentEditor")}doSearch(t,s,i=!1){const e=r.getContextValue("__SNK__APPLICATION__"),h=i?e.executePreparedSearchPlus:e.executePreparedSearch;return new Promise(((i,r)=>{h.bind(e)(t,s,this.config.props.searchContext).then((t=>{i(t)})).catch((t=>{r(t)}))}))}async setFocus(){this._searchInput.setFocus()}async clearValue(){this.value=this.config.value,this._searchInput&&(this._searchInput.value=this.config.value)}getInputItem(){var t;return this._isSearchPlus=1==(null===(t=this.config.props)||void 0===t?void 0:t.useSearchPlus),i("ez-tooltip",{active:!1===this.config.enabled,message:this.config.disabledMessage,type:"warning"},i(this._isSearchPlus?"ez-search-plus":"ez-search",{id:this.config.id,suppressEmptyOption:!0,value:this.config.value,label:this.config.label,enabled:this.config.enabled,ref:t=>this._searchInput=t,optionLoader:({mode:t,argument:s})=>this.doSearch(t,s,this._isSearchPlus),errorMessage:this.errorMessage}))}render(){if(this.config&&this.config.type===a.SEARCH)return this.getInputItem()}get _element(){return e(this)}};export{o as snk_filter_search}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,
|
|
1
|
+
import{r as i,e as t,h as s,f as n}from"./p-2c9d0870.js";import{ApplicationUtils as e}from"@sankhyalabs/ezui/dist/collection/utils";const o=class{constructor(s){i(this,s),this.configClose=t(this,"configClose",7),this.saveConfig=t(this,"saveConfig",7),this.isEditingGuide=!1,this.isEditingGroup=!1,this.configOptions=[],this.selectedConfig=void 0,this.messagesBuilder=void 0,this.hasChanges=!1,this.optionConfigChanged=!1}handleIsEditingGuideName({detail:i}){this.isEditingGuide=i}handleIsEditingGroupName({detail:i}){this.isEditingGroup=i}saveFormConfig(){if(this.isEditingGuide||this.isEditingGroup){const i=this.getMessage("snkFormConfig.confirm.title"),t=this.getMessage(this.isEditingGuide?"snkFormConfig.alert.titleGuideEditing":"snkFormConfig.alert.titleGroupEditing");e.alert(i,t)}else this.saveConfig.emit()}async closeFormConfig(){if(this.hasChanges){const i=this.getMessage("snkFormConfig.confirm.title"),t=this.getMessage("snkFormConfig.confirm.cancel");if(!await e.confirm(i,t))return}this.configClose.emit()}getMessage(i,t){return this.messagesBuilder.getMessage(i,t)}openConfirmDialog(i="",t=this.getMessage("snkFormConfig.confirm.title")){return e.confirm(t,i)}async applyOptionConfig(){var i,t;const s=null!==(t=null===(i=this.selectedConfig)||void 0===i?void 0:i.name)&&void 0!==t?t:this.getMessage("snkFormConfig.configs.selectedConfig"),n=this.getMessage("snkFormConfig.confirm.apply").replace("{0}",s);await this.openConfirmDialog(n)&&this.saveConfig.emit()}renderSaveActions(){if(this.hasChanges||this.optionConfigChanged)return s("div",{class:"right-group"},s("ez-button",{title:this.getMessage("snkFormConfig.actions.cancel"),label:this.getMessage("snkFormConfig.actions.cancel"),onClick:this.closeFormConfig.bind(this),size:"medium"}),s("ez-button",this.hasChanges?{title:this.getMessage("snkFormConfig.actions.save"),label:this.getMessage("snkFormConfig.actions.save"),class:"ez-button--primary ez-padding-left--medium",onClick:()=>this.saveFormConfig(),size:"medium"}:{title:this.getMessage("snkFormConfig.actions.save"),label:this.getMessage("snkFormConfig.applyConfig"),class:"ez-button--primary ez-padding-left--medium",onClick:async()=>await this.applyOptionConfig(),size:"medium"}))}render(){return s(n,null,s("div",{class:"left-group"},s("ez-button",{mode:"icon",title:this.getMessage("snkFormConfig.goBackTitle"),iconName:"arrow_back",class:"ez-padding--small",size:"small",onClick:this.closeFormConfig.bind(this),id:"formConfigToBack"}),s("h1",{class:"ez-title ez-title--primary ez-title--extra-large ez-padding--small"},this.getMessage("snkFormConfig.title")),s("configs-button",{hasChanges:this.hasChanges,configOptions:this.configOptions,selectedConfig:this.selectedConfig,messagesBuilder:this.messagesBuilder})),this.renderSaveActions())}};o.style=".sc-config-header-h{display:flex;padding-top:12px;padding-left:12px;align-items:center;width:100%;justify-content:space-between}.left-group.sc-config-header{display:flex;gap:8px}.right-group.sc-config-header{padding-right:18px;display:flex}";export{o as config_header}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./p-2c9d0870.js";import{P as a}from"./p-0f3698af.js";import{s as t}from"./p-a73b6b00.js";var n,i,s;!function(e){e.PREVIOUS="PREVIOUS",e.NEXT="NEXT",e.REFRESH="REFRESH",e.UPDATE="UPDATE",e.CLONE="CLONE",e.REMOVE="REMOVE",e.INSERT="INSERT",e.CANCEL="CANCEL",e.SAVE="SAVE",e.GRID_MODE="GRID_MODE",e.FORM_MODE="FORM_MODE",e.MORE_OPTIONS="MORE_OPTIONS",e.DIVIDER="DIVIDER",e.SPACER="SPACER",e.CONFIGURATOR="CONFIGURATOR",e.DATA_EXPORTER="DATA_EXPORTER",e.ATTACH="ATTACH",e.ACTIONS_BUTTON="ACTIONS_BUTTON",e.UPDATE_MULTIPLE="UPDATE_MULTIPLE"}(n||(n={})),function(e){e.UPDATE="UPDATE",e.CLONE="CLONE",e.REMOVE="REMOVE",e.INSERT="INSERT",e.CONFIGURATOR="CONFIGURATOR"}(i||(i={})),function(e){e.CONFIGURATOR="CONFIGURATOR"}(s||(s={}));const c=({def:e,className:a,dataElementId:t,action:n,isEnabled:i,size:s})=>{const{hint:c,text:l,iconName:o}=e;return o?l?m({iconName:o,element:e.name,className:a,dataElementId:t,title:c,action:n,isEnabled:i,size:s}):d({iconName:o,element:e.name,className:a,dataElementId:t,title:c,action:n,isEnabled:i,size:s}):r({element:e.name,className:a,dataElementId:t,title:c,action:n,isEnabled:i,size:s})},l=({element:i,className:s,dataElementId:c,getTitle:l,action:o,isEnabled:b,actions:E,dataExporterStoreKey:u,presentationMode:N,variant:O,size:v})=>{var z,k;const j={element:i,className:s,dataElementId:c,title:l(i),action:o,isEnabled:b,actions:E,variant:O,size:v};switch(i){case n.PREVIOUS:return d(Object.assign({iconName:"chevron-left"},j));case n.NEXT:return d(Object.assign({iconName:"chevron-right"},j));case n.REFRESH:return d(Object.assign({iconName:"sync"},j));case n.UPDATE:return d(Object.assign({iconName:"edit"},j));case n.UPDATE_MULTIPLE:return d(Object.assign({iconName:"edit-table"},j));case n.CLONE:return d(Object.assign({iconName:"copy"},j));case n.REMOVE:return d(Object.assign({iconName:"delete"},j));case n.INSERT:return N===a.PRIMARY?r(Object.assign({},j)):d(Object.assign({iconName:"plus"},j));case n.CANCEL:return r(Object.assign({},j));case n.SAVE:return N===a.PRIMARY?m(Object.assign(Object.assign({iconName:"save"},j),{variant:"primary"})):d(Object.assign(Object.assign({iconName:"save"},j),{variant:"primary"}));case n.GRID_MODE:return d(Object.assign({iconName:"table"},j));case n.FORM_MODE:return d(Object.assign({iconName:"list"},j));case n.CONFIGURATOR:return(null==E?void 0:E.length)>0?function({iconName:a,element:t,className:n,title:i,dataElementId:s,isEnabled:c,actions:l,action:r,size:o}){return l&&l.length>0?e("taskbar-split-button",{key:s,class:n,iconName:a,"data-taskbar-icon":a,"data-taskbar-label":i,title:i,"data-taskbar-element":t,"data-element-id":s,enabled:c(t),actions:l,action:()=>r(t),size:o}):void 0}(Object.assign({iconName:"settings-inverted"},j)):d(Object.assign({iconName:"settings-inverted"},j));case n.MORE_OPTIONS:const l=null!==(z=null==E?void 0:E.filter((e=>void 0!==e)))&&void 0!==z?z:[];return function({element:a,className:t,dataElementId:n,title:i,isEnabled:s,actions:c,action:l,size:r}){return c&&c.length>0?e("taskbar-actions-button",{class:t,key:n,title:i,"data-taskbar-element":a,"data-element-id":n,enabled:s(a),actions:c,onTaskbarActionSelected:e=>l(e.detail.value),size:r}):void 0}(Object.assign(Object.assign({},j),{actions:l}));case n.DIVIDER:return e("hr",{class:"ez-divider-vertical ez-divider--dark ez-margin--none ez-margin-left--medium","data-taskbar-divider":!0});case n.DATA_EXPORTER:const o=null===(k=t.get("exporterProviders"))||void 0===k?void 0:k[u];return e("snk-data-exporter",{class:s,provider:o,"data-element-id":c,"data-taskbar-element":i,size:v});case n.ATTACH:return d(Object.assign({iconName:"anexo"},j));case n.ACTIONS_BUTTON:return e("snk-actions-button",{"data-element-id":c,"data-taskbar-element":i,class:s,size:v})}};function r({action:a,className:t,dataElementId:n,title:i,element:s,isEnabled:c,variant:l,size:r}){return e("ez-tooltip",{key:n,message:i,class:t},e("ez-button",{label:i,"data-taskbar-label":i,"data-taskbar-element":s,"data-element-id":n,isDisabled:!c(s),onClick:()=>a(s),variant:l,size:r}))}function o(e){return"string"==typeof e?e:Object.keys(e).filter((a=>e[a])).join(" ")}function d({iconName:a,element:t,className:n,dataElementId:i,title:s,action:c,isEnabled:l,variant:r,size:d}){return e("ez-tooltip",{key:i,message:s,class:{[o(n)]:!0,[`icon-button--${d}`]:!0}},e("ez-button",{mode:"icon","data-taskbar-label":s,"data-taskbar-element":t,"data-taskbar-icon":a,"data-element-id":i,iconName:a,isDisabled:!l(t),onClick:()=>c(t),variant:r,size:d}))}function m({iconName:a,element:t,className:n,dataElementId:i,title:s,action:c,isEnabled:l,variant:r,size:o}){return e("ez-tooltip",{key:i,message:s,class:n},e("ez-button",{label:s,"data-taskbar-label":s,"data-taskbar-icon":a,"data-taskbar-element":t,"data-element-id":i,isDisabled:!l(t),onClick:()=>c(t),variant:r,size:o},e("ez-icon",{class:"ez-padding-right--small",slot:"leftIcon",iconName:a})))}export{i as A,n as T,s as V,c as a,l as b}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{S as snk_guides_viewer}from"./p-771b137e.js";import"./p-2c9d0870.js";import"@sankhyalabs/core";import"@sankhyalabs/ezui/dist/collection/utils";import"@sankhyalabs/ezui/dist/collection/utils/form";import"./p-9019a32f.js";import"./p-ab5e12fa.js";import"./p-3c990841.js";import"./p-3870748a.js";import"./p-2af8aca3.js";import"./p-8d884fab.js";import"./p-554c0e54.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-ff1990ad.js";import"./p-3072136e.js";import"./p-0f3698af.js";import"./p-a73b6b00.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ObjectUtils as t}from"@sankhyalabs/core";import{R as a}from"./p-
|
|
1
|
+
import{ObjectUtils as t}from"@sankhyalabs/core";import{R as a}from"./p-3870748a.js";class s extends a{getData(a){const s=`cfg://auth/${a}`;return new Promise(((a,e)=>{this.loadResource(s).then((s=>{let e=t.stringToObject(s);e&&"object"==typeof e&&a(e)})).catch((t=>{e(t)}))}))}}var e;!function(t){t.INSERT="I",t.UPDATE="A",t.REMOVE="E",t.SHOW="C",t.CONFIG="F",t.CONFIG_NUMBER="N",t.CLONE="D",t.CONFIG_GRID="G"}(e||(e={}));export{e as A,s as a}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import{d as e,D as t}from"./p-2af8aca3.js";import{ObjectUtils as n}from"@sankhyalabs/core";class r{constructor(){this.templateByQuery=new Map,this.buldTemplates()}buldTemplates(){this.templateByQuery.set("fetchResource",e.gql`query($name: String!) {
|
|
2
|
+
$queryAlias$: fetchResource(name: $name){
|
|
3
|
+
resource
|
|
4
|
+
}
|
|
5
|
+
}`),this.templateByQuery.set("saveResource",e.gql`mutation($resource: InputResource!) {
|
|
6
|
+
$queryAlias$: saveResource(resource: $resource){
|
|
7
|
+
name
|
|
8
|
+
resource
|
|
9
|
+
}
|
|
10
|
+
}`),this.templateByQuery.set("deleteResource",e.gql`mutation($name: String!) {
|
|
11
|
+
$queryAlias$: deleteResource(name: $name)
|
|
12
|
+
}`)}loadResource(e){if(r._loadingResource.has(e))return r._loadingResource.get(e);const n=new Promise(((n,o)=>{t.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchResource")}).then((t=>{n(null==t?void 0:t.resource),r._loadingResource.delete(e)})).catch((t=>{o(t),r._loadingResource.delete(e)}))}));return r._loadingResource.set(e,n),n}saveResource(e,n){return new Promise(((r,o)=>{t.get().callGraphQL({values:{resource:{name:n,resource:JSON.stringify(e)}},query:this.templateByQuery.get("saveResource")}).then((e=>{r(e)})).catch((e=>{o(e)}))}))}deleteResource(e){return new Promise(((n,r)=>{t.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("deleteResource")}).then((()=>{n()})).catch((e=>{r(e)}))}))}}r._loadingResource=new Map;class o extends r{constructor(){super(),this.queryConfig=new Map,this.buildTemplatesConfig()}buildTemplatesConfig(){this.queryConfig.set("fetchUserAvailableConfigs",e.gql`query($name: String!) {
|
|
13
|
+
$queryAlias$: fetchUserAvailableConfigs(name: $name){
|
|
14
|
+
name
|
|
15
|
+
origin
|
|
16
|
+
key
|
|
17
|
+
}
|
|
18
|
+
}`),this.queryConfig.set("fetchLegacyConfig",e.gql`query($name: String!) {
|
|
19
|
+
$queryAlias$: fetchLegacyConfig(name: $name){
|
|
20
|
+
name
|
|
21
|
+
resource
|
|
22
|
+
}
|
|
23
|
+
}`),this.queryConfig.set("fetchDefaultConfig",e.gql`query($name: String!) {
|
|
24
|
+
$queryAlias$: fetchDefaultConfig(name: $name){
|
|
25
|
+
name
|
|
26
|
+
resource
|
|
27
|
+
}
|
|
28
|
+
}`)}loadFormConfig(e,t){return new Promise(((n,r)=>{Promise.all([this.loadResource(this.getPath(t,e)),this.loadResource(this.getPath(`FormCardState:${t}`,e,"form-card")),this.loadResource(this.getPath(t,e,"summary")),this.loadResource(this.getPath(t,e,"defaultValues"))]).then((([e,t,r,o])=>{let s;if(null!=e){s=Object.assign(Object.assign({},JSON.parse(e)),{emptyConfig:!1});const{tabs:t,fields:n}=s;if(t){const e=new Map(t.map((e=>[e.label,e])));null==n||n.forEach((t=>{var n;return t.tab=(null===(n=e.get(this.getTabName(t.tab)))||void 0===n?void 0:n.label)||e.get(this.getTabName(t.tab))}))}s.fields=null==n?void 0:n.map((e=>{if("readonly"in e){const t=!0===e.readonly;delete e.readonly,e.readOnly=t}return e}))}null!=t&&(null==s&&(s={emptyConfig:!0,fields:[]}),s.cardsState=new Map(JSON.parse(t))),null!=r&&(null==s&&(s={emptyConfig:!0,fields:[]}),s.summary=new Map(Object.entries(JSON.parse(r)))),null!=o&&(null==s&&(s={emptyConfig:!0,fields:[]}),s.defaultVars=new Map(Object.entries(JSON.parse(o)))),n(s)})).catch((e=>{r(e)}))}))}getTabName(e){return"object"==typeof e?e.label:e}saveCardState(e,t,n){const r=this.getPath(`FormCardState:${n}`,t,"form-card");return new Promise(((t,n)=>{this.saveResource(Array.from(e.entries()),r).then((e=>{t(new Map(JSON.parse(e.resource)))})).catch((e=>{n(e)}))}))}saveConfig(e,t,n){delete e.cardsState,delete e.defaultVars,delete e.summary;const r=this.getPath(n,t);return new Promise(((t,n)=>{this.saveResource(e,r).then((e=>{t(JSON.parse(e.resource))})).catch((e=>{n(e)}))}))}fetchUserAvailableConfigs(e,n){const r=this.getPath(n,e);return new Promise(((e,n)=>{t.get().callGraphQL({values:{name:r},query:this.queryConfig.get("fetchUserAvailableConfigs")}).then((t=>{e(t)})).catch((e=>{n(e)}))}))}fetchLegacyConfig(e,r){const o=this.getPath(r,e);return new Promise(((e,r)=>{t.get().callGraphQL({values:{name:o},query:this.queryConfig.get("fetchLegacyConfig")}).then((t=>{e(n.stringToObject((null==t?void 0:t.resource)||""))})).catch((e=>{r(e)}))}))}fetchDefaultConfig(e,r){const o=this.getPath(r,e);return new Promise(((e,r)=>{t.get().callGraphQL({values:{name:o},query:this.queryConfig.get("fetchDefaultConfig")}).then((t=>{(null==t?void 0:t.resource)||e(null),e(n.stringToObject(null==t?void 0:t.resource))})).catch((e=>{r(e)}))}))}getPath(e,t,n="form"){return t?`cfg://${n}/${e}/${t}`:`cfg://${n}/${e}`}async fetchLegacyConfigurableForm(e){const r={requestBody:{config:{chave:e,tipo:"T"}}},o=await t.get().callServiceBroker("SystemUtilsSP.getConf",JSON.stringify(r));if(!n.isEmpty(o))return this.buildLegacyConfigurableForm(o)}async fetchSimpleFormConfig(e){const n={requestBody:{formConfig:{configName:e}}},r=await t.get().callServiceBroker("FormConfig.getFormConfig",JSON.stringify(n));return this.processConfig(r)}async saveSimpleFormConfig(e,n){const r=this.buildSaveSimpleFormConfigPayload(e,n),o=await t.get().callServiceBroker("FormConfig.saveFormConfig",JSON.stringify(r));this.processConfig(o)}processConfig(e){return n.isEmpty(e)?[]:this.getResponseAsArray(e).map((e=>e.name))}getResponseAsArray(e){var t,n,r;const o=null!==(r=null===(n=null===(t=null==e?void 0:e.formConfig)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.field)&&void 0!==r?r:[];return Array.isArray(o)?o:[o]}buildSaveSimpleFormConfigPayload(e,t){return{formConfig:{configName:e,layout:{field:t.map((e=>({name:e})))},metadata:{field:[]}}}}async restoreFormConfig(e){const n={requestBody:{formConfig:{configName:e}}};await t.get().callServiceBroker("FormConfig.restoreFormConfig",JSON.stringify(n))}buildLegacyConfigurableForm(e){var t,n,r;const o=null!==(r=null===(n=null===(t=null==e?void 0:e.formConfig)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.field)&&void 0!==r?r:[];return{emptyConfig:!1,fields:Array.isArray(o)?o:[o]}}async fetchLayoutFormConfig(e){const r={requestBody:{config:{chave:e,tipo:"T"}}},o=await t.get().callServiceBroker("SystemUtilsSP.getConf",JSON.stringify(r));if(!n.isEmpty(o))return o.config}async saveLayoutFormConfig(e,r){const o={requestBody:{config:Object.assign(Object.assign({},r),{chave:e,tipo:"T"})}},s=await t.get().callServiceBroker("SystemUtilsSP.saveConf",JSON.stringify(o));if(!n.isEmpty(s))return s}}var s;!function(e){e.USER="USER",e.DEFAULT="DEFAULT",e.SHARED="SHARED"}(s||(s={}));export{o as F,r as R,s as U}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,e as t,h as i,f as o,g as n}from"./p-2c9d0870.js";const e=class{constructor(i){s(this,i),this.snkCustomSlotGuideLoaded=t(this,"snkCustomSlotGuideLoaded",7),this.slotName="CUSTOM_SLOT_GUIDE"}onGuideChange(s){this._element.style.setProperty("display",s.detail===this.slotName?"block":"none")}onFormConfigVisibilityChange(s){s.detail&&this._element.style.setProperty("display","none")}componentDidLoad(){this.snkCustomSlotGuideLoaded.emit(this.slotName)}render(){return i(o,{slot:this.slotName,id:this.slotName,class:"custom-slot-guide-container"},i("slot",null))}get _element(){return n(this)}};e.style=".sc-snk-custom-slot-guide-h{display:none}";export{e as snk_custom_slot_guide}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as e,F as t}from"./p-
|
|
1
|
+
import{R as e,F as t}from"./p-3870748a.js";import{D as i,d as s}from"./p-2af8aca3.js";import{F as r}from"./p-ff1990ad.js";import{ObjectUtils as a}from"@sankhyalabs/core";var n;function l(e,t){if(null==e)return e;if(e instanceof Date)return e.toISOString();if("object"==typeof e){if(e instanceof Array)return e.map((e=>l(r.MULTI_LIST===t?function(e,t){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(i[s[r]]=e[s[r]])}return i}(e,["label"]):e)));{const i=Object.assign({},e);return Object.keys(e).forEach((s=>{void 0!==e[s]?i[s]=l(e[s],t):delete i[s]})),i}}return e}class o{constructor(){this.DEFAULT_RESOURCE="_default",this.templateByQuery=new Map,this.buildTemplates()}resolveURI(e,t,i){let s="filter-assistent-config://"+e;return t&&(s+="."+t),i&&(s+=this.DEFAULT_RESOURCE),s}resolveLegacyConfigName(e,t){if(!e)return"";let i=`?legacyResourceID=${e}`;return t&&(i+=this.DEFAULT_RESOURCE),i}buildTemplates(){this.templateByQuery.set("fetchFilterFields",s.gql`
|
|
2
2
|
query($name: String!) {
|
|
3
3
|
$queryAlias$: fetchFilterFields(name: $name){
|
|
4
4
|
currentLink {
|
|
@@ -53,4 +53,4 @@ import{R as e,F as t}from"./p-c35fc941.js";import{D as i,d as s}from"./p-39be771
|
|
|
53
53
|
valid
|
|
54
54
|
message
|
|
55
55
|
}
|
|
56
|
-
}`)}async loadDefaultFilter(e,t,i,s){return this.loadPersonalizedFilter(e,t,i,s,!0)}async loadPersonalizedFilter(e,t,s,r,a){return new Promise(((n,l)=>{i.get().callGraphQL({values:{name:this.resolveURI(e,s,a)+"/"+t+this.resolveLegacyConfigName(r,a)},query:this.templateByQuery.get("fetchFilterAssistent")}).then((e=>{e.assistent=JSON.parse(e.assistent),n(e)})).catch((e=>{l(e)}))}))}async saveDefaultFilter(e,t,i){return this.savePersonalizedFilter(e,t,i,!0)}async savePersonalizedFilter(e,t,s,r){if(!e||0==Object.keys(e).length)return Promise.reject(new Error("personalizedFilter não pode ser vazio"));let a=JSON.parse(JSON.stringify(e));return a.assistent=JSON.stringify(a.assistent),new Promise(((e,n)=>{i.get().callGraphQL({values:{name:this.resolveURI(t,s,r),filterAssistent:a},query:this.templateByQuery.get("savePersonalizedFilter")}).then((t=>{e(t)})).catch((e=>{n(e)}))}))}removeDefaultFilter(e,t,i){return this.removePersonalizedFilter(e,t,i,!0)}async removePersonalizedFilter(e,t,s,r){return new Promise(((a,n)=>{i.get().callGraphQL({values:{name:this.resolveURI(t,s,r),filterId:e.id},query:this.templateByQuery.get("deletePersonalizedFilter")}).then((e=>{a(e)})).catch((e=>{n(e)}))}))}async validatePersonalizedFilter(e,t){return new Promise(((s,r)=>{i.get().callGraphQL({values:{dataUnitName:e,expression:t},query:this.templateByQuery.get("validateExpression")}).then((e=>{s(e)})).catch((e=>{r(e)}))}))}loadFields(e){return new Promise(((t,s)=>{i.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchFilterFields")}).then((e=>{var i;let s=e.fields;for(const e of s){if(Array.isArray(e.properties)&&e.properties.length>0){const t=e.properties.reduce(((e,t)=>(e[t.name]=t.value,e)),{});e.properties=t}(null===(i=null==e?void 0:e.properties)||void 0===i?void 0:i.options)&&(e.properties.options=JSON.parse(e.properties.options))}t(Object.assign(Object.assign({},e),{fields:s}))})).catch((e=>{s(e)}))}))}}!function(e){e.form="form",e.grid="grid",e.filterBar="filterBar"}(n||(n={}));class c{static addFilterBarLegacyConfig(e,t){this.validateResourceId(t),this.filterBarLegacyConfig.set(e,t)}static addFormLegacyConfig(e,t){this.validateResourceId(t),this.formLegacyConfig.set(e,t)}static addGridLegacyConfig(e,t){this.validateResourceId(t),this.gridLegacyConfig.set(e,t)}static preload(e,t,i){t&&(null==i?void 0:i.gridLegacyConfig)&&c.addGridLegacyConfig(t,i.gridLegacyConfig),t&&(null==i?void 0:i.formLegacyConfig)&&c.addFormLegacyConfig(t,i.formLegacyConfig),c.loadFormConfig(t,e),c.loadGridConfig(t,e)}static async loadFilterBarConfig(e,t,i){i=this.handleLegacyConfig(e,n.filterBar,i);const s=c.buildCacheID(e,n.filterBar,t);return c.configById.has(s)||c.configById.set(s,c.filterBarConfigFetcher.getConfig(t,e,i)),c.configById.get(s)}static async loadFormConfig(e,t){e=this.handleLegacyConfigAsString(e,n.form);const i=c.buildCacheID(e,n.form,t);return c.configById.has(i)||c.configById.set(i,c.formConfigFetcher.loadFormConfig(e,t)),c.configById.get(i)}static async loadGridConfig(e,t){e=this.handleLegacyConfigAsString(e,n.grid);const i=c.buildCacheID(e,n.grid,t);return c.configById.has(i)||c.configById.set(i,c.gridConfigFetcher.getConfig(e,t)),c.configById.get(i)}static async saveFilterBarConfig(e,t,i){return await this.deleteFilterBarConfigCache(t,i),this.filterBarConfigFetcher.saveConfig(e,i,t)}static async saveFormConfig(e,t,i){return t=this.handleLegacyConfigAsString(t,n.form),await this.deleteFormConfigCache(t,i),this.formConfigFetcher.saveConfig(e,t,i)}static async saveCardState(e,t,i){return this.formConfigFetcher.saveCardState(e,t,i)}static async getDefaultGridConfig(e){return await this.gridConfigFetcher.getDefaultConfig(e)}static async saveGridConfig(e,t,i){if(null!=e)return t=this.handleLegacyConfigAsString(t,n.grid),await this.deleteGridConfigCache(t,i),this.gridConfigFetcher.saveConfig(e,t,i)}static async loadDefaultFilter(e,t,i){const s=this.filterBarLegacyConfig.get(i);return this.personalizedFilterFetcher.loadDefaultFilter(t,e,i,s)}static async loadPersonalizedFilter(e,t,i){const s=this.filterBarLegacyConfig.get(i);return this.personalizedFilterFetcher.loadPersonalizedFilter(t,e,i,s)}static async savePersonalizedFilter(e,t,i){return await this.deleteFilterBarConfigCache(i,t),this.personalizedFilterFetcher.savePersonalizedFilter(e,t,i)}static async saveDefaultFilter(e,t,i){return await this.deleteFilterBarConfigCache(i,t),this.personalizedFilterFetcher.saveDefaultFilter(e,t,i)}static async removeDefaultFilter(e,t,i){return this.personalizedFilterFetcher.removeDefaultFilter(e,t,i)}static async removePersonalizedFilter(e,t,i){return this.personalizedFilterFetcher.removePersonalizedFilter(e,t,i)}static async validatePersonalizedFilter(e,t){return this.personalizedFilterFetcher.validatePersonalizedFilter(e,t)}static async deleteGridConfigCache(e,t){await this.deleteConfigCache(e,t,n.grid)}static async deleteFormConfigCache(e,t){await this.deleteConfigCache(e,t,n.form)}static async deleteFilterBarConfigCache(e,t){await this.deleteConfigCache(e,t,n.filterBar)}static validateResourceId(e){if(!e)throw Error(this.LEGACY_CONFIG_NAME_ERROR_MESSAGE)}static handleLegacyConfig(e,t,i){let s;switch(t){case n.filterBar:s=this.filterBarLegacyConfig.get(e);break;case n.grid:s=this.gridLegacyConfig.get(e);break;case n.form:s=this.formLegacyConfig.get(e)}const r=i?Object.assign({},i):{};return s&&(r.legacyResourceID=s),r}static handleLegacyConfigAsString(e,t){const i=this.handleLegacyConfig(e,t).legacyResourceID;return i&&(e+=`?legacyResourceID=${i}`),e}static async deleteConfigCache(e,t,i){const s=c.buildCacheID(e,i,t);this.configById.delete(s)}static buildCacheID(e,t,i){return null==e?`req_${t}_${i}`:`req_${t}_${e}_${i}`}}c.LEGACY_CONFIG_NAME_ERROR_MESSAGE="LegacyConfigName precisa ser informado.",c.filterBarLegacyConfig=new Map,c.formLegacyConfig=new Map,c.gridLegacyConfig=new Map,c.configById=new Map,c.filterBarConfigFetcher=new class extends e{normalize(e){return e.map((e=>{const{id:t,value:i,fixed:s,visible:r,type:a,groupedItems:n}=e,o={id:t};if(i&&(o.value=l(i,a)),s&&(o.fixed=s),n){if(0===n.length)return;n.filter((e=>e.visible)).length>0&&(o.visible=!0),o.groupedItems=this.normalize(n)}else r&&(o.visible=!0);return o})).filter((e=>null!=e))}saveConfig(e,t,i){return this.saveResource(this.normalize(e),this.getPath(t,i))}getConfig(e,t,i){return new Promise(((s,r)=>{this.loadResource(this.getPath(e,t,i)).then((e=>{let t;if(e){const i=JSON.parse(e);t=this.buildFieldList(i.items)}s(t||[])})).catch((e=>{r(e)}))}))}buildFieldList(e){return e.map((e=>{var t,i;if(e.type===r.MULTI_LIST){const s=e.value;let r=null!==(i=null!==(t=null==s?void 0:s.elements)&&void 0!==t?t:null==s?void 0:s.members)&&void 0!==i?i:s;r=null!=r?r:[],r=Array.isArray(r)?r:[r],r=r.map((e=>Object.assign(Object.assign({},e),{id:void 0!==e.id?e.id:e.value}))),e.value=a.copy(r)}return e}))}getPath(e,t,i){let s=`cfg://filter/FilterBarState:${e}`;return t&&(s+=`.${t}`),i&&(s+=this.buildQueryString(i)),s}buildQueryString(e){let t="?";for(let i in e)e.hasOwnProperty(i)&&(t.length>1&&(t+="&"),t+=i+"="+e[i]);return t}},c.formConfigFetcher=new t,c.gridConfigFetcher=new class extends e{constructor(){super(...arguments),this.GRID_CONFIG_VERSION="V3:"}async getDefaultConfig(e){var t,s;const r={requestBody:{gridConfig:{configName:`GrdCfgHtml5:${e}`}}},a=await i.get().callServiceBroker("GridConfig.restoreGridConfigFromJson",JSON.stringify(r));return{columns:null!==(s=null===(t=null==a?void 0:a.gridConfig)||void 0===t?void 0:t.field)&&void 0!==s?s:[]}}getConfig(e,t){const i=this.getPath(t,e);return new Promise(((e,t)=>{this.loadResource(i).then((t=>{let i;t&&(i=JSON.parse(t)),e(i)})).catch((e=>{t(e)}))}))}saveConfig(e,t,i){const s=this.getPath(i,t);return new Promise(((t,i)=>{this.saveResource(e,s).then((e=>{t(JSON.parse(e.resource))})).catch((e=>{i(e)}))}))}getPath(e,t){return t?`cfg://grid/${this.GRID_CONFIG_VERSION}${e}/${t}`:`cfg://grid/${this.GRID_CONFIG_VERSION}${e}`}},c.personalizedFilterFetcher=new o;export{c as C,o as P}
|
|
56
|
+
}`)}async loadDefaultFilter(e,t,i,s){return this.loadPersonalizedFilter(e,t,i,s,!0)}async loadPersonalizedFilter(e,t,s,r,a){return new Promise(((n,l)=>{i.get().callGraphQL({values:{name:this.resolveURI(e,s,a)+"/"+t+this.resolveLegacyConfigName(r,a)},query:this.templateByQuery.get("fetchFilterAssistent")}).then((e=>{e.assistent=JSON.parse(e.assistent),n(e)})).catch((e=>{l(e)}))}))}async saveDefaultFilter(e,t,i){return this.savePersonalizedFilter(e,t,i,!0)}async savePersonalizedFilter(e,t,s,r){if(!e||0==Object.keys(e).length)return Promise.reject(new Error("personalizedFilter não pode ser vazio"));let a=JSON.parse(JSON.stringify(e));return a.assistent=JSON.stringify(a.assistent),new Promise(((e,n)=>{i.get().callGraphQL({values:{name:this.resolveURI(t,s,r),filterAssistent:a},query:this.templateByQuery.get("savePersonalizedFilter")}).then((t=>{e(t)})).catch((e=>{n(e)}))}))}removeDefaultFilter(e,t,i){return this.removePersonalizedFilter(e,t,i,!0)}async removePersonalizedFilter(e,t,s,r){return new Promise(((a,n)=>{i.get().callGraphQL({values:{name:this.resolveURI(t,s,r),filterId:e.id},query:this.templateByQuery.get("deletePersonalizedFilter")}).then((e=>{a(e)})).catch((e=>{n(e)}))}))}async validatePersonalizedFilter(e,t){return new Promise(((s,r)=>{i.get().callGraphQL({values:{dataUnitName:e,expression:t},query:this.templateByQuery.get("validateExpression")}).then((e=>{s(e)})).catch((e=>{r(e)}))}))}loadFields(e){return new Promise(((t,s)=>{i.get().callGraphQL({values:{name:e},query:this.templateByQuery.get("fetchFilterFields")}).then((e=>{var i;let s=e.fields;for(const e of s){if(Array.isArray(e.properties)&&e.properties.length>0){const t=e.properties.reduce(((e,t)=>(e[t.name]=t.value,e)),{});e.properties=t}(null===(i=null==e?void 0:e.properties)||void 0===i?void 0:i.options)&&(e.properties.options=JSON.parse(e.properties.options))}t(Object.assign(Object.assign({},e),{fields:s}))})).catch((e=>{s(e)}))}))}}!function(e){e.form="form",e.grid="grid",e.filterBar="filterBar"}(n||(n={}));class c{static addFilterBarLegacyConfig(e,t){this.validateResourceId(t),this.filterBarLegacyConfig.set(e,t)}static addFormLegacyConfig(e,t){this.validateResourceId(t),this.formLegacyConfig.set(e,t)}static addGridLegacyConfig(e,t){this.validateResourceId(t),this.gridLegacyConfig.set(e,t)}static preload(e,t,i){t&&(null==i?void 0:i.gridLegacyConfig)&&c.addGridLegacyConfig(t,i.gridLegacyConfig),t&&(null==i?void 0:i.formLegacyConfig)&&c.addFormLegacyConfig(t,i.formLegacyConfig),c.loadFormConfig(t,e),c.loadGridConfig(t,e)}static async loadFilterBarConfig(e,t,i){i=this.handleLegacyConfig(e,n.filterBar,i);const s=c.buildCacheID(e,n.filterBar,t);return c.configById.has(s)||c.configById.set(s,c.filterBarConfigFetcher.getConfig(t,e,i)),c.configById.get(s)}static async loadFormConfig(e,t){e=this.handleLegacyConfigAsString(e,n.form);const i=c.buildCacheID(e,n.form,t);return c.configById.has(i)||c.configById.set(i,c.formConfigFetcher.loadFormConfig(e,t)),c.configById.get(i)}static async loadGridConfig(e,t){e=this.handleLegacyConfigAsString(e,n.grid);const i=c.buildCacheID(e,n.grid,t);return c.configById.has(i)||c.configById.set(i,c.gridConfigFetcher.getConfig(e,t)),c.configById.get(i)}static async saveFilterBarConfig(e,t,i){return await this.deleteFilterBarConfigCache(t,i),this.filterBarConfigFetcher.saveConfig(e,i,t)}static async saveFormConfig(e,t,i){return t=this.handleLegacyConfigAsString(t,n.form),await this.deleteFormConfigCache(t,i),this.formConfigFetcher.saveConfig(e,t,i)}static async saveCardState(e,t,i){return this.formConfigFetcher.saveCardState(e,t,i)}static async getDefaultGridConfig(e){return await this.gridConfigFetcher.getDefaultConfig(e)}static async saveGridConfig(e,t,i){if(null!=e)return t=this.handleLegacyConfigAsString(t,n.grid),await this.deleteGridConfigCache(t,i),this.gridConfigFetcher.saveConfig(e,t,i)}static async deleteGridConfig(e,t){return e=this.handleLegacyConfigAsString(e,n.grid),await this.deleteGridConfigCache(e,t),this.gridConfigFetcher.deleteConfig(e,t)}static async loadDefaultFilter(e,t,i){const s=this.filterBarLegacyConfig.get(i);return this.personalizedFilterFetcher.loadDefaultFilter(t,e,i,s)}static async loadPersonalizedFilter(e,t,i){const s=this.filterBarLegacyConfig.get(i);return this.personalizedFilterFetcher.loadPersonalizedFilter(t,e,i,s)}static async savePersonalizedFilter(e,t,i){return await this.deleteFilterBarConfigCache(i,t),this.personalizedFilterFetcher.savePersonalizedFilter(e,t,i)}static async saveDefaultFilter(e,t,i){return await this.deleteFilterBarConfigCache(i,t),this.personalizedFilterFetcher.saveDefaultFilter(e,t,i)}static async removeDefaultFilter(e,t,i){return this.personalizedFilterFetcher.removeDefaultFilter(e,t,i)}static async removePersonalizedFilter(e,t,i){return this.personalizedFilterFetcher.removePersonalizedFilter(e,t,i)}static async validatePersonalizedFilter(e,t){return this.personalizedFilterFetcher.validatePersonalizedFilter(e,t)}static async deleteGridConfigCache(e,t){await this.deleteConfigCache(e,t,n.grid)}static async deleteFormConfigCache(e,t){await this.deleteConfigCache(e,t,n.form)}static async deleteFilterBarConfigCache(e,t){await this.deleteConfigCache(e,t,n.filterBar)}static validateResourceId(e){if(!e)throw Error(this.LEGACY_CONFIG_NAME_ERROR_MESSAGE)}static handleLegacyConfig(e,t,i){let s;switch(t){case n.filterBar:s=this.filterBarLegacyConfig.get(e);break;case n.grid:s=this.gridLegacyConfig.get(e);break;case n.form:s=this.formLegacyConfig.get(e)}const r=i?Object.assign({},i):{};return s&&(r.legacyResourceID=s),r}static handleLegacyConfigAsString(e,t){const i=this.handleLegacyConfig(e,t).legacyResourceID;return i&&(e+=`?legacyResourceID=${i}`),e}static async deleteConfigCache(e,t,i){const s=c.buildCacheID(e,i,t);this.configById.delete(s)}static buildCacheID(e,t,i){return null==e?`req_${t}_${i}`:`req_${t}_${e}_${i}`}}c.LEGACY_CONFIG_NAME_ERROR_MESSAGE="LegacyConfigName precisa ser informado.",c.filterBarLegacyConfig=new Map,c.formLegacyConfig=new Map,c.gridLegacyConfig=new Map,c.configById=new Map,c.filterBarConfigFetcher=new class extends e{normalize(e){return e.map((e=>{const{id:t,value:i,fixed:s,visible:r,type:a,groupedItems:n}=e,o={id:t};if(i&&(o.value=l(i,a)),s&&(o.fixed=s),n){if(0===n.length)return;n.filter((e=>e.visible)).length>0&&(o.visible=!0),o.groupedItems=this.normalize(n)}else r&&(o.visible=!0);return o})).filter((e=>null!=e))}saveConfig(e,t,i){return this.saveResource(this.normalize(e),this.getPath(t,i))}getConfig(e,t,i){return new Promise(((s,r)=>{this.loadResource(this.getPath(e,t,i)).then((e=>{let t;if(e){const i=JSON.parse(e);t=this.buildFieldList(i.items)}s(t||[])})).catch((e=>{r(e)}))}))}buildFieldList(e){return e.map((e=>{var t,i;if(e.type===r.MULTI_LIST){const s=e.value;let r=null!==(i=null!==(t=null==s?void 0:s.elements)&&void 0!==t?t:null==s?void 0:s.members)&&void 0!==i?i:s;r=null!=r?r:[],r=Array.isArray(r)?r:[r],r=r.map((e=>Object.assign(Object.assign({},e),{id:void 0!==e.id?e.id:e.value}))),e.value=a.copy(r)}return e}))}getPath(e,t,i){let s=`cfg://filter/FilterBarState:${e}`;return t&&(s+=`.${t}`),i&&(s+=this.buildQueryString(i)),s}buildQueryString(e){let t="?";for(let i in e)e.hasOwnProperty(i)&&(t.length>1&&(t+="&"),t+=i+"="+e[i]);return t}},c.formConfigFetcher=new t,c.gridConfigFetcher=new class extends e{constructor(){super(...arguments),this.GRID_CONFIG_VERSION="V3:"}async getDefaultConfig(e){var t,s;const r={requestBody:{gridConfig:{configName:`GrdCfgHtml5:${e}`}}},a=await i.get().callServiceBroker("GridConfig.restoreGridConfigFromJson",JSON.stringify(r));return{columns:null!==(s=null===(t=null==a?void 0:a.gridConfig)||void 0===t?void 0:t.field)&&void 0!==s?s:[]}}getConfig(e,t){const i=this.getPath(t,e);return new Promise(((e,t)=>{this.loadResource(i).then((t=>{let i;t&&(i=JSON.parse(t)),e(i)})).catch((e=>{t(e)}))}))}saveConfig(e,t,i){const s=this.getPath(i,t);return new Promise(((t,i)=>{this.saveResource(e,s).then((e=>{t(JSON.parse(e.resource))})).catch((e=>{i(e)}))}))}deleteConfig(e,t){const i=this.getPath(t,e);return new Promise(((e,t)=>{this.deleteResource(i).then((()=>{e()})).catch((e=>{t(e)}))}))}getPath(e,t){return t?`cfg://grid/${this.GRID_CONFIG_VERSION}${e}/${t}`:`cfg://grid/${this.GRID_CONFIG_VERSION}${e}`}},c.personalizedFilterFetcher=new o;export{c as C,o as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,
|
|
1
|
+
import{r as t,e as i,h as e,F as s,f as l,g as r}from"./p-2c9d0870.js";import{ElementIDUtils as n,ObjectUtils as a}from"@sankhyalabs/core";import{ApplicationUtils as h}from"@sankhyalabs/ezui/dist/collection/utils";import{P as o}from"./p-68c1a093.js";import{E as c}from"./p-1a68fb59.js";import{F as d}from"./p-ff1990ad.js";import"./p-84345e7a.js";const u=class{constructor(e){t(this,e),this.filterChange=i(this,"filterChange",7),this.config=void 0,this.getMessage=void 0,this.showHardFixed=!0,this.removalBlocked=!1}async setFocusField(){var t,i,e,s;this._editor&&(this._editor.setFocus?null===(i=null===(t=this._editor)||void 0===t?void 0:t.setFocus)||void 0===i||i.call(t):this._editor.focus&&(null===(s=null===(e=this._editor)||void 0===e?void 0:e.focus)||void 0===s||s.call(e)))}async clearValue(){this._editor&&this._editor.clearValue&&await this._editor.clearValue()}observeConfig(t){var i,e;this._editor&&(this._editor.config=t),null===(e=null===(i=this._editor)||void 0===i?void 0:i.reloadList)||void 0===e||e.call(i),this._customElementObject=this.getContentEditor()}componentDidLoad(){if(this._element){n.addIDInfo(this._element);const t=this._element.getAttribute(n.DATA_ELEMENT_ID_ATTRIBUTE_NAME);this._idContentEditor=`${t}_${this.config.id}`}}changeConfig(t){this.filterChange.emit(t)}getContentEditor(){switch(this.config.type){case d.BINARY_SELECT:return{tag:"snk-filter-binary-select"};case d.MULTI_SELECT:return{tag:"snk-filter-multi-select"};case d.PERIOD:return{tag:"snk-filter-period"};case d.SEARCH:return{tag:"snk-filter-search"};case d.NUMBER:return{tag:"snk-filter-number"};case d.PERSONALIZED:return{tag:"snk-personalized-filter-editor",props:{presentationMode:c.CHIP,onValueChanged:t=>this.handleValueChanged(t)}};case d.CHECK_BOX_LIST:return{tag:"snk-filter-checkbox-list",props:{onValueChanged:t=>this.config=Object.assign(Object.assign({},this.config),{value:t.detail})}};case d.MULTI_LIST:return{tag:"snk-entity-list",props:{onValueChanged:t=>this.config=Object.assign(Object.assign({},this.config),{value:t.detail})}}}return{tag:"snk-filter-text"}}handleValueChanged({detail:t}){const i=(null==t?void 0:t.items)||this.config.groupedItems;this.config=Object.assign(Object.assign({},this.config),{groupedItems:i,visible:(i||[]).filter((t=>t.visible)).length>0})}removeItem(){const t=this.config.type===d.MULTI_LIST&&Array.isArray(this.config.value)?this.config.value.map((t=>Object.assign(Object.assign({},t),{check:!1}))):void 0,i=Object.assign(Object.assign({},this.config),{visible:!1,fixed:!1,value:t});null!=i.groupedItems&&(i.groupedItems=i.groupedItems.map((t=>Object.assign(Object.assign({},t),{visible:!1,fixed:!1,value:void 0})))),this.changeConfig(i)}removeItemFromGroup(t){return Object.assign(Object.assign({},t),{visible:!1,fixed:!1,value:void 0})}getPopUpHeaderButtons(){return e(s,null,!this.removalBlocked&&!this.config.removalBlocked&&this.buildIcon(this.getMessage("snkFilterBar.removeFilter"),"delete",(()=>this.removeItem())),this.showHardFixed&&!this.config.hardFixed&&this.buildIcon(this.getMessage(this.config.fixed?"snkFilterBar.unpinFilter":"snkFilterBar.pinFilter"),this.config.fixed?"un-pin":"push-pin",(()=>this.changeConfig(Object.assign(Object.assign({},this.config),{fixed:!this.config.fixed})))))}buildIcon(t,i,s){return e("button",{onClick:()=>s(),class:"sc-snk-filter-bar snk-filter-item__editor-header-button",ref:i=>i&&this.buildIdButton(i,t)},e("ez-icon",Object.assign({title:t,iconName:i},{[n.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:`${n.getInternalIDInfo(`_${t}`)}`})))}buildIdButton(t,i){if(!t)return;const e={id:i};t.removeAttribute(n.DATA_ELEMENT_ID_ATTRIBUTE_NAME),n.addIDInfoIfNotExists(t,"button",e)}clearBinarySelectValues(){var t;const i=this._editor||{};null===(t=i.resetValues)||void 0===t||t.call(i),this.config=a.copy(this.originalConfig),this.changeConfig(Object.assign(Object.assign({},this.config),{value:void 0}))}apply(){if(!o.validateVariableValues(this.config,this._editor.value))return h.alert(this.getMessage("snkFilterBar.filterModal.validations.notFullFilled.title"),this.getMessage("snkFilterBar.filterModal.validations.notFullFilled.message"));const t=void 0!==this._editor.value?this._editor.value:this.config.value;this.changeConfig(Object.assign(Object.assign({},this.config),{visible:this.isVisible(),value:t}))}isVisible(){return!(this.config.groupedItems&&this.config.groupedItems.length>0)||this.config.groupedItems.filter((t=>t.visible)).length>0}clear(){var t;if(this.config.type!==d.BINARY_SELECT){if(d.MULTI_LIST===this.config.type){const i=a.copy(this.config);return null===(t=i.value)||void 0===t||t.forEach((t=>!!t&&(t.check=!1))),void(this.config=a.copy(i))}this.changeConfig(Object.assign(Object.assign({},this.config),{value:void 0}))}else this.clearBinarySelectValues()}filterCanBeCleared(){return this.config.type!==d.PERSONALIZED}onKeyDonwListener(t){"Enter"===t.key&&this.apply()}buildRightSlot(t){return e("ez-icon",{iconName:"delete",onClick:()=>this.removeValueFromConfig(t)})}removeValueFromConfig(t){var i,e;if(this.config){const s=a.copy(this.config),l=null===(i=s.value)||void 0===i?void 0:i.findIndex((i=>(null==i?void 0:i.id)===t.id));null===(e=s.value)||void 0===e||e.splice(l,1),this.config=a.copy(s)}}componentWillLoad(){this.originalConfig=a.copy(this.config),this._customElementObject=this.getContentEditor()}render(){const{tag:t,props:i}=this._customElementObject;return e(l,null,e("div",{class:"col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center"},e("div",{class:"ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header"},this.config.detailTitle),this.getPopUpHeaderButtons()),e(t,Object.assign({maxHeightList:"240px",ref:t=>this._editor=t,value:this.config.value,config:this.config,onKeyDown:t=>this.onKeyDonwListener(t),"data-element-id":this._idContentEditor,getMessage:this.getMessage,rightListSlotBuilder:t=>this.buildRightSlot(t)},i)),e("hr",{class:"sc-snk-filter-bar snk-filter__popover-rule"}),e("div",{class:"ez-col ez-col--sd-12 ez-align--right"},this.filterCanBeCleared()&&e("ez-button",{label:this.getMessage("snkFilterBar.cleanFilter"),onClick:()=>this.clear(),size:"small"}),e("ez-button",{ref:t=>this._applyButton=t,label:this.getMessage("snkFilterBar.applyFilter"),onClick:()=>this.apply(),size:"small",class:"ez-button--primary ez-padding-left--medium"})))}get _element(){return r(this)}static get watchers(){return{config:["observeConfig"]}}};export{u as snk_filter_detail}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,e as s,h as i,f as e,F as a}from"./p-2c9d0870.js";import{I as o}from"./p-6e278003.js";import"./p-2af8aca3.js";import{P as r}from"./p-4f7adf97.js";import"@sankhyalabs/core";import"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-ff1990ad.js";import"./p-3870748a.js";import"./p-9019a32f.js";import{ApplicationUtils as n}from"@sankhyalabs/ezui/dist/collection/utils";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"./p-554c0e54.js";import"./p-8d884fab.js";const h=class{constructor(i){t(this,i),this.pesquisaGridSelectItem=s(this,"pesquisaGridSelectItem",7),this._pesquisaFetcher=new r,this.metadata=void 0,this.dataSource=[],this.pkField=void 0,this.descriptionField=void 0,this.entityName=void 0,this.shouldLoadConfig=!1,this._gridConfig=void 0,this._inMemoryLoader=void 0,this._dataunit=void 0}observeDataSource(t){this._inMemoryLoader&&this._dataunit&&t&&(this._inMemoryLoader.records=[...t])}observeMetadata(){this.initializeDataUnit()}async observeShouldLoadConfig(t){t&&!this._gridConfig&&await this.loadGridConfig()}async loadGridConfig(){this._gridConfig=await this._pesquisaFetcher.loadPesquisaGridConfig(this.entityName)}initializeDataUnit(){var t;this.metadata&&!this._dataunit&&(this._inMemoryLoader=new o(this.metadata,null!==(t=this.dataSource)&&void 0!==t?t:[]),this._dataunit=this._inMemoryLoader.dataUnit,this._dataunit.pageSize=0)}handleDbClick(t){this.pesquisaGridSelectItem.emit({value:t[this.pkField],label:t[this.descriptionField]})}async handleConfigChanged({detail:t}){var s;const i=null!==(s=null==t?void 0:t.columns)&&void 0!==s?s:[];await this._pesquisaFetcher.savePesquisaGridConfig(this.entityName,i)}render(){if(this.metadata&&this._dataunit)return i(e,null,i("ez-grid",{dataUnit:this._dataunit,config:this._gridConfig,mode:"simple",autoFocus:!1,onEzDoubleClick:({detail:t})=>this.handleDbClick(t),onConfigChange:async t=>this.handleConfigChanged(t)}))}static get watchers(){return{dataSource:["observeDataSource"],metadata:["observeMetadata"],shouldLoadConfig:["observeShouldLoadConfig"]}}};h.style=".sc-pesquisa-grid-h{background:var(--background--xlight, #FFF);overflow-x:auto}ez-grid.sc-pesquisa-grid{--ez-grid__container--shadow:none;--ez-grid__header--shadow:none}";const l=class{constructor(i){t(this,i),this.pesquisaTreeSelectItem=s(this,"pesquisaTreeSelectItem",7),this.treeLoader=void 0,this.argument=void 0,this.allowsNonAnalytic=!1,this.shouldLoadTree=!1,this.messagesBuilder=void 0,this.items=[]}async applyFilter(){await this._tree.applyFilter(this.argument)}async observeShouldLoadTree(t){!t||this.items.length>0||await this.loadTree()}async loadTree(){if(!this.shouldLoadTree)return;if(!this.treeLoader||"function"!=typeof this.treeLoader)return;const t=await this.treeLoader((this.argument||"").trim());this.items=[...t]}expandOrCloseAllItems(t,s){return t.map((t=>Object.assign(Object.assign({},t),{expanded:s,children:t.children?this.expandOrCloseAllItems(t.children,s):void 0})))}handleExpandAll(){this.items=[...this.expandOrCloseAllItems(this.items,!0)]}handleCloseAll(){this.items=[...this.expandOrCloseAllItems(this.items,!1)]}handleDbClick(t){var s;if(this.allowsNonAnalytic||(null===(s=t.props)||void 0===s?void 0:s.analitico))this.pesquisaTreeSelectItem.emit({value:t.id,label:t.label});else{const t=this.getMessage("snkPesquisa.tree.errorTitle"),s=this.getMessage("snkPesquisa.tree.nonAnalyticError");n.error(t,s)}}renderEmptyMessage(){return i("div",{class:"ez-flex ez-flex--justify-center ez-flex--align-items-center ez-margin--large ez-text ez-text--xlarge ez-text--secondary"},i("span",null,this.getMessage("snkPesquisa.tree.emptyMessage")))}getMessage(t,s){return this.messagesBuilder.getMessage(t,s)}render(){var t;return i(e,null,(null===(t=this.items)||void 0===t?void 0:t.length)?i(a,null,i("div",{class:"actions-container"},i("ez-button",{size:"small",mode:"icon",class:"ez-margin-right--small",iconName:"show-list",title:this.getMessage("snkPesquisa.tree.expandButton"),onClick:()=>this.handleExpandAll()}),i("ez-button",{size:"small",mode:"icon",iconName:"hide-list",title:this.getMessage("snkPesquisa.tree.collapseButton"),onClick:()=>this.handleCloseAll()})),i("ez-tree",{ref:t=>this._tree=t,onEzDbClickItem:({detail:t})=>this.handleDbClick(t),items:this.items})):this.renderEmptyMessage())}static get watchers(){return{shouldLoadTree:["observeShouldLoadTree"]}}};l.style=".sc-pesquisa-tree-h{--snk-pesquisa--tree__action-container--top:var(--space--sm);--snk-pesquisa--tree__action-container--right:var(--space--small);--snk-pesquisa--tree__min-height:var(--space--extra-large);background:var(--background--xlight, #FFF);position:relative;min-height:var(--snk-pesquisa--tree__min-height);height:100%;display:block;overflow-y:auto}.sc-pesquisa-tree-h:hover .actions-container.sc-pesquisa-tree{display:flex}.actions-container.sc-pesquisa-tree{flex-direction:row;position:absolute;top:var(--snk-pesquisa--tree__action-container--top);right:var(--snk-pesquisa--tree__action-container--right);display:none}";export{h as pesquisa_grid,l as pesquisa_tree}
|