@autocode-cli/autocode 0.8.37 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_i18n/zP5M_e1m/en/messages.json +1 -0
- package/.output/public/_i18n/zP5M_e1m/fr/messages.json +1 -0
- package/.output/public/_nuxt/BBgAVlXU.js +1 -0
- package/.output/public/_nuxt/BZUmpBmU.js +2 -0
- package/.output/public/_nuxt/BmGeRwzG.js +1 -0
- package/.output/public/_nuxt/Bsd2P-Xc.js +1 -0
- package/.output/public/_nuxt/BthlfLoK.js +1 -0
- package/.output/public/_nuxt/Bu1Qq2g-.js +1 -0
- package/.output/public/_nuxt/BvF9_V7p.js +1 -0
- package/.output/public/_nuxt/BvUbqlcZ.js +2 -0
- package/.output/public/_nuxt/Bxcwuw3U.js +1 -0
- package/.output/public/_nuxt/C0Rlrcoy.js +59 -0
- package/.output/public/_nuxt/CTV7-Iux.js +1 -0
- package/.output/public/_nuxt/CWENDdnZ.js +1 -0
- package/.output/public/_nuxt/CjVJcaTo.js +7 -0
- package/.output/public/_nuxt/CoGBQbLh.js +1 -0
- package/.output/public/_nuxt/CtVoJCjv.js +1 -0
- package/.output/public/_nuxt/D4lcVP-d.js +1 -0
- package/.output/public/_nuxt/D8RlVVzC.js +1 -0
- package/.output/public/_nuxt/DBuWa6JT.js +1 -0
- package/.output/public/_nuxt/DFQ30pd7.js +1 -0
- package/.output/public/_nuxt/DNUcHFTN.js +1 -0
- package/.output/public/_nuxt/DRo5NaOZ.js +1 -0
- package/.output/public/_nuxt/DU0awelf.js +1 -0
- package/.output/public/_nuxt/DYYF8rpr.js +1 -0
- package/.output/public/_nuxt/DaYBQX26.js +1 -0
- package/.output/public/_nuxt/DwfwVH0w.js +1 -0
- package/.output/public/_nuxt/DykwyQae.js +1 -0
- package/.output/public/_nuxt/FIIaIpPb.js +1 -0
- package/.output/public/_nuxt/IssueHeader.BKYJE9Ko.css +1 -0
- package/.output/public/_nuxt/LangSwitcher.DDTh1sNN.css +1 -0
- package/.output/public/_nuxt/QtPIr4OQ.js +1 -0
- package/.output/public/_nuxt/TA-NBooC.js +1 -0
- package/.output/public/_nuxt/TB1o0NrH.js +13 -0
- package/.output/public/_nuxt/Zzp33YZj.js +1 -0
- package/.output/public/_nuxt/_HJO0SwU.js +1 -0
- package/.output/public/_nuxt/_id_.CYj9w2Sw.css +1 -0
- package/.output/public/_nuxt/_name_.OOW3Ydwv.css +1 -0
- package/.output/public/_nuxt/autocreate.-iJ9Pxhm.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/83d9a3fc-c99e-4e26-adef-e7f5b329b81a.json +1 -0
- package/.output/public/_nuxt/changelog.CziWegef.css +1 -0
- package/.output/public/_nuxt/comments.BcvjcN1z.css +1 -0
- package/.output/public/_nuxt/default.BaZU2Ea8.css +1 -0
- package/.output/public/_nuxt/entry.CzscD3wg.css +1 -0
- package/.output/public/_nuxt/graph.BbpRRv0M.css +1 -0
- package/.output/public/_nuxt/iHS1jy-1.js +1 -0
- package/.output/public/_nuxt/index.CDND7dpO.css +1 -0
- package/.output/public/_nuxt/index.COVdL_Kx.css +1 -0
- package/.output/public/_nuxt/index.CTkgb9uR.css +1 -0
- package/.output/public/_nuxt/index.DkNg_n4G.css +1 -0
- package/.output/public/_nuxt/jYigECdj.js +1 -0
- package/.output/public/_nuxt/kanban.BuPOCLgG.css +1 -0
- package/.output/public/_nuxt/landing.D5KkDm1b.css +1 -0
- package/.output/public/_nuxt/new.BFERdqdm.css +1 -0
- package/.output/public/_nuxt/new.BzaiohPo.css +1 -0
- package/.output/public/_nuxt/prompt.CbFHjm-L.css +1 -0
- package/.output/public/_nuxt/prompt.DM4VdPnn.css +1 -0
- package/.output/public/_nuxt/prompt.DZ0wdOji.css +1 -0
- package/.output/public/_nuxt/stats.CXzKxZ71.css +1 -0
- package/.output/public/_nuxt/terminal.BL0EPPyU.css +1 -0
- package/.output/public/_nuxt/terminal.D3JI44PH.css +1 -0
- package/.output/public/_nuxt/terminal.YXDzS4Ng.css +1 -0
- package/.output/public/_payload.json +1 -0
- package/.output/public/favicon.svg +11 -0
- package/.output/public/index.html +1 -0
- package/.output/public/media/podcast/en.m4a +0 -0
- package/.output/public/media/podcast/fr.m4a +0 -0
- package/.output/public/og-image.svg +58 -0
- package/.output/public/robots.txt +5 -0
- package/.output/server/chunks/_/attachments.service.mjs +33 -0
- package/.output/server/chunks/_/attachments.service.mjs.map +1 -0
- package/.output/server/chunks/_/comments.service.mjs +26 -0
- package/.output/server/chunks/_/comments.service.mjs.map +1 -0
- package/.output/server/chunks/_/en.mjs +538 -0
- package/.output/server/chunks/_/en.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +10 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/fr.mjs +538 -0
- package/.output/server/chunks/_/fr.mjs.map +1 -0
- package/.output/server/chunks/build/AppHeader-styles.D4cFmBur.mjs +8 -0
- package/.output/server/chunks/build/AppHeader-styles.D4cFmBur.mjs.map +1 -0
- package/.output/server/chunks/build/CatalogPanel-styles.BJ_ozkvH.mjs +8 -0
- package/.output/server/chunks/build/CatalogPanel-styles.BJ_ozkvH.mjs.map +1 -0
- package/.output/server/chunks/build/IssueHeader-BKlqeUoH.mjs +127 -0
- package/.output/server/chunks/build/IssueHeader-BKlqeUoH.mjs.map +1 -0
- package/.output/server/chunks/build/IssueHeader-styles.aWkocVax.mjs +8 -0
- package/.output/server/chunks/build/IssueHeader-styles.aWkocVax.mjs.map +1 -0
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs +8 -0
- package/.output/server/chunks/build/LandingArchitecture-styles.Don6ug3a.mjs.map +1 -0
- package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs +8 -0
- package/.output/server/chunks/build/LandingAutonomy-styles.D9JJFMEO.mjs.map +1 -0
- package/.output/server/chunks/build/LandingCommands-styles.BoLpFQgT.mjs +8 -0
- package/.output/server/chunks/build/LandingCommands-styles.BoLpFQgT.mjs.map +1 -0
- package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs +8 -0
- package/.output/server/chunks/build/LandingDemo-styles.WY8VUN9P.mjs.map +1 -0
- package/.output/server/chunks/build/LandingFooter-styles.CEshuzKW.mjs +8 -0
- package/.output/server/chunks/build/LandingFooter-styles.CEshuzKW.mjs.map +1 -0
- package/.output/server/chunks/build/LandingMatrixBg-styles.DKJoYVuG.mjs +8 -0
- package/.output/server/chunks/build/LandingMatrixBg-styles.DKJoYVuG.mjs.map +1 -0
- package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs +8 -0
- package/.output/server/chunks/build/LandingPipeline-styles.CL96fyQR.mjs.map +1 -0
- package/.output/server/chunks/build/LandingPodcast-styles.BUxvpRMa.mjs +8 -0
- package/.output/server/chunks/build/LandingPodcast-styles.BUxvpRMa.mjs.map +1 -0
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs +8 -0
- package/.output/server/chunks/build/LandingRoadmap-styles.DX5EsTsx.mjs.map +1 -0
- package/.output/server/chunks/build/LangSwitcher-BcmlkZkS.mjs +32 -0
- package/.output/server/chunks/build/LangSwitcher-BcmlkZkS.mjs.map +1 -0
- package/.output/server/chunks/build/LangSwitcher-styles.DjejY3Ry.mjs +8 -0
- package/.output/server/chunks/build/LangSwitcher-styles.DjejY3Ry.mjs.map +1 -0
- package/.output/server/chunks/build/NotificationContainer-styles.CWuUTY5_.mjs +8 -0
- package/.output/server/chunks/build/NotificationContainer-styles.CWuUTY5_.mjs.map +1 -0
- package/.output/server/chunks/build/PipelineColumn-styles.DeCMKSUU.mjs +8 -0
- package/.output/server/chunks/build/PipelineColumn-styles.DeCMKSUU.mjs.map +1 -0
- package/.output/server/chunks/build/PipelineSegments-styles.Cx1F1okc.mjs +8 -0
- package/.output/server/chunks/build/PipelineSegments-styles.Cx1F1okc.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-CE9OXhn_.mjs +78 -0
- package/.output/server/chunks/build/_id_-CE9OXhn_.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-styles.DrupDd6T.mjs +8 -0
- package/.output/server/chunks/build/_id_-styles.DrupDd6T.mjs.map +1 -0
- package/.output/server/chunks/build/_name_-UJA12Rs2.mjs +810 -0
- package/.output/server/chunks/build/_name_-UJA12Rs2.mjs.map +1 -0
- package/.output/server/chunks/build/_name_-styles.megXcys0.mjs +8 -0
- package/.output/server/chunks/build/_name_-styles.megXcys0.mjs.map +1 -0
- package/.output/server/chunks/build/autocreate-DrAjWR5B.mjs +113 -0
- package/.output/server/chunks/build/autocreate-DrAjWR5B.mjs.map +1 -0
- package/.output/server/chunks/build/autocreate-styles.BkUFXyS7.mjs +8 -0
- package/.output/server/chunks/build/autocreate-styles.BkUFXyS7.mjs.map +1 -0
- package/.output/server/chunks/build/changelog-CVp1u2jo.mjs +159 -0
- package/.output/server/chunks/build/changelog-CVp1u2jo.mjs.map +1 -0
- package/.output/server/chunks/build/changelog-styles.Ct3EgGku.mjs +8 -0
- package/.output/server/chunks/build/changelog-styles.Ct3EgGku.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/comments-CZn-fPmX.mjs +119 -0
- package/.output/server/chunks/build/comments-CZn-fPmX.mjs.map +1 -0
- package/.output/server/chunks/build/comments-styles.CMP7TEvm.mjs +8 -0
- package/.output/server/chunks/build/comments-styles.CMP7TEvm.mjs.map +1 -0
- package/.output/server/chunks/build/default-BovpaVrS.mjs +180 -0
- package/.output/server/chunks/build/default-BovpaVrS.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.DCCKRaIF.mjs +8 -0
- package/.output/server/chunks/build/default-styles.DCCKRaIF.mjs.map +1 -0
- package/.output/server/chunks/build/en-1t1dLE2e.mjs +516 -0
- package/.output/server/chunks/build/en-1t1dLE2e.mjs.map +1 -0
- package/.output/server/chunks/build/error-styles.DYHGS7iv.mjs +8 -0
- package/.output/server/chunks/build/error-styles.DYHGS7iv.mjs.map +1 -0
- package/.output/server/chunks/build/fetch-B5NxMLIO.mjs +468 -0
- package/.output/server/chunks/build/fetch-B5NxMLIO.mjs.map +1 -0
- package/.output/server/chunks/build/fr-DHi8X16R.mjs +516 -0
- package/.output/server/chunks/build/fr-DHi8X16R.mjs.map +1 -0
- package/.output/server/chunks/build/graph-C-r91hz6.mjs +153 -0
- package/.output/server/chunks/build/graph-C-r91hz6.mjs.map +1 -0
- package/.output/server/chunks/build/graph-styles.BX4kyxPV.mjs +8 -0
- package/.output/server/chunks/build/graph-styles.BX4kyxPV.mjs.map +1 -0
- package/.output/server/chunks/build/index-Bm8ROtfk.mjs +239 -0
- package/.output/server/chunks/build/index-Bm8ROtfk.mjs.map +1 -0
- package/.output/server/chunks/build/index-C0DupdV0.mjs +89 -0
- package/.output/server/chunks/build/index-C0DupdV0.mjs.map +1 -0
- package/.output/server/chunks/build/index-CqyAV1ko.mjs +741 -0
- package/.output/server/chunks/build/index-CqyAV1ko.mjs.map +1 -0
- package/.output/server/chunks/build/index-D2tcUNO-.mjs +193 -0
- package/.output/server/chunks/build/index-D2tcUNO-.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BJ7kZO7q.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BaICoyCD.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BaICoyCD.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.Cy221X-R.mjs +8 -0
- package/.output/server/chunks/build/index-styles.Cy221X-R.mjs.map +1 -0
- package/.output/server/chunks/build/kanban-CMVmXpCA.mjs +304 -0
- package/.output/server/chunks/build/kanban-CMVmXpCA.mjs.map +1 -0
- package/.output/server/chunks/build/kanban-styles.CWalvI0C.mjs +8 -0
- package/.output/server/chunks/build/kanban-styles.CWalvI0C.mjs.map +1 -0
- package/.output/server/chunks/build/landing-DK6wjn6b.mjs +52 -0
- package/.output/server/chunks/build/landing-DK6wjn6b.mjs.map +1 -0
- package/.output/server/chunks/build/landing-styles.Bx73xEdX.mjs +8 -0
- package/.output/server/chunks/build/landing-styles.Bx73xEdX.mjs.map +1 -0
- package/.output/server/chunks/build/new-BUvtXOoH.mjs +107 -0
- package/.output/server/chunks/build/new-BUvtXOoH.mjs.map +1 -0
- package/.output/server/chunks/build/new-DMctSKBX.mjs +171 -0
- package/.output/server/chunks/build/new-DMctSKBX.mjs.map +1 -0
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs +8 -0
- package/.output/server/chunks/build/new-styles.Chk5u_6M.mjs.map +1 -0
- package/.output/server/chunks/build/new-styles.KSbzjZvD.mjs +8 -0
- package/.output/server/chunks/build/new-styles.KSbzjZvD.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-Cq8xZgFP.mjs +286 -0
- package/.output/server/chunks/build/nuxt-link-Cq8xZgFP.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-BD-UncOd.mjs +167 -0
- package/.output/server/chunks/build/prompt-BD-UncOd.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-BzvhmzrW.mjs +121 -0
- package/.output/server/chunks/build/prompt-BzvhmzrW.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-evT7Aaj_.mjs +118 -0
- package/.output/server/chunks/build/prompt-evT7Aaj_.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.ByKVLx31.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.ByKVLx31.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.DWfublIG.mjs.map +1 -0
- package/.output/server/chunks/build/prompt-styles.i7UlDRDv.mjs +8 -0
- package/.output/server/chunks/build/prompt-styles.i7UlDRDv.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +6262 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/stats-Cxo5MAfa.mjs +184 -0
- package/.output/server/chunks/build/stats-Cxo5MAfa.mjs.map +1 -0
- package/.output/server/chunks/build/stats-styles.B6f61PbZ.mjs +8 -0
- package/.output/server/chunks/build/stats-styles.B6f61PbZ.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +82 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-B0__67-c.mjs +134 -0
- package/.output/server/chunks/build/terminal-B0__67-c.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-BtTmOD6s.mjs +128 -0
- package/.output/server/chunks/build/terminal-BtTmOD6s.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-D_WbT8Ri.mjs +134 -0
- package/.output/server/chunks/build/terminal-D_WbT8Ri.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.C3XDlIUb.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.C3XDlIUb.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.CPOm0b7Y.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.CPOm0b7Y.mjs.map +1 -0
- package/.output/server/chunks/build/terminal-styles.TrVlIkii.mjs +8 -0
- package/.output/server/chunks/build/terminal-styles.TrVlIkii.mjs.map +1 -0
- package/.output/server/chunks/build/useApiError-BSStUojq.mjs +54 -0
- package/.output/server/chunks/build/useApiError-BSStUojq.mjs.map +1 -0
- package/.output/server/chunks/build/useNotification-BqDqaGnC.mjs +49 -0
- package/.output/server/chunks/build/useNotification-BqDqaGnC.mjs.map +1 -0
- package/.output/server/chunks/build/usePipeline-ZPHbtOs6.mjs +158 -0
- package/.output/server/chunks/build/usePipeline-ZPHbtOs6.mjs.map +1 -0
- package/.output/server/chunks/build/useWebSocket-UbMCn0vY.mjs +47 -0
- package/.output/server/chunks/build/useWebSocket-UbMCn0vY.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +14666 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/_ws.mjs +50 -0
- package/.output/server/chunks/routes/_ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/catalog/autocreate/apply.post.mjs +67 -0
- package/.output/server/chunks/routes/api/catalog/autocreate/apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/catalog/autocreate.post.mjs +158 -0
- package/.output/server/chunks/routes/api/catalog/autocreate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/changelog/summary.post.mjs +140 -0
- package/.output/server/chunks/routes/api/changelog/summary.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/changelog.get.mjs +83 -0
- package/.output/server/chunks/routes/api/changelog.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/columns/_slug/actions.get.mjs +43 -0
- package/.output/server/chunks/routes/api/columns/_slug/actions.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/columns/_slug/prompt.get.mjs +44 -0
- package/.output/server/chunks/routes/api/columns/_slug/prompt.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +61 -0
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +80 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get2.mjs +39 -0
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get3.mjs +55 -0
- package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get4.mjs +46 -0
- package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +104 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post2.mjs +73 -0
- package/.output/server/chunks/routes/api/index.post2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post3.mjs +64 -0
- package/.output/server/chunks/routes/api/index.post3.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/_column/log.get.mjs +90 -0
- package/.output/server/chunks/routes/api/issues/_id/_column/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/ancestors.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/ancestors.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/archive.delete.mjs +67 -0
- package/.output/server/chunks/routes/api/issues/_id/archive.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.delete.mjs +75 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.get.mjs +73 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments/_attachmentId_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.get.mjs +51 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.post.mjs +103 -0
- package/.output/server/chunks/routes/api/issues/_id/attachments.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/children.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/children.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.get.mjs +50 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.post.mjs +66 -0
- package/.output/server/chunks/routes/api/issues/_id/comments.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/full-history.get.mjs +79 -0
- package/.output/server/chunks/routes/api/issues/_id/full-history.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/full-terminal.get.mjs +88 -0
- package/.output/server/chunks/routes/api/issues/_id/full-terminal.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/log.get.mjs +84 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/prompt.get.mjs +57 -0
- package/.output/server/chunks/routes/api/issues/_id/history/_sessionId/prompt.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs +68 -0
- package/.output/server/chunks/routes/api/issues/_id/history.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/log.get.mjs +75 -0
- package/.output/server/chunks/routes/api/issues/_id/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/move.post.mjs +87 -0
- package/.output/server/chunks/routes/api/issues/_id/move.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id/next.post.mjs +78 -0
- package/.output/server/chunks/routes/api/issues/_id/next.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/issues/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/_id_.patch.mjs +70 -0
- package/.output/server/chunks/routes/api/issues/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/actionable.get.mjs +60 -0
- package/.output/server/chunks/routes/api/issues/actionable.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/autocomplete.post.mjs +110 -0
- package/.output/server/chunks/routes/api/issues/autocomplete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/issues/graph.get.mjs +69 -0
- package/.output/server/chunks/routes/api/issues/graph.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/activate.put.mjs +59 -0
- package/.output/server/chunks/routes/api/pipelines/_name/activate.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/activate.put.mjs +58 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/activate.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/finalize.post.mjs +69 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version/finalize.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.delete.mjs +58 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.get.mjs +68 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.put.mjs +70 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions/_version_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.get.mjs +49 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.post.mjs +61 -0
- package/.output/server/chunks/routes/api/pipelines/_name/versions.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.delete.mjs +54 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.put.mjs +78 -0
- package/.output/server/chunks/routes/api/pipelines/_name_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/stats.get.mjs +39 -0
- package/.output/server/chunks/routes/api/stats.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workflow/health.get.mjs +40 -0
- package/.output/server/chunks/routes/api/workflow/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ws/status.get.mjs +38 -0
- package/.output/server/chunks/routes/api/ws/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +399 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +28 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.prisma/client/default.js +5 -0
- package/.output/server/node_modules/.prisma/client/index.js +224 -0
- package/.output/server/node_modules/.prisma/client/package.json +144 -0
- package/.output/server/node_modules/.prisma/client/query_compiler_bg.js +2 -0
- package/.output/server/node_modules/.prisma/client/query_compiler_bg.wasm-base64.js +2 -0
- package/.output/server/node_modules/.prisma/package.json +4 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14662 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +31 -0
- package/.output/server/node_modules/@intlify/core/package.json +82 -0
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +1886 -0
- package/.output/server/node_modules/@intlify/core-base/package.json +80 -0
- package/.output/server/node_modules/@intlify/h3/dist/index.mjs +65 -0
- package/.output/server/node_modules/@intlify/h3/package.json +122 -0
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1530 -0
- package/.output/server/node_modules/@intlify/message-compiler/package.json +79 -0
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +281 -0
- package/.output/server/node_modules/@intlify/shared/package.json +69 -0
- package/.output/server/node_modules/@intlify/utils/dist/h3.mjs +89 -0
- package/.output/server/node_modules/@intlify/utils/dist/shared/utils.9f8159f5.mjs +108 -0
- package/.output/server/node_modules/@intlify/utils/package.json +129 -0
- package/.output/server/node_modules/@prisma/adapter-better-sqlite3/dist/index.mjs +619 -0
- package/.output/server/node_modules/@prisma/adapter-better-sqlite3/package.json +45 -0
- package/.output/server/node_modules/@prisma/client/default.js +3 -0
- package/.output/server/node_modules/@prisma/client/package.json +281 -0
- package/.output/server/node_modules/@prisma/client/runtime/client.js +82 -0
- package/.output/server/node_modules/@prisma/client-runtime-utils/dist/index.js +2552 -0
- package/.output/server/node_modules/@prisma/client-runtime-utils/package.json +39 -0
- package/.output/server/node_modules/@prisma/debug/dist/index.mjs +213 -0
- package/.output/server/node_modules/@prisma/debug/package.json +47 -0
- package/.output/server/node_modules/@prisma/driver-adapter-utils/dist/index.mjs +245 -0
- package/.output/server/node_modules/@prisma/driver-adapter-utils/package.json +40 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/@vue/devtools-api/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/@vue/devtools-api/package.json +37 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1853 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
- package/.output/server/node_modules/better-sqlite3/lib/database.js +90 -0
- package/.output/server/node_modules/better-sqlite3/lib/index.js +3 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/aggregate.js +43 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/backup.js +67 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/function.js +31 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/inspect.js +7 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/pragma.js +12 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/serialize.js +16 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/table.js +189 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/transaction.js +78 -0
- package/.output/server/node_modules/better-sqlite3/lib/methods/wrappers.js +54 -0
- package/.output/server/node_modules/better-sqlite3/lib/sqlite-error.js +20 -0
- package/.output/server/node_modules/better-sqlite3/lib/util.js +12 -0
- package/.output/server/node_modules/better-sqlite3/package.json +59 -0
- package/.output/server/node_modules/bindings/bindings.js +221 -0
- package/.output/server/node_modules/bindings/package.json +28 -0
- package/.output/server/node_modules/cookie-es/dist/index.mjs +262 -0
- package/.output/server/node_modules/cookie-es/package.json +46 -0
- package/.output/server/node_modules/d3/package.json +92 -0
- package/.output/server/node_modules/d3/src/index.js +30 -0
- package/.output/server/node_modules/d3-array/package.json +61 -0
- package/.output/server/node_modules/d3-array/src/array.js +4 -0
- package/.output/server/node_modules/d3-array/src/ascending.js +3 -0
- package/.output/server/node_modules/d3-array/src/bin.js +125 -0
- package/.output/server/node_modules/d3-array/src/bisect.js +9 -0
- package/.output/server/node_modules/d3-array/src/bisector.js +56 -0
- package/.output/server/node_modules/d3-array/src/blur.js +115 -0
- package/.output/server/node_modules/d3-array/src/constant.js +3 -0
- package/.output/server/node_modules/d3-array/src/count.js +18 -0
- package/.output/server/node_modules/d3-array/src/cross.js +33 -0
- package/.output/server/node_modules/d3-array/src/cumsum.js +6 -0
- package/.output/server/node_modules/d3-array/src/descending.js +7 -0
- package/.output/server/node_modules/d3-array/src/deviation.js +6 -0
- package/.output/server/node_modules/d3-array/src/difference.js +11 -0
- package/.output/server/node_modules/d3-array/src/disjoint.js +15 -0
- package/.output/server/node_modules/d3-array/src/every.js +10 -0
- package/.output/server/node_modules/d3-array/src/extent.js +29 -0
- package/.output/server/node_modules/d3-array/src/filter.js +11 -0
- package/.output/server/node_modules/d3-array/src/fsum.js +69 -0
- package/.output/server/node_modules/d3-array/src/greatest.js +29 -0
- package/.output/server/node_modules/d3-array/src/greatestIndex.js +19 -0
- package/.output/server/node_modules/d3-array/src/group.js +65 -0
- package/.output/server/node_modules/d3-array/src/groupSort.js +10 -0
- package/.output/server/node_modules/d3-array/src/identity.js +3 -0
- package/.output/server/node_modules/d3-array/src/index.js +57 -0
- package/.output/server/node_modules/d3-array/src/intersection.js +19 -0
- package/.output/server/node_modules/d3-array/src/least.js +29 -0
- package/.output/server/node_modules/d3-array/src/leastIndex.js +19 -0
- package/.output/server/node_modules/d3-array/src/map.js +5 -0
- package/.output/server/node_modules/d3-array/src/max.js +20 -0
- package/.output/server/node_modules/d3-array/src/maxIndex.js +22 -0
- package/.output/server/node_modules/d3-array/src/mean.js +19 -0
- package/.output/server/node_modules/d3-array/src/median.js +9 -0
- package/.output/server/node_modules/d3-array/src/merge.js +9 -0
- package/.output/server/node_modules/d3-array/src/min.js +20 -0
- package/.output/server/node_modules/d3-array/src/minIndex.js +22 -0
- package/.output/server/node_modules/d3-array/src/mode.js +28 -0
- package/.output/server/node_modules/d3-array/src/nice.js +18 -0
- package/.output/server/node_modules/d3-array/src/number.js +20 -0
- package/.output/server/node_modules/d3-array/src/pairs.js +15 -0
- package/.output/server/node_modules/d3-array/src/permute.js +3 -0
- package/.output/server/node_modules/d3-array/src/quantile.js +47 -0
- package/.output/server/node_modules/d3-array/src/quickselect.js +53 -0
- package/.output/server/node_modules/d3-array/src/range.js +13 -0
- package/.output/server/node_modules/d3-array/src/rank.js +24 -0
- package/.output/server/node_modules/d3-array/src/reduce.js +14 -0
- package/.output/server/node_modules/d3-array/src/reverse.js +4 -0
- package/.output/server/node_modules/d3-array/src/scan.js +6 -0
- package/.output/server/node_modules/d3-array/src/shuffle.js +13 -0
- package/.output/server/node_modules/d3-array/src/some.js +10 -0
- package/.output/server/node_modules/d3-array/src/sort.js +39 -0
- package/.output/server/node_modules/d3-array/src/subset.js +5 -0
- package/.output/server/node_modules/d3-array/src/sum.js +18 -0
- package/.output/server/node_modules/d3-array/src/superset.js +19 -0
- package/.output/server/node_modules/d3-array/src/threshold/freedmanDiaconis.js +7 -0
- package/.output/server/node_modules/d3-array/src/threshold/scott.js +7 -0
- package/.output/server/node_modules/d3-array/src/threshold/sturges.js +5 -0
- package/.output/server/node_modules/d3-array/src/ticks.js +55 -0
- package/.output/server/node_modules/d3-array/src/transpose.js +15 -0
- package/.output/server/node_modules/d3-array/src/union.js +11 -0
- package/.output/server/node_modules/d3-array/src/variance.js +25 -0
- package/.output/server/node_modules/d3-array/src/zip.js +5 -0
- package/.output/server/node_modules/d3-axis/package.json +54 -0
- package/.output/server/node_modules/d3-axis/src/axis.js +174 -0
- package/.output/server/node_modules/d3-axis/src/identity.js +3 -0
- package/.output/server/node_modules/d3-axis/src/index.js +6 -0
- package/.output/server/node_modules/d3-brush/package.json +55 -0
- package/.output/server/node_modules/d3-brush/src/brush.js +621 -0
- package/.output/server/node_modules/d3-brush/src/constant.js +1 -0
- package/.output/server/node_modules/d3-brush/src/event.js +16 -0
- package/.output/server/node_modules/d3-brush/src/index.js +6 -0
- package/.output/server/node_modules/d3-brush/src/noevent.js +8 -0
- package/.output/server/node_modules/d3-chord/package.json +54 -0
- package/.output/server/node_modules/d3-chord/src/array.js +1 -0
- package/.output/server/node_modules/d3-chord/src/chord.js +122 -0
- package/.output/server/node_modules/d3-chord/src/constant.js +5 -0
- package/.output/server/node_modules/d3-chord/src/index.js +2 -0
- package/.output/server/node_modules/d3-chord/src/math.js +8 -0
- package/.output/server/node_modules/d3-chord/src/ribbon.js +134 -0
- package/.output/server/node_modules/d3-color/package.json +54 -0
- package/.output/server/node_modules/d3-color/src/color.js +396 -0
- package/.output/server/node_modules/d3-color/src/cubehelix.js +61 -0
- package/.output/server/node_modules/d3-color/src/define.js +10 -0
- package/.output/server/node_modules/d3-color/src/index.js +3 -0
- package/.output/server/node_modules/d3-color/src/lab.js +123 -0
- package/.output/server/node_modules/d3-color/src/math.js +2 -0
- package/.output/server/node_modules/d3-contour/package.json +66 -0
- package/.output/server/node_modules/d3-contour/src/area.js +5 -0
- package/.output/server/node_modules/d3-contour/src/array.js +3 -0
- package/.output/server/node_modules/d3-contour/src/ascending.js +3 -0
- package/.output/server/node_modules/d3-contour/src/constant.js +1 -0
- package/.output/server/node_modules/d3-contour/src/contains.js +27 -0
- package/.output/server/node_modules/d3-contour/src/contours.js +225 -0
- package/.output/server/node_modules/d3-contour/src/density.js +149 -0
- package/.output/server/node_modules/d3-contour/src/index.js +2 -0
- package/.output/server/node_modules/d3-contour/src/noop.js +1 -0
- package/.output/server/node_modules/d3-delaunay/package.json +62 -0
- package/.output/server/node_modules/d3-delaunay/src/delaunay.js +248 -0
- package/.output/server/node_modules/d3-delaunay/src/index.js +2 -0
- package/.output/server/node_modules/d3-delaunay/src/path.js +37 -0
- package/.output/server/node_modules/d3-delaunay/src/polygon.js +17 -0
- package/.output/server/node_modules/d3-delaunay/src/voronoi.js +332 -0
- package/.output/server/node_modules/d3-dispatch/package.json +50 -0
- package/.output/server/node_modules/d3-dispatch/src/dispatch.js +84 -0
- package/.output/server/node_modules/d3-dispatch/src/index.js +1 -0
- package/.output/server/node_modules/d3-drag/package.json +54 -0
- package/.output/server/node_modules/d3-drag/src/constant.js +1 -0
- package/.output/server/node_modules/d3-drag/src/drag.js +194 -0
- package/.output/server/node_modules/d3-drag/src/event.js +28 -0
- package/.output/server/node_modules/d3-drag/src/index.js +2 -0
- package/.output/server/node_modules/d3-drag/src/nodrag.js +28 -0
- package/.output/server/node_modules/d3-drag/src/noevent.js +13 -0
- package/.output/server/node_modules/d3-dsv/package.json +68 -0
- package/.output/server/node_modules/d3-dsv/src/autoType.js +20 -0
- package/.output/server/node_modules/d3-dsv/src/csv.js +11 -0
- package/.output/server/node_modules/d3-dsv/src/dsv.js +164 -0
- package/.output/server/node_modules/d3-dsv/src/index.js +4 -0
- package/.output/server/node_modules/d3-dsv/src/tsv.js +11 -0
- package/.output/server/node_modules/d3-ease/package.json +51 -0
- package/.output/server/node_modules/d3-ease/src/back.js +37 -0
- package/.output/server/node_modules/d3-ease/src/bounce.js +22 -0
- package/.output/server/node_modules/d3-ease/src/circle.js +11 -0
- package/.output/server/node_modules/d3-ease/src/cubic.js +11 -0
- package/.output/server/node_modules/d3-ease/src/elastic.js +46 -0
- package/.output/server/node_modules/d3-ease/src/exp.js +13 -0
- package/.output/server/node_modules/d3-ease/src/index.js +66 -0
- package/.output/server/node_modules/d3-ease/src/linear.js +1 -0
- package/.output/server/node_modules/d3-ease/src/math.js +4 -0
- package/.output/server/node_modules/d3-ease/src/poly.js +37 -0
- package/.output/server/node_modules/d3-ease/src/quad.js +11 -0
- package/.output/server/node_modules/d3-ease/src/sin.js +14 -0
- package/.output/server/node_modules/d3-fetch/package.json +53 -0
- package/.output/server/node_modules/d3-fetch/src/blob.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/buffer.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/dsv.js +22 -0
- package/.output/server/node_modules/d3-fetch/src/image.js +9 -0
- package/.output/server/node_modules/d3-fetch/src/index.js +7 -0
- package/.output/server/node_modules/d3-fetch/src/json.js +9 -0
- package/.output/server/node_modules/d3-fetch/src/text.js +8 -0
- package/.output/server/node_modules/d3-fetch/src/xml.js +12 -0
- package/.output/server/node_modules/d3-force/package.json +58 -0
- package/.output/server/node_modules/d3-force/src/center.js +40 -0
- package/.output/server/node_modules/d3-force/src/collide.js +100 -0
- package/.output/server/node_modules/d3-force/src/constant.js +5 -0
- package/.output/server/node_modules/d3-force/src/index.js +8 -0
- package/.output/server/node_modules/d3-force/src/jiggle.js +3 -0
- package/.output/server/node_modules/d3-force/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-force/src/link.js +117 -0
- package/.output/server/node_modules/d3-force/src/manyBody.js +116 -0
- package/.output/server/node_modules/d3-force/src/radial.js +57 -0
- package/.output/server/node_modules/d3-force/src/simulation.js +156 -0
- package/.output/server/node_modules/d3-force/src/x.js +41 -0
- package/.output/server/node_modules/d3-force/src/y.js +41 -0
- package/.output/server/node_modules/d3-format/package.json +55 -0
- package/.output/server/node_modules/d3-format/src/defaultLocale.js +18 -0
- package/.output/server/node_modules/d3-format/src/exponent.js +5 -0
- package/.output/server/node_modules/d3-format/src/formatDecimal.js +20 -0
- package/.output/server/node_modules/d3-format/src/formatGroup.js +18 -0
- package/.output/server/node_modules/d3-format/src/formatNumerals.js +7 -0
- package/.output/server/node_modules/d3-format/src/formatPrefixAuto.js +16 -0
- package/.output/server/node_modules/d3-format/src/formatRounded.js +11 -0
- package/.output/server/node_modules/d3-format/src/formatSpecifier.js +47 -0
- package/.output/server/node_modules/d3-format/src/formatTrim.js +11 -0
- package/.output/server/node_modules/d3-format/src/formatTypes.js +19 -0
- package/.output/server/node_modules/d3-format/src/identity.js +3 -0
- package/.output/server/node_modules/d3-format/src/index.js +6 -0
- package/.output/server/node_modules/d3-format/src/locale.js +148 -0
- package/.output/server/node_modules/d3-format/src/precisionFixed.js +5 -0
- package/.output/server/node_modules/d3-format/src/precisionPrefix.js +5 -0
- package/.output/server/node_modules/d3-format/src/precisionRound.js +6 -0
- package/.output/server/node_modules/d3-geo/package.json +59 -0
- package/.output/server/node_modules/d3-geo/src/area.js +76 -0
- package/.output/server/node_modules/d3-geo/src/bounds.js +179 -0
- package/.output/server/node_modules/d3-geo/src/cartesian.js +33 -0
- package/.output/server/node_modules/d3-geo/src/centroid.js +143 -0
- package/.output/server/node_modules/d3-geo/src/circle.js +72 -0
- package/.output/server/node_modules/d3-geo/src/clip/antimeridian.js +92 -0
- package/.output/server/node_modules/d3-geo/src/clip/buffer.js +24 -0
- package/.output/server/node_modules/d3-geo/src/clip/circle.js +177 -0
- package/.output/server/node_modules/d3-geo/src/clip/extent.js +20 -0
- package/.output/server/node_modules/d3-geo/src/clip/index.js +131 -0
- package/.output/server/node_modules/d3-geo/src/clip/line.js +59 -0
- package/.output/server/node_modules/d3-geo/src/clip/rectangle.js +168 -0
- package/.output/server/node_modules/d3-geo/src/clip/rejoin.js +103 -0
- package/.output/server/node_modules/d3-geo/src/compose.js +12 -0
- package/.output/server/node_modules/d3-geo/src/constant.js +5 -0
- package/.output/server/node_modules/d3-geo/src/contains.js +97 -0
- package/.output/server/node_modules/d3-geo/src/distance.js +10 -0
- package/.output/server/node_modules/d3-geo/src/graticule.js +105 -0
- package/.output/server/node_modules/d3-geo/src/identity.js +1 -0
- package/.output/server/node_modules/d3-geo/src/index.js +34 -0
- package/.output/server/node_modules/d3-geo/src/interpolate.js +36 -0
- package/.output/server/node_modules/d3-geo/src/length.js +53 -0
- package/.output/server/node_modules/d3-geo/src/math.js +36 -0
- package/.output/server/node_modules/d3-geo/src/noop.js +1 -0
- package/.output/server/node_modules/d3-geo/src/path/area.js +50 -0
- package/.output/server/node_modules/d3-geo/src/path/bounds.js +28 -0
- package/.output/server/node_modules/d3-geo/src/path/centroid.js +100 -0
- package/.output/server/node_modules/d3-geo/src/path/context.js +45 -0
- package/.output/server/node_modules/d3-geo/src/path/index.js +76 -0
- package/.output/server/node_modules/d3-geo/src/path/measure.js +45 -0
- package/.output/server/node_modules/d3-geo/src/path/string.js +86 -0
- package/.output/server/node_modules/d3-geo/src/pointEqual.js +5 -0
- package/.output/server/node_modules/d3-geo/src/polygonContains.js +74 -0
- package/.output/server/node_modules/d3-geo/src/projection/albers.js +10 -0
- package/.output/server/node_modules/d3-geo/src/projection/albersUsa.js +111 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthal.js +27 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthalEqualArea.js +17 -0
- package/.output/server/node_modules/d3-geo/src/projection/azimuthalEquidistant.js +17 -0
- package/.output/server/node_modules/d3-geo/src/projection/conic.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicConformal.js +38 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicEqualArea.js +33 -0
- package/.output/server/node_modules/d3-geo/src/projection/conicEquidistant.js +32 -0
- package/.output/server/node_modules/d3-geo/src/projection/cylindricalEqualArea.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/equalEarth.js +36 -0
- package/.output/server/node_modules/d3-geo/src/projection/equirectangular.js +12 -0
- package/.output/server/node_modules/d3-geo/src/projection/fit.js +47 -0
- package/.output/server/node_modules/d3-geo/src/projection/gnomonic.js +16 -0
- package/.output/server/node_modules/d3-geo/src/projection/identity.js +85 -0
- package/.output/server/node_modules/d3-geo/src/projection/index.js +177 -0
- package/.output/server/node_modules/d3-geo/src/projection/mercator.js +52 -0
- package/.output/server/node_modules/d3-geo/src/projection/naturalEarth1.js +28 -0
- package/.output/server/node_modules/d3-geo/src/projection/orthographic.js +15 -0
- package/.output/server/node_modules/d3-geo/src/projection/resample.js +102 -0
- package/.output/server/node_modules/d3-geo/src/projection/stereographic.js +18 -0
- package/.output/server/node_modules/d3-geo/src/projection/transverseMercator.js +27 -0
- package/.output/server/node_modules/d3-geo/src/rotation.js +79 -0
- package/.output/server/node_modules/d3-geo/src/stream.js +69 -0
- package/.output/server/node_modules/d3-geo/src/transform.js +26 -0
- package/.output/server/node_modules/d3-hierarchy/package.json +56 -0
- package/.output/server/node_modules/d3-hierarchy/src/accessors.js +8 -0
- package/.output/server/node_modules/d3-hierarchy/src/array.js +20 -0
- package/.output/server/node_modules/d3-hierarchy/src/cluster.js +84 -0
- package/.output/server/node_modules/d3-hierarchy/src/constant.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/count.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/descendants.js +3 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/each.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +15 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/find.js +8 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/index.js +91 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/iterator.js +14 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/leaves.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/links.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/path.js +30 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/sort.js +7 -0
- package/.output/server/node_modules/d3-hierarchy/src/hierarchy/sum.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/index.js +15 -0
- package/.output/server/node_modules/d3-hierarchy/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/enclose.js +123 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/index.js +81 -0
- package/.output/server/node_modules/d3-hierarchy/src/pack/siblings.js +120 -0
- package/.output/server/node_modules/d3-hierarchy/src/partition.js +52 -0
- package/.output/server/node_modules/d3-hierarchy/src/stratify.js +145 -0
- package/.output/server/node_modules/d3-hierarchy/src/tree.js +237 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/binary.js +46 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/dice.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/index.js +94 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/resquarify.js +36 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/round.js +6 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/slice.js +12 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/sliceDice.js +6 -0
- package/.output/server/node_modules/d3-hierarchy/src/treemap/squarify.js +66 -0
- package/.output/server/node_modules/d3-interpolate/package.json +53 -0
- package/.output/server/node_modules/d3-interpolate/src/array.js +22 -0
- package/.output/server/node_modules/d3-interpolate/src/basis.js +19 -0
- package/.output/server/node_modules/d3-interpolate/src/basisClosed.js +13 -0
- package/.output/server/node_modules/d3-interpolate/src/color.js +29 -0
- package/.output/server/node_modules/d3-interpolate/src/constant.js +1 -0
- package/.output/server/node_modules/d3-interpolate/src/cubehelix.js +29 -0
- package/.output/server/node_modules/d3-interpolate/src/date.js +6 -0
- package/.output/server/node_modules/d3-interpolate/src/discrete.js +6 -0
- package/.output/server/node_modules/d3-interpolate/src/hcl.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/hsl.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/hue.js +9 -0
- package/.output/server/node_modules/d3-interpolate/src/index.js +21 -0
- package/.output/server/node_modules/d3-interpolate/src/lab.js +16 -0
- package/.output/server/node_modules/d3-interpolate/src/number.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/numberArray.js +14 -0
- package/.output/server/node_modules/d3-interpolate/src/object.js +23 -0
- package/.output/server/node_modules/d3-interpolate/src/piecewise.js +11 -0
- package/.output/server/node_modules/d3-interpolate/src/quantize.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/rgb.js +55 -0
- package/.output/server/node_modules/d3-interpolate/src/round.js +5 -0
- package/.output/server/node_modules/d3-interpolate/src/string.js +64 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/decompose.js +26 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/index.js +63 -0
- package/.output/server/node_modules/d3-interpolate/src/transform/parse.js +18 -0
- package/.output/server/node_modules/d3-interpolate/src/value.js +22 -0
- package/.output/server/node_modules/d3-interpolate/src/zoom.js +71 -0
- package/.output/server/node_modules/d3-path/package.json +54 -0
- package/.output/server/node_modules/d3-path/src/index.js +1 -0
- package/.output/server/node_modules/d3-path/src/path.js +156 -0
- package/.output/server/node_modules/d3-polygon/package.json +51 -0
- package/.output/server/node_modules/d3-polygon/src/area.js +15 -0
- package/.output/server/node_modules/d3-polygon/src/centroid.js +20 -0
- package/.output/server/node_modules/d3-polygon/src/contains.js +16 -0
- package/.output/server/node_modules/d3-polygon/src/cross.js +7 -0
- package/.output/server/node_modules/d3-polygon/src/hull.js +49 -0
- package/.output/server/node_modules/d3-polygon/src/index.js +5 -0
- package/.output/server/node_modules/d3-polygon/src/length.js +23 -0
- package/.output/server/node_modules/d3-quadtree/package.json +49 -0
- package/.output/server/node_modules/d3-quadtree/src/add.js +84 -0
- package/.output/server/node_modules/d3-quadtree/src/cover.js +43 -0
- package/.output/server/node_modules/d3-quadtree/src/data.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/extent.js +5 -0
- package/.output/server/node_modules/d3-quadtree/src/find.js +70 -0
- package/.output/server/node_modules/d3-quadtree/src/index.js +1 -0
- package/.output/server/node_modules/d3-quadtree/src/quad.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/quadtree.js +73 -0
- package/.output/server/node_modules/d3-quadtree/src/remove.js +62 -0
- package/.output/server/node_modules/d3-quadtree/src/root.js +3 -0
- package/.output/server/node_modules/d3-quadtree/src/size.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/visit.js +16 -0
- package/.output/server/node_modules/d3-quadtree/src/visitAfter.js +21 -0
- package/.output/server/node_modules/d3-quadtree/src/x.js +7 -0
- package/.output/server/node_modules/d3-quadtree/src/y.js +7 -0
- package/.output/server/node_modules/d3-random/package.json +51 -0
- package/.output/server/node_modules/d3-random/src/bates.js +19 -0
- package/.output/server/node_modules/d3-random/src/bernoulli.js +14 -0
- package/.output/server/node_modules/d3-random/src/beta.js +19 -0
- package/.output/server/node_modules/d3-random/src/binomial.js +38 -0
- package/.output/server/node_modules/d3-random/src/cauchy.js +15 -0
- package/.output/server/node_modules/d3-random/src/defaultSource.js +1 -0
- package/.output/server/node_modules/d3-random/src/exponential.js +13 -0
- package/.output/server/node_modules/d3-random/src/gamma.js +34 -0
- package/.output/server/node_modules/d3-random/src/geometric.js +17 -0
- package/.output/server/node_modules/d3-random/src/index.js +18 -0
- package/.output/server/node_modules/d3-random/src/int.js +16 -0
- package/.output/server/node_modules/d3-random/src/irwinHall.js +15 -0
- package/.output/server/node_modules/d3-random/src/lcg.js +9 -0
- package/.output/server/node_modules/d3-random/src/logNormal.js +17 -0
- package/.output/server/node_modules/d3-random/src/logistic.js +16 -0
- package/.output/server/node_modules/d3-random/src/normal.js +28 -0
- package/.output/server/node_modules/d3-random/src/pareto.js +15 -0
- package/.output/server/node_modules/d3-random/src/poisson.js +27 -0
- package/.output/server/node_modules/d3-random/src/uniform.js +17 -0
- package/.output/server/node_modules/d3-random/src/weibull.js +22 -0
- package/.output/server/node_modules/d3-scale/package.json +57 -0
- package/.output/server/node_modules/d3-scale/src/band.js +101 -0
- package/.output/server/node_modules/d3-scale/src/constant.js +5 -0
- package/.output/server/node_modules/d3-scale/src/continuous.js +125 -0
- package/.output/server/node_modules/d3-scale/src/diverging.js +104 -0
- package/.output/server/node_modules/d3-scale/src/identity.js +28 -0
- package/.output/server/node_modules/d3-scale/src/index.js +78 -0
- package/.output/server/node_modules/d3-scale/src/init.js +26 -0
- package/.output/server/node_modules/d3-scale/src/linear.js +70 -0
- package/.output/server/node_modules/d3-scale/src/log.js +140 -0
- package/.output/server/node_modules/d3-scale/src/nice.js +18 -0
- package/.output/server/node_modules/d3-scale/src/number.js +3 -0
- package/.output/server/node_modules/d3-scale/src/ordinal.js +46 -0
- package/.output/server/node_modules/d3-scale/src/pow.js +50 -0
- package/.output/server/node_modules/d3-scale/src/quantile.js +57 -0
- package/.output/server/node_modules/d3-scale/src/quantize.js +56 -0
- package/.output/server/node_modules/d3-scale/src/radial.js +63 -0
- package/.output/server/node_modules/d3-scale/src/sequential.js +107 -0
- package/.output/server/node_modules/d3-scale/src/sequentialQuantile.js +38 -0
- package/.output/server/node_modules/d3-scale/src/symlog.js +35 -0
- package/.output/server/node_modules/d3-scale/src/threshold.js +39 -0
- package/.output/server/node_modules/d3-scale/src/tickFormat.js +29 -0
- package/.output/server/node_modules/d3-scale/src/time.js +71 -0
- package/.output/server/node_modules/d3-scale/src/utcTime.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/package.json +55 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Accent.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Dark2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Paired.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Pastel1.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Pastel2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set1.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set2.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Set3.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/category10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/categorical/observable10.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/colors.js +5 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/BrBG.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PRGn.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PiYG.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/PuOr.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdBu.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdGy.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdYlBu.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/RdYlGn.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/diverging/Spectral.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/index.js +44 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/ramp.js +3 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/BuGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/BuPu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/GnBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/OrRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuBuGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/PuRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/RdPu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlGn.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlGnBu.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrBr.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/YlOrRd.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/cividis.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/cubehelix.js +4 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js +17 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/sinebow.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/turbo.js +8 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js +16 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Blues.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Greens.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Greys.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Oranges.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Purples.js +14 -0
- package/.output/server/node_modules/d3-scale-chromatic/src/sequential-single/Reds.js +14 -0
- package/.output/server/node_modules/d3-selection/package.json +51 -0
- package/.output/server/node_modules/d3-selection/src/array.js +9 -0
- package/.output/server/node_modules/d3-selection/src/constant.js +5 -0
- package/.output/server/node_modules/d3-selection/src/create.js +6 -0
- package/.output/server/node_modules/d3-selection/src/creator.js +25 -0
- package/.output/server/node_modules/d3-selection/src/index.js +15 -0
- package/.output/server/node_modules/d3-selection/src/local.js +27 -0
- package/.output/server/node_modules/d3-selection/src/matcher.js +12 -0
- package/.output/server/node_modules/d3-selection/src/namespace.js +7 -0
- package/.output/server/node_modules/d3-selection/src/namespaces.js +9 -0
- package/.output/server/node_modules/d3-selection/src/pointer.js +20 -0
- package/.output/server/node_modules/d3-selection/src/pointers.js +11 -0
- package/.output/server/node_modules/d3-selection/src/select.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selectAll.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/append.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/attr.js +57 -0
- package/.output/server/node_modules/d3-selection/src/selection/call.js +6 -0
- package/.output/server/node_modules/d3-selection/src/selection/classed.js +75 -0
- package/.output/server/node_modules/d3-selection/src/selection/clone.js +13 -0
- package/.output/server/node_modules/d3-selection/src/selection/data.js +128 -0
- package/.output/server/node_modules/d3-selection/src/selection/datum.js +5 -0
- package/.output/server/node_modules/d3-selection/src/selection/dispatch.js +34 -0
- package/.output/server/node_modules/d3-selection/src/selection/each.js +10 -0
- package/.output/server/node_modules/d3-selection/src/selection/empty.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/enter.js +22 -0
- package/.output/server/node_modules/d3-selection/src/selection/exit.js +6 -0
- package/.output/server/node_modules/d3-selection/src/selection/filter.js +16 -0
- package/.output/server/node_modules/d3-selection/src/selection/html.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selection/index.js +90 -0
- package/.output/server/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/.output/server/node_modules/d3-selection/src/selection/iterator.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/join.js +15 -0
- package/.output/server/node_modules/d3-selection/src/selection/lower.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/merge.js +19 -0
- package/.output/server/node_modules/d3-selection/src/selection/node.js +11 -0
- package/.output/server/node_modules/d3-selection/src/selection/nodes.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/on.js +67 -0
- package/.output/server/node_modules/d3-selection/src/selection/order.js +13 -0
- package/.output/server/node_modules/d3-selection/src/selection/property.js +28 -0
- package/.output/server/node_modules/d3-selection/src/selection/raise.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selection/remove.js +8 -0
- package/.output/server/node_modules/d3-selection/src/selection/select.js +17 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectAll.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectChild.js +18 -0
- package/.output/server/node_modules/d3-selection/src/selection/selectChildren.js +18 -0
- package/.output/server/node_modules/d3-selection/src/selection/size.js +5 -0
- package/.output/server/node_modules/d3-selection/src/selection/sort.js +24 -0
- package/.output/server/node_modules/d3-selection/src/selection/sparse.js +3 -0
- package/.output/server/node_modules/d3-selection/src/selection/style.js +35 -0
- package/.output/server/node_modules/d3-selection/src/selection/text.js +25 -0
- package/.output/server/node_modules/d3-selection/src/selector.js +7 -0
- package/.output/server/node_modules/d3-selection/src/selectorAll.js +9 -0
- package/.output/server/node_modules/d3-selection/src/sourceEvent.js +5 -0
- package/.output/server/node_modules/d3-selection/src/window.js +5 -0
- package/.output/server/node_modules/d3-shape/package.json +55 -0
- package/.output/server/node_modules/d3-shape/src/arc.js +268 -0
- package/.output/server/node_modules/d3-shape/src/area.js +112 -0
- package/.output/server/node_modules/d3-shape/src/areaRadial.js +29 -0
- package/.output/server/node_modules/d3-shape/src/array.js +7 -0
- package/.output/server/node_modules/d3-shape/src/constant.js +5 -0
- package/.output/server/node_modules/d3-shape/src/curve/basis.js +51 -0
- package/.output/server/node_modules/d3-shape/src/curve/basisClosed.js +52 -0
- package/.output/server/node_modules/d3-shape/src/curve/basisOpen.js +39 -0
- package/.output/server/node_modules/d3-shape/src/curve/bump.js +75 -0
- package/.output/server/node_modules/d3-shape/src/curve/bundle.js +56 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinal.js +61 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinalClosed.js +61 -0
- package/.output/server/node_modules/d3-shape/src/curve/cardinalOpen.js +49 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRom.js +88 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRomClosed.js +74 -0
- package/.output/server/node_modules/d3-shape/src/curve/catmullRomOpen.js +62 -0
- package/.output/server/node_modules/d3-shape/src/curve/linear.js +31 -0
- package/.output/server/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
- package/.output/server/node_modules/d3-shape/src/curve/monotone.js +104 -0
- package/.output/server/node_modules/d3-shape/src/curve/natural.js +65 -0
- package/.output/server/node_modules/d3-shape/src/curve/radial.js +36 -0
- package/.output/server/node_modules/d3-shape/src/curve/step.js +53 -0
- package/.output/server/node_modules/d3-shape/src/descending.js +3 -0
- package/.output/server/node_modules/d3-shape/src/identity.js +3 -0
- package/.output/server/node_modules/d3-shape/src/index.js +53 -0
- package/.output/server/node_modules/d3-shape/src/line.js +58 -0
- package/.output/server/node_modules/d3-shape/src/lineRadial.js +19 -0
- package/.output/server/node_modules/d3-shape/src/link.js +73 -0
- package/.output/server/node_modules/d3-shape/src/math.js +20 -0
- package/.output/server/node_modules/d3-shape/src/noop.js +1 -0
- package/.output/server/node_modules/d3-shape/src/offset/diverging.js +14 -0
- package/.output/server/node_modules/d3-shape/src/offset/expand.js +10 -0
- package/.output/server/node_modules/d3-shape/src/offset/none.js +9 -0
- package/.output/server/node_modules/d3-shape/src/offset/silhouette.js +10 -0
- package/.output/server/node_modules/d3-shape/src/offset/wiggle.js +24 -0
- package/.output/server/node_modules/d3-shape/src/order/appearance.js +12 -0
- package/.output/server/node_modules/d3-shape/src/order/ascending.js +12 -0
- package/.output/server/node_modules/d3-shape/src/order/descending.js +5 -0
- package/.output/server/node_modules/d3-shape/src/order/insideOut.js +27 -0
- package/.output/server/node_modules/d3-shape/src/order/none.js +5 -0
- package/.output/server/node_modules/d3-shape/src/order/reverse.js +5 -0
- package/.output/server/node_modules/d3-shape/src/path.js +19 -0
- package/.output/server/node_modules/d3-shape/src/pie.js +80 -0
- package/.output/server/node_modules/d3-shape/src/point.js +7 -0
- package/.output/server/node_modules/d3-shape/src/pointRadial.js +3 -0
- package/.output/server/node_modules/d3-shape/src/stack.js +58 -0
- package/.output/server/node_modules/d3-shape/src/symbol/asterisk.js +17 -0
- package/.output/server/node_modules/d3-shape/src/symbol/circle.js +9 -0
- package/.output/server/node_modules/d3-shape/src/symbol/cross.js +20 -0
- package/.output/server/node_modules/d3-shape/src/symbol/diamond.js +16 -0
- package/.output/server/node_modules/d3-shape/src/symbol/diamond2.js +12 -0
- package/.output/server/node_modules/d3-shape/src/symbol/plus.js +11 -0
- package/.output/server/node_modules/d3-shape/src/symbol/square.js +9 -0
- package/.output/server/node_modules/d3-shape/src/symbol/square2.js +12 -0
- package/.output/server/node_modules/d3-shape/src/symbol/star.js +24 -0
- package/.output/server/node_modules/d3-shape/src/symbol/times.js +11 -0
- package/.output/server/node_modules/d3-shape/src/symbol/triangle.js +13 -0
- package/.output/server/node_modules/d3-shape/src/symbol/triangle2.js +15 -0
- package/.output/server/node_modules/d3-shape/src/symbol/wye.js +25 -0
- package/.output/server/node_modules/d3-shape/src/symbol.js +66 -0
- package/.output/server/node_modules/d3-time/package.json +53 -0
- package/.output/server/node_modules/d3-time/src/day.js +35 -0
- package/.output/server/node_modules/d3-time/src/duration.js +7 -0
- package/.output/server/node_modules/d3-time/src/hour.js +26 -0
- package/.output/server/node_modules/d3-time/src/index.js +96 -0
- package/.output/server/node_modules/d3-time/src/interval.js +69 -0
- package/.output/server/node_modules/d3-time/src/millisecond.js +25 -0
- package/.output/server/node_modules/d3-time/src/minute.js +26 -0
- package/.output/server/node_modules/d3-time/src/month.js +27 -0
- package/.output/server/node_modules/d3-time/src/second.js +14 -0
- package/.output/server/node_modules/d3-time/src/ticks.js +58 -0
- package/.output/server/node_modules/d3-time/src/week.js +56 -0
- package/.output/server/node_modules/d3-time/src/year.js +49 -0
- package/.output/server/node_modules/d3-time-format/package.json +60 -0
- package/.output/server/node_modules/d3-time-format/src/defaultLocale.js +27 -0
- package/.output/server/node_modules/d3-time-format/src/index.js +4 -0
- package/.output/server/node_modules/d3-time-format/src/isoFormat.js +13 -0
- package/.output/server/node_modules/d3-time-format/src/isoParse.js +13 -0
- package/.output/server/node_modules/d3-time-format/src/locale.js +697 -0
- package/.output/server/node_modules/d3-timer/package.json +53 -0
- package/.output/server/node_modules/d3-timer/src/index.js +13 -0
- package/.output/server/node_modules/d3-timer/src/interval.js +17 -0
- package/.output/server/node_modules/d3-timer/src/timeout.js +11 -0
- package/.output/server/node_modules/d3-timer/src/timer.js +110 -0
- package/.output/server/node_modules/d3-transition/package.json +65 -0
- package/.output/server/node_modules/d3-transition/src/active.js +21 -0
- package/.output/server/node_modules/d3-transition/src/index.js +4 -0
- package/.output/server/node_modules/d3-transition/src/interrupt.js +24 -0
- package/.output/server/node_modules/d3-transition/src/selection/index.js +6 -0
- package/.output/server/node_modules/d3-transition/src/selection/interrupt.js +7 -0
- package/.output/server/node_modules/d3-transition/src/selection/transition.js +42 -0
- package/.output/server/node_modules/d3-transition/src/transition/attr.js +78 -0
- package/.output/server/node_modules/d3-transition/src/transition/attrTween.js +44 -0
- package/.output/server/node_modules/d3-transition/src/transition/delay.js +23 -0
- package/.output/server/node_modules/d3-transition/src/transition/duration.js +23 -0
- package/.output/server/node_modules/d3-transition/src/transition/ease.js +16 -0
- package/.output/server/node_modules/d3-transition/src/transition/easeVarying.js +14 -0
- package/.output/server/node_modules/d3-transition/src/transition/end.js +29 -0
- package/.output/server/node_modules/d3-transition/src/transition/filter.js +16 -0
- package/.output/server/node_modules/d3-transition/src/transition/index.js +73 -0
- package/.output/server/node_modules/d3-transition/src/transition/interpolate.js +10 -0
- package/.output/server/node_modules/d3-transition/src/transition/merge.js +19 -0
- package/.output/server/node_modules/d3-transition/src/transition/on.js +32 -0
- package/.output/server/node_modules/d3-transition/src/transition/remove.js +11 -0
- package/.output/server/node_modules/d3-transition/src/transition/schedule.js +153 -0
- package/.output/server/node_modules/d3-transition/src/transition/select.js +22 -0
- package/.output/server/node_modules/d3-transition/src/transition/selectAll.js +26 -0
- package/.output/server/node_modules/d3-transition/src/transition/selection.js +7 -0
- package/.output/server/node_modules/d3-transition/src/transition/style.js +80 -0
- package/.output/server/node_modules/d3-transition/src/transition/styleTween.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/text.js +20 -0
- package/.output/server/node_modules/d3-transition/src/transition/textTween.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/transition.js +24 -0
- package/.output/server/node_modules/d3-transition/src/transition/tween.js +81 -0
- package/.output/server/node_modules/d3-zoom/package.json +57 -0
- package/.output/server/node_modules/d3-zoom/src/constant.js +1 -0
- package/.output/server/node_modules/d3-zoom/src/event.js +14 -0
- package/.output/server/node_modules/d3-zoom/src/index.js +2 -0
- package/.output/server/node_modules/d3-zoom/src/noevent.js +8 -0
- package/.output/server/node_modules/d3-zoom/src/transform.js +51 -0
- package/.output/server/node_modules/d3-zoom/src/zoom.js +447 -0
- package/.output/server/node_modules/defu/dist/defu.mjs +69 -0
- package/.output/server/node_modules/defu/package.json +43 -0
- package/.output/server/node_modules/delaunator/index.js +480 -0
- package/.output/server/node_modules/delaunator/package.json +56 -0
- package/.output/server/node_modules/destr/dist/index.mjs +72 -0
- package/.output/server/node_modules/destr/package.json +47 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +205 -0
- package/.output/server/node_modules/devalue/src/stringify.js +265 -0
- package/.output/server/node_modules/devalue/src/uneval.js +407 -0
- package/.output/server/node_modules/devalue/src/utils.js +118 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +113 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/file-uri-to-path/index.js +66 -0
- package/.output/server/node_modules/file-uri-to-path/package.json +32 -0
- package/.output/server/node_modules/h3/dist/index.mjs +2478 -0
- package/.output/server/node_modules/h3/package.json +75 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +290 -0
- package/.output/server/node_modules/hookable/package.json +49 -0
- package/.output/server/node_modules/internmap/package.json +43 -0
- package/.output/server/node_modules/internmap/src/index.js +61 -0
- package/.output/server/node_modules/iron-webcrypto/dist/index.js +298 -0
- package/.output/server/node_modules/iron-webcrypto/package.json +72 -0
- package/.output/server/node_modules/marked/lib/marked.esm.js +72 -0
- package/.output/server/node_modules/marked/package.json +103 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/buffer/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/_polyfill/events/node.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/dist/index.mjs +1 -0
- package/.output/server/node_modules/node-mock-http/package.json +63 -0
- package/.output/server/node_modules/radix3/dist/index.mjs +262 -0
- package/.output/server/node_modules/radix3/package.json +52 -0
- package/.output/server/node_modules/robust-predicates/esm/incircle.js +765 -0
- package/.output/server/node_modules/robust-predicates/esm/insphere.js +766 -0
- package/.output/server/node_modules/robust-predicates/esm/orient2d.js +184 -0
- package/.output/server/node_modules/robust-predicates/esm/orient3d.js +462 -0
- package/.output/server/node_modules/robust-predicates/esm/util.js +138 -0
- package/.output/server/node_modules/robust-predicates/index.js +5 -0
- package/.output/server/node_modules/robust-predicates/package.json +75 -0
- package/.output/server/node_modules/sortablejs/Sortable.min.js +2 -0
- package/.output/server/node_modules/sortablejs/package.json +56 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +638 -0
- package/.output/server/node_modules/ufo/package.json +47 -0
- package/.output/server/node_modules/uncrypto/dist/crypto.node.mjs +16 -0
- package/.output/server/node_modules/uncrypto/package.json +60 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.B578PsDV.mjs +266 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGCfDSEL.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CYpwL2hc.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-devtools-stub/dist/index.mjs +11 -0
- package/.output/server/node_modules/vue-devtools-stub/package.json +41 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/vuedraggable/dist/vuedraggable.umd.min.js +2 -0
- package/.output/server/node_modules/vuedraggable/package.json +97 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +97 -0
- package/.output/server/package.json +90 -0
- package/README.md +396 -117
- package/bin/autocode +2337 -1
- package/package.json +61 -23
- package/templates/prompts/ready.en.md +29 -0
- package/templates/prompts/ready.fr.md +29 -0
- package/dist/cli/commands/comment.d.ts +0 -9
- package/dist/cli/commands/comment.d.ts.map +0 -1
- package/dist/cli/commands/comment.js +0 -40
- package/dist/cli/commands/comment.js.map +0 -1
- package/dist/cli/commands/health.d.ts +0 -9
- package/dist/cli/commands/health.d.ts.map +0 -1
- package/dist/cli/commands/health.js +0 -101
- package/dist/cli/commands/health.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -9
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -63
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/list.d.ts +0 -9
- package/dist/cli/commands/list.d.ts.map +0 -1
- package/dist/cli/commands/list.js +0 -121
- package/dist/cli/commands/list.js.map +0 -1
- package/dist/cli/commands/move.d.ts +0 -9
- package/dist/cli/commands/move.d.ts.map +0 -1
- package/dist/cli/commands/move.js +0 -66
- package/dist/cli/commands/move.js.map +0 -1
- package/dist/cli/commands/new.d.ts +0 -9
- package/dist/cli/commands/new.d.ts.map +0 -1
- package/dist/cli/commands/new.js +0 -105
- package/dist/cli/commands/new.js.map +0 -1
- package/dist/cli/commands/next.d.ts +0 -9
- package/dist/cli/commands/next.d.ts.map +0 -1
- package/dist/cli/commands/next.js +0 -46
- package/dist/cli/commands/next.js.map +0 -1
- package/dist/cli/commands/parent.d.ts +0 -9
- package/dist/cli/commands/parent.d.ts.map +0 -1
- package/dist/cli/commands/parent.js +0 -94
- package/dist/cli/commands/parent.js.map +0 -1
- package/dist/cli/commands/pipeline.d.ts +0 -9
- package/dist/cli/commands/pipeline.d.ts.map +0 -1
- package/dist/cli/commands/pipeline.js +0 -68
- package/dist/cli/commands/pipeline.js.map +0 -1
- package/dist/cli/commands/pipeline.test.d.ts +0 -5
- package/dist/cli/commands/pipeline.test.d.ts.map +0 -1
- package/dist/cli/commands/pipeline.test.js +0 -171
- package/dist/cli/commands/pipeline.test.js.map +0 -1
- package/dist/cli/commands/serve.d.ts +0 -9
- package/dist/cli/commands/serve.d.ts.map +0 -1
- package/dist/cli/commands/serve.js +0 -249
- package/dist/cli/commands/serve.js.map +0 -1
- package/dist/cli/commands/show.d.ts +0 -9
- package/dist/cli/commands/show.d.ts.map +0 -1
- package/dist/cli/commands/show.js +0 -111
- package/dist/cli/commands/show.js.map +0 -1
- package/dist/cli/commands/stats.d.ts +0 -9
- package/dist/cli/commands/stats.d.ts.map +0 -1
- package/dist/cli/commands/stats.js +0 -108
- package/dist/cli/commands/stats.js.map +0 -1
- package/dist/cli/commands/sync.d.ts +0 -9
- package/dist/cli/commands/sync.d.ts.map +0 -1
- package/dist/cli/commands/sync.js +0 -91
- package/dist/cli/commands/sync.js.map +0 -1
- package/dist/cli/commands/tunnel.d.ts +0 -9
- package/dist/cli/commands/tunnel.d.ts.map +0 -1
- package/dist/cli/commands/tunnel.js +0 -90
- package/dist/cli/commands/tunnel.js.map +0 -1
- package/dist/cli/parser.d.ts +0 -13
- package/dist/cli/parser.d.ts.map +0 -1
- package/dist/cli/parser.js +0 -67
- package/dist/cli/parser.js.map +0 -1
- package/dist/core/catalog.d.ts +0 -52
- package/dist/core/catalog.d.ts.map +0 -1
- package/dist/core/catalog.js +0 -102
- package/dist/core/catalog.js.map +0 -1
- package/dist/core/column.d.ts +0 -50
- package/dist/core/column.d.ts.map +0 -1
- package/dist/core/column.js +0 -134
- package/dist/core/column.js.map +0 -1
- package/dist/core/config.d.ts +0 -20
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/config.js +0 -54
- package/dist/core/config.js.map +0 -1
- package/dist/core/features.d.ts +0 -24
- package/dist/core/features.d.ts.map +0 -1
- package/dist/core/features.js +0 -33
- package/dist/core/features.js.map +0 -1
- package/dist/core/hierarchy.d.ts +0 -121
- package/dist/core/hierarchy.d.ts.map +0 -1
- package/dist/core/hierarchy.js +0 -350
- package/dist/core/hierarchy.js.map +0 -1
- package/dist/core/implementations/FilesystemIssueRepository.d.ts +0 -18
- package/dist/core/implementations/FilesystemIssueRepository.d.ts.map +0 -1
- package/dist/core/implementations/FilesystemIssueRepository.js +0 -149
- package/dist/core/implementations/FilesystemIssueRepository.js.map +0 -1
- package/dist/core/interfaces/IHierarchyService.d.ts +0 -32
- package/dist/core/interfaces/IHierarchyService.d.ts.map +0 -1
- package/dist/core/interfaces/IHierarchyService.js +0 -2
- package/dist/core/interfaces/IHierarchyService.js.map +0 -1
- package/dist/core/interfaces/IIssueRepository.d.ts +0 -55
- package/dist/core/interfaces/IIssueRepository.d.ts.map +0 -1
- package/dist/core/interfaces/IIssueRepository.js +0 -2
- package/dist/core/interfaces/IIssueRepository.js.map +0 -1
- package/dist/core/interfaces/IPipelineService.d.ts +0 -38
- package/dist/core/interfaces/IPipelineService.d.ts.map +0 -1
- package/dist/core/interfaces/IPipelineService.js +0 -2
- package/dist/core/interfaces/IPipelineService.js.map +0 -1
- package/dist/core/interfaces/IWorkflowService.d.ts +0 -38
- package/dist/core/interfaces/IWorkflowService.d.ts.map +0 -1
- package/dist/core/interfaces/IWorkflowService.js +0 -2
- package/dist/core/interfaces/IWorkflowService.js.map +0 -1
- package/dist/core/interfaces/index.d.ts +0 -5
- package/dist/core/interfaces/index.d.ts.map +0 -1
- package/dist/core/interfaces/index.js +0 -2
- package/dist/core/interfaces/index.js.map +0 -1
- package/dist/core/issue.d.ts +0 -62
- package/dist/core/issue.d.ts.map +0 -1
- package/dist/core/issue.js +0 -255
- package/dist/core/issue.js.map +0 -1
- package/dist/core/loop-detector.d.ts +0 -45
- package/dist/core/loop-detector.d.ts.map +0 -1
- package/dist/core/loop-detector.js +0 -81
- package/dist/core/loop-detector.js.map +0 -1
- package/dist/core/pipeline.d.ts +0 -70
- package/dist/core/pipeline.d.ts.map +0 -1
- package/dist/core/pipeline.js +0 -199
- package/dist/core/pipeline.js.map +0 -1
- package/dist/core/sync.d.ts +0 -41
- package/dist/core/sync.d.ts.map +0 -1
- package/dist/core/sync.js +0 -272
- package/dist/core/sync.js.map +0 -1
- package/dist/core/validation.d.ts +0 -26
- package/dist/core/validation.d.ts.map +0 -1
- package/dist/core/validation.js +0 -67
- package/dist/core/validation.js.map +0 -1
- package/dist/core/workflow.d.ts +0 -68
- package/dist/core/workflow.d.ts.map +0 -1
- package/dist/core/workflow.js +0 -226
- package/dist/core/workflow.js.map +0 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
- package/dist/server/api-autocomplete.test.d.ts +0 -6
- package/dist/server/api-autocomplete.test.d.ts.map +0 -1
- package/dist/server/api-autocomplete.test.js +0 -249
- package/dist/server/api-autocomplete.test.js.map +0 -1
- package/dist/server/api.d.ts +0 -9
- package/dist/server/api.d.ts.map +0 -1
- package/dist/server/api.js +0 -1377
- package/dist/server/api.js.map +0 -1
- package/dist/server/dashboard/index.d.ts +0 -10
- package/dist/server/dashboard/index.d.ts.map +0 -1
- package/dist/server/dashboard/index.js +0 -16
- package/dist/server/dashboard/index.js.map +0 -1
- package/dist/server/dashboard/pages/autocreate.d.ts +0 -9
- package/dist/server/dashboard/pages/autocreate.d.ts.map +0 -1
- package/dist/server/dashboard/pages/autocreate.js +0 -854
- package/dist/server/dashboard/pages/autocreate.js.map +0 -1
- package/dist/server/dashboard/pages/changelog.d.ts +0 -9
- package/dist/server/dashboard/pages/changelog.d.ts.map +0 -1
- package/dist/server/dashboard/pages/changelog.js +0 -160
- package/dist/server/dashboard/pages/changelog.js.map +0 -1
- package/dist/server/dashboard/pages/column-edit.d.ts +0 -8
- package/dist/server/dashboard/pages/column-edit.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-edit.js +0 -303
- package/dist/server/dashboard/pages/column-edit.js.map +0 -1
- package/dist/server/dashboard/pages/column-prompt.d.ts +0 -8
- package/dist/server/dashboard/pages/column-prompt.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-prompt.js +0 -249
- package/dist/server/dashboard/pages/column-prompt.js.map +0 -1
- package/dist/server/dashboard/pages/column-terminal.d.ts +0 -8
- package/dist/server/dashboard/pages/column-terminal.d.ts.map +0 -1
- package/dist/server/dashboard/pages/column-terminal.js +0 -550
- package/dist/server/dashboard/pages/column-terminal.js.map +0 -1
- package/dist/server/dashboard/pages/index.d.ts +0 -21
- package/dist/server/dashboard/pages/index.d.ts.map +0 -1
- package/dist/server/dashboard/pages/index.js +0 -21
- package/dist/server/dashboard/pages/index.js.map +0 -1
- package/dist/server/dashboard/pages/issue-comments.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-comments.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-comments.js +0 -283
- package/dist/server/dashboard/pages/issue-comments.js.map +0 -1
- package/dist/server/dashboard/pages/issue-graph.d.ts +0 -9
- package/dist/server/dashboard/pages/issue-graph.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-graph.js +0 -629
- package/dist/server/dashboard/pages/issue-graph.js.map +0 -1
- package/dist/server/dashboard/pages/issue-history.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-history.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-history.js +0 -149
- package/dist/server/dashboard/pages/issue-history.js.map +0 -1
- package/dist/server/dashboard/pages/issue-shared.d.ts +0 -27
- package/dist/server/dashboard/pages/issue-shared.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-shared.js +0 -297
- package/dist/server/dashboard/pages/issue-shared.js.map +0 -1
- package/dist/server/dashboard/pages/issue-terminal.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-terminal.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-terminal.js +0 -363
- package/dist/server/dashboard/pages/issue-terminal.js.map +0 -1
- package/dist/server/dashboard/pages/issue-view.d.ts +0 -8
- package/dist/server/dashboard/pages/issue-view.d.ts.map +0 -1
- package/dist/server/dashboard/pages/issue-view.js +0 -386
- package/dist/server/dashboard/pages/issue-view.js.map +0 -1
- package/dist/server/dashboard/pages/main-dashboard.d.ts +0 -11
- package/dist/server/dashboard/pages/main-dashboard.d.ts.map +0 -1
- package/dist/server/dashboard/pages/main-dashboard.js +0 -228
- package/dist/server/dashboard/pages/main-dashboard.js.map +0 -1
- package/dist/server/dashboard/pages/new-issue.d.ts +0 -8
- package/dist/server/dashboard/pages/new-issue.d.ts.map +0 -1
- package/dist/server/dashboard/pages/new-issue.js +0 -898
- package/dist/server/dashboard/pages/new-issue.js.map +0 -1
- package/dist/server/dashboard/pages/new-issue.test.d.ts +0 -6
- package/dist/server/dashboard/pages/new-issue.test.d.ts.map +0 -1
- package/dist/server/dashboard/pages/new-issue.test.js +0 -824
- package/dist/server/dashboard/pages/new-issue.test.js.map +0 -1
- package/dist/server/dashboard/pages/pipeline-configurator.d.ts +0 -8
- package/dist/server/dashboard/pages/pipeline-configurator.d.ts.map +0 -1
- package/dist/server/dashboard/pages/pipeline-configurator.js +0 -1783
- package/dist/server/dashboard/pages/pipeline-configurator.js.map +0 -1
- package/dist/server/dashboard/pages/shared.d.ts +0 -8
- package/dist/server/dashboard/pages/shared.d.ts.map +0 -1
- package/dist/server/dashboard/pages/shared.js +0 -58
- package/dist/server/dashboard/pages/shared.js.map +0 -1
- package/dist/server/dashboard/pages/stats-page.d.ts +0 -8
- package/dist/server/dashboard/pages/stats-page.d.ts.map +0 -1
- package/dist/server/dashboard/pages/stats-page.js +0 -558
- package/dist/server/dashboard/pages/stats-page.js.map +0 -1
- package/dist/server/dashboard/pages/water-quality-form.d.ts +0 -10
- package/dist/server/dashboard/pages/water-quality-form.d.ts.map +0 -1
- package/dist/server/dashboard/pages/water-quality-form.js +0 -910
- package/dist/server/dashboard/pages/water-quality-form.js.map +0 -1
- package/dist/server/dashboard/scripts/index.d.ts +0 -11
- package/dist/server/dashboard/scripts/index.d.ts.map +0 -1
- package/dist/server/dashboard/scripts/index.js +0 -1278
- package/dist/server/dashboard/scripts/index.js.map +0 -1
- package/dist/server/dashboard/shared/header.d.ts +0 -88
- package/dist/server/dashboard/shared/header.d.ts.map +0 -1
- package/dist/server/dashboard/shared/header.js +0 -209
- package/dist/server/dashboard/shared/header.js.map +0 -1
- package/dist/server/dashboard/shared/i18n-script.d.ts +0 -45
- package/dist/server/dashboard/shared/i18n-script.d.ts.map +0 -1
- package/dist/server/dashboard/shared/i18n-script.js +0 -204
- package/dist/server/dashboard/shared/i18n-script.js.map +0 -1
- package/dist/server/dashboard/shared/index.d.ts +0 -19
- package/dist/server/dashboard/shared/index.d.ts.map +0 -1
- package/dist/server/dashboard/shared/index.js +0 -22
- package/dist/server/dashboard/shared/index.js.map +0 -1
- package/dist/server/dashboard/shared/translations.d.ts +0 -515
- package/dist/server/dashboard/shared/translations.d.ts.map +0 -1
- package/dist/server/dashboard/shared/translations.js +0 -591
- package/dist/server/dashboard/shared/translations.js.map +0 -1
- package/dist/server/dashboard/styles/base.d.ts +0 -5
- package/dist/server/dashboard/styles/base.d.ts.map +0 -1
- package/dist/server/dashboard/styles/base.js +0 -130
- package/dist/server/dashboard/styles/base.js.map +0 -1
- package/dist/server/dashboard/styles/board.d.ts +0 -5
- package/dist/server/dashboard/styles/board.d.ts.map +0 -1
- package/dist/server/dashboard/styles/board.js +0 -168
- package/dist/server/dashboard/styles/board.js.map +0 -1
- package/dist/server/dashboard/styles/comments.d.ts +0 -5
- package/dist/server/dashboard/styles/comments.d.ts.map +0 -1
- package/dist/server/dashboard/styles/comments.js +0 -249
- package/dist/server/dashboard/styles/comments.js.map +0 -1
- package/dist/server/dashboard/styles/components.d.ts +0 -5
- package/dist/server/dashboard/styles/components.d.ts.map +0 -1
- package/dist/server/dashboard/styles/components.js +0 -360
- package/dist/server/dashboard/styles/components.js.map +0 -1
- package/dist/server/dashboard/styles/footer.d.ts +0 -5
- package/dist/server/dashboard/styles/footer.d.ts.map +0 -1
- package/dist/server/dashboard/styles/footer.js +0 -40
- package/dist/server/dashboard/styles/footer.js.map +0 -1
- package/dist/server/dashboard/styles/index.d.ts +0 -8
- package/dist/server/dashboard/styles/index.d.ts.map +0 -1
- package/dist/server/dashboard/styles/index.js +0 -27
- package/dist/server/dashboard/styles/index.js.map +0 -1
- package/dist/server/dashboard/styles/logs.d.ts +0 -5
- package/dist/server/dashboard/styles/logs.d.ts.map +0 -1
- package/dist/server/dashboard/styles/logs.js +0 -89
- package/dist/server/dashboard/styles/logs.js.map +0 -1
- package/dist/server/dashboard/styles/notifications.d.ts +0 -5
- package/dist/server/dashboard/styles/notifications.d.ts.map +0 -1
- package/dist/server/dashboard/styles/notifications.js +0 -51
- package/dist/server/dashboard/styles/notifications.js.map +0 -1
- package/dist/server/dashboard/styles/variables.d.ts +0 -5
- package/dist/server/dashboard/styles/variables.d.ts.map +0 -1
- package/dist/server/dashboard/styles/variables.js +0 -29
- package/dist/server/dashboard/styles/variables.js.map +0 -1
- package/dist/server/dashboard/utils.d.ts +0 -8
- package/dist/server/dashboard/utils.d.ts.map +0 -1
- package/dist/server/dashboard/utils.js +0 -14
- package/dist/server/dashboard/utils.js.map +0 -1
- package/dist/server/dashboard.d.ts +0 -8
- package/dist/server/dashboard.d.ts.map +0 -1
- package/dist/server/dashboard.js +0 -8
- package/dist/server/dashboard.js.map +0 -1
- package/dist/server/index.d.ts +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -274
- package/dist/server/index.js.map +0 -1
- package/dist/server/watcher.d.ts +0 -13
- package/dist/server/watcher.d.ts.map +0 -1
- package/dist/server/watcher.js +0 -62
- package/dist/server/watcher.js.map +0 -1
- package/dist/server/websocket.d.ts +0 -46
- package/dist/server/websocket.d.ts.map +0 -1
- package/dist/server/websocket.js +0 -204
- package/dist/server/websocket.js.map +0 -1
- package/dist/services/autocreate.d.ts +0 -34
- package/dist/services/autocreate.d.ts.map +0 -1
- package/dist/services/autocreate.js +0 -503
- package/dist/services/autocreate.js.map +0 -1
- package/dist/services/claude.d.ts +0 -79
- package/dist/services/claude.d.ts.map +0 -1
- package/dist/services/claude.js +0 -519
- package/dist/services/claude.js.map +0 -1
- package/dist/services/issue-io.d.ts +0 -81
- package/dist/services/issue-io.d.ts.map +0 -1
- package/dist/services/issue-io.js +0 -249
- package/dist/services/issue-io.js.map +0 -1
- package/dist/services/monitoring.d.ts +0 -47
- package/dist/services/monitoring.d.ts.map +0 -1
- package/dist/services/monitoring.js +0 -136
- package/dist/services/monitoring.js.map +0 -1
- package/dist/services/stats.d.ts +0 -58
- package/dist/services/stats.d.ts.map +0 -1
- package/dist/services/stats.js +0 -196
- package/dist/services/stats.js.map +0 -1
- package/dist/types/index.d.ts +0 -213
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/index.js.map +0 -1
- package/dist/utils/config.d.ts +0 -101
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/config.js +0 -98
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/fs.d.ts +0 -60
- package/dist/utils/fs.d.ts.map +0 -1
- package/dist/utils/fs.js +0 -129
- package/dist/utils/fs.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -23
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -56
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/tunnel.d.ts +0 -62
- package/dist/utils/tunnel.d.ts.map +0 -1
- package/dist/utils/tunnel.js +0 -240
- package/dist/utils/tunnel.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -26
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js +0 -234
- package/dist/utils/version-check.js.map +0 -1
|
@@ -0,0 +1,1530 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* message-compiler v11.2.8
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { format, assign, join, isString } from '@intlify/shared';
|
|
7
|
+
|
|
8
|
+
const LOCATION_STUB = {
|
|
9
|
+
start: { line: 1, column: 1, offset: 0 },
|
|
10
|
+
end: { line: 1, column: 1, offset: 0 }
|
|
11
|
+
};
|
|
12
|
+
function createPosition(line, column, offset) {
|
|
13
|
+
return { line, column, offset };
|
|
14
|
+
}
|
|
15
|
+
function createLocation(start, end, source) {
|
|
16
|
+
const loc = { start, end };
|
|
17
|
+
if (source != null) {
|
|
18
|
+
loc.source = source;
|
|
19
|
+
}
|
|
20
|
+
return loc;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const CompileErrorCodes = {
|
|
24
|
+
// tokenizer error codes
|
|
25
|
+
EXPECTED_TOKEN: 1,
|
|
26
|
+
INVALID_TOKEN_IN_PLACEHOLDER: 2,
|
|
27
|
+
UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
|
|
28
|
+
UNKNOWN_ESCAPE_SEQUENCE: 4,
|
|
29
|
+
INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
|
|
30
|
+
UNBALANCED_CLOSING_BRACE: 6,
|
|
31
|
+
UNTERMINATED_CLOSING_BRACE: 7,
|
|
32
|
+
EMPTY_PLACEHOLDER: 8,
|
|
33
|
+
NOT_ALLOW_NEST_PLACEHOLDER: 9,
|
|
34
|
+
INVALID_LINKED_FORMAT: 10,
|
|
35
|
+
// parser error codes
|
|
36
|
+
MUST_HAVE_MESSAGES_IN_PLURAL: 11,
|
|
37
|
+
UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
|
|
38
|
+
UNEXPECTED_EMPTY_LINKED_KEY: 13,
|
|
39
|
+
UNEXPECTED_LEXICAL_ANALYSIS: 14,
|
|
40
|
+
// generator error codes
|
|
41
|
+
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
42
|
+
// minifier error codes
|
|
43
|
+
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
44
|
+
};
|
|
45
|
+
// Special value for higher-order compilers to pick up the last code
|
|
46
|
+
// to avoid collision of error codes.
|
|
47
|
+
// This should always be kept as the last item.
|
|
48
|
+
const COMPILE_ERROR_CODES_EXTEND_POINT = 17;
|
|
49
|
+
/** @internal */
|
|
50
|
+
const errorMessages = {
|
|
51
|
+
// tokenizer error messages
|
|
52
|
+
[CompileErrorCodes.EXPECTED_TOKEN]: `Expected token: '{0}'`,
|
|
53
|
+
[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]: `Invalid token in placeholder: '{0}'`,
|
|
54
|
+
[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: `Unterminated single quote in placeholder`,
|
|
55
|
+
[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]: `Unknown escape sequence: \\{0}`,
|
|
56
|
+
[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]: `Invalid unicode escape sequence: {0}`,
|
|
57
|
+
[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]: `Unbalanced closing brace`,
|
|
58
|
+
[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]: `Unterminated closing brace`,
|
|
59
|
+
[CompileErrorCodes.EMPTY_PLACEHOLDER]: `Empty placeholder`,
|
|
60
|
+
[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]: `Not allowed nest placeholder`,
|
|
61
|
+
[CompileErrorCodes.INVALID_LINKED_FORMAT]: `Invalid linked format`,
|
|
62
|
+
// parser error messages
|
|
63
|
+
[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]: `Plural must have messages`,
|
|
64
|
+
[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]: `Unexpected empty linked modifier`,
|
|
65
|
+
[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]: `Unexpected empty linked key`,
|
|
66
|
+
[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]: `Unexpected lexical analysis in token: '{0}'`,
|
|
67
|
+
// generator error messages
|
|
68
|
+
[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]: `unhandled codegen node type: '{0}'`,
|
|
69
|
+
// minimizer error messages
|
|
70
|
+
[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]: `unhandled mimifier node type: '{0}'`
|
|
71
|
+
};
|
|
72
|
+
function createCompileError(code, loc, options = {}) {
|
|
73
|
+
const { domain, messages, args } = options;
|
|
74
|
+
const msg = (process.env.NODE_ENV !== 'production')
|
|
75
|
+
? format((messages || errorMessages)[code] || '', ...(args || []))
|
|
76
|
+
: code;
|
|
77
|
+
const error = new SyntaxError(String(msg));
|
|
78
|
+
error.code = code;
|
|
79
|
+
if (loc) {
|
|
80
|
+
error.location = loc;
|
|
81
|
+
}
|
|
82
|
+
error.domain = domain;
|
|
83
|
+
return error;
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
function defaultOnError(error) {
|
|
87
|
+
throw error;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// eslint-disable-next-line no-useless-escape
|
|
91
|
+
const RE_HTML_TAG = /<\/?[\w\s="/.':;#-\/]+>/;
|
|
92
|
+
const detectHtmlTag = (source) => RE_HTML_TAG.test(source);
|
|
93
|
+
|
|
94
|
+
const CHAR_SP = ' ';
|
|
95
|
+
const CHAR_CR = '\r';
|
|
96
|
+
const CHAR_LF = '\n';
|
|
97
|
+
const CHAR_LS = String.fromCharCode(0x2028);
|
|
98
|
+
const CHAR_PS = String.fromCharCode(0x2029);
|
|
99
|
+
function createScanner(str) {
|
|
100
|
+
const _buf = str;
|
|
101
|
+
let _index = 0;
|
|
102
|
+
let _line = 1;
|
|
103
|
+
let _column = 1;
|
|
104
|
+
let _peekOffset = 0;
|
|
105
|
+
const isCRLF = (index) => _buf[index] === CHAR_CR && _buf[index + 1] === CHAR_LF;
|
|
106
|
+
const isLF = (index) => _buf[index] === CHAR_LF;
|
|
107
|
+
const isPS = (index) => _buf[index] === CHAR_PS;
|
|
108
|
+
const isLS = (index) => _buf[index] === CHAR_LS;
|
|
109
|
+
const isLineEnd = (index) => isCRLF(index) || isLF(index) || isPS(index) || isLS(index);
|
|
110
|
+
const index = () => _index;
|
|
111
|
+
const line = () => _line;
|
|
112
|
+
const column = () => _column;
|
|
113
|
+
const peekOffset = () => _peekOffset;
|
|
114
|
+
const charAt = (offset) => isCRLF(offset) || isPS(offset) || isLS(offset) ? CHAR_LF : _buf[offset];
|
|
115
|
+
const currentChar = () => charAt(_index);
|
|
116
|
+
const currentPeek = () => charAt(_index + _peekOffset);
|
|
117
|
+
function next() {
|
|
118
|
+
_peekOffset = 0;
|
|
119
|
+
if (isLineEnd(_index)) {
|
|
120
|
+
_line++;
|
|
121
|
+
_column = 0;
|
|
122
|
+
}
|
|
123
|
+
if (isCRLF(_index)) {
|
|
124
|
+
_index++;
|
|
125
|
+
}
|
|
126
|
+
_index++;
|
|
127
|
+
_column++;
|
|
128
|
+
return _buf[_index];
|
|
129
|
+
}
|
|
130
|
+
function peek() {
|
|
131
|
+
if (isCRLF(_index + _peekOffset)) {
|
|
132
|
+
_peekOffset++;
|
|
133
|
+
}
|
|
134
|
+
_peekOffset++;
|
|
135
|
+
return _buf[_index + _peekOffset];
|
|
136
|
+
}
|
|
137
|
+
function reset() {
|
|
138
|
+
_index = 0;
|
|
139
|
+
_line = 1;
|
|
140
|
+
_column = 1;
|
|
141
|
+
_peekOffset = 0;
|
|
142
|
+
}
|
|
143
|
+
function resetPeek(offset = 0) {
|
|
144
|
+
_peekOffset = offset;
|
|
145
|
+
}
|
|
146
|
+
function skipToPeek() {
|
|
147
|
+
const target = _index + _peekOffset;
|
|
148
|
+
while (target !== _index) {
|
|
149
|
+
next();
|
|
150
|
+
}
|
|
151
|
+
_peekOffset = 0;
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
index,
|
|
155
|
+
line,
|
|
156
|
+
column,
|
|
157
|
+
peekOffset,
|
|
158
|
+
charAt,
|
|
159
|
+
currentChar,
|
|
160
|
+
currentPeek,
|
|
161
|
+
next,
|
|
162
|
+
peek,
|
|
163
|
+
reset,
|
|
164
|
+
resetPeek,
|
|
165
|
+
skipToPeek
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
const EOF = undefined;
|
|
170
|
+
const DOT = '.';
|
|
171
|
+
const LITERAL_DELIMITER = "'";
|
|
172
|
+
const ERROR_DOMAIN$3 = 'tokenizer';
|
|
173
|
+
function createTokenizer(source, options = {}) {
|
|
174
|
+
const location = options.location !== false;
|
|
175
|
+
const _scnr = createScanner(source);
|
|
176
|
+
const currentOffset = () => _scnr.index();
|
|
177
|
+
const currentPosition = () => createPosition(_scnr.line(), _scnr.column(), _scnr.index());
|
|
178
|
+
const _initLoc = currentPosition();
|
|
179
|
+
const _initOffset = currentOffset();
|
|
180
|
+
const _context = {
|
|
181
|
+
currentType: 13 /* TokenTypes.EOF */,
|
|
182
|
+
offset: _initOffset,
|
|
183
|
+
startLoc: _initLoc,
|
|
184
|
+
endLoc: _initLoc,
|
|
185
|
+
lastType: 13 /* TokenTypes.EOF */,
|
|
186
|
+
lastOffset: _initOffset,
|
|
187
|
+
lastStartLoc: _initLoc,
|
|
188
|
+
lastEndLoc: _initLoc,
|
|
189
|
+
braceNest: 0,
|
|
190
|
+
inLinked: false,
|
|
191
|
+
text: ''
|
|
192
|
+
};
|
|
193
|
+
const context = () => _context;
|
|
194
|
+
const { onError } = options;
|
|
195
|
+
function emitError(code, pos, offset, ...args) {
|
|
196
|
+
const ctx = context();
|
|
197
|
+
pos.column += offset;
|
|
198
|
+
pos.offset += offset;
|
|
199
|
+
if (onError) {
|
|
200
|
+
const loc = location ? createLocation(ctx.startLoc, pos) : null;
|
|
201
|
+
const err = createCompileError(code, loc, {
|
|
202
|
+
domain: ERROR_DOMAIN$3,
|
|
203
|
+
args
|
|
204
|
+
});
|
|
205
|
+
onError(err);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
function getToken(context, type, value) {
|
|
209
|
+
context.endLoc = currentPosition();
|
|
210
|
+
context.currentType = type;
|
|
211
|
+
const token = { type };
|
|
212
|
+
if (location) {
|
|
213
|
+
token.loc = createLocation(context.startLoc, context.endLoc);
|
|
214
|
+
}
|
|
215
|
+
if (value != null) {
|
|
216
|
+
token.value = value;
|
|
217
|
+
}
|
|
218
|
+
return token;
|
|
219
|
+
}
|
|
220
|
+
const getEndToken = (context) => getToken(context, 13 /* TokenTypes.EOF */);
|
|
221
|
+
function eat(scnr, ch) {
|
|
222
|
+
if (scnr.currentChar() === ch) {
|
|
223
|
+
scnr.next();
|
|
224
|
+
return ch;
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
emitError(CompileErrorCodes.EXPECTED_TOKEN, currentPosition(), 0, ch);
|
|
228
|
+
return '';
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
function peekSpaces(scnr) {
|
|
232
|
+
let buf = '';
|
|
233
|
+
while (scnr.currentPeek() === CHAR_SP || scnr.currentPeek() === CHAR_LF) {
|
|
234
|
+
buf += scnr.currentPeek();
|
|
235
|
+
scnr.peek();
|
|
236
|
+
}
|
|
237
|
+
return buf;
|
|
238
|
+
}
|
|
239
|
+
function skipSpaces(scnr) {
|
|
240
|
+
const buf = peekSpaces(scnr);
|
|
241
|
+
scnr.skipToPeek();
|
|
242
|
+
return buf;
|
|
243
|
+
}
|
|
244
|
+
function isIdentifierStart(ch) {
|
|
245
|
+
if (ch === EOF) {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
const cc = ch.charCodeAt(0);
|
|
249
|
+
return ((cc >= 97 && cc <= 122) || // a-z
|
|
250
|
+
(cc >= 65 && cc <= 90) || // A-Z
|
|
251
|
+
cc === 95 // _
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
function isNumberStart(ch) {
|
|
255
|
+
if (ch === EOF) {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
const cc = ch.charCodeAt(0);
|
|
259
|
+
return cc >= 48 && cc <= 57; // 0-9
|
|
260
|
+
}
|
|
261
|
+
function isNamedIdentifierStart(scnr, context) {
|
|
262
|
+
const { currentType } = context;
|
|
263
|
+
if (currentType !== 2 /* TokenTypes.BraceLeft */) {
|
|
264
|
+
return false;
|
|
265
|
+
}
|
|
266
|
+
peekSpaces(scnr);
|
|
267
|
+
const ret = isIdentifierStart(scnr.currentPeek());
|
|
268
|
+
scnr.resetPeek();
|
|
269
|
+
return ret;
|
|
270
|
+
}
|
|
271
|
+
function isListIdentifierStart(scnr, context) {
|
|
272
|
+
const { currentType } = context;
|
|
273
|
+
if (currentType !== 2 /* TokenTypes.BraceLeft */) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
peekSpaces(scnr);
|
|
277
|
+
const ch = scnr.currentPeek() === '-' ? scnr.peek() : scnr.currentPeek();
|
|
278
|
+
const ret = isNumberStart(ch);
|
|
279
|
+
scnr.resetPeek();
|
|
280
|
+
return ret;
|
|
281
|
+
}
|
|
282
|
+
function isLiteralStart(scnr, context) {
|
|
283
|
+
const { currentType } = context;
|
|
284
|
+
if (currentType !== 2 /* TokenTypes.BraceLeft */) {
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
peekSpaces(scnr);
|
|
288
|
+
const ret = scnr.currentPeek() === LITERAL_DELIMITER;
|
|
289
|
+
scnr.resetPeek();
|
|
290
|
+
return ret;
|
|
291
|
+
}
|
|
292
|
+
function isLinkedDotStart(scnr, context) {
|
|
293
|
+
const { currentType } = context;
|
|
294
|
+
if (currentType !== 7 /* TokenTypes.LinkedAlias */) {
|
|
295
|
+
return false;
|
|
296
|
+
}
|
|
297
|
+
peekSpaces(scnr);
|
|
298
|
+
const ret = scnr.currentPeek() === "." /* TokenChars.LinkedDot */;
|
|
299
|
+
scnr.resetPeek();
|
|
300
|
+
return ret;
|
|
301
|
+
}
|
|
302
|
+
function isLinkedModifierStart(scnr, context) {
|
|
303
|
+
const { currentType } = context;
|
|
304
|
+
if (currentType !== 8 /* TokenTypes.LinkedDot */) {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
peekSpaces(scnr);
|
|
308
|
+
const ret = isIdentifierStart(scnr.currentPeek());
|
|
309
|
+
scnr.resetPeek();
|
|
310
|
+
return ret;
|
|
311
|
+
}
|
|
312
|
+
function isLinkedDelimiterStart(scnr, context) {
|
|
313
|
+
const { currentType } = context;
|
|
314
|
+
if (!(currentType === 7 /* TokenTypes.LinkedAlias */ ||
|
|
315
|
+
currentType === 11 /* TokenTypes.LinkedModifier */)) {
|
|
316
|
+
return false;
|
|
317
|
+
}
|
|
318
|
+
peekSpaces(scnr);
|
|
319
|
+
const ret = scnr.currentPeek() === ":" /* TokenChars.LinkedDelimiter */;
|
|
320
|
+
scnr.resetPeek();
|
|
321
|
+
return ret;
|
|
322
|
+
}
|
|
323
|
+
function isLinkedReferStart(scnr, context) {
|
|
324
|
+
const { currentType } = context;
|
|
325
|
+
if (currentType !== 9 /* TokenTypes.LinkedDelimiter */) {
|
|
326
|
+
return false;
|
|
327
|
+
}
|
|
328
|
+
const fn = () => {
|
|
329
|
+
const ch = scnr.currentPeek();
|
|
330
|
+
if (ch === "{" /* TokenChars.BraceLeft */) {
|
|
331
|
+
return isIdentifierStart(scnr.peek());
|
|
332
|
+
}
|
|
333
|
+
else if (ch === "@" /* TokenChars.LinkedAlias */ ||
|
|
334
|
+
ch === "|" /* TokenChars.Pipe */ ||
|
|
335
|
+
ch === ":" /* TokenChars.LinkedDelimiter */ ||
|
|
336
|
+
ch === "." /* TokenChars.LinkedDot */ ||
|
|
337
|
+
ch === CHAR_SP ||
|
|
338
|
+
!ch) {
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
else if (ch === CHAR_LF) {
|
|
342
|
+
scnr.peek();
|
|
343
|
+
return fn();
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
// other characters
|
|
347
|
+
return isTextStart(scnr, false);
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
const ret = fn();
|
|
351
|
+
scnr.resetPeek();
|
|
352
|
+
return ret;
|
|
353
|
+
}
|
|
354
|
+
function isPluralStart(scnr) {
|
|
355
|
+
peekSpaces(scnr);
|
|
356
|
+
const ret = scnr.currentPeek() === "|" /* TokenChars.Pipe */;
|
|
357
|
+
scnr.resetPeek();
|
|
358
|
+
return ret;
|
|
359
|
+
}
|
|
360
|
+
function isTextStart(scnr, reset = true) {
|
|
361
|
+
const fn = (hasSpace = false, prev = '') => {
|
|
362
|
+
const ch = scnr.currentPeek();
|
|
363
|
+
if (ch === "{" /* TokenChars.BraceLeft */) {
|
|
364
|
+
return hasSpace;
|
|
365
|
+
}
|
|
366
|
+
else if (ch === "@" /* TokenChars.LinkedAlias */ || !ch) {
|
|
367
|
+
return hasSpace;
|
|
368
|
+
}
|
|
369
|
+
else if (ch === "|" /* TokenChars.Pipe */) {
|
|
370
|
+
return !(prev === CHAR_SP || prev === CHAR_LF);
|
|
371
|
+
}
|
|
372
|
+
else if (ch === CHAR_SP) {
|
|
373
|
+
scnr.peek();
|
|
374
|
+
return fn(true, CHAR_SP);
|
|
375
|
+
}
|
|
376
|
+
else if (ch === CHAR_LF) {
|
|
377
|
+
scnr.peek();
|
|
378
|
+
return fn(true, CHAR_LF);
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
return true;
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
const ret = fn();
|
|
385
|
+
reset && scnr.resetPeek();
|
|
386
|
+
return ret;
|
|
387
|
+
}
|
|
388
|
+
function takeChar(scnr, fn) {
|
|
389
|
+
const ch = scnr.currentChar();
|
|
390
|
+
if (ch === EOF) {
|
|
391
|
+
return EOF;
|
|
392
|
+
}
|
|
393
|
+
if (fn(ch)) {
|
|
394
|
+
scnr.next();
|
|
395
|
+
return ch;
|
|
396
|
+
}
|
|
397
|
+
return null;
|
|
398
|
+
}
|
|
399
|
+
function isIdentifier(ch) {
|
|
400
|
+
const cc = ch.charCodeAt(0);
|
|
401
|
+
return ((cc >= 97 && cc <= 122) || // a-z
|
|
402
|
+
(cc >= 65 && cc <= 90) || // A-Z
|
|
403
|
+
(cc >= 48 && cc <= 57) || // 0-9
|
|
404
|
+
cc === 95 || // _
|
|
405
|
+
cc === 36 // $
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
function takeIdentifierChar(scnr) {
|
|
409
|
+
return takeChar(scnr, isIdentifier);
|
|
410
|
+
}
|
|
411
|
+
function isNamedIdentifier(ch) {
|
|
412
|
+
const cc = ch.charCodeAt(0);
|
|
413
|
+
return ((cc >= 97 && cc <= 122) || // a-z
|
|
414
|
+
(cc >= 65 && cc <= 90) || // A-Z
|
|
415
|
+
(cc >= 48 && cc <= 57) || // 0-9
|
|
416
|
+
cc === 95 || // _
|
|
417
|
+
cc === 36 || // $
|
|
418
|
+
cc === 45 // -
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
function takeNamedIdentifierChar(scnr) {
|
|
422
|
+
return takeChar(scnr, isNamedIdentifier);
|
|
423
|
+
}
|
|
424
|
+
function isDigit(ch) {
|
|
425
|
+
const cc = ch.charCodeAt(0);
|
|
426
|
+
return cc >= 48 && cc <= 57; // 0-9
|
|
427
|
+
}
|
|
428
|
+
function takeDigit(scnr) {
|
|
429
|
+
return takeChar(scnr, isDigit);
|
|
430
|
+
}
|
|
431
|
+
function isHexDigit(ch) {
|
|
432
|
+
const cc = ch.charCodeAt(0);
|
|
433
|
+
return ((cc >= 48 && cc <= 57) || // 0-9
|
|
434
|
+
(cc >= 65 && cc <= 70) || // A-F
|
|
435
|
+
(cc >= 97 && cc <= 102)); // a-f
|
|
436
|
+
}
|
|
437
|
+
function takeHexDigit(scnr) {
|
|
438
|
+
return takeChar(scnr, isHexDigit);
|
|
439
|
+
}
|
|
440
|
+
function getDigits(scnr) {
|
|
441
|
+
let ch = '';
|
|
442
|
+
let num = '';
|
|
443
|
+
while ((ch = takeDigit(scnr))) {
|
|
444
|
+
num += ch;
|
|
445
|
+
}
|
|
446
|
+
return num;
|
|
447
|
+
}
|
|
448
|
+
function readText(scnr) {
|
|
449
|
+
let buf = '';
|
|
450
|
+
while (true) {
|
|
451
|
+
const ch = scnr.currentChar();
|
|
452
|
+
if (ch === "{" /* TokenChars.BraceLeft */ ||
|
|
453
|
+
ch === "}" /* TokenChars.BraceRight */ ||
|
|
454
|
+
ch === "@" /* TokenChars.LinkedAlias */ ||
|
|
455
|
+
ch === "|" /* TokenChars.Pipe */ ||
|
|
456
|
+
!ch) {
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
else if (ch === CHAR_SP || ch === CHAR_LF) {
|
|
460
|
+
if (isTextStart(scnr)) {
|
|
461
|
+
buf += ch;
|
|
462
|
+
scnr.next();
|
|
463
|
+
}
|
|
464
|
+
else if (isPluralStart(scnr)) {
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
else {
|
|
468
|
+
buf += ch;
|
|
469
|
+
scnr.next();
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
buf += ch;
|
|
474
|
+
scnr.next();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
return buf;
|
|
478
|
+
}
|
|
479
|
+
function readNamedIdentifier(scnr) {
|
|
480
|
+
skipSpaces(scnr);
|
|
481
|
+
let ch = '';
|
|
482
|
+
let name = '';
|
|
483
|
+
while ((ch = takeNamedIdentifierChar(scnr))) {
|
|
484
|
+
name += ch;
|
|
485
|
+
}
|
|
486
|
+
// Check if takeNamedIdentifierChar stoped because of invalid characters
|
|
487
|
+
const currentChar = scnr.currentChar();
|
|
488
|
+
if (currentChar &&
|
|
489
|
+
currentChar !== '}' &&
|
|
490
|
+
currentChar !== EOF &&
|
|
491
|
+
currentChar !== CHAR_SP &&
|
|
492
|
+
currentChar !== CHAR_LF &&
|
|
493
|
+
currentChar !== '\u3000') {
|
|
494
|
+
const invalidPart = readInvalidIdentifier(scnr);
|
|
495
|
+
emitError(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, currentPosition(), 0, name + invalidPart);
|
|
496
|
+
return name + invalidPart;
|
|
497
|
+
}
|
|
498
|
+
if (scnr.currentChar() === EOF) {
|
|
499
|
+
emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
|
|
500
|
+
}
|
|
501
|
+
return name;
|
|
502
|
+
}
|
|
503
|
+
function readListIdentifier(scnr) {
|
|
504
|
+
skipSpaces(scnr);
|
|
505
|
+
let value = '';
|
|
506
|
+
if (scnr.currentChar() === '-') {
|
|
507
|
+
scnr.next();
|
|
508
|
+
value += `-${getDigits(scnr)}`;
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
value += getDigits(scnr);
|
|
512
|
+
}
|
|
513
|
+
if (scnr.currentChar() === EOF) {
|
|
514
|
+
emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
|
|
515
|
+
}
|
|
516
|
+
return value;
|
|
517
|
+
}
|
|
518
|
+
function isLiteral(ch) {
|
|
519
|
+
return ch !== LITERAL_DELIMITER && ch !== CHAR_LF;
|
|
520
|
+
}
|
|
521
|
+
function readLiteral(scnr) {
|
|
522
|
+
skipSpaces(scnr);
|
|
523
|
+
// eslint-disable-next-line no-useless-escape
|
|
524
|
+
eat(scnr, `\'`);
|
|
525
|
+
let ch = '';
|
|
526
|
+
let literal = '';
|
|
527
|
+
while ((ch = takeChar(scnr, isLiteral))) {
|
|
528
|
+
if (ch === '\\') {
|
|
529
|
+
literal += readEscapeSequence(scnr);
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
literal += ch;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
const current = scnr.currentChar();
|
|
536
|
+
if (current === CHAR_LF || current === EOF) {
|
|
537
|
+
emitError(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, currentPosition(), 0);
|
|
538
|
+
// TODO: Is it correct really?
|
|
539
|
+
if (current === CHAR_LF) {
|
|
540
|
+
scnr.next();
|
|
541
|
+
// eslint-disable-next-line no-useless-escape
|
|
542
|
+
eat(scnr, `\'`);
|
|
543
|
+
}
|
|
544
|
+
return literal;
|
|
545
|
+
}
|
|
546
|
+
// eslint-disable-next-line no-useless-escape
|
|
547
|
+
eat(scnr, `\'`);
|
|
548
|
+
return literal;
|
|
549
|
+
}
|
|
550
|
+
function readEscapeSequence(scnr) {
|
|
551
|
+
const ch = scnr.currentChar();
|
|
552
|
+
switch (ch) {
|
|
553
|
+
case '\\':
|
|
554
|
+
case `\'`: // eslint-disable-line no-useless-escape
|
|
555
|
+
scnr.next();
|
|
556
|
+
return `\\${ch}`;
|
|
557
|
+
case 'u':
|
|
558
|
+
return readUnicodeEscapeSequence(scnr, ch, 4);
|
|
559
|
+
case 'U':
|
|
560
|
+
return readUnicodeEscapeSequence(scnr, ch, 6);
|
|
561
|
+
default:
|
|
562
|
+
emitError(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE, currentPosition(), 0, ch);
|
|
563
|
+
return '';
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
function readUnicodeEscapeSequence(scnr, unicode, digits) {
|
|
567
|
+
eat(scnr, unicode);
|
|
568
|
+
let sequence = '';
|
|
569
|
+
for (let i = 0; i < digits; i++) {
|
|
570
|
+
const ch = takeHexDigit(scnr);
|
|
571
|
+
if (!ch) {
|
|
572
|
+
emitError(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE, currentPosition(), 0, `\\${unicode}${sequence}${scnr.currentChar()}`);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
sequence += ch;
|
|
576
|
+
}
|
|
577
|
+
return `\\${unicode}${sequence}`;
|
|
578
|
+
}
|
|
579
|
+
function isInvalidIdentifier(ch) {
|
|
580
|
+
return (ch !== "{" /* TokenChars.BraceLeft */ &&
|
|
581
|
+
ch !== "}" /* TokenChars.BraceRight */ &&
|
|
582
|
+
ch !== CHAR_SP &&
|
|
583
|
+
ch !== CHAR_LF);
|
|
584
|
+
}
|
|
585
|
+
function readInvalidIdentifier(scnr) {
|
|
586
|
+
skipSpaces(scnr);
|
|
587
|
+
let ch = '';
|
|
588
|
+
let identifiers = '';
|
|
589
|
+
while ((ch = takeChar(scnr, isInvalidIdentifier))) {
|
|
590
|
+
identifiers += ch;
|
|
591
|
+
}
|
|
592
|
+
return identifiers;
|
|
593
|
+
}
|
|
594
|
+
function readLinkedModifier(scnr) {
|
|
595
|
+
let ch = '';
|
|
596
|
+
let name = '';
|
|
597
|
+
while ((ch = takeIdentifierChar(scnr))) {
|
|
598
|
+
name += ch;
|
|
599
|
+
}
|
|
600
|
+
return name;
|
|
601
|
+
}
|
|
602
|
+
function readLinkedRefer(scnr) {
|
|
603
|
+
const fn = (buf) => {
|
|
604
|
+
const ch = scnr.currentChar();
|
|
605
|
+
if (ch === "{" /* TokenChars.BraceLeft */ ||
|
|
606
|
+
ch === "@" /* TokenChars.LinkedAlias */ ||
|
|
607
|
+
ch === "|" /* TokenChars.Pipe */ ||
|
|
608
|
+
ch === "(" /* TokenChars.ParenLeft */ ||
|
|
609
|
+
ch === ")" /* TokenChars.ParenRight */ ||
|
|
610
|
+
!ch) {
|
|
611
|
+
return buf;
|
|
612
|
+
}
|
|
613
|
+
else if (ch === CHAR_SP) {
|
|
614
|
+
return buf;
|
|
615
|
+
}
|
|
616
|
+
else if (ch === CHAR_LF || ch === DOT) {
|
|
617
|
+
buf += ch;
|
|
618
|
+
scnr.next();
|
|
619
|
+
return fn(buf);
|
|
620
|
+
}
|
|
621
|
+
else {
|
|
622
|
+
buf += ch;
|
|
623
|
+
scnr.next();
|
|
624
|
+
return fn(buf);
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
return fn('');
|
|
628
|
+
}
|
|
629
|
+
function readPlural(scnr) {
|
|
630
|
+
skipSpaces(scnr);
|
|
631
|
+
const plural = eat(scnr, "|" /* TokenChars.Pipe */);
|
|
632
|
+
skipSpaces(scnr);
|
|
633
|
+
return plural;
|
|
634
|
+
}
|
|
635
|
+
// TODO: We need refactoring of token parsing ...
|
|
636
|
+
function readTokenInPlaceholder(scnr, context) {
|
|
637
|
+
let token = null;
|
|
638
|
+
const ch = scnr.currentChar();
|
|
639
|
+
switch (ch) {
|
|
640
|
+
case "{" /* TokenChars.BraceLeft */:
|
|
641
|
+
if (context.braceNest >= 1) {
|
|
642
|
+
emitError(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER, currentPosition(), 0);
|
|
643
|
+
}
|
|
644
|
+
scnr.next();
|
|
645
|
+
token = getToken(context, 2 /* TokenTypes.BraceLeft */, "{" /* TokenChars.BraceLeft */);
|
|
646
|
+
skipSpaces(scnr);
|
|
647
|
+
context.braceNest++;
|
|
648
|
+
return token;
|
|
649
|
+
case "}" /* TokenChars.BraceRight */:
|
|
650
|
+
if (context.braceNest > 0 &&
|
|
651
|
+
context.currentType === 2 /* TokenTypes.BraceLeft */) {
|
|
652
|
+
emitError(CompileErrorCodes.EMPTY_PLACEHOLDER, currentPosition(), 0);
|
|
653
|
+
}
|
|
654
|
+
scnr.next();
|
|
655
|
+
token = getToken(context, 3 /* TokenTypes.BraceRight */, "}" /* TokenChars.BraceRight */);
|
|
656
|
+
context.braceNest--;
|
|
657
|
+
context.braceNest > 0 && skipSpaces(scnr);
|
|
658
|
+
if (context.inLinked && context.braceNest === 0) {
|
|
659
|
+
context.inLinked = false;
|
|
660
|
+
}
|
|
661
|
+
return token;
|
|
662
|
+
case "@" /* TokenChars.LinkedAlias */:
|
|
663
|
+
if (context.braceNest > 0) {
|
|
664
|
+
emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
|
|
665
|
+
}
|
|
666
|
+
token = readTokenInLinked(scnr, context) || getEndToken(context);
|
|
667
|
+
context.braceNest = 0;
|
|
668
|
+
return token;
|
|
669
|
+
default: {
|
|
670
|
+
let validNamedIdentifier = true;
|
|
671
|
+
let validListIdentifier = true;
|
|
672
|
+
let validLiteral = true;
|
|
673
|
+
if (isPluralStart(scnr)) {
|
|
674
|
+
if (context.braceNest > 0) {
|
|
675
|
+
emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
|
|
676
|
+
}
|
|
677
|
+
token = getToken(context, 1 /* TokenTypes.Pipe */, readPlural(scnr));
|
|
678
|
+
// reset
|
|
679
|
+
context.braceNest = 0;
|
|
680
|
+
context.inLinked = false;
|
|
681
|
+
return token;
|
|
682
|
+
}
|
|
683
|
+
if (context.braceNest > 0 &&
|
|
684
|
+
(context.currentType === 4 /* TokenTypes.Named */ ||
|
|
685
|
+
context.currentType === 5 /* TokenTypes.List */ ||
|
|
686
|
+
context.currentType === 6 /* TokenTypes.Literal */)) {
|
|
687
|
+
emitError(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE, currentPosition(), 0);
|
|
688
|
+
context.braceNest = 0;
|
|
689
|
+
return readToken(scnr, context);
|
|
690
|
+
}
|
|
691
|
+
if ((validNamedIdentifier = isNamedIdentifierStart(scnr, context))) {
|
|
692
|
+
token = getToken(context, 4 /* TokenTypes.Named */, readNamedIdentifier(scnr));
|
|
693
|
+
skipSpaces(scnr);
|
|
694
|
+
return token;
|
|
695
|
+
}
|
|
696
|
+
if ((validListIdentifier = isListIdentifierStart(scnr, context))) {
|
|
697
|
+
token = getToken(context, 5 /* TokenTypes.List */, readListIdentifier(scnr));
|
|
698
|
+
skipSpaces(scnr);
|
|
699
|
+
return token;
|
|
700
|
+
}
|
|
701
|
+
if ((validLiteral = isLiteralStart(scnr, context))) {
|
|
702
|
+
token = getToken(context, 6 /* TokenTypes.Literal */, readLiteral(scnr));
|
|
703
|
+
skipSpaces(scnr);
|
|
704
|
+
return token;
|
|
705
|
+
}
|
|
706
|
+
if (!validNamedIdentifier && !validListIdentifier && !validLiteral) {
|
|
707
|
+
// TODO: we should be re-designed invalid cases, when we will extend message syntax near the future ...
|
|
708
|
+
token = getToken(context, 12 /* TokenTypes.InvalidPlace */, readInvalidIdentifier(scnr));
|
|
709
|
+
emitError(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER, currentPosition(), 0, token.value);
|
|
710
|
+
skipSpaces(scnr);
|
|
711
|
+
return token;
|
|
712
|
+
}
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return token;
|
|
717
|
+
}
|
|
718
|
+
// TODO: We need refactoring of token parsing ...
|
|
719
|
+
function readTokenInLinked(scnr, context) {
|
|
720
|
+
const { currentType } = context;
|
|
721
|
+
let token = null;
|
|
722
|
+
const ch = scnr.currentChar();
|
|
723
|
+
if ((currentType === 7 /* TokenTypes.LinkedAlias */ ||
|
|
724
|
+
currentType === 8 /* TokenTypes.LinkedDot */ ||
|
|
725
|
+
currentType === 11 /* TokenTypes.LinkedModifier */ ||
|
|
726
|
+
currentType === 9 /* TokenTypes.LinkedDelimiter */) &&
|
|
727
|
+
(ch === CHAR_LF || ch === CHAR_SP)) {
|
|
728
|
+
emitError(CompileErrorCodes.INVALID_LINKED_FORMAT, currentPosition(), 0);
|
|
729
|
+
}
|
|
730
|
+
switch (ch) {
|
|
731
|
+
case "@" /* TokenChars.LinkedAlias */:
|
|
732
|
+
scnr.next();
|
|
733
|
+
token = getToken(context, 7 /* TokenTypes.LinkedAlias */, "@" /* TokenChars.LinkedAlias */);
|
|
734
|
+
context.inLinked = true;
|
|
735
|
+
return token;
|
|
736
|
+
case "." /* TokenChars.LinkedDot */:
|
|
737
|
+
skipSpaces(scnr);
|
|
738
|
+
scnr.next();
|
|
739
|
+
return getToken(context, 8 /* TokenTypes.LinkedDot */, "." /* TokenChars.LinkedDot */);
|
|
740
|
+
case ":" /* TokenChars.LinkedDelimiter */:
|
|
741
|
+
skipSpaces(scnr);
|
|
742
|
+
scnr.next();
|
|
743
|
+
return getToken(context, 9 /* TokenTypes.LinkedDelimiter */, ":" /* TokenChars.LinkedDelimiter */);
|
|
744
|
+
default:
|
|
745
|
+
if (isPluralStart(scnr)) {
|
|
746
|
+
token = getToken(context, 1 /* TokenTypes.Pipe */, readPlural(scnr));
|
|
747
|
+
// reset
|
|
748
|
+
context.braceNest = 0;
|
|
749
|
+
context.inLinked = false;
|
|
750
|
+
return token;
|
|
751
|
+
}
|
|
752
|
+
if (isLinkedDotStart(scnr, context) ||
|
|
753
|
+
isLinkedDelimiterStart(scnr, context)) {
|
|
754
|
+
skipSpaces(scnr);
|
|
755
|
+
return readTokenInLinked(scnr, context);
|
|
756
|
+
}
|
|
757
|
+
if (isLinkedModifierStart(scnr, context)) {
|
|
758
|
+
skipSpaces(scnr);
|
|
759
|
+
return getToken(context, 11 /* TokenTypes.LinkedModifier */, readLinkedModifier(scnr));
|
|
760
|
+
}
|
|
761
|
+
if (isLinkedReferStart(scnr, context)) {
|
|
762
|
+
skipSpaces(scnr);
|
|
763
|
+
if (ch === "{" /* TokenChars.BraceLeft */) {
|
|
764
|
+
// scan the placeholder
|
|
765
|
+
return readTokenInPlaceholder(scnr, context) || token;
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
return getToken(context, 10 /* TokenTypes.LinkedKey */, readLinkedRefer(scnr));
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
if (currentType === 7 /* TokenTypes.LinkedAlias */) {
|
|
772
|
+
emitError(CompileErrorCodes.INVALID_LINKED_FORMAT, currentPosition(), 0);
|
|
773
|
+
}
|
|
774
|
+
context.braceNest = 0;
|
|
775
|
+
context.inLinked = false;
|
|
776
|
+
return readToken(scnr, context);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
// TODO: We need refactoring of token parsing ...
|
|
780
|
+
function readToken(scnr, context) {
|
|
781
|
+
let token = { type: 13 /* TokenTypes.EOF */ };
|
|
782
|
+
if (context.braceNest > 0) {
|
|
783
|
+
return readTokenInPlaceholder(scnr, context) || getEndToken(context);
|
|
784
|
+
}
|
|
785
|
+
if (context.inLinked) {
|
|
786
|
+
return readTokenInLinked(scnr, context) || getEndToken(context);
|
|
787
|
+
}
|
|
788
|
+
const ch = scnr.currentChar();
|
|
789
|
+
switch (ch) {
|
|
790
|
+
case "{" /* TokenChars.BraceLeft */:
|
|
791
|
+
return readTokenInPlaceholder(scnr, context) || getEndToken(context);
|
|
792
|
+
case "}" /* TokenChars.BraceRight */:
|
|
793
|
+
emitError(CompileErrorCodes.UNBALANCED_CLOSING_BRACE, currentPosition(), 0);
|
|
794
|
+
scnr.next();
|
|
795
|
+
return getToken(context, 3 /* TokenTypes.BraceRight */, "}" /* TokenChars.BraceRight */);
|
|
796
|
+
case "@" /* TokenChars.LinkedAlias */:
|
|
797
|
+
return readTokenInLinked(scnr, context) || getEndToken(context);
|
|
798
|
+
default: {
|
|
799
|
+
if (isPluralStart(scnr)) {
|
|
800
|
+
token = getToken(context, 1 /* TokenTypes.Pipe */, readPlural(scnr));
|
|
801
|
+
// reset
|
|
802
|
+
context.braceNest = 0;
|
|
803
|
+
context.inLinked = false;
|
|
804
|
+
return token;
|
|
805
|
+
}
|
|
806
|
+
if (isTextStart(scnr)) {
|
|
807
|
+
return getToken(context, 0 /* TokenTypes.Text */, readText(scnr));
|
|
808
|
+
}
|
|
809
|
+
break;
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return token;
|
|
813
|
+
}
|
|
814
|
+
function nextToken() {
|
|
815
|
+
const { currentType, offset, startLoc, endLoc } = _context;
|
|
816
|
+
_context.lastType = currentType;
|
|
817
|
+
_context.lastOffset = offset;
|
|
818
|
+
_context.lastStartLoc = startLoc;
|
|
819
|
+
_context.lastEndLoc = endLoc;
|
|
820
|
+
_context.offset = currentOffset();
|
|
821
|
+
_context.startLoc = currentPosition();
|
|
822
|
+
if (_scnr.currentChar() === EOF) {
|
|
823
|
+
return getToken(_context, 13 /* TokenTypes.EOF */);
|
|
824
|
+
}
|
|
825
|
+
return readToken(_scnr, _context);
|
|
826
|
+
}
|
|
827
|
+
return {
|
|
828
|
+
nextToken,
|
|
829
|
+
currentOffset,
|
|
830
|
+
currentPosition,
|
|
831
|
+
context
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
const ERROR_DOMAIN$2 = 'parser';
|
|
836
|
+
// Backslash backslash, backslash quote, uHHHH, UHHHHHH.
|
|
837
|
+
const KNOWN_ESCAPES = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
838
|
+
function fromEscapeSequence(match, codePoint4, codePoint6) {
|
|
839
|
+
switch (match) {
|
|
840
|
+
case `\\\\`:
|
|
841
|
+
return `\\`;
|
|
842
|
+
// eslint-disable-next-line no-useless-escape
|
|
843
|
+
case `\\\'`:
|
|
844
|
+
// eslint-disable-next-line no-useless-escape
|
|
845
|
+
return `\'`;
|
|
846
|
+
default: {
|
|
847
|
+
const codePoint = parseInt(codePoint4 || codePoint6, 16);
|
|
848
|
+
if (codePoint <= 0xd7ff || codePoint >= 0xe000) {
|
|
849
|
+
return String.fromCodePoint(codePoint);
|
|
850
|
+
}
|
|
851
|
+
// invalid ...
|
|
852
|
+
// Replace them with U+FFFD REPLACEMENT CHARACTER.
|
|
853
|
+
return '�';
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function createParser(options = {}) {
|
|
858
|
+
const location = options.location !== false;
|
|
859
|
+
const { onError } = options;
|
|
860
|
+
function emitError(tokenzer, code, start, offset, ...args) {
|
|
861
|
+
const end = tokenzer.currentPosition();
|
|
862
|
+
end.offset += offset;
|
|
863
|
+
end.column += offset;
|
|
864
|
+
if (onError) {
|
|
865
|
+
const loc = location ? createLocation(start, end) : null;
|
|
866
|
+
const err = createCompileError(code, loc, {
|
|
867
|
+
domain: ERROR_DOMAIN$2,
|
|
868
|
+
args
|
|
869
|
+
});
|
|
870
|
+
onError(err);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
function startNode(type, offset, loc) {
|
|
874
|
+
const node = { type };
|
|
875
|
+
if (location) {
|
|
876
|
+
node.start = offset;
|
|
877
|
+
node.end = offset;
|
|
878
|
+
node.loc = { start: loc, end: loc };
|
|
879
|
+
}
|
|
880
|
+
return node;
|
|
881
|
+
}
|
|
882
|
+
function endNode(node, offset, pos, type) {
|
|
883
|
+
if (location) {
|
|
884
|
+
node.end = offset;
|
|
885
|
+
if (node.loc) {
|
|
886
|
+
node.loc.end = pos;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
function parseText(tokenizer, value) {
|
|
891
|
+
const context = tokenizer.context();
|
|
892
|
+
const node = startNode(3 /* NodeTypes.Text */, context.offset, context.startLoc);
|
|
893
|
+
node.value = value;
|
|
894
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
895
|
+
return node;
|
|
896
|
+
}
|
|
897
|
+
function parseList(tokenizer, index) {
|
|
898
|
+
const context = tokenizer.context();
|
|
899
|
+
const { lastOffset: offset, lastStartLoc: loc } = context; // get brace left loc
|
|
900
|
+
const node = startNode(5 /* NodeTypes.List */, offset, loc);
|
|
901
|
+
node.index = parseInt(index, 10);
|
|
902
|
+
tokenizer.nextToken(); // skip brach right
|
|
903
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
904
|
+
return node;
|
|
905
|
+
}
|
|
906
|
+
function parseNamed(tokenizer, key) {
|
|
907
|
+
const context = tokenizer.context();
|
|
908
|
+
const { lastOffset: offset, lastStartLoc: loc } = context; // get brace left loc
|
|
909
|
+
const node = startNode(4 /* NodeTypes.Named */, offset, loc);
|
|
910
|
+
node.key = key;
|
|
911
|
+
tokenizer.nextToken(); // skip brach right
|
|
912
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
913
|
+
return node;
|
|
914
|
+
}
|
|
915
|
+
function parseLiteral(tokenizer, value) {
|
|
916
|
+
const context = tokenizer.context();
|
|
917
|
+
const { lastOffset: offset, lastStartLoc: loc } = context; // get brace left loc
|
|
918
|
+
const node = startNode(9 /* NodeTypes.Literal */, offset, loc);
|
|
919
|
+
node.value = value.replace(KNOWN_ESCAPES, fromEscapeSequence);
|
|
920
|
+
tokenizer.nextToken(); // skip brach right
|
|
921
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
922
|
+
return node;
|
|
923
|
+
}
|
|
924
|
+
function parseLinkedModifier(tokenizer) {
|
|
925
|
+
const token = tokenizer.nextToken();
|
|
926
|
+
const context = tokenizer.context();
|
|
927
|
+
const { lastOffset: offset, lastStartLoc: loc } = context; // get linked dot loc
|
|
928
|
+
const node = startNode(8 /* NodeTypes.LinkedModifier */, offset, loc);
|
|
929
|
+
if (token.type !== 11 /* TokenTypes.LinkedModifier */) {
|
|
930
|
+
// empty modifier
|
|
931
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER, context.lastStartLoc, 0);
|
|
932
|
+
node.value = '';
|
|
933
|
+
endNode(node, offset, loc);
|
|
934
|
+
return {
|
|
935
|
+
nextConsumeToken: token,
|
|
936
|
+
node
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
// check token
|
|
940
|
+
if (token.value == null) {
|
|
941
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
942
|
+
}
|
|
943
|
+
node.value = token.value || '';
|
|
944
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
945
|
+
return {
|
|
946
|
+
node
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
function parseLinkedKey(tokenizer, value) {
|
|
950
|
+
const context = tokenizer.context();
|
|
951
|
+
const node = startNode(7 /* NodeTypes.LinkedKey */, context.offset, context.startLoc);
|
|
952
|
+
node.value = value;
|
|
953
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
954
|
+
return node;
|
|
955
|
+
}
|
|
956
|
+
function parseLinked(tokenizer) {
|
|
957
|
+
const context = tokenizer.context();
|
|
958
|
+
const linkedNode = startNode(6 /* NodeTypes.Linked */, context.offset, context.startLoc);
|
|
959
|
+
let token = tokenizer.nextToken();
|
|
960
|
+
if (token.type === 8 /* TokenTypes.LinkedDot */) {
|
|
961
|
+
const parsed = parseLinkedModifier(tokenizer);
|
|
962
|
+
linkedNode.modifier = parsed.node;
|
|
963
|
+
token = parsed.nextConsumeToken || tokenizer.nextToken();
|
|
964
|
+
}
|
|
965
|
+
// asset check token
|
|
966
|
+
if (token.type !== 9 /* TokenTypes.LinkedDelimiter */) {
|
|
967
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
968
|
+
}
|
|
969
|
+
token = tokenizer.nextToken();
|
|
970
|
+
// skip brace left
|
|
971
|
+
if (token.type === 2 /* TokenTypes.BraceLeft */) {
|
|
972
|
+
token = tokenizer.nextToken();
|
|
973
|
+
}
|
|
974
|
+
switch (token.type) {
|
|
975
|
+
case 10 /* TokenTypes.LinkedKey */:
|
|
976
|
+
if (token.value == null) {
|
|
977
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
978
|
+
}
|
|
979
|
+
linkedNode.key = parseLinkedKey(tokenizer, token.value || '');
|
|
980
|
+
break;
|
|
981
|
+
case 4 /* TokenTypes.Named */:
|
|
982
|
+
if (token.value == null) {
|
|
983
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
984
|
+
}
|
|
985
|
+
linkedNode.key = parseNamed(tokenizer, token.value || '');
|
|
986
|
+
break;
|
|
987
|
+
case 5 /* TokenTypes.List */:
|
|
988
|
+
if (token.value == null) {
|
|
989
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
990
|
+
}
|
|
991
|
+
linkedNode.key = parseList(tokenizer, token.value || '');
|
|
992
|
+
break;
|
|
993
|
+
case 6 /* TokenTypes.Literal */:
|
|
994
|
+
if (token.value == null) {
|
|
995
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
996
|
+
}
|
|
997
|
+
linkedNode.key = parseLiteral(tokenizer, token.value || '');
|
|
998
|
+
break;
|
|
999
|
+
default: {
|
|
1000
|
+
// empty key
|
|
1001
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY, context.lastStartLoc, 0);
|
|
1002
|
+
const nextContext = tokenizer.context();
|
|
1003
|
+
const emptyLinkedKeyNode = startNode(7 /* NodeTypes.LinkedKey */, nextContext.offset, nextContext.startLoc);
|
|
1004
|
+
emptyLinkedKeyNode.value = '';
|
|
1005
|
+
endNode(emptyLinkedKeyNode, nextContext.offset, nextContext.startLoc);
|
|
1006
|
+
linkedNode.key = emptyLinkedKeyNode;
|
|
1007
|
+
endNode(linkedNode, nextContext.offset, nextContext.startLoc);
|
|
1008
|
+
return {
|
|
1009
|
+
nextConsumeToken: token,
|
|
1010
|
+
node: linkedNode
|
|
1011
|
+
};
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
endNode(linkedNode, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
1015
|
+
return {
|
|
1016
|
+
node: linkedNode
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
function parseMessage(tokenizer) {
|
|
1020
|
+
const context = tokenizer.context();
|
|
1021
|
+
const startOffset = context.currentType === 1 /* TokenTypes.Pipe */
|
|
1022
|
+
? tokenizer.currentOffset()
|
|
1023
|
+
: context.offset;
|
|
1024
|
+
const startLoc = context.currentType === 1 /* TokenTypes.Pipe */
|
|
1025
|
+
? context.endLoc
|
|
1026
|
+
: context.startLoc;
|
|
1027
|
+
const node = startNode(2 /* NodeTypes.Message */, startOffset, startLoc);
|
|
1028
|
+
node.items = [];
|
|
1029
|
+
let nextToken = null;
|
|
1030
|
+
do {
|
|
1031
|
+
const token = nextToken || tokenizer.nextToken();
|
|
1032
|
+
nextToken = null;
|
|
1033
|
+
switch (token.type) {
|
|
1034
|
+
case 0 /* TokenTypes.Text */:
|
|
1035
|
+
if (token.value == null) {
|
|
1036
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
1037
|
+
}
|
|
1038
|
+
node.items.push(parseText(tokenizer, token.value || ''));
|
|
1039
|
+
break;
|
|
1040
|
+
case 5 /* TokenTypes.List */:
|
|
1041
|
+
if (token.value == null) {
|
|
1042
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
1043
|
+
}
|
|
1044
|
+
node.items.push(parseList(tokenizer, token.value || ''));
|
|
1045
|
+
break;
|
|
1046
|
+
case 4 /* TokenTypes.Named */:
|
|
1047
|
+
if (token.value == null) {
|
|
1048
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
1049
|
+
}
|
|
1050
|
+
node.items.push(parseNamed(tokenizer, token.value || ''));
|
|
1051
|
+
break;
|
|
1052
|
+
case 6 /* TokenTypes.Literal */:
|
|
1053
|
+
if (token.value == null) {
|
|
1054
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, getTokenCaption(token));
|
|
1055
|
+
}
|
|
1056
|
+
node.items.push(parseLiteral(tokenizer, token.value || ''));
|
|
1057
|
+
break;
|
|
1058
|
+
case 7 /* TokenTypes.LinkedAlias */: {
|
|
1059
|
+
const parsed = parseLinked(tokenizer);
|
|
1060
|
+
node.items.push(parsed.node);
|
|
1061
|
+
nextToken = parsed.nextConsumeToken || null;
|
|
1062
|
+
break;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
} while (context.currentType !== 13 /* TokenTypes.EOF */ &&
|
|
1066
|
+
context.currentType !== 1 /* TokenTypes.Pipe */);
|
|
1067
|
+
// adjust message node loc
|
|
1068
|
+
const endOffset = context.currentType === 1 /* TokenTypes.Pipe */
|
|
1069
|
+
? context.lastOffset
|
|
1070
|
+
: tokenizer.currentOffset();
|
|
1071
|
+
const endLoc = context.currentType === 1 /* TokenTypes.Pipe */
|
|
1072
|
+
? context.lastEndLoc
|
|
1073
|
+
: tokenizer.currentPosition();
|
|
1074
|
+
endNode(node, endOffset, endLoc);
|
|
1075
|
+
return node;
|
|
1076
|
+
}
|
|
1077
|
+
function parsePlural(tokenizer, offset, loc, msgNode) {
|
|
1078
|
+
const context = tokenizer.context();
|
|
1079
|
+
let hasEmptyMessage = msgNode.items.length === 0;
|
|
1080
|
+
const node = startNode(1 /* NodeTypes.Plural */, offset, loc);
|
|
1081
|
+
node.cases = [];
|
|
1082
|
+
node.cases.push(msgNode);
|
|
1083
|
+
do {
|
|
1084
|
+
const msg = parseMessage(tokenizer);
|
|
1085
|
+
if (!hasEmptyMessage) {
|
|
1086
|
+
hasEmptyMessage = msg.items.length === 0;
|
|
1087
|
+
}
|
|
1088
|
+
node.cases.push(msg);
|
|
1089
|
+
} while (context.currentType !== 13 /* TokenTypes.EOF */);
|
|
1090
|
+
if (hasEmptyMessage) {
|
|
1091
|
+
emitError(tokenizer, CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL, loc, 0);
|
|
1092
|
+
}
|
|
1093
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
1094
|
+
return node;
|
|
1095
|
+
}
|
|
1096
|
+
function parseResource(tokenizer) {
|
|
1097
|
+
const context = tokenizer.context();
|
|
1098
|
+
const { offset, startLoc } = context;
|
|
1099
|
+
const msgNode = parseMessage(tokenizer);
|
|
1100
|
+
if (context.currentType === 13 /* TokenTypes.EOF */) {
|
|
1101
|
+
return msgNode;
|
|
1102
|
+
}
|
|
1103
|
+
else {
|
|
1104
|
+
return parsePlural(tokenizer, offset, startLoc, msgNode);
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
function parse(source) {
|
|
1108
|
+
const tokenizer = createTokenizer(source, assign({}, options));
|
|
1109
|
+
const context = tokenizer.context();
|
|
1110
|
+
const node = startNode(0 /* NodeTypes.Resource */, context.offset, context.startLoc);
|
|
1111
|
+
if (location && node.loc) {
|
|
1112
|
+
node.loc.source = source;
|
|
1113
|
+
}
|
|
1114
|
+
node.body = parseResource(tokenizer);
|
|
1115
|
+
if (options.onCacheKey) {
|
|
1116
|
+
node.cacheKey = options.onCacheKey(source);
|
|
1117
|
+
}
|
|
1118
|
+
// assert whether achieved to EOF
|
|
1119
|
+
if (context.currentType !== 13 /* TokenTypes.EOF */) {
|
|
1120
|
+
emitError(tokenizer, CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS, context.lastStartLoc, 0, source[context.offset] || '');
|
|
1121
|
+
}
|
|
1122
|
+
endNode(node, tokenizer.currentOffset(), tokenizer.currentPosition());
|
|
1123
|
+
return node;
|
|
1124
|
+
}
|
|
1125
|
+
return { parse };
|
|
1126
|
+
}
|
|
1127
|
+
function getTokenCaption(token) {
|
|
1128
|
+
if (token.type === 13 /* TokenTypes.EOF */) {
|
|
1129
|
+
return 'EOF';
|
|
1130
|
+
}
|
|
1131
|
+
const name = (token.value || '').replace(/\r?\n/gu, '\\n');
|
|
1132
|
+
return name.length > 10 ? name.slice(0, 9) + '…' : name;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
function createTransformer(ast, options = {} // eslint-disable-line
|
|
1136
|
+
) {
|
|
1137
|
+
const _context = {
|
|
1138
|
+
ast,
|
|
1139
|
+
helpers: new Set()
|
|
1140
|
+
};
|
|
1141
|
+
const context = () => _context;
|
|
1142
|
+
const helper = (name) => {
|
|
1143
|
+
_context.helpers.add(name);
|
|
1144
|
+
return name;
|
|
1145
|
+
};
|
|
1146
|
+
return { context, helper };
|
|
1147
|
+
}
|
|
1148
|
+
function traverseNodes(nodes, transformer) {
|
|
1149
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
1150
|
+
traverseNode(nodes[i], transformer);
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
function traverseNode(node, transformer) {
|
|
1154
|
+
// TODO: if we need pre-hook of transform, should be implemented to here
|
|
1155
|
+
switch (node.type) {
|
|
1156
|
+
case 1 /* NodeTypes.Plural */:
|
|
1157
|
+
traverseNodes(node.cases, transformer);
|
|
1158
|
+
transformer.helper("plural" /* HelperNameMap.PLURAL */);
|
|
1159
|
+
break;
|
|
1160
|
+
case 2 /* NodeTypes.Message */:
|
|
1161
|
+
traverseNodes(node.items, transformer);
|
|
1162
|
+
break;
|
|
1163
|
+
case 6 /* NodeTypes.Linked */: {
|
|
1164
|
+
const linked = node;
|
|
1165
|
+
traverseNode(linked.key, transformer);
|
|
1166
|
+
transformer.helper("linked" /* HelperNameMap.LINKED */);
|
|
1167
|
+
transformer.helper("type" /* HelperNameMap.TYPE */);
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
case 5 /* NodeTypes.List */:
|
|
1171
|
+
transformer.helper("interpolate" /* HelperNameMap.INTERPOLATE */);
|
|
1172
|
+
transformer.helper("list" /* HelperNameMap.LIST */);
|
|
1173
|
+
break;
|
|
1174
|
+
case 4 /* NodeTypes.Named */:
|
|
1175
|
+
transformer.helper("interpolate" /* HelperNameMap.INTERPOLATE */);
|
|
1176
|
+
transformer.helper("named" /* HelperNameMap.NAMED */);
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
// TODO: if we need post-hook of transform, should be implemented to here
|
|
1180
|
+
}
|
|
1181
|
+
// transform AST
|
|
1182
|
+
function transform(ast, options = {} // eslint-disable-line
|
|
1183
|
+
) {
|
|
1184
|
+
const transformer = createTransformer(ast);
|
|
1185
|
+
transformer.helper("normalize" /* HelperNameMap.NORMALIZE */);
|
|
1186
|
+
// traverse
|
|
1187
|
+
ast.body && traverseNode(ast.body, transformer);
|
|
1188
|
+
// set meta information
|
|
1189
|
+
const context = transformer.context();
|
|
1190
|
+
ast.helpers = Array.from(context.helpers);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
function optimize(ast) {
|
|
1194
|
+
const body = ast.body;
|
|
1195
|
+
if (body.type === 2 /* NodeTypes.Message */) {
|
|
1196
|
+
optimizeMessageNode(body);
|
|
1197
|
+
}
|
|
1198
|
+
else {
|
|
1199
|
+
body.cases.forEach(c => optimizeMessageNode(c));
|
|
1200
|
+
}
|
|
1201
|
+
return ast;
|
|
1202
|
+
}
|
|
1203
|
+
function optimizeMessageNode(message) {
|
|
1204
|
+
if (message.items.length === 1) {
|
|
1205
|
+
const item = message.items[0];
|
|
1206
|
+
if (item.type === 3 /* NodeTypes.Text */ || item.type === 9 /* NodeTypes.Literal */) {
|
|
1207
|
+
message.static = item.value;
|
|
1208
|
+
delete item.value; // optimization for size
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
else {
|
|
1212
|
+
const values = [];
|
|
1213
|
+
for (let i = 0; i < message.items.length; i++) {
|
|
1214
|
+
const item = message.items[i];
|
|
1215
|
+
if (!(item.type === 3 /* NodeTypes.Text */ || item.type === 9 /* NodeTypes.Literal */)) {
|
|
1216
|
+
break;
|
|
1217
|
+
}
|
|
1218
|
+
if (item.value == null) {
|
|
1219
|
+
break;
|
|
1220
|
+
}
|
|
1221
|
+
values.push(item.value);
|
|
1222
|
+
}
|
|
1223
|
+
if (values.length === message.items.length) {
|
|
1224
|
+
message.static = join(values);
|
|
1225
|
+
for (let i = 0; i < message.items.length; i++) {
|
|
1226
|
+
const item = message.items[i];
|
|
1227
|
+
if (item.type === 3 /* NodeTypes.Text */ || item.type === 9 /* NodeTypes.Literal */) {
|
|
1228
|
+
delete item.value; // optimization for size
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
const ERROR_DOMAIN$1 = 'minifier';
|
|
1236
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1237
|
+
function minify(node) {
|
|
1238
|
+
node.t = node.type;
|
|
1239
|
+
switch (node.type) {
|
|
1240
|
+
case 0 /* NodeTypes.Resource */: {
|
|
1241
|
+
const resource = node;
|
|
1242
|
+
minify(resource.body);
|
|
1243
|
+
resource.b = resource.body;
|
|
1244
|
+
delete resource.body;
|
|
1245
|
+
break;
|
|
1246
|
+
}
|
|
1247
|
+
case 1 /* NodeTypes.Plural */: {
|
|
1248
|
+
const plural = node;
|
|
1249
|
+
const cases = plural.cases;
|
|
1250
|
+
for (let i = 0; i < cases.length; i++) {
|
|
1251
|
+
minify(cases[i]);
|
|
1252
|
+
}
|
|
1253
|
+
plural.c = cases;
|
|
1254
|
+
delete plural.cases;
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
case 2 /* NodeTypes.Message */: {
|
|
1258
|
+
const message = node;
|
|
1259
|
+
const items = message.items;
|
|
1260
|
+
for (let i = 0; i < items.length; i++) {
|
|
1261
|
+
minify(items[i]);
|
|
1262
|
+
}
|
|
1263
|
+
message.i = items;
|
|
1264
|
+
delete message.items;
|
|
1265
|
+
if (message.static) {
|
|
1266
|
+
message.s = message.static;
|
|
1267
|
+
delete message.static;
|
|
1268
|
+
}
|
|
1269
|
+
break;
|
|
1270
|
+
}
|
|
1271
|
+
case 3 /* NodeTypes.Text */:
|
|
1272
|
+
case 9 /* NodeTypes.Literal */:
|
|
1273
|
+
case 8 /* NodeTypes.LinkedModifier */:
|
|
1274
|
+
case 7 /* NodeTypes.LinkedKey */: {
|
|
1275
|
+
const valueNode = node;
|
|
1276
|
+
if (valueNode.value) {
|
|
1277
|
+
valueNode.v = valueNode.value;
|
|
1278
|
+
delete valueNode.value;
|
|
1279
|
+
}
|
|
1280
|
+
break;
|
|
1281
|
+
}
|
|
1282
|
+
case 6 /* NodeTypes.Linked */: {
|
|
1283
|
+
const linked = node;
|
|
1284
|
+
minify(linked.key);
|
|
1285
|
+
linked.k = linked.key;
|
|
1286
|
+
delete linked.key;
|
|
1287
|
+
if (linked.modifier) {
|
|
1288
|
+
minify(linked.modifier);
|
|
1289
|
+
linked.m = linked.modifier;
|
|
1290
|
+
delete linked.modifier;
|
|
1291
|
+
}
|
|
1292
|
+
break;
|
|
1293
|
+
}
|
|
1294
|
+
case 5 /* NodeTypes.List */: {
|
|
1295
|
+
const list = node;
|
|
1296
|
+
list.i = list.index;
|
|
1297
|
+
delete list.index;
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
case 4 /* NodeTypes.Named */: {
|
|
1301
|
+
const named = node;
|
|
1302
|
+
named.k = named.key;
|
|
1303
|
+
delete named.key;
|
|
1304
|
+
break;
|
|
1305
|
+
}
|
|
1306
|
+
default:
|
|
1307
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
1308
|
+
throw createCompileError(CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
1309
|
+
domain: ERROR_DOMAIN$1,
|
|
1310
|
+
args: [node.type]
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
delete node.type;
|
|
1315
|
+
}
|
|
1316
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
1317
|
+
|
|
1318
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
1319
|
+
/// <reference types="source-map-js" />
|
|
1320
|
+
const ERROR_DOMAIN = 'parser';
|
|
1321
|
+
function createCodeGenerator(ast, options) {
|
|
1322
|
+
const { sourceMap, filename, breakLineCode, needIndent: _needIndent } = options;
|
|
1323
|
+
const location = options.location !== false;
|
|
1324
|
+
const _context = {
|
|
1325
|
+
filename,
|
|
1326
|
+
code: '',
|
|
1327
|
+
column: 1,
|
|
1328
|
+
line: 1,
|
|
1329
|
+
offset: 0,
|
|
1330
|
+
map: undefined,
|
|
1331
|
+
breakLineCode,
|
|
1332
|
+
needIndent: _needIndent,
|
|
1333
|
+
indentLevel: 0
|
|
1334
|
+
};
|
|
1335
|
+
if (location && ast.loc) {
|
|
1336
|
+
_context.source = ast.loc.source;
|
|
1337
|
+
}
|
|
1338
|
+
const context = () => _context;
|
|
1339
|
+
function push(code, node) {
|
|
1340
|
+
_context.code += code;
|
|
1341
|
+
}
|
|
1342
|
+
function _newline(n, withBreakLine = true) {
|
|
1343
|
+
const _breakLineCode = withBreakLine ? breakLineCode : '';
|
|
1344
|
+
push(_needIndent ? _breakLineCode + ` `.repeat(n) : _breakLineCode);
|
|
1345
|
+
}
|
|
1346
|
+
function indent(withNewLine = true) {
|
|
1347
|
+
const level = ++_context.indentLevel;
|
|
1348
|
+
withNewLine && _newline(level);
|
|
1349
|
+
}
|
|
1350
|
+
function deindent(withNewLine = true) {
|
|
1351
|
+
const level = --_context.indentLevel;
|
|
1352
|
+
withNewLine && _newline(level);
|
|
1353
|
+
}
|
|
1354
|
+
function newline() {
|
|
1355
|
+
_newline(_context.indentLevel);
|
|
1356
|
+
}
|
|
1357
|
+
const helper = (key) => `_${key}`;
|
|
1358
|
+
const needIndent = () => _context.needIndent;
|
|
1359
|
+
return {
|
|
1360
|
+
context,
|
|
1361
|
+
push,
|
|
1362
|
+
indent,
|
|
1363
|
+
deindent,
|
|
1364
|
+
newline,
|
|
1365
|
+
helper,
|
|
1366
|
+
needIndent
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
function generateLinkedNode(generator, node) {
|
|
1370
|
+
const { helper } = generator;
|
|
1371
|
+
generator.push(`${helper("linked" /* HelperNameMap.LINKED */)}(`);
|
|
1372
|
+
generateNode(generator, node.key);
|
|
1373
|
+
if (node.modifier) {
|
|
1374
|
+
generator.push(`, `);
|
|
1375
|
+
generateNode(generator, node.modifier);
|
|
1376
|
+
generator.push(`, _type`);
|
|
1377
|
+
}
|
|
1378
|
+
else {
|
|
1379
|
+
generator.push(`, undefined, _type`);
|
|
1380
|
+
}
|
|
1381
|
+
generator.push(`)`);
|
|
1382
|
+
}
|
|
1383
|
+
function generateMessageNode(generator, node) {
|
|
1384
|
+
const { helper, needIndent } = generator;
|
|
1385
|
+
generator.push(`${helper("normalize" /* HelperNameMap.NORMALIZE */)}([`);
|
|
1386
|
+
generator.indent(needIndent());
|
|
1387
|
+
const length = node.items.length;
|
|
1388
|
+
for (let i = 0; i < length; i++) {
|
|
1389
|
+
generateNode(generator, node.items[i]);
|
|
1390
|
+
if (i === length - 1) {
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
generator.push(', ');
|
|
1394
|
+
}
|
|
1395
|
+
generator.deindent(needIndent());
|
|
1396
|
+
generator.push('])');
|
|
1397
|
+
}
|
|
1398
|
+
function generatePluralNode(generator, node) {
|
|
1399
|
+
const { helper, needIndent } = generator;
|
|
1400
|
+
if (node.cases.length > 1) {
|
|
1401
|
+
generator.push(`${helper("plural" /* HelperNameMap.PLURAL */)}([`);
|
|
1402
|
+
generator.indent(needIndent());
|
|
1403
|
+
const length = node.cases.length;
|
|
1404
|
+
for (let i = 0; i < length; i++) {
|
|
1405
|
+
generateNode(generator, node.cases[i]);
|
|
1406
|
+
if (i === length - 1) {
|
|
1407
|
+
break;
|
|
1408
|
+
}
|
|
1409
|
+
generator.push(', ');
|
|
1410
|
+
}
|
|
1411
|
+
generator.deindent(needIndent());
|
|
1412
|
+
generator.push(`])`);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
function generateResource(generator, node) {
|
|
1416
|
+
if (node.body) {
|
|
1417
|
+
generateNode(generator, node.body);
|
|
1418
|
+
}
|
|
1419
|
+
else {
|
|
1420
|
+
generator.push('null');
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
function generateNode(generator, node) {
|
|
1424
|
+
const { helper } = generator;
|
|
1425
|
+
switch (node.type) {
|
|
1426
|
+
case 0 /* NodeTypes.Resource */:
|
|
1427
|
+
generateResource(generator, node);
|
|
1428
|
+
break;
|
|
1429
|
+
case 1 /* NodeTypes.Plural */:
|
|
1430
|
+
generatePluralNode(generator, node);
|
|
1431
|
+
break;
|
|
1432
|
+
case 2 /* NodeTypes.Message */:
|
|
1433
|
+
generateMessageNode(generator, node);
|
|
1434
|
+
break;
|
|
1435
|
+
case 6 /* NodeTypes.Linked */:
|
|
1436
|
+
generateLinkedNode(generator, node);
|
|
1437
|
+
break;
|
|
1438
|
+
case 8 /* NodeTypes.LinkedModifier */:
|
|
1439
|
+
generator.push(JSON.stringify(node.value), node);
|
|
1440
|
+
break;
|
|
1441
|
+
case 7 /* NodeTypes.LinkedKey */:
|
|
1442
|
+
generator.push(JSON.stringify(node.value), node);
|
|
1443
|
+
break;
|
|
1444
|
+
case 5 /* NodeTypes.List */:
|
|
1445
|
+
generator.push(`${helper("interpolate" /* HelperNameMap.INTERPOLATE */)}(${helper("list" /* HelperNameMap.LIST */)}(${node.index}))`, node);
|
|
1446
|
+
break;
|
|
1447
|
+
case 4 /* NodeTypes.Named */:
|
|
1448
|
+
generator.push(`${helper("interpolate" /* HelperNameMap.INTERPOLATE */)}(${helper("named" /* HelperNameMap.NAMED */)}(${JSON.stringify(node.key)}))`, node);
|
|
1449
|
+
break;
|
|
1450
|
+
case 9 /* NodeTypes.Literal */:
|
|
1451
|
+
generator.push(JSON.stringify(node.value), node);
|
|
1452
|
+
break;
|
|
1453
|
+
case 3 /* NodeTypes.Text */:
|
|
1454
|
+
generator.push(JSON.stringify(node.value), node);
|
|
1455
|
+
break;
|
|
1456
|
+
default:
|
|
1457
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
1458
|
+
throw createCompileError(CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1459
|
+
domain: ERROR_DOMAIN,
|
|
1460
|
+
args: [node.type]
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
// generate code from AST
|
|
1466
|
+
const generate = (ast, options = {}) => {
|
|
1467
|
+
const mode = isString(options.mode) ? options.mode : 'normal';
|
|
1468
|
+
const filename = isString(options.filename)
|
|
1469
|
+
? options.filename
|
|
1470
|
+
: 'message.intl';
|
|
1471
|
+
const sourceMap = !!options.sourceMap;
|
|
1472
|
+
// prettier-ignore
|
|
1473
|
+
const breakLineCode = options.breakLineCode != null
|
|
1474
|
+
? options.breakLineCode
|
|
1475
|
+
: mode === 'arrow'
|
|
1476
|
+
? ';'
|
|
1477
|
+
: '\n';
|
|
1478
|
+
const needIndent = options.needIndent ? options.needIndent : mode !== 'arrow';
|
|
1479
|
+
const helpers = ast.helpers || [];
|
|
1480
|
+
const generator = createCodeGenerator(ast, {
|
|
1481
|
+
mode,
|
|
1482
|
+
filename,
|
|
1483
|
+
sourceMap,
|
|
1484
|
+
breakLineCode,
|
|
1485
|
+
needIndent
|
|
1486
|
+
});
|
|
1487
|
+
generator.push(mode === 'normal' ? `function __msg__ (ctx) {` : `(ctx) => {`);
|
|
1488
|
+
generator.indent(needIndent);
|
|
1489
|
+
if (helpers.length > 0) {
|
|
1490
|
+
generator.push(`const { ${join(helpers.map(s => `${s}: _${s}`), ', ')} } = ctx`);
|
|
1491
|
+
generator.newline();
|
|
1492
|
+
}
|
|
1493
|
+
generator.push(`return `);
|
|
1494
|
+
generateNode(generator, ast);
|
|
1495
|
+
generator.deindent(needIndent);
|
|
1496
|
+
generator.push(`}`);
|
|
1497
|
+
delete ast.helpers;
|
|
1498
|
+
const { code, map } = generator.context();
|
|
1499
|
+
return {
|
|
1500
|
+
ast,
|
|
1501
|
+
code,
|
|
1502
|
+
map: map ? map.toJSON() : undefined // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1503
|
+
};
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
function baseCompile(source, options = {}) {
|
|
1507
|
+
const assignedOptions = assign({}, options);
|
|
1508
|
+
const jit = !!assignedOptions.jit;
|
|
1509
|
+
const enalbeMinify = !!assignedOptions.minify;
|
|
1510
|
+
const enambeOptimize = assignedOptions.optimize == null ? true : assignedOptions.optimize;
|
|
1511
|
+
// parse source codes
|
|
1512
|
+
const parser = createParser(assignedOptions);
|
|
1513
|
+
const ast = parser.parse(source);
|
|
1514
|
+
if (!jit) {
|
|
1515
|
+
// transform ASTs
|
|
1516
|
+
transform(ast, assignedOptions);
|
|
1517
|
+
// generate javascript codes
|
|
1518
|
+
return generate(ast, assignedOptions);
|
|
1519
|
+
}
|
|
1520
|
+
else {
|
|
1521
|
+
// optimize ASTs
|
|
1522
|
+
enambeOptimize && optimize(ast);
|
|
1523
|
+
// minimize ASTs
|
|
1524
|
+
enalbeMinify && minify(ast);
|
|
1525
|
+
// In JIT mode, no ast transform, no code generation.
|
|
1526
|
+
return { ast, code: '' };
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
export { COMPILE_ERROR_CODES_EXTEND_POINT, CompileErrorCodes, ERROR_DOMAIN$2 as ERROR_DOMAIN, LOCATION_STUB, baseCompile, createCompileError, createLocation, createParser, createPosition, defaultOnError, detectHtmlTag, errorMessages };
|