@mx-space/cli 0.14.2 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -12
- package/dist/{Lexical.dev-CtGmYDoh.mjs → Lexical.dev-BSvx45_E.mjs} +350 -402
- package/dist/{Lexical.node-8sRFmq2X.mjs → Lexical.node-kAh5GM2n.mjs} +2 -2
- package/dist/{Lexical.prod-D-VfeKDz.mjs → Lexical.prod-Bqwgb3ez.mjs} +1757 -1785
- package/dist/{LexicalClipboard.dev-CzQ15z6E.mjs → LexicalClipboard.dev-BWU3KXIa.mjs} +19 -15
- package/dist/{LexicalClipboard.node-D4gMGws6.mjs → LexicalClipboard.node-BygAdNdF.mjs} +2 -2
- package/dist/{LexicalClipboard.prod-CltkQpzS.mjs → LexicalClipboard.prod-BtMuKNyT.mjs} +11 -11
- package/dist/{LexicalCodeCore.dev-DkYBZRGB.mjs → LexicalCodeCore.dev-CD2xgvDs.mjs} +95 -89
- package/dist/{LexicalCodeCore.prod-COc3_QL8.mjs → LexicalCodeCore.prod-Bl6FFMc7.mjs} +146 -158
- package/dist/{LexicalDragon.dev-Dv5_WUae.mjs → LexicalDragon.dev-BwdYhm4K.mjs} +3 -3
- package/dist/{LexicalDragon.node-DgjrmWkd.mjs → LexicalDragon.node-CpJhkCVV.mjs} +2 -2
- package/dist/{LexicalDragon.prod-DnpbDe-_.mjs → LexicalDragon.prod-CvXmWwo1.mjs} +3 -3
- package/dist/{LexicalExtension.dev-JMH_6-OZ.mjs → LexicalExtension.dev-LcRLXI5Z.mjs} +33 -30
- package/dist/{LexicalExtension.node-BUozzx4t.mjs → LexicalExtension.node-BwJt2LXV.mjs} +2 -2
- package/dist/{LexicalExtension.prod-UiyDgmou.mjs → LexicalExtension.prod-lg8_33-H.mjs} +87 -93
- package/dist/{LexicalHeadless.dev-BfLGciiX.mjs → LexicalHeadless.dev-BeUbKBes.mjs} +2 -2
- package/dist/{LexicalHeadless.prod-CWF7edmQ.mjs → LexicalHeadless.prod-4gbIA8HM.mjs} +2 -2
- package/dist/{LexicalHtml.dev-D5EF5PGW.mjs → LexicalHtml.dev-BLdZWTCJ.mjs} +22 -16
- package/dist/{LexicalHtml.node-BYbzHNVe.mjs → LexicalHtml.node-BeuJMvvt.mjs} +2 -2
- package/dist/{LexicalHtml.prod-D_FfkvVD.mjs → LexicalHtml.prod-CHUyCocN.mjs} +6 -6
- package/dist/{LexicalLink.dev-D3Pgh6ik.mjs → LexicalLink.dev-DgsFRqw0.mjs} +41 -58
- package/dist/{LexicalLink.prod-XZoAYVYD.mjs → LexicalLink.prod-CkXkeKY2.mjs} +115 -138
- package/dist/{LexicalList.dev-B5d3ObhB.mjs → LexicalList.dev-OOms3kQi.mjs} +15 -47
- package/dist/{LexicalList.prod-OQDpVAEb.mjs → LexicalList.prod-DzMBeqHn.mjs} +208 -224
- package/dist/{LexicalMarkdown.dev-BkM8G3DG.mjs → LexicalMarkdown.dev-DJLKbZtD.mjs} +42 -30
- package/dist/{LexicalMarkdown.prod-DcVXCex6.mjs → LexicalMarkdown.prod-Cp21kDCU.mjs} +12 -8
- package/dist/{LexicalRichText.dev-DppD7IrA.mjs → LexicalRichText.dev-0rkAGjUf.mjs} +84 -86
- package/dist/{LexicalRichText.node-CPSn7dkg.mjs → LexicalRichText.node-Cd-BySPE.mjs} +8 -8
- package/dist/{LexicalRichText.prod-h7JPxFNp.mjs → LexicalRichText.prod-DTQiEr8C.mjs} +96 -100
- package/dist/{LexicalSelection.dev-CD0SLbxP.mjs → LexicalSelection.dev-Bi0VlUEv.mjs} +29 -25
- package/dist/{LexicalSelection.node-CGlJgUlZ.mjs → LexicalSelection.node-t2U46EF_.mjs} +2 -2
- package/dist/{LexicalSelection.prod-DbVZN5AV.mjs → LexicalSelection.prod-CrFG111g.mjs} +3 -3
- package/dist/{LexicalTable.dev-D0HU14UV.mjs → LexicalTable.dev-D-sFhO-o.mjs} +288 -154
- package/dist/{LexicalTable.prod-BcPNSrxP.mjs → LexicalTable.prod-DwYaa_dN.mjs} +689 -632
- package/dist/{LexicalUtils.dev-iKy_TrRT.mjs → LexicalUtils.dev-Q2q3-UDM.mjs} +9 -6
- package/dist/{LexicalUtils.node-CIgMS8cG.mjs → LexicalUtils.node-Dl7OvqJV.mjs} +2 -2
- package/dist/{LexicalUtils.prod-DIAsKJzu.mjs → LexicalUtils.prod-CBnq_iEV.mjs} +8 -7
- package/dist/bin/mxs.mjs +1 -1
- package/dist/esm-CNZ7kdTg.mjs +2 -0
- package/dist/{esm-CwXl1N0a.mjs → esm-ZXjJmLEC.mjs} +422 -391
- package/dist/index.d.mts +16 -16
- package/dist/index.mjs +1 -1
- package/dist/{mxs-iW9DgqSZ.mjs → mxs-DC9zR3f2.mjs} +2203 -2782
- package/dist/{rolldown-runtime-JspESFgx.mjs → rolldown-runtime-B4iAMlE-.mjs} +1 -1
- package/dist/src/bin/mxs.d.ts +2 -0
- package/dist/src/bin/mxs.js +310 -0
- package/dist/src/cli/ai/_poll.d.ts +12 -0
- package/dist/src/cli/ai/_poll.js +38 -0
- package/dist/src/cli/ai/_resolve.d.ts +8 -0
- package/dist/src/cli/ai/_resolve.js +27 -0
- package/dist/src/cli/ai/index.d.ts +127 -0
- package/dist/src/cli/ai/index.js +46 -0
- package/dist/src/cli/ai/insights/by-article.d.ts +10 -0
- package/dist/src/cli/ai/insights/by-article.js +21 -0
- package/dist/src/cli/ai/insights/delete.d.ts +7 -0
- package/dist/src/cli/ai/insights/delete.js +18 -0
- package/dist/src/cli/ai/insights/edit.d.ts +8 -0
- package/dist/src/cli/ai/insights/edit.js +54 -0
- package/dist/src/cli/ai/insights/get.d.ts +6 -0
- package/dist/src/cli/ai/insights/get.js +11 -0
- package/dist/src/cli/ai/insights/index.d.ts +30 -0
- package/dist/src/cli/ai/insights/index.js +17 -0
- package/dist/src/cli/ai/insights/list.d.ts +10 -0
- package/dist/src/cli/ai/insights/list.js +20 -0
- package/dist/src/cli/ai/insights/refresh.d.ts +10 -0
- package/dist/src/cli/ai/insights/refresh.js +25 -0
- package/dist/src/cli/ai/insights/translate.d.ts +10 -0
- package/dist/src/cli/ai/insights/translate.js +25 -0
- package/dist/src/cli/ai/overview/by-article.d.ts +7 -0
- package/dist/src/cli/ai/overview/by-article.js +15 -0
- package/dist/src/cli/ai/overview/index.d.ts +11 -0
- package/dist/src/cli/ai/overview/index.js +4 -0
- package/dist/src/cli/ai/overview/list.d.ts +10 -0
- package/dist/src/cli/ai/overview/list.js +20 -0
- package/dist/src/cli/ai/summary/by-article.d.ts +10 -0
- package/dist/src/cli/ai/summary/by-article.js +21 -0
- package/dist/src/cli/ai/summary/delete.d.ts +7 -0
- package/dist/src/cli/ai/summary/delete.js +18 -0
- package/dist/src/cli/ai/summary/edit.d.ts +8 -0
- package/dist/src/cli/ai/summary/edit.js +54 -0
- package/dist/src/cli/ai/summary/get.d.ts +6 -0
- package/dist/src/cli/ai/summary/get.js +11 -0
- package/dist/src/cli/ai/summary/index.d.ts +30 -0
- package/dist/src/cli/ai/summary/index.js +9 -0
- package/dist/src/cli/ai/summary/list.d.ts +10 -0
- package/dist/src/cli/ai/summary/list.js +20 -0
- package/dist/src/cli/ai/summary/regen.d.ts +10 -0
- package/dist/src/cli/ai/summary/regen.js +25 -0
- package/dist/src/cli/ai/summary/translate.d.ts +10 -0
- package/dist/src/cli/ai/summary/translate.js +25 -0
- package/dist/src/cli/ai/translate/by-article.d.ts +9 -0
- package/dist/src/cli/ai/translate/by-article.js +19 -0
- package/dist/src/cli/ai/translate/delete.d.ts +7 -0
- package/dist/src/cli/ai/translate/delete.js +18 -0
- package/dist/src/cli/ai/translate/edit.d.ts +8 -0
- package/dist/src/cli/ai/translate/edit.js +97 -0
- package/dist/src/cli/ai/translate/entries/delete.d.ts +7 -0
- package/dist/src/cli/ai/translate/entries/delete.js +18 -0
- package/dist/src/cli/ai/translate/entries/edit.d.ts +8 -0
- package/dist/src/cli/ai/translate/entries/edit.js +73 -0
- package/dist/src/cli/ai/translate/entries/generate.d.ts +7 -0
- package/dist/src/cli/ai/translate/entries/generate.js +15 -0
- package/dist/src/cli/ai/translate/entries/index.d.ts +17 -0
- package/dist/src/cli/ai/translate/entries/index.js +6 -0
- package/dist/src/cli/ai/translate/entries/list.d.ts +10 -0
- package/dist/src/cli/ai/translate/entries/list.js +20 -0
- package/dist/src/cli/ai/translate/get.d.ts +6 -0
- package/dist/src/cli/ai/translate/get.js +11 -0
- package/dist/src/cli/ai/translate/index.d.ts +40 -0
- package/dist/src/cli/ai/translate/index.js +19 -0
- package/dist/src/cli/ai/translate/languages.d.ts +7 -0
- package/dist/src/cli/ai/translate/languages.js +15 -0
- package/dist/src/cli/ai/translate/list.d.ts +9 -0
- package/dist/src/cli/ai/translate/list.js +19 -0
- package/dist/src/cli/ai/translate/run.d.ts +10 -0
- package/dist/src/cli/ai/translate/run.js +31 -0
- package/dist/src/cli/ai/tts/by-article.d.ts +7 -0
- package/dist/src/cli/ai/tts/by-article.js +15 -0
- package/dist/src/cli/ai/tts/delete.d.ts +7 -0
- package/dist/src/cli/ai/tts/delete.js +18 -0
- package/dist/src/cli/ai/tts/index.d.ts +22 -0
- package/dist/src/cli/ai/tts/index.js +7 -0
- package/dist/src/cli/ai/tts/list.d.ts +10 -0
- package/dist/src/cli/ai/tts/list.js +20 -0
- package/dist/src/cli/ai/tts/run.d.ts +10 -0
- package/dist/src/cli/ai/tts/run.js +25 -0
- package/dist/src/cli/ai/tts/voices.d.ts +7 -0
- package/dist/src/cli/ai/tts/voices.js +12 -0
- package/dist/src/cli/ai/views.d.ts +3 -0
- package/dist/src/cli/ai/views.js +45 -0
- package/dist/src/cli/auth/index.d.ts +6 -0
- package/dist/src/cli/auth/index.js +22 -0
- package/dist/src/cli/auth/login.d.ts +11 -0
- package/dist/src/cli/auth/login.js +168 -0
- package/dist/src/cli/auth/logout.d.ts +6 -0
- package/dist/src/cli/auth/logout.js +21 -0
- package/dist/src/cli/auth/status.d.ts +4 -0
- package/dist/src/cli/auth/status.js +31 -0
- package/dist/src/cli/auth/view.d.ts +25 -0
- package/dist/src/cli/auth/view.js +46 -0
- package/dist/src/cli/auth/whoami.d.ts +7 -0
- package/dist/src/cli/auth/whoami.js +44 -0
- package/dist/src/cli/category/create.d.ts +10 -0
- package/dist/src/cli/category/create.js +24 -0
- package/dist/src/cli/category/delete.d.ts +8 -0
- package/dist/src/cli/category/delete.js +21 -0
- package/dist/src/cli/category/get.d.ts +6 -0
- package/dist/src/cli/category/get.js +11 -0
- package/dist/src/cli/category/index.d.ts +20 -0
- package/dist/src/cli/category/index.js +41 -0
- package/dist/src/cli/category/list.d.ts +4 -0
- package/dist/src/cli/category/list.js +10 -0
- package/dist/src/cli/category/update.d.ts +12 -0
- package/dist/src/cli/category/update.js +34 -0
- package/dist/src/cli/comment/_flags.d.ts +28 -0
- package/dist/src/cli/comment/_flags.js +48 -0
- package/dist/src/cli/comment/approve.d.ts +9 -0
- package/dist/src/cli/comment/approve.js +23 -0
- package/dist/src/cli/comment/delete.d.ts +9 -0
- package/dist/src/cli/comment/delete.js +24 -0
- package/dist/src/cli/comment/get.d.ts +6 -0
- package/dist/src/cli/comment/get.js +12 -0
- package/dist/src/cli/comment/index.d.ts +34 -0
- package/dist/src/cli/comment/index.js +53 -0
- package/dist/src/cli/comment/list.d.ts +9 -0
- package/dist/src/cli/comment/list.js +20 -0
- package/dist/src/cli/comment/reject.d.ts +9 -0
- package/dist/src/cli/comment/reject.js +23 -0
- package/dist/src/cli/comment/reply.d.ts +9 -0
- package/dist/src/cli/comment/reply.js +31 -0
- package/dist/src/cli/comment/unread.d.ts +7 -0
- package/dist/src/cli/comment/unread.js +21 -0
- package/dist/src/cli/comment/view.d.ts +3 -0
- package/dist/src/cli/comment/view.js +197 -0
- package/dist/src/cli/config/edit.d.ts +5 -0
- package/dist/src/cli/config/edit.js +36 -0
- package/dist/src/cli/config/get.d.ts +6 -0
- package/dist/src/cli/config/get.js +11 -0
- package/dist/src/cli/config/index.d.ts +10 -0
- package/dist/src/cli/config/index.js +22 -0
- package/dist/src/cli/config/list.d.ts +4 -0
- package/dist/src/cli/config/list.js +10 -0
- package/dist/src/cli/config/set.d.ts +9 -0
- package/dist/src/cli/config/set.js +48 -0
- package/dist/src/cli/draft/_shared.d.ts +27 -0
- package/dist/src/cli/draft/_shared.js +85 -0
- package/dist/src/cli/draft/create.d.ts +21 -0
- package/dist/src/cli/draft/create.js +34 -0
- package/dist/src/cli/draft/delete.d.ts +7 -0
- package/dist/src/cli/draft/delete.js +20 -0
- package/dist/src/cli/draft/get.d.ts +6 -0
- package/dist/src/cli/draft/get.js +11 -0
- package/dist/src/cli/draft/index.d.ts +54 -0
- package/dist/src/cli/draft/index.js +42 -0
- package/dist/src/cli/draft/list.d.ts +11 -0
- package/dist/src/cli/draft/list.js +23 -0
- package/dist/src/cli/draft/publish.d.ts +8 -0
- package/dist/src/cli/draft/publish.js +64 -0
- package/dist/src/cli/draft/update.d.ts +22 -0
- package/dist/src/cli/draft/update.js +29 -0
- package/dist/src/cli/file/_shared.d.ts +6 -0
- package/dist/src/cli/file/_shared.js +5 -0
- package/dist/src/cli/file/delete.d.ts +8 -0
- package/dist/src/cli/file/delete.js +21 -0
- package/dist/src/cli/file/index.d.ts +19 -0
- package/dist/src/cli/file/index.js +33 -0
- package/dist/src/cli/file/list.d.ts +6 -0
- package/dist/src/cli/file/list.js +11 -0
- package/dist/src/cli/file/rename.d.ts +8 -0
- package/dist/src/cli/file/rename.js +16 -0
- package/dist/src/cli/file/upload.d.ts +9 -0
- package/dist/src/cli/file/upload.js +32 -0
- package/dist/src/cli/help/index.d.ts +62 -0
- package/dist/src/cli/help/index.js +276 -0
- package/dist/src/cli/help/registry.d.ts +28 -0
- package/dist/src/cli/help/registry.js +29 -0
- package/dist/src/cli/note/_flags.d.ts +66 -0
- package/dist/src/cli/note/_flags.js +73 -0
- package/dist/src/cli/note/create.d.ts +23 -0
- package/dist/src/cli/note/create.js +25 -0
- package/dist/src/cli/note/delete.d.ts +8 -0
- package/dist/src/cli/note/delete.js +21 -0
- package/dist/src/cli/note/edit.d.ts +28 -0
- package/dist/src/cli/note/edit.js +114 -0
- package/dist/src/cli/note/get.d.ts +6 -0
- package/dist/src/cli/note/get.js +29 -0
- package/dist/src/cli/note/index.d.ts +77 -0
- package/dist/src/cli/note/index.js +63 -0
- package/dist/src/cli/note/list.d.ts +10 -0
- package/dist/src/cli/note/list.js +22 -0
- package/dist/src/cli/note/publish.d.ts +7 -0
- package/dist/src/cli/note/publish.js +17 -0
- package/dist/src/cli/note/unpublish.d.ts +7 -0
- package/dist/src/cli/note/unpublish.js +17 -0
- package/dist/src/cli/note/update.d.ts +25 -0
- package/dist/src/cli/note/update.js +36 -0
- package/dist/src/cli/note/view.d.ts +3 -0
- package/dist/src/cli/note/view.js +162 -0
- package/dist/src/cli/page/create.d.ts +41 -0
- package/dist/src/cli/page/create.js +56 -0
- package/dist/src/cli/page/delete.d.ts +7 -0
- package/dist/src/cli/page/delete.js +37 -0
- package/dist/src/cli/page/edit.d.ts +19 -0
- package/dist/src/cli/page/edit.js +117 -0
- package/dist/src/cli/page/get.d.ts +6 -0
- package/dist/src/cli/page/get.js +16 -0
- package/dist/src/cli/page/index.d.ts +44 -0
- package/dist/src/cli/page/index.js +38 -0
- package/dist/src/cli/page/list.d.ts +4 -0
- package/dist/src/cli/page/list.js +10 -0
- package/dist/src/cli/page/update.d.ts +16 -0
- package/dist/src/cli/page/update.js +48 -0
- package/dist/src/cli/page/view.d.ts +2 -0
- package/dist/src/cli/page/view.js +79 -0
- package/dist/src/cli/post/_flags.d.ts +66 -0
- package/dist/src/cli/post/_flags.js +96 -0
- package/dist/src/cli/post/apply.d.ts +7 -0
- package/dist/src/cli/post/apply.js +70 -0
- package/dist/src/cli/post/create.d.ts +21 -0
- package/dist/src/cli/post/create.js +24 -0
- package/dist/src/cli/post/delete.d.ts +8 -0
- package/dist/src/cli/post/delete.js +21 -0
- package/dist/src/cli/post/edit.d.ts +26 -0
- package/dist/src/cli/post/edit.js +115 -0
- package/dist/src/cli/post/get.d.ts +7 -0
- package/dist/src/cli/post/get.js +15 -0
- package/dist/src/cli/post/index.d.ts +91 -0
- package/dist/src/cli/post/index.js +73 -0
- package/dist/src/cli/post/list.d.ts +10 -0
- package/dist/src/cli/post/list.js +23 -0
- package/dist/src/cli/post/publish.d.ts +7 -0
- package/dist/src/cli/post/publish.js +17 -0
- package/dist/src/cli/post/stage.d.ts +23 -0
- package/dist/src/cli/post/stage.js +55 -0
- package/dist/src/cli/post/unpublish.d.ts +7 -0
- package/dist/src/cli/post/unpublish.js +17 -0
- package/dist/src/cli/post/update.d.ts +23 -0
- package/dist/src/cli/post/update.js +38 -0
- package/dist/src/cli/post/view.d.ts +3 -0
- package/dist/src/cli/post/view.js +150 -0
- package/dist/src/cli/preview/index.d.ts +13 -0
- package/dist/src/cli/preview/index.js +226 -0
- package/dist/src/cli/profile/index.d.ts +14 -0
- package/dist/src/cli/profile/index.js +36 -0
- package/dist/src/cli/profile/ls.d.ts +5 -0
- package/dist/src/cli/profile/ls.js +26 -0
- package/dist/src/cli/profile/mark.d.ts +9 -0
- package/dist/src/cli/profile/mark.js +23 -0
- package/dist/src/cli/profile/rm.d.ts +12 -0
- package/dist/src/cli/profile/rm.js +50 -0
- package/dist/src/cli/profile/show.d.ts +9 -0
- package/dist/src/cli/profile/show.js +40 -0
- package/dist/src/cli/profile/use.d.ts +6 -0
- package/dist/src/cli/profile/use.js +11 -0
- package/dist/src/cli/profile/view.d.ts +8 -0
- package/dist/src/cli/profile/view.js +21 -0
- package/dist/src/cli/project/_flags.d.ts +56 -0
- package/dist/src/cli/project/_flags.js +130 -0
- package/dist/src/cli/project/create.d.ts +17 -0
- package/dist/src/cli/project/create.js +25 -0
- package/dist/src/cli/project/delete.d.ts +8 -0
- package/dist/src/cli/project/delete.js +22 -0
- package/dist/src/cli/project/edit.d.ts +11 -0
- package/dist/src/cli/project/edit.js +61 -0
- package/dist/src/cli/project/get.d.ts +7 -0
- package/dist/src/cli/project/get.js +14 -0
- package/dist/src/cli/project/index.d.ts +43 -0
- package/dist/src/cli/project/index.js +52 -0
- package/dist/src/cli/project/list.d.ts +8 -0
- package/dist/src/cli/project/list.js +19 -0
- package/dist/src/cli/project/update.d.ts +18 -0
- package/dist/src/cli/project/update.js +24 -0
- package/dist/src/cli/project/view-cmd.d.ts +7 -0
- package/dist/src/cli/project/view-cmd.js +15 -0
- package/dist/src/cli/project/view.d.ts +3 -0
- package/dist/src/cli/project/view.js +102 -0
- package/dist/src/cli/render/codehighlight.d.ts +8 -0
- package/dist/src/cli/render/codehighlight.js +264 -0
- package/dist/src/cli/render/envelope.d.ts +7 -0
- package/dist/src/cli/render/envelope.js +23 -0
- package/dist/src/cli/render/frontmatter.d.ts +8 -0
- package/dist/src/cli/render/frontmatter.js +50 -0
- package/dist/src/cli/render/helpers.d.ts +2 -0
- package/dist/src/cli/render/helpers.js +11 -0
- package/dist/src/cli/render/index.d.ts +7 -0
- package/dist/src/cli/render/index.js +10 -0
- package/dist/src/cli/render/lexical/blocks.d.ts +19 -0
- package/dist/src/cli/render/lexical/blocks.js +208 -0
- package/dist/src/cli/render/lexical/code.d.ts +2 -0
- package/dist/src/cli/render/lexical/code.js +22 -0
- package/dist/src/cli/render/lexical/embeds.d.ts +6 -0
- package/dist/src/cli/render/lexical/embeds.js +51 -0
- package/dist/src/cli/render/lexical/index.d.ts +9 -0
- package/dist/src/cli/render/lexical/index.js +25 -0
- package/dist/src/cli/render/lexical/inlines.d.ts +17 -0
- package/dist/src/cli/render/lexical/inlines.js +76 -0
- package/dist/src/cli/render/lexical/parser.d.ts +10 -0
- package/dist/src/cli/render/lexical/parser.js +64 -0
- package/dist/src/cli/render/lexical/walker.d.ts +21 -0
- package/dist/src/cli/render/lexical/walker.js +51 -0
- package/dist/src/cli/render/markdown.d.ts +18 -0
- package/dist/src/cli/render/markdown.js +196 -0
- package/dist/src/cli/render/metadata-block.d.ts +14 -0
- package/dist/src/cli/render/metadata-block.js +50 -0
- package/dist/src/cli/skill/all.d.ts +4 -0
- package/dist/src/cli/skill/all.js +11 -0
- package/dist/src/cli/skill/get.d.ts +6 -0
- package/dist/src/cli/skill/get.js +12 -0
- package/dist/src/cli/skill/index.d.ts +10 -0
- package/dist/src/cli/skill/index.js +34 -0
- package/dist/src/cli/skill/list.d.ts +4 -0
- package/dist/src/cli/skill/list.js +11 -0
- package/dist/src/cli/skill/search.d.ts +6 -0
- package/dist/src/cli/skill/search.js +12 -0
- package/dist/src/cli/skill/views.d.ts +6 -0
- package/dist/src/cli/skill/views.js +90 -0
- package/dist/src/cli/snippet/_flags.d.ts +57 -0
- package/dist/src/cli/snippet/_flags.js +123 -0
- package/dist/src/cli/snippet/_resolve.d.ts +4 -0
- package/dist/src/cli/snippet/_resolve.js +32 -0
- package/dist/src/cli/snippet/_sync.d.ts +5 -0
- package/dist/src/cli/snippet/_sync.js +54 -0
- package/dist/src/cli/snippet/create.d.ts +19 -0
- package/dist/src/cli/snippet/create.js +35 -0
- package/dist/src/cli/snippet/delete.d.ts +8 -0
- package/dist/src/cli/snippet/delete.js +28 -0
- package/dist/src/cli/snippet/edit.d.ts +7 -0
- package/dist/src/cli/snippet/edit.js +29 -0
- package/dist/src/cli/snippet/get.d.ts +6 -0
- package/dist/src/cli/snippet/get.js +12 -0
- package/dist/src/cli/snippet/index.d.ts +43 -0
- package/dist/src/cli/snippet/index.js +58 -0
- package/dist/src/cli/snippet/list.d.ts +9 -0
- package/dist/src/cli/snippet/list.js +20 -0
- package/dist/src/cli/snippet/pull.d.ts +8 -0
- package/dist/src/cli/snippet/pull.js +33 -0
- package/dist/src/cli/snippet/push.d.ts +10 -0
- package/dist/src/cli/snippet/push.js +31 -0
- package/dist/src/cli/snippet/update.d.ts +8 -0
- package/dist/src/cli/snippet/update.js +16 -0
- package/dist/src/cli/topic/create.d.ts +10 -0
- package/dist/src/cli/topic/create.js +24 -0
- package/dist/src/cli/topic/delete.d.ts +7 -0
- package/dist/src/cli/topic/delete.js +37 -0
- package/dist/src/cli/topic/get.d.ts +6 -0
- package/dist/src/cli/topic/get.js +15 -0
- package/dist/src/cli/topic/index.d.ts +20 -0
- package/dist/src/cli/topic/index.js +32 -0
- package/dist/src/cli/topic/list.d.ts +4 -0
- package/dist/src/cli/topic/list.js +10 -0
- package/dist/src/cli/topic/update.d.ts +11 -0
- package/dist/src/cli/topic/update.js +51 -0
- package/dist/src/cli/ui/index.d.ts +24 -0
- package/dist/src/cli/ui/index.js +83 -0
- package/dist/src/cli/update/index.d.ts +10 -0
- package/dist/src/cli/update/index.js +142 -0
- package/dist/src/domain/admin-link.d.ts +12 -0
- package/dist/src/domain/admin-link.js +45 -0
- package/dist/src/domain/content-spec.d.ts +20 -0
- package/dist/src/domain/content-spec.js +78 -0
- package/dist/src/domain/envelope-compat.d.ts +68 -0
- package/dist/src/domain/envelope-compat.js +121 -0
- package/dist/src/domain/envelope.d.ts +34 -0
- package/dist/src/domain/envelope.js +355 -0
- package/dist/src/domain/errors.d.ts +336 -0
- package/dist/src/domain/errors.js +239 -0
- package/dist/src/domain/gate.d.ts +14 -0
- package/dist/src/domain/gate.js +18 -0
- package/dist/src/domain/payload.d.ts +64 -0
- package/dist/src/domain/payload.js +237 -0
- package/dist/src/domain/preflight-guards.d.ts +54 -0
- package/dist/src/domain/preflight-guards.js +130 -0
- package/dist/src/domain/runtime-flags.d.ts +33 -0
- package/dist/src/domain/runtime-flags.js +166 -0
- package/dist/src/domain/schema/api-envelope.d.ts +67 -0
- package/dist/src/domain/schema/api-envelope.js +65 -0
- package/dist/src/domain/schema/category.d.ts +23 -0
- package/dist/src/domain/schema/category.js +19 -0
- package/dist/src/domain/schema/config.d.ts +13 -0
- package/dist/src/domain/schema/config.js +18 -0
- package/dist/src/domain/schema/note.d.ts +76 -0
- package/dist/src/domain/schema/note.js +35 -0
- package/dist/src/domain/schema/page.d.ts +40 -0
- package/dist/src/domain/schema/page.js +22 -0
- package/dist/src/domain/schema/post.d.ts +68 -0
- package/dist/src/domain/schema/post.js +35 -0
- package/dist/src/domain/schema/profile.d.ts +14 -0
- package/dist/src/domain/schema/profile.js +22 -0
- package/dist/src/domain/schema/topic.d.ts +24 -0
- package/dist/src/domain/schema/topic.js +16 -0
- package/dist/src/domain/version.d.ts +15 -0
- package/dist/src/domain/version.js +43 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +8 -0
- package/dist/src/layers/App.d.ts +30 -0
- package/dist/src/layers/App.js +39 -0
- package/dist/src/services/Ai/index.d.ts +13 -0
- package/dist/src/services/Ai/index.js +127 -0
- package/dist/src/services/Ai/overview.d.ts +7 -0
- package/dist/src/services/Ai/overview.js +11 -0
- package/dist/src/services/Ai/resources.d.ts +7 -0
- package/dist/src/services/Ai/resources.js +59 -0
- package/dist/src/services/Ai/shared.d.ts +2 -0
- package/dist/src/services/Ai/shared.js +11 -0
- package/dist/src/services/Ai/tasks.d.ts +8 -0
- package/dist/src/services/Ai/tasks.js +144 -0
- package/dist/src/services/Ai/types.d.ts +130 -0
- package/dist/src/services/Ai/types.js +1 -0
- package/dist/src/services/Api.d.ts +67 -0
- package/dist/src/services/Api.js +348 -0
- package/dist/src/services/Auth.d.ts +101 -0
- package/dist/src/services/Auth.js +402 -0
- package/dist/src/services/Backup.d.ts +8 -0
- package/dist/src/services/Backup.js +4 -0
- package/dist/src/services/Cache.d.ts +8 -0
- package/dist/src/services/Cache.js +4 -0
- package/dist/src/services/Comment.d.ts +48 -0
- package/dist/src/services/Comment.js +102 -0
- package/dist/src/services/Config.d.ts +95 -0
- package/dist/src/services/Config.js +359 -0
- package/dist/src/services/Editor.d.ts +28 -0
- package/dist/src/services/Editor.js +95 -0
- package/dist/src/services/Lexical.d.ts +27 -0
- package/dist/src/services/Lexical.js +56 -0
- package/dist/src/services/Migration.d.ts +31 -0
- package/dist/src/services/Migration.js +177 -0
- package/dist/src/services/Profile.d.ts +29 -0
- package/dist/src/services/Profile.js +115 -0
- package/dist/src/services/Renderer/content.d.ts +16 -0
- package/dist/src/services/Renderer/content.js +110 -0
- package/dist/src/services/Renderer/datetime.d.ts +38 -0
- package/dist/src/services/Renderer/datetime.js +147 -0
- package/dist/src/services/Renderer/errors.d.ts +3 -0
- package/dist/src/services/Renderer/errors.js +59 -0
- package/dist/src/services/Renderer/index.d.ts +13 -0
- package/dist/src/services/Renderer/index.js +11 -0
- package/dist/src/services/Renderer/lists.d.ts +1 -0
- package/dist/src/services/Renderer/lists.js +101 -0
- package/dist/src/services/Renderer/options.d.ts +10 -0
- package/dist/src/services/Renderer/options.js +13 -0
- package/dist/src/services/Renderer/primitives.d.ts +4 -0
- package/dist/src/services/Renderer/primitives.js +12 -0
- package/dist/src/services/Renderer/service.d.ts +35 -0
- package/dist/src/services/Renderer/service.js +123 -0
- package/dist/src/services/Renderer/view.d.ts +16 -0
- package/dist/src/services/Renderer/view.js +1 -0
- package/dist/src/services/Resolver.d.ts +47 -0
- package/dist/src/services/Resolver.js +269 -0
- package/dist/src/services/Skill.d.ts +29 -0
- package/dist/src/services/Skill.js +421 -0
- package/dist/src/services/UpdateNotifier.d.ts +162 -0
- package/dist/src/services/UpdateNotifier.js +572 -0
- package/dist/test/cli/ai/ai.test.d.ts +1 -0
- package/dist/test/cli/ai/ai.test.js +507 -0
- package/dist/test/cli/ai/verbs.test.d.ts +1 -0
- package/dist/test/cli/ai/verbs.test.js +235 -0
- package/dist/test/cli/auth/login.test.d.ts +1 -0
- package/dist/test/cli/auth/login.test.js +236 -0
- package/dist/test/cli/auth/logout-whoami.test.d.ts +1 -0
- package/dist/test/cli/auth/logout-whoami.test.js +124 -0
- package/dist/test/cli/auth/status.test.d.ts +1 -0
- package/dist/test/cli/auth/status.test.js +90 -0
- package/dist/test/cli/category/category.test.d.ts +1 -0
- package/dist/test/cli/category/category.test.js +175 -0
- package/dist/test/cli/comment/comment.test.d.ts +1 -0
- package/dist/test/cli/comment/comment.test.js +445 -0
- package/dist/test/cli/config/config.test.d.ts +1 -0
- package/dist/test/cli/config/config.test.js +281 -0
- package/dist/test/cli/edit-roundtrip.test.d.ts +1 -0
- package/dist/test/cli/edit-roundtrip.test.js +259 -0
- package/dist/test/cli/file/file.test.d.ts +1 -0
- package/dist/test/cli/file/file.test.js +185 -0
- package/dist/test/cli/help.test.d.ts +1 -0
- package/dist/test/cli/help.test.js +289 -0
- package/dist/test/cli/note/create.test.d.ts +1 -0
- package/dist/test/cli/note/create.test.js +155 -0
- package/dist/test/cli/note/list.test.d.ts +1 -0
- package/dist/test/cli/note/list.test.js +115 -0
- package/dist/test/cli/note/publish.test.d.ts +1 -0
- package/dist/test/cli/note/publish.test.js +123 -0
- package/dist/test/cli/page/page.test.d.ts +1 -0
- package/dist/test/cli/page/page.test.js +185 -0
- package/dist/test/cli/post/create.test.d.ts +1 -0
- package/dist/test/cli/post/create.test.js +172 -0
- package/dist/test/cli/post/list.test.d.ts +1 -0
- package/dist/test/cli/post/list.test.js +133 -0
- package/dist/test/cli/post/publish.test.d.ts +1 -0
- package/dist/test/cli/post/publish.test.js +139 -0
- package/dist/test/cli/post/stage-apply.test.d.ts +1 -0
- package/dist/test/cli/post/stage-apply.test.js +215 -0
- package/dist/test/cli/post/update.test.d.ts +1 -0
- package/dist/test/cli/post/update.test.js +160 -0
- package/dist/test/cli/post-note-crud.test.d.ts +1 -0
- package/dist/test/cli/post-note-crud.test.js +362 -0
- package/dist/test/cli/profile/ls.test.d.ts +1 -0
- package/dist/test/cli/profile/ls.test.js +93 -0
- package/dist/test/cli/profile/mark-use.test.d.ts +1 -0
- package/dist/test/cli/profile/mark-use.test.js +216 -0
- package/dist/test/cli/project-crud.test.d.ts +1 -0
- package/dist/test/cli/project-crud.test.js +315 -0
- package/dist/test/cli/render/lexical.test.d.ts +1 -0
- package/dist/test/cli/render/lexical.test.js +216 -0
- package/dist/test/cli/render/markdown.test.d.ts +1 -0
- package/dist/test/cli/render/markdown.test.js +39 -0
- package/dist/test/cli/snippet-crud.test.d.ts +1 -0
- package/dist/test/cli/snippet-crud.test.js +293 -0
- package/dist/test/cli/topic/topic.test.d.ts +1 -0
- package/dist/test/cli/topic/topic.test.js +181 -0
- package/dist/test/cli/update.test.d.ts +1 -0
- package/dist/test/cli/update.test.js +395 -0
- package/dist/test/domain/content-spec.test.d.ts +1 -0
- package/dist/test/domain/content-spec.test.js +126 -0
- package/dist/test/domain/envelope-compat.test.d.ts +1 -0
- package/dist/test/domain/envelope-compat.test.js +126 -0
- package/dist/test/domain/envelope.test.d.ts +1 -0
- package/dist/test/domain/envelope.test.js +149 -0
- package/dist/test/domain/errors.test.d.ts +1 -0
- package/dist/test/domain/errors.test.js +127 -0
- package/dist/test/domain/gate.test.d.ts +1 -0
- package/dist/test/domain/gate.test.js +128 -0
- package/dist/test/domain/payload.test.d.ts +1 -0
- package/dist/test/domain/payload.test.js +259 -0
- package/dist/test/helper/test-fs.d.ts +24 -0
- package/dist/test/helper/test-fs.js +161 -0
- package/dist/test/helper/test-http.d.ts +31 -0
- package/dist/test/helper/test-http.js +66 -0
- package/dist/test/integration/_helpers.d.ts +5 -0
- package/dist/test/integration/_helpers.js +24 -0
- package/dist/test/integration/cli-error-envelope.test.d.ts +1 -0
- package/dist/test/integration/cli-error-envelope.test.js +137 -0
- package/dist/test/integration/cli-help-render.test.d.ts +1 -0
- package/dist/test/integration/cli-help-render.test.js +149 -0
- package/dist/test/integration/cli-help.test.d.ts +1 -0
- package/dist/test/integration/cli-help.test.js +67 -0
- package/dist/test/integration/cli-post-list.test.d.ts +1 -0
- package/dist/test/integration/cli-post-list.test.js +140 -0
- package/dist/test/integration/cli-skill.test.d.ts +1 -0
- package/dist/test/integration/cli-skill.test.js +74 -0
- package/dist/test/integration/cli-version.test.d.ts +1 -0
- package/dist/test/integration/cli-version.test.js +37 -0
- package/dist/test/services/Api.test.d.ts +1 -0
- package/dist/test/services/Api.test.js +553 -0
- package/dist/test/services/Auth.test.d.ts +1 -0
- package/dist/test/services/Auth.test.js +650 -0
- package/dist/test/services/Config.test.d.ts +1 -0
- package/dist/test/services/Config.test.js +510 -0
- package/dist/test/services/Datetime.test.d.ts +1 -0
- package/dist/test/services/Datetime.test.js +113 -0
- package/dist/test/services/Editor.test.d.ts +1 -0
- package/dist/test/services/Editor.test.js +205 -0
- package/dist/test/services/Lexical.errors.test.d.ts +1 -0
- package/dist/test/services/Lexical.errors.test.js +60 -0
- package/dist/test/services/Lexical.test.d.ts +1 -0
- package/dist/test/services/Lexical.test.js +68 -0
- package/dist/test/services/Migration.test.d.ts +1 -0
- package/dist/test/services/Migration.test.js +376 -0
- package/dist/test/services/Profile.test.d.ts +1 -0
- package/dist/test/services/Profile.test.js +277 -0
- package/dist/test/services/Renderer.test.d.ts +1 -0
- package/dist/test/services/Renderer.test.js +538 -0
- package/dist/test/services/Resolver.test.d.ts +1 -0
- package/dist/test/services/Resolver.test.js +320 -0
- package/dist/test/services/Skill.test.d.ts +1 -0
- package/dist/test/services/Skill.test.js +261 -0
- package/dist/test/services/UpdateNotifier.spawn.test.d.ts +1 -0
- package/dist/test/services/UpdateNotifier.spawn.test.js +73 -0
- package/dist/test/services/UpdateNotifier.test.d.ts +1 -0
- package/dist/test/services/UpdateNotifier.test.js +912 -0
- package/dist/vendor/litexml/cli.mjs +2481 -2561
- package/dist/vendor/litexml/litexml-html-preview-client.css +178 -60
- package/dist/vendor/litexml/litexml-html-preview-client.js +9950 -8762
- package/dist/vendor/litexml/style.css +11 -7
- package/package.json +23 -21
- package/skills/commands-ai.md +45 -12
- package/skills/overview.md +1 -1
- package/skills/safety.md +1 -1
- package/dist/esm-CH7CrOvh.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as __exportAll } from "./rolldown-runtime-
|
|
2
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B4iAMlE-.mjs";
|
|
2
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Function.js
|
|
3
3
|
/**
|
|
4
4
|
* Tests if a value is a `function`.
|
|
5
5
|
*
|
|
@@ -244,7 +244,7 @@ function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
//#endregion
|
|
247
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
247
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Equivalence.js
|
|
248
248
|
/**
|
|
249
249
|
* This module provides an implementation of the `Equivalence` type class, which defines a binary relation
|
|
250
250
|
* that is reflexive, symmetric, and transitive. In other words, it defines a notion of equivalence between values of a certain type.
|
|
@@ -297,7 +297,7 @@ const array$3 = (item) => make$39((self, that) => {
|
|
|
297
297
|
return true;
|
|
298
298
|
});
|
|
299
299
|
//#endregion
|
|
300
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
300
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/doNotation.js
|
|
301
301
|
/** @internal */
|
|
302
302
|
const bindTo$1 = (map) => dual(2, (self, name) => map(self, (a) => ({ [name]: a })));
|
|
303
303
|
/** @internal */
|
|
@@ -306,7 +306,7 @@ const bind$1 = (map, flatMap) => dual(3, (self, name, f) => flatMap(self, (a) =>
|
|
|
306
306
|
[name]: b
|
|
307
307
|
}))));
|
|
308
308
|
//#endregion
|
|
309
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
309
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/GlobalValue.js
|
|
310
310
|
/**
|
|
311
311
|
* The `GlobalValue` module ensures that a single instance of a value is created globally,
|
|
312
312
|
* even when modules are imported multiple times (e.g., due to mixing CommonJS and ESM builds)
|
|
@@ -355,7 +355,7 @@ const globalValue = (id, compute) => {
|
|
|
355
355
|
return globalStore.get(id);
|
|
356
356
|
};
|
|
357
357
|
//#endregion
|
|
358
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
358
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Predicate.js
|
|
359
359
|
/**
|
|
360
360
|
* This module provides a collection of functions for working with predicates and refinements.
|
|
361
361
|
*
|
|
@@ -838,14 +838,14 @@ const isRecord = (input) => isRecordOrArray(input) && !Array.isArray(input);
|
|
|
838
838
|
*/
|
|
839
839
|
const isPromiseLike = (input) => hasProperty(input, "then") && isFunction(input.then);
|
|
840
840
|
//#endregion
|
|
841
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
841
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/errors.js
|
|
842
842
|
/**
|
|
843
843
|
* @since 2.0.0
|
|
844
844
|
*/
|
|
845
845
|
/** @internal */
|
|
846
846
|
const getBugErrorMessage = (message) => `BUG: ${message} - please report an issue at https://github.com/Effect-TS/effect/issues`;
|
|
847
847
|
//#endregion
|
|
848
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
848
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Utils.js
|
|
849
849
|
/**
|
|
850
850
|
* @category constructors
|
|
851
851
|
* @since 2.0.0
|
|
@@ -1073,7 +1073,7 @@ const internalCall = /*#__PURE__*/ standard.effect_internal_function(() => (/* @
|
|
|
1073
1073
|
} }.effect_internal_function;
|
|
1074
1074
|
(function* () {}).constructor;
|
|
1075
1075
|
//#endregion
|
|
1076
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1076
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Hash.js
|
|
1077
1077
|
/**
|
|
1078
1078
|
* @since 2.0.0
|
|
1079
1079
|
*/
|
|
@@ -1202,7 +1202,7 @@ const cached$1 = function() {
|
|
|
1202
1202
|
return hash;
|
|
1203
1203
|
};
|
|
1204
1204
|
//#endregion
|
|
1205
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1205
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Equal.js
|
|
1206
1206
|
/**
|
|
1207
1207
|
* @since 2.0.0
|
|
1208
1208
|
* @category symbols
|
|
@@ -1218,9 +1218,10 @@ function compareBoth(self, that) {
|
|
|
1218
1218
|
if (selfType !== typeof that) return false;
|
|
1219
1219
|
if (selfType === "object" || selfType === "function") {
|
|
1220
1220
|
if (self !== null && that !== null) {
|
|
1221
|
-
if (isEqual(self) && isEqual(that))
|
|
1222
|
-
|
|
1223
|
-
|
|
1221
|
+
if (isEqual(self) && isEqual(that)) {
|
|
1222
|
+
if (hash(self) === hash(that) && self[symbol](that)) return true;
|
|
1223
|
+
else return structuralRegionState.enabled && structuralRegionState.tester ? structuralRegionState.tester(self, that) : false;
|
|
1224
|
+
} else if (self instanceof Date && that instanceof Date) {
|
|
1224
1225
|
const t1 = self.getTime();
|
|
1225
1226
|
const t2 = that.getTime();
|
|
1226
1227
|
return t1 === t2 || Number.isNaN(t1) && Number.isNaN(t2);
|
|
@@ -1253,7 +1254,7 @@ const isEqual = (u) => hasProperty(u, symbol);
|
|
|
1253
1254
|
*/
|
|
1254
1255
|
const equivalence$1 = () => equals$3;
|
|
1255
1256
|
//#endregion
|
|
1256
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1257
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Inspectable.js
|
|
1257
1258
|
/**
|
|
1258
1259
|
* @since 2.0.0
|
|
1259
1260
|
* @category symbols
|
|
@@ -1434,7 +1435,7 @@ const redact = (u) => {
|
|
|
1434
1435
|
return u;
|
|
1435
1436
|
};
|
|
1436
1437
|
//#endregion
|
|
1437
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1438
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Pipeable.js
|
|
1438
1439
|
/**
|
|
1439
1440
|
* @since 2.0.0
|
|
1440
1441
|
*/
|
|
@@ -1461,7 +1462,7 @@ const pipeArguments = (self, args) => {
|
|
|
1461
1462
|
}
|
|
1462
1463
|
};
|
|
1463
1464
|
//#endregion
|
|
1464
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1465
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/opCodes/effect.js
|
|
1465
1466
|
/** @internal */
|
|
1466
1467
|
const OP_ASYNC = "Async";
|
|
1467
1468
|
/** @internal */
|
|
@@ -1491,11 +1492,11 @@ const OP_YIELD = "Yield";
|
|
|
1491
1492
|
/** @internal */
|
|
1492
1493
|
const OP_REVERT_FLAGS = "RevertFlags";
|
|
1493
1494
|
//#endregion
|
|
1494
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1495
|
-
let moduleVersion = "3.22.
|
|
1495
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/version.js
|
|
1496
|
+
let moduleVersion = "3.22.1";
|
|
1496
1497
|
const getCurrentVersion = () => moduleVersion;
|
|
1497
1498
|
//#endregion
|
|
1498
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1499
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/effectable.js
|
|
1499
1500
|
/** @internal */
|
|
1500
1501
|
const EffectTypeId$1 = /*#__PURE__*/ Symbol.for("effect/Effect");
|
|
1501
1502
|
/** @internal */
|
|
@@ -1591,7 +1592,7 @@ const Base$1 = /*#__PURE__*/ function() {
|
|
|
1591
1592
|
return Base;
|
|
1592
1593
|
}();
|
|
1593
1594
|
//#endregion
|
|
1594
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1595
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/option.js
|
|
1595
1596
|
/**
|
|
1596
1597
|
* @since 2.0.0
|
|
1597
1598
|
*/
|
|
@@ -1655,7 +1656,7 @@ const some$2 = (value) => {
|
|
|
1655
1656
|
return a;
|
|
1656
1657
|
};
|
|
1657
1658
|
//#endregion
|
|
1658
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1659
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/either.js
|
|
1659
1660
|
/**
|
|
1660
1661
|
* @since 2.0.0
|
|
1661
1662
|
*/
|
|
@@ -1730,7 +1731,7 @@ const getRight$1 = (self) => isLeft$1(self) ? none$5 : some$2(self.right);
|
|
|
1730
1731
|
/** @internal */
|
|
1731
1732
|
const fromOption$2 = /*#__PURE__*/ dual(2, (self, onNone) => isNone$1(self) ? left$1(onNone()) : right$1(self.value));
|
|
1732
1733
|
//#endregion
|
|
1733
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1734
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Either.js
|
|
1734
1735
|
/**
|
|
1735
1736
|
* @since 2.0.0
|
|
1736
1737
|
*/
|
|
@@ -1926,14 +1927,14 @@ const getOrThrowWith$1 = /*#__PURE__*/ dual(2, (self, onLeft) => {
|
|
|
1926
1927
|
*/
|
|
1927
1928
|
const getOrThrow$1 = /*#__PURE__*/ getOrThrowWith$1(() => /* @__PURE__ */ new Error("getOrThrow called on a Left"));
|
|
1928
1929
|
//#endregion
|
|
1929
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1930
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/array.js
|
|
1930
1931
|
/**
|
|
1931
1932
|
* @since 2.0.0
|
|
1932
1933
|
*/
|
|
1933
1934
|
/** @internal */
|
|
1934
1935
|
const isNonEmptyArray$1 = (self) => self.length > 0;
|
|
1935
1936
|
//#endregion
|
|
1936
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
1937
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Order.js
|
|
1937
1938
|
/**
|
|
1938
1939
|
* This module provides an implementation of the `Order` type class which is used to define a total ordering on some type `A`.
|
|
1939
1940
|
* An order is defined by a relation `<=`, which obeys the following laws:
|
|
@@ -2043,7 +2044,7 @@ const clamp$6 = (O) => dual(2, (self, options) => min$1(O)(options.maximum, max(
|
|
|
2043
2044
|
*/
|
|
2044
2045
|
const between$3 = (O) => dual(2, (self, options) => !lessThan$7(O)(self, options.minimum) && !greaterThan$4(O)(self, options.maximum));
|
|
2045
2046
|
//#endregion
|
|
2046
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
2047
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Option.js
|
|
2047
2048
|
/**
|
|
2048
2049
|
* Represents the absence of a value by creating an empty `Option`.
|
|
2049
2050
|
*
|
|
@@ -2858,7 +2859,7 @@ const mergeWith = (f) => (o1, o2) => {
|
|
|
2858
2859
|
return some$1(f(o1.value, o2.value));
|
|
2859
2860
|
};
|
|
2860
2861
|
//#endregion
|
|
2861
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
2862
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Tuple.js
|
|
2862
2863
|
/**
|
|
2863
2864
|
* Constructs a new tuple from the provided values.
|
|
2864
2865
|
*
|
|
@@ -2875,7 +2876,7 @@ const mergeWith = (f) => (o1, o2) => {
|
|
|
2875
2876
|
*/
|
|
2876
2877
|
const make$37 = (...elements) => elements;
|
|
2877
2878
|
//#endregion
|
|
2878
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
2879
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Iterable.js
|
|
2879
2880
|
/**
|
|
2880
2881
|
* Returns the first element that satisfies the specified
|
|
2881
2882
|
* predicate, or `None` if no such element exists.
|
|
@@ -2909,7 +2910,7 @@ const constEmptyIterator = { next() {
|
|
|
2909
2910
|
*/
|
|
2910
2911
|
const empty$24 = () => constEmpty;
|
|
2911
2912
|
//#endregion
|
|
2912
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
2913
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Array.js
|
|
2913
2914
|
/**
|
|
2914
2915
|
* Builds a `NonEmptyArray` from an non-empty collection of elements.
|
|
2915
2916
|
*
|
|
@@ -4051,9 +4052,7 @@ const reduceWithContext$2 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
|
|
|
4051
4052
|
case OP_SOURCE_UNAVAILABLE:
|
|
4052
4053
|
output.push(right(reducer.sourceUnavailableCase(context, error.path, error.message, error.cause)));
|
|
4053
4054
|
break;
|
|
4054
|
-
case OP_UNSUPPORTED:
|
|
4055
|
-
output.push(right(reducer.unsupportedCase(context, error.path, error.message)));
|
|
4056
|
-
break;
|
|
4055
|
+
case OP_UNSUPPORTED: output.push(right(reducer.unsupportedCase(context, error.path, error.message)));
|
|
4057
4056
|
}
|
|
4058
4057
|
}
|
|
4059
4058
|
const accumulator = [];
|
|
@@ -4078,9 +4077,7 @@ const reduceWithContext$2 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
|
|
|
4078
4077
|
}
|
|
4079
4078
|
}
|
|
4080
4079
|
break;
|
|
4081
|
-
case "Right":
|
|
4082
|
-
accumulator.push(either.right);
|
|
4083
|
-
break;
|
|
4080
|
+
case "Right": accumulator.push(either.right);
|
|
4084
4081
|
}
|
|
4085
4082
|
}
|
|
4086
4083
|
if (accumulator.length === 0) throw new Error("BUG: ConfigError.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
@@ -4089,7 +4086,7 @@ const reduceWithContext$2 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
|
|
|
4089
4086
|
/** @internal */
|
|
4090
4087
|
const isMissingDataOnly$1 = (self) => reduceWithContext$2(self, void 0, IsMissingDataOnlyReducer);
|
|
4091
4088
|
//#endregion
|
|
4092
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
4089
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ConfigError.js
|
|
4093
4090
|
/**
|
|
4094
4091
|
* @since 2.0.0
|
|
4095
4092
|
* @category constructors
|
|
@@ -4110,7 +4107,7 @@ const isConfigError = isConfigError$1;
|
|
|
4110
4107
|
*/
|
|
4111
4108
|
const isMissingDataOnly = isMissingDataOnly$1;
|
|
4112
4109
|
//#endregion
|
|
4113
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
4110
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/context.js
|
|
4114
4111
|
/** @internal */
|
|
4115
4112
|
const TagTypeId = /*#__PURE__*/ Symbol.for("effect/Context/Tag");
|
|
4116
4113
|
/** @internal */
|
|
@@ -4311,9 +4308,9 @@ const omit$4 = (...tags) => (self) => {
|
|
|
4311
4308
|
return makeContext(newEnv);
|
|
4312
4309
|
};
|
|
4313
4310
|
//#endregion
|
|
4314
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
4311
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Context.js
|
|
4315
4312
|
/**
|
|
4316
|
-
* Creates a new `Tag` instance with
|
|
4313
|
+
* Creates a new `Tag` instance with the specified key.
|
|
4317
4314
|
*
|
|
4318
4315
|
* @example
|
|
4319
4316
|
* ```ts
|
|
@@ -4614,7 +4611,7 @@ const Tag = Tag$1;
|
|
|
4614
4611
|
*/
|
|
4615
4612
|
const Reference = Reference$1;
|
|
4616
4613
|
//#endregion
|
|
4617
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
4614
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Chunk.js
|
|
4618
4615
|
/**
|
|
4619
4616
|
* @since 2.0.0
|
|
4620
4617
|
*/
|
|
@@ -4696,7 +4693,6 @@ const makeChunk = (backing) => {
|
|
|
4696
4693
|
chunk.depth = backing.chunk.depth + 1;
|
|
4697
4694
|
chunk.left = _empty$5;
|
|
4698
4695
|
chunk.right = _empty$5;
|
|
4699
|
-
break;
|
|
4700
4696
|
}
|
|
4701
4697
|
return chunk;
|
|
4702
4698
|
};
|
|
@@ -4978,40 +4974,41 @@ const appendAll$1 = /*#__PURE__*/ dual(2, (self, that) => {
|
|
|
4978
4974
|
left: self,
|
|
4979
4975
|
right: that
|
|
4980
4976
|
});
|
|
4981
|
-
else if (diff < -1)
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
_tag: "IConcat",
|
|
4985
|
-
left: self.left,
|
|
4986
|
-
right: nr
|
|
4987
|
-
});
|
|
4988
|
-
} else {
|
|
4989
|
-
const nrr = appendAll$1(self.right.right, that);
|
|
4990
|
-
if (nrr.depth === self.depth - 3) {
|
|
4991
|
-
const nr = makeChunk({
|
|
4992
|
-
_tag: "IConcat",
|
|
4993
|
-
left: self.right.left,
|
|
4994
|
-
right: nrr
|
|
4995
|
-
});
|
|
4977
|
+
else if (diff < -1) {
|
|
4978
|
+
if (self.left.depth >= self.right.depth) {
|
|
4979
|
+
const nr = appendAll$1(self.right, that);
|
|
4996
4980
|
return makeChunk({
|
|
4997
4981
|
_tag: "IConcat",
|
|
4998
4982
|
left: self.left,
|
|
4999
4983
|
right: nr
|
|
5000
4984
|
});
|
|
5001
4985
|
} else {
|
|
5002
|
-
const
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
4986
|
+
const nrr = appendAll$1(self.right.right, that);
|
|
4987
|
+
if (nrr.depth === self.depth - 3) {
|
|
4988
|
+
const nr = makeChunk({
|
|
4989
|
+
_tag: "IConcat",
|
|
4990
|
+
left: self.right.left,
|
|
4991
|
+
right: nrr
|
|
4992
|
+
});
|
|
4993
|
+
return makeChunk({
|
|
4994
|
+
_tag: "IConcat",
|
|
4995
|
+
left: self.left,
|
|
4996
|
+
right: nr
|
|
4997
|
+
});
|
|
4998
|
+
} else {
|
|
4999
|
+
const nl = makeChunk({
|
|
5000
|
+
_tag: "IConcat",
|
|
5001
|
+
left: self.left,
|
|
5002
|
+
right: self.right.left
|
|
5003
|
+
});
|
|
5004
|
+
return makeChunk({
|
|
5005
|
+
_tag: "IConcat",
|
|
5006
|
+
left: nl,
|
|
5007
|
+
right: nrr
|
|
5008
|
+
});
|
|
5009
|
+
}
|
|
5012
5010
|
}
|
|
5013
|
-
}
|
|
5014
|
-
else if (that.right.depth >= that.left.depth) {
|
|
5011
|
+
} else if (that.right.depth >= that.left.depth) {
|
|
5015
5012
|
const nl = appendAll$1(self, that.left);
|
|
5016
5013
|
return makeChunk({
|
|
5017
5014
|
_tag: "IConcat",
|
|
@@ -5128,7 +5125,7 @@ const takeRight = /*#__PURE__*/ dual(2, (self, n) => drop(self, self.length - n)
|
|
|
5128
5125
|
*/
|
|
5129
5126
|
const reduce$6 = reduce$7;
|
|
5130
5127
|
//#endregion
|
|
5131
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5128
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Duration.js
|
|
5132
5129
|
/**
|
|
5133
5130
|
* @since 2.0.0
|
|
5134
5131
|
*/
|
|
@@ -5221,17 +5218,18 @@ const DurationProto = {
|
|
|
5221
5218
|
};
|
|
5222
5219
|
const make$32 = (input) => {
|
|
5223
5220
|
const duration = Object.create(DurationProto);
|
|
5224
|
-
if (isNumber(input))
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5221
|
+
if (isNumber(input)) {
|
|
5222
|
+
if (isNaN(input) || input <= 0) duration.value = zeroValue;
|
|
5223
|
+
else if (!Number.isFinite(input)) duration.value = infinityValue;
|
|
5224
|
+
else if (!Number.isInteger(input)) duration.value = {
|
|
5225
|
+
_tag: "Nanos",
|
|
5226
|
+
nanos: BigInt(Math.round(input * 1e6))
|
|
5227
|
+
};
|
|
5228
|
+
else duration.value = {
|
|
5229
|
+
_tag: "Millis",
|
|
5230
|
+
millis: input
|
|
5231
|
+
};
|
|
5232
|
+
} else if (input <= bigint0$3) duration.value = zeroValue;
|
|
5235
5233
|
else duration.value = {
|
|
5236
5234
|
_tag: "Nanos",
|
|
5237
5235
|
nanos: input
|
|
@@ -5532,7 +5530,7 @@ const MAX_INDEX_NODE = BUCKET_SIZE / 2;
|
|
|
5532
5530
|
/** @internal */
|
|
5533
5531
|
const MIN_ARRAY_NODE = BUCKET_SIZE / 4;
|
|
5534
5532
|
//#endregion
|
|
5535
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5533
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/hashMap/bitwise.js
|
|
5536
5534
|
/**
|
|
5537
5535
|
* Hamming weight.
|
|
5538
5536
|
*
|
|
@@ -5561,13 +5559,13 @@ function fromBitmap(bitmap, bit) {
|
|
|
5561
5559
|
return popcount(bitmap & bit - 1);
|
|
5562
5560
|
}
|
|
5563
5561
|
//#endregion
|
|
5564
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5562
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/stack.js
|
|
5565
5563
|
const make$31 = (value, previous) => ({
|
|
5566
5564
|
value,
|
|
5567
5565
|
previous
|
|
5568
5566
|
});
|
|
5569
5567
|
//#endregion
|
|
5570
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5568
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/hashMap/array.js
|
|
5571
5569
|
/** @internal */
|
|
5572
5570
|
function arrayUpdate(mutate, at, v, arr) {
|
|
5573
5571
|
let out = arr;
|
|
@@ -5612,7 +5610,7 @@ function arraySpliceIn(mutate, at, v, arr) {
|
|
|
5612
5610
|
return out;
|
|
5613
5611
|
}
|
|
5614
5612
|
//#endregion
|
|
5615
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5613
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/hashMap/node.js
|
|
5616
5614
|
/** @internal */
|
|
5617
5615
|
var EmptyNode = class EmptyNode {
|
|
5618
5616
|
_tag = "EmptyNode";
|
|
@@ -5844,7 +5842,7 @@ function mergeLeaves(edit, shift, h1, n1, h2, n2) {
|
|
|
5844
5842
|
}
|
|
5845
5843
|
}
|
|
5846
5844
|
//#endregion
|
|
5847
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
5845
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/hashMap.js
|
|
5848
5846
|
const HashMapSymbolKey = "effect/HashMap";
|
|
5849
5847
|
/** @internal */
|
|
5850
5848
|
const HashMapTypeId = /*#__PURE__*/ Symbol.for(HashMapSymbolKey);
|
|
@@ -6053,14 +6051,16 @@ const reduce$5 = /*#__PURE__*/ dual(3, (self, zero, f) => {
|
|
|
6053
6051
|
let children;
|
|
6054
6052
|
while (children = toVisit.pop()) for (let i = 0, len = children.length; i < len;) {
|
|
6055
6053
|
const child = children[i++];
|
|
6056
|
-
if (child && !isEmptyNode(child))
|
|
6057
|
-
if (
|
|
6058
|
-
|
|
6054
|
+
if (child && !isEmptyNode(child)) {
|
|
6055
|
+
if (child._tag === "LeafNode") {
|
|
6056
|
+
if (isSome(child.value)) zero = f(zero, child.value.value, child.key);
|
|
6057
|
+
} else toVisit.push(child.children);
|
|
6058
|
+
}
|
|
6059
6059
|
}
|
|
6060
6060
|
return zero;
|
|
6061
6061
|
});
|
|
6062
6062
|
//#endregion
|
|
6063
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
6063
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/hashSet.js
|
|
6064
6064
|
const HashSetSymbolKey = "effect/HashSet";
|
|
6065
6065
|
/** @internal */
|
|
6066
6066
|
const HashSetTypeId = /*#__PURE__*/ Symbol.for(HashSetSymbolKey);
|
|
@@ -6150,7 +6150,7 @@ const forEach$3 = /*#__PURE__*/ dual(2, (self, f) => forEach$4(self._keyMap, (_,
|
|
|
6150
6150
|
/** @internal */
|
|
6151
6151
|
const reduce$4 = /*#__PURE__*/ dual(3, (self, zero, f) => reduce$5(self._keyMap, zero, (z, _, a) => f(z, a)));
|
|
6152
6152
|
//#endregion
|
|
6153
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
6153
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/HashSet.js
|
|
6154
6154
|
/**
|
|
6155
6155
|
* # HashSet
|
|
6156
6156
|
*
|
|
@@ -6822,7 +6822,7 @@ const union = union$1;
|
|
|
6822
6822
|
*/
|
|
6823
6823
|
const reduce$3 = reduce$4;
|
|
6824
6824
|
//#endregion
|
|
6825
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
6825
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/MutableRef.js
|
|
6826
6826
|
/**
|
|
6827
6827
|
* @since 2.0.0
|
|
6828
6828
|
*/
|
|
@@ -6879,7 +6879,7 @@ const set$5 = /*#__PURE__*/ dual(2, (self, value) => {
|
|
|
6879
6879
|
return self;
|
|
6880
6880
|
});
|
|
6881
6881
|
//#endregion
|
|
6882
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
6882
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberId.js
|
|
6883
6883
|
/** @internal */
|
|
6884
6884
|
const FiberIdSymbolKey = "effect/FiberId";
|
|
6885
6885
|
/** @internal */
|
|
@@ -7025,7 +7025,7 @@ const unsafeMake$7 = () => {
|
|
|
7025
7025
|
return new Runtime(id, Date.now());
|
|
7026
7026
|
};
|
|
7027
7027
|
//#endregion
|
|
7028
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7028
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/FiberId.js
|
|
7029
7029
|
/**
|
|
7030
7030
|
* @since 2.0.0
|
|
7031
7031
|
* @category constructors
|
|
@@ -7093,7 +7093,7 @@ const threadName = threadName$1;
|
|
|
7093
7093
|
*/
|
|
7094
7094
|
const unsafeMake$6 = unsafeMake$7;
|
|
7095
7095
|
//#endregion
|
|
7096
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7096
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/HashMap.js
|
|
7097
7097
|
/**
|
|
7098
7098
|
* @since 2.0.0
|
|
7099
7099
|
*/
|
|
@@ -7199,7 +7199,7 @@ const forEach$2 = forEach$4;
|
|
|
7199
7199
|
*/
|
|
7200
7200
|
const reduce$2 = reduce$5;
|
|
7201
7201
|
//#endregion
|
|
7202
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7202
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/List.js
|
|
7203
7203
|
/**
|
|
7204
7204
|
* A data type for immutable linked lists representing ordered collections of elements of type `A`.
|
|
7205
7205
|
*
|
|
@@ -7495,7 +7495,7 @@ const reverse = (self) => {
|
|
|
7495
7495
|
return result;
|
|
7496
7496
|
};
|
|
7497
7497
|
//#endregion
|
|
7498
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7498
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/data.js
|
|
7499
7499
|
/** @internal */
|
|
7500
7500
|
const ArrayProto = /*#__PURE__*/ Object.assign(/*#__PURE__*/ Object.create(Array.prototype), {
|
|
7501
7501
|
[symbol$1]() {
|
|
@@ -7517,7 +7517,7 @@ const Structural = /*#__PURE__*/ function() {
|
|
|
7517
7517
|
/** @internal */
|
|
7518
7518
|
const struct$1 = (as) => Object.assign(Object.create(StructuralPrototype), as);
|
|
7519
7519
|
//#endregion
|
|
7520
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7520
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/differ/contextPatch.js
|
|
7521
7521
|
/** @internal */
|
|
7522
7522
|
const ContextPatchTypeId = /*#__PURE__*/ Symbol.for("effect/DifferContextPatch");
|
|
7523
7523
|
function variance$4(a) {
|
|
@@ -7608,7 +7608,6 @@ const patch$7 = /*#__PURE__*/ dual(2, (self, context) => {
|
|
|
7608
7608
|
updatedContext.set(head.key, head.update(updatedContext.get(head.key)));
|
|
7609
7609
|
wasServiceUpdated = true;
|
|
7610
7610
|
patches = tail;
|
|
7611
|
-
break;
|
|
7612
7611
|
}
|
|
7613
7612
|
}
|
|
7614
7613
|
if (!wasServiceUpdated) return makeContext(updatedContext);
|
|
@@ -7621,7 +7620,7 @@ const patch$7 = /*#__PURE__*/ dual(2, (self, context) => {
|
|
|
7621
7620
|
return makeContext(map);
|
|
7622
7621
|
});
|
|
7623
7622
|
//#endregion
|
|
7624
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7623
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/differ/hashSetPatch.js
|
|
7625
7624
|
/** @internal */
|
|
7626
7625
|
const HashSetPatchTypeId = /*#__PURE__*/ Symbol.for("effect/DifferHashSetPatch");
|
|
7627
7626
|
function variance$3(a) {
|
|
@@ -7698,7 +7697,7 @@ const patch$6 = /*#__PURE__*/ dual(2, (self, oldValue) => {
|
|
|
7698
7697
|
return set;
|
|
7699
7698
|
});
|
|
7700
7699
|
//#endregion
|
|
7701
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7700
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/differ/readonlyArrayPatch.js
|
|
7702
7701
|
/** @internal */
|
|
7703
7702
|
const ReadonlyArrayPatchTypeId = /*#__PURE__*/ Symbol.for("effect/DifferReadonlyArrayPatch");
|
|
7704
7703
|
function variance$2(a) {
|
|
@@ -7787,7 +7786,6 @@ const patch$5 = /*#__PURE__*/ dual(3, (self, oldValue, differ) => {
|
|
|
7787
7786
|
case "Update":
|
|
7788
7787
|
readonlyArray[head.index] = differ.patch(head.patch, readonlyArray[head.index]);
|
|
7789
7788
|
patches = tail;
|
|
7790
|
-
break;
|
|
7791
7789
|
}
|
|
7792
7790
|
}
|
|
7793
7791
|
return readonlyArray;
|
|
@@ -7853,7 +7851,7 @@ const updateWith = (f) => make$23({
|
|
|
7853
7851
|
patch: (patch, oldValue) => f(oldValue, patch(oldValue))
|
|
7854
7852
|
});
|
|
7855
7853
|
//#endregion
|
|
7856
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7854
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/runtimeFlagsPatch.js
|
|
7857
7855
|
/** @internal */
|
|
7858
7856
|
const BIT_MASK = 255;
|
|
7859
7857
|
/** @internal */
|
|
@@ -7907,7 +7905,7 @@ const differ$1 = /*#__PURE__*/ make$23({
|
|
|
7907
7905
|
patch: (_patch, oldValue) => patch$4(oldValue, _patch)
|
|
7908
7906
|
});
|
|
7909
7907
|
//#endregion
|
|
7910
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7908
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/RuntimeFlagsPatch.js
|
|
7911
7909
|
/**
|
|
7912
7910
|
* Creates a `RuntimeFlagsPatch` describing enabling the provided `RuntimeFlag`.
|
|
7913
7911
|
*
|
|
@@ -7931,7 +7929,7 @@ const disable = disable$2;
|
|
|
7931
7929
|
*/
|
|
7932
7930
|
const exclude = exclude$1;
|
|
7933
7931
|
//#endregion
|
|
7934
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
7932
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/blockedRequests.js
|
|
7935
7933
|
/**
|
|
7936
7934
|
* Combines this collection of blocked requests with the specified collection
|
|
7937
7935
|
* of blocked requests, in parallel.
|
|
@@ -8017,7 +8015,6 @@ const step$1 = (requests) => {
|
|
|
8017
8015
|
case "Single":
|
|
8018
8016
|
current = left;
|
|
8019
8017
|
sequential = cons(right, sequential);
|
|
8020
|
-
break;
|
|
8021
8018
|
}
|
|
8022
8019
|
break;
|
|
8023
8020
|
}
|
|
@@ -8026,7 +8023,6 @@ const step$1 = (requests) => {
|
|
|
8026
8023
|
if (isNil(stack)) return [parallel, sequential];
|
|
8027
8024
|
current = stack.head;
|
|
8028
8025
|
stack = stack.tail;
|
|
8029
|
-
break;
|
|
8030
8026
|
}
|
|
8031
8027
|
throw new Error("BUG: BlockedRequests.step - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
8032
8028
|
};
|
|
@@ -8105,7 +8101,7 @@ const OP_PARALLEL$1 = "Parallel";
|
|
|
8105
8101
|
/** @internal */
|
|
8106
8102
|
const OP_SEQUENTIAL$1 = "Sequential";
|
|
8107
8103
|
//#endregion
|
|
8108
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
8104
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/cause.js
|
|
8109
8105
|
/** @internal */
|
|
8110
8106
|
const CauseSymbolKey = "effect/Cause";
|
|
8111
8107
|
/** @internal */
|
|
@@ -8351,7 +8347,6 @@ const find = /*#__PURE__*/ dual(2, (self, pf) => {
|
|
|
8351
8347
|
case OP_PARALLEL$1:
|
|
8352
8348
|
stack.push(item.right);
|
|
8353
8349
|
stack.push(item.left);
|
|
8354
|
-
break;
|
|
8355
8350
|
}
|
|
8356
8351
|
break;
|
|
8357
8352
|
case "Some": return option;
|
|
@@ -8404,13 +8399,11 @@ const evaluateCause = (self) => {
|
|
|
8404
8399
|
default:
|
|
8405
8400
|
_sequential = prepend$1(_sequential, cause.right);
|
|
8406
8401
|
cause = cause.left;
|
|
8407
|
-
break;
|
|
8408
8402
|
}
|
|
8409
8403
|
break;
|
|
8410
8404
|
case OP_PARALLEL$1:
|
|
8411
8405
|
stack.push(cause.right);
|
|
8412
8406
|
cause = cause.left;
|
|
8413
|
-
break;
|
|
8414
8407
|
}
|
|
8415
8408
|
throw new Error(getBugErrorMessage("Cause.evaluateCauseLoop"));
|
|
8416
8409
|
};
|
|
@@ -8453,9 +8446,7 @@ const reduce = /*#__PURE__*/ dual(3, (self, zero, pf) => {
|
|
|
8453
8446
|
causes.push(cause.right);
|
|
8454
8447
|
cause = cause.left;
|
|
8455
8448
|
break;
|
|
8456
|
-
default:
|
|
8457
|
-
cause = void 0;
|
|
8458
|
-
break;
|
|
8449
|
+
default: cause = void 0;
|
|
8459
8450
|
}
|
|
8460
8451
|
if (cause === void 0 && causes.length > 0) cause = causes.pop();
|
|
8461
8452
|
}
|
|
@@ -8489,7 +8480,6 @@ const reduceWithContext$1 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
|
|
|
8489
8480
|
input.push(cause.right);
|
|
8490
8481
|
input.push(cause.left);
|
|
8491
8482
|
output.push(left({ _tag: OP_PARALLEL_CASE }));
|
|
8492
|
-
break;
|
|
8493
8483
|
}
|
|
8494
8484
|
}
|
|
8495
8485
|
const accumulator = [];
|
|
@@ -8514,9 +8504,7 @@ const reduceWithContext$1 = /*#__PURE__*/ dual(3, (self, context, reducer) => {
|
|
|
8514
8504
|
}
|
|
8515
8505
|
}
|
|
8516
8506
|
break;
|
|
8517
|
-
case "Right":
|
|
8518
|
-
accumulator.push(either.right);
|
|
8519
|
-
break;
|
|
8507
|
+
case "Right": accumulator.push(either.right);
|
|
8520
8508
|
}
|
|
8521
8509
|
}
|
|
8522
8510
|
if (accumulator.length === 0) throw new Error("BUG: Cause.reduceWithContext - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
@@ -8631,7 +8619,7 @@ const prettyErrors = (cause) => reduceWithContext$1(cause, void 0, {
|
|
|
8631
8619
|
sequentialCase: (_, l, r) => [...l, ...r]
|
|
8632
8620
|
});
|
|
8633
8621
|
//#endregion
|
|
8634
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
8622
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/opCodes/deferred.js
|
|
8635
8623
|
/** @internal */
|
|
8636
8624
|
const OP_STATE_PENDING = "Pending";
|
|
8637
8625
|
/** @internal */
|
|
@@ -8660,7 +8648,7 @@ const done$4 = (effect) => {
|
|
|
8660
8648
|
};
|
|
8661
8649
|
};
|
|
8662
8650
|
//#endregion
|
|
8663
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
8651
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/singleShotGen.js
|
|
8664
8652
|
/** @internal */
|
|
8665
8653
|
var SingleShotGen = class SingleShotGen {
|
|
8666
8654
|
self;
|
|
@@ -8691,7 +8679,7 @@ var SingleShotGen = class SingleShotGen {
|
|
|
8691
8679
|
}
|
|
8692
8680
|
};
|
|
8693
8681
|
//#endregion
|
|
8694
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
8682
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/core.js
|
|
8695
8683
|
/**
|
|
8696
8684
|
* @internal
|
|
8697
8685
|
*/
|
|
@@ -9507,6 +9495,15 @@ const exitFailCause$1 = (cause) => {
|
|
|
9507
9495
|
return effect;
|
|
9508
9496
|
};
|
|
9509
9497
|
/** @internal */
|
|
9498
|
+
const exitFlatMap = /*#__PURE__*/ dual(2, (self, f) => {
|
|
9499
|
+
switch (self._tag) {
|
|
9500
|
+
case OP_FAILURE: return exitFailCause$1(self.effect_instruction_i0);
|
|
9501
|
+
case OP_SUCCESS: return f(self.effect_instruction_i0);
|
|
9502
|
+
}
|
|
9503
|
+
});
|
|
9504
|
+
/** @internal */
|
|
9505
|
+
const exitFlatten = (self) => pipe(self, exitFlatMap(identity));
|
|
9506
|
+
/** @internal */
|
|
9510
9507
|
const exitInterrupt$1 = (fiberId) => exitFailCause$1(interrupt$3(fiberId));
|
|
9511
9508
|
/** @internal */
|
|
9512
9509
|
const exitMap = /*#__PURE__*/ dual(2, (self, f) => {
|
|
@@ -9722,7 +9719,7 @@ var ClockImpl = class {
|
|
|
9722
9719
|
/** @internal */
|
|
9723
9720
|
const make$20 = () => new ClockImpl();
|
|
9724
9721
|
//#endregion
|
|
9725
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
9722
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Number.js
|
|
9726
9723
|
/**
|
|
9727
9724
|
* @memberof Number
|
|
9728
9725
|
* @since 2.0.0
|
|
@@ -9819,7 +9816,7 @@ const round = /*#__PURE__*/ dual(2, (self, precision) => {
|
|
|
9819
9816
|
return Math.round(self * factor) / factor;
|
|
9820
9817
|
});
|
|
9821
9818
|
//#endregion
|
|
9822
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
9819
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/RegExp.js
|
|
9823
9820
|
/**
|
|
9824
9821
|
* Escapes special characters in a regular expression pattern.
|
|
9825
9822
|
*
|
|
@@ -9835,7 +9832,7 @@ const round = /*#__PURE__*/ dual(2, (self, precision) => {
|
|
|
9835
9832
|
*/
|
|
9836
9833
|
const escape = (string) => string.replace(/[/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
9837
9834
|
//#endregion
|
|
9838
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
9835
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/configProvider/pathPatch.js
|
|
9839
9836
|
/** @internal */
|
|
9840
9837
|
const empty$9 = { _tag: "Empty" };
|
|
9841
9838
|
/** @internal */
|
|
@@ -9859,18 +9856,16 @@ const patch$3 = /*#__PURE__*/ dual(2, (path, patch) => {
|
|
|
9859
9856
|
output = prepend$2(output, patch.name);
|
|
9860
9857
|
input = input.tail;
|
|
9861
9858
|
break;
|
|
9862
|
-
case "Unnested":
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
} else return left(MissingData(output, `Expected ${patch.name} to be in path in ConfigProvider#unnested`));
|
|
9867
|
-
break;
|
|
9859
|
+
case "Unnested": if (pipe(head$2(output), contains$1(patch.name))) {
|
|
9860
|
+
output = tailNonEmpty$1(output);
|
|
9861
|
+
input = input.tail;
|
|
9862
|
+
} else return left(MissingData(output, `Expected ${patch.name} to be in path in ConfigProvider#unnested`));
|
|
9868
9863
|
}
|
|
9869
9864
|
}
|
|
9870
9865
|
return right(output);
|
|
9871
9866
|
});
|
|
9872
9867
|
//#endregion
|
|
9873
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
9868
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/opCodes/config.js
|
|
9874
9869
|
/** @internal */
|
|
9875
9870
|
const OP_CONSTANT = "Constant";
|
|
9876
9871
|
/** @internal */
|
|
@@ -9888,13 +9883,15 @@ const OP_NESTED = "Nested";
|
|
|
9888
9883
|
/** @internal */
|
|
9889
9884
|
const OP_PRIMITIVE = "Primitive";
|
|
9890
9885
|
/** @internal */
|
|
9886
|
+
const OP_REDACTED = "Redacted";
|
|
9887
|
+
/** @internal */
|
|
9891
9888
|
const OP_SEQUENCE = "Sequence";
|
|
9892
9889
|
/** @internal */
|
|
9893
9890
|
const OP_HASHMAP = "HashMap";
|
|
9894
9891
|
/** @internal */
|
|
9895
9892
|
const OP_ZIP_WITH = "ZipWith";
|
|
9896
9893
|
//#endregion
|
|
9897
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
9894
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/configProvider.js
|
|
9898
9895
|
const concat = (l, r) => [...l, ...r];
|
|
9899
9896
|
/** @internal */
|
|
9900
9897
|
const ConfigProviderTypeId = /*#__PURE__*/ Symbol.for("effect/ConfigProvider");
|
|
@@ -9974,6 +9971,15 @@ const appendConfigPath = (path, config) => {
|
|
|
9974
9971
|
}
|
|
9975
9972
|
return path;
|
|
9976
9973
|
};
|
|
9974
|
+
const RedactedConfigErrorReducer = {
|
|
9975
|
+
andCase: (_, left, right) => And(left, right),
|
|
9976
|
+
orCase: (_, left, right) => Or(left, right),
|
|
9977
|
+
invalidDataCase: (_, path) => InvalidData$1(path, "<redacted>"),
|
|
9978
|
+
missingDataCase: (_, path) => MissingData(path, "<redacted>"),
|
|
9979
|
+
sourceUnavailableCase: (_, path, _message, cause) => SourceUnavailable(path, "<redacted>", cause),
|
|
9980
|
+
unsupportedCase: (_, path) => Unsupported(path, "<redacted>")
|
|
9981
|
+
};
|
|
9982
|
+
const redactConfigError = (error) => reduceWithContext$2(error, void 0, RedactedConfigErrorReducer);
|
|
9977
9983
|
const fromFlatLoop = (flat, prefix, config, split) => {
|
|
9978
9984
|
const op = config;
|
|
9979
9985
|
switch (op._tag) {
|
|
@@ -9994,6 +10000,7 @@ const fromFlatLoop = (flat, prefix, config, split) => {
|
|
|
9994
10000
|
}
|
|
9995
10001
|
return succeed$5(values);
|
|
9996
10002
|
}))));
|
|
10003
|
+
case OP_REDACTED: return suspend$3(() => pipe(fromFlatLoop(flat, prefix, op.original, split), mapError$2(redactConfigError), map$6(map$11(op.redact))));
|
|
9997
10004
|
case OP_SEQUENCE: return pipe(patch$3(prefix, flat.patch), flatMap$3((patchedPrefix) => pipe(flat.enumerateChildren(patchedPrefix), flatMap$3(indicesFrom), flatMap$3((indices) => {
|
|
9998
10005
|
if (indices.length === 0) return suspend$3(() => map$6(fromFlatLoop(flat, prefix, op.config, true), of$2));
|
|
9999
10006
|
return pipe(forEachSequential(indices, (index) => fromFlatLoop(flat, append$1(prefix, `[${index}]`), op.config, true)), map$6((chunkChunk) => {
|
|
@@ -10054,7 +10061,7 @@ const parseInteger = (str) => {
|
|
|
10054
10061
|
return Number.isNaN(parsedIndex) ? none$4() : some$1(parsedIndex);
|
|
10055
10062
|
};
|
|
10056
10063
|
//#endregion
|
|
10057
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10064
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/defaultServices/console.js
|
|
10058
10065
|
/** @internal */
|
|
10059
10066
|
const TypeId$8 = /*#__PURE__*/ Symbol.for("effect/Console");
|
|
10060
10067
|
/** @internal */
|
|
@@ -10191,7 +10198,7 @@ const swap = (buffer, index1, index2) => {
|
|
|
10191
10198
|
};
|
|
10192
10199
|
const make$18 = (seed) => new RandomImpl(hash(seed));
|
|
10193
10200
|
//#endregion
|
|
10194
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10201
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/tracer.js
|
|
10195
10202
|
/**
|
|
10196
10203
|
* @since 2.0.0
|
|
10197
10204
|
*/
|
|
@@ -10298,7 +10305,7 @@ const addSpanStackTrace = (options) => {
|
|
|
10298
10305
|
/** @internal */
|
|
10299
10306
|
const DisablePropagation = /*#__PURE__*/ Reference()("effect/Tracer/DisablePropagation", { defaultValue: constFalse });
|
|
10300
10307
|
//#endregion
|
|
10301
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10308
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/defaultServices.js
|
|
10302
10309
|
/** @internal */
|
|
10303
10310
|
const liveServices = /*#__PURE__*/ pipe(/*#__PURE__*/ empty$21(), /*#__PURE__*/ add$2(clockTag, /*#__PURE__*/ make$20()), /*#__PURE__*/ add$2(consoleTag, defaultConsole), /*#__PURE__*/ add$2(randomTag, /*#__PURE__*/ make$18(/*#__PURE__*/ Math.random())), /*#__PURE__*/ add$2(configProviderTag, /*#__PURE__*/ fromEnv()), /*#__PURE__*/ add$2(tracerTag, nativeTracer));
|
|
10304
10311
|
/**
|
|
@@ -10324,7 +10331,7 @@ const configProviderWith = (f) => defaultServicesWith((services) => f(services.u
|
|
|
10324
10331
|
/** @internal */
|
|
10325
10332
|
const config = (config) => configProviderWith((_) => _.load(config));
|
|
10326
10333
|
//#endregion
|
|
10327
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10334
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Boolean.js
|
|
10328
10335
|
/**
|
|
10329
10336
|
* Negates the given boolean: `!self`
|
|
10330
10337
|
*
|
|
@@ -10342,7 +10349,7 @@ const config = (config) => configProviderWith((_) => _.load(config));
|
|
|
10342
10349
|
*/
|
|
10343
10350
|
const not = (self) => !self;
|
|
10344
10351
|
//#endregion
|
|
10345
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10352
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Effectable.js
|
|
10346
10353
|
/**
|
|
10347
10354
|
* @since 2.0.0
|
|
10348
10355
|
* @category prototypes
|
|
@@ -10360,7 +10367,7 @@ const Base = Base$1;
|
|
|
10360
10367
|
*/
|
|
10361
10368
|
var Class$4 = class extends Base {};
|
|
10362
10369
|
//#endregion
|
|
10363
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10370
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/executionStrategy.js
|
|
10364
10371
|
/** @internal */
|
|
10365
10372
|
const OP_SEQUENTIAL = "Sequential";
|
|
10366
10373
|
/** @internal */
|
|
@@ -10381,7 +10388,7 @@ const isSequential = (self) => self._tag === OP_SEQUENTIAL;
|
|
|
10381
10388
|
/** @internal */
|
|
10382
10389
|
const isParallel = (self) => self._tag === OP_PARALLEL;
|
|
10383
10390
|
//#endregion
|
|
10384
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10391
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ExecutionStrategy.js
|
|
10385
10392
|
/**
|
|
10386
10393
|
* Execute effects sequentially.
|
|
10387
10394
|
*
|
|
@@ -10404,7 +10411,7 @@ const parallel$1 = parallel$2;
|
|
|
10404
10411
|
*/
|
|
10405
10412
|
const parallelN = parallelN$1;
|
|
10406
10413
|
//#endregion
|
|
10407
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10414
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberRefs.js
|
|
10408
10415
|
/** @internal */
|
|
10409
10416
|
function unsafeMake$5(fiberRefLocals) {
|
|
10410
10417
|
return new FiberRefsImpl(fiberRefLocals);
|
|
@@ -10519,9 +10526,10 @@ const unsafeUpdateAs = (locals, fiberId, fiberRef, value) => {
|
|
|
10519
10526
|
let newStack;
|
|
10520
10527
|
if (isNonEmptyReadonlyArray(oldStack)) {
|
|
10521
10528
|
const [currentId, currentValue] = headNonEmpty$2(oldStack);
|
|
10522
|
-
if (currentId[symbol](fiberId))
|
|
10523
|
-
|
|
10524
|
-
|
|
10529
|
+
if (currentId[symbol](fiberId)) {
|
|
10530
|
+
if (equals$3(currentValue, value)) return;
|
|
10531
|
+
else newStack = [[fiberId, value], ...oldStack.slice(1)];
|
|
10532
|
+
} else newStack = [[fiberId, value], ...oldStack];
|
|
10525
10533
|
} else newStack = [[fiberId, value]];
|
|
10526
10534
|
locals.set(fiberRef, newStack);
|
|
10527
10535
|
};
|
|
@@ -10539,7 +10547,7 @@ const updateManyAs$1 = /*#__PURE__*/ dual(2, (self, { entries, forkAs }) => {
|
|
|
10539
10547
|
return new FiberRefsImpl(locals);
|
|
10540
10548
|
});
|
|
10541
10549
|
//#endregion
|
|
10542
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10550
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/FiberRefs.js
|
|
10543
10551
|
/**
|
|
10544
10552
|
* Gets the value of the specified `FiberRef` in this collection of `FiberRef`
|
|
10545
10553
|
* values if it exists or `None` otherwise.
|
|
@@ -10578,7 +10586,7 @@ const updateManyAs = updateManyAs$1;
|
|
|
10578
10586
|
*/
|
|
10579
10587
|
const empty$7 = empty$8;
|
|
10580
10588
|
//#endregion
|
|
10581
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10589
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberRefs/patch.js
|
|
10582
10590
|
/** @internal */
|
|
10583
10591
|
const OP_EMPTY$1 = "Empty";
|
|
10584
10592
|
/** @internal */
|
|
@@ -10655,15 +10663,13 @@ const patch$2 = /*#__PURE__*/ dual(3, (self, fiberId, oldValue) => {
|
|
|
10655
10663
|
patches = tail;
|
|
10656
10664
|
break;
|
|
10657
10665
|
}
|
|
10658
|
-
case OP_AND_THEN$1:
|
|
10659
|
-
patches = prepend$2(head.first)(prepend$2(head.second)(tail));
|
|
10660
|
-
break;
|
|
10666
|
+
case OP_AND_THEN$1: patches = prepend$2(head.first)(prepend$2(head.second)(tail));
|
|
10661
10667
|
}
|
|
10662
10668
|
}
|
|
10663
10669
|
return fiberRefs;
|
|
10664
10670
|
});
|
|
10665
10671
|
//#endregion
|
|
10666
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10672
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/FiberRefsPatch.js
|
|
10667
10673
|
/**
|
|
10668
10674
|
* Constructs a patch that describes the changes between the specified
|
|
10669
10675
|
* collections of `FiberRef`
|
|
@@ -10681,7 +10687,7 @@ const diff$1 = diff$2;
|
|
|
10681
10687
|
*/
|
|
10682
10688
|
const patch$1 = patch$2;
|
|
10683
10689
|
//#endregion
|
|
10684
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10690
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberStatus.js
|
|
10685
10691
|
const FiberStatusSymbolKey = "effect/FiberStatus";
|
|
10686
10692
|
/** @internal */
|
|
10687
10693
|
const FiberStatusTypeId = /*#__PURE__*/ Symbol.for(FiberStatusSymbolKey);
|
|
@@ -10746,7 +10752,7 @@ const isFiberStatus = (u) => hasProperty(u, FiberStatusTypeId);
|
|
|
10746
10752
|
/** @internal */
|
|
10747
10753
|
const isDone$3 = (self) => self._tag === OP_DONE$1;
|
|
10748
10754
|
//#endregion
|
|
10749
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10755
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/FiberStatus.js
|
|
10750
10756
|
/**
|
|
10751
10757
|
* @since 2.0.0
|
|
10752
10758
|
* @category constructors
|
|
@@ -10770,7 +10776,7 @@ const suspended = suspended$1;
|
|
|
10770
10776
|
*/
|
|
10771
10777
|
const isDone$2 = isDone$3;
|
|
10772
10778
|
//#endregion
|
|
10773
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10779
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/LogLevel.js
|
|
10774
10780
|
/**
|
|
10775
10781
|
* @since 2.0.0
|
|
10776
10782
|
* @category constructors
|
|
@@ -10838,7 +10844,7 @@ const fromLiteral = (literal) => {
|
|
|
10838
10844
|
}
|
|
10839
10845
|
};
|
|
10840
10846
|
//#endregion
|
|
10841
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
10847
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Micro.js
|
|
10842
10848
|
/**
|
|
10843
10849
|
* @since 3.4.0
|
|
10844
10850
|
* @experimental
|
|
@@ -11458,11 +11464,13 @@ const uninterruptibleMask$1 = (f) => withMicroFiber((fiber) => {
|
|
|
11458
11464
|
const runFork$1 = (effect, options) => {
|
|
11459
11465
|
const fiber = new MicroFiberImpl(CurrentScheduler.context(options?.scheduler ?? new MicroSchedulerDefault()));
|
|
11460
11466
|
fiber.evaluate(effect);
|
|
11461
|
-
if (options?.signal)
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11467
|
+
if (options?.signal) {
|
|
11468
|
+
if (options.signal.aborted) fiber.unsafeInterrupt();
|
|
11469
|
+
else {
|
|
11470
|
+
const abort = () => fiber.unsafeInterrupt();
|
|
11471
|
+
options.signal.addEventListener("abort", abort, { once: true });
|
|
11472
|
+
fiber.addObserver(() => options.signal.removeEventListener("abort", abort));
|
|
11473
|
+
}
|
|
11466
11474
|
}
|
|
11467
11475
|
return fiber;
|
|
11468
11476
|
};
|
|
@@ -11515,14 +11523,14 @@ const TaggedError$2 = (tag) => {
|
|
|
11515
11523
|
TaggedError$2("NoSuchElementException");
|
|
11516
11524
|
TaggedError$2("TimeoutException");
|
|
11517
11525
|
//#endregion
|
|
11518
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11526
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Readable.js
|
|
11519
11527
|
/**
|
|
11520
11528
|
* @since 2.0.0
|
|
11521
11529
|
* @category type ids
|
|
11522
11530
|
*/
|
|
11523
11531
|
const TypeId$6 = /*#__PURE__*/ Symbol.for("effect/Readable");
|
|
11524
11532
|
//#endregion
|
|
11525
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11533
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/ref.js
|
|
11526
11534
|
/** @internal */
|
|
11527
11535
|
const RefTypeId = /*#__PURE__*/ Symbol.for("effect/Ref");
|
|
11528
11536
|
/** @internal */
|
|
@@ -11571,7 +11579,7 @@ const updateAndGet$1 = /*#__PURE__*/ dual(2, (self, f) => self.modify((a) => {
|
|
|
11571
11579
|
return [result, result];
|
|
11572
11580
|
}));
|
|
11573
11581
|
//#endregion
|
|
11574
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11582
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Ref.js
|
|
11575
11583
|
/**
|
|
11576
11584
|
* @since 2.0.0
|
|
11577
11585
|
* @category constructors
|
|
@@ -11608,7 +11616,7 @@ const update$1 = update$2;
|
|
|
11608
11616
|
*/
|
|
11609
11617
|
const updateAndGet = updateAndGet$1;
|
|
11610
11618
|
//#endregion
|
|
11611
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11619
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Scheduler.js
|
|
11612
11620
|
/**
|
|
11613
11621
|
* @since 3.20.0
|
|
11614
11622
|
* @category models
|
|
@@ -11750,11 +11758,11 @@ var SyncScheduler = class {
|
|
|
11750
11758
|
/** @internal */
|
|
11751
11759
|
const currentScheduler = /*#__PURE__*/ globalValue(/*#__PURE__*/ Symbol.for("effect/FiberRef/currentScheduler"), () => fiberRefUnsafeMake(defaultScheduler));
|
|
11752
11760
|
//#endregion
|
|
11753
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11761
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/completedRequestMap.js
|
|
11754
11762
|
/** @internal */
|
|
11755
11763
|
const currentRequestMap = /*#__PURE__*/ globalValue(/*#__PURE__*/ Symbol.for("effect/FiberRef/currentRequestMap"), () => fiberRefUnsafeMake(/* @__PURE__ */ new Map()));
|
|
11756
11764
|
//#endregion
|
|
11757
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11765
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/concurrency.js
|
|
11758
11766
|
/** @internal */
|
|
11759
11767
|
const match$3 = (concurrency, sequential, unbounded, bounded) => {
|
|
11760
11768
|
switch (concurrency) {
|
|
@@ -11774,7 +11782,7 @@ const matchSimple = (concurrency, sequential, concurrent) => {
|
|
|
11774
11782
|
}
|
|
11775
11783
|
};
|
|
11776
11784
|
//#endregion
|
|
11777
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11785
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Clock.js
|
|
11778
11786
|
/**
|
|
11779
11787
|
* @since 2.0.0
|
|
11780
11788
|
* @category constructors
|
|
@@ -11791,7 +11799,7 @@ const currentTimeMillis = currentTimeMillis$1;
|
|
|
11791
11799
|
*/
|
|
11792
11800
|
const Clock = clockTag;
|
|
11793
11801
|
//#endregion
|
|
11794
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11802
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/logSpan.js
|
|
11795
11803
|
/**
|
|
11796
11804
|
* Sanitize a given string by replacing spaces, equal signs, and double quotes with underscores.
|
|
11797
11805
|
*
|
|
@@ -11803,7 +11811,7 @@ const render = (now) => (self) => {
|
|
|
11803
11811
|
return `${formatLabel(self.label)}=${now - self.startTime}ms`;
|
|
11804
11812
|
};
|
|
11805
11813
|
//#endregion
|
|
11806
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11814
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/metric/label.js
|
|
11807
11815
|
/** @internal */
|
|
11808
11816
|
const MetricLabelSymbolKey = "effect/MetricLabel";
|
|
11809
11817
|
/** @internal */
|
|
@@ -11836,7 +11844,7 @@ const make$14 = (key, value) => {
|
|
|
11836
11844
|
/** @internal */
|
|
11837
11845
|
const isMetricLabel = (u) => hasProperty(u, MetricLabelTypeId);
|
|
11838
11846
|
//#endregion
|
|
11839
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
11847
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/core-effect.js
|
|
11840
11848
|
const annotateLogs$1 = /*#__PURE__*/ dual((args) => isEffect$1(args[0]), function() {
|
|
11841
11849
|
const args = arguments;
|
|
11842
11850
|
return fiberRefLocallyWith(args[0], currentLogAnnotations, typeof args[1] === "string" ? set$4(args[1], args[2]) : (annotations) => Object.entries(args[1]).reduce((acc, [key, value]) => set$4(acc, key, value), annotations));
|
|
@@ -12055,7 +12063,7 @@ const useSpan$1 = (name, ...args) => {
|
|
|
12055
12063
|
/** @internal */
|
|
12056
12064
|
const withParentSpan$1 = /*#__PURE__*/ dual(2, (self, span) => provideService$1(self, spanTag, span));
|
|
12057
12065
|
//#endregion
|
|
12058
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
12066
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Exit.js
|
|
12059
12067
|
/**
|
|
12060
12068
|
* Returns `true` if the specified value is an `Exit`, `false` otherwise.
|
|
12061
12069
|
*
|
|
@@ -12153,7 +12161,7 @@ const zip$1 = exitZip;
|
|
|
12153
12161
|
*/
|
|
12154
12162
|
const zipRight$1 = exitZipRight;
|
|
12155
12163
|
//#endregion
|
|
12156
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
12164
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberMessage.js
|
|
12157
12165
|
/** @internal */
|
|
12158
12166
|
const OP_INTERRUPT_SIGNAL = "InterruptSignal";
|
|
12159
12167
|
/** @internal */
|
|
@@ -12443,7 +12451,7 @@ const prettyLoggerBrowser = (options) => {
|
|
|
12443
12451
|
/** @internal */
|
|
12444
12452
|
const prettyLoggerDefault = /*#__PURE__*/ globalValue("effect/Logger/prettyLoggerDefault", () => prettyLogger());
|
|
12445
12453
|
//#endregion
|
|
12446
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
12454
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/metric/boundaries.js
|
|
12447
12455
|
/** @internal */
|
|
12448
12456
|
const MetricBoundariesSymbolKey = "effect/MetricBoundaries";
|
|
12449
12457
|
/** @internal */
|
|
@@ -12595,7 +12603,7 @@ const histogram$3 = (name, boundaries, description) => new MetricKeyImpl(name, h
|
|
|
12595
12603
|
/** @internal */
|
|
12596
12604
|
const taggedWithLabels$1 = /*#__PURE__*/ dual(2, (self, extraTags) => extraTags.length === 0 ? self : new MetricKeyImpl(self.name, self.keyType, self.description, union$2(self.tags, extraTags)));
|
|
12597
12605
|
//#endregion
|
|
12598
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
12606
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/MutableHashMap.js
|
|
12599
12607
|
const TypeId$5 = /*#__PURE__*/ Symbol.for("effect/MutableHashMap");
|
|
12600
12608
|
const MutableHashMapProto = {
|
|
12601
12609
|
[TypeId$5]: TypeId$5,
|
|
@@ -12970,8 +12978,10 @@ const histogram$1 = (key) => {
|
|
|
12970
12978
|
const mid = Math.floor(from + (to - from) / 2);
|
|
12971
12979
|
if (value <= boundaries[mid]) to = mid;
|
|
12972
12980
|
else from = mid;
|
|
12973
|
-
if (to === from + 1)
|
|
12974
|
-
|
|
12981
|
+
if (to === from + 1) {
|
|
12982
|
+
if (value <= boundaries[from]) to = from;
|
|
12983
|
+
else from = to;
|
|
12984
|
+
}
|
|
12975
12985
|
}
|
|
12976
12986
|
values[from] = values[from] + 1;
|
|
12977
12987
|
count = count + 1;
|
|
@@ -13339,7 +13349,7 @@ const complete = /*#__PURE__*/ dual(2, (self, result) => fiberRefGetWith(current
|
|
|
13339
13349
|
}
|
|
13340
13350
|
})));
|
|
13341
13351
|
//#endregion
|
|
13342
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13352
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/redBlackTree/iterator.js
|
|
13343
13353
|
/** @internal */
|
|
13344
13354
|
const Direction = {
|
|
13345
13355
|
Forward: 0,
|
|
@@ -13488,7 +13498,7 @@ var RedBlackTreeIterator = class RedBlackTreeIterator {
|
|
|
13488
13498
|
}
|
|
13489
13499
|
};
|
|
13490
13500
|
//#endregion
|
|
13491
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13501
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/redBlackTree/node.js
|
|
13492
13502
|
/** @internal */
|
|
13493
13503
|
const Color = {
|
|
13494
13504
|
Red: 0,
|
|
@@ -13508,7 +13518,7 @@ const recount = (node) => {
|
|
|
13508
13518
|
node.count = 1 + (node.left?.count ?? 0) + (node.right?.count ?? 0);
|
|
13509
13519
|
};
|
|
13510
13520
|
//#endregion
|
|
13511
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13521
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/redBlackTree.js
|
|
13512
13522
|
const RedBlackTreeSymbolKey = "effect/RedBlackTree";
|
|
13513
13523
|
/** @internal */
|
|
13514
13524
|
const RedBlackTreeTypeId = /*#__PURE__*/ Symbol.for(RedBlackTreeSymbolKey);
|
|
@@ -13636,57 +13646,58 @@ const insert = /*#__PURE__*/ dual(3, (self, key, value) => {
|
|
|
13636
13646
|
const n3 = n_stack[s];
|
|
13637
13647
|
if (p.color === Color.Black || n3.color === Color.Black) break;
|
|
13638
13648
|
const pp = n_stack[s - 2];
|
|
13639
|
-
if (pp.left === p)
|
|
13640
|
-
|
|
13641
|
-
|
|
13642
|
-
|
|
13643
|
-
|
|
13644
|
-
|
|
13645
|
-
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13654
|
-
|
|
13655
|
-
|
|
13656
|
-
|
|
13657
|
-
|
|
13658
|
-
|
|
13649
|
+
if (pp.left === p) {
|
|
13650
|
+
if (p.left === n3) {
|
|
13651
|
+
const y = pp.right;
|
|
13652
|
+
if (y && y.color === Color.Red) {
|
|
13653
|
+
p.color = Color.Black;
|
|
13654
|
+
pp.right = repaint(y, Color.Black);
|
|
13655
|
+
pp.color = Color.Red;
|
|
13656
|
+
s -= 1;
|
|
13657
|
+
} else {
|
|
13658
|
+
pp.color = Color.Red;
|
|
13659
|
+
pp.left = p.right;
|
|
13660
|
+
p.color = Color.Black;
|
|
13661
|
+
p.right = pp;
|
|
13662
|
+
n_stack[s - 2] = p;
|
|
13663
|
+
n_stack[s - 1] = n3;
|
|
13664
|
+
recount(pp);
|
|
13665
|
+
recount(p);
|
|
13666
|
+
if (s >= 3) {
|
|
13667
|
+
const ppp = n_stack[s - 3];
|
|
13668
|
+
if (ppp.left === pp) ppp.left = p;
|
|
13669
|
+
else ppp.right = p;
|
|
13670
|
+
}
|
|
13671
|
+
break;
|
|
13659
13672
|
}
|
|
13660
|
-
break;
|
|
13661
|
-
}
|
|
13662
|
-
} else {
|
|
13663
|
-
const y = pp.right;
|
|
13664
|
-
if (y && y.color === Color.Red) {
|
|
13665
|
-
p.color = Color.Black;
|
|
13666
|
-
pp.right = repaint(y, Color.Black);
|
|
13667
|
-
pp.color = Color.Red;
|
|
13668
|
-
s -= 1;
|
|
13669
13673
|
} else {
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13674
|
+
const y = pp.right;
|
|
13675
|
+
if (y && y.color === Color.Red) {
|
|
13676
|
+
p.color = Color.Black;
|
|
13677
|
+
pp.right = repaint(y, Color.Black);
|
|
13678
|
+
pp.color = Color.Red;
|
|
13679
|
+
s -= 1;
|
|
13680
|
+
} else {
|
|
13681
|
+
p.right = n3.left;
|
|
13682
|
+
pp.color = Color.Red;
|
|
13683
|
+
pp.left = n3.right;
|
|
13684
|
+
n3.color = Color.Black;
|
|
13685
|
+
n3.left = p;
|
|
13686
|
+
n3.right = pp;
|
|
13687
|
+
n_stack[s - 2] = n3;
|
|
13688
|
+
n_stack[s - 1] = p;
|
|
13689
|
+
recount(pp);
|
|
13690
|
+
recount(p);
|
|
13691
|
+
recount(n3);
|
|
13692
|
+
if (s >= 3) {
|
|
13693
|
+
const ppp = n_stack[s - 3];
|
|
13694
|
+
if (ppp.left === pp) ppp.left = n3;
|
|
13695
|
+
else ppp.right = n3;
|
|
13696
|
+
}
|
|
13697
|
+
break;
|
|
13685
13698
|
}
|
|
13686
|
-
break;
|
|
13687
13699
|
}
|
|
13688
|
-
}
|
|
13689
|
-
else if (p.right === n3) {
|
|
13700
|
+
} else if (p.right === n3) {
|
|
13690
13701
|
const y = pp.left;
|
|
13691
13702
|
if (y && y.color === Color.Red) {
|
|
13692
13703
|
p.color = Color.Black;
|
|
@@ -13766,7 +13777,7 @@ const keys$1 = (self, direction) => {
|
|
|
13766
13777
|
};
|
|
13767
13778
|
};
|
|
13768
13779
|
//#endregion
|
|
13769
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13780
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/RedBlackTree.js
|
|
13770
13781
|
/**
|
|
13771
13782
|
* Creates a new `RedBlackTree` from an iterable collection of key/value pairs.
|
|
13772
13783
|
*
|
|
@@ -13789,7 +13800,7 @@ const has$1 = has$2;
|
|
|
13789
13800
|
*/
|
|
13790
13801
|
const keys = keysForward;
|
|
13791
13802
|
//#endregion
|
|
13792
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13803
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/SortedSet.js
|
|
13793
13804
|
/**
|
|
13794
13805
|
* @since 2.0.0
|
|
13795
13806
|
*/
|
|
@@ -13982,7 +13993,7 @@ const fromEffect$1 = (effect) => {
|
|
|
13982
13993
|
/** @internal */
|
|
13983
13994
|
const none = /*#__PURE__*/ globalValue("effect/Supervisor/none", () => fromEffect$1(void_$2));
|
|
13984
13995
|
//#endregion
|
|
13985
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
13996
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Differ.js
|
|
13986
13997
|
/**
|
|
13987
13998
|
* Constructs a new `Differ`.
|
|
13988
13999
|
*
|
|
@@ -13991,7 +14002,7 @@ const none = /*#__PURE__*/ globalValue("effect/Supervisor/none", () => fromEffec
|
|
|
13991
14002
|
*/
|
|
13992
14003
|
const make$10 = make$23;
|
|
13993
14004
|
//#endregion
|
|
13994
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
14005
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/supervisor/patch.js
|
|
13995
14006
|
/** @internal */
|
|
13996
14007
|
const OP_EMPTY = "Empty";
|
|
13997
14008
|
/** @internal */
|
|
@@ -14045,9 +14056,7 @@ const patchLoop = (_supervisor, _patches) => {
|
|
|
14045
14056
|
supervisor = removeSupervisor(supervisor, head.supervisor);
|
|
14046
14057
|
patches = tailNonEmpty(patches);
|
|
14047
14058
|
break;
|
|
14048
|
-
case OP_AND_THEN:
|
|
14049
|
-
patches = prepend$1(head.first)(prepend$1(head.second)(tailNonEmpty(patches)));
|
|
14050
|
-
break;
|
|
14059
|
+
case OP_AND_THEN: patches = prepend$1(head.first)(prepend$1(head.second)(tailNonEmpty(patches)));
|
|
14051
14060
|
}
|
|
14052
14061
|
}
|
|
14053
14062
|
return supervisor;
|
|
@@ -14087,7 +14096,7 @@ const differ = /*#__PURE__*/ make$10({
|
|
|
14087
14096
|
diff
|
|
14088
14097
|
});
|
|
14089
14098
|
//#endregion
|
|
14090
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
14099
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/fiberRuntime.js
|
|
14091
14100
|
/** @internal */
|
|
14092
14101
|
const fiberStarted = /*#__PURE__*/ counter("effect_fiber_started", { incremental: true });
|
|
14093
14102
|
/** @internal */
|
|
@@ -14617,9 +14626,7 @@ var FiberRuntime = class extends Class$4 {
|
|
|
14617
14626
|
case OP_SUCCESS:
|
|
14618
14627
|
fiberSuccesses.unsafeUpdate(1, tags);
|
|
14619
14628
|
break;
|
|
14620
|
-
case OP_FAILURE:
|
|
14621
|
-
fiberFailures.unsafeUpdate(1, tags);
|
|
14622
|
-
break;
|
|
14629
|
+
case OP_FAILURE: fiberFailures.unsafeUpdate(1, tags);
|
|
14623
14630
|
}
|
|
14624
14631
|
}
|
|
14625
14632
|
if (exit._tag === "Failure") {
|
|
@@ -14704,12 +14711,13 @@ var FiberRuntime = class extends Class$4 {
|
|
|
14704
14711
|
if (exit === YieldedOp) {
|
|
14705
14712
|
const op = yieldedOpChannel.currentOp;
|
|
14706
14713
|
yieldedOpChannel.currentOp = null;
|
|
14707
|
-
if (op._op === "Yield")
|
|
14708
|
-
this.
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14714
|
+
if (op._op === "Yield") {
|
|
14715
|
+
if (cooperativeYielding(this.currentRuntimeFlags)) {
|
|
14716
|
+
this.tell(yieldNow());
|
|
14717
|
+
this.tell(resume(exitVoid$1));
|
|
14718
|
+
effect = null;
|
|
14719
|
+
} else effect = exitVoid$1;
|
|
14720
|
+
} else if (op._op === "Async") effect = null;
|
|
14713
14721
|
} else {
|
|
14714
14722
|
this.currentRuntimeFlags = pipe(this.currentRuntimeFlags, enable$1(16));
|
|
14715
14723
|
const interruption = this.interruptAllChildren();
|
|
@@ -15516,7 +15524,7 @@ const invokeWithInterrupt = (self, entries, onInterrupt) => fiberIdWith$1((id) =
|
|
|
15516
15524
|
return forEachSequentialDiscard(residual, (entry) => complete(entry.request, exitInterrupt$1(id)));
|
|
15517
15525
|
})));
|
|
15518
15526
|
//#endregion
|
|
15519
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
15527
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Cause.js
|
|
15520
15528
|
/**
|
|
15521
15529
|
* Creates an `Empty` cause.
|
|
15522
15530
|
*
|
|
@@ -15857,7 +15865,7 @@ const after$1 = (startMilliseconds) => {
|
|
|
15857
15865
|
return make$9(startMilliseconds, Number.POSITIVE_INFINITY);
|
|
15858
15866
|
};
|
|
15859
15867
|
//#endregion
|
|
15860
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
15868
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ScheduleInterval.js
|
|
15861
15869
|
/**
|
|
15862
15870
|
* Constructs a new interval from the two specified endpoints. If the start
|
|
15863
15871
|
* endpoint greater than the end endpoint, then a zero size interval will be
|
|
@@ -15953,7 +15961,7 @@ const isNonEmpty$3 = (self) => {
|
|
|
15953
15961
|
return isNonEmpty$4(self.intervals);
|
|
15954
15962
|
};
|
|
15955
15963
|
//#endregion
|
|
15956
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
15964
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ScheduleIntervals.js
|
|
15957
15965
|
/**
|
|
15958
15966
|
* Creates a new `Intervals` from a `List` of `Interval`s.
|
|
15959
15967
|
*
|
|
@@ -15998,7 +16006,7 @@ const lessThan$2 = lessThan$3;
|
|
|
15998
16006
|
*/
|
|
15999
16007
|
const isNonEmpty$2 = isNonEmpty$3;
|
|
16000
16008
|
//#endregion
|
|
16001
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16009
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/schedule/decision.js
|
|
16002
16010
|
/** @internal */
|
|
16003
16011
|
const OP_CONTINUE = "Continue";
|
|
16004
16012
|
/** @internal */
|
|
@@ -16028,7 +16036,7 @@ const isDone$1 = (self) => {
|
|
|
16028
16036
|
return self._tag === OP_DONE;
|
|
16029
16037
|
};
|
|
16030
16038
|
//#endregion
|
|
16031
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16039
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ScheduleDecision.js
|
|
16032
16040
|
/**
|
|
16033
16041
|
* @since 2.0.0
|
|
16034
16042
|
*/
|
|
@@ -16054,7 +16062,7 @@ const isContinue = isContinue$1;
|
|
|
16054
16062
|
*/
|
|
16055
16063
|
const isDone = isDone$1;
|
|
16056
16064
|
//#endregion
|
|
16057
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16065
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Scope.js
|
|
16058
16066
|
/**
|
|
16059
16067
|
* @since 2.0.0
|
|
16060
16068
|
*/
|
|
@@ -16123,7 +16131,7 @@ const fork = scopeFork;
|
|
|
16123
16131
|
*/
|
|
16124
16132
|
const make$5 = scopeMake;
|
|
16125
16133
|
//#endregion
|
|
16126
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16134
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/effect/circular.js
|
|
16127
16135
|
/** @internal */
|
|
16128
16136
|
var Semaphore = class {
|
|
16129
16137
|
permits;
|
|
@@ -16276,10 +16284,11 @@ const timeoutFail = /*#__PURE__*/ dual(2, (self, { duration, onTimeout }) => fla
|
|
|
16276
16284
|
duration
|
|
16277
16285
|
})));
|
|
16278
16286
|
/** @internal */
|
|
16279
|
-
const timeoutTo = /*#__PURE__*/ dual(2, (self, { duration, onSuccess, onTimeout }) => fiberIdWith$1((parentFiberId) => uninterruptibleMask$2((restore) => raceFibersWith(restore(self), interruptible$2(sleep$1(duration)), {
|
|
16287
|
+
const timeoutTo = /*#__PURE__*/ dual(2, (self, { duration, onSuccess, onTimeout }) => fiberIdWith$1((parentFiberId) => uninterruptibleMask$2((restore) => raceFibersWith(exit$1(restore(self)), interruptible$2(sleep$1(duration)), {
|
|
16280
16288
|
onSelfWin: (winner, loser) => flatMap$3(winner.await, (exit) => {
|
|
16281
|
-
|
|
16282
|
-
|
|
16289
|
+
const selfExit = exitFlatten(exit);
|
|
16290
|
+
if (selfExit._tag === "Success") return flatMap$3(winner.inheritAll, () => as$1(interruptAsFiber(loser, parentFiberId), onSuccess(selfExit.value)));
|
|
16291
|
+
else return flatMap$3(interruptAsFiber(loser, parentFiberId), () => exitFailCause$1(selfExit.cause));
|
|
16283
16292
|
}),
|
|
16284
16293
|
onOtherWin: (winner, loser) => flatMap$3(winner.await, (exit) => {
|
|
16285
16294
|
if (exit._tag === "Success") return flatMap$3(winner.inheritAll, () => as$1(interruptAsFiber(loser, parentFiberId), onTimeout()));
|
|
@@ -16324,11 +16333,11 @@ const unsafeMakeSynchronized = (value) => {
|
|
|
16324
16333
|
return new SynchronizedImpl(unsafeMake$4(value), unsafeMakeSemaphore$1(1).withPermits(1));
|
|
16325
16334
|
};
|
|
16326
16335
|
//#endregion
|
|
16327
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16336
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/managedRuntime/circular.js
|
|
16328
16337
|
/** @internal */
|
|
16329
16338
|
const TypeId$3 = /*#__PURE__*/ Symbol.for("effect/ManagedRuntime");
|
|
16330
16339
|
//#endregion
|
|
16331
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16340
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/opCodes/layer.js
|
|
16332
16341
|
/** @internal */
|
|
16333
16342
|
const OP_FRESH = "Fresh";
|
|
16334
16343
|
/** @internal */
|
|
@@ -16344,7 +16353,7 @@ const OP_PROVIDE_MERGE = "ProvideMerge";
|
|
|
16344
16353
|
/** @internal */
|
|
16345
16354
|
const OP_MERGE_ALL = "MergeAll";
|
|
16346
16355
|
//#endregion
|
|
16347
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16356
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/runtime.js
|
|
16348
16357
|
const makeDual = (f) => function() {
|
|
16349
16358
|
if (arguments.length === 1) {
|
|
16350
16359
|
const runtime = arguments[0];
|
|
@@ -16471,10 +16480,12 @@ const unsafeRunPromiseExit = /*#__PURE__*/ makeDual((runtime, effect, options) =
|
|
|
16471
16480
|
fiber.addObserver((exit) => {
|
|
16472
16481
|
resolve(exit);
|
|
16473
16482
|
});
|
|
16474
|
-
if (options?.signal !== void 0)
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16483
|
+
if (options?.signal !== void 0) {
|
|
16484
|
+
if (options.signal.aborted) fiber.unsafeInterruptAsFork(fiber.id());
|
|
16485
|
+
else options.signal.addEventListener("abort", () => {
|
|
16486
|
+
fiber.unsafeInterruptAsFork(fiber.id());
|
|
16487
|
+
}, { once: true });
|
|
16488
|
+
}
|
|
16478
16489
|
}));
|
|
16479
16490
|
/** @internal */
|
|
16480
16491
|
var RuntimeImpl = class {
|
|
@@ -16513,7 +16524,7 @@ const unsafeRunPromiseEffect = /*#__PURE__*/ unsafeRunPromise(defaultRuntime);
|
|
|
16513
16524
|
/** @internal */
|
|
16514
16525
|
const unsafeRunSyncEffect = /*#__PURE__*/ unsafeRunSync(defaultRuntime);
|
|
16515
16526
|
//#endregion
|
|
16516
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16527
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/synchronizedRef.js
|
|
16517
16528
|
/** @internal */
|
|
16518
16529
|
const modifyEffect = /*#__PURE__*/ dual(2, (self, f) => self.modifyEffect(f));
|
|
16519
16530
|
/** @internal */
|
|
@@ -16734,7 +16745,7 @@ const effect_provide = /*#__PURE__*/ dual(2, (self, source) => {
|
|
|
16734
16745
|
else return provideSomeRuntime(self, source);
|
|
16735
16746
|
});
|
|
16736
16747
|
//#endregion
|
|
16737
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16748
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Data.js
|
|
16738
16749
|
/**
|
|
16739
16750
|
* @example
|
|
16740
16751
|
* ```ts
|
|
@@ -16929,7 +16940,7 @@ const TaggedError$1 = (tag) => {
|
|
|
16929
16940
|
return O.BaseEffectError;
|
|
16930
16941
|
};
|
|
16931
16942
|
//#endregion
|
|
16932
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
16943
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/dateTime.js
|
|
16933
16944
|
/** @internal */
|
|
16934
16945
|
const TypeId$2 = /*#__PURE__*/ Symbol.for("effect/DateTime");
|
|
16935
16946
|
/** @internal */
|
|
@@ -17082,8 +17093,8 @@ const unsafeMake$1 = (input) => {
|
|
|
17082
17093
|
return unsafeFromDate$1(new Date(input));
|
|
17083
17094
|
};
|
|
17084
17095
|
const hasZone = (input) => /Z|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input);
|
|
17085
|
-
const minEpochMillis = -
|
|
17086
|
-
const maxEpochMillis = 864e13 -
|
|
17096
|
+
const minEpochMillis = -864e13 + 432e5;
|
|
17097
|
+
const maxEpochMillis = 864e13 - 504e5;
|
|
17087
17098
|
/** @internal */
|
|
17088
17099
|
const unsafeMakeZoned$1 = (input, options) => {
|
|
17089
17100
|
if (options?.timeZone === void 0 && isDateTime$1(input) && isZoned$1(input)) return input;
|
|
@@ -17191,8 +17202,8 @@ const zonedOffset = (self) => {
|
|
|
17191
17202
|
};
|
|
17192
17203
|
const offsetToString = (offset) => {
|
|
17193
17204
|
const abs = Math.abs(offset);
|
|
17194
|
-
let hours = Math.floor(abs /
|
|
17195
|
-
let minutes = Math.round(abs %
|
|
17205
|
+
let hours = Math.floor(abs / 36e5);
|
|
17206
|
+
let minutes = Math.round(abs % 36e5 / 6e4);
|
|
17196
17207
|
if (minutes === 60) {
|
|
17197
17208
|
hours += 1;
|
|
17198
17209
|
minutes = 0;
|
|
@@ -17216,7 +17227,7 @@ const setPartsDate = (date, parts) => {
|
|
|
17216
17227
|
if (parts.seconds !== void 0) date.setUTCSeconds(parts.seconds);
|
|
17217
17228
|
if (parts.millis !== void 0) date.setUTCMilliseconds(parts.millis);
|
|
17218
17229
|
};
|
|
17219
|
-
const constDayMillis =
|
|
17230
|
+
const constDayMillis = 864e5;
|
|
17220
17231
|
const makeZonedFromAdjusted = (adjustedMillis, zone, disambiguation) => {
|
|
17221
17232
|
if (zone._tag === "Offset") return makeZonedProto(adjustedMillis - zone.offset, zone);
|
|
17222
17233
|
const beforeOffset = calculateNamedOffset(adjustedMillis - constDayMillis, adjustedMillis, zone);
|
|
@@ -17272,7 +17283,7 @@ const formatIsoOffset = (self) => {
|
|
|
17272
17283
|
/** @internal */
|
|
17273
17284
|
const formatIsoZoned$1 = (self) => self.zone._tag === "Offset" ? formatIsoOffset(self) : `${formatIsoOffset(self)}[${self.zone.id}]`;
|
|
17274
17285
|
//#endregion
|
|
17275
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
17286
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/String.js
|
|
17276
17287
|
/**
|
|
17277
17288
|
* This module provides utility functions and type class instances for working with the `string` type in TypeScript.
|
|
17278
17289
|
* It includes functions for basic string manipulation, as well as type class instances for
|
|
@@ -17645,7 +17656,7 @@ const retryOrElse_EffectLoop = (self, driver, orElse) => {
|
|
|
17645
17656
|
/** @internal */
|
|
17646
17657
|
const forever = /*#__PURE__*/ unfold(0, (n) => n + 1);
|
|
17647
17658
|
//#endregion
|
|
17648
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
17659
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Request.js
|
|
17649
17660
|
/**
|
|
17650
17661
|
* Provides a constructor for a Request Class.
|
|
17651
17662
|
*
|
|
@@ -17666,7 +17677,7 @@ const forever = /*#__PURE__*/ unfold(0, (n) => n + 1);
|
|
|
17666
17677
|
*/
|
|
17667
17678
|
const Class$1 = Class$3;
|
|
17668
17679
|
//#endregion
|
|
17669
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
17680
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Effect.js
|
|
17670
17681
|
/**
|
|
17671
17682
|
* Checks if a given value is an `Effect` value.
|
|
17672
17683
|
*
|
|
@@ -22092,7 +22103,7 @@ const withParentSpan = withParentSpan$1;
|
|
|
22092
22103
|
*/
|
|
22093
22104
|
const fnUntraced = fnUntraced$1;
|
|
22094
22105
|
//#endregion
|
|
22095
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
22106
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/schema/util.js
|
|
22096
22107
|
/** @internal */
|
|
22097
22108
|
const getKeysForIndexSignature = (input, parameter) => {
|
|
22098
22109
|
switch (parameter._tag) {
|
|
@@ -22122,7 +22133,7 @@ const formatPathKey = (key) => `[${formatPropertyKey$1(key)}]`;
|
|
|
22122
22133
|
/** @internal */
|
|
22123
22134
|
const formatPath = (path) => isNonEmpty(path) ? path.map(formatPathKey).join("") : formatPathKey(path);
|
|
22124
22135
|
//#endregion
|
|
22125
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
22136
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/schema/errors.js
|
|
22126
22137
|
const getErrorMessage$1 = (reason, details, path, ast) => {
|
|
22127
22138
|
let out = reason;
|
|
22128
22139
|
if (path && isNonEmptyReadonlyArray(path)) out += `\nat path: ${formatPath(path)}`;
|
|
@@ -22158,7 +22169,7 @@ const getASTUnsupportedRenameSchemaErrorMessage = (ast) => getUnsupportedSchemaE
|
|
|
22158
22169
|
/** @internal */
|
|
22159
22170
|
const getASTDuplicatePropertySignatureErrorMessage = (key) => getErrorMessage$1("Duplicate property signature", `Duplicate key ${formatUnknown(key)}`);
|
|
22160
22171
|
//#endregion
|
|
22161
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
22172
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/SchemaAST.js
|
|
22162
22173
|
/**
|
|
22163
22174
|
* @since 3.10.0
|
|
22164
22175
|
*/
|
|
@@ -23353,12 +23364,10 @@ const unify = (candidates) => {
|
|
|
23353
23364
|
out.push(ast);
|
|
23354
23365
|
}
|
|
23355
23366
|
break;
|
|
23356
|
-
case "object":
|
|
23357
|
-
|
|
23358
|
-
|
|
23359
|
-
|
|
23360
|
-
}
|
|
23361
|
-
break;
|
|
23367
|
+
case "object": if (!literals.includes(ast.literal)) {
|
|
23368
|
+
literals.push(ast.literal);
|
|
23369
|
+
out.push(ast);
|
|
23370
|
+
}
|
|
23362
23371
|
}
|
|
23363
23372
|
break;
|
|
23364
23373
|
}
|
|
@@ -24233,7 +24242,7 @@ const pruneUndefined$1 = (ast, self, onTransformation) => {
|
|
|
24233
24242
|
}
|
|
24234
24243
|
};
|
|
24235
24244
|
//#endregion
|
|
24236
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
24245
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/ParseResult.js
|
|
24237
24246
|
/**
|
|
24238
24247
|
* @since 3.10.0
|
|
24239
24248
|
*/
|
|
@@ -24714,6 +24723,18 @@ const go$1 = (ast, isDecoding) => {
|
|
|
24714
24723
|
case "ObjectKeyword": return fromRefinement(ast, isObject);
|
|
24715
24724
|
case "Enums": return fromRefinement(ast, (u) => ast.enums.some(([_, value]) => value === u));
|
|
24716
24725
|
case "TemplateLiteral": {
|
|
24726
|
+
if (ast.spans.every((span) => isStringKeyword(span.type))) return fromRefinement(ast, (u) => {
|
|
24727
|
+
if (!isString(u) || !u.startsWith(ast.head)) return false;
|
|
24728
|
+
let position = ast.head.length;
|
|
24729
|
+
for (let i = 0; i < ast.spans.length - 1; i++) {
|
|
24730
|
+
const literal = ast.spans[i].literal;
|
|
24731
|
+
const index = u.indexOf(literal, position);
|
|
24732
|
+
if (index === -1) return false;
|
|
24733
|
+
position = index + literal.length;
|
|
24734
|
+
}
|
|
24735
|
+
const literal = ast.spans[ast.spans.length - 1].literal;
|
|
24736
|
+
return u.endsWith(literal) && u.length - literal.length >= position;
|
|
24737
|
+
});
|
|
24717
24738
|
const regex = getTemplateLiteralRegExp(ast);
|
|
24718
24739
|
return fromRefinement(ast, (u) => isString(u) && regex.test(u));
|
|
24719
24740
|
}
|
|
@@ -24784,14 +24805,15 @@ const go$1 = (ast, isDecoding) => {
|
|
|
24784
24805
|
const [head, ...tail] = rest;
|
|
24785
24806
|
for (; i < len - tail.length; i++) {
|
|
24786
24807
|
const te = head(input[i], options);
|
|
24787
|
-
if (isEither(te))
|
|
24788
|
-
|
|
24789
|
-
|
|
24790
|
-
|
|
24791
|
-
|
|
24792
|
-
|
|
24793
|
-
|
|
24794
|
-
|
|
24808
|
+
if (isEither(te)) {
|
|
24809
|
+
if (isLeft(te)) {
|
|
24810
|
+
const e = new Pointer(i, input, te.left);
|
|
24811
|
+
if (allErrors) {
|
|
24812
|
+
es.push([stepKey++, e]);
|
|
24813
|
+
continue;
|
|
24814
|
+
} else return left(new Composite(ast, input, e, sortByIndex(output)));
|
|
24815
|
+
} else output.push([stepKey++, te.right]);
|
|
24816
|
+
} else {
|
|
24795
24817
|
const nk = stepKey++;
|
|
24796
24818
|
const index = i;
|
|
24797
24819
|
if (!queue) queue = [];
|
|
@@ -24894,13 +24916,15 @@ const go$1 = (ast, isDecoding) => {
|
|
|
24894
24916
|
inputKeys = Reflect.ownKeys(input);
|
|
24895
24917
|
for (const key of inputKeys) {
|
|
24896
24918
|
const te = expected(key, options);
|
|
24897
|
-
if (isEither(te) && isLeft(te))
|
|
24898
|
-
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
|
|
24919
|
+
if (isEither(te) && isLeft(te)) {
|
|
24920
|
+
if (onExcessPropertyError) {
|
|
24921
|
+
const e = new Pointer(key, input, new Unexpected(input[key], `is unexpected, expected: ${String(expectedAST)}`));
|
|
24922
|
+
if (allErrors) {
|
|
24923
|
+
es.push([stepKey++, e]);
|
|
24924
|
+
continue;
|
|
24925
|
+
} else return left(new Composite(ast, input, e, output));
|
|
24926
|
+
} else output[key] = input[key];
|
|
24927
|
+
}
|
|
24904
24928
|
}
|
|
24905
24929
|
}
|
|
24906
24930
|
let queue = void 0;
|
|
@@ -25028,37 +25052,40 @@ const go$1 = (ast, isDecoding) => {
|
|
|
25028
25052
|
const es = [];
|
|
25029
25053
|
let stepKey = 0;
|
|
25030
25054
|
let candidates = [];
|
|
25031
|
-
if (ownKeysLen > 0)
|
|
25032
|
-
|
|
25033
|
-
|
|
25034
|
-
|
|
25035
|
-
|
|
25036
|
-
|
|
25037
|
-
|
|
25055
|
+
if (ownKeysLen > 0) {
|
|
25056
|
+
if (isRecordOrArray(input)) for (let i = 0; i < ownKeysLen; i++) {
|
|
25057
|
+
const name = ownKeys[i];
|
|
25058
|
+
const buckets = searchTree.keys[name].buckets;
|
|
25059
|
+
if (Object.prototype.hasOwnProperty.call(input, name)) {
|
|
25060
|
+
const literal = String(input[name]);
|
|
25061
|
+
if (Object.prototype.hasOwnProperty.call(buckets, literal)) candidates = candidates.concat(buckets[literal]);
|
|
25062
|
+
else {
|
|
25063
|
+
const { candidates, literals } = searchTree.keys[name];
|
|
25064
|
+
const literalsUnion = Union$1.make(literals);
|
|
25065
|
+
const errorAst = candidates.length === astTypesLen ? new TypeLiteral([new PropertySignature(name, literalsUnion, false, true)], []) : Union$1.make(candidates);
|
|
25066
|
+
es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Type(literalsUnion, input[name])))]);
|
|
25067
|
+
}
|
|
25068
|
+
} else {
|
|
25038
25069
|
const { candidates, literals } = searchTree.keys[name];
|
|
25039
|
-
const
|
|
25040
|
-
const errorAst = candidates.length === astTypesLen ? new TypeLiteral([
|
|
25041
|
-
es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new
|
|
25070
|
+
const fakePropertySignature = new PropertySignature(name, Union$1.make(literals), false, true);
|
|
25071
|
+
const errorAst = candidates.length === astTypesLen ? new TypeLiteral([fakePropertySignature], []) : Union$1.make(candidates);
|
|
25072
|
+
es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Missing(fakePropertySignature)))]);
|
|
25042
25073
|
}
|
|
25043
|
-
} else {
|
|
25044
|
-
const { candidates, literals } = searchTree.keys[name];
|
|
25045
|
-
const fakePropertySignature = new PropertySignature(name, Union$1.make(literals), false, true);
|
|
25046
|
-
const errorAst = candidates.length === astTypesLen ? new TypeLiteral([fakePropertySignature], []) : Union$1.make(candidates);
|
|
25047
|
-
es.push([stepKey++, new Composite(errorAst, input, new Pointer(name, input, new Missing(fakePropertySignature)))]);
|
|
25048
25074
|
}
|
|
25049
|
-
|
|
25050
|
-
|
|
25051
|
-
|
|
25052
|
-
|
|
25075
|
+
else {
|
|
25076
|
+
const errorAst = searchTree.candidates.length === astTypesLen ? ast : Union$1.make(searchTree.candidates);
|
|
25077
|
+
es.push([stepKey++, new Type(errorAst, input)]);
|
|
25078
|
+
}
|
|
25053
25079
|
}
|
|
25054
25080
|
if (searchTree.otherwise.length > 0) candidates = candidates.concat(searchTree.otherwise);
|
|
25055
25081
|
let queue = void 0;
|
|
25056
25082
|
for (let i = 0; i < candidates.length; i++) {
|
|
25057
25083
|
const candidate = candidates[i];
|
|
25058
25084
|
const pr = map.get(candidate)(input, options);
|
|
25059
|
-
if (isEither(pr) && (!queue || queue.length === 0))
|
|
25060
|
-
|
|
25061
|
-
|
|
25085
|
+
if (isEither(pr) && (!queue || queue.length === 0)) {
|
|
25086
|
+
if (isRight(pr)) return pr;
|
|
25087
|
+
else es.push([stepKey++, pr.left]);
|
|
25088
|
+
} else {
|
|
25062
25089
|
const nk = stepKey++;
|
|
25063
25090
|
if (!queue) queue = [];
|
|
25064
25091
|
queue.push((state) => suspend$1(() => {
|
|
@@ -25390,7 +25417,7 @@ const getArrayFormatterIssues = (issue, parentTag, path) => {
|
|
|
25390
25417
|
}
|
|
25391
25418
|
};
|
|
25392
25419
|
//#endregion
|
|
25393
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
25420
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/BigDecimal.js
|
|
25394
25421
|
/**
|
|
25395
25422
|
* This module provides utility functions and type class instances for working with the `BigDecimal` type in TypeScript.
|
|
25396
25423
|
* It includes functions for basic arithmetic operations, as well as type class instances for `Equivalence` and `Order`.
|
|
@@ -25491,16 +25518,18 @@ const zero = /*#__PURE__*/ unsafeMakeNormalized(bigint0, 0);
|
|
|
25491
25518
|
* @category scaling
|
|
25492
25519
|
*/
|
|
25493
25520
|
const normalize = (self) => {
|
|
25494
|
-
if (self.normalized === void 0)
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25499
|
-
|
|
25500
|
-
|
|
25501
|
-
|
|
25502
|
-
|
|
25503
|
-
|
|
25521
|
+
if (self.normalized === void 0) {
|
|
25522
|
+
if (self.value === bigint0) self.normalized = zero;
|
|
25523
|
+
else {
|
|
25524
|
+
const digits = `${self.value}`;
|
|
25525
|
+
let trail = 0;
|
|
25526
|
+
for (let i = digits.length - 1; i >= 0; i--) if (digits[i] === "0") trail++;
|
|
25527
|
+
else break;
|
|
25528
|
+
if (trail === 0) self.normalized = self;
|
|
25529
|
+
const value = BigInt(digits.substring(0, digits.length - trail));
|
|
25530
|
+
const scale = self.scale - trail;
|
|
25531
|
+
self.normalized = unsafeMakeNormalized(value, scale);
|
|
25532
|
+
}
|
|
25504
25533
|
}
|
|
25505
25534
|
return self.normalized;
|
|
25506
25535
|
};
|
|
@@ -26027,7 +26056,7 @@ const fromNumber = (n) => {
|
|
|
26027
26056
|
}
|
|
26028
26057
|
};
|
|
26029
26058
|
//#endregion
|
|
26030
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26059
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/redacted.js
|
|
26031
26060
|
/** @internal */
|
|
26032
26061
|
const RedactedSymbolKey = "effect/Redacted";
|
|
26033
26062
|
/** @internal */
|
|
@@ -26113,7 +26142,7 @@ const string$1 = (name) => {
|
|
|
26113
26142
|
/** @internal */
|
|
26114
26143
|
const isConfig$1 = (u) => hasProperty(u, ConfigTypeId);
|
|
26115
26144
|
//#endregion
|
|
26116
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26145
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Config.js
|
|
26117
26146
|
/**
|
|
26118
26147
|
* This function returns `true` if the specified value is an `Config` value,
|
|
26119
26148
|
* `false` otherwise.
|
|
@@ -26144,7 +26173,7 @@ const mapOrFail = mapOrFail$1;
|
|
|
26144
26173
|
*/
|
|
26145
26174
|
const string = string$1;
|
|
26146
26175
|
//#endregion
|
|
26147
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26176
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/DateTime.js
|
|
26148
26177
|
/**
|
|
26149
26178
|
* @since 3.6.0
|
|
26150
26179
|
* @category guards
|
|
@@ -26315,7 +26344,7 @@ const formatIso = formatIso$1;
|
|
|
26315
26344
|
*/
|
|
26316
26345
|
const formatIsoZoned = formatIsoZoned$1;
|
|
26317
26346
|
//#endregion
|
|
26318
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26347
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/encoding/common.js
|
|
26319
26348
|
/** @internal */
|
|
26320
26349
|
const DecodeExceptionTypeId = /*#__PURE__*/ Symbol.for("effect/Encoding/errors/Decode");
|
|
26321
26350
|
/** @internal */
|
|
@@ -26345,7 +26374,7 @@ const encoder = /*#__PURE__*/ new TextEncoder();
|
|
|
26345
26374
|
/** @interal */
|
|
26346
26375
|
const decoder = /*#__PURE__*/ new TextDecoder();
|
|
26347
26376
|
//#endregion
|
|
26348
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26377
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/encoding/base64.js
|
|
26349
26378
|
/** @internal */
|
|
26350
26379
|
const encode$3 = (bytes) => {
|
|
26351
26380
|
const length = bytes.length;
|
|
@@ -26594,7 +26623,7 @@ const base64codes = [
|
|
|
26594
26623
|
51
|
|
26595
26624
|
];
|
|
26596
26625
|
//#endregion
|
|
26597
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26626
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/encoding/base64Url.js
|
|
26598
26627
|
/** @internal */
|
|
26599
26628
|
const encode$2 = (data) => encode$3(data).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
|
|
26600
26629
|
/** @internal */
|
|
@@ -26608,7 +26637,7 @@ const decode$2 = (str) => {
|
|
|
26608
26637
|
return decode$3(sanitized);
|
|
26609
26638
|
};
|
|
26610
26639
|
//#endregion
|
|
26611
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26640
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/encoding/hex.js
|
|
26612
26641
|
/** @internal */
|
|
26613
26642
|
const encode$1 = (bytes) => {
|
|
26614
26643
|
let result = "";
|
|
@@ -26899,7 +26928,7 @@ const fromHexChar = (byte) => {
|
|
|
26899
26928
|
throw new TypeError("Invalid input");
|
|
26900
26929
|
};
|
|
26901
26930
|
//#endregion
|
|
26902
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
26931
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Encoding.js
|
|
26903
26932
|
/**
|
|
26904
26933
|
* This module provides encoding & decoding functionality for:
|
|
26905
26934
|
*
|
|
@@ -27918,7 +27947,7 @@ function array(arb, constraints = {}) {
|
|
|
27918
27947
|
return new ArrayArbitrary(arb, minLength, maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, maxLengthOrUnset !== void 0), maxLength, depthIdentifier, void 0, constraints.experimentalCustomSlices || []);
|
|
27919
27948
|
}
|
|
27920
27949
|
//#endregion
|
|
27921
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
27950
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/internal/schema/schemaId.js
|
|
27922
27951
|
/** @internal */
|
|
27923
27952
|
const DateFromSelfSchemaId$1 = /*#__PURE__*/ Symbol.for("effect/SchemaId/DateFromSelf");
|
|
27924
27953
|
/** @internal */
|
|
@@ -27962,7 +27991,7 @@ const MaxItemsSchemaId$1 = /*#__PURE__*/ Symbol.for("effect/SchemaId/MaxItems");
|
|
|
27962
27991
|
/** @internal */
|
|
27963
27992
|
const ItemsCountSchemaId$1 = /*#__PURE__*/ Symbol.for("effect/SchemaId/ItemsCount");
|
|
27964
27993
|
//#endregion
|
|
27965
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
27994
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Redacted.js
|
|
27966
27995
|
/**
|
|
27967
27996
|
* @since 3.3.0
|
|
27968
27997
|
* @category refinements
|
|
@@ -28026,7 +28055,7 @@ const value = value$1;
|
|
|
28026
28055
|
*/
|
|
28027
28056
|
const getEquivalence = (isEquivalent) => make$39((x, y) => isEquivalent(value(x), value(y)));
|
|
28028
28057
|
//#endregion
|
|
28029
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
28058
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Struct.js
|
|
28030
28059
|
/**
|
|
28031
28060
|
* Create a new object by picking properties of an existing object.
|
|
28032
28061
|
*
|
|
@@ -28066,7 +28095,7 @@ const omit$1 = /*#__PURE__*/ dual((args) => isObject(args[0]), (s, ...keys) => {
|
|
|
28066
28095
|
return out;
|
|
28067
28096
|
});
|
|
28068
28097
|
//#endregion
|
|
28069
|
-
//#region ../../node_modules/.pnpm/effect@3.22.
|
|
28098
|
+
//#region ../../node_modules/.pnpm/effect@3.22.1/node_modules/effect/dist/esm/Schema.js
|
|
28070
28099
|
/**
|
|
28071
28100
|
* @since 3.10.0
|
|
28072
28101
|
*/
|
|
@@ -28784,9 +28813,10 @@ const TemplateLiteral = (...[head, ...tail]) => {
|
|
|
28784
28813
|
const spans = [];
|
|
28785
28814
|
let h = "";
|
|
28786
28815
|
let ts = tail;
|
|
28787
|
-
if (isSchema(head))
|
|
28788
|
-
|
|
28789
|
-
|
|
28816
|
+
if (isSchema(head)) {
|
|
28817
|
+
if (isLiteral(head.ast)) h = String(head.ast.literal);
|
|
28818
|
+
else ts = [head, ...ts];
|
|
28819
|
+
} else h = String(head);
|
|
28790
28820
|
for (let i = 0; i < ts.length; i++) {
|
|
28791
28821
|
const item = ts[i];
|
|
28792
28822
|
if (isSchema(item)) {
|
|
@@ -29354,50 +29384,53 @@ const optionalPropertySignatureAST = (self, options) => {
|
|
|
29354
29384
|
const isNullable = options?.nullable;
|
|
29355
29385
|
const asOption = options?.as == "Option";
|
|
29356
29386
|
const asOptionEncode = options?.onNoneEncoding ? orElse$3(options.onNoneEncoding) : identity;
|
|
29357
|
-
if (isExact)
|
|
29358
|
-
|
|
29359
|
-
|
|
29360
|
-
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
|
|
29365
|
-
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29373
|
-
|
|
29387
|
+
if (isExact) {
|
|
29388
|
+
if (defaultValue) {
|
|
29389
|
+
if (isNullable) return withConstructorDefault(optionalToRequired(NullOr(self), typeSchema(self), {
|
|
29390
|
+
decode: match$7({
|
|
29391
|
+
onNone: defaultValue,
|
|
29392
|
+
onSome: (a) => a === null ? defaultValue() : a
|
|
29393
|
+
}),
|
|
29394
|
+
encode: some$1
|
|
29395
|
+
}), defaultValue).ast;
|
|
29396
|
+
else return withConstructorDefault(optionalToRequired(self, typeSchema(self), {
|
|
29397
|
+
decode: match$7({
|
|
29398
|
+
onNone: defaultValue,
|
|
29399
|
+
onSome: identity
|
|
29400
|
+
}),
|
|
29401
|
+
encode: some$1
|
|
29402
|
+
}), defaultValue).ast;
|
|
29403
|
+
} else if (asOption) {
|
|
29404
|
+
const to = OptionFromSelf_(typeSchema(self));
|
|
29405
|
+
if (isNullable) return optionalToRequired(NullOr(self), to, {
|
|
29406
|
+
decode: filter$5(isNotNull),
|
|
29407
|
+
encode: asOptionEncode
|
|
29408
|
+
}).ast;
|
|
29409
|
+
else return optionalToRequired(self, to, {
|
|
29410
|
+
decode: identity,
|
|
29411
|
+
encode: identity
|
|
29412
|
+
}).ast;
|
|
29413
|
+
} else if (isNullable) return optionalToOptional(NullOr(self), typeSchema(self), {
|
|
29374
29414
|
decode: filter$5(isNotNull),
|
|
29375
|
-
encode: asOptionEncode
|
|
29376
|
-
}).ast;
|
|
29377
|
-
else return optionalToRequired(self, to, {
|
|
29378
|
-
decode: identity,
|
|
29379
29415
|
encode: identity
|
|
29380
29416
|
}).ast;
|
|
29381
|
-
|
|
29382
|
-
|
|
29383
|
-
|
|
29384
|
-
|
|
29385
|
-
|
|
29386
|
-
|
|
29387
|
-
|
|
29388
|
-
|
|
29389
|
-
|
|
29390
|
-
|
|
29391
|
-
|
|
29392
|
-
|
|
29393
|
-
|
|
29394
|
-
|
|
29395
|
-
|
|
29396
|
-
|
|
29397
|
-
|
|
29398
|
-
encode: some$1
|
|
29399
|
-
}), defaultValue).ast;
|
|
29400
|
-
else if (asOption) {
|
|
29417
|
+
else return new PropertySignatureDeclaration(self.ast, true, true, {}, void 0);
|
|
29418
|
+
} else if (defaultValue) {
|
|
29419
|
+
if (isNullable) return withConstructorDefault(optionalToRequired(NullishOr(self), typeSchema(self), {
|
|
29420
|
+
decode: match$7({
|
|
29421
|
+
onNone: defaultValue,
|
|
29422
|
+
onSome: (a) => a == null ? defaultValue() : a
|
|
29423
|
+
}),
|
|
29424
|
+
encode: some$1
|
|
29425
|
+
}), defaultValue).ast;
|
|
29426
|
+
else return withConstructorDefault(optionalToRequired(UndefinedOr(self), typeSchema(self), {
|
|
29427
|
+
decode: match$7({
|
|
29428
|
+
onNone: defaultValue,
|
|
29429
|
+
onSome: (a) => a === void 0 ? defaultValue() : a
|
|
29430
|
+
}),
|
|
29431
|
+
encode: some$1
|
|
29432
|
+
}), defaultValue).ast;
|
|
29433
|
+
} else if (asOption) {
|
|
29401
29434
|
const to = OptionFromSelf_(typeSchema(self));
|
|
29402
29435
|
if (isNullable) return optionalToRequired(NullishOr(self), to, {
|
|
29403
29436
|
decode: filter$5((a) => a != null),
|
|
@@ -29769,11 +29802,9 @@ const intersectUnionMembers = (xs, ys, path) => flatMap$5(xs, (x) => flatMap$5(y
|
|
|
29769
29802
|
}
|
|
29770
29803
|
}
|
|
29771
29804
|
break;
|
|
29772
|
-
case "Transformation":
|
|
29773
|
-
if (
|
|
29774
|
-
|
|
29775
|
-
} else return intersectUnionMembers([y], [x], path);
|
|
29776
|
-
break;
|
|
29805
|
+
case "Transformation": if (isTransformation$1(x)) {
|
|
29806
|
+
if (isTypeLiteralTransformation(y.transformation) && isTypeLiteralTransformation(x.transformation)) return [new Transformation$1(intersectTypeLiterals(x.from, y.from, path), intersectTypeLiterals(x.to, y.to, path), new TypeLiteralTransformation(y.transformation.propertySignatureTransformations.concat(x.transformation.propertySignatureTransformations)))];
|
|
29807
|
+
} else return intersectUnionMembers([y], [x], path);
|
|
29777
29808
|
}
|
|
29778
29809
|
throw new Error(getSchemaExtendErrorMessage(x, y, path));
|
|
29779
29810
|
}));
|
|
@@ -31636,8 +31667,8 @@ var DateTimeUtc = class extends transformOrFail(String$.annotations({ descriptio
|
|
|
31636
31667
|
encode: (a) => succeed(formatIso(a))
|
|
31637
31668
|
}).annotations({ identifier: "DateTimeUtc" }) {};
|
|
31638
31669
|
const timeZoneOffsetArbitrary = () => (fc) => fc.integer({
|
|
31639
|
-
min: -
|
|
31640
|
-
max:
|
|
31670
|
+
min: -432e5,
|
|
31671
|
+
max: 504e5
|
|
31641
31672
|
}).map(zoneMakeOffset);
|
|
31642
31673
|
/**
|
|
31643
31674
|
* Describes a schema that represents a `TimeZone.Offset` instance.
|
|
@@ -31873,7 +31904,7 @@ const eitherPretty = (right, left) => match$8({
|
|
|
31873
31904
|
onRight: (a) => `right(${right(a)})`
|
|
31874
31905
|
});
|
|
31875
31906
|
const eitherParse = (parseRight, decodeUnknownLeft) => (u, options, ast) => isEither$1(u) ? match$8(u, {
|
|
31876
|
-
onLeft: (left$
|
|
31907
|
+
onLeft: (left$3) => toComposite(decodeUnknownLeft(left$3, options), left, ast, u),
|
|
31877
31908
|
onRight: (right$3) => toComposite(parseRight(right$3, options), right, ast, u)
|
|
31878
31909
|
}) : fail(new Type(ast, u));
|
|
31879
31910
|
/**
|
|
@@ -31934,9 +31965,9 @@ const Either = ({ left, right }) => {
|
|
|
31934
31965
|
* @category Either transformations
|
|
31935
31966
|
* @since 3.10.0
|
|
31936
31967
|
*/
|
|
31937
|
-
const EitherFromUnion = ({ left: left$
|
|
31968
|
+
const EitherFromUnion = ({ left: left$2, right: right$2 }) => {
|
|
31938
31969
|
const right_ = asSchema(right$2);
|
|
31939
|
-
const left_ = asSchema(left$
|
|
31970
|
+
const left_ = asSchema(left$2);
|
|
31940
31971
|
const toright = typeSchema(right_);
|
|
31941
31972
|
const toleft = typeSchema(left_);
|
|
31942
31973
|
const fromRight = transform(right_, rightEncoded(toright), {
|