@lmvz-ds/components 0.17.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/{readme.md → README.md} +3 -0
- package/assets/.DS_Store +0 -0
- package/assets/icons/.DS_Store +0 -0
- package/{dist/cjs/aria-loader-BRxRUIyi.js → cjs/aria-loader-CfFuAbJn.js} +2 -2
- package/cjs/icons-swqMn6s2.js +163 -0
- package/{dist/cjs/index-BBqtydE-.js → cjs/index--7IqZZqn.js} +22965 -11151
- package/{dist/cjs/index-CH-YLRgg.js → cjs/index-C2yDXRqP.js} +45 -10
- package/cjs/index.cjs.js +25 -0
- package/{dist/cjs → cjs}/lmvz-action.cjs.entry.js +2 -2
- package/{dist/cjs → cjs}/lmvz-button.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/lmvz-card.cjs.entry.js +24 -4
- package/{dist/cjs → cjs}/lmvz-chip.cjs.entry.js +2 -2
- package/{dist/cjs → cjs}/lmvz-components.cjs.js +3 -3
- package/{dist/cjs → cjs}/lmvz-header_2.cjs.entry.js +6 -6
- package/{dist/cjs → cjs}/lmvz-icon.cjs.entry.js +25 -14
- package/{dist/cjs → cjs}/lmvz-input.cjs.entry.js +5 -5
- package/{dist/cjs → cjs}/lmvz-menuitem.cjs.entry.js +4 -4
- package/{dist/cjs → cjs}/lmvz-select.cjs.entry.js +4 -4
- package/cjs/loader.cjs.js +13 -0
- package/cjs/logger-Bn2yoZGP.js +7189 -0
- package/{dist/cjs/reactive-controller-host-vy1TIIXv.js → cjs/reactive-controller-host-CtaVAiYJ.js} +30 -26
- package/collection/api/ds.constants.js +7 -0
- package/collection/assets/.DS_Store +0 -0
- package/collection/assets/icons/.DS_Store +0 -0
- package/{dist/collection → collection}/collection-manifest.json +2 -2
- package/{dist/collection → collection}/components/lmvz-action/lmvz-action.js +1 -1
- package/{dist/collection → collection}/components/lmvz-button/lmvz-button.js +5 -5
- package/{dist/collection → collection}/components/lmvz-card/lmvz-card.js +1 -1
- package/{dist/collection → collection}/components/lmvz-chip/lmvz-chip.js +1 -1
- package/{dist/collection → collection}/components/lmvz-header/lmvz-header.js +2 -2
- package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.css +5 -5
- package/{dist/collection → collection}/components/lmvz-icon/lmvz-icon.js +49 -18
- package/{dist/collection → collection}/components/lmvz-input/lmvz-input.js +6 -6
- package/{dist/collection → collection}/components/lmvz-menuitem/lmvz-menuitem.js +1 -1
- package/{dist/collection → collection}/components/lmvz-select/lmvz-select.js +1 -1
- package/collection/index.js +3 -0
- package/collection/integration/header-integration/header-integration.js +51 -0
- package/{dist/collection → collection}/utils/aria/aria-validation-controller.js +29 -25
- package/collection/utils/http.js +21 -0
- package/{dist/collection → collection}/utils/http.unit.js +5 -5
- package/collection/utils/icons/icons-registry.js +34 -0
- package/collection/utils/icons/icons.js +49 -0
- package/collection/utils/icons/icons.unit.js +73 -0
- package/collection/utils/icons/public.js +2 -0
- package/collection/utils/public.js +1 -0
- package/components/index.d.ts.bak +55 -0
- package/components/index.js +1 -0
- package/components/lmvz-action.d.ts.bak +11 -0
- package/components/lmvz-action.js +1 -0
- package/components/lmvz-button.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-button.js +1 -1
- package/components/lmvz-card.d.ts.bak +11 -0
- package/components/lmvz-card.js +1 -0
- package/components/lmvz-chip.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-chip.js +1 -1
- package/components/lmvz-header.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-header.js +1 -1
- package/components/lmvz-icon.d.ts.bak +11 -0
- package/components/lmvz-icon.js +1 -0
- package/components/lmvz-input.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-input.js +1 -1
- package/components/lmvz-menuitem.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-menuitem.js +1 -1
- package/components/lmvz-select.d.ts.bak +11 -0
- package/{dist/components → components}/lmvz-select.js +1 -1
- package/components/p-CBLAeife.js +1 -0
- package/components/p-C_bScbrd.js +1 -0
- package/components/p-DXOTa5VF.js +12 -0
- package/components/p-fiRXhuXK.js +1 -0
- package/{dist/esm/aria-loader-JxXwTAe5.js → esm/aria-loader-BF_AYtbb.js} +2 -2
- package/esm/icons-Ca8oMiRa.js +157 -0
- package/{dist/esm/index-BW1YMEA3.js → esm/index-7Ru1khgk.js} +23076 -11262
- package/{dist/esm/index-CQb-mBBB.js → esm/index-saW7O-EW.js} +45 -10
- package/esm/index.js +11 -0
- package/{dist/esm → esm}/lmvz-action.entry.js +2 -2
- package/{dist/esm → esm}/lmvz-button.entry.js +4 -4
- package/{dist/esm → esm}/lmvz-card.entry.js +22 -3
- package/{dist/esm → esm}/lmvz-chip.entry.js +2 -2
- package/esm/lmvz-components.js +21 -0
- package/{dist/esm → esm}/lmvz-header_2.entry.js +6 -6
- package/{dist/esm → esm}/lmvz-icon.entry.js +25 -14
- package/{dist/esm → esm}/lmvz-input.entry.js +5 -5
- package/{dist/esm → esm}/lmvz-menuitem.entry.js +4 -4
- package/{dist/esm → esm}/lmvz-select.entry.js +4 -4
- package/esm/loader.js +11 -0
- package/esm/logger-fiRXhuXK.js +6990 -0
- package/{dist/esm/reactive-controller-host-OhKYwMvP.js → esm/reactive-controller-host-sR2jJxNG.js} +30 -26
- package/hydrate/index.js +183 -3898
- package/hydrate/index.mjs +183 -3898
- package/lmvz-components/index.esm.js +1 -0
- package/lmvz-components/lmvz-components.esm.js +1 -0
- package/{dist/lmvz-components/p-b8926640.entry.js → lmvz-components/p-30b99f11.entry.js} +1 -1
- package/lmvz-components/p-43e295ba.entry.js +1 -0
- package/lmvz-components/p-5f150890.entry.js +1 -0
- package/{dist/lmvz-components/p-b9d1953f.entry.js → lmvz-components/p-77007422.entry.js} +1 -1
- package/{dist/lmvz-components/p-Bx29-tJt.js → lmvz-components/p-B3dnXEPG.js} +1 -1
- package/lmvz-components/p-Bh2Epkwf.js +1 -0
- package/lmvz-components/p-Bkfdgg0T.js +1 -0
- package/lmvz-components/p-DXOTa5VF.js +12 -0
- package/lmvz-components/p-ae4aeb0a.entry.js +1 -0
- package/lmvz-components/p-b0208356.entry.js +1 -0
- package/{dist/lmvz-components/p-4530f088.entry.js → lmvz-components/p-bfd7db0a.entry.js} +1 -1
- package/{dist/lmvz-components/p-150ecfb6.entry.js → lmvz-components/p-d2e42f6a.entry.js} +1 -1
- package/{dist/lmvz-components/p-47d7ed0e.entry.js → lmvz-components/p-ffa21507.entry.js} +1 -1
- package/lmvz-components/p-fiRXhuXK.js +1 -0
- package/lmvz-components/p-saW7O-EW.js +2 -0
- package/loader/cdn.js +1 -1
- package/loader/index.cjs.js +1 -1
- package/loader/index.d.ts +1 -1
- package/loader/index.es2017.js +1 -1
- package/loader/index.js +1 -1
- package/{dist/manifest.json → manifest.json} +65 -284
- package/package.json +44 -105
- package/types/api/ds.constants.d.ts +29 -0
- package/types/api/ds.types.d.ts +4 -0
- package/{dist/types → types}/api/index.d.ts +0 -1
- package/{dist/types → types}/components/lmvz-action/lmvz-action.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-button/lmvz-button.d.ts +2 -2
- package/{dist/types → types}/components/lmvz-card/lmvz-card.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-chip/lmvz-chip.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-header/lmvz-header.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-icon/lmvz-icon.d.ts +4 -1
- package/{dist/types → types}/components/lmvz-input/lmvz-input.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-menuitem/lmvz-menuitem.d.ts +1 -0
- package/{dist/types → types}/components/lmvz-select/lmvz-select.d.ts +1 -0
- package/types/components.d.ts +747 -0
- package/{dist/types → types}/index.d.ts +2 -2
- package/{dist/types → types}/utils/aria/aria-validation-controller.d.ts +1 -0
- package/{dist/types → types}/utils/aria/element-activation-controller.d.ts +1 -0
- package/{dist/types → types}/utils/aria/list-keyboard-controller.d.ts +1 -0
- package/{dist/types → types}/utils/assets.d.ts +1 -0
- package/{dist/types → types}/utils/component.d.ts +2 -4
- package/{dist/types → types}/utils/environment.d.ts +1 -0
- package/types/utils/http.d.ts +27 -0
- package/types/utils/http.unit.d.ts +2 -0
- package/types/utils/icons/icons-registry.d.ts +13 -0
- package/types/utils/icons/icons.d.ts +8 -0
- package/types/utils/icons/icons.unit.d.ts +8 -0
- package/types/utils/icons/public.d.ts +4 -0
- package/types/utils/public.d.ts +2 -0
- package/{dist/types → types}/utils/reactive-controller-host.d.ts +1 -0
- package/assets/icons/actions.svg +0 -5
- package/assets/icons/adduser.svg +0 -3
- package/assets/icons/alert.svg +0 -3
- package/assets/icons/apple.svg +0 -3
- package/assets/icons/arrow-down.svg +0 -3
- package/assets/icons/arrow-left.svg +0 -3
- package/assets/icons/arrow-right.svg +0 -3
- package/assets/icons/arrow-up.svg +0 -3
- package/assets/icons/book.svg +0 -3
- package/assets/icons/bookmark.svg +0 -3
- package/assets/icons/checkmark.svg +0 -3
- package/assets/icons/chevron-left.svg +0 -3
- package/assets/icons/chevron-right.svg +0 -3
- package/assets/icons/chevron-up.svg +0 -3
- package/assets/icons/close-l.svg +0 -3
- package/assets/icons/close-sm.svg +0 -3
- package/assets/icons/cog.svg +0 -4
- package/assets/icons/computer.svg +0 -3
- package/assets/icons/dashboard.svg +0 -6
- package/assets/icons/delete.svg +0 -3
- package/assets/icons/download.svg +0 -3
- package/assets/icons/edit.svg +0 -3
- package/assets/icons/external.svg +0 -3
- package/assets/icons/facebook.svg +0 -3
- package/assets/icons/favorite.svg +0 -3
- package/assets/icons/filter.svg +0 -3
- package/assets/icons/group.svg +0 -3
- package/assets/icons/hide.svg +0 -3
- package/assets/icons/home.svg +0 -3
- package/assets/icons/info.svg +0 -3
- package/assets/icons/instagram.svg +0 -3
- package/assets/icons/letter.svg +0 -3
- package/assets/icons/linkedin.svg +0 -5
- package/assets/icons/logout.svg +0 -3
- package/assets/icons/map.svg +0 -3
- package/assets/icons/minus.svg +0 -3
- package/assets/icons/navigation.svg +0 -3
- package/assets/icons/plus.svg +0 -3
- package/assets/icons/qr-scan.svg +0 -3
- package/assets/icons/question.svg +0 -10
- package/assets/icons/reader.svg +0 -3
- package/assets/icons/reset.svg +0 -3
- package/assets/icons/school.svg +0 -3
- package/assets/icons/search.svg +0 -3
- package/assets/icons/send.svg +0 -3
- package/assets/icons/settings.svg +0 -3
- package/assets/icons/share.svg +0 -10
- package/assets/icons/shopping-cart.svg +0 -3
- package/assets/icons/show.svg +0 -3
- package/assets/icons/snapchat.svg +0 -3
- package/assets/icons/sort.svg +0 -3
- package/assets/icons/speech-bubble.svg +0 -3
- package/assets/icons/star.svg +0 -3
- package/assets/icons/student.svg +0 -3
- package/assets/icons/upload.svg +0 -3
- package/assets/icons/user.svg +0 -3
- package/assets/icons/warn-circle.svg +0 -3
- package/assets/icons/warn-triangle.svg +0 -3
- package/assets/icons/whatsapp.svg +0 -4
- package/assets/icons/world.svg +0 -10
- package/assets/icons/x.svg +0 -3
- package/assets/icons/youtube.svg +0 -3
- package/dist/cjs/Effect-DdYOHaR4.js +0 -19037
- package/dist/cjs/assets-OvQ-WUwR.js +0 -26
- package/dist/cjs/icons-EHBLbidD.js +0 -653
- package/dist/cjs/index.cjs.js +0 -104
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/collection/api/ds.constants.js +0 -73
- package/dist/collection/api/index.js +0 -1
- package/dist/collection/assets/icons/actions.svg +0 -5
- package/dist/collection/assets/icons/adduser.svg +0 -3
- package/dist/collection/assets/icons/alert.svg +0 -3
- package/dist/collection/assets/icons/apple.svg +0 -3
- package/dist/collection/assets/icons/arrow-down.svg +0 -3
- package/dist/collection/assets/icons/arrow-left.svg +0 -3
- package/dist/collection/assets/icons/arrow-right.svg +0 -3
- package/dist/collection/assets/icons/arrow-up.svg +0 -3
- package/dist/collection/assets/icons/book.svg +0 -3
- package/dist/collection/assets/icons/bookmark.svg +0 -3
- package/dist/collection/assets/icons/checkmark.svg +0 -3
- package/dist/collection/assets/icons/chevron-left.svg +0 -3
- package/dist/collection/assets/icons/chevron-right.svg +0 -3
- package/dist/collection/assets/icons/chevron-up.svg +0 -3
- package/dist/collection/assets/icons/close-l.svg +0 -3
- package/dist/collection/assets/icons/close-sm.svg +0 -3
- package/dist/collection/assets/icons/cog.svg +0 -4
- package/dist/collection/assets/icons/computer.svg +0 -3
- package/dist/collection/assets/icons/dashboard.svg +0 -6
- package/dist/collection/assets/icons/delete.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/edit.svg +0 -3
- package/dist/collection/assets/icons/external.svg +0 -3
- package/dist/collection/assets/icons/facebook.svg +0 -3
- package/dist/collection/assets/icons/favorite.svg +0 -3
- package/dist/collection/assets/icons/filter.svg +0 -3
- package/dist/collection/assets/icons/group.svg +0 -3
- package/dist/collection/assets/icons/hide.svg +0 -3
- package/dist/collection/assets/icons/home.svg +0 -3
- package/dist/collection/assets/icons/info.svg +0 -3
- package/dist/collection/assets/icons/instagram.svg +0 -3
- package/dist/collection/assets/icons/letter.svg +0 -3
- package/dist/collection/assets/icons/linkedin.svg +0 -5
- package/dist/collection/assets/icons/logout.svg +0 -3
- package/dist/collection/assets/icons/map.svg +0 -3
- package/dist/collection/assets/icons/minus.svg +0 -3
- package/dist/collection/assets/icons/navigation.svg +0 -3
- package/dist/collection/assets/icons/plus.svg +0 -3
- package/dist/collection/assets/icons/qr-scan.svg +0 -3
- package/dist/collection/assets/icons/question.svg +0 -10
- package/dist/collection/assets/icons/reader.svg +0 -3
- package/dist/collection/assets/icons/reset.svg +0 -3
- package/dist/collection/assets/icons/school.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/settings.svg +0 -3
- package/dist/collection/assets/icons/share.svg +0 -10
- package/dist/collection/assets/icons/shopping-cart.svg +0 -3
- package/dist/collection/assets/icons/show.svg +0 -3
- package/dist/collection/assets/icons/snapchat.svg +0 -3
- package/dist/collection/assets/icons/sort.svg +0 -3
- package/dist/collection/assets/icons/speech-bubble.svg +0 -3
- package/dist/collection/assets/icons/star.svg +0 -3
- package/dist/collection/assets/icons/student.svg +0 -3
- package/dist/collection/assets/icons/upload.svg +0 -3
- package/dist/collection/assets/icons/user.svg +0 -3
- package/dist/collection/assets/icons/warn-circle.svg +0 -3
- package/dist/collection/assets/icons/warn-triangle.svg +0 -3
- package/dist/collection/assets/icons/whatsapp.svg +0 -4
- package/dist/collection/assets/icons/world.svg +0 -10
- package/dist/collection/assets/icons/x.svg +0 -3
- package/dist/collection/assets/icons/youtube.svg +0 -3
- package/dist/collection/components/lmvz-icon/icons.js +0 -36
- package/dist/collection/components/lmvz-icon/public.js +0 -1
- package/dist/collection/components/lmvz-icon/test/icons.unit.js +0 -98
- package/dist/collection/index.js +0 -4
- package/dist/collection/integration/header-integration.js +0 -46
- package/dist/collection/utils/effect.js +0 -6
- package/dist/collection/utils/http.js +0 -24
- package/dist/collection/utils/public.js +0 -1
- package/dist/collection/utils/validation/svg.js +0 -24
- package/dist/components/index.js +0 -1
- package/dist/components/lmvz-action.js +0 -1
- package/dist/components/lmvz-card.js +0 -1
- package/dist/components/lmvz-icon.js +0 -1
- package/dist/components/p-BsHYIl56.js +0 -1
- package/dist/components/p-CKtksB0G.js +0 -1
- package/dist/components/p-CahBdGGN.js +0 -1
- package/dist/components/p-GKEnURpp.js +0 -1
- package/dist/components/p-vIq2biqy.js +0 -12
- package/dist/esm/Effect-9SROYpxM.js +0 -18828
- package/dist/esm/assets-CNHv_WMG.js +0 -23
- package/dist/esm/icons-B255FOe4.js +0 -649
- package/dist/esm/index.js +0 -87
- package/dist/esm/lmvz-components.js +0 -21
- package/dist/esm/loader.js +0 -11
- package/dist/ext-libs.d.ts +0 -1
- package/dist/lmvz-components/index.esm.js +0 -1
- package/dist/lmvz-components/lmvz-components.esm.js +0 -1
- package/dist/lmvz-components/p-22f67eff.entry.js +0 -1
- package/dist/lmvz-components/p-5c3f1404.entry.js +0 -1
- package/dist/lmvz-components/p-8d51e396.entry.js +0 -1
- package/dist/lmvz-components/p-9SROYpxM.js +0 -1
- package/dist/lmvz-components/p-CQb-mBBB.js +0 -2
- package/dist/lmvz-components/p-Cp76bcGb.js +0 -1
- package/dist/lmvz-components/p-Cp7cp10e.js +0 -12
- package/dist/lmvz-components/p-DyO6wO4l.js +0 -1
- package/dist/lmvz-components/p-d9c3f542.entry.js +0 -1
- package/dist/lmvz-components/p-i2508Ct1.js +0 -1
- package/dist/stencil.config.base.js +0 -44
- package/dist/stencil.config.dev.js +0 -21
- package/dist/stencil.config.integration.js +0 -26
- package/dist/stencil.config.js +0 -15
- package/dist/stencil.config.prod.js +0 -29
- package/dist/types/api/ds.constants.d.ts +0 -8
- package/dist/types/api/ds.types.d.ts +0 -39
- package/dist/types/components/lmvz-icon/icons.d.ts +0 -8
- package/dist/types/components/lmvz-icon/public.d.ts +0 -1
- package/dist/types/components/lmvz-icon/test/icons.unit.d.ts +0 -1
- package/dist/types/components.d.ts +0 -931
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.base.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.dev.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.integration.d.ts +0 -2
- package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.prod.d.ts +0 -2
- package/dist/types/utils/effect.d.ts +0 -3
- package/dist/types/utils/http.d.ts +0 -24
- package/dist/types/utils/http.unit.d.ts +0 -1
- package/dist/types/utils/public.d.ts +0 -1
- package/dist/types/utils/validation/svg.d.ts +0 -11
- /package/{dist/cjs → cjs}/app-globals-V2Kpy_OQ.js +0 -0
- /package/{dist/cjs → cjs}/component-Csg9MtNK.js +0 -0
- /package/{dist/cjs → cjs}/element-activation-controller-DC_6T0Rt.js +0 -0
- /package/{dist/cjs → cjs}/index-Bp6Dd2i1.js +0 -0
- /package/{dist/collection → collection}/assets/LMVZ_logo_175.svg +0 -0
- /package/{dist/collection → collection}/assets/card-placeholder.svg +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Bold.woff +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Book.woff +0 -0
- /package/{dist/collection → collection}/assets/fonts/Router-Medium.woff +0 -0
- /package/{dist/collection → collection}/assets/icons/Logo.svg +0 -0
- /package/{dist/collection → collection}/assets/icons/chevron-down.svg +0 -0
- /package/{dist/collection → collection}/assets/zukunftslinie.svg +0 -0
- /package/{dist/collection → collection}/components/lmvz-action/lmvz-action.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-button/lmvz-button.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-card/lmvz-card.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-chip/lmvz-chip.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-header/lmvz-header.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-input/lmvz-input.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-menuitem/lmvz-menuitem.css +0 -0
- /package/{dist/collection → collection}/components/lmvz-select/lmvz-select.css +0 -0
- /package/{dist/collection → collection}/utils/aria/element-activation-controller.js +0 -0
- /package/{dist/collection → collection}/utils/aria/list-keyboard-controller.js +0 -0
- /package/{dist/collection → collection}/utils/assets.js +0 -0
- /package/{dist/collection → collection}/utils/component.js +0 -0
- /package/{dist/collection → collection}/utils/environment.js +0 -0
- /package/{dist/collection → collection}/utils/reactive-controller-host.js +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/components → components}/lmvz-action.d.ts +0 -0
- /package/{dist/components → components}/lmvz-button.d.ts +0 -0
- /package/{dist/components → components}/lmvz-card.d.ts +0 -0
- /package/{dist/components → components}/lmvz-chip.d.ts +0 -0
- /package/{dist/components → components}/lmvz-header.d.ts +0 -0
- /package/{dist/components → components}/lmvz-icon.d.ts +0 -0
- /package/{dist/components → components}/lmvz-input.d.ts +0 -0
- /package/{dist/components → components}/lmvz-menuitem.d.ts +0 -0
- /package/{dist/components → components}/lmvz-select.d.ts +0 -0
- /package/{dist/components → components}/p-BfTCfPZ1.js +0 -0
- /package/{dist/components → components}/p-CN0JX9-m.js +0 -0
- /package/{dist/components → components}/p-DQEkWkMh.js +0 -0
- /package/{dist/esm → esm}/app-globals-DQuL1Twl.js +0 -0
- /package/{dist/esm → esm}/component-DIrAQ4IB.js +0 -0
- /package/{dist/esm → esm}/element-activation-controller-CN0JX9-m.js +0 -0
- /package/{dist/esm → esm}/index-BfTCfPZ1.js +0 -0
- /package/{dist/index.cjs.js → index.cjs.js} +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-BfTCfPZ1.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-CN0JX9-m.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-DIrAQ4IB.js +0 -0
- /package/{dist/lmvz-components → lmvz-components}/p-DQuL1Twl.js +0 -0
- /package/{dist/manifest.d.ts → manifest.d.ts} +0 -0
- /package/{dist/types → types}/api/aria-types.d.ts +0 -0
- /package/{dist/types → types}/stencil-public-runtime.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t=function(t,e){if("function"==typeof t)return function(){return t(arguments)?e.apply(this,arguments):t=>e(t,...arguments)};switch(t){case 0:case 1:throw new RangeError(`Invalid arity ${t}`);case 2:return function(t,r){return arguments.length>=2?e(t,r):function(r){return e(r,t)}};case 3:return function(t,r,n){return arguments.length>=3?e(t,r,n):function(n){return e(n,t,r)}};case 4:return function(t,r,n,s){return arguments.length>=4?e(t,r,n,s):function(s){return e(s,t,r,n)}};case 5:return function(t,r,n,s,i){return arguments.length>=5?e(t,r,n,s,i):function(i){return e(i,t,r,n,s)}};default:return function(){if(arguments.length>=t)return e.apply(this,arguments);const r=arguments;return function(t){return e(t,...r)}}}},e=t=>t,r=t=>()=>t,n=r(!0),s=r(!1),i=r(void 0),o=i;function c(t,e,r,n,s,i,o,c,a){switch(arguments.length){case 1:return t;case 2:return e(t);case 3:return r(e(t));case 4:return n(r(e(t)));case 5:return s(n(r(e(t))));case 6:return i(s(n(r(e(t)))));case 7:return o(i(s(n(r(e(t))))));case 8:return c(o(i(s(n(r(e(t)))))));case 9:return a(c(o(i(s(n(r(e(t))))))));default:{let t=arguments[0];for(let e=1;e<arguments.length;e++)t=arguments[e](t);return t}}}const a=t=>(e,r)=>e===r||t(e,r),u=t(2,((t,e)=>a(((r,n)=>t(e(r),e(n)))))),h="effect/GlobalValue";let l;const f=(t,e)=>(l||(globalThis[h]??=new Map,l=globalThis[h]),l.has(t)||l.set(t,e()),l.get(t)),b=t=>"number"==typeof t,d=t=>"function"==typeof t,p=t=>(t=>"object"==typeof t&&null!==t)(t)||d(t),m=t(2,((t,e)=>p(t)&&e in t)),S=t(2,((t,e)=>m(t,"_tag")&&t._tag===e)),g=t=>null==t,y=t=>"string"==typeof t||m(t,Symbol.iterator),w=t=>`BUG: ${t} - please report an issue at https://github.com/Effect-TS/effect/issues`;let _=class t{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new t(this.self)}};class v{_state;constructor(t,e,r,n){return g(e)&&g(t)?(e=4294967295*Math.random()>>>0,t=0):g(e)&&(e=t,t=0),g(n)&&g(r)?(n=this._state?this._state[3]:4150755663,r=this._state?this._state[2]:335903614):g(n)&&(n=r,r=0),this._state=new Int32Array([0,0,r>>>0,(1|(n||0))>>>0]),this._next(),O(this._state,this._state[0],this._state[1],t>>>0,e>>>0),this._next(),this}getState(){return[this._state[0],this._state[1],this._state[2],this._state[3]]}setState(t){this._state[0]=t[0],this._state[1]=t[1],this._state[2]=t[2],this._state[3]=1|t[3]}integer(t){return Math.round(this.number()*Number.MAX_SAFE_INTEGER)%t}number(){return(1*(67108863&this._next())*134217728+1*(134217727&this._next()))/9007199254740992}_next(){const t=this._state[0]>>>0,e=this._state[1]>>>0;!function(t,e,r,n,s){let i=32557*(r>>>16)>>>0,o=19605*(65535&r)>>>0,c=32557*(65535&r)>>>0,a=19605*(r>>>16)+((o>>>16)+(i>>>16))>>>0;o=o<<16>>>0,c=c+o>>>0,c>>>0<o>>>0&&(a=a+1>>>0),i=i<<16>>>0,c=c+i>>>0,c>>>0<i>>>0&&(a=a+1>>>0),a=a+Math.imul(r,1481765933)>>>0,a=a+Math.imul(e,s)>>>0,t[0]=a,t[1]=c}(this._state,t,e,0,1284865837),O(this._state,this._state[0],this._state[1],this._state[2],this._state[3]);let r=t>>>18,n=(e>>>18|t<<14)>>>0;r=(r^t)>>>0,n=(n^e)>>>0;const s=(n>>>27|r<<5)>>>0,i=t>>>27;return(s>>>i|s<<((-i>>>0&31)>>>0))>>>0}}function O(t,e,r,n,s){let i=e+n>>>0;const o=r+s>>>0;o>>>0<r>>>0&&(i=i+1|0),t[0]=i,t[1]=o}const M=Symbol.for("effect/Utils/YieldWrap");class I{#t;constructor(t){this.#t=t}[M](){return this.#t}}function E(t){if("object"==typeof t&&null!==t&&M in t)return t[M]();throw new Error(w("yieldWrapGet"))}const k=f("effect/Utils/isStructuralRegion",(()=>({enabled:!1,tester:void 0}))),F={effect_internal_function:t=>t()},N=!0===F.effect_internal_function((()=>(new Error).stack))?.includes("effect_internal_function")?F.effect_internal_function:t=>{try{return t()}finally{}},C=f(Symbol.for("effect/Hash/randomHashCache"),(()=>new WeakMap)),j=Symbol.for("effect/Hash"),A=t=>{if(!0===k.enabled)return 0;switch(typeof t){case"number":return L(t);case"bigint":return D(t.toString(10));case"boolean":case"symbol":return D(String(t));case"string":return D(t);case"undefined":return D("undefined");case"function":case"object":return null===t?D("null"):t instanceof Date?Number.isNaN(t.getTime())?D("Invalid Date"):A(t.toISOString()):t instanceof URL?A(t.href):T(t)?t[j]():R(t);default:throw new Error(`BUG: unhandled typeof ${typeof t} - please report an issue at https://github.com/Effect-TS/effect/issues`)}},R=t=>(C.has(t)||C.set(t,L(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER))),C.get(t)),x=t=>e=>53*e^t,$=t=>3221225471&t|t>>>1&1073741824,T=t=>m(t,j),L=t=>{if(t!=t||t===1/0)return 0;let e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return $(e)},D=t=>{let e=5381,r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return $(e)},P=t=>((t,e)=>{let r=12289;for(let n=0;n<e.length;n++)r^=c(D(e[n]),x(A(t[e[n]])));return $(r)})(t,Object.keys(t)),B=t=>{let e=6151;for(let r=0;r<t.length;r++)e=c(e,x(A(t[r])));return $(e)},q=function(){if(1===arguments.length){const t=arguments[0];return function(e){return Object.defineProperty(t,j,{value:()=>e,enumerable:!1}),e}}const t=arguments[1];return Object.defineProperty(arguments[0],j,{value:()=>t,enumerable:!1}),t},U=Symbol.for("effect/Equal");function J(){return 1===arguments.length?t=>W(t,arguments[0]):W(arguments[0],arguments[1])}function W(t,e){if(t===e)return!0;const r=typeof t;if(r!==typeof e)return!1;if("object"===r||"function"===r){if(null!==t&&null!==e){if(G(t)&&G(e))return!(A(t)!==A(e)||!t[U](e))||!(!k.enabled||!k.tester)&&k.tester(t,e);if(t instanceof Date&&e instanceof Date){const r=t.getTime(),n=e.getTime();return r===n||Number.isNaN(r)&&Number.isNaN(n)}if(t instanceof URL&&e instanceof URL)return t.href===e.href}if(k.enabled){if(null===t||null===e)return!1;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,r)=>W(t,e[r])));if(Object.getPrototypeOf(t)===Object.prototype&&Object.getPrototypeOf(e)===Object.prototype){const r=Object.keys(t),n=Object.keys(e);if(r.length===n.length){for(const n of r)if(!(n in e)||!W(t[n],e[n]))return!!k.tester&&k.tester(t,e);return!0}}return!!k.tester&&k.tester(t,e)}}return!(!k.enabled||!k.tester)&&k.tester(t,e)}const G=t=>m(t,U),V=()=>J,z=Symbol.for("nodejs.util.inspect.custom"),H=t=>{try{if(m(t,"toJSON")&&d(t.toJSON)&&0===t.toJSON.length)return t.toJSON();if(Array.isArray(t))return t.map(H)}catch{return{}}return et(t)},Y=t=>JSON.stringify(t,null,2),K=(t,e=2)=>{if("string"==typeof t)return t;try{return"object"==typeof t?Q(t,e):String(t)}catch{return String(t)}},Q=(t,e)=>{let r=[];const n=JSON.stringify(t,((t,e)=>"object"==typeof e&&null!==e?r.includes(e)?void 0:r.push(e)&&(void 0!==tt.fiberRefs&&X(e)?e[Z](tt.fiberRefs):e):e),e);return r=void 0,n},Z=Symbol.for("effect/Inspectable/Redactable"),X=t=>"object"==typeof t&&null!==t&&Z in t,tt=f("effect/Inspectable/redactableState",(()=>({fiberRefs:void 0}))),et=t=>X(t)&&void 0!==tt.fiberRefs?t[Z](tt.fiberRefs):t,rt=(t,e)=>{switch(e.length){case 0:return t;case 1:return e[0](t);case 2:return e[1](e[0](t));case 3:return e[2](e[1](e[0](t)));case 4:return e[3](e[2](e[1](e[0](t))));case 5:return e[4](e[3](e[2](e[1](e[0](t)))));case 6:return e[5](e[4](e[3](e[2](e[1](e[0](t))))));case 7:return e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))));case 8:return e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t))))))));case 9:return e[8](e[7](e[6](e[5](e[4](e[3](e[2](e[1](e[0](t)))))))));default:{let r=t;for(let t=0,n=e.length;t<n;t++)r=e[t](r);return r}}},nt="Async",st="Commit",it="Failure",ot="OnFailure",ct="OnSuccess",at="OnSuccessAndFailure",ut="Success",ht="Sync",lt="Tag",ft="UpdateRuntimeFlags",bt="While",dt="Iterator",pt="WithRuntime",mt="Yield",St="RevertFlags",gt=()=>"3.21.0",yt=Symbol.for("effect/Effect"),wt=Symbol.for("effect/Stream"),_t=Symbol.for("effect/Sink"),vt=Symbol.for("effect/Channel"),Ot={_R:t=>t,_E:t=>t,_A:t=>t,_V:gt()},Mt={[yt]:Ot,[wt]:Ot,[_t]:{_A:t=>t,_In:t=>t,_L:t=>t,_E:t=>t,_R:t=>t},[vt]:{_Env:t=>t,_InErr:t=>t,_InElem:t=>t,_InDone:t=>t,_OutErr:t=>t,_OutElem:t=>t,_OutDone:t=>t},[U](t){return this===t},[j](){return q(this,R(this))},[Symbol.iterator](){return new _(new I(this))},pipe(){return rt(this,arguments)}},It={[j](){return q(this,P(this))},[U](t){const e=Object.keys(this),r=Object.keys(t);if(e.length!==r.length)return!1;for(const r of e)if(!(r in t)||!J(this[r],t[r]))return!1;return!0}},Et={...Mt,_op:st},kt={...Et,...It},Ft=function(){function t(){}return t.prototype=Et,t}(),Nt=Symbol.for("effect/Option"),Ct={...Mt,[Nt]:{_A:t=>t},[z](){return this.toJSON()},toString(){return Y(this.toJSON())}},jt=Object.assign(Object.create(Ct),{_tag:"Some",_op:"Some",[U](t){return xt(t)&&Tt(t)&&J(this.value,t.value)},[j](){return q(this,x(A(this._tag))(A(this.value)))},toJSON(){return{_id:"Option",_tag:this._tag,value:H(this.value)}}}),At=A("None"),Rt=Object.assign(Object.create(Ct),{_tag:"None",_op:"None",[U]:t=>xt(t)&&$t(t),[j]:()=>At,toJSON(){return{_id:"Option",_tag:this._tag}}}),xt=t=>m(t,Nt),$t=t=>"None"===t._tag,Tt=t=>"Some"===t._tag,Lt=Object.create(Rt),Dt=t=>{const e=Object.create(jt);return e.value=t,e},Pt=Symbol.for("effect/Either"),Bt={...Mt,[Pt]:{_R:t=>t},[z](){return this.toJSON()},toString(){return Y(this.toJSON())}},qt=Object.assign(Object.create(Bt),{_tag:"Right",_op:"Right",[U](t){return Jt(t)&&Gt(t)&&J(this.right,t.right)},[j](){return x(A(this._tag))(A(this.right))},toJSON(){return{_id:"Either",_tag:this._tag,right:H(this.right)}}}),Ut=Object.assign(Object.create(Bt),{_tag:"Left",_op:"Left",[U](t){return Jt(t)&&Wt(t)&&J(this.left,t.left)},[j](){return x(A(this._tag))(A(this.left))},toJSON(){return{_id:"Either",_tag:this._tag,left:H(this.left)}}}),Jt=t=>m(t,Pt),Wt=t=>"Left"===t._tag,Gt=t=>"Right"===t._tag,Vt=t=>{const e=Object.create(qt);return e.right=t,e},zt=t=>{const e=Object.create(Ut);return e.left=t,e},Ht=Wt,Yt=Gt,Kt=t(2,((t,{onLeft:e,onRight:r})=>Ht(t)?e(t.left):r(t.right))),Qt=Kt({onLeft:e,onRight:e}),Zt=t(2,((t,e)=>{if(Yt(t))return t.right;throw e(t.left)})),Xt=t=>t.length>0,te=t=>(e,r)=>e===r?0:t(e,r),ee=te(((t,e)=>t<e?-1:1)),re=t(2,((t,e)=>te(((r,n)=>t(e(r),e(n)))))),ne=e=>t(2,((t,r)=>1===e(t,r))),se=()=>Lt,ie=Dt,oe=$t,ce=Tt,ae=t(2,((t,{onNone:e,onSome:r})=>oe(t)?e():r(t.value))),ue=t=>Wt(t)?Lt:Dt(t.right),he=t(2,((t,e)=>oe(t)?e():t.value)),le=t(2,((t,e)=>oe(t)?ie(e()):t)),fe=t=>null==t?se():ie(t),be=he(i),de=t(2,((t,e)=>oe(t)?se():ie(e(t.value)))),pe=t(2,((t,e)=>oe(t)?se():e(t.value))),me=(e=>t(2,((t,r)=>!oe(t)&&e(t.value,r))))(V()),Se=t=>(e,r)=>oe(e)?r:oe(r)?e:ie(t(e.value,r.value)),ge=(...t)=>t,ye=t=>new Array(t),we=t(2,((t,e)=>{const r=Math.max(1,Math.floor(t)),n=new Array(r);for(let t=0;t<r;t++)n[t]=e(t);return n})),_e=t=>Array.isArray(t)?t:Array.from(t),ve=t(2,((t,e)=>[e,...t])),Oe=t(2,((t,e)=>[...t,e])),Me=t(2,((t,e)=>_e(t).concat(_e(e)))),Ie=Xt,Ee=Xt,ke=(t,e)=>t<0||t>=e.length,Fe=t(2,((t,e)=>{const r=Math.floor(e);return ke(r,t)?se():ie(t[r])})),Ne=t(2,((t,e)=>{const r=Math.floor(e);if(ke(r,t))throw new Error(`Index ${r} out of bounds`);return t[r]})),Ce=Fe(0),je=Ne(0),Ae=t=>t[t.length-1],Re=t=>t.slice(1),xe=t(2,((t,e)=>qe(t,((t,e)=>{let r=0;for(const n of t){if(!e(n,r))break;r++}return r})(t,e)))),$e=t(2,((t,e)=>{const r=_e(t);return r.slice(((t,e)=>Math.floor(Math.min(Math.max(0,t),e.length)))(e,r),r.length)})),Te=t=>Array.from(t).reverse(),Le=t(2,((t,e)=>{const r=Array.from(t);return r.sort(e),r})),De=t(2,((t,e)=>Pe(t,e,ge))),Pe=t(3,((t,e,r)=>{const n=_e(t),s=_e(e);if(Ee(n)&&Ee(s)){const t=[r(je(n),je(s))],e=Math.min(n.length,s.length);for(let i=1;i<e;i++)t[i]=r(n[i],s[i]);return t}return[]})),Be=V(),qe=t(2,((t,e)=>{const r=Array.from(t),n=Math.floor(e);return Ee(r)?n>=1?Ue(r,n):[[],r]:[r,[]]})),Ue=t(2,((t,e)=>{const r=Math.max(1,Math.floor(e));return r>=t.length?[Je(t),[]]:[ve(t.slice(1,r),je(t)),t.slice(r)]})),Je=t=>t.slice(),We=t(3,((t,e,r)=>{const n=_e(t),s=_e(e);return Ee(n)?Ee(s)?er(r)(Me(n,s)):n:s})),Ge=t(2,((t,e)=>We(t,e,Be))),Ve=()=>[],ze=t=>[t],He=t(2,((t,e)=>t.map(e))),Ye=t(2,((t,e)=>{if((t=>0===t.length)(t))return[];const r=[];for(let n=0;n<t.length;n++){const s=e(t[n],n);for(let t=0;t<s.length;t++)r.push(s[t])}return r}))(e),Ke=t(2,((t,e)=>{const r=_e(t),n=[];for(let t=0;t<r.length;t++){const s=e(r[t],t);ce(s)&&n.push(s.value)}return n})),Qe=t(2,((t,e)=>{const r=_e(t),n=[];for(let t=0;t<r.length;t++)e(r[t],t)&&n.push(r[t]);return n})),Ze=t(3,((t,e,r)=>_e(t).reduce(((t,e,n)=>r(t,e,n)),e))),Xe=(t,e)=>{const r=[];let n,s=t;for(;ce(n=e(s));){const[t,e]=n.value;r.push(t),s=e}return r},tr=t=>a(((e,r)=>{if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1;return!0})),er=t(2,((t,e)=>{const r=_e(t);if(Ee(r)){const t=[je(r)],n=Re(r);for(const r of n)t.every((t=>!e(r,t)))&&t.push(r);return t}return[]})),rr=t=>er(t,V()),nr=t(2,((t,e)=>_e(t).join(e))),sr=ee,ir=Symbol.for("effect/Context/Tag"),or=Symbol.for("effect/Context/Reference"),cr=Symbol.for("effect/STM"),ar={...Mt,_op:"Tag",[cr]:Ot,[ir]:{_Service:t=>t,_Identifier:t=>t},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Tag",key:this.key,stack:this.stack}},[z](){return this.toJSON()},of:t=>t,context(t){return pr(this,t)}},ur={...ar,[or]:or},hr=Symbol.for("effect/Context"),lr={[hr]:{_Services:t=>t},[U](t){if(br(t)&&this.unsafeMap.size===t.unsafeMap.size){for(const e of this.unsafeMap.keys())if(!t.unsafeMap.has(e)||!J(this.unsafeMap.get(e),t.unsafeMap.get(e)))return!1;return!0}return!1},[j](){return q(this,L(this.unsafeMap.size))},pipe(){return rt(this,arguments)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Context",services:Array.from(this.unsafeMap).map(H)}},[z](){return this.toJSON()}},fr=t=>{const e=Object.create(lr);return e.unsafeMap=t,e},br=t=>m(t,hr),dr=fr(new Map),pr=(t,e)=>fr(new Map([[t.key,e]])),mr=t(3,((t,e,r)=>{const n=new Map(t.unsafeMap);return n.set(e.key,r),fr(n)})),Sr=f("effect/Context/defaultValueCache",(()=>new Map)),gr=t=>{if(Sr.has(t.key))return Sr.get(t.key);const e=t.defaultValue();return Sr.set(t.key,e),e},yr=t(2,((t,e)=>{if(!t.unsafeMap.has(e.key)){if(or in e)return gr(e);throw(t=>{const e=new Error("Service not found"+(t.key?`: ${String(t.key)}`:""));if(t.stack){const r=t.stack.split("\n");if(r.length>2){const t=r[2].match(/at (.*)/);t&&(e.message=e.message+` (defined at ${t[1]})`)}}if(e.stack){const t=e.stack.split("\n");t.splice(1,3),e.stack=t.join("\n")}return e})(e)}return t.unsafeMap.get(e.key)})),wr=yr,_r=t(2,((t,e)=>t.unsafeMap.has(e.key)?Dt(t.unsafeMap.get(e.key)):m(e,or)?Dt(gr(e)):Lt)),vr=t(2,((t,e)=>{const r=new Map(t.unsafeMap);for(const[t,n]of e.unsafeMap)r.set(t,n);return fr(r)})),Or=t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=2;const r=new Error;Error.stackTraceLimit=e;const n=Object.create(ar);return Object.defineProperty(n,"stack",{get:()=>r.stack}),n.key=t,n},Mr=br,Ir=()=>dr,Er=pr,kr=mr,Fr=wr,Nr=yr,Cr=_r,jr=vr,Ar=()=>(t,e)=>{const r=Error.stackTraceLimit;Error.stackTraceLimit=2;const n=new Error;function s(){}return Error.stackTraceLimit=r,Object.setPrototypeOf(s,ur),s.key=t,s.defaultValue=e.defaultValue,Object.defineProperty(s,"stack",{get:()=>n.stack}),s},Rr=Symbol.for("effect/Chunk"),xr=[],$r=(t=>a(((e,r)=>e.length===r.length&&Gr(e).every(((e,n)=>t(e,Kr(r,n)))))))(J),Tr={[Rr]:{_A:t=>t},toString(){return Y(this.toJSON())},toJSON(){return{_id:"Chunk",values:Gr(this).map(H)}},[z](){return this.toJSON()},[U](t){return Dr(t)&&$r(this,t)},[j](){return q(this,B(Gr(this)))},[Symbol.iterator](){switch(this.backing._tag){case"IArray":return this.backing.array[Symbol.iterator]();case"IEmpty":return xr[Symbol.iterator]();default:return Gr(this)[Symbol.iterator]()}},pipe(){return rt(this,arguments)}},Lr=t=>{const e=Object.create(Tr);switch(e.backing=t,t._tag){case"IEmpty":e.length=0,e.depth=0,e.left=e,e.right=e;break;case"IConcat":e.length=t.left.length+t.right.length,e.depth=1+Math.max(t.left.depth,t.right.depth),e.left=t.left,e.right=t.right;break;case"IArray":e.length=t.array.length,e.depth=0,e.left=Pr,e.right=Pr;break;case"ISingleton":e.length=1,e.depth=0,e.left=Pr,e.right=Pr;break;case"ISlice":e.length=t.length,e.depth=t.chunk.depth+1,e.left=Pr,e.right=Pr}return e},Dr=t=>m(t,Rr),Pr=Lr({_tag:"IEmpty"}),Br=()=>Pr,qr=(...t)=>Yr(t),Ur=t=>Lr({_tag:"ISingleton",a:t}),Jr=t=>Dr(t)?t:Hr(_e(t)),Wr=(t,e,r)=>{switch(t.backing._tag){case"IArray":!function(t,e,r,n,s){for(let e=0;e<Math.min(t.length,0+s);e++)r[n+e-0]=t[e]}(t.backing.array,0,e,r,t.length);break;case"IConcat":Wr(t.left,e,r),Wr(t.right,e,r+t.left.length);break;case"ISingleton":e[r]=t.backing.a;break;case"ISlice":{let n=0,s=r;for(;n<t.length;)e[s]=Kr(t,n),n+=1,s+=1;break}}},Gr=t=>{switch(t.backing._tag){case"IEmpty":return xr;case"IArray":return t.backing.array;default:{const e=new Array(t.length);return Wr(t,e,0),t.backing={_tag:"IArray",array:e},t.left=Pr,t.right=Pr,t.depth=0,e}}},Vr=t=>{switch(t.backing._tag){case"IEmpty":case"ISingleton":return t;case"IArray":return Lr({_tag:"IArray",array:Te(t.backing.array)});case"IConcat":return Lr({_tag:"IConcat",left:Vr(t.backing.right),right:Vr(t.backing.left)});case"ISlice":return Hr(Te(Gr(t)))}},zr=t(2,((t,e)=>e<0||e>=t.length?se():ie(Kr(t,e)))),Hr=t=>0===t.length?Br():1===t.length?Ur(t[0]):Lr({_tag:"IArray",array:t}),Yr=t=>Hr(t),Kr=t(2,((t,e)=>{switch(t.backing._tag){case"IEmpty":throw new Error("Index out of bounds");case"ISingleton":if(0!==e)throw new Error("Index out of bounds");return t.backing.a;case"IArray":if(e>=t.length||e<0)throw new Error("Index out of bounds");return t.backing.array[e];case"IConcat":return e<t.left.length?Kr(t.left,e):Kr(t.right,e-t.left.length);case"ISlice":return Kr(t.backing.chunk,e+t.backing.offset)}})),Qr=t(2,((t,e)=>en(t,Ur(e)))),Zr=t(2,((t,e)=>en(Ur(e),t))),Xr=t(2,((t,e)=>{if(e<=0)return Pr;if(e>=t.length)return t;switch(t.backing._tag){case"ISlice":return Lr({_tag:"ISlice",chunk:t.backing.chunk,length:e,offset:t.backing.offset});case"IConcat":return e>t.left.length?Lr({_tag:"IConcat",left:t.left,right:Xr(t.right,e-t.left.length)}):Xr(t.left,e);default:return Lr({_tag:"ISlice",chunk:t,offset:0,length:e})}})),tn=t(2,((t,e)=>{if(e<=0)return t;if(e>=t.length)return Pr;switch(t.backing._tag){case"ISlice":return Lr({_tag:"ISlice",chunk:t.backing.chunk,offset:t.backing.offset+e,length:t.backing.length-e});case"IConcat":return e>t.left.length?tn(t.right,e-t.left.length):Lr({_tag:"IConcat",left:tn(t.left,e),right:t.right});default:return Lr({_tag:"ISlice",chunk:t,offset:e,length:t.length-e})}})),en=t(2,((t,e)=>{if("IEmpty"===t.backing._tag)return e;if("IEmpty"===e.backing._tag)return t;const r=e.depth-t.depth;if(Math.abs(r)<=1)return Lr({_tag:"IConcat",left:t,right:e});if(r<-1){if(t.left.depth>=t.right.depth){const r=en(t.right,e);return Lr({_tag:"IConcat",left:t.left,right:r})}{const r=en(t.right.right,e);if(r.depth===t.depth-3){const e=Lr({_tag:"IConcat",left:t.right.left,right:r});return Lr({_tag:"IConcat",left:t.left,right:e})}{const e=Lr({_tag:"IConcat",left:t.left,right:t.right.left});return Lr({_tag:"IConcat",left:e,right:r})}}}if(e.right.depth>=e.left.depth){const r=en(t,e.left);return Lr({_tag:"IConcat",left:r,right:e.right})}{const r=en(t,e.left.left);if(r.depth===e.depth-3){const t=Lr({_tag:"IConcat",left:r,right:e.left.right});return Lr({_tag:"IConcat",left:t,right:e.right})}{const t=Lr({_tag:"IConcat",left:e.left.right,right:e.right});return Lr({_tag:"IConcat",left:r,right:t})}}})),rn=t(2,((t,e)=>Hr(Ke(t,e)))),nn=t(2,((t,e)=>Hr(Qe(t,e)))),sn=t=>0===t.length,on=t=>t.length>0,cn=zr(0),an=t=>Kr(t,0),un=an,hn=t(2,((t,e)=>"ISingleton"===t.backing._tag?Ur(e(t.backing.a,0)):Hr(c(Gr(t),He(((t,r)=>e(t,r))))))),ln=t(2,((t,e)=>[Xr(t,e),tn(t,e)])),fn=t(2,((t,e)=>{let r=0;for(const n of Gr(t)){if(e(n))break;r++}return ln(t,r)})),bn=t=>tn(t,1),dn=Ze,pn=Symbol.for("effect/Duration"),mn=BigInt(0),Sn=BigInt(24),gn=BigInt(60),yn=BigInt(1e3),wn=BigInt(1e6),_n=BigInt(1e9),vn=/^(-?\d+(?:\.\d+)?)\s+(nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/,On=t=>{if(Fn(t))return t;if(b(t))return Rn(t);if((t=>"bigint"==typeof t)(t))return jn(t);if(Array.isArray(t)&&2===t.length&&t.every(b))return t[0]===-1/0||t[1]===-1/0||Number.isNaN(t[0])||Number.isNaN(t[1])?Nn:t[0]===1/0||t[1]===1/0?Cn:jn(BigInt(Math.round(1e9*t[0]))+BigInt(Math.round(t[1])));if((t=>"string"==typeof t)(t)){const e=vn.exec(t);if(e){const[t,r,n]=e,s=Number(r);switch(n){case"nano":case"nanos":return jn(BigInt(r));case"micro":case"micros":return An(BigInt(r));case"milli":case"millis":return Rn(s);case"second":case"seconds":return xn(s);case"minute":case"minutes":return $n(s);case"hour":case"hours":return Tn(s);case"day":case"days":return Ln(s);case"week":case"weeks":return Dn(s)}}}throw new Error("Invalid DurationInput")},Mn={_tag:"Millis",millis:0},In={_tag:"Infinity"},En={[pn]:pn,[j](){return q(this,P(this.value))},[U](t){return Fn(t)&&Gn(this,t)},toString(){return`Duration(${Vn(this)})`},toJSON(){switch(this.value._tag){case"Millis":return{_id:"Duration",_tag:"Millis",millis:this.value.millis};case"Nanos":return{_id:"Duration",_tag:"Nanos",hrtime:Bn(this)};case"Infinity":return{_id:"Duration",_tag:"Infinity"}}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},kn=t=>{const e=Object.create(En);return e.value=b(t)?isNaN(t)||t<=0?Mn:Number.isFinite(t)?Number.isInteger(t)?{_tag:"Millis",millis:t}:{_tag:"Nanos",nanos:BigInt(Math.round(1e6*t))}:In:t<=mn?Mn:{_tag:"Nanos",nanos:t},e},Fn=t=>m(t,pn),Nn=kn(0),Cn=kn(1/0),jn=t=>kn(t),An=t=>kn(t*yn),Rn=t=>kn(t),xn=t=>kn(1e3*t),$n=t=>kn(6e4*t),Tn=t=>kn(36e5*t),Ln=t=>kn(864e5*t),Dn=t=>kn(6048e5*t),Pn=t=>qn(t,{onMillis:t=>t,onNanos:t=>Number(t)/1e6}),Bn=t=>{const e=On(t);switch(e.value._tag){case"Infinity":return[1/0,0];case"Nanos":return[Number(e.value.nanos/_n),Number(e.value.nanos%_n)];case"Millis":return[Math.floor(e.value.millis/1e3),Math.round(e.value.millis%1e3*1e6)]}},qn=t(2,((t,e)=>{const r=On(t);switch(r.value._tag){case"Nanos":return e.onNanos(r.value.nanos);case"Infinity":return e.onMillis(1/0);case"Millis":return e.onMillis(r.value.millis)}})),Un=t(3,((t,e,r)=>{const n=On(t),s=On(e);if("Infinity"===n.value._tag||"Infinity"===s.value._tag)return r.onMillis(Pn(n),Pn(s));if("Nanos"===n.value._tag||"Nanos"===s.value._tag){const t="Nanos"===n.value._tag?n.value.nanos:BigInt(Math.round(1e6*n.value.millis)),e="Nanos"===s.value._tag?s.value.nanos:BigInt(Math.round(1e6*s.value.millis));return r.onNanos(t,e)}return r.onMillis(n.value.millis,s.value.millis)})),Jn=t(2,((t,e)=>Un(t,e,{onMillis:(t,e)=>t<=e,onNanos:(t,e)=>t<=e}))),Wn=t(2,((t,e)=>Un(t,e,{onMillis:(t,e)=>t>=e,onNanos:(t,e)=>t>=e}))),Gn=t(2,((t,e)=>((t,e)=>Un(t,e,{onMillis:(t,e)=>t===e,onNanos:(t,e)=>t===e}))(On(t),On(e)))),Vn=t=>{const e=On(t);if("Infinity"===e.value._tag)return"Infinity";if((t=>{switch(t.value._tag){case"Millis":return 0===t.value.millis;case"Nanos":return t.value.nanos===mn;case"Infinity":return!1}})(e))return"0";const r=(t=>{const e=On(t);if("Infinity"===e.value._tag)return{days:1/0,hours:1/0,minutes:1/0,seconds:1/0,millis:1/0,nanos:1/0};const r=(t=>{const e=On(t);switch(e.value._tag){case"Infinity":throw new Error("Cannot convert infinite duration to nanos");case"Nanos":return e.value.nanos;case"Millis":return BigInt(Math.round(1e6*e.value.millis))}})(e),n=r/wn,s=n/yn,i=s/gn,o=i/gn;return{days:Number(o/Sn),hours:Number(o%Sn),minutes:Number(i%gn),seconds:Number(s%gn),millis:Number(n%yn),nanos:Number(r%wn)}})(e),n=[];return 0!==r.days&&n.push(`${r.days}d`),0!==r.hours&&n.push(`${r.hours}h`),0!==r.minutes&&n.push(`${r.minutes}m`),0!==r.seconds&&n.push(`${r.seconds}s`),0!==r.millis&&n.push(`${r.millis}ms`),0!==r.nanos&&n.push(`${r.nanos}ns`),n.join(" ")},zn=Math.pow(2,5),Hn=zn-1,Yn=zn/2,Kn=zn/4;function Qn(t,e){return e>>>t&Hn}function Zn(t){return 1<<t}function Xn(t,e){return r=t&e-1,r=(r=(858993459&(r-=r>>1&1431655765))+(r>>2&858993459))+(r>>4)&252645135,127&(r+=r>>8)+(r>>16);var r}function ts(t,e,r,n){let s=n;if(!t){const t=n.length;s=new Array(t);for(let e=0;e<t;++e)s[e]=n[e]}return s[e]=r,s}function es(t,e,r){const n=r.length-1;let s=0,i=0,o=r;if(t)s=i=e;else for(o=new Array(n);s<e;)o[i++]=r[s++];for(++s;s<=n;)o[i++]=r[s++];return t&&(o.length=n),o}class rs{_tag="EmptyNode";modify(t,e,r,n,s,i){const o=r(se());return oe(o)?new rs:(++i.value,new is(t,n,s,o))}}function ns(t){return S(t,"EmptyNode")}function ss(t,e){return!ns(t)&&e===t.edit}class is{edit;hash;key;value;_tag="LeafNode";constructor(t,e,r,n){this.edit=t,this.hash=e,this.key=r,this.value=n}modify(t,e,r,n,s,i){if(J(s,this.key)){const e=r(this.value);return e===this.value?this:oe(e)?(--i.value,new rs):ss(this,t)?(this.value=e,this):new is(t,n,s,e)}const o=r(se());return oe(o)?this:(++i.value,hs(t,e,this.hash,this,n,new is(t,n,s,o)))}}class os{edit;hash;children;_tag="CollisionNode";constructor(t,e,r){this.edit=t,this.hash=e,this.children=r}modify(t,e,r,n,s,i){if(n===this.hash){const e=ss(this,t),n=this.updateCollisionList(e,t,this.hash,this.children,r,s,i);return n===this.children?this:n.length>1?new os(t,this.hash,n):n[0]}const o=r(se());return oe(o)?this:(++i.value,hs(t,e,this.hash,this,n,new is(t,n,s,o)))}updateCollisionList(t,e,r,n,s,i,o){const c=n.length;for(let a=0;a<c;++a){const c=n[a];if("key"in c&&J(i,c.key)){const u=c.value,h=s(u);return h===u?n:oe(h)?(--o.value,es(t,a,n)):ts(t,a,new is(e,r,i,h),n)}}const a=s(se());return oe(a)?n:(++o.value,ts(t,c,new is(e,r,i,a),n))}}class cs{edit;mask;children;_tag="IndexedNode";constructor(t,e,r){this.edit=t,this.mask=e,this.children=r}modify(t,e,r,n,s,i){const o=this.mask,c=this.children,a=Qn(e,n),u=Zn(a),h=Xn(o,u),l=o&u,f=ss(this,t);if(!l){const l=(new rs).modify(t,e+5,r,n,s,i);return l?c.length>=Yn?function(t,e,r,n,s){const i=[];let o=n,c=0;for(let t=0;o;++t)1&o&&(i[t]=s[c++]),o>>>=1;return i[e]=r,new as(t,c+1,i)}(t,a,l,o,c):new cs(t,o|u,function(t,e,r,n){const s=n.length;if(t){let t=s;for(;t>=e;)n[t--]=n[t];return n[e]=r,n}let i=0,o=0;const c=new Array(s+1);for(;i<e;)c[o++]=n[i++];for(c[e]=r;i<s;)c[++o]=n[i++];return c}(f,h,l,c)):this}const b=c[h],d=b.modify(t,e+5,r,n,s,i);if(b===d)return this;let p,m=o;if(ns(d)){if(m&=~u,!m)return new rs;if(c.length<=2&&(ns(S=c[1^h])||"LeafNode"===S._tag||"CollisionNode"===S._tag))return c[1^h];p=es(f,h,c)}else p=ts(f,h,d,c);var S;return f?(this.mask=m,this.children=p,this):new cs(t,m,p)}}class as{edit;size;children;_tag="ArrayNode";constructor(t,e,r){this.edit=t,this.size=e,this.children=r}modify(t,e,r,n,s,i){let o=this.size;const c=this.children,a=Qn(e,n),u=c[a],h=(u||new rs).modify(t,e+5,r,n,s,i);if(u===h)return this;const l=ss(this,t);let f;if(ns(u)&&!ns(h))++o,f=ts(l,a,h,c);else if(!ns(u)&&ns(h)){if(--o,o<=Kn)return function(t,e,r,n){const s=new Array(e-1);let i=0,o=0;for(let t=0,e=n.length;t<e;++t)if(t!==r){const e=n[t];e&&!ns(e)&&(s[i++]=e,o|=1<<t)}return new cs(t,o,s)}(t,o,a,c);f=ts(l,a,new rs,c)}else f=ts(l,a,h,c);return l?(this.size=o,this.children=f,this):new as(t,o,f)}}function us(t,e,r,n,s,i){if(r===s)return new os(t,r,[i,n]);const o=Qn(e,r),c=Qn(e,s);if(o===c)return e=>new cs(t,Zn(o)|Zn(c),[e]);{const e=o<c?[n,i]:[i,n];return new cs(t,Zn(o)|Zn(c),e)}}function hs(t,e,r,n,s,i){let o,c=e;for(;;){const e=us(t,c,r,n,s,i);if("function"!=typeof e){let t=e;for(;null!=o;)t=o.value(t),o=o.previous;return t}o={value:e,previous:o},c+=5}}const ls="effect/HashMap",fs=Symbol.for(ls),bs={[fs]:fs,[Symbol.iterator](){return new ps(this,((t,e)=>[t,e]))},[j](){let t=A(ls);for(const e of this)t^=c(A(e[0]),x(A(e[1])));return q(this,t)},[U](t){if(_s(t)){if(t._size!==this._size)return!1;for(const e of this){const r=c(t,Os(e[0],A(e[0])));if(oe(r))return!1;if(!J(e[1],r.value))return!1}return!0}return!1},toString(){return Y(this.toJSON())},toJSON(){return{_id:"HashMap",values:Array.from(this).map(H)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},ds=(t,e,r,n)=>{const s=Object.create(bs);return s._editable=t,s._edit=e,s._root=r,s._size=n,s};class ps{map;f;v;constructor(t,e){this.map=t,this.f=e,this.v=Ss(this.map._root,this.f,void 0)}next(){if(oe(this.v))return{done:!0,value:void 0};const t=this.v.value;return this.v=ms(t.cont),{done:!1,value:t.value}}[Symbol.iterator](){return new ps(this.map,this.f)}}const ms=t=>t?gs(t[0],t[1],t[2],t[3],t[4]):se(),Ss=(t,e,r)=>{switch(t._tag){case"LeafNode":return ce(t.value)?ie({value:e(t.key,t.value.value),cont:r}):ms(r);case"CollisionNode":case"ArrayNode":case"IndexedNode":{const n=t.children;return gs(n.length,n,0,e,r)}default:return ms(r)}},gs=(t,e,r,n,s)=>{for(;r<t;){const i=e[r++];if(i&&!ns(i))return Ss(i,n,[t,e,r,n,s])}return ms(s)},ys=ds(!1,0,new rs,0),ws=()=>ys,_s=t=>m(t,fs),vs=t(2,((t,e)=>Os(t,e,A(e)))),Os=t(3,((t,e,r)=>{let n=t._root,s=0;for(;;)switch(n._tag){case"LeafNode":return J(e,n.key)?n.value:se();case"CollisionNode":if(r===n.hash){const t=n.children;for(let r=0,n=t.length;r<n;++r){const n=t[r];if("key"in n&&J(e,n.key))return n.value}}return se();case"IndexedNode":{const t=Zn(Qn(s,r));if(n.mask&t){n=n.children[Xn(n.mask,t)],s+=5;break}return se()}case"ArrayNode":if(n=n.children[Qn(s,r)],n){s+=5;break}return se();default:return se()}})),Ms=t(2,((t,e)=>ce(Os(t,e,A(e))))),Is=t(3,((t,e,r)=>Cs(t,e,(()=>ie(r))))),Es=t(3,((t,e,r)=>t._editable?(t._root=e,t._size=r,t):e===t._root?t:ds(t._editable,t._edit,e,r))),ks=t=>new ps(t,(t=>t)),Fs=t=>t._size,Ns=t=>ds(!0,t._edit+1,t._root,t._size),Cs=t(3,((t,e,r)=>js(t,e,A(e),r))),js=t(4,((t,e,r,n)=>{const s={value:t._size},i=t._root.modify(t._editable?t._edit:NaN,0,n,r,e,s);return c(t,Es(i,s.value))})),As=t(2,((t,e)=>Cs(t,e,se))),Rs=t(2,((t,e)=>$s(t,ws(),((t,r,n)=>Is(t,n,e(r,n)))))),xs=t(2,((t,e)=>$s(t,void 0,((t,r,n)=>e(r,n))))),$s=t(3,((t,e,r)=>{const n=t._root;if("LeafNode"===n._tag)return ce(n.value)?r(e,n.value.value,n.key):e;if("EmptyNode"===n._tag)return e;const s=[n.children];let i;for(;i=s.pop();)for(let t=0,n=i.length;t<n;){const n=i[t++];n&&!ns(n)&&("LeafNode"===n._tag?ce(n.value)&&(e=r(e,n.value.value,n.key)):s.push(n.children))}return e})),Ts="effect/HashSet",Ls=Symbol.for(Ts),Ds={[Ls]:Ls,[Symbol.iterator](){return ks(this._keyMap)},[j](){return q(this,x(A(this._keyMap))(A(Ts)))},[U](t){return!!Bs(t)&&Fs(this._keyMap)===Fs(t._keyMap)&&J(this._keyMap,t._keyMap)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"HashSet",values:Array.from(this).map(H)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},Ps=t=>{const e=Object.create(Ds);return e._keyMap=t,e},Bs=t=>m(t,Ls),qs=Ps(ws()),Us=()=>qs,Js=t(2,((t,e)=>Ms(t._keyMap,e))),Ws=t=>Ps(Ns(t._keyMap)),Gs=t=>(t._keyMap._editable=!1,t),Vs=t(2,((t,e)=>{const r=Ws(t);return e(r),Gs(r)})),zs=t(2,((t,e)=>t._keyMap._editable?(Is(e,!0)(t._keyMap),t):Ps(Is(e,!0)(t._keyMap)))),Hs=t(2,((t,e)=>t._keyMap._editable?(As(e)(t._keyMap),t):Ps(As(e)(t._keyMap)))),Ys=t(2,((t,e)=>Vs(t,(t=>{for(const r of e)Hs(t,r)})))),Ks=t(2,((t,e)=>Vs(Us(),(r=>{Qs(t,(t=>zs(r,t)));for(const t of e)zs(r,t)})))),Qs=t(2,((t,e)=>xs(t._keyMap,((t,r)=>e(r))))),Zs=t(3,((t,e,r)=>$s(t._keyMap,e,((t,e,n)=>r(t,n))))),Xs=Us,ti=(...t)=>{const e=Ws(Us());for(const r of t)zs(e,r);return Gs(e)},ei=Js,ri=t=>Fs(t._keyMap),ni=zs,si=Hs,ii=Ys,oi=Ks,ci=Zs,ai=Symbol.for("effect/MutableRef"),ui={[ai]:ai,toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableRef",current:H(this.current)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},hi=t=>{const e=Object.create(ui);return e.current=t,e},li=t(3,((t,e,r)=>!!J(e,t.current)&&(t.current=r,!0))),fi=t=>t.current,bi=t(2,((t,e)=>(t.current=e,t))),di="effect/FiberId",pi=Symbol.for(di),mi="None",Si="Runtime",gi="Composite",yi=D(`${di}-${mi}`);let wi=class{[pi]=pi;_tag=mi;id=-1;startTimeMillis=-1;[j](){return yi}[U](t){return Mi(t)&&t._tag===mi}toString(){return Y(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag}}[z](){return this.toJSON()}};class _i{id;startTimeMillis;[pi]=pi;_tag=Si;constructor(t,e){this.id=t,this.startTimeMillis=e}[j](){return q(this,D(`${di}-${this._tag}-${this.id}-${this.startTimeMillis}`))}[U](t){return Mi(t)&&t._tag===Si&&this.id===t.id&&this.startTimeMillis===t.startTimeMillis}toString(){return Y(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,id:this.id,startTimeMillis:this.startTimeMillis}}[z](){return this.toJSON()}}class vi{left;right;[pi]=pi;_tag=gi;constructor(t,e){this.left=t,this.right=e}_hash;[j](){return c(D(`${di}-${this._tag}`),x(A(this.left)),x(A(this.right)),q(this))}[U](t){return Mi(t)&&t._tag===gi&&J(this.left,t.left)&&J(this.right,t.right)}toString(){return Y(this.toJSON())}toJSON(){return{_id:"FiberId",_tag:this._tag,left:H(this.left),right:H(this.right)}}[z](){return this.toJSON()}}const Oi=new wi,Mi=t=>m(t,pi),Ii=t(2,((t,e)=>t._tag===mi?e:e._tag===mi?t:new vi(t,e))),Ei=t=>{switch(t._tag){case mi:return Xs();case Si:return ti(t.id);case gi:return c(Ei(t.left),oi(Ei(t.right)))}},ki=f(Symbol.for("effect/Fiber/Id/_fiberCounter"),(()=>hi(0))),Fi=t=>Array.from(Ei(t)).map((t=>`#${t}`)).join(","),Ni=Oi,Ci=Ii,ji=t=>c(t,ci(Oi,((t,e)=>Ii(e)(t)))),Ai=Fi,Ri=()=>{const t=fi(ki);return c(ki,bi(t+1)),new _i(t,Date.now())},xi=ws,$i=vs,Ti=Is,Li=ks,Di=Cs,Pi=Rs,Bi=$s,qi=Symbol.for("effect/List"),Ui=t=>_e(t),Ji=(()=>u(tr(J),Ui))(),Wi={[qi]:qi,_tag:"Cons",toString(){return Y(this.toJSON())},toJSON(){return{_id:"List",_tag:"Cons",values:Ui(this).map(H)}},[z](){return this.toJSON()},[U](t){return Yi(t)&&this._tag===t._tag&&Ji(this,t)},[j](){return q(this,B(Ui(this)))},[Symbol.iterator](){let t=!1,e=this;return{next(){if(t)return this.return();if("Nil"===e._tag)return t=!0,this.return();const r=e.head;return e=e.tail,{done:t,value:r}},return:e=>(t||(t=!0),{done:!0,value:e})}},pipe(){return rt(this,arguments)}},Gi=(t,e)=>{const r=Object.create(Wi);return r.head=t,r.tail=e,r},Vi=D("Nil"),zi={[qi]:qi,_tag:"Nil",toString(){return Y(this.toJSON())},toJSON:()=>({_id:"List",_tag:"Nil"}),[z](){return this.toJSON()},[j]:()=>Vi,[U](t){return Yi(t)&&this._tag===t._tag},[Symbol.iterator]:()=>({next:()=>({done:!0,value:void 0})}),pipe(){return rt(this,arguments)}},Hi=Object.create(zi),Yi=t=>m(t,qi),Ki=t=>"Nil"===t._tag,Qi=(t,e)=>Gi(t,e),Zi=()=>Hi,Xi=t=>Gi(t,Hi),to=t(2,((t,e)=>ro(e,t))),eo=t(2,((t,e)=>Qi(e,t))),ro=t(2,((t,e)=>{if(Ki(t))return e;if(Ki(e))return t;{const r=Gi(e.head,t);let n=r,s=e.tail;for(;!Ki(s);){const e=Gi(s.head,t);n.tail=e,n=e,s=s.tail}return r}})),no=t(3,((t,e,r)=>{let n=e,s=t;for(;!Ki(s);)n=r(n,s.head),s=s.tail;return n})),so=t=>{let e=Zi(),r=t;for(;!Ki(r);)e=eo(e,r.head),r=r.tail;return e},io=function(){function t(t){t&&Object.assign(this,t)}return t.prototype=It,t}(),oo=t=>Object.assign(Object.create(It),t),co=Symbol.for("effect/DifferContextPatch");function ao(t){return t}const uo={...io.prototype,[co]:{_Value:ao,_Patch:ao}},ho=Object.create(Object.assign(Object.create(uo),{_tag:"Empty"})),lo=()=>ho,fo=Object.assign(Object.create(uo),{_tag:"AndThen"}),bo=Object.assign(Object.create(uo),{_tag:"AddService"}),po=(t,e)=>{const r=Object.create(bo);return r.key=t,r.service=e,r},mo=Object.assign(Object.create(uo),{_tag:"RemoveService"}),So=t=>{const e=Object.create(mo);return e.key=t,e},go=Object.assign(Object.create(uo),{_tag:"UpdateService"}),yo=(t,e)=>{const r=Object.create(go);return r.key=t,r.update=e,r},wo=t(2,((t,e)=>((t,e)=>{const r=Object.create(fo);return r.first=t,r.second=e,r})(t,e))),_o=t(2,((t,e)=>{if("Empty"===t._tag)return e;let r=!1,n=Ur(t);const s=new Map(e.unsafeMap);for(;on(n);){const t=un(n),e=bn(n);switch(t._tag){case"Empty":n=e;break;case"AddService":s.set(t.key,t.service),n=e;break;case"AndThen":n=Zr(Zr(e,t.second),t.first);break;case"RemoveService":s.delete(t.key),n=e;break;case"UpdateService":s.set(t.key,t.update(s.get(t.key))),r=!0,n=e}}if(!r)return fr(s);const i=new Map;for(const[t]of e.unsafeMap)s.has(t)&&(i.set(t,s.get(t)),s.delete(t));for(const[t,e]of s)i.set(t,e);return fr(i)})),vo=Symbol.for("effect/DifferHashSetPatch");function Oo(t){return t}const Mo={...io.prototype,[vo]:{_Value:Oo,_Key:Oo,_Patch:Oo}},Io=Object.create(Object.assign(Object.create(Mo),{_tag:"Empty"})),Eo=()=>Io,ko=Object.assign(Object.create(Mo),{_tag:"AndThen"}),Fo=Object.assign(Object.create(Mo),{_tag:"Add"}),No=t=>{const e=Object.create(Fo);return e.value=t,e},Co=Object.assign(Object.create(Mo),{_tag:"Remove"}),jo=t(2,((t,e)=>((t,e)=>{const r=Object.create(ko);return r.first=t,r.second=e,r})(t,e))),Ao=t(2,((t,e)=>{if("Empty"===t._tag)return e;let r=e,n=Ur(t);for(;on(n);){const t=un(n),e=bn(n);switch(t._tag){case"Empty":n=e;break;case"AndThen":n=Zr(t.first)(Zr(t.second)(e));break;case"Add":r=ni(t.value)(r),n=e;break;case"Remove":r=si(t.value)(r),n=e}}return r})),Ro=Symbol.for("effect/DifferReadonlyArrayPatch");function xo(t){return t}const $o={...io.prototype,[Ro]:{_Value:xo,_Patch:xo}},To=Object.create(Object.assign(Object.create($o),{_tag:"Empty"})),Lo=()=>To,Do=Object.assign(Object.create($o),{_tag:"AndThen"}),Po=Object.assign(Object.create($o),{_tag:"Append"}),Bo=Object.assign(Object.create($o),{_tag:"Slice"}),qo=Object.assign(Object.create($o),{_tag:"Update"}),Uo=(t,e)=>{const r=Object.create(qo);return r.index=t,r.patch=e,r},Jo=t(2,((t,e)=>((t,e)=>{const r=Object.create(Do);return r.first=t,r.second=e,r})(t,e))),Wo=t(3,((t,e,r)=>{if("Empty"===t._tag)return e;let n=e.slice(),s=ze(t);for(;Ie(s);){const t=je(s),e=Re(s);switch(t._tag){case"Empty":s=e;break;case"AndThen":e.unshift(t.first,t.second),s=e;break;case"Append":for(const e of t.values)n.push(e);s=e;break;case"Slice":n=n.slice(t.from,t.until),s=e;break;case"Update":n[t.index]=r.patch(t.patch,n[t.index]),s=e}}return n})),Go=Symbol.for("effect/Differ"),Vo={[Go]:{_P:e,_V:e},pipe(){return rt(this,arguments)}},zo=t=>{const e=Object.create(Vo);return e.empty=t.empty,e.diff=t.diff,e.combine=t.combine,e.patch=t.patch,e},Ho=()=>Yo(((t,e)=>e)),Yo=t=>zo({empty:e,combine:(t,r)=>t===e?r:r===e?t:e=>r(t(e)),diff:(t,n)=>J(t,n)?e:r(n),patch:(e,r)=>t(r,e(r))}),Ko=255,Qo=t=>t&Ko,Zo=t=>t>>8&Ko,Xo=(t,e)=>(t&Ko)+((e&t&Ko)<<8),tc=Xo(0,0),ec=t(2,((t,e)=>Xo(Qo(t)&~e,Zo(t)))),rc=t(2,((t,e)=>t|e)),nc=t(2,((t,e)=>t|e)),sc=t=>ic(t)&&!hc(t),ic=t=>oc(t,1),oc=t(2,((t,e)=>!!(t&e))),cc=(...t)=>t.reduce(((t,e)=>t|e),0),ac=cc(0),uc=t=>oc(t,4),hc=t=>oc(t,16),lc=t(2,((t,e)=>Xo(t^e,e))),fc=t(2,((t,e)=>t&(~Qo(e)>>>0&Ko|Zo(e))|Qo(e)&Zo(e))),bc=zo({empty:tc,diff:(t,e)=>lc(t,e),combine:(t,e)=>rc(e)(t),patch:(t,e)=>fc(e,t)}),dc=t=>Xo(t,0),pc=ec,mc=(t,e)=>({_tag:"Par",left:t,right:e}),Sc=(t,e)=>({_tag:"Seq",left:t,right:e}),gc=t=>{let e=t,r=Oc(),n=Zi(),s=Zi();for(;;)switch(e._tag){case"Empty":if(Ki(n))return[r,s];e=n.head,n=n.tail;break;case"Par":n=Qi(e.right,n),e=e.left;break;case"Seq":{const t=e.left,r=e.right;switch(t._tag){case"Empty":e=r;break;case"Par":{const n=t.right;e=mc(Sc(t.left,r),Sc(n,r));break}case"Seq":e=Sc(t.left,Sc(t.right,r));break;case"Single":e=t,s=Qi(r,s)}break}case"Single":if(r=Mc(r,e),Ki(n))return[r,s];e=n.head,n=n.tail}throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues")},yc=(t,e)=>{if(Ki(t))return Xi(Fc(e));if(Ec(e))return t;const r=xc(t.head),n=kc(e);return 1===r.length&&1===n.length&&J(r[0],n[0])?Qi(Rc(t.head,Fc(e)),t.tail):Qi(Fc(e),t)},wc=Symbol.for("effect/RequestBlock/RequestBlockParallel"),_c={_R:t=>t};class vc{map;[wc]=_c;constructor(t){this.map=t}}const Oc=()=>new vc(xi()),Mc=(t,e)=>new vc(Di(t.map,e.dataSource,(t=>le(de(t,Qr(e.blockedRequest)),(()=>Ur(e.blockedRequest)))))),Ic=(t,e)=>new vc(Bi(t.map,e.map,((t,e,r)=>Ti(t,r,ae($i(t,r),{onNone:()=>e,onSome:t=>en(e,t)}))))),Ec=t=>(t=>t&&ns(t._root))(t.map),kc=t=>Array.from(Li(t.map)),Fc=t=>Ac(Pi(t.map,(t=>Ur(t)))),Nc=Symbol.for("effect/RequestBlock/RequestBlockSequential"),Cc={_R:t=>t};class jc{map;[Nc]=Cc;constructor(t){this.map=t}}const Ac=t=>new jc(t),Rc=(t,e)=>new jc(Bi(e.map,t.map,((t,e,r)=>Ti(t,r,ae($i(t,r),{onNone:()=>Br(),onSome:t=>en(t,e)}))))),xc=t=>Array.from(Li(t.map)),$c="Die",Tc="Empty",Lc="Fail",Dc="Interrupt",Pc="Parallel",Bc="Sequential",qc="effect/Cause",Uc=Symbol.for(qc),Jc={[Uc]:{_E:t=>t},[j](){return c(A(qc),x(A(aa(this))),q(this))},[U](t){return Kc(t)&&ca(this,t)},pipe(){return rt(this,arguments)},toJSON(){switch(this._tag){case"Empty":return{_id:"Cause",_tag:this._tag};case"Die":return{_id:"Cause",_tag:this._tag,defect:H(this.defect)};case"Interrupt":return{_id:"Cause",_tag:this._tag,fiberId:this.fiberId.toJSON()};case"Fail":return{_id:"Cause",_tag:this._tag,failure:H(this.error)};case"Sequential":case"Parallel":return{_id:"Cause",_tag:this._tag,left:H(this.left),right:H(this.right)}}},toString(){return ga(this)},[z](){return this.toJSON()}},Wc=(()=>{const t=Object.create(Jc);return t._tag=Tc,t})(),Gc=t=>{const e=Object.create(Jc);return e._tag=Lc,e.error=t,e},Vc=t=>{const e=Object.create(Jc);return e._tag=$c,e.defect=t,e},zc=t=>{const e=Object.create(Jc);return e._tag=Dc,e.fiberId=t,e},Hc=(t,e)=>{const r=Object.create(Jc);return r._tag=Pc,r.left=t,r.right=e,r},Yc=(t,e)=>{const r=Object.create(Jc);return r._tag=Bc,r.left=t,r.right=e,r},Kc=t=>m(t,Uc),Qc=t=>t._tag===$c,Zc=t=>ce(na(t)),Xc=t=>Sa(void 0,fa)(t),ta=t=>ma(t,Xs(),((t,e)=>e._tag===Dc?ie(c(t,ni(e.fiberId))):se())),ea=t=>{const e=(t=>ha(t,(t=>t._tag===Lc?ie(t.error):se())))(t);switch(e._tag){case"None":return Vt(t);case"Some":return zt(e.value)}},ra=t=>pa(t,{onEmpty:ie(Wc),onFail:de(Gc),onDie:t=>ie(Vc(t)),onInterrupt:t=>ie(zc(t)),onSequential:Se(Yc),onParallel:Se(Hc)}),na=t=>ha(t,(t=>t._tag===Dc?ie(t.fiberId):se())),sa=t=>pa(t,{onEmpty:Wc,onFail:()=>Wc,onDie:Vc,onInterrupt:zc,onSequential:Yc,onParallel:Hc}),ia=t(2,((t,e)=>oa(t,(t=>Gc(e(t)))))),oa=t(2,((t,e)=>pa(t,{onEmpty:Wc,onFail:t=>e(t),onDie:t=>Vc(t),onInterrupt:t=>zc(t),onSequential:(t,e)=>Yc(t,e),onParallel:(t,e)=>Hc(t,e)}))),ca=(t,e)=>{let r=Ur(t),n=Ur(e);for(;on(r)&&on(n);){const[t,e]=c(un(r),ma([Xs(),Br()],(([t,e],r)=>{const[n,s]=la(r);return ie([c(t,oi(n)),c(e,en(s))])}))),[s,i]=c(un(n),ma([Xs(),Br()],(([t,e],r)=>{const[n,s]=la(r);return ie([c(t,oi(n)),c(e,en(s))])})));if(!J(t,s))return!1;r=e,n=i}return!0},aa=t=>ua(Ur(t),Br()),ua=(t,e)=>{for(;;){const[r,n]=c(t,Ze([Xs(),Br()],(([t,e],r)=>{const[n,s]=la(r);return[c(t,oi(n)),c(e,en(s))]}))),s=ri(r)>0?c(e,Zr(r)):e;if(sn(n))return Vr(s);t=n,e=s}throw new Error(w("Cause.flattenCauseLoop"))},ha=t(2,((t,e)=>{const r=[t];for(;r.length>0;){const t=r.pop(),n=e(t);switch(n._tag){case"None":switch(t._tag){case Bc:case Pc:r.push(t.right),r.push(t.left)}break;case"Some":return n}}return se()})),la=t=>{let e=t;const r=[];let n=Xs(),s=Br();for(;void 0!==e;)switch(e._tag){case Tc:if(0===r.length)return[n,s];e=r.pop();break;case Lc:if(n=ni(n,qr(e._tag,e.error)),0===r.length)return[n,s];e=r.pop();break;case $c:if(n=ni(n,qr(e._tag,e.defect)),0===r.length)return[n,s];e=r.pop();break;case Dc:if(n=ni(n,qr(e._tag,e.fiberId)),0===r.length)return[n,s];e=r.pop();break;case Bc:switch(e.left._tag){case Tc:e=e.right;break;case Bc:e=Yc(e.left.left,Yc(e.left.right,e.right));break;case Pc:e=Hc(Yc(e.left.left,e.right),Yc(e.left.right,e.right));break;default:s=Zr(s,e.right),e=e.left}break;case Pc:r.push(e.right),e=e.left}throw new Error(w("Cause.evaluateCauseLoop"))},fa={emptyCase:n,failCase:s,dieCase:s,interruptCase:n,sequentialCase:(t,e,r)=>e&&r,parallelCase:(t,e,r)=>e&&r},ba="SequentialCase",da="ParallelCase",pa=t(2,((t,{onDie:e,onEmpty:r,onFail:n,onInterrupt:s,onParallel:i,onSequential:o})=>Sa(t,void 0,{emptyCase:()=>r,failCase:(t,e)=>n(e),dieCase:(t,r)=>e(r),interruptCase:(t,e)=>s(e),sequentialCase:(t,e,r)=>o(e,r),parallelCase:(t,e,r)=>i(e,r)}))),ma=t(3,((t,e,r)=>{let n=e,s=t;const i=[];for(;void 0!==s;){const t=r(n,s);switch(n=ce(t)?t.value:n,s._tag){case Bc:case Pc:i.push(s.right),s=s.left;break;default:s=void 0}void 0===s&&i.length>0&&(s=i.pop())}return n})),Sa=t(3,((t,e,r)=>{const n=[t],s=[];for(;n.length>0;){const t=n.pop();switch(t._tag){case Tc:s.push(Vt(r.emptyCase(e)));break;case Lc:s.push(Vt(r.failCase(e,t.error)));break;case $c:s.push(Vt(r.dieCase(e,t.defect)));break;case Dc:s.push(Vt(r.interruptCase(e,t.fiberId)));break;case Bc:n.push(t.right),n.push(t.left),s.push(zt({_tag:ba}));break;case Pc:n.push(t.right),n.push(t.left),s.push(zt({_tag:da}))}}const i=[];for(;s.length>0;){const t=s.pop();switch(t._tag){case"Left":switch(t.left._tag){case ba:{const t=i.pop(),n=i.pop(),s=r.sequentialCase(e,t,n);i.push(s);break}case da:{const t=i.pop(),n=i.pop(),s=r.parallelCase(e,t,n);i.push(s);break}}break;case"Right":i.push(t.right)}}if(0===i.length)throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");return i.pop()})),ga=(t,e)=>Xc(t)?"All fibers interrupted without errors.":Ea(t).map((function(t){return!0!==e?.renderErrorCause||void 0===t.cause?t.stack:`${t.stack} {\n${ya(t.cause," ")}\n}`})).join("\n"),ya=(t,e)=>{const r=t.stack.split("\n");let n=`${e}[cause]: ${r[0]}`;for(let t=1,s=r.length;t<s;t++)n+=`\n${e}${r[t]}`;return t.cause&&(n+=` {\n${ya(t.cause,`${e} `)}\n${e}}`),n},wa=t=>{const e="object"==typeof t&&null!==t,r=Error.stackTraceLimit;Error.stackTraceLimit=1;const n=new Error(_a(t),e&&"cause"in t&&void 0!==t.cause?{cause:wa(t.cause)}:void 0);return Error.stackTraceLimit=r,""===n.message&&(n.message="An error has occurred"),Error.stackTraceLimit=r,n.name=t instanceof Error?t.name:"Error",e&&(Ia in t&&(n.span=t[Ia]),Object.keys(t).forEach((e=>{e in n||(n[e]=t[e])}))),n.stack=Ma(`${n.name}: ${n.message}`,t instanceof Error&&t.stack?t.stack:"",n.span),n},_a=t=>{if("string"==typeof t)return t;if("object"==typeof t&&null!==t&&t instanceof Error)return t.message;try{if(m(t,"toString")&&d(t.toString)&&t.toString!==Object.prototype.toString&&t.toString!==globalThis.Array.prototype.toString)return t.toString()}catch{}return Q(t)},va=/\((.*)\)/g,Oa=f("effect/Tracer/spanToTrace",(()=>new WeakMap)),Ma=(t,e,r)=>{const n=[t],s=e.startsWith(t)?e.slice(t.length).split("\n"):e.split("\n");for(let t=1;t<s.length;t++)if(s[t].includes(" at new BaseEffectError")||s[t].includes(" at new YieldableError"))t++;else{if(s[t].includes("Generator.next"))break;if(s[t].includes("effect_internal_function"))break;n.push(s[t].replace(/at .*effect_instruction_i.*\((.*)\)/,"at $1").replace(/EffectPrimitive\.\w+/,"<anonymous>"))}if(r){let t=r,e=0;for(;t&&"Span"===t._tag&&e<10;){const r=Oa.get(t);if("function"==typeof r){const e=r();if("string"==typeof e){const r=e.matchAll(va);let s=!1;for(const[,e]of r)s=!0,n.push(` at ${t.name} (${e})`);s||n.push(` at ${t.name} (${e.replace(/^at /,"")})`)}else n.push(` at ${t.name}`)}else n.push(` at ${t.name}`);t=be(t.parent),e++}}return n.join("\n")},Ia=Symbol.for("effect/SpanAnnotation"),Ea=t=>Sa(t,void 0,{emptyCase:()=>[],dieCase:(t,e)=>[wa(e)],failCase:(t,e)=>[wa(e)],interruptCase:()=>[],parallelCase:(t,e,r)=>[...e,...r],sequentialCase:(t,e,r)=>[...e,...r]}),ka="Pending",Fa="Done",Na=Symbol.for("effect/Deferred"),Ca={_E:t=>t,_A:t=>t},ja=t=>({_tag:Fa,effect:t});class Aa{self;called=!1;constructor(t){this.self=t}next(t){return this.called?{value:t,done:!0}:(this.called=!0,{value:this.self,done:!1})}return(t){return{value:t,done:!0}}throw(t){throw t}[Symbol.iterator](){return new Aa(this.self)}}const Ra=(t,e)=>{const r=new Ta("Blocked");return r.effect_instruction_i0=t,r.effect_instruction_i1=e,r},xa=Symbol.for("effect/Effect");class $a{patch;op;_op=St;constructor(t,e){this.patch=t,this.op=e}}class Ta{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[xa]=Ot;constructor(t){this._op=t}[U](t){return this===t}[j](){return q(this,R(this))}pipe(){return rt(this,arguments)}toJSON(){return{_id:"Effect",_op:this._op,effect_instruction_i0:H(this.effect_instruction_i0),effect_instruction_i1:H(this.effect_instruction_i1),effect_instruction_i2:H(this.effect_instruction_i2)}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new Aa(new I(this))}}class La{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[xa]=Ot;constructor(t){this._op=t,this._tag=t}[U](t){return Dh(t)&&"Failure"===t._op&&J(this.effect_instruction_i0,t.effect_instruction_i0)}[j](){return c(D(this._tag),x(A(this.effect_instruction_i0)),q(this))}get cause(){return this.effect_instruction_i0}pipe(){return rt(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,cause:this.cause.toJSON()}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new Aa(new I(this))}}class Da{_op;effect_instruction_i0=void 0;effect_instruction_i1=void 0;effect_instruction_i2=void 0;trace=void 0;[xa]=Ot;constructor(t){this._op=t,this._tag=t}[U](t){return Dh(t)&&"Success"===t._op&&J(this.effect_instruction_i0,t.effect_instruction_i0)}[j](){return c(D(this._tag),x(A(this.effect_instruction_i0)),q(this))}get value(){return this.effect_instruction_i0}pipe(){return rt(this,arguments)}toJSON(){return{_id:"Exit",_tag:this._op,value:H(this.value)}}toString(){return Y(this.toJSON())}[z](){return this.toJSON()}[Symbol.iterator](){return new Aa(new I(this))}}const Pa=t=>m(t,xa),Ba=t=>{const e=new Ta(pt);return e.effect_instruction_i0=t,e},qa=t(3,((t,e,r)=>ju((n=>au(t,(t=>au(eu(ku((()=>n(e(t))))),(e=>ku((()=>r(t,e))).pipe(fu({onFailure:t=>{switch(e._tag){case it:return su(Yc(e.effect_instruction_i0,t));case ut:return su(t)}},onSuccess:()=>e})))))))))),Ua=t(2,((t,e)=>au(t,(()=>Eu(e))))),Ja=t=>Ua(t,void 0),Wa=function(){const t=new Ta(st);switch(arguments.length){case 2:t.effect_instruction_i0=arguments[0],t.commit=arguments[1];break;case 3:t.effect_instruction_i0=arguments[0],t.effect_instruction_i1=arguments[1],t.commit=arguments[2];break;case 4:t.effect_instruction_i0=arguments[0],t.effect_instruction_i1=arguments[1],t.effect_instruction_i2=arguments[2],t.commit=arguments[3];break;default:throw new Error(w("you're not supposed to end up here"))}return t},Ga=(t,e=Ni)=>{const r=new Ta(nt);let n;return r.effect_instruction_i0=e=>{n=t(e)},r.effect_instruction_i1=e,Mu(r,(()=>Pa(n)?n:Au))},Va=(t,e=Ni)=>ku((()=>Ga(t,e))),za=(t,e=Ni)=>Wa(t,(function(){let t,r;function n(e){t?t(e):void 0===r&&(r=e)}const s=new Ta(nt);let i,o;return s.effect_instruction_i0=e=>{t=e,r&&e(r)},s.effect_instruction_i1=e,1!==this.effect_instruction_i0.length?(o=new AbortController,i=N((()=>this.effect_instruction_i0(n,o.signal)))):i=N((()=>this.effect_instruction_i0(n))),i||o?Mu(s,(()=>(o&&o.abort(),i??Au))):s})),Ha=t(2,((t,e)=>{const r=new Ta(ot);return r.effect_instruction_i0=t,r.effect_instruction_i1=e,r})),Ya=t(2,((t,e)=>bu(t,{onFailure:e,onSuccess:Eu}))),Ka=Symbol.for("effect/OriginalAnnotation"),Qa=(t,e)=>ce(e)?new Proxy(t,{has:(t,e)=>e===Ia||e===Ka||e in t,get:(r,n)=>n===Ia?e.value:n===Ka?t:r[n]}):t,Za=t=>p(t)&&!(Ia in t)?Ba((e=>su(Vc(Qa(t,ml(e)))))):su(Vc(t)),Xa=t=>iu((()=>Vc(new Ah(t)))),tu=t=>bu(t,{onFailure:t=>Eu(zt(t)),onSuccess:t=>Eu(Vt(t))}),eu=t=>lu(t,{onFailure:Jh,onSuccess:zh}),ru=t=>p(t)&&!(Ia in t)?Ba((e=>su(Gc(Qa(t,ml(e)))))):su(Gc(t)),nu=t=>au(Fu(t),ru),su=t=>{const e=new La(it);return e.effect_instruction_i0=t,e},iu=t=>au(Fu(t),su),ou=Ba((t=>Eu(t.id()))),cu=t=>Ba((e=>t(e.id()))),au=t(2,((t,e)=>{const r=new Ta(ct);return r.effect_instruction_i0=t,r.effect_instruction_i1=e,r})),uu=t=>{const e=new Ta("OnStep");return e.effect_instruction_i0=t,e},hu=t=>au(t,e),lu=t(2,((t,e)=>fu(t,{onFailure:t=>Eu(e.onFailure(t)),onSuccess:t=>Eu(e.onSuccess(t))}))),fu=t(2,((t,e)=>{const r=new Ta(at);return r.effect_instruction_i0=t,r.effect_instruction_i1=e.onFailure,r.effect_instruction_i2=e.onSuccess,r})),bu=t(2,((t,e)=>fu(t,{onFailure:t=>{const r=(t=>Vr(ma(t,Br(),((t,e)=>e._tag===$c?ie(c(t,Zr(e.defect))):se()))))(t);if(r.length>0)return su((t=>pa(t,{onEmpty:Wc,onFail:Vc,onDie:Vc,onInterrupt:zc,onSequential:Yc,onParallel:Hc}))(t));const n=(t=>Vr(ma(t,Br(),((t,e)=>e._tag===Lc?ie(c(t,Zr(e.error))):se()))))(t);return n.length>0?e.onFailure(an(n)):su(t)},onSuccess:e.onSuccess}))),du=t(2,((t,e)=>ku((()=>{const r=_e(t),n=ye(r.length);let s=0;return Ua(xu({while:()=>s<r.length,body:()=>e(r[s],s),step:t=>{n[s++]=t}}),n)})))),pu=t(2,((t,e)=>ku((()=>{const r=_e(t);let n=0;return xu({while:()=>n<r.length,body:()=>e(r[n],n),step:()=>{n++}})})))),mu=au(ou,(t=>Su(t))),Su=t=>su(zc(t)),gu=t=>{const e=new Ta(ft);return e.effect_instruction_i0=Xo(r=1,r),e.effect_instruction_i1=()=>t,e;var r},yu=t(2,((t,e)=>ju((r=>au(eu(r(t)),(t=>sl(e,t))))))),wu=t(2,((t,e)=>au(t,(t=>Fu((()=>e(t))))))),_u=t(2,((t,e)=>bu(t,{onFailure:t=>nu((()=>e.onFailure(t))),onSuccess:t=>Fu((()=>e.onSuccess(t)))}))),vu=t(2,((t,e)=>fu(t,{onFailure:t=>{const r=ea(t);switch(r._tag){case"Left":return nu((()=>e(r.left)));case"Right":return su(r.right)}},onSuccess:Eu}))),Ou=t(2,((t,e)=>ju((r=>fu(r(t),{onFailure:t=>{const r=Jh(t);return fu(e(r),{onFailure:e=>Jh(Yc(t,e)),onSuccess:()=>r})},onSuccess:t=>{const r=zh(t);return qu(e(r),r)}}))))),Mu=t(2,((t,e)=>Ou(t,Gh({onFailure:t=>Xc(t)?Ja(e(ta(t))):Au,onSuccess:()=>Au})))),Iu=t(2,((t,e)=>bu(t,{onFailure:t=>Za(e(t)),onSuccess:Eu}))),Eu=t=>{const e=new Da(ut);return e.effect_instruction_i0=t,e},ku=t=>{const e=new Ta(st);return e.commit=t,e},Fu=t=>{const e=new Ta(ht);return e.effect_instruction_i0=t,e},Nu=t((t=>3===t.length||2===t.length&&!(p(t[1])&&"onlyEffect"in t[1])),((t,e)=>au(t,(t=>{const r="function"==typeof e?e(t):e;return Pa(r)?Ua(r,t):m(n=r,"then")&&d(n.then)?Ga((e=>{r.then((()=>e(Eu(t))),(t=>e(ru(new Lh(t,"An unknown error occurred in Effect.tap")))))})):Eu(t);var n})))),Cu=t=>{const e=new Ta(ft);return e.effect_instruction_i0=dc(1),e.effect_instruction_i1=()=>t,e},ju=t=>Wa(t,(function(){const t=new Ta(ft);return t.effect_instruction_i0=dc(1),t.effect_instruction_i1=t=>ic(t)?N((()=>this.effect_instruction_i0(gu))):N((()=>this.effect_instruction_i0(Cu))),t})),Au=Eu(void 0),Ru=t(2,((t,e)=>au(e,(e=>e?c(t,wu(ie)):Eu(se()))))),xu=t=>{const e=new Ta(bt);return e.effect_instruction_i0=t.while,e.effect_instruction_i1=t.body,e.effect_instruction_i2=t.step,e},$u=t=>ku((()=>{const e=new Ta(dt);return e.effect_instruction_i0=t(),e})),Tu=function(){const t=1===arguments.length?arguments[0]:arguments[1].bind(arguments[0]);return $u((()=>t(c)))},Lu=(t,...e)=>Object.defineProperty(0===e.length?function(...e){return $u((()=>t.apply(this,e)))}:function(...r){let n=$u((()=>t.apply(this,r)));for(const t of e)n=t(n,...r);return n},"length",{value:t.length,configurable:!0}),Du=t=>{const e=new Ta(mt);return void 0!==t?.priority?ph(e,t.priority):e},Pu=t(2,((t,e)=>au(t,(t=>wu(e,(e=>[t,e])))))),Bu=t(2,((t,e)=>au(t,(t=>Ua(e,t))))),qu=t(2,((t,e)=>au(t,(()=>e)))),Uu=t(3,((t,e,r)=>au(t,(t=>wu(e,(e=>r(t,e))))))),Ju=t=>au(ou,(e=>c(t,Wu(e)))),Wu=t(2,((t,e)=>au(t.interruptAsFork(e),(()=>t.await)))),Gu={_tag:"Error",syslog:3,label:"ERROR",ordinal:4e4,pipe(){return rt(this,arguments)}},Vu={_tag:"Warning",syslog:4,label:"WARN",ordinal:3e4,pipe(){return rt(this,arguments)}},zu={_tag:"Info",syslog:6,label:"INFO",ordinal:2e4,pipe(){return rt(this,arguments)}},Hu={_tag:"Debug",syslog:7,label:"DEBUG",ordinal:1e4,pipe(){return rt(this,arguments)}},Yu=Symbol.for("effect/FiberRef"),Ku={_A:t=>t},Qu=t=>Ba((e=>zh(e.getFiberRef(t)))),Zu=t(2,((t,e)=>au(Qu(t),e))),Xu=t(2,((t,e)=>th(t,(()=>[void 0,e])))),th=t(2,((t,e)=>Ba((r=>{const[n,s]=e(r.getFiberRef(t));return r.setFiberRef(t,s),Eu(n)})))),eh=t(3,((t,e,r)=>qa(Bu(Qu(e),Xu(e,r)),(()=>t),(t=>Xu(e,t))))),rh=t(3,((t,e,r)=>Zu(e,(n=>eh(t,e,r(n)))))),nh=(t,r)=>ch(t,{differ:Ho(),fork:r?.fork??e,join:r?.join}),sh=t=>{const e=zo({empty:Eo(),combine:(t,e)=>jo(e)(t),diff:(t,e)=>((t,e)=>{const[r,n]=ci([t,Eo()],(([t,e],r)=>ei(r)(t)?[si(r)(t),e]:[t,jo(No(r))(e)]))(e);return ci(n,((t,e)=>jo((t=>{const e=Object.create(Co);return e.value=t,e})(e))(t)))(r)})(t,e),patch:(t,e)=>Ao(e)(t)});return ch(t,{differ:e,fork:e.empty})},ih=t=>{const e=(t=>zo({empty:Lo(),combine:(t,e)=>Jo(t,e),diff:(e,r)=>(t=>{let e=0,r=Lo();for(;e<t.oldValue.length&&e<t.newValue.length;){const n=t.differ.diff(t.oldValue[e],t.newValue[e]);J(n,t.differ.empty)||(r=Jo(r,Uo(e,n))),e+=1}return e<t.oldValue.length&&(r=Jo(r,((t,e)=>{const r=Object.create(Bo);return r.from=0,r.until=e,r})(0,e))),e<t.newValue.length&&(r=Jo(r,(t=>{const e=Object.create(Po);return e.values=t,e})($e(e)(t.newValue)))),r})({oldValue:e,newValue:r,differ:t}),patch:(e,r)=>Wo(e,r,t)}))(Ho());return ch(t,{differ:e,fork:e.empty})},oh=t=>{const e=zo({empty:lo(),combine:(t,e)=>wo(e)(t),diff:(t,e)=>((t,e)=>{const r=new Map(t.unsafeMap);let n=lo();for(const[t,s]of e.unsafeMap.entries())if(r.has(t)){const e=r.get(t);r.delete(t),J(e,s)||(n=wo(yo(t,(()=>s)))(n))}else r.delete(t),n=wo(po(t,s))(n);for(const[t]of r.entries())n=wo(So(t))(n);return n})(t,e),patch:(t,e)=>_o(e)(t)});return ch(t,{differ:e,fork:e.empty})},ch=(t,e)=>({...Et,[Yu]:Ku,initial:t,commit(){return Qu(this)},diff:(t,r)=>e.differ.diff(t,r),combine:(t,r)=>e.differ.combine(t,r),patch:t=>r=>e.differ.patch(t,r),fork:e.fork,join:e.join??((t,e)=>e)}),ah=t=>ch(t,{differ:bc,fork:bc.empty}),uh=f(Symbol.for("effect/FiberRef/currentContext"),(()=>oh(Ir()))),hh=f(Symbol.for("effect/FiberRef/currentSchedulingPriority"),(()=>nh(0))),lh=f(Symbol.for("effect/FiberRef/currentMaxOpsBeforeYield"),(()=>nh(2048))),fh=f(Symbol.for("effect/FiberRef/currentLogAnnotation"),(()=>nh(xi()))),bh=f(Symbol.for("effect/FiberRef/currentLogLevel"),(()=>nh(zu))),dh=f(Symbol.for("effect/FiberRef/currentLogSpan"),(()=>nh(Zi()))),ph=t(2,((t,e)=>eh(t,hh,e))),mh=f(Symbol.for("effect/FiberRef/currentConcurrency"),(()=>nh("unbounded"))),Sh=f(Symbol.for("effect/FiberRef/currentRequestBatching"),(()=>nh(!0))),gh=f(Symbol.for("effect/FiberRef/currentUnhandledErrorLogLevel"),(()=>nh(ie(Hu)))),yh=f(Symbol.for("effect/FiberRef/versionMismatchErrorLogLevel"),(()=>nh(ie(Vu)))),wh=f(Symbol.for("effect/FiberRef/currentMetricLabels"),(()=>ih([]))),_h=f(Symbol.for("effect/FiberRef/currentForkScopeOverride"),(()=>nh(se(),{fork:()=>se(),join:t=>t}))),vh=f(Symbol.for("effect/FiberRef/currentInterruptedCause"),(()=>nh(Wc,{fork:()=>Wc,join:t=>t}))),Oh=Symbol.for("effect/Scope"),Mh=Symbol.for("effect/CloseableScope"),Ih=(t,e)=>t.addFinalizer((()=>Ja(e))),Eh=(t,e)=>t.addFinalizer(e),kh=(t,e)=>t.close(e),Fh=(t,e)=>t.fork(e),Nh=function(){class t extends globalThis.Error{commit(){return ru(this)}toJSON(){const t={...this};return this.message&&(t.message=this.message),this.cause&&(t.cause=this.cause),t}[z](){return this.toString!==globalThis.Error.prototype.toString?this.stack?`${this.toString()}\n${this.stack.split("\n").slice(1).join("\n")}`:this.toString():"Bun"in globalThis?ga(Gc(this),{renderErrorCause:!0}):this}}return Object.assign(t.prototype,kt),t}(),Ch=(t,e)=>{class r extends Nh{_tag=e}return Object.assign(r.prototype,t),r.prototype.name=e,r},jh=Symbol.for("effect/Cause/errors/RuntimeException"),Ah=Ch({[jh]:jh},"RuntimeException"),Rh=Symbol.for("effect/Cause/errors/InterruptedException"),xh=Symbol.for("effect/Cause/errors/NoSuchElement"),$h=Ch({[xh]:xh},"NoSuchElementException"),Th=Symbol.for("effect/Cause/errors/UnknownException"),Lh=function(){class t extends Nh{_tag="UnknownException";error;constructor(t,e){super(e??"An unknown error occurred",{cause:t}),this.error=t}}return Object.assign(t.prototype,{[Th]:Th,name:"UnknownException"}),t}(),Dh=t=>Pa(t)&&"_tag"in t&&("Success"===t._tag||"Failure"===t._tag),Ph=t(2,((t,e)=>{switch(t._tag){case it:return Jh(t.effect_instruction_i0);case ut:return zh(e)}})),Bh=t=>Ph(t,void 0),qh=(t,e)=>Zh(t,e?.parallel?Hc:Yc),Uh=t=>Jh(Gc(t)),Jh=t=>{const e=new La(it);return e.effect_instruction_i0=t,e},Wh=t(2,((t,e)=>{switch(t._tag){case it:return Jh(t.effect_instruction_i0);case ut:return zh(e(t.effect_instruction_i0))}})),Gh=t(2,((t,{onFailure:e,onSuccess:r})=>{switch(t._tag){case it:return e(t.effect_instruction_i0);case ut:return r(t.effect_instruction_i0)}})),Vh=t(2,((t,{onFailure:e,onSuccess:r})=>{switch(t._tag){case it:return e(t.effect_instruction_i0);case ut:return r(t.effect_instruction_i0)}})),zh=t=>{const e=new Da(ut);return e.effect_instruction_i0=t,e},Hh=zh(void 0),Yh=t(2,((t,e)=>Qh(t,e,{onSuccess:(t,e)=>[t,e],onFailure:Yc}))),Kh=t(2,((t,e)=>Qh(t,e,{onSuccess:(t,e)=>e,onFailure:Yc}))),Qh=t(3,((t,e,{onFailure:r,onSuccess:n})=>{switch(t._tag){case it:switch(e._tag){case ut:return Jh(t.effect_instruction_i0);case it:return Jh(r(t.effect_instruction_i0,e.effect_instruction_i0))}case ut:switch(e._tag){case ut:return zh(n(t.effect_instruction_i0,e.effect_instruction_i0));case it:return Jh(e.effect_instruction_i0)}}})),Zh=(t,e)=>{const r=Jr(t);return on(r)?c(bn(r),Ze(c(un(r),Wh(Ur)),((t,r)=>c(t,Qh(r,{onSuccess:(t,e)=>c(t,Zr(e)),onFailure:e})))),Wh(Vr),Wh((t=>Gr(t))),ie):se()},Xh=t=>{var e;return{...Et,[Na]:Ca,state:hi((e=[],{_tag:ka,joiners:e})),commit(){return rl(this)},blockingOn:t}},tl=()=>au(ou,(t=>el(t))),el=t=>Fu((()=>Xh(t))),rl=t=>Va((e=>{const r=fi(t.state);switch(r._tag){case Fa:return e(r.effect);case ka:return r.joiners.push(e),ul(t,e)}}),t.blockingOn),nl=t(2,((t,e)=>Fu((()=>{const r=fi(t.state);switch(r._tag){case Fa:return!1;case ka:bi(t.state,ja(e));for(let t=0,n=r.joiners.length;t<n;t++)r.joiners[t](e);return!0}})))),sl=t(2,((t,e)=>nl(t,e))),il=t(2,((t,e)=>nl(t,su(e)))),ol=t(2,((t,e)=>nl(t,Su(e)))),cl=t(2,((t,e)=>nl(t,Eu(e)))),al=(t,e)=>{const r=fi(t.state);if(r._tag===ka){bi(t.state,ja(e));for(let t=0,n=r.joiners.length;t<n;t++)r.joiners[t](e)}},ul=(t,e)=>Fu((()=>{const r=fi(t.state);if(r._tag===ka){const t=r.joiners.indexOf(e);t>=0&&r.joiners.splice(t,1)}})),hl=Ba((t=>zh(t.currentContext))),ll=()=>hl,fl=t=>au(ll(),t),bl=t(2,((t,e)=>eh(uh,e)(t))),dl=t(2,((t,e)=>rh(uh,(t=>jr(t,e)))(t))),pl=t(2,((t,e)=>fl((r=>bl(t,e(r)))))),ml=t=>{const e=t.currentSpan;return void 0!==e&&"Span"===e._tag?ie(e):se()},Sl=tl,gl=rl,yl=sl,wl=il,_l=t=>au(ou,(e=>nl(t,Su(e)))),vl=t=>Fu((()=>fi(t.state)._tag===Fa)),Ol=cl,Ml=Xh,Il=t=>"Failure"===t._tag,El=t=>"Success"===t._tag,kl=qh,Fl=t=>Jh(Vc(t)),Nl=Uh,Cl=Jh,jl=Wh,Al=Gh,Rl=zh,xl=Hh,$l=Yh,Tl=Kh,Ll=Symbol.for("effect/MutableHashMap"),Dl={[Ll]:Ll,[Symbol.iterator](){return new Pl(this)},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableHashMap",values:Array.from(this).map(H)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}};class Pl{self;referentialIterator;bucketIterator;constructor(t){this.self=t,this.referentialIterator=t.referential[Symbol.iterator]()}next(){if(void 0!==this.bucketIterator)return this.bucketIterator.next();const t=this.referentialIterator.next();return t.done?(this.bucketIterator=new Bl(this.self.buckets.values()),this.next()):t}[Symbol.iterator](){return new Pl(this.self)}}class Bl{backing;constructor(t){this.backing=t}currentBucket;next(){if(void 0===this.currentBucket){const t=this.backing.next();if(t.done)return t;this.currentBucket=t.value[Symbol.iterator]()}const t=this.currentBucket.next();return t.done?(this.currentBucket=void 0,this.next()):t}}const ql=()=>{const t=Object.create(Dl);return t.referential=new Map,t.buckets=new Map,t.bucketsSize=0,t},Ul=t(2,((t,e)=>{if(!1===G(e))return t.referential.has(e)?ie(t.referential.get(e)):se();const r=e[j](),n=t.buckets.get(r);return void 0===n?se():Jl(t,n,e)})),Jl=(t,e,r,n=!1)=>{for(let s=0,i=e.length;s<i;s++)if(r[U](e[s][0])){const r=e[s][1];return n&&(e.splice(s,1),t.bucketsSize--),ie(r)}return se()},Wl=t(2,((t,e)=>ce(Ul(t,e)))),Gl=t(3,((t,e,r)=>{if(!1===G(e))return t.referential.set(e,r),t;const n=e[j](),s=t.buckets.get(n);return void 0===s?(t.buckets.set(n,[[e,r]]),t.bucketsSize++,t):(Vl(t,s,e),s.push([e,r]),t.bucketsSize++,t)})),Vl=(t,e,r)=>{for(let n=0,s=e.length;n<s;n++)if(r[U](e[n][0]))return e.splice(n,1),void t.bucketsSize--},zl=t(2,((t,e)=>{if(!1===G(e))return t.referential.delete(e),t;const r=e[j](),n=t.buckets.get(r);return void 0===n||(Vl(t,n,e),0===n.length&&t.buckets.delete(r)),t})),Hl=t=>t.referential.size+t.bucketsSize,Yl=Symbol.for("effect/MutableList"),Kl={[Yl]:Yl,[Symbol.iterator](){let t=!1,e=this.head;return{next(){if(t)return this.return();if(null==e)return t=!0,this.return();const r=e.value;return e=e.next,{done:t,value:r}},return:e=>(t||(t=!0),{done:!0,value:e})}},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableList",values:Array.from(this).map(H)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},Ql=t=>0===Zl(t),Zl=t=>t._length,Xl=t(2,((t,e)=>{const r=(t=>({value:t,removed:!1,prev:void 0,next:void 0}))(e);return void 0===t.head&&(t.head=r),void 0===t.tail||(t.tail.next=r,r.prev=t.tail),t.tail=r,t._length+=1,t})),tf=Symbol.for("effect/MutableQueue"),ef=Symbol.for("effect/mutable/MutableQueue/Empty"),rf={[tf]:tf,[Symbol.iterator](){return Array.from(this.queue)[Symbol.iterator]()},toString(){return Y(this.toJSON())},toJSON(){return{_id:"MutableQueue",values:Array.from(this).map(H)}},[z](){return this.toJSON()},pipe(){return rt(this,arguments)}},nf=t=>{const e=Object.create(rf);return e.queue=(()=>{const t=Object.create(Kl);return t.head=void 0,t.tail=void 0,t._length=0,t})(),e.capacity=t,e},sf=t=>nf(t),of=()=>nf(void 0),cf=t=>Zl(t.queue),af=t=>Ql(t.queue),uf=t=>void 0===t.capacity?1/0:t.capacity,hf=t(2,((t,e)=>{const r=Zl(t.queue);return(void 0===t.capacity||r!==t.capacity)&&(Xl(e)(t.queue),!0)})),lf=t(2,((t,e)=>{const r=e[Symbol.iterator]();let n,s=Br(),i=!0;for(;i&&(n=r.next())&&!n.done;)i=hf(n.value)(t);for(;null!=n&&!n.done;)s=Zr(n.value)(s),n=r.next();return Vr(s)})),ff=t(2,((t,e)=>Ql(t.queue)?e:(t=>{const e=t.head;if(void 0!==e)return((t,e)=>{e.removed||(e.removed=!0,void 0!==e.prev&&void 0!==e.next?(e.prev.next=e.next,e.next.prev=e.prev):void 0!==e.prev?(t.tail=e.prev,e.prev.next=void 0):void 0!==e.next?(t.head=e.next,e.next.prev=void 0):(t.tail=void 0,t.head=void 0),t._length>0&&(t._length-=1))})(t,e),e.value})(t.queue))),bf=t(2,((t,e)=>{let r=Br(),n=0;for(;n<e;){const e=ff(ef)(t);if(e===ef)break;r=Zr(e)(r),n+=1}return Vr(r)})),df=Symbol.for("effect/Clock"),pf=Or("effect/Clock"),mf={unsafeSchedule(t,e){const r=Pn(e);if(r>2147483647)return s;let n=!1;const i=setTimeout((()=>{n=!0,t()}),r);return()=>(clearTimeout(i),!n)}},Sf=function(){const t=BigInt(1e6);if("undefined"==typeof performance||"function"!=typeof performance.now)return()=>BigInt(Date.now())*t;let e;return()=>(void 0===e&&(e=BigInt(Date.now())*t-BigInt(Math.round(1e6*performance.now()))),e+BigInt(Math.round(1e6*performance.now())))}(),gf=function(){const t="object"==typeof process&&"hrtime"in process&&"function"==typeof process.hrtime.bigint?process.hrtime:void 0;if(!t)return Sf;const e=Sf()-t.bigint();return()=>e+t.bigint()}();class yf{[df]=df;unsafeCurrentTimeMillis(){return Date.now()}unsafeCurrentTimeNanos(){return gf()}currentTimeMillis=Fu((()=>this.unsafeCurrentTimeMillis()));currentTimeNanos=Fu((()=>this.unsafeCurrentTimeNanos()));scheduler(){return Eu(mf)}sleep(t){return za((e=>{const r=mf.unsafeSchedule((()=>e(Au)),t);return Ja(Fu(r))}))}}const wf=()=>new yf,_f="InvalidData",vf="MissingData",Of="SourceUnavailable",Mf="Unsupported",If=Symbol.for("effect/ConfigError"),Ef={_tag:"ConfigError",[If]:If},kf=(t,e)=>{const r=Object.create(Ef);return r._op="And",r.left=t,r.right=e,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`${this.left} and ${this.right}`}}),Object.defineProperty(r,"message",{enumerable:!1,get(){return this.toString()}}),r},Ff=(t,e)=>{const r=Object.create(Ef);return r._op="Or",r.left=t,r.right=e,Object.defineProperty(r,"toString",{enumerable:!1,value(){return`${this.left} or ${this.right}`}}),Object.defineProperty(r,"message",{enumerable:!1,get(){return this.toString()}}),r},Nf=(t,e,r={pathDelim:"."})=>{const n=Object.create(Ef);return n._op=_f,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Invalid data at ${c(this.path,nr(r.pathDelim))}: "${this.message}")`}}),n},Cf=(t,e,r={pathDelim:"."})=>{const n=Object.create(Ef);return n._op=vf,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Missing data at ${c(this.path,nr(r.pathDelim))}: "${this.message}")`}}),n},jf=(t,e,r,n={pathDelim:"."})=>{const s=Object.create(Ef);return s._op=Of,s.path=t,s.message=e,s.cause=r,Object.defineProperty(s,"toString",{enumerable:!1,value(){return`(Source unavailable at ${c(this.path,nr(n.pathDelim))}: "${this.message}")`}}),s},Af=(t,e,r={pathDelim:"."})=>{const n=Object.create(Ef);return n._op=Mf,n.path=t,n.message=e,Object.defineProperty(n,"toString",{enumerable:!1,value(){return`(Unsupported operation at ${c(this.path,nr(r.pathDelim))}: "${this.message}")`}}),n},Rf=t(2,((t,e)=>{switch(t._op){case"And":return kf(Rf(t.left,e),Rf(t.right,e));case"Or":return Ff(Rf(t.left,e),Rf(t.right,e));case _f:return Nf([...e,...t.path],t.message);case vf:return Cf([...e,...t.path],t.message);case Of:return jf([...e,...t.path],t.message,t.cause);case Mf:return Af([...e,...t.path],t.message)}})),xf={_tag:"Empty"},$f=t(2,((t,e)=>{let r=Xi(e),n=t;for(;"Cons"===r._tag;){const t=r.head;switch(t._tag){case"Empty":r=r.tail;break;case"AndThen":r=Qi(t.first,Qi(t.second,r.tail));break;case"MapName":n=He(n,t.f),r=r.tail;break;case"Nested":n=ve(n,t.name),r=r.tail;break;case"Unnested":if(!c(Ce(n),me(t.name)))return zt(Cf(n,`Expected ${t.name} to be in path in ConfigProvider#unnested`));n=Re(n),r=r.tail}}return Vt(n)})),Tf=(t,e)=>[...t,...e],Lf=Symbol.for("effect/ConfigProvider"),Df=Or("effect/ConfigProvider"),Pf=Symbol.for("effect/ConfigProviderFlat"),Bf=t=>({[Lf]:Lf,pipe(){return rt(this,arguments)},...t}),qf=t=>{const{pathDelim:e,seqDelim:r}=Object.assign({},{pathDelim:"_",seqDelim:","},t),n=()=>"undefined"!=typeof process&&"env"in process&&"object"==typeof process.env?process.env:{};return s=(t=>({[Pf]:Pf,patch:t.patch,load:(e,r,n=!0)=>t.load(e,r,n),enumerateChildren:t.enumerateChildren}))({load:(t,s,i=!0)=>{const o=(t=>c(t,nr(e)))(t),a=n();return c(o in a?ie(a[o]):se(),vu((()=>Cf(t,`Expected ${o} to exist in the process context`))),au((e=>Wf(e,t,s,r,i))))},enumerateChildren:t=>Fu((()=>{const r=n();return(t=>{const e=Ws(Us());for(const r of t)zs(e,r);return Gs(e)})(Object.keys(r).map((t=>t.toUpperCase().split(e))).filter((e=>{for(let r=0;r<t.length;r++){const n=c(t,Ne(r)),s=e[r];if(void 0===s||n!==s)return!1}return!0})).flatMap((e=>e.slice(t.length,t.length+1))))})),patch:xf}),Bf({load:t=>au(Uf(s,[],t,!1),(e=>ae(Ce(e),{onNone:()=>ru(Cf([],`Expected a single value having structure: ${t}`)),onSome:Eu}))),flattened:s});var s},Uf=(t,e,r,n)=>{const s=r;switch(s._tag){case"Constant":return Eu(ze(s.value));case"Described":return ku((()=>Uf(t,e,s.config,n)));case"Fail":return ru(Cf(e,s.message));case"Fallback":return c(ku((()=>Uf(t,e,s.first,n))),Ya((r=>s.condition(r)?c(Uf(t,e,s.second,n),Ya((t=>ru(Ff(r,t))))):ru(r))));case"Lazy":return ku((()=>Uf(t,e,s.config(),n)));case"MapOrFail":return ku((()=>c(Uf(t,e,s.original,n),au(du((t=>c(s.mapOrFail(t),vu(Rf(((t,e)=>{let r=e;if("Nested"===r._tag){const e=t.slice();for(;"Nested"===r._tag;)e.push(r.name),r=r.config;return e}return t})(e,s.original))))))))));case"Nested":return ku((()=>Uf(t,Tf(e,ze(s.name)),s.config,n)));case"Primitive":return c($f(e,t.patch),au((e=>c(t.load(e,s,n),au((t=>{if(0===t.length){const t=c(Ee(r=e)?ie(Ae(r)):se(),he((()=>"<n/a>")));return ru(Cf([],`Expected ${s.description} with name ${t}`))}var r;return Eu(t)}))))));case"Sequence":return c($f(e,t.patch),au((r=>c(t.enumerateChildren(r),au(Vf),au((r=>0===r.length?ku((()=>wu(Uf(t,e,s.config,!0),ze))):c(du(r,(r=>Uf(t,Oe(e,`[${r}]`),s.config,!0))),wu((t=>{const e=Ye(t);return ze(0===e.length?[]:e)})))))))));case"HashMap":return ku((()=>c($f(e,t.patch),au((e=>c(t.enumerateChildren(e),au((r=>c(r,du((r=>Uf(t,Tf(e,ze(r)),s.valueConfig,n))),wu((t=>0===t.length?ze(xi()):c(Gf(t),He((t=>(t=>{const e=Ns(ws());for(const r of t)Is(e,r[0],r[1]);return(r=e)._editable=!1,r;var r})(De(_e(r),t))))))))))))))));case"ZipWith":return ku((()=>c(Uf(t,e,s.left,n),tu,au((r=>c(Uf(t,e,s.right,n),tu,au((t=>{if(Ht(r)&&Ht(t))return ru(kf(r.left,t.left));if(Ht(r)&&Yt(t))return ru(r.left);if(Yt(r)&&Ht(t))return ru(t.left);if(Yt(r)&&Yt(t)){const n=c(e,nr(".")),i=Jf(e,n),[o,a]=((t,e,r,n)=>{const s=Xe(r.length,(e=>e>=n.length?se():ie([t(e),e+1]))),i=Xe(n.length,(t=>t>=r.length?se():ie([e(t),t+1])));return[Tf(r,s),Tf(n,i)]})(i,i,c(r.right,He(Vt)),c(t.right,He(Vt)));return c(o,De(a),du((([t,e])=>c(Pu(t,e),wu((([t,e])=>s.zip(t,e)))))))}throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues")}))))))))}},Jf=(t,e)=>r=>zt(Cf(t,`The element at index ${r} in a sequence at path "${e}" was missing`)),Wf=(t,e,r,n,s)=>s?c(((t,e)=>{const r=t.split(new RegExp(`\\s*${(t=>t.replace(/[/\\^$*+?.()|[\]{}]/g,"\\$&"))(e)}\\s*`));return r})(t,n),du((t=>r.parse(t.trim()))),vu(Rf(e))):c(r.parse(t),_u({onFailure:Rf(e),onSuccess:ze})),Gf=t=>Object.keys(t[0]).map((e=>t.map((t=>t[e])))),Vf=t=>c(du(t,Hf),_u({onFailure:()=>[],onSuccess:Le(sr)}),tu,wu(Qt)),zf=/^(\[(\d+)\])$/,Hf=t=>{const e=t.match(zf);if(null!==e){const t=e[2];return c(void 0!==t&&t.length>0?ie(t):se(),pe(Yf))}return se()},Yf=t=>{const e=Number.parseInt(t);return Number.isNaN(e)?se():ie(e)},Kf=Symbol.for("effect/Console"),Qf=Or("effect/Console"),Zf={[Kf]:Kf,assert:(t,...e)=>Fu((()=>{console.assert(t,...e)})),clear:Fu((()=>{console.clear()})),count:t=>Fu((()=>{console.count(t)})),countReset:t=>Fu((()=>{console.countReset(t)})),debug:(...t)=>Fu((()=>{console.debug(...t)})),dir:(t,e)=>Fu((()=>{console.dir(t,e)})),dirxml:(...t)=>Fu((()=>{console.dirxml(...t)})),error:(...t)=>Fu((()=>{console.error(...t)})),group:t=>Fu(t?.collapsed?()=>console.groupCollapsed(t?.label):()=>console.group(t?.label)),groupEnd:Fu((()=>{console.groupEnd()})),info:(...t)=>Fu((()=>{console.info(...t)})),log:(...t)=>Fu((()=>{console.log(...t)})),table:(t,e)=>Fu((()=>{console.table(t,e)})),time:t=>Fu((()=>console.time(t))),timeEnd:t=>Fu((()=>console.timeEnd(t))),timeLog:(t,...e)=>Fu((()=>{console.timeLog(t,...e)})),trace:(...t)=>Fu((()=>{console.trace(...t)})),warn:(...t)=>Fu((()=>{console.warn(...t)})),unsafe:console},Xf=Symbol.for("effect/Random"),tb=Or("effect/Random");class eb{seed;[Xf]=Xf;PRNG;constructor(t){this.seed=t,this.PRNG=new v(t)}get next(){return Fu((()=>this.PRNG.number()))}get nextBoolean(){return wu(this.next,(t=>t>.5))}get nextInt(){return Fu((()=>this.PRNG.integer(Number.MAX_SAFE_INTEGER)))}nextRange(t,e){return wu(this.next,(r=>(e-t)*r+t))}nextIntBetween(t,e){return Fu((()=>this.PRNG.integer(e-t)+t))}shuffle(t){return rb(t,(t=>this.nextIntBetween(0,t)))}}const rb=(t,e)=>ku((()=>c(Fu((()=>Array.from(t))),au((t=>{const r=[];for(let e=t.length;e>=2;e-=1)r.push(e);return c(r,pu((r=>c(e(r),wu((e=>nb(t,r-1,e)))))),Ua(Jr(t)))}))))),nb=(t,e,r)=>{const n=t[e];return t[e]=t[r],t[r]=n,t},sb=t=>new eb(A(t)),ib=Symbol.for("effect/Tracer"),ob=t=>({[ib]:ib,...t}),cb=Or("effect/Tracer"),ab=Or("effect/ParentSpan"),ub=function(){return function(t){let e="";for(let r=0;r<t;r++)e+="abcdef0123456789".charAt(Math.floor(16*Math.random()));return e}}();class hb{name;parent;context;startTime;kind;_tag="Span";spanId;traceId="native";sampled=!0;status;attributes;events=[];links;constructor(t,e,r,n,s,i){this.name=t,this.parent=e,this.context=r,this.startTime=s,this.kind=i,this.status={_tag:"Started",startTime:s},this.attributes=new Map,this.traceId="Some"===e._tag?e.value.traceId:ub(32),this.spanId=ub(16),this.links=Array.from(n)}end(t,e){this.status={_tag:"Ended",endTime:t,exit:e,startTime:this.status.startTime}}attribute(t,e){this.attributes.set(t,e)}event(t,e,r){this.events.push([t,e,r??{}])}addLinks(t){this.links.push(...t)}}const lb=ob({span:(t,e,r,n,s,i)=>new hb(t,e,r,n,s,i),context:t=>t()}),fb=Ar()("effect/Tracer/DisablePropagation",{defaultValue:s}),bb=c(Ir(),kr(pf,wf()),kr(Qf,Zf),kr(tb,sb(Math.random())),kr(Df,qf()),kr(cb,lb)),db=f(Symbol.for("effect/DefaultServices/currentServices"),(()=>oh(bb))),pb=t=>(t=>Ba((e=>t(e.currentDefaultServices))))((e=>t(e.unsafeMap.get(pf.key)))),mb=pb((t=>t.currentTimeMillis)),Sb=pb,gb=Symbol.for("effect/FiberRefs");class yb{locals;[gb]=gb;constructor(t){this.locals=t}pipe(){return rt(this,arguments)}}const wb=t(3,((t,e,r)=>{const n=new Map(t.locals);return r.locals.forEach(((t,r)=>{const s=t[0][1];if(!t[0][0][U](e)){if(!n.has(r)){if(J(s,r.initial))return;return void n.set(r,[[e,r.join(r.initial,s)]])}const i=n.get(r),[o,c]=((t,e,r,n=!1)=>{const s=t;let i,o=e,c=r,a=n;for(;void 0===i;)if(Ee(o)&&Ee(c)){const t=je(o)[0],e=Re(o),r=je(c)[0],n=je(c)[1],s=Re(c);t.startTimeMillis<r.startTimeMillis?(c=s,a=!0):t.startTimeMillis>r.startTimeMillis?o=e:t.id<r.id?(c=s,a=!0):t.id>r.id?o=e:i=[n,a]}else i=[s.initial,!0];return i})(r,i,t);if(c){const t=r.diff(o,s),c=i[0][1],a=r.join(c,r.patch(t)(c));if(!J(c,a)){let t;const s=i[0][0];t=s[U](e)?[[s,a],...i.slice(1)]:[[e,a],...i],n.set(r,t)}}}})),new yb(n)})),_b=t(2,((t,e)=>{const r=new Map;return vb(t,r,e),new yb(r)})),vb=(t,e,r)=>{t.locals.forEach(((t,n)=>{const s=t[0][1],i=n.patch(n.fork)(s);J(s,i)?e.set(n,t):e.set(n,[[r,i],...t])}))},Ob=t(2,((t,e)=>{const r=new Map(t.locals);return r.delete(e),new yb(r)})),Mb=t(2,((t,e)=>t.locals.has(e)?ie(je(t.locals.get(e))[1]):se())),Ib=t(2,((t,e)=>c(Mb(t,e),he((()=>e.initial))))),Eb=t(2,((t,{fiberId:e,fiberRef:r,value:n})=>{if(0===t.locals.size)return new yb(new Map([[r,[[e,n]]]]));const s=new Map(t.locals);return kb(s,e,r,n),new yb(s)})),kb=(t,e,r,n)=>{const s=t.get(r)??[];let i;if(Ee(s)){const[t,r]=je(s);if(t[U](e)){if(J(r,n))return;i=[[e,n],...s.slice(1)]}else i=[[e,n],...s]}else i=[[e,n]];t.set(r,i)},Fb=t(2,((t,{entries:e,forkAs:r})=>{if(0===t.locals.size)return new yb(new Map(e));const n=new Map(t.locals);return void 0!==r&&vb(t,n,r),e.forEach((([t,e])=>{1===e.length?kb(n,e[0][0],t,e[0][1]):e.forEach((([e,r])=>{kb(n,e,t,r)}))})),new yb(n)})),Nb=Ib,Cb=Fb,jb=function(){return t=new Map,new yb(t);var t},Ab=Gu,Rb=Vu,xb=zu,$b=ne(c(sr,re((t=>t.ordinal)))),Tb=t=>t.replace(/[\s="]/g,"_"),Lb=t=>e=>`${Tb(e.label)}=${t-e.startTime}ms`,Db=Mt,Pb=Ft;class Bb extends Pb{}const qb=Symbol.for("effect/Readable"),Ub=Symbol.for("effect/Ref"),Jb={_A:t=>t};class Wb extends Bb{ref;commit(){return this.get}[Ub]=Jb;[qb]=qb;constructor(t){super(),this.ref=t,this.get=Fu((()=>fi(this.ref)))}get;modify(t){return Fu((()=>{const e=fi(this.ref),[r,n]=t(e);return e!==n&&bi(n)(this.ref),r}))}}const Gb=t=>new Wb(hi(t)),Vb=t=>Fu((()=>Gb(t))),zb=t=>t.get,Hb=t(2,((t,e)=>t.modify((()=>[void 0,e])))),Yb=t(2,((t,e)=>t.modify(e))),Kb=t(2,((t,e)=>t.modify((t=>[void 0,e(t)])))),Qb="Empty",Zb="Remove",Xb="Update",td="AndThen",ed={_tag:Qb},rd=(t,e)=>{const r=new Map(t.locals);let n=ed;for(const[t,s]of e.locals.entries()){const e=je(s)[1],i=r.get(t);if(void 0!==i){const r=je(i)[1];J(r,e)||(n=nd({_tag:Xb,fiberRef:t,patch:t.diff(r,e)})(n))}else n=nd({_tag:"Add",fiberRef:t,value:e})(n);r.delete(t)}for(const[t]of r.entries())n=nd({_tag:Zb,fiberRef:t})(n);return n},nd=t(2,((t,e)=>({_tag:td,first:t,second:e}))),sd=t(3,((t,e,r)=>{let n=r,s=ze(t);for(;Ee(s);){const t=je(s),r=Re(s);switch(t._tag){case Qb:s=r;break;case"Add":n=Eb(n,{fiberId:e,fiberRef:t.fiberRef,value:t.value}),s=r;break;case Zb:n=Ob(n,t.fiberRef),s=r;break;case Xb:{const i=Ib(n,t.fiberRef);n=Eb(n,{fiberId:e,fiberRef:t.fiberRef,value:t.fiberRef.patch(t.patch)(i)}),s=r;break}case td:s=ve(t.first)(ve(t.second)(r))}}return n})),id="effect/MetricLabel",od=Symbol.for(id);class cd{key;value;[od]=od;_hash;constructor(t,e){this.key=t,this.value=e,this._hash=D(id+this.key+this.value)}[j](){return this._hash}[U](t){return ud(t)&&this.key===t.key&&this.value===t.value}pipe(){return rt(this,arguments)}}const ad=(t,e)=>new cd(t,e),ud=t=>m(t,od),hd=t(2,((t,e)=>fu(t,{onFailure:t=>{const r=e(t);switch(r._tag){case"None":return su(t);case"Some":return r.value}},onSuccess:Eu}))),ld=Sb,fd=t(2,((t,e)=>bu(t,{onFailure:t=>Eu(e.onFailure(t)),onSuccess:t=>Eu(e.onSuccess(t))}))),bd=Ba((t=>Eu(t.getFiberRefs()))),dd=t=>(...e)=>{const r=fe(t);let n;for(let t=0,r=e.length;t<r;t++){const r=e[t];Kc(r)&&(n=void 0!==n?Yc(n,r):r,e=[...e.slice(0,t),...e.slice(t+1)],t--)}return void 0===n&&(n=Wc),Ba((t=>(t.log(e,n,r),Au)))},pd=dd(Rb),md=dd(Ab),Sd=t(2,((t,e)=>fu(t,{onFailure:t=>iu((()=>e(t))),onSuccess:Eu}))),gd=t(3,((t,e,r)=>fl((n=>bl(t,kr(n,e,r)))))),yd=t(3,((t,e,r)=>fl((n=>au(r,(r=>bl(t,c(n,kr(e,r))))))))),wd=t=>{const e=On(t);return pb((t=>t.sleep(e)))},_d=Eu(se()),vd=t(3,((t,e,r)=>au(e,(n=>au(t,(t=>wu(e,(e=>[r(n,e),t])))))))),Od=t(2,((t,e)=>fu(t,{onFailure:t=>{const r=ea(t);switch(r._tag){case"Left":return qu(e(r.left),su(t));case"Right":return su(t)}},onSuccess:Eu}))),Md=t(2,((t,e)=>fu(t,{onFailure:t=>qu(e(t),su(t)),onSuccess:Eu}))),Id=t(2,((t,e)=>ku((()=>e()?wu(t,ie):Eu(se()))))),Ed=pe((t=>Fr(t.context,fb)?"Span"===t._tag?Ed(t.parent):se():ie(t))),kd="Sequential",Fd="Parallel",Nd={_tag:kd},Cd={_tag:Fd},jd=Nd,Ad=Cd,Rd=t=>({_tag:"ParallelN",parallelism:t}),xd=rd,$d=sd,Td="effect/FiberStatus",Ld=Symbol.for(Td),Dd="Done",Pd="Running",Bd="Suspended",qd=D(`${Td}-${Dd}`);class Ud{[Ld]=Ld;_tag=Dd;[j](){return qd}[U](t){return Gd(t)&&t._tag===Dd}}class Jd{runtimeFlags;[Ld]=Ld;_tag=Pd;constructor(t){this.runtimeFlags=t}[j](){return c(A(Td),x(A(this._tag)),x(A(this.runtimeFlags)),q(this))}[U](t){return Gd(t)&&t._tag===Pd&&this.runtimeFlags===t.runtimeFlags}}class Wd{runtimeFlags;blockingOn;[Ld]=Ld;_tag=Bd;constructor(t,e){this.runtimeFlags=t,this.blockingOn=e}[j](){return c(A(Td),x(A(this._tag)),x(A(this.runtimeFlags)),x(A(this.blockingOn)),q(this))}[U](t){return Gd(t)&&t._tag===Bd&&this.runtimeFlags===t.runtimeFlags&&J(this.blockingOn,t.blockingOn)}}const Gd=t=>m(t,Ld),Vd=new Ud,zd=t=>new Jd(t),Hd=Symbol.for("effect/Micro"),Yd=Symbol.for("effect/Micro/MicroExit"),Kd=Symbol.for("effect/Micro/MicroCause"),Qd={_E:e};class Zd extends globalThis.Error{_tag;traces;[Kd];constructor(t,e,r){const n=`MicroCause.${t}`;let s,i,o;if(e instanceof globalThis.Error){s=`(${n}) ${e.name}`,i=e.message;const t=i.split("\n").length;o=e.stack?`(${n}) ${e.stack.split("\n").slice(0,t+3).join("\n")}`:`${s}: ${i}`}else s=n,i=K(e,0),o=`${s}: ${i}`;r.length>0&&(o+=`\n ${r.join("\n ")}`),super(i),this._tag=t,this.traces=r,this[Kd]=Qd,this.name=s,this.stack=o}pipe(){return rt(this,arguments)}toString(){return this.stack}[z](){return this.stack}}class Xd extends Zd{error;constructor(t,e=[]){super("Fail",t,e),this.error=t}}class tp extends Zd{defect;constructor(t,e=[]){super("Die",t,e),this.defect=t}}class ep extends Zd{constructor(t=[]){super("Interrupt","interrupted",t)}}const rp=(t=[])=>new ep(t),np=t=>"Interrupt"===t._tag,sp=Symbol.for("effect/Micro/MicroFiber"),ip={_A:e,_E:e};class op{context;interruptible;[sp];_stack=[];_observers=[];_exit;_children;currentOpCount=0;constructor(t,e=!0){this.context=t,this.interruptible=e,this[sp]=ip}getRef(t){return(e=this.context).unsafeMap.has((r=t).key)?e.unsafeMap.get(r.key):gr(r);var e,r}addObserver(t){return this._exit?(t(this._exit),o):(this._observers.push(t),()=>{const e=this._observers.indexOf(t);e>=0&&this._observers.splice(e,1)})}_interrupted=!1;unsafeInterrupt(){this._exit||(this._interrupted=!0,this.interruptible&&this.evaluate(Pp))}unsafePoll(){return this._exit}evaluate(t){if(this._exit)return;if(void 0!==this._yielded){const t=this._yielded;this._yielded=void 0,t()}const e=this.runLoop(t);if(e===dp)return;const r=cp.interruptChildren&&cp.interruptChildren(this);if(void 0!==r)return this.evaluate(xp(r,(()=>e)));this._exit=e;for(let t=0;t<this._observers.length;t++)this._observers[t](e);this._observers.length=0}runLoop(t){let e=!1,r=t;this.currentOpCount=0;try{for(;;){if(this.currentOpCount++,!e&&this.getRef(zp).shouldYield(this)){e=!0;const t=r;r=xp(Ip,(()=>t))}if(r=r[hp](this),r===dp){const t=this._yielded;return Yd in t?(this._yielded=void 0,t):dp}}}catch(t){return m(r,hp)?Bp(t):Bp(`MicroFiber.runLoop: Not a valid effect: ${String(r)}`)}}getCont(t){for(;;){const e=this._stack.pop();if(!e)return;const r=e[bp]&&e[bp](this);if(r)return{[t]:r};if(e[t])return e}}_yielded=void 0;yieldWith(t){return this._yielded=t,dp}children(){return this._children??=new Set}}const cp=f("effect/Micro/fiberMiddleware",(()=>({interruptChildren:void 0}))),ap=Symbol.for("effect/Micro/identifier"),up=Symbol.for("effect/Micro/args"),hp=Symbol.for("effect/Micro/evaluate"),lp=Symbol.for("effect/Micro/successCont"),fp=Symbol.for("effect/Micro/failureCont"),bp=Symbol.for("effect/Micro/ensureCont"),dp=Symbol.for("effect/Micro/Yield"),pp={_A:e,_E:e,_R:e},mp={...Db,_op:"Micro",[Hd]:pp,pipe(){return rt(this,arguments)},[Symbol.iterator](){return new _(new I(this))},toJSON(){return{_id:"Micro",op:this[ap],...up in this?{args:this[up]}:void 0}},toString(){return Y(this)},[z](){return Y(this)}};function Sp(){return Bp("Micro.evaluate: Not implemented")}const gp=t=>({...mp,[ap]:t.op,[hp]:t.eval??Sp,[lp]:t.contA,[fp]:t.contE,[bp]:t.ensure}),yp=t=>{const e=gp(t);return function(){const r=Object.create(e);return r[up]=!1===t.single?arguments:arguments[0],r}},wp=t=>{const e={...gp(t),[Yd]:Yd,_tag:t.op,get[t.prop](){return this[up]},toJSON(){return{_id:"MicroExit",_tag:t.op,[t.prop]:this[up]}},[U](e){return Tp(e)&&e._tag===t.op&&J(this[up],e[up])},[j](){return q(this,x(D(t.op))(A(this[up])))}};return function(t){const r=Object.create(e);return r[up]=t,r[lp]=void 0,r[fp]=void 0,r[bp]=void 0,r}},_p=wp({op:"Success",prop:"value",eval(t){const e=t.getCont(lp);return e?e[lp](this[up],t):t.yieldWith(this)}}),vp=wp({op:"Failure",prop:"cause",eval(t){let e=t.getCont(fp);for(;np(this[up])&&e&&t.interruptible;)e=t.getCont(fp);return e?e[fp](this[up],t):t.yieldWith(this)}}),Op=t=>vp(((t,e=[])=>new Xd(t,e))(t)),Mp=yp({op:"Suspend",eval(t){return this[up]()}}),Ip=yp({op:"Yield",eval(t){let e=!1;return t.getRef(zp).scheduleTask((()=>{e||t.evaluate(qp)}),this[up]??0),t.yieldWith((()=>{e=!0}))}})(0),Ep=_p(void 0),kp=t=>Mp((()=>{try{return _p(t.try())}catch(e){return Op(t.catch(e))}})),Fp=t=>Cp((function(e,r){try{t.try(r).then((t=>e(_p(t))),(r=>e(Op(t.catch(r)))))}catch(r){e(Op(t.catch(r)))}}),0!==t.try.length),Np=yp({op:"WithMicroFiber",eval(t){return this[up](t)}}),Cp=yp({op:"Async",single:!1,eval(t){const e=this[up][0];let r=!1,n=!1;const s=this[up][1]?new AbortController:void 0,i=e((e=>{r||(r=!0,n?t.evaluate(e):n=e)}),s?.signal);return!1!==n?n:(n=!0,t._yielded=()=>{r=!0},void 0===s&&void 0===i||t._stack.push(jp((()=>(r=!0,s?.abort(),i??qp)))),dp)}}),jp=yp({op:"AsyncFinalizer",ensure(t){t.interruptible&&(t.interruptible=!1,t._stack.push(Qp(!0)))},contE(t,e){return np(t)?xp(this[up](),(()=>vp(t))):vp(t)}}),Ap=(...t)=>Mp((()=>Rp(1===t.length?t[0]():t[1].call(t[0])))),Rp=yp({op:"Iterator",contA(t,e){const r=this[up].next(t);return r.done?_p(r.value):(e._stack.push(this),E(r.value))},eval(t){return this[lp](void 0,t)}}),xp=t(2,((t,e)=>{const r=Object.create($p);return r[up]=t,r[lp]=e,r})),$p=gp({op:"OnSuccess",eval(t){return t._stack.push(this),this[up]}}),Tp=t=>m(t,Yd),Lp=_p,Dp=vp,Pp=Dp(rp()),Bp=t=>Dp(((t,e=[])=>new tp(t,e))(t)),qp=Lp(void 0),Up="setImmediate"in globalThis?globalThis.setImmediate:t=>setTimeout(t,0);class Jp{tasks=[];running=!1;scheduleTask(t,e){this.tasks.push(t),this.running||(this.running=!0,Up(this.afterScheduled))}afterScheduled=()=>{this.running=!1,this.runTasks()};runTasks(){const t=this.tasks;this.tasks=[];for(let e=0,r=t.length;e<r;e++)t[e]()}shouldYield(t){return t.currentOpCount>=t.getRef(Vp)}flush(){for(;this.tasks.length>0;)this.runTasks()}}const Wp=t(2,((t,e)=>Np((r=>{const n=r.context;return r.context=e(n),Kp(t,(()=>(r.context=n,Ep)))})))),Gp=t(2,((t,e)=>Wp(t,jr(e))));class Vp extends(Ar()("effect/Micro/currentMaxOpsBeforeYield",{defaultValue:()=>2048})){}class zp extends(Ar()("effect/Micro/currentScheduler",{defaultValue:()=>new Jp})){}const Hp=t(2,((t,e)=>{const r=Object.create(Yp);return r[up]=t,r[lp]=e.onSuccess,r[fp]=e.onFailure,r})),Yp=gp({op:"OnSuccessAndFailure",eval(t){return t._stack.push(this),this[up]}}),Kp=t(2,((t,e)=>Xp((r=>Hp(r(t),{onFailure:t=>xp(e(Dp(t)),(()=>vp(t))),onSuccess:t=>xp(e(Lp(t)),(()=>_p(t)))}))))),Qp=yp({op:"SetInterruptible",ensure(t){if(t.interruptible=this[up],t._interrupted&&t.interruptible)return()=>Pp}}),Zp=t=>Np((e=>e.interruptible?t:(e.interruptible=!0,e._stack.push(Qp(!1)),e._interrupted?Pp:t))),Xp=t=>Np((r=>r.interruptible?(r.interruptible=!1,r._stack.push(Qp(!0)),t(Zp)):t(e)));class tm{scheduleDrain;running=!1;tasks=new em;constructor(t){this.scheduleDrain=t}starveInternal=t=>{const e=this.tasks.buckets;this.tasks.buckets=[];for(const[t,r]of e)for(let t=0;t<r.length;t++)r[t]();0===this.tasks.buckets.length?this.running=!1:this.starve(t)};starve(t=0){this.scheduleDrain(t,this.starveInternal)}scheduleTask(t,e){this.tasks.scheduleTask(t,e),this.running||(this.running=!0,this.starve())}static cached(t){const e=new tm(t),r=new WeakMap;return n=>{if(void 0===n)return e;let s=r.get(n);return void 0===s&&(s=new tm(t),r.set(n,s)),s}}}class em{buckets=[];scheduleTask(t,e){const r=this.buckets.length;let n,s=0;for(;s<r&&this.buckets[s][0]<=e;s++)n=this.buckets[s];n&&n[0]===e?n[1].push(t):s===r?this.buckets.push([e,[t]]):this.buckets.splice(s,0,[e,[t]])}}class rm{maxNextTickBeforeTimer;getRunner=tm.cached(((t,e)=>{t>=this.maxNextTickBeforeTimer?setTimeout((()=>e(0)),0):Promise.resolve(void 0).then((()=>e(t+1)))}));constructor(t){this.maxNextTickBeforeTimer=t}shouldYield(t){return t.currentOpCount>t.getFiberRef(lh)&&t.getFiberRef(hh)}scheduleTask(t,e,r){this.getRunner(r).scheduleTask(t,e)}}const nm=f(Symbol.for("effect/Scheduler/defaultScheduler"),(()=>new rm(2048))),sm=f(Symbol.for("effect/FiberRef/currentScheduler"),(()=>nh(nm))),im=f(Symbol.for("effect/FiberRef/currentRequestMap"),(()=>nh(new Map))),om=(t,e,r,n)=>{switch(t){case void 0:return e();case"unbounded":return r();case"inherit":return Zu(mh,(t=>"unbounded"===t?r():t>1?n(t):e()));default:return t>1?n(t):e()}},cm="InterruptSignal",am="Stateful",um="Resume",hm="YieldNow",lm=t=>({_tag:cm,cause:t}),fm=t=>({_tag:am,onFiber:t}),bm=t=>({_tag:um,effect:t}),dm=Symbol.for("effect/FiberScope");class pm{[dm]=dm;fiberId=Ni;roots=new Set;add(t,e){this.roots.add(e),e.addObserver((()=>{this.roots.delete(e)}))}}class mm{fiberId;parent;[dm]=dm;constructor(t,e){this.fiberId=t,this.parent=e}add(t,e){this.parent.tell(fm((t=>{t.addChild(e),e.addObserver((()=>{t.removeChild(e)}))})))}}const Sm=f(Symbol.for("effect/FiberScope/Global"),(()=>new pm)),gm=Symbol.for("effect/Fiber"),ym={_E:t=>t,_A:t=>t},wm=Symbol.for("effect/Fiber"),_m=t=>t.await,vm=t=>t.inheritAll,Om=t=>Bu(hu(t.await),t.inheritAll),Mm="effect/FiberCurrent",Im=Symbol.for("effect/Logger"),Em={_Message:t=>t,_Output:t=>t},km=t=>({[Im]:Em,log:t,pipe(){return rt(this,arguments)}}),Fm=/^[^\s"=]*$/,Nm=(t,e)=>({annotations:r,cause:n,date:s,fiberId:i,logLevel:o,message:c,spans:a})=>{const u=(e,r)=>`${Tb(e)}=${(e=>e.match(Fm)?e:t(e))(r)}`,h=(t,e)=>" "+u(t,e);let l=u("timestamp",s.toISOString());l+=h("level",o.label),l+=h("fiber",Fi(i));const f=(b=c,Array.isArray(b)?b:[b]);var b;for(let t=0;t<f.length;t++)l+=h("message",K(f[t],e));(t=>t._tag===Tc)(n)||(l+=h("cause",ga(n,{renderErrorCause:!0})));for(const t of a)l+=" "+Lb(s.getTime())(t);for(const[t,n]of r)l+=h(t,K(n,e));return l},Cm=km(Nm((t=>`"${t.replace(/\\([\s\S])|(")/g,"\\$1$2")}"`)));"object"==typeof process&&null!==process&&"object"==typeof process.stdout&&null!==process.stdout&&process;const jm="effect/MetricBoundaries",Am=Symbol.for(jm);class Rm{values;[Am]=Am;constructor(t){this.values=t,this._hash=c(D(jm),x(B(this.values)))}_hash;[j](){return this._hash}[U](t){return xm(t)&&J(this.values,t.values)}pipe(){return rt(this,arguments)}}const xm=t=>m(t,Am),$m=t=>{const e=c(t,Me(Ur(Number.POSITIVE_INFINITY)),rr);return new Rm(e)},Tm=t=>c(we(t.count-1,(e=>t.start*Math.pow(t.factor,e))),Hr,$m),Lm=Symbol.for("effect/MetricKeyType"),Dm="effect/MetricKeyType/Counter",Pm=Symbol.for(Dm),Bm=Symbol.for("effect/MetricKeyType/Frequency"),qm=Symbol.for("effect/MetricKeyType/Gauge"),Um="effect/MetricKeyType/Histogram",Jm=Symbol.for(Um),Wm=Symbol.for("effect/MetricKeyType/Summary"),Gm={_In:t=>t,_Out:t=>t};class Vm{incremental;bigint;[Lm]=Gm;[Pm]=Pm;constructor(t,e){this.incremental=t,this.bigint=e,this._hash=D(Dm)}_hash;[j](){return this._hash}[U](t){return Hm(t)}pipe(){return rt(this,arguments)}}class zm{boundaries;[Lm]=Gm;[Jm]=Jm;constructor(t){this.boundaries=t,this._hash=c(D(Um),x(A(this.boundaries)))}_hash;[j](){return this._hash}[U](t){return Ym(t)&&J(this.boundaries,t.boundaries)}pipe(){return rt(this,arguments)}}const Hm=t=>m(t,Pm),Ym=t=>m(t,Jm),Km=Symbol.for("effect/MetricKey"),Qm={_Type:t=>t},Zm=tr(J);class Xm{name;keyType;description;tags;[Km]=Qm;constructor(t,e,r,n=[]){this.name=t,this.keyType=e,this.description=r,this.tags=n,this._hash=c(D(this.name+this.description),x(A(this.keyType)),x(B(this.tags)))}_hash;[j](){return this._hash}[U](t){return tS(t)&&this.name===t.name&&J(this.keyType,t.keyType)&&J(this.description,t.description)&&Zm(this.tags,t.tags)}pipe(){return rt(this,arguments)}}const tS=t=>m(t,Km),eS=t(2,((t,e)=>0===e.length?t:new Xm(t.name,t.keyType,t.description,Ge(t.tags,e)))),rS=Symbol.for("effect/MetricState"),nS="effect/MetricState/Counter",sS=Symbol.for(nS),iS="effect/MetricState/Frequency",oS=Symbol.for(iS),cS="effect/MetricState/Gauge",aS=Symbol.for(cS),uS="effect/MetricState/Histogram",hS=Symbol.for(uS),lS="effect/MetricState/Summary",fS=Symbol.for(lS),bS={_A:t=>t};class dS{count;[rS]=bS;[sS]=sS;constructor(t){this.count=t}[j](){return c(A(nS),x(A(this.count)),q(this))}[U](t){return wS(t)&&this.count===t.count}pipe(){return rt(this,arguments)}}const pS=tr(J);class mS{occurrences;[rS]=bS;[oS]=oS;constructor(t){this.occurrences=t}_hash;[j](){return c(D(iS),x(B(_e(this.occurrences.entries()))),q(this))}[U](t){return _S(t)&&pS(_e(this.occurrences.entries()),_e(t.occurrences.entries()))}pipe(){return rt(this,arguments)}}class SS{value;[rS]=bS;[aS]=aS;constructor(t){this.value=t}[j](){return c(A(cS),x(A(this.value)),q(this))}[U](t){return vS(t)&&this.value===t.value}pipe(){return rt(this,arguments)}}class gS{buckets;count;min;max;sum;[rS]=bS;[hS]=hS;constructor(t,e,r,n,s){this.buckets=t,this.count=e,this.min=r,this.max=n,this.sum=s}[j](){return c(A(uS),x(A(this.buckets)),x(A(this.count)),x(A(this.min)),x(A(this.max)),x(A(this.sum)),q(this))}[U](t){return OS(t)&&J(this.buckets,t.buckets)&&this.count===t.count&&this.min===t.min&&this.max===t.max&&this.sum===t.sum}pipe(){return rt(this,arguments)}}class yS{error;quantiles;count;min;max;sum;[rS]=bS;[fS]=fS;constructor(t,e,r,n,s,i){this.error=t,this.quantiles=e,this.count=r,this.min=n,this.max=s,this.sum=i}[j](){return c(A(lS),x(A(this.error)),x(A(this.quantiles)),x(A(this.count)),x(A(this.min)),x(A(this.max)),x(A(this.sum)),q(this))}[U](t){return MS(t)&&this.error===t.error&&J(this.quantiles,t.quantiles)&&this.count===t.count&&this.min===t.min&&this.max===t.max&&this.sum===t.sum}pipe(){return rt(this,arguments)}}const wS=t=>m(t,sS),_S=t=>m(t,oS),vS=t=>m(t,aS),OS=t=>m(t,hS),MS=t=>m(t,fS),IS=Symbol.for("effect/MetricHook"),ES={_In:t=>t,_Out:t=>t},kS=t=>({[IS]:ES,pipe(){return rt(this,arguments)},...t}),FS=BigInt(0),NS=(t,e,r)=>{const n=r.length;if(!Ee(e))return[];const s=e[0],i=e.slice(1),o=CS(t,n,se(),0,s,r),c=ze(o);return i.forEach((e=>{c.push(CS(t,n,o.value,o.consumed,e,o.rest))})),He(c,(t=>[t.quantile,t.value]))},CS=(t,e,r,n,s,i)=>{let o=t,c=e,a=r,u=n,h=s,l=i,f=t,b=e,d=r,p=n,m=s,S=i;for(;;){if(!Ee(l))return{quantile:h,value:se(),consumed:u,rest:[]};if(1===h)return{quantile:h,value:ie(Ae(l)),consumed:u+l.length,rest:[]};const t=je(l),e=xe(l,(e=>e===t)),r=h*c,n=o/2*r,s=u+e[0].length,i=Math.abs(s-r);if(s<r-n)f=o,b=c,d=Ce(l),p=s,m=h,S=e[1],o=f,c=b,a=d,u=p,h=m,l=S;else{if(s>r+n)return{quantile:h,value:oe(a)?ie(t):a,consumed:u,rest:l};switch(a._tag){case"None":f=o,b=c,d=Ce(l),p=s,m=h,S=e[1],o=f,c=b,a=d,u=p,h=m,l=S;continue;case"Some":if(i<Math.abs(r-a.value)){f=o,b=c,d=Ce(l),p=s,m=h,S=e[1],o=f,c=b,a=d,u=p,h=m,l=S;continue}return{quantile:h,value:ie(a.value),consumed:u,rest:l}}}}throw new Error("BUG: MetricHook.resolveQuantiles - please report an issue at https://github.com/Effect-TS/effect/issues")},jS=Symbol.for("effect/MetricPair"),AS={_Type:t=>t},RS=(t,e)=>({[jS]:AS,metricKey:t,metricState:e,pipe(){return rt(this,arguments)}}),xS=Symbol.for("effect/MetricRegistry");class $S{[xS]=xS;map=ql();snapshot(){const t=[];for(const[e,r]of this.map)t.push(RS(e,r.get()));return t}get(t){const e=c(this.map,Ul(t),be);if(null==e){if(Hm(t.keyType))return this.getCounter(t);if(m(t.keyType,qm))return this.getGauge(t);if(m(t.keyType,Bm))return this.getFrequency(t);if(Ym(t.keyType))return this.getHistogram(t);if((t=>m(t,Wm))(t.keyType))return this.getSummary(t);throw new Error("BUG: MetricRegistry.get - unknown MetricKeyType - please report an issue at https://github.com/Effect-TS/effect/issues")}return e}getCounter(t){let e=c(this.map,Ul(t),be);if(null==e){const r=(t=>{let e=t.keyType.bigint?FS:0;const r=t.keyType.incremental?t.keyType.bigint?t=>t>=FS:t=>t>=0:()=>!0,n=t=>{r(t)&&(e+=t)};return kS({get:()=>new dS(e),update:n,modify:n})})(t);c(this.map,Wl(t))||c(this.map,Gl(t,r)),e=r}return e}getFrequency(t){let e=c(this.map,Ul(t),be);if(null==e){const r=(t=>{const e=new Map;for(const r of t.keyType.preregisteredWords)e.set(r,0);const r=t=>{const r=e.get(t)??0;e.set(t,r+1)};return kS({get:()=>new mS(e),update:r,modify:r})})(t);c(this.map,Wl(t))||c(this.map,Gl(t,r)),e=r}return e}getGauge(t){let e=c(this.map,Ul(t),be);if(null==e){const r=((t,e)=>{let r=e;return kS({get:()=>new SS(r),update:t=>{r=t},modify:t=>{r+=t}})})(0,t.keyType.bigint?BigInt(0):0);c(this.map,Wl(t))||c(this.map,Gl(t,r)),e=r}return e}getHistogram(t){let e=c(this.map,Ul(t),be);if(null==e){const r=(t=>{const e=t.keyType.boundaries.values,r=e.length,n=new Uint32Array(r+1),s=new Float64Array(r);let i=0,o=0,a=Number.MAX_VALUE,u=Number.MIN_VALUE;c(e,Le(sr),He(((t,e)=>{s[e]=t})));const h=t=>{let e=0,c=r;for(;e!==c;){const r=Math.floor(e+(c-e)/2);t<=s[r]?c=r:e=r,c===e+1&&(t<=s[e]?c=e:e=c)}n[e]=n[e]+1,i+=1,o+=t,t<a&&(a=t),t>u&&(u=t)},l=()=>{const t=ye(r);let e=0;for(let i=0;i<r;i++)e+=n[i],t[i]=[s[i],e];return t};return kS({get:()=>{return t={buckets:l(),count:i,min:a,max:u,sum:o},new gS(t.buckets,t.count,t.min,t.max,t.sum);var t},update:h,modify:h})})(t);c(this.map,Wl(t))||c(this.map,Gl(t,r)),e=r}return e}getSummary(t){let e=c(this.map,Ul(t),be);if(null==e){const r=(t=>{const{error:e,maxAge:r,maxSize:n,quantiles:s}=t.keyType,i=c(s,Le(sr)),o=ye(n);let a=0,u=0,h=0,l=0,f=0;const b=t=>{const s=[];let c=0;for(;c!==n-1;){const e=o[c];if(null!=e){const[n,i]=e,o=Rn(t-n);Wn(o,Nn)&&Jn(o,r)&&s.push(i)}c+=1}return NS(e,i,Le(s,sr))},d=(t,e)=>{n>0&&(a+=1,o[a%n]=[e,t]),l=0===u?t:Math.min(l,t),f=0===u?t:Math.max(f,t),u+=1,h+=t};return kS({get:()=>{return t={error:e,quantiles:b(Date.now()),count:u,min:l,max:f,sum:h},new yS(t.error,t.quantiles,t.count,t.min,t.max,t.sum);var t},update:([t,e])=>d(t,e),modify:([t,e])=>d(t,e)})})(t);c(this.map,Wl(t))||c(this.map,Gl(t,r)),e=r}return e}}const TS=Symbol.for("effect/Metric"),LS={_Type:t=>t,_In:t=>t,_Out:t=>t},DS=f(Symbol.for("effect/Metric/globalMetricRegistry"),(()=>new $S)),PS=function(t,e,r,n){const s=Object.assign((t=>Nu(t,(t=>GS(s,t)))),{[TS]:LS,keyType:t,unsafeUpdate:e,unsafeValue:r,unsafeModify:n,register(){return this.unsafeValue([]),this},pipe(){return rt(this,arguments)}});return s},BS=(t,e)=>qS(((t,e)=>new Xm(t,(t=>new Vm(t?.incremental??!1,t?.bigint??!1))(e),fe(e?.description)))(t,e)),qS=t=>{let e;const r=new WeakMap,n=n=>{if(0===n.length)return void 0!==e||(e=DS.get(t)),e;let s=r.get(n);return void 0!==s||(s=DS.get(eS(t,n)),r.set(n,s)),s};return PS(t.keyType,((t,e)=>n(e).update(t)),(t=>n(t).get()),((t,e)=>n(e).modify(t)))},US=(t,e,r)=>qS(((t,e,r)=>new Xm(t,(t=>new zm(t))(e),fe(r)))(t,e,r)),JS=t(3,((t,e,r)=>WS(t,[ad(e,r)]))),WS=t(2,((t,e)=>PS(t.keyType,((r,n)=>t.unsafeUpdate(r,Ge(e,n))),(r=>t.unsafeValue(Ge(e,r))),((r,n)=>t.unsafeModify(r,Ge(e,n)))))),GS=t(2,((t,e)=>Zu(wh,(r=>Fu((()=>t.unsafeUpdate(e,r))))))),VS=t(2,((t,e)=>Zu(im,(r=>Fu((()=>{if(r.has(t)){const n=r.get(t);n.state.completed||(n.state.completed=!0,al(n.result,e))}})))))),zS=Symbol.for("effect/Supervisor"),HS={_T:t=>t};class YS{underlying;value0;[zS]=HS;constructor(t,e){this.underlying=t,this.value0=e}get value(){return this.value0}onStart(t,e,r,n){this.underlying.onStart(t,e,r,n)}onEnd(t,e){this.underlying.onEnd(t,e)}onEffect(t,e){this.underlying.onEffect(t,e)}onSuspend(t){this.underlying.onSuspend(t)}onResume(t){this.underlying.onResume(t)}map(t){return new YS(this,c(this.value,wu(t)))}zip(t){return new KS(this,t)}}class KS{left;right;_tag="Zip";[zS]=HS;constructor(t,e){this.left=t,this.right=e}get value(){return Pu(this.left.value,this.right.value)}onStart(t,e,r,n){this.left.onStart(t,e,r,n),this.right.onStart(t,e,r,n)}onEnd(t,e){this.left.onEnd(t,e),this.right.onEnd(t,e)}onEffect(t,e){this.left.onEffect(t,e),this.right.onEffect(t,e)}onSuspend(t){this.left.onSuspend(t),this.right.onSuspend(t)}onResume(t){this.left.onResume(t),this.right.onResume(t)}map(t){return new YS(this,c(this.value,wu(t)))}zip(t){return new KS(this,t)}}const QS=t=>m(t,zS)&&S(t,"Zip");class ZS{effect;[zS]=HS;constructor(t){this.effect=t}get value(){return this.effect}onStart(t,e,r,n){}onEnd(t,e){}onEffect(t,e){}onSuspend(t){}onResume(t){}map(t){return new YS(this,c(this.value,wu(t)))}zip(t){return new KS(this,t)}onRun(t,e){return t()}}const XS=f("effect/Supervisor/none",(()=>new ZS(Au))),tg="Empty",eg="AddSupervisor",rg="RemoveSupervisor",ng="AndThen",sg={_tag:tg},ig=(t,e)=>({_tag:ng,first:t,second:e}),og=(t,e)=>J(t,e)?XS:QS(t)?og(t.left,e).zip(og(t.right,e)):t,cg=t=>J(t,XS)?Xs():QS(t)?c(cg(t.left),oi(cg(t.right))):ti(t),ag=zo({empty:sg,patch:(t,e)=>((t,e)=>{let r=t,n=e;for(;on(n);){const t=un(n);switch(t._tag){case tg:n=bn(n);break;case eg:r=r.zip(t.supervisor),n=bn(n);break;case rg:r=og(r,t.supervisor),n=bn(n);break;case ng:n=Zr(t.first)(Zr(t.second)(bn(n)))}}return r})(e,Ur(t)),combine:ig,diff:(t,e)=>{if(J(t,e))return sg;const r=cg(t),n=cg(e),s=c(n,ii(r),ci(sg,((t,e)=>ig(t,{_tag:eg,supervisor:e})))),i=c(r,ii(n),ci(sg,((t,e)=>ig(t,{_tag:rg,supervisor:e}))));return ig(s,i)}}),ug=BS("effect_fiber_started",{incremental:!0}),hg=BS("effect_fiber_active"),lg=BS("effect_fiber_successes",{incremental:!0}),fg=BS("effect_fiber_failures",{incremental:!0}),bg=JS(US("effect_fiber_lifetimes",Tm({start:.5,factor:2,count:35})),"time_unit","milliseconds"),dg="Continue",pg="Yield",mg={_E:t=>t,_A:t=>t},Sg=t=>{throw new Error(`BUG: FiberRuntime - ${K(t)} - please report an issue at https://github.com/Effect-TS/effect/issues`)},gg=Symbol.for("effect/internal/fiberRuntime/YieldedOp"),yg=f("effect/internal/fiberRuntime/yieldedOpChannel",(()=>({currentOp:null}))),wg={[ct]:(t,e,r)=>N((()=>e.effect_instruction_i1(r))),OnStep:(t,e,r)=>zh(zh(r)),[at]:(t,e,r)=>N((()=>e.effect_instruction_i2(r))),[St]:(t,e,r)=>(t.patchRuntimeFlags(t.currentRuntimeFlags,e.patch),sc(t.currentRuntimeFlags)&&t.isInterrupted()?Jh(t.getInterruptedCause()):zh(r)),[bt]:(t,e,r)=>(N((()=>e.effect_instruction_i2(r))),N((()=>e.effect_instruction_i0()))?(t.pushStack(e),N((()=>e.effect_instruction_i1()))):Au),[dt]:(t,e,r)=>{for(;;){const n=N((()=>e.effect_instruction_i0.next(r)));if(n.done)return zh(n.value);const s=E(n.value);if(!Dh(s))return t.pushStack(e),s;if("Failure"===s._tag)return s;r=s.value}}},_g={[cm]:(t,e,r,n)=>(t.processNewInterruptSignal(n.cause),sc(e)?Jh(n.cause):r),[um]:()=>{throw new Error("It is illegal to have multiple concurrent run loops in a single fiber")},[am]:(t,e,r,n)=>(n.onFiber(t,zd(e)),r),[hm]:(t,e,r)=>au(Du(),(()=>r))},vg=gt();class Og extends Bb{[gm]=ym;[wm]=mg;_fiberRefs;_fiberId;_queue=new Array;_children=null;_observers=new Array;_running=!1;_stack=[];_asyncInterruptor=null;_asyncBlockingOn=null;_exitValue=null;_steps=[];_isYielding=!1;currentRuntimeFlags;currentOpCount=0;currentSupervisor;currentScheduler;currentTracer;currentSpan;currentContext;currentDefaultServices;constructor(t,e,r){if(super(),this.currentRuntimeFlags=r,this._fiberId=t,this._fiberRefs=e,uc(r)){const t=this.getFiberRef(wh);ug.unsafeUpdate(1,t),hg.unsafeUpdate(1,t)}this.refreshRefCache()}commit(){return Om(this)}id(){return this._fiberId}resume(t){this.tell(bm(t))}get status(){return this.ask(((t,e)=>e))}get runtimeFlags(){return this.ask(((t,e)=>e._tag===Dd?t.currentRuntimeFlags:e.runtimeFlags))}scope(){return new mm((t=this).id(),t);var t}get children(){return this.ask((t=>Array.from(t.getChildren())))}getChildren(){return null===this._children&&(this._children=new Set),this._children}getInterruptedCause(){return this.getFiberRef(vh)}fiberRefs(){return this.ask((t=>t.getFiberRefs()))}ask(t){return ku((()=>{const e=Xh(this._fiberId);return this.tell(fm(((r,n)=>{al(e,Fu((()=>t(r,n))))}))),rl(e)}))}tell(t){this._queue.push(t),this._running||(this._running=!0,this.drainQueueLaterOnExecutor())}get await(){return za((t=>{const e=e=>t(Eu(e));if(null===this._exitValue)return this.tell(fm((t=>{null!==t._exitValue?e(this._exitValue):t.addObserver(e)}))),Fu((()=>this.tell(fm((t=>{t.removeObserver(e)})))));e(this._exitValue)}),this.id())}get inheritAll(){return Ba(((t,e)=>{const r=t.id(),n=t.getFiberRefs(),s=e.runtimeFlags,i=this.getFiberRefs(),o=wb(n,r,i);t.setFiberRefs(o);const a=t.getFiberRef(ty);return(t=>{const e=new Ta(ft);return e.effect_instruction_i0=t,e.effect_instruction_i1=void 0,e})(c(lc(s,a),pc(1),pc(16)))}))}get poll(){return Fu((()=>fe(this._exitValue)))}unsafePoll(){return this._exitValue}interruptAsFork(t){return Fu((()=>this.tell(lm(zc(t)))))}unsafeInterruptAsFork(t){this.tell(lm(zc(t)))}addObserver(t){null!==this._exitValue?t(this._exitValue):this._observers.push(t)}removeObserver(t){this._observers=this._observers.filter((e=>e!==t))}getFiberRefs(){return this.setFiberRef(ty,this.currentRuntimeFlags),this._fiberRefs}unsafeDeleteFiberRef(t){this._fiberRefs=Ob(this._fiberRefs,t)}getFiberRef(t){return this._fiberRefs.locals.has(t)?this._fiberRefs.locals.get(t)[0][1]:t.initial}setFiberRef(t,e){this._fiberRefs=Eb(this._fiberRefs,{fiberId:this._fiberId,fiberRef:t,value:e}),this.refreshRefCache()}refreshRefCache(){this.currentDefaultServices=this.getFiberRef(db),this.currentTracer=this.currentDefaultServices.unsafeMap.get(cb.key),this.currentSupervisor=this.getFiberRef(ey),this.currentScheduler=this.getFiberRef(sm),this.currentContext=this.getFiberRef(uh),this.currentSpan=this.currentContext.unsafeMap.get(ab.key)}setFiberRefs(t){this._fiberRefs=t,this.refreshRefCache()}addChild(t){this.getChildren().add(t)}removeChild(t){this.getChildren().delete(t)}transferChildren(t){const e=this._children;if(this._children=null,null!==e&&e.size>0)for(const r of e)null===r._exitValue&&t.add(this.currentRuntimeFlags,r)}drainQueueOnCurrentThread(){let t=!0;for(;t;){let e=dg;const r=globalThis[Mm];globalThis[Mm]=this;try{for(;e===dg;)e=0===this._queue.length?"Done":this.evaluateMessageWhileSuspended(this._queue.splice(0,1)[0])}finally{this._running=!1,globalThis[Mm]=r}this._queue.length>0&&!this._running?(this._running=!0,e===pg?(this.drainQueueLaterOnExecutor(),t=!1):t=!0):t=!1}}drainQueueLaterOnExecutor(){this.currentScheduler.scheduleTask(this.run,this.getFiberRef(hh),this)}drainQueueWhileRunning(t,e){let r=e;for(;this._queue.length>0;){const e=this._queue.splice(0,1)[0];r=_g[e._tag](this,t,r,e)}return r}isInterrupted(){return!((t=this.getFiberRef(vh))._tag===Tc||ma(t,!0,((t,e)=>{switch(e._tag){case Tc:return ie(t);case $c:case Lc:case Dc:return ie(!1);default:return se()}})));var t}addInterruptedCause(t){const e=this.getFiberRef(vh);this.setFiberRef(vh,Yc(e,t))}processNewInterruptSignal(t){this.addInterruptedCause(t),this.sendInterruptSignalToAllChildren()}sendInterruptSignalToAllChildren(){if(null===this._children||0===this._children.size)return!1;let t=!1;for(const e of this._children)e.tell(lm(zc(this.id()))),t=!0;return t}interruptAllChildren(){if(this.sendInterruptSignalToAllChildren()){const t=this._children.values();this._children=null;let e=!1;return xu({while:()=>!e,body:()=>{const r=t.next();return r.done?Fu((()=>{e=!0})):Ja(r.value.await)},step:()=>{}})}return null}reportExitValue(t){if(uc(this.currentRuntimeFlags)){const e=this.getFiberRef(wh),r=this.id().startTimeMillis,n=Date.now();switch(bg.unsafeUpdate(n-r,e),hg.unsafeUpdate(-1,e),t._tag){case ut:lg.unsafeUpdate(1,e);break;case it:fg.unsafeUpdate(1,e)}}if("Failure"===t._tag){const e=this.getFiberRef(gh);Xc(t.cause)||"Some"!==e._tag||this.log("Fiber terminated with an unhandled error",t.cause,e)}}setExitValue(t){this._exitValue=t,this.reportExitValue(t);for(let e=this._observers.length-1;e>=0;e--)this._observers[e](t);this._observers=[]}getLoggers(){return this.getFiberRef(kg)}log(t,e,r){const n=ce(r)?r.value:this.getFiberRef(bh),s=this.getFiberRef(Mg);if($b(s,n))return;const i=this.getFiberRef(dh),o=this.getFiberRef(fh),c=this.getLoggers(),a=this.getFiberRefs();if(ri(c)>0){const r=Fr(this.getFiberRef(db),pf),s=new Date(r.unsafeCurrentTimeMillis());((t,e)=>{const r=tt.fiberRefs;tt.fiberRefs=t;try{return e()}finally{tt.fiberRefs=r}})(a,(()=>{for(const r of c)r.log({fiberId:this.id(),logLevel:n,message:t,cause:e,context:a,spans:i,annotations:o,date:s})}))}}evaluateMessageWhileSuspended(t){switch(t._tag){case hm:return pg;case cm:return this.processNewInterruptSignal(t.cause),null!==this._asyncInterruptor&&(this._asyncInterruptor(Jh(t.cause)),this._asyncInterruptor=null),dg;case um:return this._asyncInterruptor=null,this._asyncBlockingOn=null,this.evaluateEffect(t.effect),dg;case am:return t.onFiber(this,null!==this._exitValue?Vd:new Wd(this.currentRuntimeFlags,this._asyncBlockingOn)),dg;default:return Sg(t)}}evaluateEffect(t){this.currentSupervisor.onResume(this);try{let e=sc(this.currentRuntimeFlags)&&this.isInterrupted()?Jh(this.getInterruptedCause()):t;for(;null!==e;){const t=this.runLoop(e);if(t===gg){const t=yg.currentOp;yg.currentOp=null,t._op===mt?oc(this.currentRuntimeFlags,32)?(this.tell({_tag:hm}),this.tell(bm(Hh)),e=null):e=Hh:t._op===nt&&(e=null)}else{this.currentRuntimeFlags=c(this.currentRuntimeFlags,nc(16));const r=this.interruptAllChildren();null!==r?e=au(r,(()=>t)):(0===this._queue.length?this.setExitValue(t):this.tell(bm(t)),e=null)}}}finally{this.currentSupervisor.onSuspend(this)}}start(t){if(this._running)this.tell(bm(t));else{this._running=!0;const e=globalThis[Mm];globalThis[Mm]=this;try{this.evaluateEffect(t)}finally{this._running=!1,globalThis[Mm]=e,this._queue.length>0&&this.drainQueueLaterOnExecutor()}}}startFork(t){this.tell(bm(t))}patchRuntimeFlags(t,e){const r=fc(t,e);return globalThis[Mm]=this,this.currentRuntimeFlags=r,r}initiateAsync(t,e){let r=!1;const n=t=>{r||(r=!0,this.tell(bm(t)))};sc(t)&&(this._asyncInterruptor=n);try{e(n)}catch(t){n(su(Vc(t)))}}pushStack(t){this._stack.push(t),"OnStep"===t._op&&this._steps.push({refs:this.getFiberRefs(),flags:this.currentRuntimeFlags})}popStack(){const t=this._stack.pop();if(t)return"OnStep"===t._op&&this._steps.pop(),t}getNextSuccessCont(){let t=this.popStack();for(;t;){if(t._op!==ot)return t;t=this.popStack()}}getNextFailCont(){let t=this.popStack();for(;t;){if(t._op!==ct&&t._op!==bt&&t._op!==dt)return t;t=this.popStack()}}[lt](t){return Fu((()=>Nr(this.currentContext,t)))}Left(t){return ru(t.left)}None(t){return ru(new $h)}Right(t){return zh(t.right)}Some(t){return zh(t.value)}Micro(t){return Ga((e=>{let r=e;const n=(t=>{const e=new op(zp.context(new Jp));return e.evaluate(t),e})(Gp(t,this.currentContext));return n.addObserver((t=>{if("Success"===t._tag)return r(zh(t.value));switch(t.cause._tag){case"Interrupt":return r(Jh(zc(Ni)));case"Fail":return r(ru(t.cause.error));case"Die":return r(Za(t.cause.defect))}})),Ga((t=>{r=()=>{t(Au)},n.unsafeInterrupt()}))}))}[ht](t){const e=N((()=>t.effect_instruction_i0())),r=this.getNextSuccessCont();return void 0!==r?(r._op in wg||Sg(r),wg[r._op](this,r,e)):(yg.currentOp=zh(e),gg)}[ut](t){const e=t,r=this.getNextSuccessCont();return void 0!==r?(r._op in wg||Sg(r),wg[r._op](this,r,e.effect_instruction_i0)):(yg.currentOp=e,gg)}[it](t){const e=t.effect_instruction_i0,r=this.getNextFailCont();if(void 0===r)return yg.currentOp=Jh(e),gg;switch(r._op){case ot:case at:return sc(this.currentRuntimeFlags)&&this.isInterrupted()?Jh(sa(e)):N((()=>r.effect_instruction_i1(e)));case"OnStep":return sc(this.currentRuntimeFlags)&&this.isInterrupted()?Jh(sa(e)):zh(Jh(e));case St:return this.patchRuntimeFlags(this.currentRuntimeFlags,r.patch),sc(this.currentRuntimeFlags)&&this.isInterrupted()?Jh(Yc(e,this.getInterruptedCause())):Jh(e);default:Sg(r)}}[pt](t){return N((()=>t.effect_instruction_i0(this,zd(this.currentRuntimeFlags))))}Blocked(t){const e=this.getFiberRefs(),r=this.currentRuntimeFlags;if(this._steps.length>0){const n=[],s=this._steps[this._steps.length-1];let i=this.popStack();for(;i&&"OnStep"!==i._op;)n.push(i),i=this.popStack();this.setFiberRefs(s.refs),this.currentRuntimeFlags=s.flags;const o=xd(s.refs,e),c=lc(s.flags,r);return zh(Ra(t.effect_instruction_i0,Ba((e=>{for(;n.length>0;)e.pushStack(n.pop());return e.setFiberRefs($d(e.id(),e.getFiberRefs())(o)),e.currentRuntimeFlags=fc(c)(e.currentRuntimeFlags),t.effect_instruction_i1}))))}return ju((e=>au(Rg((t=>{const e=new Ta("RunBlocked");return e.effect_instruction_i0=t,e})(t.effect_instruction_i0)),(()=>e(t.effect_instruction_i1)))))}RunBlocked(t){return pu((t=>{let e=Xi(t),r=Zi();for(;;){const[t,n]=no(e,[Oc(),Zi()],(([t,e],r)=>{const[n,s]=gc(r);return[Ic(t,n),to(e,s)]}));if(r=yc(r,t),Ki(n))return so(r);e=n}throw new Error("BUG: BlockedRequests.flatten - please report an issue at https://github.com/Effect-TS/effect/issues")})(t.effect_instruction_i0),(t=>jg((t=>Array.from(t.map))(t),(([t,e])=>{const r=new Map,n=[];for(const t of e){n.push(Gr(t));for(const e of t)r.set(e.request,e)}const s=n.flat();return eh(cy(t.runAll(n),s,(()=>s.forEach((t=>{t.listeners.interrupted=!0})))),im,r)}),!1,!1)))}[ft](t){const e=t.effect_instruction_i0,r=this.currentRuntimeFlags,n=fc(r,e);if(sc(n)&&this.isInterrupted())return Jh(this.getInterruptedCause());if(this.patchRuntimeFlags(this.currentRuntimeFlags,e),t.effect_instruction_i1){const e=lc(n,r);return this.pushStack(new $a(e,t)),N((()=>t.effect_instruction_i1(r)))}return Hh}[ct](t){return this.pushStack(t),t.effect_instruction_i0}OnStep(t){return this.pushStack(t),t.effect_instruction_i0}[ot](t){return this.pushStack(t),t.effect_instruction_i0}[at](t){return this.pushStack(t),t.effect_instruction_i0}[nt](t){return this._asyncBlockingOn=t.effect_instruction_i1,this.initiateAsync(this.currentRuntimeFlags,t.effect_instruction_i0),yg.currentOp=t,gg}[mt](t){return this._isYielding=!1,yg.currentOp=t,gg}[bt](t){const e=t.effect_instruction_i1;return(0,t.effect_instruction_i0)()?(this.pushStack(t),e()):Hh}[dt](t){return wg[dt](this,t,void 0)}[st](t){return N((()=>t.commit()))}runLoop(t){let e=t;for(this.currentOpCount=0;;){if(2&this.currentRuntimeFlags&&this.currentSupervisor.onEffect(this,e),this._queue.length>0&&(e=this.drainQueueWhileRunning(this.currentRuntimeFlags,e)),!this._isYielding){this.currentOpCount+=1;const t=this.currentScheduler.shouldYield(this);if(!1!==t){this._isYielding=!0,this.currentOpCount=0;const r=e;e=au(Du({priority:t}),(()=>r))}}try{if(e=this.currentTracer.context((()=>{if(vg!==e[xa]._V){const t=this.getFiberRef(yh);"Some"===t._tag&&this.log(`Executing an Effect versioned ${e[xa]._V} with a Runtime of version 3.21.0, you may want to dedupe the effect dependencies, you can use the language service plugin to detect this at compile time: https://github.com/Effect-TS/language-service`,Wc,t)}return this[e._op](e)}),this),e===gg){const t=yg.currentOp;return t._op===mt||t._op===nt?gg:(yg.currentOp=null,t._op===ut||t._op===it?t:Jh(Vc(t)))}}catch(t){e=e!==gg&&!m(e,"_op")||!(e._op in this)?Xa(`Not a valid effect: ${K(e)}`):m(t,Rh)?Jh(Yc(Vc(t),zc(Ni))):Za(t)}}}run=()=>{this.drainQueueOnCurrentThread()}}const Mg=f("effect/FiberRef/currentMinimumLogLevel",(()=>nh(xb))),Ig=f(Symbol.for("effect/Logger/defaultLogger"),(()=>{return t=Cm,km((e=>{const r=Nb(e.context,db);Fr(r,Qf).unsafe.log(t.log(e))}));var t})),Eg=f(Symbol.for("effect/Logger/tracerLogger"),(()=>km((({annotations:t,cause:e,context:r,fiberId:n,logLevel:s,message:i})=>{const o=Ed(Cr(Ib(r,uh),ab));if("None"===o._tag||"ExternalSpan"===o.value._tag)return;const c=Nr(Ib(r,db),pf),a={};for(const[e,r]of t)a[e]=r;a["effect.fiberId"]=Ai(n),a["effect.logLevel"]=s.label,null!==e&&"Empty"!==e._tag&&(a["effect.cause"]=ga(e,{renderErrorCause:!0})),o.value.event(K(Array.isArray(i)&&1===i.length?i[0]:i),c.unsafeCurrentTimeNanos(),a)})))),kg=f(Symbol.for("effect/FiberRef/currentLoggers"),(()=>sh(ti(Ig,Eg)))),Fg=(t,r)=>{const[n,s]=(t=>{if(Array.isArray(t)||y(t))return[t,se()];const e=Object.keys(t),r=e.length;return[e.map((e=>t[e])),ie((t=>{const n={};for(let s=0;s<r;s++)n[e[s]]=t[s];return n}))]})(t);return"validate"===r?.mode?((t,r,n)=>{const s=[];for(const e of t)s.push(tu(e));return au(Ng(s,e,{concurrency:n?.concurrency,batching:n?.batching,concurrentFinalizers:n?.concurrentFinalizers}),(t=>{const e=se(),s=t.length,i=new Array(s),o=new Array(s);let c=!1;for(let r=0;r<s;r++){const n=t[r];"Left"===n._tag?(i[r]=ie(n.left),c=!0):(o[r]=n.right,i[r]=e)}return c?ru("Some"===r._tag?r.value(i):i):n?.discard?Au:Eu("Some"===r._tag?r.value(o):o)}))})(n,s,r):"either"===r?.mode?((t,r,n)=>{const s=[];for(const e of t)s.push(tu(e));return n?.discard?Ng(s,e,{concurrency:n?.concurrency,batching:n?.batching,discard:!0,concurrentFinalizers:n?.concurrentFinalizers}):wu(Ng(s,e,{concurrency:n?.concurrency,batching:n?.batching,concurrentFinalizers:n?.concurrentFinalizers}),(t=>"Some"===r._tag?r.value(t):t))})(n,s,r):!0!==r?.discard&&"Some"===s._tag?wu(Ng(n,e,r),s.value):Ng(n,e,r)},Ng=t((t=>y(t[0])),((t,e,r)=>Ba((n=>{const s=!0===r?.batching||"inherit"===r?.batching&&n.getFiberRef(Sh);return r?.discard?om(r.concurrency,(()=>Bg(jd,r?.concurrentFinalizers)((r=>s?jg(t,((t,n)=>r(e(t,n))),!0,!1,1):pu(t,((t,n)=>r(e(t,n))))))),(()=>Bg(Ad,r?.concurrentFinalizers)((r=>jg(t,((t,n)=>r(e(t,n))),s,!1)))),(n=>Bg(Rd(n),r?.concurrentFinalizers)((r=>jg(t,((t,n)=>r(e(t,n))),s,!1,n))))):om(r?.concurrency,(()=>Bg(jd,r?.concurrentFinalizers)((r=>s?Ag(t,1,((t,n)=>r(e(t,n))),!0):du(t,((t,n)=>r(e(t,n))))))),(()=>Bg(Ad,r?.concurrentFinalizers)((r=>Cg(t,((t,n)=>r(e(t,n))),s)))),(n=>Bg(Rd(n),r?.concurrentFinalizers)((r=>Ag(t,n,((t,n)=>r(e(t,n))),s)))))})))),Cg=(t,e,r)=>ku((()=>{const n=_e(t),s=new Array(n.length);return qu(jg(n,((t,r)=>au(e(t,r),(t=>Fu((()=>s[r]=t))))),r,!1),Eu(s))})),jg=(t,e,r,n,s)=>ju((i=>(t=>Ba((e=>{const r=c(e.getFiberRef(_h),he((()=>e.scope())));return t(eh(_h,ie(r)))})))((o=>Ba((c=>{let a=Array.from(t).reverse(),u=a.length;if(0===u)return Au;let h=0,l=!1;const f=s?Math.min(a.length,s):a.length,b=new Set,d=new Array,p=new Array,m=new Array,S=new Array,g=()=>{const t=d.filter((({exit:t})=>"Failure"===t._tag)).sort(((t,e)=>t.index<e.index?-1:t.index===e.index?0:1)).map((({exit:t})=>t));return 0===t.length&&t.push(Hh),t},y=(t,e=!1)=>{const r=Cu(o(t)),n=$g(r,c,c.currentRuntimeFlags,Sm);return c.currentScheduler.scheduleTask((()=>{e&&n.unsafeInterruptAsFork(c.id()),n.resume(r)}),0,n),n},w=()=>{n||(u-=a.length,a=[]),l=!0,b.forEach((t=>{t.currentScheduler.scheduleTask((()=>{t.unsafeInterruptAsFork(c.id())}),0,t)}))},_=r?uu:eu,v=y(za((t=>{const n=(t,e)=>{"Blocked"===t._op?S.push(t):(d.push({index:e,exit:t}),"Failure"!==t._op||l||w())},o=()=>{if(a.length>0){const f=a.pop();let w=h++;const v=()=>{const t=a.pop();return w=h++,au(Du(),(()=>au(_(i(e(t,w))),O)))},O=t=>a.length>0&&(n(t,w),a.length>0)?v():Eu(t),M=au(_(i(e(f,w))),O),I=y(M);p.push(I),b.add(I),l&&I.currentScheduler.scheduleTask((()=>{I.unsafeInterruptAsFork(c.id())}),0,I),I.addObserver((e=>{let i;if(i="Failure"===e._op?e:e.effect_instruction_i0,m.push(I),b.delete(I),n(i,w),d.length===u)t(Eu(he(qh(g(),{parallel:!0}),(()=>Hh))));else if(S.length+d.length===u){const e=g(),n=S.map((t=>t.effect_instruction_i0)).reduce(mc);t(Eu(Ra(n,jg([he(qh(e,{parallel:!0}),(()=>Hh)),...S.map((t=>t.effect_instruction_i1))],(t=>t),r,!0,s))))}else o()}))}};for(let t=0;t<f;t++)o()})));return Ja(Ou(hu(i(Om(v))),Gh({onFailure:t=>{w();const e=S.length+1,r=Math.min("number"==typeof s?s:S.length,S.length),n=Array.from(S);return za((s=>{let i=0;const o=(r,o)=>()=>{i++,i===e&&s(zh(Jh(t))),n.length>0&&o&&c()},c=()=>{y(n.pop(),!0).addObserver(o(0,!0))};v.addObserver(o(0,!1));for(let t=0;t<r;t++)c()}))},onSuccess:()=>du(m,(t=>t.inheritAll))})))})))))),Ag=(t,e,r,n)=>ku((()=>{const s=_e(t),i=new Array(s.length);return qu(jg(s,((t,e)=>wu(r(t,e),(t=>i[e]=t))),n,!1,e),Eu(i))})),Rg=t=>Lg(t,Sm),xg=(t,e,r,n=null)=>{const s=Tg(t,e,r,n);return s.resume(t),s},$g=(t,e,r,n=null)=>Tg(t,e,r,n),Tg=(t,e,r,n=null)=>{const s=Ri(),i=e.getFiberRefs(),o=_b(i,s),a=new Og(s,o,r),u=Ib(o,uh),h=a.currentSupervisor;return h.onStart(u,t,ie(e),a),a.addObserver((t=>h.onEnd(t,a))),(null!==n?n:c(e.getFiberRef(_h),he((()=>e.scope())))).add(r,a),a},Lg=(t,e)=>Ba(((r,n)=>Eu(xg(t,r,n.runtimeFlags,e)))),Dg=t=>fl((e=>ae(Cr(e,zg),{onNone:()=>t,onSome:e=>{switch(e.strategy._tag){case"Parallel":return t;case"Sequential":case"ParallelN":return au(Fh(e,Ad),(e=>Zg(t,e)))}}}))),Pg=t=>e=>fl((r=>ae(Cr(r,zg),{onNone:()=>e,onSome:r=>"ParallelN"===r.strategy._tag&&r.strategy.parallelism===t?e:au(Fh(r,Rd(t)),(t=>Zg(e,t)))}))),Bg=(t,r)=>n=>fl((s=>ae(Cr(s,zg),{onNone:()=>n(e),onSome:s=>{if(!0!==r)return n(e);{const e="Parallel"===t._tag?Dg:"Sequential"===t._tag?Ug:Pg(t.parallelism);switch(s.strategy._tag){case"Parallel":return e(n(Dg));case"Sequential":return e(n(Ug));case"ParallelN":return e(n(Pg(s.strategy.parallelism)))}}}}))),qg=t=>au(Qg(),(e=>Ou(t(e),(t=>e.close(t))))),Ug=t=>fl((e=>ae(Cr(e,zg),{onNone:()=>t,onSome:e=>{switch(e.strategy._tag){case"Sequential":return t;case"Parallel":case"ParallelN":return au(Fh(e,jd),(e=>Zg(t,e)))}}}))),Jg=t((t=>Pa(t[1])),((t,e,r)=>Vg(t,e,((t,e)=>[t,e]),r))),Wg=t((t=>Pa(t[1])),((t,e,r)=>!0===r?.concurrent||void 0!==r?.batching&&!1!==r.batching?Vg(t,e,(t=>t),r):Bu(t,e))),Gg=t((t=>Pa(t[1])),((t,e,r)=>!0===r?.concurrent||void 0!==r?.batching&&!1!==r.batching?Vg(t,e,((t,e)=>e),r):qu(t,e))),Vg=t((t=>Pa(t[1])),((t,e,r,n)=>wu(Fg([t,e],{concurrency:n?.concurrent?2:1,batching:n?.batching,concurrentFinalizers:n?.concurrentFinalizers}),(([t,e])=>r(t,e))))),zg=Or("effect/Scope"),Hg=zg,Yg={[Oh]:Oh,[Mh]:Mh,pipe(){return rt(this,arguments)},fork(t){return Fu((()=>{const e=Kg(t);if("Closed"===this.state._tag)return e.state=this.state,e;const r={};return this.state.finalizers.set(r,(t=>e.close(t))),((t,e)=>{"Open"===t.state._tag&&t.state.finalizers.set({},e)})(e,(()=>Fu((()=>{"Open"===this.state._tag&&this.state.finalizers.delete(r)})))),e}))},close(t){return ku((()=>{if("Closed"===this.state._tag)return Au;const e=Array.from(this.state.finalizers.values()).reverse();return this.state={_tag:"Closed",exit:t},0===e.length?Au:this.strategy._tag===kd?c(du(e,(e=>eu(e(t)))),au((t=>c(qh(t),de(Bh),he((()=>Hh)))))):(()=>this.strategy._tag===Fd)()?c(Cg(e,(e=>eu(e(t))),!1),au((t=>c(qh(t,{parallel:!0}),de(Bh),he((()=>Hh)))))):c(Ag(e,this.strategy.parallelism,(e=>eu(e(t))),!1),au((t=>c(qh(t,{parallel:!0}),de(Bh),he((()=>Hh))))))}))},addFinalizer(t){return ku((()=>"Closed"===this.state._tag?t(this.state.exit):(this.state.finalizers.set({},t),Au)))}},Kg=(t=Nd)=>{const e=Object.create(Yg);return e.strategy=t,e.state={_tag:"Open",finalizers:new Map},e},Qg=(t=Nd)=>Fu((()=>Kg(t))),Zg=t(2,((t,e)=>pl(t,jr(Er(zg,e))))),Xg=t=>ch(t,{differ:ag,fork:sg}),ty=ah(ac),ey=Xg(XS),ry=t(3,((t,e,r)=>sy(t,e,{onSelfWin:(t,e)=>au(t.await,(n=>{switch(n._tag){case ut:return au(t.inheritAll,(()=>r.onSelfDone(n,e)));case it:return r.onSelfDone(n,e)}})),onOtherWin:(t,e)=>au(t.await,(n=>{switch(n._tag){case ut:return au(t.inheritAll,(()=>r.onOtherDone(n,e)));case it:return r.onOtherDone(n,e)}}))}))),ny=t(2,((t,e)=>cu((r=>ry(t,e,{onSelfDone:(t,e)=>Vh(t,{onFailure:t=>c(Om(e),Sd((e=>Hc(t,e)))),onSuccess:t=>c(e,Wu(r),Ua(t))}),onOtherDone:(t,e)=>Vh(t,{onFailure:t=>c(Om(e),Sd((e=>Hc(e,t)))),onSuccess:t=>c(e,Wu(r),Ua(t))})}))))),sy=t(3,((t,e,r)=>Ba(((n,s)=>{const i=s.runtimeFlags,o=hi(!0),c=Tg(t,n,i,r.selfScope),a=Tg(e,n,i,r.otherScope);return za((n=>{c.addObserver((()=>iy(c,a,r.onSelfWin,o,n))),a.addObserver((()=>iy(a,c,r.onOtherWin,o,n))),c.startFork(t),a.startFork(e)}),Ci(c.id(),a.id()))})))),iy=(t,e,r,n,s)=>{li(!0,!1)(n)&&s(r(t,e))},oy=t(2,((t,e)=>ju((r=>fu(r(t),{onFailure:t=>fu(e,{onFailure:e=>su(Yc(t,e)),onSuccess:()=>su(t)}),onSuccess:t=>Ua(e,t)}))))),cy=(t,e,r)=>cu((n=>au(au(Rg(gu(t)),(t=>za((n=>{const s=e.map((t=>t.listeners.count)),i=()=>{s.every((t=>0===t))&&e.every((t=>"Pending"===t.result.state.current._tag||!("Done"!==t.result.state.current._tag||!Dh(t.result.state.current.effect)||"Failure"!==t.result.state.current.effect._tag||!Zc(t.result.state.current.effect.cause))))&&(o.forEach((t=>t())),r?.(),n(Ju(t)))};t.addObserver((t=>{o.forEach((t=>t())),n(t)}));const o=e.map(((t,e)=>{const r=t=>{s[e]=t,i()};return t.listeners.addObserver(r),()=>t.listeners.removeObserver(r)}));return i(),Fu((()=>{o.forEach((t=>t()))}))})))),(()=>ku((()=>{const t=e.flatMap((t=>t.state.completed?[]:[t]));return pu(t,(t=>VS(t.request,(t=>Jh(zc(t)))(n))))})))))),ay=Symbol.for("effect/ScheduleInterval"),uy={[ay]:ay,startMillis:0,endMillis:0},hy=(t,e)=>t>e?uy:{[ay]:ay,startMillis:t,endMillis:e},ly=t(2,((t,e)=>fy(t,e)===t)),fy=t(2,((t,e)=>t.endMillis<=e.startMillis?t:e.endMillis<=t.startMillis?e:t.startMillis<e.startMillis?t:e.startMillis<t.startMillis?e:t.endMillis<=e.endMillis?t:e)),by=t(2,((t,e)=>{const r=Math.max(t.startMillis,e.startMillis),n=Math.min(t.endMillis,e.endMillis);return hy(r,n)})),dy=uy,py=ly,my=by,Sy=Symbol.for("effect/ScheduleIntervals"),gy=t=>({[Sy]:Sy,intervals:t}),yy=t(2,((t,e)=>wy(t.intervals,e.intervals,Br()))),wy=(t,e,r)=>{let n=t,s=e,i=r;for(;on(n)&&on(s);){const t=c(un(n),my(un(s))),e=(o=t).startMillis>=o.endMillis?i:c(i,Zr(t));c(un(n),py(un(s)))?n=bn(n):s=bn(s),i=e}var o;return gy(Vr(i))},_y=t=>c(t.intervals,cn,he((()=>dy))).startMillis,vy=t(2,((t,e)=>_y(t)<_y(e))),Oy=gy,My=yy,Iy=_y,Ey=t=>c(t.intervals,cn,he((()=>dy))).endMillis,ky=vy,Fy="Continue",Ny="Done",Cy={_tag:Ny},jy=t=>t._tag===Fy,Ay=t=>t._tag===Ny,Ry=Ih,xy=Eh,$y=kh,Ty=Zg,Ly=Fh,Dy=Qg;class Py{permits;waiters=new Set;taken=0;constructor(t){this.permits=t}get free(){return this.permits-this.taken}take=t=>Va((e=>{if(this.free<t){const r=()=>{this.free<t||(this.waiters.delete(r),e(ku((()=>this.free<t?this.take(t):(this.taken+=t,Eu(t))))))};return this.waiters.add(r),Fu((()=>{this.waiters.delete(r)}))}e(ku((()=>this.free<t?this.take(t):(this.taken+=t,Eu(t)))))}));updateTakenUnsafe(t,e){return this.taken=e(this.taken),this.waiters.size>0&&t.getFiberRef(sm).scheduleTask((()=>{const t=this.waiters.values();let e=t.next();for(;!1===e.done&&this.free>0;)e.value(),e=t.next()}),t.getFiberRef(hh),t),Eu(this.free)}updateTaken(t){return Ba((e=>this.updateTakenUnsafe(e,t)))}resize=t=>Ja(Ba((e=>(this.permits=t,this.free<0?Au:this.updateTakenUnsafe(e,(t=>t))))));release=t=>this.updateTaken((e=>e-t));releaseAll=this.updateTaken((()=>0));withPermits=t=>e=>ju((r=>au(r(this.take(t)),(t=>oy(r(e),this.release(t))))));withPermitsIfAvailable=t=>e=>ju((r=>ku((()=>this.free<t?_d:(this.taken+=t,oy(r((t=>wu(t,ie))(e)),this.release(t)))))))}const By=t=>new Py(t),qy=t(2,((t,e)=>Ba(((r,n)=>{const s=e,i=xg(t,r,n.runtimeFlags,Sm);if("Open"===s.state._tag){const t=()=>cu((t=>J(t,i.id())?Au:Ja(Ju(i)))),e={};s.state.finalizers.set(e,t),i.addObserver((()=>{"Closed"!==s.state._tag&&s.state.finalizers.delete(e)}))}else i.unsafeInterruptAsFork(r.id());return Eu(i)})))),Uy=t(2,((t,e)=>c(eu(t),ny(eu(e)),(t=>hu(t))))),Jy=Symbol.for("effect/Ref/SynchronizedRef"),Wy={_A:t=>t};class Gy extends Bb{ref;withLock;[Jy]=Wy;[Ub]=Jb;[qb]=qb;constructor(t,e){super(),this.ref=t,this.withLock=e,this.get=zb(this.ref)}get;commit(){return this.get}modify(t){return this.modifyEffect((e=>Eu(t(e))))}modifyEffect(t){return this.withLock(c(au(zb(this.ref),t),au((([t,e])=>Ua(Hb(this.ref,e),t)))))}}const Vy=t=>{const e=Gb(t),r=By(1);return new Gy(e,r.withPermits(1))},zy=Symbol.for("effect/ManagedRuntime"),Hy=t=>function(){if(1===arguments.length){const e=arguments[0];return(r,...n)=>t(e,r,...n)}return t.apply(this,arguments)},Yy=Hy(((t,e,r)=>{const n=Ri(),s=[[uh,[[n,t.context]]]];r?.scheduler&&s.push([sm,[[n,r.scheduler]]]);let i=Cb(t.fiberRefs,{entries:s,forkAs:n});r?.updateRefs&&(i=r.updateRefs(i,n));const o=new Og(n,i,t.runtimeFlags);let c=e;r?.scope&&(c=au(Ly(r.scope,Nd),(t=>qu(Ih(t,cu((t=>J(t,o.id())?Au:Wu(o,t)))),Ou(e,(e=>$y(t,e)))))));const a=o.currentSupervisor;return a!==XS&&(a.onStart(t.context,c,se(),o),o.addObserver((t=>a.onEnd(t,o)))),Sm.add(t.runtimeFlags,o),!1===r?.immediate?o.resume(c):o.start(c),o})),Ky=Symbol.for("effect/Runtime/FiberFailure"),Qy=Symbol.for("effect/Runtime/FiberFailure/Cause");class Zy extends Error{[Ky];[Qy];constructor(t){const e=Ea(t)[0];super(e?.message||"An error has occurred"),this[Ky]=Ky,this[Qy]=t,this.name=e?`(FiberFailure) ${e.name}`:"FiberFailure",e?.stack&&(this.stack=e.stack)}toJSON(){return{_id:"FiberFailure",cause:this[Qy].toJSON()}}toString(){return"(FiberFailure) "+ga(this[Qy],{renderErrorCause:!0})}[z](){return this.toString()}}const Xy=Hy(((t,e,r)=>tw(t,e,r).then((t=>{switch(t._tag){case ut:return t.effect_instruction_i0;case it:throw(t=>{const e=Error.stackTraceLimit;Error.stackTraceLimit=0;const r=new Zy(t);return Error.stackTraceLimit=e,r})(t.effect_instruction_i0)}})))),tw=Hy(((t,e,r)=>new Promise((n=>{const s=(t=>{const e=t;switch(e._op){case"Failure":case"Success":return e;case"Left":return Uh(e.left);case"Right":return zh(e.right);case"Some":return zh(e.value);case"None":return Uh(new $h)}})(e);s&&n(s);const i=Yy(t)(e);i.addObserver((t=>{n(t)})),void 0!==r?.signal&&(r.signal.aborted?i.unsafeInterruptAsFork(i.id()):r.signal.addEventListener("abort",(()=>{i.unsafeInterruptAsFork(i.id())}),{once:!0}))}))));class ew{context;runtimeFlags;fiberRefs;constructor(t,e,r){this.context=t,this.runtimeFlags=e,this.fiberRefs=r}pipe(){return rt(this,arguments)}}const rw=t=>new ew(t.context,t.runtimeFlags,t.fiberRefs),nw=cc(1,32,4),sw=rw({context:Ir(),runtimeFlags:nw,fiberRefs:jb()}),iw=Yy(sw),ow=Xy(sw),cw=t(2,((t,e)=>t.modifyEffect(e))),aw=Symbol.for("effect/Layer"),uw={[aw]:{_RIn:t=>t,_E:t=>t,_ROut:t=>t},pipe(){return rt(this,arguments)}},hw=Symbol.for("effect/Layer/MemoMap"),lw=Ar()("effect/Layer/CurrentMemoMap",{defaultValue:()=>dw()});class fw{ref;[hw];constructor(t){this.ref=t,this[hw]=hw}getOrElseMemoize(t,e){return c(cw(this.ref,(r=>{const n=r.get(t);if(void 0!==n){const[t,s]=n,i=c(t,au((([t,e])=>c((t=>{return e=(e,r)=>c(t,sd(e,r)),Ba((t=>(t.setFiberRefs(e(t.id(),t.getFiberRefs())),Au)));var e})(t),Ua(e)))),Ou(Gh({onFailure:()=>Au,onSuccess:()=>Eh(e,s)})));return Eu([i,r])}return c(Vb(0),au((n=>c(tl(),au((s=>c(Vb((()=>Au)),wu((i=>{const o=ju((o=>c(Qg(),au((a=>c(o(au(Sw(t,a,!0),(t=>{return e=t(this),vd(e,bd,rd);var e}))),eu,au((o=>{switch(o._tag){case it:return c(il(s,o.effect_instruction_i0),qu(kh(a,o)),qu(su(o.effect_instruction_i0)));case ut:return c(Hb(i,(t=>c(kh(a,t),Ru(Yb(n,(t=>[1===t,t-1]))),Ja))),qu(Kb(n,(t=>t+1))),qu(Eh(e,(e=>c(Fu((()=>r.delete(t))),qu(zb(i)),au((t=>t(e))))))),qu(cl(s,o.effect_instruction_i0)),Ua(o.effect_instruction_i0[1]))}})))))))),a=[c(rl(s),Ou(Vh({onFailure:()=>Au,onSuccess:()=>Kb(n,(t=>t+1))}))),t=>c(zb(i),au((e=>e(t))))];return[o,(u=t,"Fresh"===u._op_layer?r:r.set(t,a))];var u})))))))))})),hu)}}const bw=ku((()=>{return wu((t=new Map,Fu((()=>Vy(t)))),(t=>new fw(t)));var t})),dw=()=>new fw(Vy(new Map)),pw=t(2,((t,e)=>au(bw,(r=>mw(t,r,e))))),mw=t(3,((t,e,r)=>au(Sw(t,r),(t=>gd(t(e),lw,e))))),Sw=(t,e,r=!1)=>{const n=t;switch(n._op_layer){case"Locally":return Fu((()=>t=>n.f(t.getOrElseMemoize(n.self,e))));case"ExtendScope":return Fu((()=>t=>{return e=e=>t.getOrElseMemoize(n.layer,e),au(zg,e);var e}));case"Fold":return Fu((()=>t=>c(t.getOrElseMemoize(n.layer,e),fu({onFailure:r=>t.getOrElseMemoize(n.failureK(r),e),onSuccess:r=>t.getOrElseMemoize(n.successK(r),e)}))));case"Fresh":return Fu((()=>()=>c(n.layer,pw(e))));case"FromEffect":return Fu(r?()=>()=>n.effect:()=>r=>r.getOrElseMemoize(t,e));case"Provide":return Fu((()=>t=>c(t.getOrElseMemoize(n.first,e),au((r=>c(t.getOrElseMemoize(n.second,e),bl(r)))))));case"Scoped":return Fu(r?()=>()=>Zg(n.effect,e):()=>r=>r.getOrElseMemoize(t,e));case"Suspend":return Fu((()=>t=>t.getOrElseMemoize(n.evaluate(),e)));case"ProvideMerge":return Fu((()=>t=>c(t.getOrElseMemoize(n.first,e),Uu(t.getOrElseMemoize(n.second,e),n.zipK))));case"ZipWith":return Tu((function*(){const t=yield*Fh(e,Cd),r=yield*Fh(t,Nd),s=yield*Fh(t,Nd);return t=>c(t.getOrElseMemoize(n.first,r),Vg(t.getOrElseMemoize(n.second,s),n.zipK,{concurrent:!0}))}));case"MergeAll":{const t=n.layers;return wu(Fh(e,Cd),(e=>r=>{const n=new Array(t.length);return wu(jg(t,Lu((function*(t,s){const i=yield*Fh(e,Nd),o=yield*r.getOrElseMemoize(t,i);n[s]=o})),!1,!1),(()=>((...t)=>{const e=new Map;for(let r=0;r<t.length;r++)t[r].unsafeMap.forEach(((t,r)=>{e.set(r,t)}));return fr(e)})(...n)))}))}}},gw=t(2,((t,e)=>qg((r=>au(pw(e,r),(e=>dl(t,e))))))),yw=t(2,((t,e)=>{const r=xd(sw.fiberRefs,e.fiberRefs),n=lc(sw.runtimeFlags,e.runtimeFlags);return ju((s=>Ba((i=>{const o=i.getFiberRef(uh),c=i.getFiberRefs(),a=$d(i.id(),c)(r),u=i.currentRuntimeFlags,h=fc(n)(u),l=xd(a,c),f=lc(h,u);return i.setFiberRefs(a),i.currentRuntimeFlags=h,oy(dl(s(t),jr(o,e.context)),Ba((t=>(t.setFiberRefs($d(t.id(),t.getFiberRefs())(l)),t.currentRuntimeFlags=fc(f)(t.currentRuntimeFlags),Au))))}))))})),ww=t(2,((t,e)=>Array.isArray(e)?gw(t,((...t)=>{const e=Object.create(uw);return e._op_layer="MergeAll",e.layers=t,e})(...e)):m(e,aw)?gw(t,e):Mr(e)?dl(t,e):zy in e?au(e.runtimeEffect,(e=>yw(t,e))):yw(t,e))),_w=Symbol.for("effect/Schedule"),vw=Symbol.for("effect/ScheduleDriver"),Ow={start:0,now:0,input:void 0,output:void 0,elapsed:Nn,elapsedSincePrevious:Nn,recurrence:0},Mw=Ar()("effect/Schedule/CurrentIterationMetadata",{defaultValue:()=>Ow}),Iw={_Out:t=>t,_In:t=>t,_R:t=>t},Ew={_Out:t=>t,_In:t=>t,_R:t=>t};class kw{initial;step;[_w]=Iw;constructor(t,e){this.initial=t,this.step=e}pipe(){return rt(this,arguments)}}const Fw=(t,e,r,n)=>Kb(t,(t=>0===t.recurrence?{now:e,input:r,output:n,recurrence:t.recurrence+1,elapsed:Nn,elapsedSincePrevious:Nn,start:e}:{now:e,input:r,output:n,recurrence:t.recurrence+1,elapsed:Rn(e-t.start),elapsedSincePrevious:Rn(e-t.now),start:t.start}));class Nw{schedule;ref;[vw]=Ew;constructor(t,e){this.schedule=t,this.ref=e}get state(){return wu(zb(this.ref),(t=>t[1]))}get last(){return au(zb(this.ref),(([t,e])=>{switch(t._tag){case"None":return nu((()=>new $h));case"Some":return Eu(t.value)}}))}iterationMeta=Gb(Ow);get reset(){return Hb(this.ref,[se(),this.schedule.initial]).pipe(Bu(Hb(this.iterationMeta,Ow)))}next(t){return c(wu(zb(this.ref),(t=>t[1])),au((e=>c(mb,au((r=>c(ku((()=>this.schedule.step(r,t,e))),au((([e,n,s])=>{const i=Hb(this.ref,[ie(n),e]);if(Ay(s))return i.pipe(qu(ru(se())));const o=Iy(s.intervals)-r;if(o<=0)return i.pipe(qu(Fw(this.iterationMeta,r,t,n)),Ua(n));const a=Rn(o);return c(i,qu(Fw(this.iterationMeta,r,t,n)),qu(wd(a)),Ua(n))})))))))))}}const Cw=(t,e)=>new kw(t,e),jw=t(2,((t,e)=>Aw(t,((t,r)=>Fu((()=>e(t,r))))))),Aw=t(2,((t,e)=>Cw(t.initial,((r,n,s)=>au(t.step(r,n,s),(([t,r,s])=>Ay(s)?Eu([t,r,Cy]):wu(e(n,r),(e=>e?[t,r,s]:[t,r,Cy])))))))),Rw=t(2,((t,e)=>xw(t,e,My))),xw=t(3,((t,e,r)=>Cw([t.initial,e.initial],((n,s,i)=>c(Uu(t.step(n,s,i[0]),e.step(n,s,i[1]),((t,e)=>[t,e])),au((([[n,i,o],[c,a,u]])=>jy(o)&&jy(u)?$w(t,e,s,n,i,o.intervals,c,a,u.intervals,r):Eu([[n,c],[i,a],Cy])))))))),$w=(t,e,r,n,s,i,o,a,u,h)=>{const l=h(i,u);return(t=>on(t.intervals))(l)?Eu([[n,o],[s,a],(f=l,{_tag:Fy,intervals:f})]):c(i,ky(u))?au(t.step(Ey(i),r,n),(([n,s,i])=>Ay(i)?Eu([[n,o],[s,a],Cy]):$w(t,e,r,n,s,i.intervals,o,a,u,h))):au(e.step(Ey(u),r,o),(([o,c,a])=>Ay(a)?Eu([[n,o],[s,c],Cy]):$w(t,e,r,n,s,i,o,c,a.intervals,h)));var f},Tw=t(2,((t,e)=>Lw(t,(t=>Fu((()=>e(t))))))),Lw=t(2,((t,e)=>Cw(t.initial,((r,n,s)=>au(t.step(r,n,s),(([t,r,n])=>wu(e(r),(e=>[t,e,n])))))))),Dw=(t,e)=>Cw(t,((t,r,n)=>Fu((()=>{return[e(n),n,(s=t,r=hy(s,Number.POSITIVE_INFINITY),{_tag:Fy,intervals:Oy(Ur(r))})];var r,s})))),Pw=t(2,((t,e)=>Aw(t,(t=>(t=>wu(t,(t=>!t)))(e(t)))))),Bw=t(2,((t,e)=>Aw(t,(t=>e(t))))),qw=t(2,((t,e)=>jw(t,((t,r)=>e(r))))),Uw=Symbol.for("effect/Schedule/ScheduleDefect");class Jw{error;[Uw];constructor(t){this.error=t,this[Uw]=Uw}}const Ww=t=>Ya(t,(t=>Za(new Jw(t)))),Gw=t(2,((t,e)=>zw(t,e,(t=>ru(t))))),Vw=t(2,((t,e)=>{if(m(e,_w))return Gw(t,e);const r=e.schedule??(t=>Cw(t.initial,((e,r,n)=>c(t.step(e,r,n),wu((([t,e,n])=>[t,r,n]))))))(Yw),n=e.while?Bw(r,(t=>{const r=e.while(t);return"boolean"==typeof r?Eu(r):Ww(r)})):r,s=e.until?Pw(n,(t=>{const r=e.until(t);return"boolean"==typeof r?Eu(r):Ww(r)})):n,i=e.times?Rw(s,(o=e.times,qw(Yw,(t=>t<o)))).pipe(Tw((t=>t[0]))):s;var o,a;return a=Gw(t,i),Ha(a,(t=>su((t=>ae(ha(t,(t=>Qc(t)&&m(t.defect,Uw)?ie(t.defect):se())),{onNone:()=>t,onSome:t=>Gc(t.error)}))(t))))})),zw=t(3,((t,e,r)=>au((t=>c(Vb([se(),t.initial]),wu((e=>new Nw(t,e)))))(e),(e=>bu(t,{onFailure:t=>r(t,se()),onSuccess:n=>Hw(yd(t,Mw,zb(e.iterationMeta)),e,((t,n)=>yd(r(t,n),Mw,zb(e.iterationMeta))),n)}))))),Hw=(t,r,n,s)=>bu(r.next(s),{onFailure:()=>(t=>Iu(t,e))(r.last),onSuccess:e=>bu(t,{onFailure:t=>n(t,ie(e)),onSuccess:e=>Hw(t,r,n,e)})}),Yw=Dw(0,(t=>t+1)),Kw=Pa,Qw=Fg,Zw=Ng,Xw=za,t_=Ba,e_=ru,r_=su,n_=Xa,s_=Tu,i_=Eu,o_=ku,c_=Fu,a_=Au,u_=Ya,h_=Ha,l_=hd,f_=t=>fd(t,{onFailure:o,onSuccess:o}),b_=mu,d_=gu,p_=Cu,m_=ju,S_=Ua,g_=Ja,y_=wu,w_=vu,__=qa,v_=oy,O_=Hg,M_=qg,I_=cu,E_=Rg,k_=qy,F_=ww,N_=eu,C_=yu,j_=Id,A_=au,R_=hu,x_=ny,$_=Uy,T_=ry,L_=Nu,D_=Od,P_=Md,B_=t=>{const e=au(au(t,(()=>Du())),(()=>e));return e},q_=Vw,U_=fd,J_=lu,W_=fu,G_=pd,V_=md,z_=()=>Ba(((t,e)=>Eu(new ew(t.getFiberRef(uh),e.runtimeFlags,t.getFiberRefs())))),H_=t=>Fu((()=>By(t))),Y_=iw,K_=ow,Q_=Jg,Z_=Wg,X_=Gg,tv=Vg;export{_l as $,oo as A,au as B,zl as C,ql as D,ld as E,hf as F,li as G,ff as H,ef as I,bi as J,hi as K,of as L,j as M,c as N,q as O,x as P,A as Q,U as R,m as S,J as T,Ja as U,Id as V,Rl as W,Pn as X,Mu as Y,qu as Z,gl as _,Vt as a,Br as a$,yl as a0,eu as a1,bl as a2,Nh as a3,Ap as a4,Fp as a5,Op as a6,kp as a7,s_ as a8,G_ as a9,Bb as aA,rt as aB,Ya as aC,mu as aD,fi as aE,cf as aF,Cu as aG,Ba as aH,Ru as aI,cl as aJ,jg as aK,rl as aL,_e as aM,Ve as aN,qe as aO,sn as aP,Xh as aQ,Jr as aR,bf as aS,al as aT,Zr as aU,af as aV,nn as aW,en as aX,Qr as aY,lf as aZ,ol as a_,Cn as aa,D_ as ab,V_ as ac,u_ as ad,i_ as ae,Vb as af,Yb as ag,zb as ah,Kb as ai,Zc as aj,Gc as ak,ea as al,ra as am,zc as an,ia as ao,Vc as ap,Qc as aq,ta as ar,Xc as as,Om as at,Ju as au,_m as av,vm as aw,Wu as ax,t as ay,tl as az,Yt as b,T_ as b$,sf as b0,uf as b1,Au as b2,Il as b3,Kw as b4,Kt as b5,a_ as b6,f_ as b7,tv as b8,N_ as b9,Sl as bA,jd as bB,__ as bC,k_ as bD,vl as bE,Ol as bF,ri as bG,ji as bH,C_ as bI,Z_ as bJ,P_ as bK,Ry as bL,r_ as bM,R_ as bN,I_ as bO,b_ as bP,wl as bQ,Nl as bR,J_ as bS,M_ as bT,Kr as bU,o as bV,O_ as bW,t_ as bX,Dy as bY,Ty as bZ,$y as b_,Tl as ba,c_ as bb,F_ as bc,W_ as bd,X_ as be,A_ as bf,E_ as bg,d_ as bh,o_ as bi,v_ as bj,p_ as bk,y_ as bl,Q_ as bm,Cl as bn,Al as bo,Zw as bp,kl as bq,he as br,xl as bs,n_ as bt,h_ as bu,Fl as bv,jl as bw,m_ as bx,Qw as by,Ly as bz,ue as c,z_ as c0,L_ as c1,xy as c2,H_ as c3,j_ as c4,x_ as c5,S_ as c6,q_ as c7,g_ as c8,$l as c9,$_ as ca,B_ as cb,Ur as cc,e_ as cd,w_ as ce,dn as cf,hn as cg,U_ as ch,fn as ci,El as cj,cn as ck,rn as cl,l_ as cm,Hr as cn,Xw as co,Y_ as cp,On as d,wu as e,Fg as f,Zt as g,ll as h,e as i,ou as j,Qt as k,zt as l,ae as m,Hl as n,ku as o,Ul as p,Eu as q,K_ as r,Fu as s,se as t,Wl as u,ce as v,ie as w,be as x,Ml as y,Gl as z}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./p-CahBdGGN.js";const e=(e,o)=>{const a=function(...t){return t.filter(Boolean).join("/").replace("//","/").replace("/./","/")}("../../assets",o,e);try{return t(a)}catch{return console.warn(`Failed to create URL for asset "${e}" in path "${o}".\n Please provide an absolute URL in your app's 'setAssetPath(...)' configuration! Falling back to a relative URL, which may work in some environments but is not guaranteed to be correct.`),new URL(a,import.meta?.url??window?.location?.origin??"")}};export{e as c}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t={isDev:!1},n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),e=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(e||{}),o="type",l="value",s="serialized:";function i(t,n,e){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,n);if(o&&(!e||o.get))return o;t=Object.getPrototypeOf(t)}}var r,c=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=i(Object.getPrototypeOf(t),e,!0)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(e)?t[e]=n.l.get(e):void 0!==o&&(t[e]=o)}}))},f=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},u=(t,n)=>n in t,a=(t,n)=>(0,console.error)(t,n),d=new Map,$="s-id",p="sty-id",h="c-id",v="http://www.w3.org/1999/xlink",y=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],m="undefined"!=typeof window?window:{},b=m.HTMLElement||class{},g={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},w=(()=>{try{return!!m.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),j=!!w&&(()=>!!m.document&&Object.getOwnPropertyDescriptor(m.document.adoptedStyleSheets,"length").writable)(),O=!1,S=[],N=[],k=(t,n)=>e=>{t.push(e),O||(O=!0,n&&4&g.i?C(M):g.raf(M))},x=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){a(t)}t.length=0},M=()=>{x(S),x(N),(O=S.length>0)&&g.raf(M)},C=t=>Promise.resolve(undefined).then(t),E=k(N,!0),A=t=>{const n=new URL(t,g.u);return n.origin!==m.location.origin?n.href:n.pathname},I=t=>g.u=t;function L(t){const n={mode:"open"};n.delegatesFocus=!!(16&t.i);const e=this.attachShadow(n);void 0===r&&(r=null),r&&(j?e.adoptedStyleSheets.push(r):e.adoptedStyleSheets=[...e.adoptedStyleSheets,r])}var R=t=>{const n=V(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&_(n,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!D(t,T(t),!1).length)}));let e=0;for(e=0;e<n.length;e++){const t=n[e];1===t.nodeType&&V(t,"childNodes").length&&R(t)}};function _(t,n,e){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!n||o["s-hn"]===n)&&(void 0===e||T(o)===e)&&(s.push(o),void 0!==e))return s;s=[...s,..._(o.childNodes,n,e)]}return s}var D=(t,n,e=!0)=>{const o=[];(e&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)T(l)!==n||!e&&l["s-sr"]||o.push(l);return o},B=(t,n)=>1===t.nodeType?null===t.getAttribute("slot")&&""===n||t.getAttribute("slot")===n:t["s-sn"]===n||""===n,F=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,i=V(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=V(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]},T=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function U(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===T(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}function V(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}var H=new WeakMap,P=(t,n,e)=>{let o=d.get(t);w&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,d.set(t,o)},z=(t,n)=>{var e,o,l;const s=W(n),i=d.get(s);if(!m.document)return s;if(t=11===t.nodeType?t:m.document,i)if("string"==typeof i){let l,r=H.get(t=t.head||t);r||H.set(t,r=new Set);const c=t.querySelector(`[${p}="${s}"]`);if(c)c.textContent=i;else if(!r.has(s)){l=m.document.createElement("style"),l.textContent=i;const c=null!=(e=g.$)?e:function(){var t,n,e;return null!=(e=null==(n=null==(t=m.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?e:void 0}();if(null!=c&&l.setAttribute("nonce",c),!(1&n.i))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(w){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),j?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.i&&t.insertBefore(l,null),4&n.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(s)}}else{let n=H.get(t);if(n||H.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}if(j?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s),"host"in t){const n=t.querySelector(`[${p}="${s}"]`);n&&E((()=>n.remove()))}}}return s},W=t=>"sc-"+t.p,q=t=>"object"==(t=typeof t)||"function"===t,Y=(t,n,...e)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],f=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!q(o))&&(o=String(o)),i&&r?c[c.length-1].h+=o:c.push(i?J(null,o):o),r=i)};if(f(e),n){n.key&&(l=n.key),n.name&&(s=n.name);{const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}}const u=J(t,null);return u.v=n,c.length>0&&(u.m=c),u.j=l,u.O=s,u},J=(t,n)=>({i:0,S:t,h:null!=n?n:null,N:null,m:null,v:null,j:null,O:null}),Z={},G=(t,n,e,o,l,s,i,r=[])=>{let c,f,u,a;const d=l["s-sc"];if(1===s.nodeType){if(c=s.getAttribute(h),c&&(f=c.split("."),f[0]===i||"0"===f[0])){u=Q({i:0,k:f[0],M:f[1],C:f[2],A:f[3],S:s.tagName.toLowerCase(),N:s,v:{class:s.className||""}}),n.push(u),s.removeAttribute(h),t.m||(t.m=[]),d&&f[0]===i&&(s["s-si"]=d,u.v.class+=" "+d);const l=u.N.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===u.S&&(X(l,f[2],u,s,t,n,e,o,r),d&&s.classList.add(d)),u.N["s-sn"]=l,u.N.removeAttribute("s-sn")),void 0!==u.A&&(t.m[u.A]=u),t=u,o&&"0"===u.C&&(o[u.A]=u.N)}if(s.shadowRoot)for(a=s.shadowRoot.childNodes.length-1;a>=0;a--)G(t,n,e,o,l,s.shadowRoot.childNodes[a],i,r);const $=s.__childNodes||s.childNodes;for(a=$.length-1;a>=0;a--)G(t,n,e,o,l,$[a],i,r)}else if(8===s.nodeType)f=s.nodeValue.split("."),(f[1]===i||"0"===f[1])&&(c=f[0],u=Q({k:f[1],M:f[2],C:f[3],A:f[4]||"0",N:s,v:null,m:null,j:null,O:null,S:null,h:null}),"t"===c?(u.N=lt(s,3),u.N&&3===u.N.nodeType&&(u.h=u.N.textContent,n.push(u),s.remove(),i===u.k&&(t.m||(t.m=[]),t.m[u.A]=u),o&&"0"===u.C&&(o[u.A]=u.N))):"c"===c?(u.N=lt(s,8),u.N&&8===u.N.nodeType&&(n.push(u),s.remove())):u.k===i&&("s"===c?X(s["s-sn"]=f[5]||"",f[2],u,s,t,n,e,o,r):"r"===c&&(o?s.remove():(l["s-cr"]=s,s["s-cn"]=!0))));else if(t&&"style"===t.S){const n=J(null,s.textContent);n.N=s,n.A="0",t.m=[n]}return t},K=(t,n)=>{if(1===t.nodeType){const e=t[$]||t.getAttribute($);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)K(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)K(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},Q=t=>({i:0,k:null,M:null,C:null,A:"0",N:null,v:null,m:null,j:null,O:null,S:null,h:null,...t});function X(t,n,e,o,l,s,i,r,c){o["s-sr"]=!0,e.O=t||null,e.S="slot";const f=(null==l?void 0:l.N)?l.N["s-id"]||l.N.getAttribute("s-id"):"";if(r&&m.document){const s=e.N=m.document.createElement(e.S);e.O&&e.N.setAttribute("name",t),l.N.shadowRoot&&f&&f!==e.k?V(l.N,"insertBefore")(s,V(l.N,"children")[0]):V(V(o,"parentNode"),"insertBefore")(s,o),ot(c,n,t,o,e.k),o.remove(),"0"===e.C&&(r[e.A]=e.N)}else{const s=e.N,i=f&&f!==e.k&&l.N.shadowRoot;ot(c,n,t,o,i?f:e.k),U(o),i&&l.N.insertBefore(s,l.N.children[0])}s.push(e),i.push(e),l.m||(l.m=[]),l.m[e.A]=e}var tt,nt,et,ot=(t,n,e,o,l)=>{var s,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},lt=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},st=class t{static fromLocalValue(n){const e=n[o],s=l in n?n[l]:void 0;switch(e){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((n=>t.fromLocalValue(n)));case"date":return new Date(s);case"map":const n=new Map;for(const[e,o]of s){const l="object"==typeof e&&null!==e?t.fromLocalValue(e):e,s=t.fromLocalValue(o);n.set(l,s)}return n;case"object":const o={};for(const[n,e]of s)o[n]=t.fromLocalValue(e);return o;case"regexp":const{pattern:l,flags:i}=s;return new RegExp(l,i);case"set":const r=new Set;for(const n of s)r.add(t.fromLocalValue(n));return r;case"symbol":return Symbol(s);default:throw new Error(`Unsupported type: ${e}`)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(o))return!1;const s=t[o];return!!Object.values({...n,...e}).includes(s)&&("null"===s||"undefined"===s||t.hasOwnProperty(l))}},it=(t,n,e)=>{return"string"==typeof t&&t.startsWith(s)?t="string"==typeof(o=t)&&o.startsWith(s)?st.fromLocalValue(JSON.parse(atob(o.slice(11)))):o:null==t||q(t)?t:4&n?(e&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&n?String(t):t;var o},rt=(t,n)=>{const e=t;return{emit:t=>ct(e,n,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},ct=(t,n,e)=>{const o=g.ce(n,e);return t.dispatchEvent(o),o},ft=(t,n,e,o,l,s,i)=>{if(e===o)return;let r=u(t,n),c=n.toLowerCase();if("class"===n){const n=t.classList,l=at(e);let s=at(o);if((t["s-si"]||t["s-sc"])&&i){const e=t["s-sc"]||t["s-si"];s.push(e),l.forEach((t=>{t.startsWith(e)&&s.push(t)})),s=[...new Set(s)].filter((t=>t)),n.add(...s)}else n.remove(...l.filter((t=>t&&!s.includes(t)))),n.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===n){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}else if("key"===n);else if("ref"===n)o&&Lt(o,t);else if(t.__lookupSetter__(n)||"o"!==n[0]||"n"!==n[1]){if("a"===n[0]&&n.startsWith("attr:")){const e=n.slice(5);let l;{const n=f(t);if(n&&n.o&&n.o.t){const t=n.o.t[e];t&&t[1]&&(l=t[1])}}return l||(l=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===o?"":o))}if("p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=o}catch(t){}return}{const i=q(o);if((r||i&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[n]!==o&&(t[n]=o);else{const l=null==o?"":o;"list"===n?r=!1:null!=e&&t[n]===l||("function"==typeof t.__lookupSetter__(n)?t[n]=l:t.setAttribute(n,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(n=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(n)||(f?t.removeAttributeNS(v,n):t.removeAttribute(n)):(!r||4&s||l)&&!i&&1===t.nodeType&&(o=!0===o?"":o,f?t.setAttributeNS(v,n,o):t.setAttribute(n,o))}}else if(n="-"===n[2]?n.slice(3):u(m,c)?c.slice(2):c[2]+n.slice(3),e||o){const l=n.endsWith(dt);n=n.replace($t,""),e&&g.rel(t,n,e,l),o&&g.ael(t,n,o,l)}},ut=/\s/,at=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ut):[]),dt="Capture",$t=new RegExp(dt+"$"),pt=(t,n,e,o)=>{const l=11===n.N.nodeType&&n.N.host?n.N.host:n.N,s=t&&t.v||{},i=n.v||{};for(const t of ht(Object.keys(s)))t in i||ft(l,t,s[t],void 0,e,n.i,o);for(const t of ht(Object.keys(i)))ft(l,t,s[t],i[t],e,n.i,o)};function ht(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var vt=!1,yt=!1,mt=!1,bt=!1,gt=[],wt=[],jt=(t,n,e)=>{var o;const l=n.m[e];let s,i,r,c=0;if(vt||(mt=!0,"slot"===l.S&&(l.i|=l.m?2:1)),null!=l.h)s=l.N=m.document.createTextNode(l.h);else if(1&l.i)s=l.N=m.document.createTextNode(""),pt(null,l,bt);else{if(!m.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.N=m.document.createElement(!vt&&2&l.i?"slot-fb":l.S),pt(null,l,bt),null!=(f=tt)&&void 0!==f&&s["s-si"]!==tt&&s.classList.add(s["s-si"]=tt),l.m){const n="template"===l.S?s.content:s;for(c=0;c<l.m.length;++c)i=jt(t,l,c),i&&n.appendChild(i)}}var f;return s["s-hn"]=et,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=nt,s["s-sn"]=l.O||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,U(s),r=t&&t.m&&t.m[e],r&&r.S===l.S&&t.N&&Ot(t.N),_t(nt,s,n.N,null==t?void 0:t.N)),s},Ot=t=>{g.i|=1;const n=t.closest(et.toLowerCase());if(null!=n){const e=Array.from(n.__childNodes||n.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of e?o.reverse():o)null!=t["s-sh"]&&(Rt(n,t,null!=e?e:null),t["s-sh"]=void 0,mt=!0)}g.i&=-2},St=(t,n)=>{g.i|=1;const e=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let n=t;for(;n=n.nextSibling;)n&&n["s-sn"]===t["s-sn"]&&n["s-sh"]===et&&e.push(n)}for(let t=e.length-1;t>=0;t--){const o=e[t];o["s-hn"]!==et&&o["s-ol"]&&(Rt(Mt(o).parentNode,o,Mt(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,mt=!0),n&&St(o,n)}g.i&=-2},Nt=(t,n,e,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===et&&(r=r.shadowRoot),"template"===e.S&&(r=r.content);l<=s;++l)o[l]&&(i=jt(null,e,l),i&&(o[l].N=i,Rt(r,i,Mt(n))))},kt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.N;It(n),t&&(yt=!0,t["s-ol"]?t["s-ol"].remove():St(t,!0),t.remove())}}},xt=(t,n,e=!1)=>t.S===n.S&&("slot"===t.S?t.O===n.O:e?(e&&!t.j&&n.j&&(t.j=n.j),!0):t.j===n.j),Mt=t=>t&&t["s-ol"]||t,Ct=(t,n,e=!1)=>{const o=n.N=t.N,l=t.m,s=n.m,i=n.h;let r;null==i?("slot"!==n.S||vt||t.O!==n.O&&(n.N["s-sn"]=n.O||"",Ot(n.N.parentElement)),pt(t,n,bt,e),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=n.length-1,d=n[0],$=n[a],p=o.length-1,h=o[0],v=o[p];const y="template"===e.S?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=n[++r];else if(null==$)$=n[--a];else if(null==h)h=o[++c];else if(null==v)v=o[--p];else if(xt(d,h,l))Ct(d,h,l),d=n[++r],h=o[++c];else if(xt($,v,l))Ct($,v,l),$=n[--a],v=o[--p];else if(xt(d,v,l))"slot"!==d.S&&"slot"!==v.S||St(d.N.parentNode,!1),Ct(d,v,l),Rt(y,d.N,$.N.nextSibling),d=n[++r],v=o[--p];else if(xt($,h,l))"slot"!==d.S&&"slot"!==v.S||St($.N.parentNode,!1),Ct($,h,l),Rt(y,$.N,d.N),$=n[--a],h=o[++c];else{for(f=-1,u=r;u<=a;++u)if(n[u]&&null!==n[u].j&&n[u].j===h.j){f=u;break}f>=0?(i=n[f],i.S!==h.S?s=jt(n&&n[c],e,f):(Ct(i,h,l),n[f]=void 0,s=i.N),h=o[++c]):(s=jt(n&&n[c],e,c),h=o[++c]),s&&Rt(Mt(d.N).parentNode,s,Mt(d.N))}r>a?Nt(t,null==o[p+1]?null:o[p+1].N,e,o,c,p):c>p&&kt(n,r,a)})(o,l,n,s,e):null!==s?(null!==t.h&&(o.textContent=""),Nt(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.m=l):kt(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.h!==i&&(o.data=i)},Et=[],At=t=>{let n,e,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){e=n.parentNode.__childNodes||n.parentNode.childNodes;const l=t["s-sn"];for(o=e.length-1;o>=0;o--)if(n=e[o],!(n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||n["s-sh"]&&n["s-sh"]===t["s-hn"]))if(B(n,l)){let e=Et.find((t=>t.I===n));yt=!0,n["s-sn"]=n["s-sn"]||l,e?(e.I["s-sh"]=t["s-hn"],e.L=t):(n["s-sh"]=t["s-hn"],Et.push({L:t,I:n})),n["s-sr"]&&Et.map((t=>{B(t.I,n["s-sn"])&&(e=Et.find((t=>t.I===n)),e&&!t.L&&(t.L=e.L))}))}else Et.some((t=>t.I===n))||Et.push({I:n})}1===t.nodeType&&At(t)}},It=t=>{t.v&&t.v.ref&>.push((()=>t.v.ref(null))),t.m&&t.m.map(It)},Lt=(t,n)=>{wt.push((()=>t(n)))},Rt=(t,n,e,o)=>{if("string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])_t(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){t.insertBefore(n,e);const{slotNode:l}=function(t,n){var e;if(!(n=n||(null==(e=t["s-ol"])?void 0:e.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=T(t)||"";return{slotNode:_(V(n,"childNodes"),n.tagName,o)[0],slotName:o}}(n);return l&&!o&&l.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),n}return t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e)};function _t(t,n,e,o){var l,s;let i;if(t&&"string"==typeof n["s-sn"]&&n["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=n["s-si"]||t.parentNode["s-sc"])){const t=n["s-sn"],r=n["s-hn"];if(null==(l=e.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let n=(o.__childNodes||o.childNodes)[0],e=!1;for(;n;){if(n["s-sn"]!==t&&n["s-hn"]===r&&n["s-sr"]){e=!0;break}n=n.nextSibling}e||o.classList.remove(i+"-s")}}}var Dt=(t,n,e=!1)=>{var o,l,s,i,r;const c=t.$hostElement$,f=t.o,u=t.R||J(null,null);var a;const d=(a=n)&&a.S===Z?n:Y(null,null,n);if(et=c.tagName,f._&&(d.v=d.v||{},f._.forEach((([t,n])=>{d.v[n]=c[t]}))),e&&d.v)for(const t of Object.keys(d.v))c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.v[t]=c[t]);if(d.S=null,d.i|=4,t.R=d,d.N=u.N=c.shadowRoot||c,tt=c["s-sc"],vt=!(!(1&f.i)||128&f.i),nt=c["s-cr"],yt=!1,Ct(u,d,e),g.i|=1,mt){At(d.N);for(const t of Et){const n=t.I;if(!n["s-ol"]&&m.document){const t=m.document.createTextNode("");t["s-nr"]=n,Rt(n.parentNode,n["s-ol"]=t,n,e)}}for(const t of Et){const n=t.I,r=t.L;if(1===n.nodeType&&e&&(n["s-ih"]=null!=(o=n.hidden)&&o),r){const t=r.parentNode;let o=r.nextSibling;if(o&&1===o.nodeType){let e=null==(l=n["s-ol"])?void 0:l.previousSibling;for(;e;){let l=null!=(s=e["s-nr"])?s:null;if(l&&l["s-sn"]===n["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===n||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}e=e.previousSibling}}if((!o&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==o)&&n!==o){if(Rt(t,n,o,e),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=m.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,Rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(i=n["s-ih"])&&i)}n&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===n.nodeType&&(n.hidden=!0)}}if(yt&&R(d.N),g.i&=-2,Et.length=0,!vt&&!(1&f.i)&&c["s-cr"]){const t=d.N.__childNodes||d.N.childNodes;for(const n of t)if(n["s-hn"]!==et&&!n["s-sh"])if(e&&null==n["s-ih"]&&(n["s-ih"]=null!=(r=n.hidden)&&r),1===n.nodeType)n.hidden=!0;else if(3===n.nodeType&&n.nodeValue.trim()){const t=m.document.createComment("s-nt-"+n.nodeValue);t["s-sn"]=n["s-sn"],Rt(n.parentNode,t,n,e),n.parentNode.removeChild(n)}}nt=void 0,gt.forEach((t=>t())),gt.length=0,wt.forEach((t=>t())),wt.length=0},Bt=(t,n)=>{if(n&&!t.D&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.D=()=>{n["s-p"].splice(e-1,1),o()})))}},Ft=(t,n)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Bt(t,t.B);const e=()=>Tt(t,n);if(!n)return E(e);queueMicrotask((()=>{e()}))},Tt=(t,n)=>{const e=t.$hostElement$,o=e;if(!o)throw new Error(`Can't render component <${e.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=qt(o,n?"componentWillLoad":"componentWillUpdate",void 0,e),l=Ut(l,(()=>qt(o,"componentWillRender",void 0,e))),Ut(l,(()=>Ht(t,o,n)))},Ut=(t,n)=>Vt(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),Vt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Ht=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.i,l=z(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);Pt(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>zt(t);0===n.length?e():(Promise.all(n).then(e).catch(e),t.i|=4,n.length=0)}},Pt=(t,n,e,o)=>{try{n=n.render(),t.i&=-17,t.i|=2,Dt(t,n,o)}catch(n){a(n,t.$hostElement$)}return null},zt=t=>{const n=t.$hostElement$,e=n,o=t.B;qt(e,"componentDidRender",void 0,n),64&t.i?qt(e,"componentDidUpdate",void 0,n):(t.i|=64,Yt(n),qt(e,"componentDidLoad",void 0,n),t.F(n),o||Wt()),t.D&&(t.D(),t.D=void 0),512&t.i&&C((()=>Ft(t,!1))),t.i&=-517},Wt=()=>{var t;C((()=>ct(m,"appload",{detail:{namespace:"lmvz-components"}}))),(null==(t=g.T)?void 0:t.size)&&g.T.clear()},qt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){a(t,o)}},Yt=t=>t.classList.add("hydrated"),Jt=(t,n,e,o)=>{const l=f(t);if(!l)return;const s=t,i=l.l.get(n),r=l.i,c=s;e=it(e,o.t[n][0],!!(64&o.i));const u=Number.isNaN(i)&&Number.isNaN(e);if(e!==i&&!u){if(l.l.set(n,e),o.U){const t=o.U[n];t&&t.map((t=>{try{const[[o,s]]=Object.entries(t);(128&r||1&s)&&(c?c[o](e,i,n):l.V.push((()=>{l.H[o](e,i,n)})))}catch(t){a(t,s)}}))}if(2&r){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,i,n)&&!(16&r))return;16&r||Ft(l,!1)}}},Zt=(t,n,e)=>{var o,l;const s=t.prototype;64&n.i&&1&e&&y.forEach((t=>{const n=s[t];Object.defineProperty(s,t,{value(...e){var o;const l=f(this),s=this;s?"function"==typeof n&&n.call(s,...e):null==(o=null==l?void 0:l.P)||o.then((n=>{const o=n[t];"function"==typeof o&&o.call(n,...e)}))}})}));{t.watchers&&!n.U&&(n.U=t.watchers),t.deserializers&&!n.W&&(n.W=t.deserializers),t.serializers&&!n.q&&(n.q=t.serializers);const e=Object.entries(null!=(o=n.t)?o:{});e.map((([t,[e]])=>{if(31&e||32&e){const{get:o,set:l}=i(s,t)||{};o&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return o?o.apply(this):(n=t,f(this).l.get(n));var n},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(o){const s=f(this);if(s){if(l)return void 0===(32&e?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(o=s.l.get(t)),l.apply(this,[it(o,e,!!(64&n.i))]),void Jt(this,t,o=32&e?this[t]:s.$hostElement$[t],n);Jt(this,t,o,n)}}})}}));{const o=new Map;s.attributeChangedCallback=function(t,l,i){g.jmp((()=>{var r;const c=o.get(t),u=f(this);if(this.hasOwnProperty(c),s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&i!==l){const o=this,s=null==(r=n.U)?void 0:r[t];null==s||s.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&e||1&r)&&o[s].call(o,i,l,t)}))}return}const a=e.find((([t])=>t===c));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(s,c);i==this[c]||d.get&&!d.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.U)?l:{}),...e.filter((([t,n])=>31&n[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n._)||l.push([t,s])),s}))]))}}return t},Gt=t=>{if(!m.document)return;const n=t["s-cr"]=m.document.createComment("");n["s-cn"]=!0,Rt(t,n,t.firstChild)},Kt=(t,n)=>{const e={i:n[0],p:n[1]};try{e.t=n[2],e.U=t.U,e.W=t.W,e.q=t.q,e._=[],(()=>{if(!m.document)return;const t=m.document.querySelectorAll(`[${p}]`);let n=0;for(;n<t.length;n++)P(t[n].getAttribute(p),t[n].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0)})();const o=t.prototype.connectedCallback,l=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const e={i:0,$hostElement$:t,o:n,l:new Map,Y:new Map};e.P=new Promise((t=>e.F=t)),t["s-p"]=[],t["s-rc"]=[];const o=e;t.__stencil__getHostRef=()=>o,512&n.i&&c(t,e)})(this,e)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!f(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&g.i)){const n=f(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.i)(null==n?void 0:n.H)||(null==n?void 0:n.P)&&n.P.then((()=>{}));else{let o;if(n.i|=1,o=t.getAttribute($),o){if(1&e.i){const n=z(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}else if(2&e.i){const n=W(e);t["s-sc"]=n}((t,n,e,o)=>{var l,s,i,r;const c=t.shadowRoot,u=[],a=[],d=[],p=c?[]:null,h=J(n,null);let v;h.N=t;{const n=o.o;n&&10&n.i&&t["s-sc"]?(v=t["s-sc"],t.classList.add(v+"-h")):t["s-sc"]&&delete t["s-sc"]}!m.document||g.T&&g.T.size||K(m.document.body,g.T=new Map),t[$]=e,t.removeAttribute($),o.R=G(h,u,a,p,t,t,e,d);let y=0;const b=u.length;let w;for(;y<b;y++){w=u[y];const e=w.k+"."+w.M,o=g.T.get(e),s=w.N;if(c){if((null==(l=w.S)?void 0:l.toString().includes("-"))&&"slot-fb"!==w.S&&!w.N.shadowRoot){const t=f(w.N);if(t){const n=W(t.o),e=m.document.querySelector(`style[sty-id="${n}"]`);e&&p.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===w.S&&(s["s-cr"]=t["s-cr"]);"slot"===w.S&&(w.O=w.N["s-sn"]||w.N.name||null,w.m?(w.i|=2,w.N.childNodes.length||w.m.forEach((t=>{w.N.appendChild(t.N)}))):w.i|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),c||(s["s-oo"]=parseInt(w.M))),o&&!o["s-id"]&&g.T.delete(e)}const j=[],O=d.length;let S,N,k,x,M=0,C=0;for(;M<O;M++)if(S=d[M],S&&S.length)for(k=S.length,N=0;N<k;N++){if(x=S[N],j[x.hostId]||(j[x.hostId]=g.T.get(x.hostId)),!j[x.hostId])continue;const t=j[x.hostId];t.shadowRoot&&x.node.parentElement!==t&&t.insertBefore(x.node,null==(i=null==(s=S[N-1])?void 0:s.node)?void 0:i.nextSibling),t.shadowRoot&&c||(x.slot["s-cr"]||(x.slot["s-cr"]=t["s-cr"],x.slot["s-cr"]=!x.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),F(x.node,x.slot,0,x.node["s-oo"]||C),(null==(r=x.node.parentElement)?void 0:r.shadowRoot)&&x.node.getAttribute&&x.node.getAttribute("slot")&&x.node.removeAttribute("slot")),C=(x.node["s-oo"]||C)+1}if(v&&a.length&&a.forEach((t=>{t.N.parentElement.classList.add(v+"-s")})),c&&!c.childNodes.length){let n=0;const e=p.length;if(e){for(;n<e;n++){const t=p[n];t&&c.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.p,o,n)}o||12&e.i&&Gt(t);{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){Bt(n,n.B=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&Object.prototype.hasOwnProperty.call(t,n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;try{if(!(32&n.i)&&(n.i|=32,o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.i|=128)),o&&o.style)){let t;"string"==typeof o.style&&(t=o.style);const n=W(e);if(!d.has(n)){const o=()=>{};P(n,t,!!(1&e.i)),o()}}const l=n.B,s=()=>Ft(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()}catch(e){a(e,t),n.D&&(n.D(),n.D=void 0),n.F&&n.F(t)}})(t,n,e)}o()}})(this),o&&o.call(this)},disconnectedCallback(){(async t=>{1&g.i||f(t),H.has(t)&&H.delete(t),t.shadowRoot&&H.has(t.shadowRoot)&&H.delete(t.shadowRoot)})(this),l&&l.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${e.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else L.call(this,e)}}),Object.defineProperty(t,"is",{value:e.p,configurable:!0}),Zt(t,e,3)}catch(n){return a(n),t}},Qt=t=>g.$=t,Xt=t=>Object.assign(g,t);function tn(t,n){Dt({o:{i:0,p:n.tagName},$hostElement$:n},t)}function nn(t){return t}export{t as B,b as H,Qt as a,Xt as b,rt as c,Z as d,A as g,Y as h,Kt as p,tn as r,I as s,nn as t}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{B as t,H as i}from"./p-CahBdGGN.js";const o=Symbol("__lmvzAriaValidationRuntimeState"),e="lmvz:aria-validation-runtime-changed";function n(){const t=globalThis;return t[o]||(t[o]={enabled:!1}),t[o]}function s(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(e))}const a=()=>n().enabled,r=()=>n().verboseLogging??!1,l=(t={})=>{const i=n();i.enabled||(Object.assign(i,t),i.enabled=!0,async function(...t){const i=await async function(){const t=n();if(!t.enabled)return null;if(t.runtime)return t.runtime;t.loadPromise||(t.loadPromise=import("./p-vIq2biqy.js").catch((()=>null)));const i=await t.loadPromise;return i&&(t.runtime=i),i}();n().enabled&&(i?i.initializeValidationStream(...t):console.warn("Failed to load aria validation runtime"))}().then((()=>{s()})))},h=()=>{const t=n();t.enabled&&(t.enabled=!1,s())};function d(...t){const{enabled:i,runtime:o,loadPromise:e,lazyCondition:s}=n();if(i){if(!s)return a();(function(t,i=[]){const o=t(...i);return(e=o)&&"object"==typeof e&&"function"==typeof e.then?o:Promise.resolve(o);var e})(s).then((t=>{t&&a()}))}function a(){if(o)return o.enqueueValidation(...t);e?e.then((i=>{i?.enqueueValidation?i.enqueueValidation(...t):console.error("Failed to load aria validation runtime")})).catch((()=>{console.error("Failed to enqueue validation due to an error while loading the runtime")})):console.warn("neither runtime nor load promise found for aria validation. This should not happen, as enabling aria validation should have triggered the loading of the runtime.")}}class c{host;config;visibilityObserver;elementQueued=!1;elementValidated=!1;elementLoaded=!1;static knownValidationErrors=[];get disabled(){return!a()}get useVerboseLogging(){return this.config?.verboseLogging||t.isDev||r()}constructor(t,i){this.host=t,this.config=i}onRuntimeConfigChange=()=>{a()&&this.checkLazyValidation()};hostDidLoad(){this.elementLoaded=!0,"undefined"!=typeof window&&window.addEventListener(e,this.onRuntimeConfigChange),this.elementQueued||this.elementValidated||("slot"!==this.config?.validationTiming?this.host.validationEl?.checkVisibility()&&"load"===this.config?.validationTiming?this.enqueueValidation():this.observeVisibilityOnce():this.observeSlot())}hostDidUpdate(){this.checkLazyValidation()}hostDisconnected(){this.discardVisibilityObserver(),"undefined"!=typeof window&&window.removeEventListener(e,this.onRuntimeConfigChange)}revalidateAria(){this.enqueueValidation()}observeSlot(){this.host.validationSlot?.addEventListener("slotchange",this.enqueueValidation.bind(this))}observeVisibilityOnce(){window.setTimeout((()=>{this.host.validationEl&&(this.visibilityObserver=new IntersectionObserver((t=>{for(const i of t)i.target===this.host.validationEl&&i.isIntersecting&&(this.checkLazyValidation(),this.discardVisibilityObserver())}),{root:this.host.validationEl?.parentElement,rootMargin:"0px",threshold:.01}),this.visibilityObserver.observe(this.host.validationEl))}))}checkLazyValidation(){this.elementLoaded&&(this.config?.reValidateOnPropChanges||!this.elementQueued&&!this.elementValidated)&&this.host.validationEl?.checkVisibility()&&this.enqueueValidation()}enqueueValidation(){a()&&(this.elementQueued=!0,d({context:{include:this.host.validationEl,exclude:c.knownValidationErrors},onComplete:(t,i)=>{this.elementValidated=!0;const o=this.host.tagName||this.host.validationEl?.tagName||"Element";if(t)return console.error("Error running ARIA validation:",t,o),void(this.host.validationEl?.tagName||console.dir(this.host));const e=[o];if(!i?.violations.length)return void(this.useVerboseLogging&&(console.log(...e,"has no ARIA violations"),this.host.validationEl?.tagName||console.dir(this.host)));const n=i.violations.length,s=[...e,i.violations.at(0).id,n>1?`(+${n-1} more)`:""].filter(Boolean).join(" ");this.useVerboseLogging?console.group(s):console.groupCollapsed(s);const a=i.violations.flatMap((t=>(console.dir(t,{showHidden:!0,compact:!1}),t.nodes.map((t=>t.target)))));this.host.validationEl?console.log("element:",this.host.validationEl):console.dir(this.host),console.groupEnd(),c.knownValidationErrors.push(...a)}}))}discardVisibilityObserver(){this.visibilityObserver&&(this.visibilityObserver.disconnect(),this.visibilityObserver=void 0)}}const u=class extends i{constructor(){super(!1)}controllers=new Set;addController(t){this.controllers.add(t)}removeController(t){this.controllers.delete(t)}get activeControllers(){return Array.from(this.controllers).filter((t=>!t.disabled))}connectedCallback(){this.controllers.size||console.warn("ReactiveControllerHost connected with no controllers registered.",this),this.activeControllers.forEach((t=>t.hostConnected?.()))}disconnectedCallback(){this.activeControllers.forEach((t=>t.hostDisconnected?.()))}componentWillLoad(){this.activeControllers.forEach((t=>t.hostWillLoad?.()))}componentDidLoad(){this.activeControllers.forEach((t=>t.hostDidLoad?.()))}componentWillRender(){this.activeControllers.forEach((t=>t.hostWillRender?.()))}componentDidRender(){this.activeControllers.forEach((t=>t.hostDidRender?.()))}componentWillUpdate(){this.activeControllers.forEach((t=>t.hostWillUpdate?.()))}componentDidUpdate(){this.activeControllers.forEach((t=>t.hostDidUpdate?.()))}};export{e as A,u as R,c as a,h as d,l as e,a as i,d as q,r as u}
|