nuxt-ignis 0.4.0 → 0.5.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.data/content/contents.sqlite +0 -0
- package/.nuxt/app.config.mjs +8 -3
- package/.nuxt/components.d.ts +297 -747
- package/.nuxt/content/components.ts +117 -116
- package/.nuxt/dev/index.mjs +1027 -345
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.json +2 -2
- package/.nuxt/dist/server/client.manifest.mjs +2 -2
- package/.nuxt/eslint-typegen.d.ts +85 -16
- package/.nuxt/eslint.config.d.mts +3 -3
- package/.nuxt/eslint.config.mjs +11 -11
- package/.nuxt/i18n-route-resources.mjs +3 -0
- package/.nuxt/imports.d.ts +79 -86
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/mdc-highlighter.mjs +1 -1
- package/.nuxt/mdc-image-component.mjs +1 -1
- package/.nuxt/mdc-imports.mjs +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +12 -12
- package/.nuxt/module/nuxt-seo-utils.assets.d.ts +1 -1
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +8 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +48 -0
- package/.nuxt/nitro.json +5 -5
- package/.nuxt/nuxt.d.ts +18 -22
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +28 -0
- package/.nuxt/nuxt.shared.d.ts +5 -0
- package/.nuxt/tsconfig.app.json +459 -0
- package/.nuxt/tsconfig.json +283 -301
- package/.nuxt/tsconfig.node.json +218 -0
- package/.nuxt/tsconfig.server.json +193 -166
- package/.nuxt/tsconfig.shared.json +278 -0
- package/.nuxt/types/app.config.d.ts +8 -2
- package/.nuxt/types/build.d.ts +3 -2
- package/.nuxt/types/components.d.ts +321 -0
- package/.nuxt/types/i18n-plugin.d.ts +25 -6
- package/.nuxt/types/imports.d.ts +390 -398
- package/.nuxt/types/modules.d.ts +579 -0
- package/.nuxt/types/neon.d.ts +11 -8
- package/.nuxt/types/nitro-imports.d.ts +394 -355
- package/.nuxt/types/nitro-middleware.d.ts +5 -0
- package/.nuxt/types/nitro-nuxt.d.ts +28 -2
- package/.nuxt/types/nitro-routes.d.ts +28 -25
- package/.nuxt/types/plugins.d.ts +42 -39
- package/.nuxt/types/runtime-config.d.ts +1018 -0
- package/.nuxt/types/ui.d.ts +3 -3
- package/.nuxt/ui/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/drawer.ts +1 -1
- package/.nuxt/ui/file-upload.ts +290 -0
- package/.nuxt/ui/index.ts +1 -0
- package/.nuxt/ui/input.ts +1 -1
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/select.ts +7 -7
- package/.nuxt/ui/table.ts +8 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/textarea.ts +1 -1
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/.nuxt/ui-image-component.ts +1 -1
- package/.output/nitro.json +15 -0
- package/.output/public/__nuxt_content/content/sql_dump.txt +1 -0
- package/.output/public/_fonts/EP1810cmAtyahQPDHB6nvBzRkIG5RcNv4u5vTy1aYHU-6h0m1Bf2RaAhaXNIrP4eW5ztakwJFN8JcCXPea_zL8E.woff2 +0 -0
- package/.output/public/_fonts/JNWOTRocaYj0gq52vW_s7sHAdSMUetrRmhhggCVxyZ0-8R9ucQ623nsXJTayzizuOYtVntUNPQzR8aWYpk8a8d8.woff2 +0 -0
- package/.output/public/_fonts/XbAtjIvy1UErjg9eu_v7X3zPLS_AwsmqVsR9fG-JB6o-s6NA3uLuPs0vnwZNhOTJ1g_7NVire0Uvng_2zP6mjNQ.woff2 +0 -0
- package/.output/public/_fonts/ZLm6CLvwhQbamZ73M80jbqz7DuOkHlT_HRyXHG7YfVs-t7L_F0sYO8m44V7ZmFyCOiGNJDIBFFLVfLeLwCIUhsI.woff2 +0 -0
- package/.output/public/_fonts/aPa9az0DeE4U5rqM-Ov0Vl_obQis_d6sScLNygGkvxw-4s8awL3_7NCZIzHTaY2tD681prJPuNHGqkbChz7OJeE.woff2 +0 -0
- package/.output/public/_fonts/kgyHMsxRmhh06xcV0yKMKdTKQBsQpXGi7erqwaqgjXg-BgCmQXkW3N6talUbQSKexB2sHUT0qGEzmM4uMcnDAbI.woff +0 -0
- package/.output/public/_ignis-config.json +201 -0
- package/.output/public/_nuxt/1soVlS0z.js +1 -0
- package/.output/public/_nuxt/B7rsWaa2.js +1 -0
- package/.output/public/_nuxt/BA2WKEAc.js +1 -0
- package/.output/public/_nuxt/BE_a_Zhd.js +1 -0
- package/.output/public/_nuxt/BFreiu22.js +1 -0
- package/.output/public/_nuxt/BLcTglbc.js +1 -0
- package/.output/public/_nuxt/Bhd4_yFT.js +1 -0
- package/.output/public/_nuxt/Bi2eMDmd.js +1 -0
- package/.output/public/_nuxt/BiUZ9mZX.js +1 -0
- package/.output/public/_nuxt/Bm30MqE0.js +1 -0
- package/.output/public/_nuxt/Bnm5Nral.js +1 -0
- package/.output/public/_nuxt/BrY1radz.js +35 -0
- package/.output/public/_nuxt/Bs3IGOdt.js +1 -0
- package/.output/public/_nuxt/ByaiRTkI.js +1 -0
- package/.output/public/_nuxt/CA578xwz.js +1 -0
- package/.output/public/_nuxt/CDttUXKg.js +1 -0
- package/.output/public/_nuxt/CSN71QT8.js +1 -0
- package/.output/public/_nuxt/CmzFGS1a.js +90 -0
- package/.output/public/_nuxt/CqCaqSd2.js +1 -0
- package/.output/public/_nuxt/D8v-efI7.js +1 -0
- package/.output/public/_nuxt/DR4hWRk7.js +1 -0
- package/.output/public/_nuxt/DRroQ-Xq.js +1 -0
- package/.output/public/_nuxt/DStnBfJS.js +1 -0
- package/.output/public/_nuxt/DXBpKbsa.js +6759 -0
- package/.output/public/_nuxt/DXTYyv-V.js +1 -0
- package/.output/public/_nuxt/DXbccJ2T.js +1 -0
- package/.output/public/_nuxt/DeS1g0YT.js +1 -0
- package/.output/public/_nuxt/Deb6R53f.js +1 -0
- package/.output/public/_nuxt/DiDHllLr.js +1 -0
- package/.output/public/_nuxt/DyCICqRh.js +1 -0
- package/.output/public/_nuxt/DzT4wm3Y.js +1 -0
- package/.output/public/_nuxt/E8nje24C.js +1 -0
- package/.output/public/_nuxt/ProsePre.D5orA6B_.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/9a624d26-216d-4e69-b3a7-54b68357876f.json +1 -0
- package/.output/public/_nuxt/dJ-vStNn.js +1 -0
- package/.output/public/_nuxt/entry.jMyW6Sg0.css +1 -0
- package/.output/public/_nuxt/error-404.BGUbR0Uk.css +1 -0
- package/.output/public/_nuxt/error-500.CQfkKpQ2.css +1 -0
- package/.output/public/_nuxt/sHsV3x2B.js +1 -0
- package/.output/public/_nuxt/sQEqbbg2.js +1 -0
- package/.output/public/_nuxt/vueform.ChEauysg.css +1 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/nuxt-ignis.png +0 -0
- package/.output/public/unsplash.jpg +0 -0
- package/.output/server/chunks/_/error-500.mjs +10 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/i18n.config.mjs +39 -0
- package/.output/server/chunks/_/i18n.config.mjs.map +1 -0
- package/.output/server/chunks/_/nitro.mjs +12834 -0
- package/.output/server/chunks/_/nitro.mjs.map +1 -0
- package/.output/server/chunks/build/client.manifest.mjs +511 -0
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -0
- package/.output/server/chunks/build/database.compressed.mjs +4 -0
- package/.output/server/chunks/build/database.compressed.mjs.map +1 -0
- package/.output/server/chunks/raw/headers.mjs +5 -0
- package/.output/server/chunks/raw/headers.mjs.map +1 -0
- package/.output/server/chunks/routes/api/neonTest.mjs +41 -0
- package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +352 -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/chunks/virtual/child-sources.mjs +4 -0
- package/.output/server/chunks/virtual/child-sources.mjs.map +1 -0
- package/.output/server/chunks/virtual/global-sources.mjs +48 -0
- package/.output/server/chunks/virtual/global-sources.mjs.map +1 -0
- package/.output/server/index.mjs +49 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/convertor/create.cjs +32 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data-patch.cjs +7 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/data.cjs +97 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/generate.cjs +135 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/index.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/parse.cjs +588 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/tokenizer.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/definition-syntax/walk.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/create.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/sourceMap.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/generator/token-before.cjs +170 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/index.cjs +63 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/Lexer.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/error.cjs +128 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-const.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic-urange.cjs +149 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/generic.cjs +573 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match-graph.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/match.cjs +632 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/prepare-tokens.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/search.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/structure.cjs +168 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/lexer/trace.cjs +73 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/SyntaxError.cjs +69 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/create.cjs +336 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/parser/sequence.cjs +47 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/font-face.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/import.cjs +37 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/index.cjs +17 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/media.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/page.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/atrule/supports.cjs +77 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/lexer.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/mix.cjs +142 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/parser.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/config/walker.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/create.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/expression.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/function/var.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/index.cjs +14 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AnPlusB.cjs +293 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Atrule.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Block.cjs +90 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Brackets.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDC.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/CDO.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/ClassSelector.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Combinator.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Comment.cjs +40 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Declaration.cjs +166 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/DeclarationList.cjs +50 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Dimension.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Function.cjs +45 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Hash.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/IdSelector.cjs +33 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Identifier.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaFeature.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQuery.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Nth.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Number.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Operator.cjs +28 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Parentheses.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Percentage.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Ratio.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Raw.cjs +48 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Rule.cjs +58 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Selector.cjs +39 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/SelectorList.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/String.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/StyleSheet.cjs +83 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/TypeSelector.cjs +59 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Url.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/Value.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index-parse.cjs +85 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/node/index.cjs +85 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/pseudo/index.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/default.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/index.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/selector.cjs +84 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/syntax/scope/value.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/TokenStream.cjs +264 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/index.cjs +554 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/names.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/types.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/tokenizer/utils.cjs +261 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/List.cjs +473 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/clone.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/create-custom-error.cjs +18 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/ident.cjs +102 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/names.cjs +113 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/string.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/utils/url.cjs +108 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/version.cjs +5 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/cjs/walker/create.cjs +291 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/data/patch.json +739 -0
- package/.output/server/node_modules/.nitro/css-tree@2.2.1/package.json +127 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/convertor/create.cjs +32 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data-patch.cjs +7 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/data.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/SyntaxError.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/generate.cjs +135 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/index.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/parse.cjs +588 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/tokenizer.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/definition-syntax/walk.cjs +56 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/create.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/sourceMap.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/generator/token-before.cjs +170 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/index.cjs +63 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/Lexer.cjs +470 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/error.cjs +128 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-an-plus-b.cjs +235 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-const.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic-urange.cjs +149 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/generic.cjs +573 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match-graph.cjs +459 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/match.cjs +632 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/prepare-tokens.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/search.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/structure.cjs +168 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/trace.cjs +73 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/lexer/units.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/SyntaxError.cjs +69 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/create.cjs +336 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/parser/sequence.cjs +47 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/font-face.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/import.cjs +37 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/index.cjs +19 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/media.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/nest.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/page.cjs +16 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/atrule/supports.cjs +77 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/lexer.cjs +12 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/mix.cjs +119 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/parser.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/config/walker.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/create.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/expression.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/function/var.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/index.cjs +14 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AnPlusB.cjs +293 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Atrule.cjs +103 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AtrulePrelude.cjs +52 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/AttributeSelector.cjs +148 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Block.cjs +96 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Brackets.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDC.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/CDO.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/ClassSelector.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Combinator.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Comment.cjs +40 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Declaration.cjs +166 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/DeclarationList.cjs +62 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Dimension.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Function.cjs +45 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Hash.cjs +30 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/IdSelector.cjs +33 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Identifier.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaFeature.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQuery.cjs +61 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/MediaQueryList.cjs +41 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/NestingSelector.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Nth.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Number.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Operator.cjs +28 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Parentheses.cjs +38 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Percentage.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoClassSelector.cjs +65 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/PseudoElementSelector.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Ratio.cjs +67 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Raw.cjs +48 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Rule.cjs +58 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Selector.cjs +39 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/SelectorList.cjs +43 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/String.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/StyleSheet.cjs +83 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/TypeSelector.cjs +59 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/UnicodeRange.cjs +158 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Url.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/Value.cjs +26 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/WhiteSpace.cjs +34 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index-parse.cjs +87 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/node/index.cjs +87 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/pseudo/index.cjs +54 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/atrulePrelude.cjs +9 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/default.cjs +76 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/index.cjs +11 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/selector.cjs +88 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/syntax/scope/value.cjs +29 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/OffsetToLocation.cjs +91 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/TokenStream.cjs +264 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/adopt-buffer.cjs +13 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/char-code-definitions.cjs +231 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/index.cjs +554 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/names.cjs +31 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/types.cjs +57 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/tokenizer/utils.cjs +261 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/List.cjs +473 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/clone.cjs +25 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/create-custom-error.cjs +18 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/ident.cjs +102 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/names.cjs +113 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/string.cjs +99 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/utils/url.cjs +108 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/version.cjs +5 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/cjs/walker/create.cjs +291 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/data/patch.json +725 -0
- package/.output/server/node_modules/.nitro/css-tree@2.3.1/package.json +126 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode.js +536 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/decode_codepoint.js +76 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/encode.js +77 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/escape.js +122 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +9 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +9 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/encode-html.js +12 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/index.js +126 -0
- package/.output/server/node_modules/.nitro/entities@4.5.0/package.json +90 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode-codepoint.js +72 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/decode.js +497 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/escape.js +117 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/dist/esm/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@6.0.1/package.json +118 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/at-rules.json +620 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/properties.json +9297 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/css/syntaxes.json +794 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.28/package.json +38 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/at-rules.json +620 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/properties.json +9626 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/css/syntaxes.json +866 -0
- package/.output/server/node_modules/.nitro/mdn-data@2.0.30/package.json +38 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +18 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +59 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +68 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +28 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +322 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +7 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +567 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +10 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +8 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +58 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +44 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +25 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +26 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +28 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/types.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +93 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/index.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/aria.js +61 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/find.js +97 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/hast-to-react.js +30 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/html.js +322 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/normalize.js +12 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/svg.js +567 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-insensitive-transform.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/case-sensitive-transform.js +11 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/create.js +69 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/defined-info.js +60 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/info.js +32 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/merge.js +27 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/schema.js +29 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +13 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xlink.js +17 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xml.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/xmlns.js +9 -0
- package/.output/server/node_modules/.nitro/property-information@7.1.0/package.json +121 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
- package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14595 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@fastify/accept-negotiator/index.js +170 -0
- package/.output/server/node_modules/@fastify/accept-negotiator/package.json +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.mjs +350 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.mjs +188 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.mjs +90 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.mjs +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.mjs +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.mjs +168 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.mjs +14 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.mjs +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.mjs +84 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.mjs +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.mjs +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.mjs +231 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.mjs +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.mjs +164 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.mjs +216 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.mjs +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.mjs +104 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.mjs +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.mjs +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.mjs +97 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.mjs +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.mjs +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.mjs +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.mjs +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.mjs +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.mjs +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.mjs +182 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.mjs +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.mjs +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.mjs +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.mjs +51 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.mjs +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.mjs +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.mjs +161 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.mjs +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.mjs +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.mjs +59 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.mjs +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.mjs +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.mjs +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.mjs +119 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.mjs +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.mjs +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.mjs +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.mjs +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.mjs +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.mjs +83 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.mjs +70 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.mjs +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.mjs +5 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.mjs +11 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.mjs +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +447 -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 +61 -0
- package/.output/server/node_modules/@intlify/h3/package.json +89 -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/index.mjs +121 -0
- package/.output/server/node_modules/@intlify/utils/dist/shared/utils.12d9adcd.mjs +133 -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/@lukeed/ms/dist/index.mjs +34 -0
- package/.output/server/node_modules/@lukeed/ms/package.json +48 -0
- package/.output/server/node_modules/@neondatabase/serverless/index.mjs +1374 -0
- package/.output/server/node_modules/@neondatabase/serverless/package.json +115 -0
- package/.output/server/node_modules/@phc/format/index.js +229 -0
- package/.output/server/node_modules/@phc/format/package.json +60 -0
- package/.output/server/node_modules/@poppinss/exception/build/index.js +63 -0
- package/.output/server/node_modules/@poppinss/exception/package.json +106 -0
- package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
- package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
- package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +407 -0
- package/.output/server/node_modules/@poppinss/string/build/index.js +6 -0
- package/.output/server/node_modules/@poppinss/string/package.json +128 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
- package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
- package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
- package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +2333 -0
- package/.output/server/node_modules/@shikijs/core/package.json +49 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs +52 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/engine-raw.mjs +22 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/index.mjs +4 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs +93 -0
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +39 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/index.mjs +448 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs +8 -0
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +42 -0
- package/.output/server/node_modules/@shikijs/langs/dist/css.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html-derivative.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/html.mjs +10 -0
- package/.output/server/node_modules/@shikijs/langs/dist/javascript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/json.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/jsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown-vue.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/markdown.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/mdc.mjs +12 -0
- package/.output/server/node_modules/@shikijs/langs/dist/shellscript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/tsx.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/typescript.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-directives.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-interpolations.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/.output/server/node_modules/@shikijs/langs/dist/vue.mjs +26 -0
- package/.output/server/node_modules/@shikijs/langs/dist/yaml.mjs +5 -0
- package/.output/server/node_modules/@shikijs/langs/package.json +357 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-dark.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/dist/github-light.mjs +2 -0
- package/.output/server/node_modules/@shikijs/themes/package.json +98 -0
- package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +744 -0
- package/.output/server/node_modules/@shikijs/transformers/package.json +37 -0
- package/.output/server/node_modules/@shikijs/types/dist/index.mjs +8 -0
- package/.output/server/node_modules/@shikijs/types/package.json +36 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/dist/index.js +3216 -0
- package/.output/server/node_modules/@shikijs/vscode-textmate/package.json +46 -0
- package/.output/server/node_modules/@sindresorhus/is/dist/index.js +434 -0
- package/.output/server/node_modules/@sindresorhus/is/package.json +96 -0
- package/.output/server/node_modules/@trysound/sax/lib/sax.js +1413 -0
- package/.output/server/node_modules/@trysound/sax/package.json +30 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/index.js +25 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/serialize.js +171 -0
- package/.output/server/node_modules/@ungap/structured-clone/esm/types.js +11 -0
- package/.output/server/node_modules/@ungap/structured-clone/package.json +54 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6706 -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 +686 -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 +1402 -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 +1806 -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 +6734 -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 +1677 -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/bail/index.js +12 -0
- package/.output/server/node_modules/bail/package.json +73 -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 +62 -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/boolbase/index.js +8 -0
- package/.output/server/node_modules/boolbase/package.json +23 -0
- package/.output/server/node_modules/bytes/index.js +170 -0
- package/.output/server/node_modules/bytes/package.json +42 -0
- package/.output/server/node_modules/case-anything/dist/core.js +242 -0
- package/.output/server/node_modules/case-anything/dist/index.js +1 -0
- package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
- package/.output/server/node_modules/case-anything/package.json +61 -0
- package/.output/server/node_modules/ccount/index.js +27 -0
- package/.output/server/node_modules/ccount/package.json +71 -0
- package/.output/server/node_modules/char-regex/index.js +39 -0
- package/.output/server/node_modules/char-regex/package.json +44 -0
- package/.output/server/node_modules/character-entities/index.js +2132 -0
- package/.output/server/node_modules/character-entities/package.json +78 -0
- package/.output/server/node_modules/character-entities-html4/index.js +259 -0
- package/.output/server/node_modules/character-entities-html4/package.json +79 -0
- package/.output/server/node_modules/character-entities-legacy/index.js +113 -0
- package/.output/server/node_modules/character-entities-legacy/package.json +77 -0
- package/.output/server/node_modules/character-reference-invalid/index.js +35 -0
- package/.output/server/node_modules/character-reference-invalid/package.json +83 -0
- package/.output/server/node_modules/color/index.js +496 -0
- package/.output/server/node_modules/color/package.json +47 -0
- package/.output/server/node_modules/color-convert/conversions.js +839 -0
- package/.output/server/node_modules/color-convert/index.js +81 -0
- package/.output/server/node_modules/color-convert/package.json +48 -0
- package/.output/server/node_modules/color-convert/route.js +97 -0
- package/.output/server/node_modules/color-name/index.js +152 -0
- package/.output/server/node_modules/color-name/package.json +28 -0
- package/.output/server/node_modules/color-string/index.js +242 -0
- package/.output/server/node_modules/color-string/package.json +39 -0
- package/.output/server/node_modules/comma-separated-tokens/index.js +74 -0
- package/.output/server/node_modules/comma-separated-tokens/package.json +72 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -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/css-select/lib/attributes.js +236 -0
- package/.output/server/node_modules/css-select/lib/compile.js +151 -0
- package/.output/server/node_modules/css-select/lib/general.js +148 -0
- package/.output/server/node_modules/css-select/lib/index.js +154 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/aliases.js +34 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/filters.js +157 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/index.js +46 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/pseudos.js +93 -0
- package/.output/server/node_modules/css-select/lib/pseudo-selectors/subselects.js +112 -0
- package/.output/server/node_modules/css-select/lib/sort.js +84 -0
- package/.output/server/node_modules/css-select/package.json +81 -0
- package/.output/server/node_modules/css-what/lib/commonjs/index.js +23 -0
- package/.output/server/node_modules/css-what/lib/commonjs/parse.js +425 -0
- package/.output/server/node_modules/css-what/lib/commonjs/stringify.js +138 -0
- package/.output/server/node_modules/css-what/lib/commonjs/types.js +42 -0
- package/.output/server/node_modules/css-what/package.json +59 -0
- package/.output/server/node_modules/cssfilter/lib/css.js +110 -0
- package/.output/server/node_modules/cssfilter/lib/default.js +398 -0
- package/.output/server/node_modules/cssfilter/lib/index.js +32 -0
- package/.output/server/node_modules/cssfilter/lib/parser.js +74 -0
- package/.output/server/node_modules/cssfilter/lib/util.js +35 -0
- package/.output/server/node_modules/cssfilter/package.json +49 -0
- package/.output/server/node_modules/csso/cjs/clean/Atrule.cjs +73 -0
- package/.output/server/node_modules/csso/cjs/clean/Comment.cjs +7 -0
- package/.output/server/node_modules/csso/cjs/clean/Declaration.cjs +18 -0
- package/.output/server/node_modules/csso/cjs/clean/Raw.cjs +13 -0
- package/.output/server/node_modules/csso/cjs/clean/Rule.cjs +104 -0
- package/.output/server/node_modules/csso/cjs/clean/TypeSelector.cjs +23 -0
- package/.output/server/node_modules/csso/cjs/clean/WhiteSpace.cjs +7 -0
- package/.output/server/node_modules/csso/cjs/clean/index.cjs +32 -0
- package/.output/server/node_modules/csso/cjs/clean/utils.cjs +12 -0
- package/.output/server/node_modules/csso/cjs/compress.cjs +200 -0
- package/.output/server/node_modules/csso/cjs/index.cjs +127 -0
- package/.output/server/node_modules/csso/cjs/replace/Atrule.cjs +13 -0
- package/.output/server/node_modules/csso/cjs/replace/AttributeSelector.cjs +32 -0
- package/.output/server/node_modules/csso/cjs/replace/Dimension.cjs +67 -0
- package/.output/server/node_modules/csso/cjs/replace/Number.cjs +45 -0
- package/.output/server/node_modules/csso/cjs/replace/Percentage.cjs +41 -0
- package/.output/server/node_modules/csso/cjs/replace/Url.cjs +8 -0
- package/.output/server/node_modules/csso/cjs/replace/Value.cjs +29 -0
- package/.output/server/node_modules/csso/cjs/replace/atrule/keyframes.cjs +25 -0
- package/.output/server/node_modules/csso/cjs/replace/color.cjs +504 -0
- package/.output/server/node_modules/csso/cjs/replace/index.cjs +36 -0
- package/.output/server/node_modules/csso/cjs/replace/property/background.cjs +54 -0
- package/.output/server/node_modules/csso/cjs/replace/property/border.cjs +20 -0
- package/.output/server/node_modules/csso/cjs/replace/property/font-weight.cjs +26 -0
- package/.output/server/node_modules/csso/cjs/replace/property/font.cjs +34 -0
- package/.output/server/node_modules/csso/cjs/restructure/1-mergeAtrule.cjs +109 -0
- package/.output/server/node_modules/csso/cjs/restructure/2-initialMergeRuleset.cjs +51 -0
- package/.output/server/node_modules/csso/cjs/restructure/3-disjoinRuleset.cjs +46 -0
- package/.output/server/node_modules/csso/cjs/restructure/4-restructShorthand.cjs +429 -0
- package/.output/server/node_modules/csso/cjs/restructure/6-restructBlock.cjs +307 -0
- package/.output/server/node_modules/csso/cjs/restructure/7-mergeRuleset.cjs +90 -0
- package/.output/server/node_modules/csso/cjs/restructure/8-restructRuleset.cjs +175 -0
- package/.output/server/node_modules/csso/cjs/restructure/index.cjs +39 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/createDeclarationIndexer.cjs +34 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/index.cjs +45 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/processSelector.cjs +101 -0
- package/.output/server/node_modules/csso/cjs/restructure/prepare/specificity.cjs +133 -0
- package/.output/server/node_modules/csso/cjs/restructure/utils.cjs +151 -0
- package/.output/server/node_modules/csso/cjs/syntax.cjs +60 -0
- package/.output/server/node_modules/csso/cjs/usage.cjs +75 -0
- package/.output/server/node_modules/csso/cjs/utils.cjs +14 -0
- package/.output/server/node_modules/csso/cjs/version.cjs +5 -0
- package/.output/server/node_modules/csso/package.json +82 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/decode-named-character-reference/index.js +19 -0
- package/.output/server/node_modules/decode-named-character-reference/package.json +89 -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/destr/dist/index.mjs +72 -0
- package/.output/server/node_modules/destr/package.json +47 -0
- package/.output/server/node_modules/detab/index.js +45 -0
- package/.output/server/node_modules/detab/package.json +71 -0
- package/.output/server/node_modules/detect-libc/lib/detect-libc.js +267 -0
- package/.output/server/node_modules/detect-libc/lib/filesystem.js +41 -0
- package/.output/server/node_modules/detect-libc/lib/process.js +24 -0
- package/.output/server/node_modules/detect-libc/package.json +41 -0
- package/.output/server/node_modules/devalue/index.js +3 -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 +195 -0
- package/.output/server/node_modules/devalue/src/stringify.js +261 -0
- package/.output/server/node_modules/devalue/src/uneval.js +402 -0
- package/.output/server/node_modules/devalue/src/utils.js +114 -0
- package/.output/server/node_modules/devlop/lib/default.js +9 -0
- package/.output/server/node_modules/devlop/package.json +80 -0
- package/.output/server/node_modules/dom-serializer/lib/foreignNames.js +103 -0
- package/.output/server/node_modules/dom-serializer/lib/index.js +229 -0
- package/.output/server/node_modules/dom-serializer/package.json +69 -0
- package/.output/server/node_modules/domelementtype/lib/index.js +55 -0
- package/.output/server/node_modules/domelementtype/package.json +54 -0
- package/.output/server/node_modules/domhandler/lib/index.js +165 -0
- package/.output/server/node_modules/domhandler/lib/node.js +474 -0
- package/.output/server/node_modules/domhandler/package.json +73 -0
- package/.output/server/node_modules/domutils/lib/feeds.js +190 -0
- package/.output/server/node_modules/domutils/lib/helpers.js +142 -0
- package/.output/server/node_modules/domutils/lib/index.js +33 -0
- package/.output/server/node_modules/domutils/lib/legacy.js +168 -0
- package/.output/server/node_modules/domutils/lib/manipulation.js +142 -0
- package/.output/server/node_modules/domutils/lib/querying.js +155 -0
- package/.output/server/node_modules/domutils/lib/stringify.js +91 -0
- package/.output/server/node_modules/domutils/lib/traversal.js +125 -0
- package/.output/server/node_modules/domutils/package.json +79 -0
- package/.output/server/node_modules/emojilib/emojis.json +9422 -0
- package/.output/server/node_modules/emojilib/index.js +5 -0
- package/.output/server/node_modules/emojilib/ordered.json +1572 -0
- package/.output/server/node_modules/emojilib/package.json +41 -0
- package/.output/server/node_modules/emoticon/index.js +480 -0
- package/.output/server/node_modules/emoticon/package.json +88 -0
- package/.output/server/node_modules/escape-string-regexp/index.js +11 -0
- package/.output/server/node_modules/escape-string-regexp/package.json +40 -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/etag/index.js +131 -0
- package/.output/server/node_modules/etag/package.json +47 -0
- package/.output/server/node_modules/extend/index.js +117 -0
- package/.output/server/node_modules/extend/package.json +42 -0
- package/.output/server/node_modules/fast-xml-parser/package.json +90 -0
- package/.output/server/node_modules/fast-xml-parser/src/fxp.js +14 -0
- package/.output/server/node_modules/fast-xml-parser/src/ignoreAttributes.js +18 -0
- package/.output/server/node_modules/fast-xml-parser/src/util.js +68 -0
- package/.output/server/node_modules/fast-xml-parser/src/validator.js +425 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +285 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js +134 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +369 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +46 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +606 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +71 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/node2json.js +119 -0
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +40 -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/flat/index.js +157 -0
- package/.output/server/node_modules/flat/package.json +49 -0
- package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
- package/.output/server/node_modules/flattie/package.json +48 -0
- package/.output/server/node_modules/github-slugger/index.js +77 -0
- package/.output/server/node_modules/github-slugger/package.json +71 -0
- package/.output/server/node_modules/github-slugger/regex.js +3 -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/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/hast-util-embedded/index.js +1 -0
- package/.output/server/node_modules/hast-util-embedded/lib/index.js +33 -0
- package/.output/server/node_modules/hast-util-embedded/package.json +78 -0
- package/.output/server/node_modules/hast-util-format/index.js +2 -0
- package/.output/server/node_modules/hast-util-format/lib/index.js +186 -0
- package/.output/server/node_modules/hast-util-format/package.json +124 -0
- package/.output/server/node_modules/hast-util-from-parse5/index.js +2 -0
- package/.output/server/node_modules/hast-util-from-parse5/lib/index.js +337 -0
- package/.output/server/node_modules/hast-util-from-parse5/package.json +120 -0
- package/.output/server/node_modules/hast-util-has-property/index.js +1 -0
- package/.output/server/node_modules/hast-util-has-property/lib/index.js +29 -0
- package/.output/server/node_modules/hast-util-has-property/package.json +79 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/index.js +46 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/lib/index.js +38 -0
- package/.output/server/node_modules/hast-util-is-body-ok-link/package.json +52 -0
- package/.output/server/node_modules/hast-util-is-element/index.js +7 -0
- package/.output/server/node_modules/hast-util-is-element/lib/index.js +278 -0
- package/.output/server/node_modules/hast-util-is-element/package.json +82 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/index.js +69 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/block.js +61 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/content.js +7 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/index.js +377 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/lib/skippable.js +20 -0
- package/.output/server/node_modules/hast-util-minify-whitespace/package.json +56 -0
- package/.output/server/node_modules/hast-util-parse-selector/index.js +1 -0
- package/.output/server/node_modules/hast-util-parse-selector/lib/index.js +87 -0
- package/.output/server/node_modules/hast-util-parse-selector/package.json +79 -0
- package/.output/server/node_modules/hast-util-phrasing/index.js +1 -0
- package/.output/server/node_modules/hast-util-phrasing/lib/index.js +78 -0
- package/.output/server/node_modules/hast-util-phrasing/package.json +83 -0
- package/.output/server/node_modules/hast-util-raw/index.js +2 -0
- package/.output/server/node_modules/hast-util-raw/lib/index.js +682 -0
- package/.output/server/node_modules/hast-util-raw/package.json +123 -0
- package/.output/server/node_modules/hast-util-to-html/index.js +8 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/comment.js +52 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/doctype.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/element.js +265 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/index.js +47 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/raw.js +27 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/root.js +22 -0
- package/.output/server/node_modules/hast-util-to-html/lib/handle/text.js +38 -0
- package/.output/server/node_modules/hast-util-to-html/lib/index.js +257 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/closing.js +358 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/omission.js +44 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/opening.js +148 -0
- package/.output/server/node_modules/hast-util-to-html/lib/omission/util/siblings.js +50 -0
- package/.output/server/node_modules/hast-util-to-html/package.json +106 -0
- package/.output/server/node_modules/hast-util-to-mdast/index.js +13 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/a.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/base.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/blockquote.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/br.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/code.js +65 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/comment.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/del.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/dl.js +144 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/em.js +24 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/heading.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/hr.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/iframe.js +35 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/img.js +27 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/index.js +233 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/inline-code.js +22 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/input.js +137 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/li.js +147 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/list.js +47 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/media.js +82 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/p.js +30 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/q.js +43 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/root.js +28 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/select.js +34 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/strong.js +24 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-cell.js +38 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table-row.js +29 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/table.js +203 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/text.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/textarea.js +22 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/handlers/wbr.js +20 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/index.js +111 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/state.js +389 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/drop-surrounding-breaks.js +23 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/find-selected-options.js +90 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/list-items-spread.js +25 -0
- package/.output/server/node_modules/hast-util-to-mdast/lib/util/wrap.js +223 -0
- package/.output/server/node_modules/hast-util-to-mdast/package.json +124 -0
- package/.output/server/node_modules/hast-util-to-parse5/index.js +6 -0
- package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +338 -0
- package/.output/server/node_modules/hast-util-to-parse5/package.json +87 -0
- package/.output/server/node_modules/hast-util-to-string/index.js +46 -0
- package/.output/server/node_modules/hast-util-to-string/lib/index.js +54 -0
- package/.output/server/node_modules/hast-util-to-string/package.json +54 -0
- package/.output/server/node_modules/hast-util-to-text/index.js +6 -0
- package/.output/server/node_modules/hast-util-to-text/lib/index.js +633 -0
- package/.output/server/node_modules/hast-util-to-text/package.json +87 -0
- package/.output/server/node_modules/hast-util-whitespace/index.js +1 -0
- package/.output/server/node_modules/hast-util-whitespace/lib/index.js +34 -0
- package/.output/server/node_modules/hast-util-whitespace/package.json +83 -0
- package/.output/server/node_modules/hastscript/index.js +7 -0
- package/.output/server/node_modules/hastscript/lib/create-h.js +365 -0
- package/.output/server/node_modules/hastscript/lib/index.js +27 -0
- package/.output/server/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js +46 -0
- package/.output/server/node_modules/hastscript/package.json +126 -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/html-void-elements/index.js +27 -0
- package/.output/server/node_modules/html-void-elements/package.json +79 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/index.js +28 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/lib/index.js +9 -0
- package/.output/server/node_modules/html-whitespace-sensitive-tag-names/package.json +48 -0
- package/.output/server/node_modules/image-meta/dist/index.mjs +785 -0
- package/.output/server/node_modules/image-meta/package.json +46 -0
- package/.output/server/node_modules/ipx/dist/index.mjs +52 -0
- package/.output/server/node_modules/ipx/dist/shared/ipx.e4d5b25d.mjs +761 -0
- package/.output/server/node_modules/ipx/package.json +72 -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/is-absolute-url/index.js +18 -0
- package/.output/server/node_modules/is-absolute-url/package.json +37 -0
- package/.output/server/node_modules/is-alphabetical/index.js +16 -0
- package/.output/server/node_modules/is-alphabetical/package.json +73 -0
- package/.output/server/node_modules/is-alphanumerical/index.js +13 -0
- package/.output/server/node_modules/is-alphanumerical/package.json +79 -0
- package/.output/server/node_modules/is-arrayish/index.js +9 -0
- package/.output/server/node_modules/is-arrayish/package.json +45 -0
- package/.output/server/node_modules/is-decimal/index.js +13 -0
- package/.output/server/node_modules/is-decimal/package.json +73 -0
- package/.output/server/node_modules/is-hexadecimal/index.js +17 -0
- package/.output/server/node_modules/is-hexadecimal/package.json +73 -0
- package/.output/server/node_modules/is-plain-obj/index.js +8 -0
- package/.output/server/node_modules/is-plain-obj/package.json +41 -0
- package/.output/server/node_modules/jose/dist/webapi/index.js +30 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +165 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +165 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +187 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +119 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +179 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +18 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +86 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +116 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +73 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +108 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +52 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +63 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/.output/server/node_modules/jose/dist/webapi/key/export.js +11 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +97 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/aesgcmkw.js +16 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/aeskw.js +25 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +247 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/cek.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_cek_length.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_iv_length.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_length.js +8 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +126 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +147 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/decrypt.js +106 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/decrypt_key_management.js +127 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/digest.js +4 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/ecdhes.js +52 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/encrypt.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/encrypt_key_management.js +92 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/epoch.js +1 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/get_sign_verify_key.js +12 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_disjoint.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_jwk.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_object.js +16 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/iv.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +109 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +185 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_to_jwk.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/normalize_key.js +176 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/pbes2kw.js +37 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/private_symbols.js +1 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/rsaes.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/secs.js +55 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/sign.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/subtle_dsa.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/validate_algorithms.js +10 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/validate_crit.js +33 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/verify.js +14 -0
- package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +30 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +34 -0
- package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/.output/server/node_modules/jose/package.json +200 -0
- package/.output/server/node_modules/longest-streak/index.js +36 -0
- package/.output/server/node_modules/longest-streak/package.json +73 -0
- package/.output/server/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/.output/server/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/.output/server/node_modules/lru-cache/package.json +116 -0
- package/.output/server/node_modules/markdown-table/index.js +393 -0
- package/.output/server/node_modules/markdown-table/package.json +77 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/index.js +11 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/lib/index.js +261 -0
- package/.output/server/node_modules/mdast-util-find-and-replace/package.json +85 -0
- package/.output/server/node_modules/mdast-util-from-markdown/index.js +2 -0
- package/.output/server/node_modules/mdast-util-from-markdown/lib/index.js +1177 -0
- package/.output/server/node_modules/mdast-util-from-markdown/package.json +139 -0
- package/.output/server/node_modules/mdast-util-gfm/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm/lib/index.js +63 -0
- package/.output/server/node_modules/mdast-util-gfm/package.json +125 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/index.js +4 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +280 -0
- package/.output/server/node_modules/mdast-util-gfm-autolink-literal/package.json +106 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/lib/index.js +212 -0
- package/.output/server/node_modules/mdast-util-gfm-footnote/package.json +111 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/index.js +5 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/lib/index.js +106 -0
- package/.output/server/node_modules/mdast-util-gfm-strikethrough/package.json +99 -0
- package/.output/server/node_modules/mdast-util-gfm-table/index.js +2 -0
- package/.output/server/node_modules/mdast-util-gfm-table/lib/index.js +300 -0
- package/.output/server/node_modules/mdast-util-gfm-table/package.json +101 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/index.js +4 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/lib/index.js +141 -0
- package/.output/server/node_modules/mdast-util-gfm-task-list-item/package.json +90 -0
- package/.output/server/node_modules/mdast-util-phrasing/index.js +1 -0
- package/.output/server/node_modules/mdast-util-phrasing/lib/index.js +45 -0
- package/.output/server/node_modules/mdast-util-phrasing/package.json +78 -0
- package/.output/server/node_modules/mdast-util-to-hast/index.js +7 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/footer.js +252 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/break.js +26 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/code.js +50 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/delete.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +70 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/heading.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/html.js +31 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +41 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/image.js +36 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/index.js +64 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +35 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +46 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/link.js +37 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +125 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/list.js +56 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/root.js +26 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/strong.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +32 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +69 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/table.js +61 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/text.js +25 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +30 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/index.js +106 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/revert.js +55 -0
- package/.output/server/node_modules/mdast-util-to-hast/lib/state.js +473 -0
- package/.output/server/node_modules/mdast-util-to-hast/package.json +118 -0
- package/.output/server/node_modules/mdast-util-to-markdown/index.js +3 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/configure.js +79 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +29 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/break.js +30 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/code.js +75 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/definition.js +76 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +69 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/heading.js +75 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/html.js +20 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +63 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/image.js +82 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/index.js +45 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +76 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +63 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/link.js +114 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +62 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/list.js +100 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +20 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/root.js +23 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/strong.js +69 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/text.js +15 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/index.js +187 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/join.js +39 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/unsafe.js +146 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/association.js +33 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +38 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +21 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +24 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +84 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +125 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +11 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +82 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +22 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +34 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +34 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +35 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +41 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/safe.js +174 -0
- package/.output/server/node_modules/mdast-util-to-markdown/lib/util/track.js +55 -0
- package/.output/server/node_modules/mdast-util-to-markdown/package.json +132 -0
- package/.output/server/node_modules/mdast-util-to-string/index.js +5 -0
- package/.output/server/node_modules/mdast-util-to-string/lib/index.js +108 -0
- package/.output/server/node_modules/mdast-util-to-string/package.json +78 -0
- package/.output/server/node_modules/micromark/index.js +60 -0
- package/.output/server/node_modules/micromark/lib/compile.js +1060 -0
- package/.output/server/node_modules/micromark/lib/constructs.js +85 -0
- package/.output/server/node_modules/micromark/lib/create-tokenizer.js +611 -0
- package/.output/server/node_modules/micromark/lib/initialize/content.js +79 -0
- package/.output/server/node_modules/micromark/lib/initialize/document.js +362 -0
- package/.output/server/node_modules/micromark/lib/initialize/flow.js +58 -0
- package/.output/server/node_modules/micromark/lib/initialize/text.js +212 -0
- package/.output/server/node_modules/micromark/lib/parse.js +56 -0
- package/.output/server/node_modules/micromark/lib/postprocess.js +18 -0
- package/.output/server/node_modules/micromark/lib/preprocess.js +115 -0
- package/.output/server/node_modules/micromark/package.json +100 -0
- package/.output/server/node_modules/micromark-core-commonmark/index.js +22 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/attention.js +241 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/autolink.js +233 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/blank-line.js +61 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/block-quote.js +143 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/character-escape.js +64 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/character-reference.js +149 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-fenced.js +460 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-indented.js +177 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/code-text.js +225 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/content.js +163 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/definition.js +254 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +60 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/heading-atx.js +195 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/html-flow.js +876 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/html-text.js +678 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-end.js +560 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-image.js +102 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/label-start-link.js +55 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/line-ending.js +33 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/list.js +213 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/setext-underline.js +185 -0
- package/.output/server/node_modules/micromark-core-commonmark/lib/thematic-break.js +102 -0
- package/.output/server/node_modules/micromark-core-commonmark/package.json +74 -0
- package/.output/server/node_modules/micromark-extension-gfm/index.js +69 -0
- package/.output/server/node_modules/micromark-extension-gfm/package.json +107 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/html.js +60 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +854 -0
- package/.output/server/node_modules/micromark-extension-gfm-autolink-literal/package.json +116 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/index.js +3 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/html.js +154 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +485 -0
- package/.output/server/node_modules/micromark-extension-gfm-footnote/package.json +132 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/index.js +3 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/html.js +26 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +142 -0
- package/.output/server/node_modules/micromark-extension-gfm-strikethrough/package.json +129 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/edit-map.js +202 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/html.js +130 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/infer.js +52 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/lib/syntax.js +819 -0
- package/.output/server/node_modules/micromark-extension-gfm-table/package.json +128 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/index.js +1 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/lib/index.js +51 -0
- package/.output/server/node_modules/micromark-extension-gfm-tagfilter/package.json +82 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/index.js +2 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/html.js +29 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +158 -0
- package/.output/server/node_modules/micromark-extension-gfm-task-list-item/package.json +131 -0
- package/.output/server/node_modules/micromark-factory-destination/index.js +206 -0
- package/.output/server/node_modules/micromark-factory-destination/package.json +57 -0
- package/.output/server/node_modules/micromark-factory-label/index.js +148 -0
- package/.output/server/node_modules/micromark-factory-label/package.json +60 -0
- package/.output/server/node_modules/micromark-factory-space/index.js +64 -0
- package/.output/server/node_modules/micromark-factory-space/package.json +55 -0
- package/.output/server/node_modules/micromark-factory-title/index.js +158 -0
- package/.output/server/node_modules/micromark-factory-title/package.json +58 -0
- package/.output/server/node_modules/micromark-factory-whitespace/index.js +44 -0
- package/.output/server/node_modules/micromark-factory-whitespace/package.json +57 -0
- package/.output/server/node_modules/micromark-util-character/index.js +246 -0
- package/.output/server/node_modules/micromark-util-character/package.json +57 -0
- package/.output/server/node_modules/micromark-util-chunked/index.js +81 -0
- package/.output/server/node_modules/micromark-util-chunked/package.json +57 -0
- package/.output/server/node_modules/micromark-util-classify-character/index.js +27 -0
- package/.output/server/node_modules/micromark-util-classify-character/package.json +59 -0
- package/.output/server/node_modules/micromark-util-combine-extensions/index.js +143 -0
- package/.output/server/node_modules/micromark-util-combine-extensions/package.json +52 -0
- package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/index.js +32 -0
- package/.output/server/node_modules/micromark-util-decode-numeric-character-reference/package.json +59 -0
- package/.output/server/node_modules/micromark-util-decode-string/index.js +45 -0
- package/.output/server/node_modules/micromark-util-decode-string/package.json +63 -0
- package/.output/server/node_modules/micromark-util-encode/index.js +33 -0
- package/.output/server/node_modules/micromark-util-encode/package.json +47 -0
- package/.output/server/node_modules/micromark-util-html-tag-name/index.js +93 -0
- package/.output/server/node_modules/micromark-util-html-tag-name/package.json +47 -0
- package/.output/server/node_modules/micromark-util-normalize-identifier/index.js +33 -0
- package/.output/server/node_modules/micromark-util-normalize-identifier/package.json +58 -0
- package/.output/server/node_modules/micromark-util-resolve-all/index.js +32 -0
- package/.output/server/node_modules/micromark-util-resolve-all/package.json +48 -0
- package/.output/server/node_modules/micromark-util-sanitize-uri/index.js +107 -0
- package/.output/server/node_modules/micromark-util-sanitize-uri/package.json +59 -0
- package/.output/server/node_modules/micromark-util-subtokenize/index.js +228 -0
- package/.output/server/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +251 -0
- package/.output/server/node_modules/micromark-util-subtokenize/package.json +60 -0
- package/.output/server/node_modules/minimark/dist/hast.mjs +39 -0
- package/.output/server/node_modules/minimark/package.json +40 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/node-emoji/lib/index.js +174 -0
- package/.output/server/node_modules/node-emoji/package.json +118 -0
- package/.output/server/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -0
- package/.output/server/node_modules/node-fetch-native/dist/index.mjs +1 -0
- package/.output/server/node_modules/node-fetch-native/dist/node.mjs +19 -0
- package/.output/server/node_modules/node-fetch-native/dist/shared/node-fetch-native.DfbY2q-x.mjs +1 -0
- package/.output/server/node_modules/node-fetch-native/package.json +138 -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/nth-check/lib/compile.js +121 -0
- package/.output/server/node_modules/nth-check/lib/index.js +70 -0
- package/.output/server/node_modules/nth-check/lib/parse.js +77 -0
- package/.output/server/node_modules/nth-check/package.json +78 -0
- package/.output/server/node_modules/oauth4webapi/build/index.js +2492 -0
- package/.output/server/node_modules/oauth4webapi/package.json +105 -0
- package/.output/server/node_modules/ofetch/dist/node.mjs +32 -0
- package/.output/server/node_modules/ofetch/dist/shared/ofetch.03887fc3.mjs +333 -0
- package/.output/server/node_modules/ofetch/package.json +96 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/node-utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/parser/parse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js +34 -0
- package/.output/server/node_modules/oniguruma-parser/dist/traverser/traverse.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/dist/utils.js +2 -0
- package/.output/server/node_modules/oniguruma-parser/package.json +64 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/index.js +1876 -0
- package/.output/server/node_modules/oniguruma-to-es/dist/esm/package.json +1 -0
- package/.output/server/node_modules/oniguruma-to-es/package.json +61 -0
- package/.output/server/node_modules/openid-client/build/index.js +1310 -0
- package/.output/server/node_modules/openid-client/package.json +122 -0
- package/.output/server/node_modules/parse-entities/index.js +3 -0
- package/.output/server/node_modules/parse-entities/lib/index.js +407 -0
- package/.output/server/node_modules/parse-entities/package.json +91 -0
- package/.output/server/node_modules/parse5/dist/common/doctype.js +114 -0
- package/.output/server/node_modules/parse5/dist/common/error-codes.js +63 -0
- package/.output/server/node_modules/parse5/dist/common/foreign-content.js +228 -0
- package/.output/server/node_modules/parse5/dist/common/html.js +523 -0
- package/.output/server/node_modules/parse5/dist/common/token.js +20 -0
- package/.output/server/node_modules/parse5/dist/common/unicode.js +62 -0
- package/.output/server/node_modules/parse5/dist/index.js +42 -0
- package/.output/server/node_modules/parse5/dist/parser/formatting-element-list.js +110 -0
- package/.output/server/node_modules/parse5/dist/parser/index.js +3245 -0
- package/.output/server/node_modules/parse5/dist/parser/open-element-stack.js +324 -0
- package/.output/server/node_modules/parse5/dist/serializer/index.js +168 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/index.js +2710 -0
- package/.output/server/node_modules/parse5/dist/tokenizer/preprocessor.js +196 -0
- package/.output/server/node_modules/parse5/dist/tree-adapters/default.js +173 -0
- package/.output/server/node_modules/parse5/package.json +50 -0
- package/.output/server/node_modules/pathe/dist/index.mjs +1 -0
- package/.output/server/node_modules/pathe/dist/shared/pathe.ff20891b.mjs +221 -0
- package/.output/server/node_modules/pathe/package.json +48 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -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/regex/package.json +60 -0
- package/.output/server/node_modules/regex/src/atomic.js +221 -0
- package/.output/server/node_modules/regex/src/internals.js +2 -0
- package/.output/server/node_modules/regex/src/subclass.js +98 -0
- package/.output/server/node_modules/regex/src/utils-internals.js +33 -0
- package/.output/server/node_modules/regex-recursion/package.json +47 -0
- package/.output/server/node_modules/regex-recursion/src/index.js +365 -0
- package/.output/server/node_modules/regex-utilities/package.json +35 -0
- package/.output/server/node_modules/regex-utilities/src/index.js +170 -0
- package/.output/server/node_modules/rehype-external-links/index.js +10 -0
- package/.output/server/node_modules/rehype-external-links/lib/index.js +179 -0
- package/.output/server/node_modules/rehype-external-links/package.json +86 -0
- package/.output/server/node_modules/rehype-minify-whitespace/index.js +47 -0
- package/.output/server/node_modules/rehype-minify-whitespace/lib/index.js +26 -0
- package/.output/server/node_modules/rehype-minify-whitespace/package.json +56 -0
- package/.output/server/node_modules/rehype-raw/index.js +5 -0
- package/.output/server/node_modules/rehype-raw/lib/index.js +36 -0
- package/.output/server/node_modules/rehype-raw/package.json +82 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/index.js +29 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/lib/index.js +130 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/lib/schema.js +15 -0
- package/.output/server/node_modules/rehype-sort-attribute-values/package.json +56 -0
- package/.output/server/node_modules/rehype-sort-attributes/index.js +30 -0
- package/.output/server/node_modules/rehype-sort-attributes/lib/index.js +120 -0
- package/.output/server/node_modules/rehype-sort-attributes/package.json +54 -0
- package/.output/server/node_modules/remark-emoji/index.js +76 -0
- package/.output/server/node_modules/remark-emoji/package.json +85 -0
- package/.output/server/node_modules/remark-gfm/index.js +2 -0
- package/.output/server/node_modules/remark-gfm/lib/index.js +41 -0
- package/.output/server/node_modules/remark-gfm/package.json +125 -0
- package/.output/server/node_modules/remark-mdc/dist/index.mjs +2010 -0
- package/.output/server/node_modules/remark-mdc/package.json +84 -0
- package/.output/server/node_modules/remark-parse/index.js +2 -0
- package/.output/server/node_modules/remark-parse/lib/index.js +43 -0
- package/.output/server/node_modules/remark-parse/package.json +72 -0
- package/.output/server/node_modules/remark-rehype/index.js +10 -0
- package/.output/server/node_modules/remark-rehype/lib/index.js +175 -0
- package/.output/server/node_modules/remark-rehype/package.json +86 -0
- package/.output/server/node_modules/remark-stringify/index.js +2 -0
- package/.output/server/node_modules/remark-stringify/lib/index.js +42 -0
- package/.output/server/node_modules/remark-stringify/package.json +71 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
- package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
- package/.output/server/node_modules/scule/dist/index.mjs +80 -0
- package/.output/server/node_modules/scule/package.json +43 -0
- package/.output/server/node_modules/secure-json-parse/index.js +126 -0
- package/.output/server/node_modules/secure-json-parse/package.json +75 -0
- package/.output/server/node_modules/semver/classes/semver.js +319 -0
- package/.output/server/node_modules/semver/functions/coerce.js +62 -0
- package/.output/server/node_modules/semver/functions/compare.js +7 -0
- package/.output/server/node_modules/semver/functions/gte.js +5 -0
- package/.output/server/node_modules/semver/functions/parse.js +18 -0
- package/.output/server/node_modules/semver/internal/constants.js +37 -0
- package/.output/server/node_modules/semver/internal/debug.js +11 -0
- package/.output/server/node_modules/semver/internal/identifiers.js +25 -0
- package/.output/server/node_modules/semver/internal/parse-options.js +17 -0
- package/.output/server/node_modules/semver/internal/re.js +223 -0
- package/.output/server/node_modules/semver/package.json +78 -0
- package/.output/server/node_modules/sharp/build/Release/libglib-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libgobject-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libvips-42.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/libvips-cpp.dll +0 -0
- package/.output/server/node_modules/sharp/build/Release/sharp-win32-x64.node +0 -0
- package/.output/server/node_modules/sharp/lib/channel.js +174 -0
- package/.output/server/node_modules/sharp/lib/colour.js +184 -0
- package/.output/server/node_modules/sharp/lib/composite.js +210 -0
- package/.output/server/node_modules/sharp/lib/constructor.js +439 -0
- package/.output/server/node_modules/sharp/lib/index.js +16 -0
- package/.output/server/node_modules/sharp/lib/input.js +631 -0
- package/.output/server/node_modules/sharp/lib/is.js +155 -0
- package/.output/server/node_modules/sharp/lib/libvips.js +140 -0
- package/.output/server/node_modules/sharp/lib/operation.js +919 -0
- package/.output/server/node_modules/sharp/lib/output.js +1413 -0
- package/.output/server/node_modules/sharp/lib/platform.js +30 -0
- package/.output/server/node_modules/sharp/lib/resize.js +582 -0
- package/.output/server/node_modules/sharp/lib/sharp.js +38 -0
- package/.output/server/node_modules/sharp/lib/utility.js +287 -0
- package/.output/server/node_modules/sharp/package.json +204 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/THIRD-PARTY-NOTICES.md +43 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/harfbuzz/hb-cplusplus.hh +223 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/include/vips/vips8 +60 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libglib-2.0.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0-0.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libgobject-2.0.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips-42.dll +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/lib/libvips.lib +0 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/platform.json +1 -0
- package/.output/server/node_modules/sharp/vendor/8.14.5/win32-x64/versions.json +31 -0
- package/.output/server/node_modules/shiki/dist/engine-javascript.mjs +1 -0
- package/.output/server/node_modules/shiki/dist/engine-oniguruma.mjs +1 -0
- package/.output/server/node_modules/shiki/dist/wasm.mjs +2 -0
- package/.output/server/node_modules/shiki/package.json +70 -0
- package/.output/server/node_modules/simple-swizzle/index.js +29 -0
- package/.output/server/node_modules/simple-swizzle/package.json +36 -0
- package/.output/server/node_modules/skin-tone/index.js +25 -0
- package/.output/server/node_modules/skin-tone/package.json +45 -0
- package/.output/server/node_modules/slugify/package.json +42 -0
- package/.output/server/node_modules/slugify/slugify.js +69 -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/space-separated-tokens/index.js +24 -0
- package/.output/server/node_modules/space-separated-tokens/package.json +67 -0
- package/.output/server/node_modules/sqlstring/index.js +1 -0
- package/.output/server/node_modules/sqlstring/lib/SqlString.js +237 -0
- package/.output/server/node_modules/sqlstring/package.json +47 -0
- package/.output/server/node_modules/stringify-entities/index.js +6 -0
- package/.output/server/node_modules/stringify-entities/lib/constant/dangerous.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/core.js +117 -0
- package/.output/server/node_modules/stringify-entities/lib/index.js +36 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-basic.js +9 -0
- package/.output/server/node_modules/stringify-entities/lib/util/format-smart.js +69 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-decimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-hexadecimal.js +16 -0
- package/.output/server/node_modules/stringify-entities/lib/util/to-named.js +57 -0
- package/.output/server/node_modules/stringify-entities/package.json +86 -0
- package/.output/server/node_modules/strnum/package.json +31 -0
- package/.output/server/node_modules/strnum/strnum.js +129 -0
- package/.output/server/node_modules/supports-color/index.js +135 -0
- package/.output/server/node_modules/supports-color/package.json +53 -0
- package/.output/server/node_modules/svgo/lib/builtin.js +57 -0
- package/.output/server/node_modules/svgo/lib/parser.js +262 -0
- package/.output/server/node_modules/svgo/lib/path.js +380 -0
- package/.output/server/node_modules/svgo/lib/stringifier.js +295 -0
- package/.output/server/node_modules/svgo/lib/style.js +336 -0
- package/.output/server/node_modules/svgo/lib/svgo/css-select-adapter.js +120 -0
- package/.output/server/node_modules/svgo/lib/svgo/plugins.js +61 -0
- package/.output/server/node_modules/svgo/lib/svgo/tools.js +245 -0
- package/.output/server/node_modules/svgo/lib/svgo-node.js +85 -0
- package/.output/server/node_modules/svgo/lib/svgo.js +102 -0
- package/.output/server/node_modules/svgo/lib/xast.js +87 -0
- package/.output/server/node_modules/svgo/package.json +108 -0
- package/.output/server/node_modules/svgo/plugins/_collections.js +2339 -0
- package/.output/server/node_modules/svgo/plugins/_path.js +815 -0
- package/.output/server/node_modules/svgo/plugins/_transforms.js +410 -0
- package/.output/server/node_modules/svgo/plugins/addAttributesToSVGElement.js +82 -0
- package/.output/server/node_modules/svgo/plugins/addClassesToSVGElement.js +82 -0
- package/.output/server/node_modules/svgo/plugins/applyTransforms.js +388 -0
- package/.output/server/node_modules/svgo/plugins/cleanupAttrs.js +49 -0
- package/.output/server/node_modules/svgo/plugins/cleanupEnableBackground.js +165 -0
- package/.output/server/node_modules/svgo/plugins/cleanupIds.js +265 -0
- package/.output/server/node_modules/svgo/plugins/cleanupListOfValues.js +147 -0
- package/.output/server/node_modules/svgo/plugins/cleanupNumericValues.js +106 -0
- package/.output/server/node_modules/svgo/plugins/collapseGroups.js +134 -0
- package/.output/server/node_modules/svgo/plugins/convertColors.js +144 -0
- package/.output/server/node_modules/svgo/plugins/convertEllipseToCircle.js +37 -0
- package/.output/server/node_modules/svgo/plugins/convertOneStopGradients.js +168 -0
- package/.output/server/node_modules/svgo/plugins/convertPathData.js +1284 -0
- package/.output/server/node_modules/svgo/plugins/convertShapeToPath.js +170 -0
- package/.output/server/node_modules/svgo/plugins/convertStyleToAttrs.js +136 -0
- package/.output/server/node_modules/svgo/plugins/convertTransform.js +418 -0
- package/.output/server/node_modules/svgo/plugins/inlineStyles.js +390 -0
- package/.output/server/node_modules/svgo/plugins/mergePaths.js +148 -0
- package/.output/server/node_modules/svgo/plugins/mergeStyles.js +98 -0
- package/.output/server/node_modules/svgo/plugins/minifyStyles.js +141 -0
- package/.output/server/node_modules/svgo/plugins/moveElemsAttrsToGroup.js +128 -0
- package/.output/server/node_modules/svgo/plugins/moveGroupAttrsToElems.js +65 -0
- package/.output/server/node_modules/svgo/plugins/prefixIds.js +268 -0
- package/.output/server/node_modules/svgo/plugins/preset-default.js +82 -0
- package/.output/server/node_modules/svgo/plugins/removeAttributesBySelector.js +97 -0
- package/.output/server/node_modules/svgo/plugins/removeAttrs.js +151 -0
- package/.output/server/node_modules/svgo/plugins/removeComments.js +51 -0
- package/.output/server/node_modules/svgo/plugins/removeDesc.js +39 -0
- package/.output/server/node_modules/svgo/plugins/removeDimensions.js +43 -0
- package/.output/server/node_modules/svgo/plugins/removeDoctype.js +40 -0
- package/.output/server/node_modules/svgo/plugins/removeEditorsNSData.js +64 -0
- package/.output/server/node_modules/svgo/plugins/removeElementsByAttr.js +73 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyAttrs.js +31 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyContainers.js +59 -0
- package/.output/server/node_modules/svgo/plugins/removeEmptyText.js +51 -0
- package/.output/server/node_modules/svgo/plugins/removeHiddenElems.js +440 -0
- package/.output/server/node_modules/svgo/plugins/removeMetadata.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +38 -0
- package/.output/server/node_modules/svgo/plugins/removeOffCanvasPaths.js +136 -0
- package/.output/server/node_modules/svgo/plugins/removeRasterImages.js +31 -0
- package/.output/server/node_modules/svgo/plugins/removeScriptElement.js +70 -0
- package/.output/server/node_modules/svgo/plugins/removeStyleElement.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeTitle.js +27 -0
- package/.output/server/node_modules/svgo/plugins/removeUnknownsAndDefaults.js +212 -0
- package/.output/server/node_modules/svgo/plugins/removeUnusedNS.js +59 -0
- package/.output/server/node_modules/svgo/plugins/removeUselessDefs.js +65 -0
- package/.output/server/node_modules/svgo/plugins/removeUselessStrokeAndFill.js +139 -0
- package/.output/server/node_modules/svgo/plugins/removeViewBox.js +49 -0
- package/.output/server/node_modules/svgo/plugins/removeXMLNS.js +29 -0
- package/.output/server/node_modules/svgo/plugins/removeXMLProcInst.js +28 -0
- package/.output/server/node_modules/svgo/plugins/removeXlink.js +226 -0
- package/.output/server/node_modules/svgo/plugins/reusePaths.js +195 -0
- package/.output/server/node_modules/svgo/plugins/sortAttrs.js +108 -0
- package/.output/server/node_modules/svgo/plugins/sortDefsChildren.js +58 -0
- package/.output/server/node_modules/trim-lines/index.js +69 -0
- package/.output/server/node_modules/trim-lines/package.json +67 -0
- package/.output/server/node_modules/trim-trailing-lines/index.js +23 -0
- package/.output/server/node_modules/trim-trailing-lines/package.json +65 -0
- package/.output/server/node_modules/trough/index.js +9 -0
- package/.output/server/node_modules/trough/lib/index.js +206 -0
- package/.output/server/node_modules/trough/package.json +77 -0
- package/.output/server/node_modules/truncatise/index.js +188 -0
- package/.output/server/node_modules/truncatise/package.json +36 -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/ultrahtml/dist/index.js +1 -0
- package/.output/server/node_modules/ultrahtml/package.json +79 -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/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +689 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BpRRHAhY.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DH45uomy.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DZbvapt-.mjs +70 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Djo8ep_Y.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 +101 -0
- package/.output/server/node_modules/unicode-emoji-modifier-base/index.js +86 -0
- package/.output/server/node_modules/unicode-emoji-modifier-base/package.json +44 -0
- package/.output/server/node_modules/unified/index.js +2 -0
- package/.output/server/node_modules/unified/lib/callable-instance.js +44 -0
- package/.output/server/node_modules/unified/lib/index.js +1323 -0
- package/.output/server/node_modules/unified/package.json +120 -0
- package/.output/server/node_modules/unist-util-find-after/index.js +1 -0
- package/.output/server/node_modules/unist-util-find-after/lib/index.js +130 -0
- package/.output/server/node_modules/unist-util-find-after/package.json +84 -0
- package/.output/server/node_modules/unist-util-is/index.js +7 -0
- package/.output/server/node_modules/unist-util-is/lib/index.js +291 -0
- package/.output/server/node_modules/unist-util-is/package.json +100 -0
- package/.output/server/node_modules/unist-util-position/index.js +1 -0
- package/.output/server/node_modules/unist-util-position/lib/index.js +95 -0
- package/.output/server/node_modules/unist-util-position/package.json +76 -0
- package/.output/server/node_modules/unist-util-stringify-position/index.js +1 -0
- package/.output/server/node_modules/unist-util-stringify-position/lib/index.js +84 -0
- package/.output/server/node_modules/unist-util-stringify-position/package.json +80 -0
- package/.output/server/node_modules/unist-util-visit/index.js +2 -0
- package/.output/server/node_modules/unist-util-visit/lib/index.js +313 -0
- package/.output/server/node_modules/unist-util-visit/package.json +113 -0
- package/.output/server/node_modules/unist-util-visit-parents/index.js +2 -0
- package/.output/server/node_modules/unist-util-visit-parents/lib/color.node.js +7 -0
- package/.output/server/node_modules/unist-util-visit-parents/lib/index.js +398 -0
- package/.output/server/node_modules/unist-util-visit-parents/package.json +101 -0
- package/.output/server/node_modules/vfile/index.js +2 -0
- package/.output/server/node_modules/vfile/lib/index.js +643 -0
- package/.output/server/node_modules/vfile/lib/minpath.js +1 -0
- package/.output/server/node_modules/vfile/lib/minproc.js +1 -0
- package/.output/server/node_modules/vfile/lib/minurl.js +2 -0
- package/.output/server/node_modules/vfile/lib/minurl.shared.js +31 -0
- package/.output/server/node_modules/vfile/package.json +134 -0
- package/.output/server/node_modules/vfile-location/index.js +2 -0
- package/.output/server/node_modules/vfile-location/lib/index.js +93 -0
- package/.output/server/node_modules/vfile-location/package.json +115 -0
- package/.output/server/node_modules/vfile-message/index.js +5 -0
- package/.output/server/node_modules/vfile-message/lib/index.js +314 -0
- package/.output/server/node_modules/vfile-message/package.json +80 -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 +196 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +50 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3786 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/vue-router/package.json +149 -0
- package/.output/server/node_modules/web-namespaces/index.js +13 -0
- package/.output/server/node_modules/web-namespaces/package.json +81 -0
- package/.output/server/node_modules/xss/lib/default.js +461 -0
- package/.output/server/node_modules/xss/lib/index.js +51 -0
- package/.output/server/node_modules/xss/lib/parser.js +257 -0
- package/.output/server/node_modules/xss/lib/util.js +34 -0
- package/.output/server/node_modules/xss/lib/xss.js +232 -0
- package/.output/server/node_modules/xss/package.json +65 -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 +96 -0
- package/.output/server/node_modules/zwitch/index.js +118 -0
- package/.output/server/node_modules/zwitch/package.json +72 -0
- package/.output/server/package.json +241 -0
- package/{app.vue → app/app.vue} +1 -0
- package/{components → app/components}/CurrentTime.vue +1 -1
- package/{components → app/components}/ignis/IgnisWelcome.vue +1 -1
- package/{composables → app/composables}/useTranslation.ts +2 -2
- package/app/pages/_ignis-welcome.vue +3 -0
- package/app/utils/date.ts +12 -0
- package/{utils → app/utils}/i18n-sources.ts +2 -2
- package/app/utils/validation.ts +25 -0
- package/bin/set-css.js +23 -0
- package/bin/set-eslint.js +21 -0
- package/bin/setup.js +92 -0
- package/content.config.ts +1 -1
- package/eslint.config.mjs +0 -3
- package/features.ts +36 -34
- package/formkit.config.ts +1 -1
- package/i18n/i18n.config.ts +2 -0
- package/nuxt.config.ts +13 -20
- package/package.json +31 -28
- package/public/_ignis-config.json +106 -3
- package/test/config/css-multiple.txt +1 -1
- package/test/config/css-nuxt-ui.txt +2 -2
- package/test/config/css-open-props.txt +44 -2
- package/test/config/css-single.txt +1 -1
- package/test/config/css-tailwind.txt +2 -2
- package/test/config/custom-lang.txt +1 -1
- package/test/config/db-neon.txt +1 -1
- package/test/config/db-supabase.txt +1 -1
- package/test/config/default.txt +1 -1
- package/test/config/equipment-1-composable.txt +1 -1
- package/test/config/equipment-2-plugins.txt +1 -1
- package/test/config/equipment-all.txt +1 -1
- package/test/config/forms-formkit.txt +1 -1
- package/test/config/forms-vueform.txt +1 -1
- package/test/config/i18n.txt +1 -1
- package/test/config/open-props.txt +44 -2
- package/test/config/seo-ssr-false.txt +1 -1
- package/test/config/ui-nuxt-ui.txt +2 -2
- package/test/config/ui-tailwind.txt +2 -2
- package/test/features.test.ts +1 -1
- package/tsconfig.json +16 -5
- package/vitest.config.ts +5 -0
- package/vueform.config.ts +2 -0
- package/.nuxt/module/@nuxtjs-sitemap.d.ts +0 -29
- package/.nuxt/types/app-defaults.d.ts +0 -7
- package/.nuxt/types/schema.d.ts +0 -1756
- package/bin/make-eslint.js +0 -55
- package/server/tsconfig.json +0 -3
- /package/{assets → app/assets}/css/ignis-nuxt-ui.css +0 -0
- /package/{assets → app/assets}/css/ignis-open-props.css +0 -0
- /package/{assets → app/assets}/css/ignis-tailwind.css +0 -0
- /package/{assets → app/assets}/css/ignis.css +0 -0
- /package/{components → app/components}/ignis/IgnisConfig.vue +0 -0
- /package/{components → app/components}/ignis/IgnisFeature.vue +0 -0
- /package/{components → app/components}/ignis/IgnisFeatureList.vue +0 -0
- /package/{components → app/components}/ignis/IgnisFooter.vue +0 -0
- /package/{components → app/components}/ignis/IgnisHeader.vue +0 -0
- /package/{components → app/components}/ignis/IgnisInfo.vue +0 -0
- /package/{composables → app/composables}/useValibot.ts +0 -0
- /package/{composables → app/composables}/useZod.ts +0 -0
- /package/{pages → app/pages}/_ignis-config.vue +0 -0
- /package/{pages → app/pages}/_ignis-info.vue +0 -0
- /package/{pages → app/pages}/index.vue +0 -0
- /package/{plugins → app/plugins}/errorHandler.ts +0 -0
- /package/{utils → app/utils}/config/content.ts +0 -0
- /package/{utils → app/utils}/config/formkit.ts +0 -0
- /package/{utils → app/utils}/config/vueform.ts +0 -0
- /package/{utils → app/utils}/consola.ts +0 -0
- /package/{utils → app/utils}/content.ts +0 -0
- /package/{utils → app/utils}/formkit.ts +0 -0
- /package/{utils → app/utils}/ignis-types.ts +0 -0
- /package/{utils → app/utils}/pslo-utils.ts +0 -0
- /package/{utils → app/utils}/tailwind.ts +0 -0
- /package/{utils → app/utils}/vueform.ts +0 -0
|
@@ -0,0 +1,1886 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* core-base v11.1.12
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { getGlobalThis, isObject, hasOwn, isNumber, create, isString, isBoolean, warn, format as format$1, isFunction, isPromise, isArray, isPlainObject, assign, isRegExp, warnOnce, isEmptyObject, isDate, join, toDisplayString, sanitizeTranslatedHtml, escapeHtml, inBrowser, mark, measure, generateCodeFrame, generateFormatCacheKey } from '@intlify/shared';
|
|
7
|
+
import { detectHtmlTag, defaultOnError, baseCompile as baseCompile$1, COMPILE_ERROR_CODES_EXTEND_POINT, createCompileError } from '@intlify/message-compiler';
|
|
8
|
+
export { CompileErrorCodes, createCompileError } from '@intlify/message-compiler';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* This is only called in esm-bundler builds.
|
|
12
|
+
* istanbul-ignore-next
|
|
13
|
+
*/
|
|
14
|
+
function initFeatureFlags() {
|
|
15
|
+
if (typeof __INTLIFY_PROD_DEVTOOLS__ !== 'boolean') {
|
|
16
|
+
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false;
|
|
17
|
+
}
|
|
18
|
+
if (typeof __INTLIFY_DROP_MESSAGE_COMPILER__ !== 'boolean') {
|
|
19
|
+
getGlobalThis().__INTLIFY_DROP_MESSAGE_COMPILER__ = false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function isMessageAST(val) {
|
|
24
|
+
return (isObject(val) &&
|
|
25
|
+
resolveType(val) === 0 &&
|
|
26
|
+
(hasOwn(val, 'b') || hasOwn(val, 'body')));
|
|
27
|
+
}
|
|
28
|
+
const PROPS_BODY = ['b', 'body'];
|
|
29
|
+
function resolveBody(node) {
|
|
30
|
+
return resolveProps(node, PROPS_BODY);
|
|
31
|
+
}
|
|
32
|
+
const PROPS_CASES = ['c', 'cases'];
|
|
33
|
+
function resolveCases(node) {
|
|
34
|
+
return resolveProps(node, PROPS_CASES, []);
|
|
35
|
+
}
|
|
36
|
+
const PROPS_STATIC = ['s', 'static'];
|
|
37
|
+
function resolveStatic(node) {
|
|
38
|
+
return resolveProps(node, PROPS_STATIC);
|
|
39
|
+
}
|
|
40
|
+
const PROPS_ITEMS = ['i', 'items'];
|
|
41
|
+
function resolveItems(node) {
|
|
42
|
+
return resolveProps(node, PROPS_ITEMS, []);
|
|
43
|
+
}
|
|
44
|
+
const PROPS_TYPE = ['t', 'type'];
|
|
45
|
+
function resolveType(node) {
|
|
46
|
+
return resolveProps(node, PROPS_TYPE);
|
|
47
|
+
}
|
|
48
|
+
const PROPS_VALUE = ['v', 'value'];
|
|
49
|
+
function resolveValue$1(node, type) {
|
|
50
|
+
const resolved = resolveProps(node, PROPS_VALUE);
|
|
51
|
+
if (resolved != null) {
|
|
52
|
+
return resolved;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
throw createUnhandleNodeError(type);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const PROPS_MODIFIER = ['m', 'modifier'];
|
|
59
|
+
function resolveLinkedModifier(node) {
|
|
60
|
+
return resolveProps(node, PROPS_MODIFIER);
|
|
61
|
+
}
|
|
62
|
+
const PROPS_KEY = ['k', 'key'];
|
|
63
|
+
function resolveLinkedKey(node) {
|
|
64
|
+
const resolved = resolveProps(node, PROPS_KEY);
|
|
65
|
+
if (resolved) {
|
|
66
|
+
return resolved;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
throw createUnhandleNodeError(6 /* NodeTypes.Linked */);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
function resolveProps(node, props, defaultValue) {
|
|
73
|
+
for (let i = 0; i < props.length; i++) {
|
|
74
|
+
const prop = props[i];
|
|
75
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
76
|
+
if (hasOwn(node, prop) && node[prop] != null) {
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
78
|
+
return node[prop];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return defaultValue;
|
|
82
|
+
}
|
|
83
|
+
const AST_NODE_PROPS_KEYS = [
|
|
84
|
+
...PROPS_BODY,
|
|
85
|
+
...PROPS_CASES,
|
|
86
|
+
...PROPS_STATIC,
|
|
87
|
+
...PROPS_ITEMS,
|
|
88
|
+
...PROPS_KEY,
|
|
89
|
+
...PROPS_MODIFIER,
|
|
90
|
+
...PROPS_VALUE,
|
|
91
|
+
...PROPS_TYPE
|
|
92
|
+
];
|
|
93
|
+
function createUnhandleNodeError(type) {
|
|
94
|
+
return new Error(`unhandled node type: ${type}`);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function format(ast) {
|
|
98
|
+
const msg = (ctx) => formatParts(ctx, ast);
|
|
99
|
+
return msg;
|
|
100
|
+
}
|
|
101
|
+
function formatParts(ctx, ast) {
|
|
102
|
+
const body = resolveBody(ast);
|
|
103
|
+
if (body == null) {
|
|
104
|
+
throw createUnhandleNodeError(0 /* NodeTypes.Resource */);
|
|
105
|
+
}
|
|
106
|
+
const type = resolveType(body);
|
|
107
|
+
if (type === 1 /* NodeTypes.Plural */) {
|
|
108
|
+
const plural = body;
|
|
109
|
+
const cases = resolveCases(plural);
|
|
110
|
+
return ctx.plural(cases.reduce((messages, c) => [
|
|
111
|
+
...messages,
|
|
112
|
+
formatMessageParts(ctx, c)
|
|
113
|
+
], []));
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return formatMessageParts(ctx, body);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function formatMessageParts(ctx, node) {
|
|
120
|
+
const static_ = resolveStatic(node);
|
|
121
|
+
if (static_ != null) {
|
|
122
|
+
return ctx.type === 'text'
|
|
123
|
+
? static_
|
|
124
|
+
: ctx.normalize([static_]);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
const messages = resolveItems(node).reduce((acm, c) => [...acm, formatMessagePart(ctx, c)], []);
|
|
128
|
+
return ctx.normalize(messages);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function formatMessagePart(ctx, node) {
|
|
132
|
+
const type = resolveType(node);
|
|
133
|
+
switch (type) {
|
|
134
|
+
case 3 /* NodeTypes.Text */: {
|
|
135
|
+
return resolveValue$1(node, type);
|
|
136
|
+
}
|
|
137
|
+
case 9 /* NodeTypes.Literal */: {
|
|
138
|
+
return resolveValue$1(node, type);
|
|
139
|
+
}
|
|
140
|
+
case 4 /* NodeTypes.Named */: {
|
|
141
|
+
const named = node;
|
|
142
|
+
if (hasOwn(named, 'k') && named.k) {
|
|
143
|
+
return ctx.interpolate(ctx.named(named.k));
|
|
144
|
+
}
|
|
145
|
+
if (hasOwn(named, 'key') && named.key) {
|
|
146
|
+
return ctx.interpolate(ctx.named(named.key));
|
|
147
|
+
}
|
|
148
|
+
throw createUnhandleNodeError(type);
|
|
149
|
+
}
|
|
150
|
+
case 5 /* NodeTypes.List */: {
|
|
151
|
+
const list = node;
|
|
152
|
+
if (hasOwn(list, 'i') && isNumber(list.i)) {
|
|
153
|
+
return ctx.interpolate(ctx.list(list.i));
|
|
154
|
+
}
|
|
155
|
+
if (hasOwn(list, 'index') && isNumber(list.index)) {
|
|
156
|
+
return ctx.interpolate(ctx.list(list.index));
|
|
157
|
+
}
|
|
158
|
+
throw createUnhandleNodeError(type);
|
|
159
|
+
}
|
|
160
|
+
case 6 /* NodeTypes.Linked */: {
|
|
161
|
+
const linked = node;
|
|
162
|
+
const modifier = resolveLinkedModifier(linked);
|
|
163
|
+
const key = resolveLinkedKey(linked);
|
|
164
|
+
return ctx.linked(formatMessagePart(ctx, key), modifier ? formatMessagePart(ctx, modifier) : undefined, ctx.type);
|
|
165
|
+
}
|
|
166
|
+
case 7 /* NodeTypes.LinkedKey */: {
|
|
167
|
+
return resolveValue$1(node, type);
|
|
168
|
+
}
|
|
169
|
+
case 8 /* NodeTypes.LinkedModifier */: {
|
|
170
|
+
return resolveValue$1(node, type);
|
|
171
|
+
}
|
|
172
|
+
default:
|
|
173
|
+
throw new Error(`unhandled node on format message part: ${type}`);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const WARN_MESSAGE = `Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.`;
|
|
178
|
+
function checkHtmlMessage(source, warnHtmlMessage) {
|
|
179
|
+
if (warnHtmlMessage && detectHtmlTag(source)) {
|
|
180
|
+
warn(format$1(WARN_MESSAGE, { source }));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const defaultOnCacheKey = (message) => message;
|
|
184
|
+
let compileCache = create();
|
|
185
|
+
function clearCompileCache() {
|
|
186
|
+
compileCache = create();
|
|
187
|
+
}
|
|
188
|
+
function baseCompile(message, options = {}) {
|
|
189
|
+
// error detecting on compile
|
|
190
|
+
let detectError = false;
|
|
191
|
+
const onError = options.onError || defaultOnError;
|
|
192
|
+
options.onError = (err) => {
|
|
193
|
+
detectError = true;
|
|
194
|
+
onError(err);
|
|
195
|
+
};
|
|
196
|
+
// compile with mesasge-compiler
|
|
197
|
+
return { ...baseCompile$1(message, options), detectError };
|
|
198
|
+
}
|
|
199
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
200
|
+
function compile(message, context) {
|
|
201
|
+
if ((!__INTLIFY_DROP_MESSAGE_COMPILER__) &&
|
|
202
|
+
isString(message)) {
|
|
203
|
+
// check HTML message
|
|
204
|
+
const warnHtmlMessage = isBoolean(context.warnHtmlMessage)
|
|
205
|
+
? context.warnHtmlMessage
|
|
206
|
+
: true;
|
|
207
|
+
(process.env.NODE_ENV !== 'production') && checkHtmlMessage(message, warnHtmlMessage);
|
|
208
|
+
// check caches
|
|
209
|
+
const onCacheKey = context.onCacheKey || defaultOnCacheKey;
|
|
210
|
+
const cacheKey = onCacheKey(message);
|
|
211
|
+
const cached = compileCache[cacheKey];
|
|
212
|
+
if (cached) {
|
|
213
|
+
return cached;
|
|
214
|
+
}
|
|
215
|
+
// compile with JIT mode
|
|
216
|
+
const { ast, detectError } = baseCompile(message, {
|
|
217
|
+
...context,
|
|
218
|
+
location: (process.env.NODE_ENV !== 'production'),
|
|
219
|
+
jit: true
|
|
220
|
+
});
|
|
221
|
+
// compose message function from AST
|
|
222
|
+
const msg = format(ast);
|
|
223
|
+
// if occurred compile error, don't cache
|
|
224
|
+
return !detectError
|
|
225
|
+
? (compileCache[cacheKey] = msg)
|
|
226
|
+
: msg;
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
if ((process.env.NODE_ENV !== 'production') && !isMessageAST(message)) {
|
|
230
|
+
warn(`the message that is resolve with key '${context.key}' is not supported for jit compilation`);
|
|
231
|
+
return (() => message);
|
|
232
|
+
}
|
|
233
|
+
// AST case (passed from bundler)
|
|
234
|
+
const cacheKey = message.cacheKey;
|
|
235
|
+
if (cacheKey) {
|
|
236
|
+
const cached = compileCache[cacheKey];
|
|
237
|
+
if (cached) {
|
|
238
|
+
return cached;
|
|
239
|
+
}
|
|
240
|
+
// compose message function from message (AST)
|
|
241
|
+
return (compileCache[cacheKey] =
|
|
242
|
+
format(message));
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
return format(message);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
let devtools = null;
|
|
251
|
+
function setDevToolsHook(hook) {
|
|
252
|
+
devtools = hook;
|
|
253
|
+
}
|
|
254
|
+
function getDevToolsHook() {
|
|
255
|
+
return devtools;
|
|
256
|
+
}
|
|
257
|
+
function initI18nDevTools(i18n, version, meta) {
|
|
258
|
+
// TODO: queue if devtools is undefined
|
|
259
|
+
devtools &&
|
|
260
|
+
devtools.emit('i18n:init', {
|
|
261
|
+
timestamp: Date.now(),
|
|
262
|
+
i18n,
|
|
263
|
+
version,
|
|
264
|
+
meta
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
const translateDevTools =
|
|
268
|
+
/* #__PURE__*/ createDevToolsHook('function:translate');
|
|
269
|
+
function createDevToolsHook(hook) {
|
|
270
|
+
return (payloads) => devtools && devtools.emit(hook, payloads);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const CoreErrorCodes = {
|
|
274
|
+
INVALID_ARGUMENT: COMPILE_ERROR_CODES_EXTEND_POINT, // 17
|
|
275
|
+
INVALID_DATE_ARGUMENT: 18,
|
|
276
|
+
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
277
|
+
NOT_SUPPORT_NON_STRING_MESSAGE: 20,
|
|
278
|
+
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
279
|
+
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
280
|
+
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
281
|
+
};
|
|
282
|
+
const CORE_ERROR_CODES_EXTEND_POINT = 24;
|
|
283
|
+
function createCoreError(code) {
|
|
284
|
+
return createCompileError(code, null, (process.env.NODE_ENV !== 'production') ? { messages: errorMessages } : undefined);
|
|
285
|
+
}
|
|
286
|
+
/** @internal */
|
|
287
|
+
const errorMessages = {
|
|
288
|
+
[CoreErrorCodes.INVALID_ARGUMENT]: 'Invalid arguments',
|
|
289
|
+
[CoreErrorCodes.INVALID_DATE_ARGUMENT]: 'The date provided is an invalid Date object.' +
|
|
290
|
+
'Make sure your Date represents a valid date.',
|
|
291
|
+
[CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT]: 'The argument provided is not a valid ISO date string',
|
|
292
|
+
[CoreErrorCodes.NOT_SUPPORT_NON_STRING_MESSAGE]: 'Not support non-string message',
|
|
293
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: 'cannot support promise value',
|
|
294
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: 'cannot support async function',
|
|
295
|
+
[CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE]: 'cannot support locale type'
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
function getLocale(context, options) {
|
|
300
|
+
return options.locale != null
|
|
301
|
+
? resolveLocale(options.locale)
|
|
302
|
+
: resolveLocale(context.locale);
|
|
303
|
+
}
|
|
304
|
+
let _resolveLocale;
|
|
305
|
+
/** @internal */
|
|
306
|
+
function resolveLocale(locale) {
|
|
307
|
+
if (isString(locale)) {
|
|
308
|
+
return locale;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
if (isFunction(locale)) {
|
|
312
|
+
if (locale.resolvedOnce && _resolveLocale != null) {
|
|
313
|
+
return _resolveLocale;
|
|
314
|
+
}
|
|
315
|
+
else if (locale.constructor.name === 'Function') {
|
|
316
|
+
const resolve = locale();
|
|
317
|
+
if (isPromise(resolve)) {
|
|
318
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
319
|
+
}
|
|
320
|
+
return (_resolveLocale = resolve);
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
throw createCoreError(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Fallback with simple implemenation
|
|
333
|
+
*
|
|
334
|
+
* @remarks
|
|
335
|
+
* A fallback locale function implemented with a simple fallback algorithm.
|
|
336
|
+
*
|
|
337
|
+
* Basically, it returns the value as specified in the `fallbackLocale` props, and is processed with the fallback inside intlify.
|
|
338
|
+
*
|
|
339
|
+
* @param ctx - A {@link CoreContext | context}
|
|
340
|
+
* @param fallback - A {@link FallbackLocale | fallback locale}
|
|
341
|
+
* @param start - A starting {@link Locale | locale}
|
|
342
|
+
*
|
|
343
|
+
* @returns Fallback locales
|
|
344
|
+
*
|
|
345
|
+
* @VueI18nGeneral
|
|
346
|
+
*/
|
|
347
|
+
function fallbackWithSimple(ctx, fallback, start) {
|
|
348
|
+
// prettier-ignore
|
|
349
|
+
return [...new Set([
|
|
350
|
+
start,
|
|
351
|
+
...(isArray(fallback)
|
|
352
|
+
? fallback
|
|
353
|
+
: isObject(fallback)
|
|
354
|
+
? Object.keys(fallback)
|
|
355
|
+
: isString(fallback)
|
|
356
|
+
? [fallback]
|
|
357
|
+
: [start])
|
|
358
|
+
])];
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Fallback with locale chain
|
|
362
|
+
*
|
|
363
|
+
* @remarks
|
|
364
|
+
* A fallback locale function implemented with a fallback chain algorithm. It's used in VueI18n as default.
|
|
365
|
+
*
|
|
366
|
+
* @param ctx - A {@link CoreContext | context}
|
|
367
|
+
* @param fallback - A {@link FallbackLocale | fallback locale}
|
|
368
|
+
* @param start - A starting {@link Locale | locale}
|
|
369
|
+
*
|
|
370
|
+
* @returns Fallback locales
|
|
371
|
+
*
|
|
372
|
+
* @VueI18nSee [Fallbacking](../guide/essentials/fallback)
|
|
373
|
+
*
|
|
374
|
+
* @VueI18nGeneral
|
|
375
|
+
*/
|
|
376
|
+
function fallbackWithLocaleChain(ctx, fallback, start) {
|
|
377
|
+
const startLocale = isString(start) ? start : DEFAULT_LOCALE;
|
|
378
|
+
const context = ctx;
|
|
379
|
+
if (!context.__localeChainCache) {
|
|
380
|
+
context.__localeChainCache = new Map();
|
|
381
|
+
}
|
|
382
|
+
let chain = context.__localeChainCache.get(startLocale);
|
|
383
|
+
if (!chain) {
|
|
384
|
+
chain = [];
|
|
385
|
+
// first block defined by start
|
|
386
|
+
let block = [start];
|
|
387
|
+
// while any intervening block found
|
|
388
|
+
while (isArray(block)) {
|
|
389
|
+
block = appendBlockToChain(chain, block, fallback);
|
|
390
|
+
}
|
|
391
|
+
// prettier-ignore
|
|
392
|
+
// last block defined by default
|
|
393
|
+
const defaults = isArray(fallback) || !isPlainObject(fallback)
|
|
394
|
+
? fallback
|
|
395
|
+
: fallback['default']
|
|
396
|
+
? fallback['default']
|
|
397
|
+
: null;
|
|
398
|
+
// convert defaults to array
|
|
399
|
+
block = isString(defaults) ? [defaults] : defaults;
|
|
400
|
+
if (isArray(block)) {
|
|
401
|
+
appendBlockToChain(chain, block, false);
|
|
402
|
+
}
|
|
403
|
+
context.__localeChainCache.set(startLocale, chain);
|
|
404
|
+
}
|
|
405
|
+
return chain;
|
|
406
|
+
}
|
|
407
|
+
function appendBlockToChain(chain, block, blocks) {
|
|
408
|
+
let follow = true;
|
|
409
|
+
for (let i = 0; i < block.length && isBoolean(follow); i++) {
|
|
410
|
+
const locale = block[i];
|
|
411
|
+
if (isString(locale)) {
|
|
412
|
+
follow = appendLocaleToChain(chain, block[i], blocks);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return follow;
|
|
416
|
+
}
|
|
417
|
+
function appendLocaleToChain(chain, locale, blocks) {
|
|
418
|
+
let follow;
|
|
419
|
+
const tokens = locale.split('-');
|
|
420
|
+
do {
|
|
421
|
+
const target = tokens.join('-');
|
|
422
|
+
follow = appendItemToChain(chain, target, blocks);
|
|
423
|
+
tokens.splice(-1, 1);
|
|
424
|
+
} while (tokens.length && follow === true);
|
|
425
|
+
return follow;
|
|
426
|
+
}
|
|
427
|
+
function appendItemToChain(chain, target, blocks) {
|
|
428
|
+
let follow = false;
|
|
429
|
+
if (!chain.includes(target)) {
|
|
430
|
+
follow = true;
|
|
431
|
+
if (target) {
|
|
432
|
+
follow = target[target.length - 1] !== '!';
|
|
433
|
+
const locale = target.replace(/!/g, '');
|
|
434
|
+
chain.push(locale);
|
|
435
|
+
if ((isArray(blocks) || isPlainObject(blocks)) &&
|
|
436
|
+
blocks[locale] // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
437
|
+
) {
|
|
438
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
439
|
+
follow = blocks[locale];
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return follow;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
const pathStateMachine = [];
|
|
447
|
+
pathStateMachine[0 /* States.BEFORE_PATH */] = {
|
|
448
|
+
["w" /* PathCharTypes.WORKSPACE */]: [0 /* States.BEFORE_PATH */],
|
|
449
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
450
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */],
|
|
451
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */]
|
|
452
|
+
};
|
|
453
|
+
pathStateMachine[1 /* States.IN_PATH */] = {
|
|
454
|
+
["w" /* PathCharTypes.WORKSPACE */]: [1 /* States.IN_PATH */],
|
|
455
|
+
["." /* PathCharTypes.DOT */]: [2 /* States.BEFORE_IDENT */],
|
|
456
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */],
|
|
457
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */]
|
|
458
|
+
};
|
|
459
|
+
pathStateMachine[2 /* States.BEFORE_IDENT */] = {
|
|
460
|
+
["w" /* PathCharTypes.WORKSPACE */]: [2 /* States.BEFORE_IDENT */],
|
|
461
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
462
|
+
["0" /* PathCharTypes.ZERO */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */]
|
|
463
|
+
};
|
|
464
|
+
pathStateMachine[3 /* States.IN_IDENT */] = {
|
|
465
|
+
["i" /* PathCharTypes.IDENT */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
466
|
+
["0" /* PathCharTypes.ZERO */]: [3 /* States.IN_IDENT */, 0 /* Actions.APPEND */],
|
|
467
|
+
["w" /* PathCharTypes.WORKSPACE */]: [1 /* States.IN_PATH */, 1 /* Actions.PUSH */],
|
|
468
|
+
["." /* PathCharTypes.DOT */]: [2 /* States.BEFORE_IDENT */, 1 /* Actions.PUSH */],
|
|
469
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [4 /* States.IN_SUB_PATH */, 1 /* Actions.PUSH */],
|
|
470
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: [7 /* States.AFTER_PATH */, 1 /* Actions.PUSH */]
|
|
471
|
+
};
|
|
472
|
+
pathStateMachine[4 /* States.IN_SUB_PATH */] = {
|
|
473
|
+
["'" /* PathCharTypes.SINGLE_QUOTE */]: [5 /* States.IN_SINGLE_QUOTE */, 0 /* Actions.APPEND */],
|
|
474
|
+
["\"" /* PathCharTypes.DOUBLE_QUOTE */]: [6 /* States.IN_DOUBLE_QUOTE */, 0 /* Actions.APPEND */],
|
|
475
|
+
["[" /* PathCharTypes.LEFT_BRACKET */]: [
|
|
476
|
+
4 /* States.IN_SUB_PATH */,
|
|
477
|
+
2 /* Actions.INC_SUB_PATH_DEPTH */
|
|
478
|
+
],
|
|
479
|
+
["]" /* PathCharTypes.RIGHT_BRACKET */]: [1 /* States.IN_PATH */, 3 /* Actions.PUSH_SUB_PATH */],
|
|
480
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
481
|
+
["l" /* PathCharTypes.ELSE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */]
|
|
482
|
+
};
|
|
483
|
+
pathStateMachine[5 /* States.IN_SINGLE_QUOTE */] = {
|
|
484
|
+
["'" /* PathCharTypes.SINGLE_QUOTE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */],
|
|
485
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
486
|
+
["l" /* PathCharTypes.ELSE */]: [5 /* States.IN_SINGLE_QUOTE */, 0 /* Actions.APPEND */]
|
|
487
|
+
};
|
|
488
|
+
pathStateMachine[6 /* States.IN_DOUBLE_QUOTE */] = {
|
|
489
|
+
["\"" /* PathCharTypes.DOUBLE_QUOTE */]: [4 /* States.IN_SUB_PATH */, 0 /* Actions.APPEND */],
|
|
490
|
+
["o" /* PathCharTypes.END_OF_FAIL */]: 8 /* States.ERROR */,
|
|
491
|
+
["l" /* PathCharTypes.ELSE */]: [6 /* States.IN_DOUBLE_QUOTE */, 0 /* Actions.APPEND */]
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* Check if an expression is a literal value.
|
|
495
|
+
*/
|
|
496
|
+
const literalValueRE = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
497
|
+
function isLiteral(exp) {
|
|
498
|
+
return literalValueRE.test(exp);
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Strip quotes from a string
|
|
502
|
+
*/
|
|
503
|
+
function stripQuotes(str) {
|
|
504
|
+
const a = str.charCodeAt(0);
|
|
505
|
+
const b = str.charCodeAt(str.length - 1);
|
|
506
|
+
return a === b && (a === 0x22 || a === 0x27) ? str.slice(1, -1) : str;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Determine the type of a character in a keypath.
|
|
510
|
+
*/
|
|
511
|
+
function getPathCharType(ch) {
|
|
512
|
+
if (ch === undefined || ch === null) {
|
|
513
|
+
return "o" /* PathCharTypes.END_OF_FAIL */;
|
|
514
|
+
}
|
|
515
|
+
const code = ch.charCodeAt(0);
|
|
516
|
+
switch (code) {
|
|
517
|
+
case 0x5b: // [
|
|
518
|
+
case 0x5d: // ]
|
|
519
|
+
case 0x2e: // .
|
|
520
|
+
case 0x22: // "
|
|
521
|
+
case 0x27: // '
|
|
522
|
+
return ch;
|
|
523
|
+
case 0x5f: // _
|
|
524
|
+
case 0x24: // $
|
|
525
|
+
case 0x2d: // -
|
|
526
|
+
return "i" /* PathCharTypes.IDENT */;
|
|
527
|
+
case 0x09: // Tab (HT)
|
|
528
|
+
case 0x0a: // Newline (LF)
|
|
529
|
+
case 0x0d: // Return (CR)
|
|
530
|
+
case 0xa0: // No-break space (NBSP)
|
|
531
|
+
case 0xfeff: // Byte Order Mark (BOM)
|
|
532
|
+
case 0x2028: // Line Separator (LS)
|
|
533
|
+
case 0x2029: // Paragraph Separator (PS)
|
|
534
|
+
return "w" /* PathCharTypes.WORKSPACE */;
|
|
535
|
+
}
|
|
536
|
+
return "i" /* PathCharTypes.IDENT */;
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Format a subPath, return its plain form if it is
|
|
540
|
+
* a literal string or number. Otherwise prepend the
|
|
541
|
+
* dynamic indicator (*).
|
|
542
|
+
*/
|
|
543
|
+
function formatSubPath(path) {
|
|
544
|
+
const trimmed = path.trim();
|
|
545
|
+
// invalid leading 0
|
|
546
|
+
if (path.charAt(0) === '0' && isNaN(parseInt(path))) {
|
|
547
|
+
return false;
|
|
548
|
+
}
|
|
549
|
+
return isLiteral(trimmed)
|
|
550
|
+
? stripQuotes(trimmed)
|
|
551
|
+
: "*" /* PathCharTypes.ASTARISK */ + trimmed;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Parse a string path into an array of segments
|
|
555
|
+
*/
|
|
556
|
+
function parse(path) {
|
|
557
|
+
const keys = [];
|
|
558
|
+
let index = -1;
|
|
559
|
+
let mode = 0 /* States.BEFORE_PATH */;
|
|
560
|
+
let subPathDepth = 0;
|
|
561
|
+
let c;
|
|
562
|
+
let key; // eslint-disable-line
|
|
563
|
+
let newChar;
|
|
564
|
+
let type;
|
|
565
|
+
let transition;
|
|
566
|
+
let action;
|
|
567
|
+
let typeMap;
|
|
568
|
+
const actions = [];
|
|
569
|
+
actions[0 /* Actions.APPEND */] = () => {
|
|
570
|
+
if (key === undefined) {
|
|
571
|
+
key = newChar;
|
|
572
|
+
}
|
|
573
|
+
else {
|
|
574
|
+
key += newChar;
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
actions[1 /* Actions.PUSH */] = () => {
|
|
578
|
+
if (key !== undefined) {
|
|
579
|
+
keys.push(key);
|
|
580
|
+
key = undefined;
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
actions[2 /* Actions.INC_SUB_PATH_DEPTH */] = () => {
|
|
584
|
+
actions[0 /* Actions.APPEND */]();
|
|
585
|
+
subPathDepth++;
|
|
586
|
+
};
|
|
587
|
+
actions[3 /* Actions.PUSH_SUB_PATH */] = () => {
|
|
588
|
+
if (subPathDepth > 0) {
|
|
589
|
+
subPathDepth--;
|
|
590
|
+
mode = 4 /* States.IN_SUB_PATH */;
|
|
591
|
+
actions[0 /* Actions.APPEND */]();
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
subPathDepth = 0;
|
|
595
|
+
if (key === undefined) {
|
|
596
|
+
return false;
|
|
597
|
+
}
|
|
598
|
+
key = formatSubPath(key);
|
|
599
|
+
if (key === false) {
|
|
600
|
+
return false;
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
actions[1 /* Actions.PUSH */]();
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
function maybeUnescapeQuote() {
|
|
608
|
+
const nextChar = path[index + 1];
|
|
609
|
+
if ((mode === 5 /* States.IN_SINGLE_QUOTE */ &&
|
|
610
|
+
nextChar === "'" /* PathCharTypes.SINGLE_QUOTE */) ||
|
|
611
|
+
(mode === 6 /* States.IN_DOUBLE_QUOTE */ &&
|
|
612
|
+
nextChar === "\"" /* PathCharTypes.DOUBLE_QUOTE */)) {
|
|
613
|
+
index++;
|
|
614
|
+
newChar = '\\' + nextChar;
|
|
615
|
+
actions[0 /* Actions.APPEND */]();
|
|
616
|
+
return true;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
while (mode !== null) {
|
|
620
|
+
index++;
|
|
621
|
+
c = path[index];
|
|
622
|
+
if (c === '\\' && maybeUnescapeQuote()) {
|
|
623
|
+
continue;
|
|
624
|
+
}
|
|
625
|
+
type = getPathCharType(c);
|
|
626
|
+
typeMap = pathStateMachine[mode];
|
|
627
|
+
transition = typeMap[type] || typeMap["l" /* PathCharTypes.ELSE */] || 8 /* States.ERROR */;
|
|
628
|
+
// check parse error
|
|
629
|
+
if (transition === 8 /* States.ERROR */) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
mode = transition[0];
|
|
633
|
+
if (transition[1] !== undefined) {
|
|
634
|
+
action = actions[transition[1]];
|
|
635
|
+
if (action) {
|
|
636
|
+
newChar = c;
|
|
637
|
+
if (action() === false) {
|
|
638
|
+
return;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
// check parse finish
|
|
643
|
+
if (mode === 7 /* States.AFTER_PATH */) {
|
|
644
|
+
return keys;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
// path token cache
|
|
649
|
+
const cache = new Map();
|
|
650
|
+
/**
|
|
651
|
+
* key-value message resolver
|
|
652
|
+
*
|
|
653
|
+
* @remarks
|
|
654
|
+
* Resolves messages with the key-value structure. Note that messages with a hierarchical structure such as objects cannot be resolved
|
|
655
|
+
*
|
|
656
|
+
* @param obj - A target object to be resolved with path
|
|
657
|
+
* @param path - A {@link Path | path} to resolve the value of message
|
|
658
|
+
*
|
|
659
|
+
* @returns A resolved {@link PathValue | path value}
|
|
660
|
+
*
|
|
661
|
+
* @VueI18nGeneral
|
|
662
|
+
*/
|
|
663
|
+
function resolveWithKeyValue(obj, path) {
|
|
664
|
+
return isObject(obj) ? obj[path] : null;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* message resolver
|
|
668
|
+
*
|
|
669
|
+
* @remarks
|
|
670
|
+
* Resolves messages. messages with a hierarchical structure such as objects can be resolved. This resolver is used in VueI18n as default.
|
|
671
|
+
*
|
|
672
|
+
* @param obj - A target object to be resolved with path
|
|
673
|
+
* @param path - A {@link Path | path} to resolve the value of message
|
|
674
|
+
*
|
|
675
|
+
* @returns A resolved {@link PathValue | path value}
|
|
676
|
+
*
|
|
677
|
+
* @VueI18nGeneral
|
|
678
|
+
*/
|
|
679
|
+
function resolveValue(obj, path) {
|
|
680
|
+
// check object
|
|
681
|
+
if (!isObject(obj)) {
|
|
682
|
+
return null;
|
|
683
|
+
}
|
|
684
|
+
// parse path
|
|
685
|
+
let hit = cache.get(path);
|
|
686
|
+
if (!hit) {
|
|
687
|
+
hit = parse(path);
|
|
688
|
+
if (hit) {
|
|
689
|
+
cache.set(path, hit);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
// check hit
|
|
693
|
+
if (!hit) {
|
|
694
|
+
return null;
|
|
695
|
+
}
|
|
696
|
+
// resolve path value
|
|
697
|
+
const len = hit.length;
|
|
698
|
+
let last = obj;
|
|
699
|
+
let i = 0;
|
|
700
|
+
while (i < len) {
|
|
701
|
+
const key = hit[i];
|
|
702
|
+
/**
|
|
703
|
+
* NOTE:
|
|
704
|
+
* if `key` is intlify message format AST node key and `last` is intlify message format AST, skip it.
|
|
705
|
+
* because the AST node is not a key-value structure.
|
|
706
|
+
*/
|
|
707
|
+
if (AST_NODE_PROPS_KEYS.includes(key) && isMessageAST(last)) {
|
|
708
|
+
return null;
|
|
709
|
+
}
|
|
710
|
+
const val = last[key];
|
|
711
|
+
if (val === undefined) {
|
|
712
|
+
return null;
|
|
713
|
+
}
|
|
714
|
+
if (isFunction(last)) {
|
|
715
|
+
return null;
|
|
716
|
+
}
|
|
717
|
+
last = val;
|
|
718
|
+
i++;
|
|
719
|
+
}
|
|
720
|
+
return last;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const CoreWarnCodes = {
|
|
724
|
+
NOT_FOUND_KEY: 1,
|
|
725
|
+
FALLBACK_TO_TRANSLATE: 2,
|
|
726
|
+
CANNOT_FORMAT_NUMBER: 3,
|
|
727
|
+
FALLBACK_TO_NUMBER_FORMAT: 4,
|
|
728
|
+
CANNOT_FORMAT_DATE: 5,
|
|
729
|
+
FALLBACK_TO_DATE_FORMAT: 6,
|
|
730
|
+
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
731
|
+
};
|
|
732
|
+
const CORE_WARN_CODES_EXTEND_POINT = 8;
|
|
733
|
+
/** @internal */
|
|
734
|
+
const warnMessages = {
|
|
735
|
+
[CoreWarnCodes.NOT_FOUND_KEY]: `Not found '{key}' key in '{locale}' locale messages.`,
|
|
736
|
+
[CoreWarnCodes.FALLBACK_TO_TRANSLATE]: `Fall back to translate '{key}' key with '{target}' locale.`,
|
|
737
|
+
[CoreWarnCodes.CANNOT_FORMAT_NUMBER]: `Cannot format a number value due to not supported Intl.NumberFormat.`,
|
|
738
|
+
[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]: `Fall back to number format '{key}' key with '{target}' locale.`,
|
|
739
|
+
[CoreWarnCodes.CANNOT_FORMAT_DATE]: `Cannot format a date value due to not supported Intl.DateTimeFormat.`,
|
|
740
|
+
[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]: `Fall back to datetime format '{key}' key with '{target}' locale.`,
|
|
741
|
+
[CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: `This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.`
|
|
742
|
+
};
|
|
743
|
+
function getWarnMessage(code, ...args) {
|
|
744
|
+
return format$1(warnMessages[code], ...args);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
748
|
+
/**
|
|
749
|
+
* Intlify core-base version
|
|
750
|
+
* @internal
|
|
751
|
+
*/
|
|
752
|
+
const VERSION = '11.1.12';
|
|
753
|
+
const NOT_REOSLVED = -1;
|
|
754
|
+
const DEFAULT_LOCALE = 'en-US';
|
|
755
|
+
const MISSING_RESOLVE_VALUE = '';
|
|
756
|
+
const capitalize = (str) => `${str.charAt(0).toLocaleUpperCase()}${str.substr(1)}`;
|
|
757
|
+
function getDefaultLinkedModifiers() {
|
|
758
|
+
return {
|
|
759
|
+
upper: (val, type) => {
|
|
760
|
+
// prettier-ignore
|
|
761
|
+
return type === 'text' && isString(val)
|
|
762
|
+
? val.toUpperCase()
|
|
763
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
764
|
+
? val.children.toUpperCase()
|
|
765
|
+
: val;
|
|
766
|
+
},
|
|
767
|
+
lower: (val, type) => {
|
|
768
|
+
// prettier-ignore
|
|
769
|
+
return type === 'text' && isString(val)
|
|
770
|
+
? val.toLowerCase()
|
|
771
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
772
|
+
? val.children.toLowerCase()
|
|
773
|
+
: val;
|
|
774
|
+
},
|
|
775
|
+
capitalize: (val, type) => {
|
|
776
|
+
// prettier-ignore
|
|
777
|
+
return (type === 'text' && isString(val)
|
|
778
|
+
? capitalize(val)
|
|
779
|
+
: type === 'vnode' && isObject(val) && '__v_isVNode' in val
|
|
780
|
+
? capitalize(val.children)
|
|
781
|
+
: val);
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
let _compiler;
|
|
786
|
+
function registerMessageCompiler(compiler) {
|
|
787
|
+
_compiler = compiler;
|
|
788
|
+
}
|
|
789
|
+
let _resolver;
|
|
790
|
+
/**
|
|
791
|
+
* Register the message resolver
|
|
792
|
+
*
|
|
793
|
+
* @param resolver - A {@link MessageResolver} function
|
|
794
|
+
*
|
|
795
|
+
* @VueI18nGeneral
|
|
796
|
+
*/
|
|
797
|
+
function registerMessageResolver(resolver) {
|
|
798
|
+
_resolver = resolver;
|
|
799
|
+
}
|
|
800
|
+
let _fallbacker;
|
|
801
|
+
/**
|
|
802
|
+
* Register the locale fallbacker
|
|
803
|
+
*
|
|
804
|
+
* @param fallbacker - A {@link LocaleFallbacker} function
|
|
805
|
+
*
|
|
806
|
+
* @VueI18nGeneral
|
|
807
|
+
*/
|
|
808
|
+
function registerLocaleFallbacker(fallbacker) {
|
|
809
|
+
_fallbacker = fallbacker;
|
|
810
|
+
}
|
|
811
|
+
// Additional Meta for Intlify DevTools
|
|
812
|
+
let _additionalMeta = null;
|
|
813
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
814
|
+
const setAdditionalMeta = (meta) => {
|
|
815
|
+
_additionalMeta = meta;
|
|
816
|
+
};
|
|
817
|
+
/* #__NO_SIDE_EFFECTS__ */
|
|
818
|
+
const getAdditionalMeta = () => _additionalMeta;
|
|
819
|
+
let _fallbackContext = null;
|
|
820
|
+
const setFallbackContext = (context) => {
|
|
821
|
+
_fallbackContext = context;
|
|
822
|
+
};
|
|
823
|
+
const getFallbackContext = () => _fallbackContext;
|
|
824
|
+
// ID for CoreContext
|
|
825
|
+
let _cid = 0;
|
|
826
|
+
function createCoreContext(options = {}) {
|
|
827
|
+
// setup options
|
|
828
|
+
const onWarn = isFunction(options.onWarn) ? options.onWarn : warn;
|
|
829
|
+
const version = isString(options.version) ? options.version : VERSION;
|
|
830
|
+
const locale = isString(options.locale) || isFunction(options.locale)
|
|
831
|
+
? options.locale
|
|
832
|
+
: DEFAULT_LOCALE;
|
|
833
|
+
const _locale = isFunction(locale) ? DEFAULT_LOCALE : locale;
|
|
834
|
+
const fallbackLocale = isArray(options.fallbackLocale) ||
|
|
835
|
+
isPlainObject(options.fallbackLocale) ||
|
|
836
|
+
isString(options.fallbackLocale) ||
|
|
837
|
+
options.fallbackLocale === false
|
|
838
|
+
? options.fallbackLocale
|
|
839
|
+
: _locale;
|
|
840
|
+
const messages = isPlainObject(options.messages)
|
|
841
|
+
? options.messages
|
|
842
|
+
: createResources(_locale);
|
|
843
|
+
const datetimeFormats = isPlainObject(options.datetimeFormats)
|
|
844
|
+
? options.datetimeFormats
|
|
845
|
+
: createResources(_locale)
|
|
846
|
+
;
|
|
847
|
+
const numberFormats = isPlainObject(options.numberFormats)
|
|
848
|
+
? options.numberFormats
|
|
849
|
+
: createResources(_locale)
|
|
850
|
+
;
|
|
851
|
+
const modifiers = assign(create(), options.modifiers, getDefaultLinkedModifiers());
|
|
852
|
+
const pluralRules = options.pluralRules || create();
|
|
853
|
+
const missing = isFunction(options.missing) ? options.missing : null;
|
|
854
|
+
const missingWarn = isBoolean(options.missingWarn) || isRegExp(options.missingWarn)
|
|
855
|
+
? options.missingWarn
|
|
856
|
+
: true;
|
|
857
|
+
const fallbackWarn = isBoolean(options.fallbackWarn) || isRegExp(options.fallbackWarn)
|
|
858
|
+
? options.fallbackWarn
|
|
859
|
+
: true;
|
|
860
|
+
const fallbackFormat = !!options.fallbackFormat;
|
|
861
|
+
const unresolving = !!options.unresolving;
|
|
862
|
+
const postTranslation = isFunction(options.postTranslation)
|
|
863
|
+
? options.postTranslation
|
|
864
|
+
: null;
|
|
865
|
+
const processor = isPlainObject(options.processor) ? options.processor : null;
|
|
866
|
+
const warnHtmlMessage = isBoolean(options.warnHtmlMessage)
|
|
867
|
+
? options.warnHtmlMessage
|
|
868
|
+
: true;
|
|
869
|
+
const escapeParameter = !!options.escapeParameter;
|
|
870
|
+
const messageCompiler = isFunction(options.messageCompiler)
|
|
871
|
+
? options.messageCompiler
|
|
872
|
+
: _compiler;
|
|
873
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
874
|
+
!false &&
|
|
875
|
+
!false &&
|
|
876
|
+
isFunction(options.messageCompiler)) {
|
|
877
|
+
warnOnce(getWarnMessage(CoreWarnCodes.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
878
|
+
}
|
|
879
|
+
const messageResolver = isFunction(options.messageResolver)
|
|
880
|
+
? options.messageResolver
|
|
881
|
+
: _resolver || resolveWithKeyValue;
|
|
882
|
+
const localeFallbacker = isFunction(options.localeFallbacker)
|
|
883
|
+
? options.localeFallbacker
|
|
884
|
+
: _fallbacker || fallbackWithSimple;
|
|
885
|
+
const fallbackContext = isObject(options.fallbackContext)
|
|
886
|
+
? options.fallbackContext
|
|
887
|
+
: undefined;
|
|
888
|
+
// setup internal options
|
|
889
|
+
const internalOptions = options;
|
|
890
|
+
const __datetimeFormatters = isObject(internalOptions.__datetimeFormatters)
|
|
891
|
+
? internalOptions.__datetimeFormatters
|
|
892
|
+
: new Map()
|
|
893
|
+
;
|
|
894
|
+
const __numberFormatters = isObject(internalOptions.__numberFormatters)
|
|
895
|
+
? internalOptions.__numberFormatters
|
|
896
|
+
: new Map()
|
|
897
|
+
;
|
|
898
|
+
const __meta = isObject(internalOptions.__meta) ? internalOptions.__meta : {};
|
|
899
|
+
_cid++;
|
|
900
|
+
const context = {
|
|
901
|
+
version,
|
|
902
|
+
cid: _cid,
|
|
903
|
+
locale,
|
|
904
|
+
fallbackLocale,
|
|
905
|
+
messages,
|
|
906
|
+
modifiers,
|
|
907
|
+
pluralRules,
|
|
908
|
+
missing,
|
|
909
|
+
missingWarn,
|
|
910
|
+
fallbackWarn,
|
|
911
|
+
fallbackFormat,
|
|
912
|
+
unresolving,
|
|
913
|
+
postTranslation,
|
|
914
|
+
processor,
|
|
915
|
+
warnHtmlMessage,
|
|
916
|
+
escapeParameter,
|
|
917
|
+
messageCompiler,
|
|
918
|
+
messageResolver,
|
|
919
|
+
localeFallbacker,
|
|
920
|
+
fallbackContext,
|
|
921
|
+
onWarn,
|
|
922
|
+
__meta
|
|
923
|
+
};
|
|
924
|
+
{
|
|
925
|
+
context.datetimeFormats = datetimeFormats;
|
|
926
|
+
context.numberFormats = numberFormats;
|
|
927
|
+
context.__datetimeFormatters = __datetimeFormatters;
|
|
928
|
+
context.__numberFormatters = __numberFormatters;
|
|
929
|
+
}
|
|
930
|
+
// for vue-devtools timeline event
|
|
931
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
932
|
+
context.__v_emitter =
|
|
933
|
+
internalOptions.__v_emitter != null
|
|
934
|
+
? internalOptions.__v_emitter
|
|
935
|
+
: undefined;
|
|
936
|
+
}
|
|
937
|
+
// NOTE: experimental !!
|
|
938
|
+
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) {
|
|
939
|
+
initI18nDevTools(context, version, __meta);
|
|
940
|
+
}
|
|
941
|
+
return context;
|
|
942
|
+
}
|
|
943
|
+
const createResources = (locale) => ({ [locale]: create() });
|
|
944
|
+
/** @internal */
|
|
945
|
+
function isTranslateFallbackWarn(fallback, key) {
|
|
946
|
+
return fallback instanceof RegExp ? fallback.test(key) : fallback;
|
|
947
|
+
}
|
|
948
|
+
/** @internal */
|
|
949
|
+
function isTranslateMissingWarn(missing, key) {
|
|
950
|
+
return missing instanceof RegExp ? missing.test(key) : missing;
|
|
951
|
+
}
|
|
952
|
+
/** @internal */
|
|
953
|
+
function handleMissing(context, key, locale, missingWarn, type) {
|
|
954
|
+
const { missing, onWarn } = context;
|
|
955
|
+
// for vue-devtools timeline event
|
|
956
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
957
|
+
const emitter = context.__v_emitter;
|
|
958
|
+
if (emitter) {
|
|
959
|
+
emitter.emit('missing', {
|
|
960
|
+
locale,
|
|
961
|
+
key,
|
|
962
|
+
type,
|
|
963
|
+
groupId: `${type}:${key}`
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
if (missing !== null) {
|
|
968
|
+
const ret = missing(context, locale, key, type);
|
|
969
|
+
return isString(ret) ? ret : key;
|
|
970
|
+
}
|
|
971
|
+
else {
|
|
972
|
+
if ((process.env.NODE_ENV !== 'production') && isTranslateMissingWarn(missingWarn, key)) {
|
|
973
|
+
onWarn(getWarnMessage(CoreWarnCodes.NOT_FOUND_KEY, { key, locale }));
|
|
974
|
+
}
|
|
975
|
+
return key;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
/** @internal */
|
|
979
|
+
function updateFallbackLocale(ctx, locale, fallback) {
|
|
980
|
+
const context = ctx;
|
|
981
|
+
context.__localeChainCache = new Map();
|
|
982
|
+
ctx.localeFallbacker(ctx, fallback, locale);
|
|
983
|
+
}
|
|
984
|
+
/** @internal */
|
|
985
|
+
function isAlmostSameLocale(locale, compareLocale) {
|
|
986
|
+
if (locale === compareLocale)
|
|
987
|
+
return false;
|
|
988
|
+
return locale.split('-')[0] === compareLocale.split('-')[0];
|
|
989
|
+
}
|
|
990
|
+
/** @internal */
|
|
991
|
+
function isImplicitFallback(targetLocale, locales) {
|
|
992
|
+
const index = locales.indexOf(targetLocale);
|
|
993
|
+
if (index === -1) {
|
|
994
|
+
return false;
|
|
995
|
+
}
|
|
996
|
+
for (let i = index + 1; i < locales.length; i++) {
|
|
997
|
+
if (isAlmostSameLocale(targetLocale, locales[i])) {
|
|
998
|
+
return true;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
1004
|
+
|
|
1005
|
+
const intlDefined = typeof Intl !== 'undefined';
|
|
1006
|
+
const Availabilities = {
|
|
1007
|
+
dateTimeFormat: intlDefined && typeof Intl.DateTimeFormat !== 'undefined',
|
|
1008
|
+
numberFormat: intlDefined && typeof Intl.NumberFormat !== 'undefined'
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
// implementation of `datetime` function
|
|
1012
|
+
function datetime(context, ...args) {
|
|
1013
|
+
const { datetimeFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
|
|
1014
|
+
const { __datetimeFormatters } = context;
|
|
1015
|
+
if ((process.env.NODE_ENV !== 'production') && !Availabilities.dateTimeFormat) {
|
|
1016
|
+
onWarn(getWarnMessage(CoreWarnCodes.CANNOT_FORMAT_DATE));
|
|
1017
|
+
return MISSING_RESOLVE_VALUE;
|
|
1018
|
+
}
|
|
1019
|
+
const [key, value, options, overrides] = parseDateTimeArgs(...args);
|
|
1020
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1021
|
+
? options.missingWarn
|
|
1022
|
+
: context.missingWarn;
|
|
1023
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1024
|
+
? options.fallbackWarn
|
|
1025
|
+
: context.fallbackWarn;
|
|
1026
|
+
const part = !!options.part;
|
|
1027
|
+
const locale = getLocale(context, options);
|
|
1028
|
+
const locales = localeFallbacker(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1029
|
+
fallbackLocale, locale);
|
|
1030
|
+
if (!isString(key) || key === '') {
|
|
1031
|
+
return new Intl.DateTimeFormat(locale, overrides).format(value);
|
|
1032
|
+
}
|
|
1033
|
+
// resolve format
|
|
1034
|
+
let datetimeFormat = {};
|
|
1035
|
+
let targetLocale;
|
|
1036
|
+
let format = null;
|
|
1037
|
+
let from = locale;
|
|
1038
|
+
let to = null;
|
|
1039
|
+
const type = 'datetime format';
|
|
1040
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1041
|
+
targetLocale = to = locales[i];
|
|
1042
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1043
|
+
locale !== targetLocale &&
|
|
1044
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1045
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_DATE_FORMAT, {
|
|
1046
|
+
key,
|
|
1047
|
+
target: targetLocale
|
|
1048
|
+
}));
|
|
1049
|
+
}
|
|
1050
|
+
// for vue-devtools timeline event
|
|
1051
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1052
|
+
const emitter = context.__v_emitter;
|
|
1053
|
+
if (emitter) {
|
|
1054
|
+
emitter.emit('fallback', {
|
|
1055
|
+
type,
|
|
1056
|
+
key,
|
|
1057
|
+
from,
|
|
1058
|
+
to,
|
|
1059
|
+
groupId: `${type}:${key}`
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
datetimeFormat =
|
|
1064
|
+
datetimeFormats[targetLocale] || {};
|
|
1065
|
+
format = datetimeFormat[key];
|
|
1066
|
+
if (isPlainObject(format))
|
|
1067
|
+
break;
|
|
1068
|
+
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1069
|
+
from = to;
|
|
1070
|
+
}
|
|
1071
|
+
// checking format and target locale
|
|
1072
|
+
if (!isPlainObject(format) || !isString(targetLocale)) {
|
|
1073
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1074
|
+
}
|
|
1075
|
+
let id = `${targetLocale}__${key}`;
|
|
1076
|
+
if (!isEmptyObject(overrides)) {
|
|
1077
|
+
id = `${id}__${JSON.stringify(overrides)}`;
|
|
1078
|
+
}
|
|
1079
|
+
let formatter = __datetimeFormatters.get(id);
|
|
1080
|
+
if (!formatter) {
|
|
1081
|
+
formatter = new Intl.DateTimeFormat(targetLocale, assign({}, format, overrides));
|
|
1082
|
+
__datetimeFormatters.set(id, formatter);
|
|
1083
|
+
}
|
|
1084
|
+
return !part ? formatter.format(value) : formatter.formatToParts(value);
|
|
1085
|
+
}
|
|
1086
|
+
/** @internal */
|
|
1087
|
+
const DATETIME_FORMAT_OPTIONS_KEYS = [
|
|
1088
|
+
'localeMatcher',
|
|
1089
|
+
'weekday',
|
|
1090
|
+
'era',
|
|
1091
|
+
'year',
|
|
1092
|
+
'month',
|
|
1093
|
+
'day',
|
|
1094
|
+
'hour',
|
|
1095
|
+
'minute',
|
|
1096
|
+
'second',
|
|
1097
|
+
'timeZoneName',
|
|
1098
|
+
'formatMatcher',
|
|
1099
|
+
'hour12',
|
|
1100
|
+
'timeZone',
|
|
1101
|
+
'dateStyle',
|
|
1102
|
+
'timeStyle',
|
|
1103
|
+
'calendar',
|
|
1104
|
+
'dayPeriod',
|
|
1105
|
+
'numberingSystem',
|
|
1106
|
+
'hourCycle',
|
|
1107
|
+
'fractionalSecondDigits'
|
|
1108
|
+
];
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
function parseDateTimeArgs(...args) {
|
|
1111
|
+
const [arg1, arg2, arg3, arg4] = args;
|
|
1112
|
+
const options = create();
|
|
1113
|
+
let overrides = create();
|
|
1114
|
+
let value;
|
|
1115
|
+
if (isString(arg1)) {
|
|
1116
|
+
// Only allow ISO strings - other date formats are often supported,
|
|
1117
|
+
// but may cause different results in different browsers.
|
|
1118
|
+
const matches = arg1.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1119
|
+
if (!matches) {
|
|
1120
|
+
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
1121
|
+
}
|
|
1122
|
+
// Some browsers can not parse the iso datetime separated by space,
|
|
1123
|
+
// this is a compromise solution by replace the 'T'/' ' with 'T'
|
|
1124
|
+
const dateTime = matches[3]
|
|
1125
|
+
? matches[3].trim().startsWith('T')
|
|
1126
|
+
? `${matches[1].trim()}${matches[3].trim()}`
|
|
1127
|
+
: `${matches[1].trim()}T${matches[3].trim()}`
|
|
1128
|
+
: matches[1].trim();
|
|
1129
|
+
value = new Date(dateTime);
|
|
1130
|
+
try {
|
|
1131
|
+
// This will fail if the date is not valid
|
|
1132
|
+
value.toISOString();
|
|
1133
|
+
}
|
|
1134
|
+
catch {
|
|
1135
|
+
throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
else if (isDate(arg1)) {
|
|
1139
|
+
if (isNaN(arg1.getTime())) {
|
|
1140
|
+
throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);
|
|
1141
|
+
}
|
|
1142
|
+
value = arg1;
|
|
1143
|
+
}
|
|
1144
|
+
else if (isNumber(arg1)) {
|
|
1145
|
+
value = arg1;
|
|
1146
|
+
}
|
|
1147
|
+
else {
|
|
1148
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1149
|
+
}
|
|
1150
|
+
if (isString(arg2)) {
|
|
1151
|
+
options.key = arg2;
|
|
1152
|
+
}
|
|
1153
|
+
else if (isPlainObject(arg2)) {
|
|
1154
|
+
Object.keys(arg2).forEach(key => {
|
|
1155
|
+
if (DATETIME_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
1156
|
+
overrides[key] = arg2[key];
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
options[key] = arg2[key];
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
if (isString(arg3)) {
|
|
1164
|
+
options.locale = arg3;
|
|
1165
|
+
}
|
|
1166
|
+
else if (isPlainObject(arg3)) {
|
|
1167
|
+
overrides = arg3;
|
|
1168
|
+
}
|
|
1169
|
+
if (isPlainObject(arg4)) {
|
|
1170
|
+
overrides = arg4;
|
|
1171
|
+
}
|
|
1172
|
+
return [options.key || '', value, options, overrides];
|
|
1173
|
+
}
|
|
1174
|
+
/** @internal */
|
|
1175
|
+
function clearDateTimeFormat(ctx, locale, format) {
|
|
1176
|
+
const context = ctx;
|
|
1177
|
+
for (const key in format) {
|
|
1178
|
+
const id = `${locale}__${key}`;
|
|
1179
|
+
if (!context.__datetimeFormatters.has(id)) {
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1182
|
+
context.__datetimeFormatters.delete(id);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
// implementation of `number` function
|
|
1187
|
+
function number(context, ...args) {
|
|
1188
|
+
const { numberFormats, unresolving, fallbackLocale, onWarn, localeFallbacker } = context;
|
|
1189
|
+
const { __numberFormatters } = context;
|
|
1190
|
+
if ((process.env.NODE_ENV !== 'production') && !Availabilities.numberFormat) {
|
|
1191
|
+
onWarn(getWarnMessage(CoreWarnCodes.CANNOT_FORMAT_NUMBER));
|
|
1192
|
+
return MISSING_RESOLVE_VALUE;
|
|
1193
|
+
}
|
|
1194
|
+
const [key, value, options, overrides] = parseNumberArgs(...args);
|
|
1195
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1196
|
+
? options.missingWarn
|
|
1197
|
+
: context.missingWarn;
|
|
1198
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1199
|
+
? options.fallbackWarn
|
|
1200
|
+
: context.fallbackWarn;
|
|
1201
|
+
const part = !!options.part;
|
|
1202
|
+
const locale = getLocale(context, options);
|
|
1203
|
+
const locales = localeFallbacker(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1204
|
+
fallbackLocale, locale);
|
|
1205
|
+
if (!isString(key) || key === '') {
|
|
1206
|
+
return new Intl.NumberFormat(locale, overrides).format(value);
|
|
1207
|
+
}
|
|
1208
|
+
// resolve format
|
|
1209
|
+
let numberFormat = {};
|
|
1210
|
+
let targetLocale;
|
|
1211
|
+
let format = null;
|
|
1212
|
+
let from = locale;
|
|
1213
|
+
let to = null;
|
|
1214
|
+
const type = 'number format';
|
|
1215
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1216
|
+
targetLocale = to = locales[i];
|
|
1217
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1218
|
+
locale !== targetLocale &&
|
|
1219
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1220
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT, {
|
|
1221
|
+
key,
|
|
1222
|
+
target: targetLocale
|
|
1223
|
+
}));
|
|
1224
|
+
}
|
|
1225
|
+
// for vue-devtools timeline event
|
|
1226
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1227
|
+
const emitter = context.__v_emitter;
|
|
1228
|
+
if (emitter) {
|
|
1229
|
+
emitter.emit('fallback', {
|
|
1230
|
+
type,
|
|
1231
|
+
key,
|
|
1232
|
+
from,
|
|
1233
|
+
to,
|
|
1234
|
+
groupId: `${type}:${key}`
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
numberFormat =
|
|
1239
|
+
numberFormats[targetLocale] || {};
|
|
1240
|
+
format = numberFormat[key];
|
|
1241
|
+
if (isPlainObject(format))
|
|
1242
|
+
break;
|
|
1243
|
+
handleMissing(context, key, targetLocale, missingWarn, type); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1244
|
+
from = to;
|
|
1245
|
+
}
|
|
1246
|
+
// checking format and target locale
|
|
1247
|
+
if (!isPlainObject(format) || !isString(targetLocale)) {
|
|
1248
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1249
|
+
}
|
|
1250
|
+
let id = `${targetLocale}__${key}`;
|
|
1251
|
+
if (!isEmptyObject(overrides)) {
|
|
1252
|
+
id = `${id}__${JSON.stringify(overrides)}`;
|
|
1253
|
+
}
|
|
1254
|
+
let formatter = __numberFormatters.get(id);
|
|
1255
|
+
if (!formatter) {
|
|
1256
|
+
formatter = new Intl.NumberFormat(targetLocale, assign({}, format, overrides));
|
|
1257
|
+
__numberFormatters.set(id, formatter);
|
|
1258
|
+
}
|
|
1259
|
+
return !part ? formatter.format(value) : formatter.formatToParts(value);
|
|
1260
|
+
}
|
|
1261
|
+
/** @internal */
|
|
1262
|
+
const NUMBER_FORMAT_OPTIONS_KEYS = [
|
|
1263
|
+
'localeMatcher',
|
|
1264
|
+
'style',
|
|
1265
|
+
'currency',
|
|
1266
|
+
'currencyDisplay',
|
|
1267
|
+
'currencySign',
|
|
1268
|
+
'useGrouping',
|
|
1269
|
+
'minimumIntegerDigits',
|
|
1270
|
+
'minimumFractionDigits',
|
|
1271
|
+
'maximumFractionDigits',
|
|
1272
|
+
'minimumSignificantDigits',
|
|
1273
|
+
'maximumSignificantDigits',
|
|
1274
|
+
'compactDisplay',
|
|
1275
|
+
'notation',
|
|
1276
|
+
'signDisplay',
|
|
1277
|
+
'unit',
|
|
1278
|
+
'unitDisplay',
|
|
1279
|
+
'roundingMode',
|
|
1280
|
+
'roundingPriority',
|
|
1281
|
+
'roundingIncrement',
|
|
1282
|
+
'trailingZeroDisplay'
|
|
1283
|
+
];
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
function parseNumberArgs(...args) {
|
|
1286
|
+
const [arg1, arg2, arg3, arg4] = args;
|
|
1287
|
+
const options = create();
|
|
1288
|
+
let overrides = create();
|
|
1289
|
+
if (!isNumber(arg1)) {
|
|
1290
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1291
|
+
}
|
|
1292
|
+
const value = arg1;
|
|
1293
|
+
if (isString(arg2)) {
|
|
1294
|
+
options.key = arg2;
|
|
1295
|
+
}
|
|
1296
|
+
else if (isPlainObject(arg2)) {
|
|
1297
|
+
Object.keys(arg2).forEach(key => {
|
|
1298
|
+
if (NUMBER_FORMAT_OPTIONS_KEYS.includes(key)) {
|
|
1299
|
+
overrides[key] = arg2[key];
|
|
1300
|
+
}
|
|
1301
|
+
else {
|
|
1302
|
+
options[key] = arg2[key];
|
|
1303
|
+
}
|
|
1304
|
+
});
|
|
1305
|
+
}
|
|
1306
|
+
if (isString(arg3)) {
|
|
1307
|
+
options.locale = arg3;
|
|
1308
|
+
}
|
|
1309
|
+
else if (isPlainObject(arg3)) {
|
|
1310
|
+
overrides = arg3;
|
|
1311
|
+
}
|
|
1312
|
+
if (isPlainObject(arg4)) {
|
|
1313
|
+
overrides = arg4;
|
|
1314
|
+
}
|
|
1315
|
+
return [options.key || '', value, options, overrides];
|
|
1316
|
+
}
|
|
1317
|
+
/** @internal */
|
|
1318
|
+
function clearNumberFormat(ctx, locale, format) {
|
|
1319
|
+
const context = ctx;
|
|
1320
|
+
for (const key in format) {
|
|
1321
|
+
const id = `${locale}__${key}`;
|
|
1322
|
+
if (!context.__numberFormatters.has(id)) {
|
|
1323
|
+
continue;
|
|
1324
|
+
}
|
|
1325
|
+
context.__numberFormatters.delete(id);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
const DEFAULT_MODIFIER = (str) => str;
|
|
1330
|
+
const DEFAULT_MESSAGE = (ctx) => ''; // eslint-disable-line
|
|
1331
|
+
const DEFAULT_MESSAGE_DATA_TYPE = 'text';
|
|
1332
|
+
const DEFAULT_NORMALIZE = (values) => values.length === 0 ? '' : join(values);
|
|
1333
|
+
const DEFAULT_INTERPOLATE = toDisplayString;
|
|
1334
|
+
function pluralDefault(choice, choicesLength) {
|
|
1335
|
+
choice = Math.abs(choice);
|
|
1336
|
+
if (choicesLength === 2) {
|
|
1337
|
+
// prettier-ignore
|
|
1338
|
+
return choice
|
|
1339
|
+
? choice > 1
|
|
1340
|
+
? 1
|
|
1341
|
+
: 0
|
|
1342
|
+
: 1;
|
|
1343
|
+
}
|
|
1344
|
+
return choice ? Math.min(choice, 2) : 0;
|
|
1345
|
+
}
|
|
1346
|
+
function getPluralIndex(options) {
|
|
1347
|
+
// prettier-ignore
|
|
1348
|
+
const index = isNumber(options.pluralIndex)
|
|
1349
|
+
? options.pluralIndex
|
|
1350
|
+
: -1;
|
|
1351
|
+
// prettier-ignore
|
|
1352
|
+
return options.named && (isNumber(options.named.count) || isNumber(options.named.n))
|
|
1353
|
+
? isNumber(options.named.count)
|
|
1354
|
+
? options.named.count
|
|
1355
|
+
: isNumber(options.named.n)
|
|
1356
|
+
? options.named.n
|
|
1357
|
+
: index
|
|
1358
|
+
: index;
|
|
1359
|
+
}
|
|
1360
|
+
function normalizeNamed(pluralIndex, props) {
|
|
1361
|
+
if (!props.count) {
|
|
1362
|
+
props.count = pluralIndex;
|
|
1363
|
+
}
|
|
1364
|
+
if (!props.n) {
|
|
1365
|
+
props.n = pluralIndex;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
function createMessageContext(options = {}) {
|
|
1369
|
+
const locale = options.locale;
|
|
1370
|
+
const pluralIndex = getPluralIndex(options);
|
|
1371
|
+
const pluralRule = isObject(options.pluralRules) &&
|
|
1372
|
+
isString(locale) &&
|
|
1373
|
+
isFunction(options.pluralRules[locale])
|
|
1374
|
+
? options.pluralRules[locale]
|
|
1375
|
+
: pluralDefault;
|
|
1376
|
+
const orgPluralRule = isObject(options.pluralRules) &&
|
|
1377
|
+
isString(locale) &&
|
|
1378
|
+
isFunction(options.pluralRules[locale])
|
|
1379
|
+
? pluralDefault
|
|
1380
|
+
: undefined;
|
|
1381
|
+
const plural = (messages) => {
|
|
1382
|
+
return messages[pluralRule(pluralIndex, messages.length, orgPluralRule)];
|
|
1383
|
+
};
|
|
1384
|
+
const _list = options.list || [];
|
|
1385
|
+
const list = (index) => _list[index];
|
|
1386
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1387
|
+
const _named = options.named || create();
|
|
1388
|
+
isNumber(options.pluralIndex) && normalizeNamed(pluralIndex, _named);
|
|
1389
|
+
const named = (key) => _named[key];
|
|
1390
|
+
function message(key, useLinked) {
|
|
1391
|
+
// prettier-ignore
|
|
1392
|
+
const msg = isFunction(options.messages)
|
|
1393
|
+
? options.messages(key, !!useLinked)
|
|
1394
|
+
: isObject(options.messages)
|
|
1395
|
+
? options.messages[key]
|
|
1396
|
+
: false;
|
|
1397
|
+
return !msg
|
|
1398
|
+
? options.parent
|
|
1399
|
+
? options.parent.message(key) // resolve from parent messages
|
|
1400
|
+
: DEFAULT_MESSAGE
|
|
1401
|
+
: msg;
|
|
1402
|
+
}
|
|
1403
|
+
const _modifier = (name) => options.modifiers
|
|
1404
|
+
? options.modifiers[name]
|
|
1405
|
+
: DEFAULT_MODIFIER;
|
|
1406
|
+
const normalize = isPlainObject(options.processor) && isFunction(options.processor.normalize)
|
|
1407
|
+
? options.processor.normalize
|
|
1408
|
+
: DEFAULT_NORMALIZE;
|
|
1409
|
+
const interpolate = isPlainObject(options.processor) &&
|
|
1410
|
+
isFunction(options.processor.interpolate)
|
|
1411
|
+
? options.processor.interpolate
|
|
1412
|
+
: DEFAULT_INTERPOLATE;
|
|
1413
|
+
const type = isPlainObject(options.processor) && isString(options.processor.type)
|
|
1414
|
+
? options.processor.type
|
|
1415
|
+
: DEFAULT_MESSAGE_DATA_TYPE;
|
|
1416
|
+
const linked = (key, ...args) => {
|
|
1417
|
+
const [arg1, arg2] = args;
|
|
1418
|
+
let type = 'text';
|
|
1419
|
+
let modifier = '';
|
|
1420
|
+
if (args.length === 1) {
|
|
1421
|
+
if (isObject(arg1)) {
|
|
1422
|
+
modifier = arg1.modifier || modifier;
|
|
1423
|
+
type = arg1.type || type;
|
|
1424
|
+
}
|
|
1425
|
+
else if (isString(arg1)) {
|
|
1426
|
+
modifier = arg1 || modifier;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
else if (args.length === 2) {
|
|
1430
|
+
if (isString(arg1)) {
|
|
1431
|
+
modifier = arg1 || modifier;
|
|
1432
|
+
}
|
|
1433
|
+
if (isString(arg2)) {
|
|
1434
|
+
type = arg2 || type;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
const ret = message(key, true)(ctx);
|
|
1438
|
+
const msg =
|
|
1439
|
+
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
1440
|
+
type === 'vnode' && isArray(ret) && modifier
|
|
1441
|
+
? ret[0]
|
|
1442
|
+
: ret;
|
|
1443
|
+
return modifier ? _modifier(modifier)(msg, type) : msg;
|
|
1444
|
+
};
|
|
1445
|
+
const ctx = {
|
|
1446
|
+
["list" /* HelperNameMap.LIST */]: list,
|
|
1447
|
+
["named" /* HelperNameMap.NAMED */]: named,
|
|
1448
|
+
["plural" /* HelperNameMap.PLURAL */]: plural,
|
|
1449
|
+
["linked" /* HelperNameMap.LINKED */]: linked,
|
|
1450
|
+
["message" /* HelperNameMap.MESSAGE */]: message,
|
|
1451
|
+
["type" /* HelperNameMap.TYPE */]: type,
|
|
1452
|
+
["interpolate" /* HelperNameMap.INTERPOLATE */]: interpolate,
|
|
1453
|
+
["normalize" /* HelperNameMap.NORMALIZE */]: normalize,
|
|
1454
|
+
["values" /* HelperNameMap.VALUES */]: assign(create(), _list, _named)
|
|
1455
|
+
};
|
|
1456
|
+
return ctx;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
const NOOP_MESSAGE_FUNCTION = () => '';
|
|
1460
|
+
const isMessageFunction = (val) => isFunction(val);
|
|
1461
|
+
// implementation of `translate` function
|
|
1462
|
+
function translate(context, ...args) {
|
|
1463
|
+
const { fallbackFormat, postTranslation, unresolving, messageCompiler, fallbackLocale, messages } = context;
|
|
1464
|
+
const [key, options] = parseTranslateArgs(...args);
|
|
1465
|
+
const missingWarn = isBoolean(options.missingWarn)
|
|
1466
|
+
? options.missingWarn
|
|
1467
|
+
: context.missingWarn;
|
|
1468
|
+
const fallbackWarn = isBoolean(options.fallbackWarn)
|
|
1469
|
+
? options.fallbackWarn
|
|
1470
|
+
: context.fallbackWarn;
|
|
1471
|
+
const escapeParameter = isBoolean(options.escapeParameter)
|
|
1472
|
+
? options.escapeParameter
|
|
1473
|
+
: context.escapeParameter;
|
|
1474
|
+
const resolvedMessage = !!options.resolvedMessage;
|
|
1475
|
+
// prettier-ignore
|
|
1476
|
+
const defaultMsgOrKey = isString(options.default) || isBoolean(options.default) // default by function option
|
|
1477
|
+
? !isBoolean(options.default)
|
|
1478
|
+
? options.default
|
|
1479
|
+
: (!messageCompiler ? () => key : key)
|
|
1480
|
+
: fallbackFormat // default by `fallbackFormat` option
|
|
1481
|
+
? (!messageCompiler ? () => key : key)
|
|
1482
|
+
: null;
|
|
1483
|
+
const enableDefaultMsg = fallbackFormat ||
|
|
1484
|
+
(defaultMsgOrKey != null &&
|
|
1485
|
+
(isString(defaultMsgOrKey) || isFunction(defaultMsgOrKey)));
|
|
1486
|
+
const locale = getLocale(context, options);
|
|
1487
|
+
// escape params
|
|
1488
|
+
escapeParameter && escapeParams(options);
|
|
1489
|
+
// resolve message format
|
|
1490
|
+
// eslint-disable-next-line prefer-const
|
|
1491
|
+
let [formatScope, targetLocale, message] = !resolvedMessage
|
|
1492
|
+
? resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn)
|
|
1493
|
+
: [
|
|
1494
|
+
key,
|
|
1495
|
+
locale,
|
|
1496
|
+
messages[locale] || create()
|
|
1497
|
+
];
|
|
1498
|
+
// NOTE:
|
|
1499
|
+
// Fix to work around `ssrTransfrom` bug in Vite.
|
|
1500
|
+
// https://github.com/vitejs/vite/issues/4306
|
|
1501
|
+
// To get around this, use temporary variables.
|
|
1502
|
+
// https://github.com/nuxt/framework/issues/1461#issuecomment-954606243
|
|
1503
|
+
let format = formatScope;
|
|
1504
|
+
// if you use default message, set it as message format!
|
|
1505
|
+
let cacheBaseKey = key;
|
|
1506
|
+
if (!resolvedMessage &&
|
|
1507
|
+
!(isString(format) ||
|
|
1508
|
+
isMessageAST(format) ||
|
|
1509
|
+
isMessageFunction(format))) {
|
|
1510
|
+
if (enableDefaultMsg) {
|
|
1511
|
+
format = defaultMsgOrKey;
|
|
1512
|
+
cacheBaseKey = format;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
// checking message format and target locale
|
|
1516
|
+
if (!resolvedMessage &&
|
|
1517
|
+
(!(isString(format) ||
|
|
1518
|
+
isMessageAST(format) ||
|
|
1519
|
+
isMessageFunction(format)) ||
|
|
1520
|
+
!isString(targetLocale))) {
|
|
1521
|
+
return unresolving ? NOT_REOSLVED : key;
|
|
1522
|
+
}
|
|
1523
|
+
// TODO: refactor
|
|
1524
|
+
if ((process.env.NODE_ENV !== 'production') && isString(format) && context.messageCompiler == null) {
|
|
1525
|
+
warn(`The message format compilation is not supported in this build. ` +
|
|
1526
|
+
`Because message compiler isn't included. ` +
|
|
1527
|
+
`You need to pre-compilation all message format. ` +
|
|
1528
|
+
`So translate function return '${key}'.`);
|
|
1529
|
+
return key;
|
|
1530
|
+
}
|
|
1531
|
+
// setup compile error detecting
|
|
1532
|
+
let occurred = false;
|
|
1533
|
+
const onError = () => {
|
|
1534
|
+
occurred = true;
|
|
1535
|
+
};
|
|
1536
|
+
// compile message format
|
|
1537
|
+
const msg = !isMessageFunction(format)
|
|
1538
|
+
? compileMessageFormat(context, key, targetLocale, format, cacheBaseKey, onError)
|
|
1539
|
+
: format;
|
|
1540
|
+
// if occurred compile error, return the message format
|
|
1541
|
+
if (occurred) {
|
|
1542
|
+
return format;
|
|
1543
|
+
}
|
|
1544
|
+
// evaluate message with context
|
|
1545
|
+
const ctxOptions = getMessageContextOptions(context, targetLocale, message, options);
|
|
1546
|
+
const msgContext = createMessageContext(ctxOptions);
|
|
1547
|
+
const messaged = evaluateMessage(context, msg, msgContext);
|
|
1548
|
+
// if use post translation option, proceed it with handler
|
|
1549
|
+
let ret = postTranslation
|
|
1550
|
+
? postTranslation(messaged, key)
|
|
1551
|
+
: messaged;
|
|
1552
|
+
// apply HTML sanitization for security
|
|
1553
|
+
if (escapeParameter && isString(ret)) {
|
|
1554
|
+
ret = sanitizeTranslatedHtml(ret);
|
|
1555
|
+
}
|
|
1556
|
+
// NOTE: experimental !!
|
|
1557
|
+
if ((process.env.NODE_ENV !== 'production') || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1558
|
+
// prettier-ignore
|
|
1559
|
+
const payloads = {
|
|
1560
|
+
timestamp: Date.now(),
|
|
1561
|
+
key: isString(key)
|
|
1562
|
+
? key
|
|
1563
|
+
: isMessageFunction(format)
|
|
1564
|
+
? format.key
|
|
1565
|
+
: '',
|
|
1566
|
+
locale: targetLocale || (isMessageFunction(format)
|
|
1567
|
+
? format.locale
|
|
1568
|
+
: ''),
|
|
1569
|
+
format: isString(format)
|
|
1570
|
+
? format
|
|
1571
|
+
: isMessageFunction(format)
|
|
1572
|
+
? format.source
|
|
1573
|
+
: '',
|
|
1574
|
+
message: ret
|
|
1575
|
+
};
|
|
1576
|
+
payloads.meta = assign({}, context.__meta, getAdditionalMeta() || {});
|
|
1577
|
+
translateDevTools(payloads);
|
|
1578
|
+
}
|
|
1579
|
+
return ret;
|
|
1580
|
+
}
|
|
1581
|
+
function escapeParams(options) {
|
|
1582
|
+
if (isArray(options.list)) {
|
|
1583
|
+
options.list = options.list.map(item => isString(item) ? escapeHtml(item) : item);
|
|
1584
|
+
}
|
|
1585
|
+
else if (isObject(options.named)) {
|
|
1586
|
+
Object.keys(options.named).forEach(key => {
|
|
1587
|
+
if (isString(options.named[key])) {
|
|
1588
|
+
options.named[key] = escapeHtml(options.named[key]);
|
|
1589
|
+
}
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
function resolveMessageFormat(context, key, locale, fallbackLocale, fallbackWarn, missingWarn) {
|
|
1594
|
+
const { messages, onWarn, messageResolver: resolveValue, localeFallbacker } = context;
|
|
1595
|
+
const locales = localeFallbacker(context, fallbackLocale, locale); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1596
|
+
let message = create();
|
|
1597
|
+
let targetLocale;
|
|
1598
|
+
let format = null;
|
|
1599
|
+
let from = locale;
|
|
1600
|
+
let to = null;
|
|
1601
|
+
const type = 'translate';
|
|
1602
|
+
for (let i = 0; i < locales.length; i++) {
|
|
1603
|
+
targetLocale = to = locales[i];
|
|
1604
|
+
if ((process.env.NODE_ENV !== 'production') &&
|
|
1605
|
+
locale !== targetLocale &&
|
|
1606
|
+
!isAlmostSameLocale(locale, targetLocale) &&
|
|
1607
|
+
isTranslateFallbackWarn(fallbackWarn, key)) {
|
|
1608
|
+
onWarn(getWarnMessage(CoreWarnCodes.FALLBACK_TO_TRANSLATE, {
|
|
1609
|
+
key,
|
|
1610
|
+
target: targetLocale
|
|
1611
|
+
}));
|
|
1612
|
+
}
|
|
1613
|
+
// for vue-devtools timeline event
|
|
1614
|
+
if ((process.env.NODE_ENV !== 'production') && locale !== targetLocale) {
|
|
1615
|
+
const emitter = context.__v_emitter;
|
|
1616
|
+
if (emitter) {
|
|
1617
|
+
emitter.emit('fallback', {
|
|
1618
|
+
type,
|
|
1619
|
+
key,
|
|
1620
|
+
from,
|
|
1621
|
+
to,
|
|
1622
|
+
groupId: `${type}:${key}`
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
message =
|
|
1627
|
+
messages[targetLocale] || create();
|
|
1628
|
+
// for vue-devtools timeline event
|
|
1629
|
+
let start = null;
|
|
1630
|
+
let startTag;
|
|
1631
|
+
let endTag;
|
|
1632
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1633
|
+
start = window.performance.now();
|
|
1634
|
+
startTag = 'intlify-message-resolve-start';
|
|
1635
|
+
endTag = 'intlify-message-resolve-end';
|
|
1636
|
+
mark && mark(startTag);
|
|
1637
|
+
}
|
|
1638
|
+
if ((format = resolveValue(message, key)) === null) {
|
|
1639
|
+
// if null, resolve with object key path
|
|
1640
|
+
format = message[key]; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1641
|
+
}
|
|
1642
|
+
// for vue-devtools timeline event
|
|
1643
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1644
|
+
const end = window.performance.now();
|
|
1645
|
+
const emitter = context.__v_emitter;
|
|
1646
|
+
if (emitter && start && format) {
|
|
1647
|
+
emitter.emit('message-resolve', {
|
|
1648
|
+
type: 'message-resolve',
|
|
1649
|
+
key,
|
|
1650
|
+
message: format,
|
|
1651
|
+
time: end - start,
|
|
1652
|
+
groupId: `${type}:${key}`
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
if (startTag && endTag && mark && measure) {
|
|
1656
|
+
mark(endTag);
|
|
1657
|
+
measure('intlify message resolve', startTag, endTag);
|
|
1658
|
+
}
|
|
1659
|
+
}
|
|
1660
|
+
if (isString(format) || isMessageAST(format) || isMessageFunction(format)) {
|
|
1661
|
+
break;
|
|
1662
|
+
}
|
|
1663
|
+
if (!isImplicitFallback(targetLocale, locales)) {
|
|
1664
|
+
const missingRet = handleMissing(context, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1665
|
+
key, targetLocale, missingWarn, type);
|
|
1666
|
+
if (missingRet !== key) {
|
|
1667
|
+
format = missingRet;
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
from = to;
|
|
1671
|
+
}
|
|
1672
|
+
return [format, targetLocale, message];
|
|
1673
|
+
}
|
|
1674
|
+
function compileMessageFormat(context, key, targetLocale, format, cacheBaseKey, onError) {
|
|
1675
|
+
const { messageCompiler, warnHtmlMessage } = context;
|
|
1676
|
+
if (isMessageFunction(format)) {
|
|
1677
|
+
const msg = format;
|
|
1678
|
+
msg.locale = msg.locale || targetLocale;
|
|
1679
|
+
msg.key = msg.key || key;
|
|
1680
|
+
return msg;
|
|
1681
|
+
}
|
|
1682
|
+
if (messageCompiler == null) {
|
|
1683
|
+
const msg = (() => format);
|
|
1684
|
+
msg.locale = targetLocale;
|
|
1685
|
+
msg.key = key;
|
|
1686
|
+
return msg;
|
|
1687
|
+
}
|
|
1688
|
+
// for vue-devtools timeline event
|
|
1689
|
+
let start = null;
|
|
1690
|
+
let startTag;
|
|
1691
|
+
let endTag;
|
|
1692
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1693
|
+
start = window.performance.now();
|
|
1694
|
+
startTag = 'intlify-message-compilation-start';
|
|
1695
|
+
endTag = 'intlify-message-compilation-end';
|
|
1696
|
+
mark && mark(startTag);
|
|
1697
|
+
}
|
|
1698
|
+
const msg = messageCompiler(format, getCompileContext(context, targetLocale, cacheBaseKey, format, warnHtmlMessage, onError));
|
|
1699
|
+
// for vue-devtools timeline event
|
|
1700
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1701
|
+
const end = window.performance.now();
|
|
1702
|
+
const emitter = context.__v_emitter;
|
|
1703
|
+
if (emitter && start) {
|
|
1704
|
+
emitter.emit('message-compilation', {
|
|
1705
|
+
type: 'message-compilation',
|
|
1706
|
+
message: format,
|
|
1707
|
+
time: end - start,
|
|
1708
|
+
groupId: `${'translate'}:${key}`
|
|
1709
|
+
});
|
|
1710
|
+
}
|
|
1711
|
+
if (startTag && endTag && mark && measure) {
|
|
1712
|
+
mark(endTag);
|
|
1713
|
+
measure('intlify message compilation', startTag, endTag);
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
msg.locale = targetLocale;
|
|
1717
|
+
msg.key = key;
|
|
1718
|
+
msg.source = format;
|
|
1719
|
+
return msg;
|
|
1720
|
+
}
|
|
1721
|
+
function evaluateMessage(context, msg, msgCtx) {
|
|
1722
|
+
// for vue-devtools timeline event
|
|
1723
|
+
let start = null;
|
|
1724
|
+
let startTag;
|
|
1725
|
+
let endTag;
|
|
1726
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1727
|
+
start = window.performance.now();
|
|
1728
|
+
startTag = 'intlify-message-evaluation-start';
|
|
1729
|
+
endTag = 'intlify-message-evaluation-end';
|
|
1730
|
+
mark && mark(startTag);
|
|
1731
|
+
}
|
|
1732
|
+
const messaged = msg(msgCtx);
|
|
1733
|
+
// for vue-devtools timeline event
|
|
1734
|
+
if ((process.env.NODE_ENV !== 'production') && inBrowser) {
|
|
1735
|
+
const end = window.performance.now();
|
|
1736
|
+
const emitter = context.__v_emitter;
|
|
1737
|
+
if (emitter && start) {
|
|
1738
|
+
emitter.emit('message-evaluation', {
|
|
1739
|
+
type: 'message-evaluation',
|
|
1740
|
+
value: messaged,
|
|
1741
|
+
time: end - start,
|
|
1742
|
+
groupId: `${'translate'}:${msg.key}`
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1745
|
+
if (startTag && endTag && mark && measure) {
|
|
1746
|
+
mark(endTag);
|
|
1747
|
+
measure('intlify message evaluation', startTag, endTag);
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
return messaged;
|
|
1751
|
+
}
|
|
1752
|
+
/** @internal */
|
|
1753
|
+
function parseTranslateArgs(...args) {
|
|
1754
|
+
const [arg1, arg2, arg3] = args;
|
|
1755
|
+
const options = create();
|
|
1756
|
+
if (!isString(arg1) &&
|
|
1757
|
+
!isNumber(arg1) &&
|
|
1758
|
+
!isMessageFunction(arg1) &&
|
|
1759
|
+
!isMessageAST(arg1)) {
|
|
1760
|
+
throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);
|
|
1761
|
+
}
|
|
1762
|
+
// prettier-ignore
|
|
1763
|
+
const key = isNumber(arg1)
|
|
1764
|
+
? String(arg1)
|
|
1765
|
+
: isMessageFunction(arg1)
|
|
1766
|
+
? arg1
|
|
1767
|
+
: arg1;
|
|
1768
|
+
if (isNumber(arg2)) {
|
|
1769
|
+
options.plural = arg2;
|
|
1770
|
+
}
|
|
1771
|
+
else if (isString(arg2)) {
|
|
1772
|
+
options.default = arg2;
|
|
1773
|
+
}
|
|
1774
|
+
else if (isPlainObject(arg2) && !isEmptyObject(arg2)) {
|
|
1775
|
+
options.named = arg2;
|
|
1776
|
+
}
|
|
1777
|
+
else if (isArray(arg2)) {
|
|
1778
|
+
options.list = arg2;
|
|
1779
|
+
}
|
|
1780
|
+
if (isNumber(arg3)) {
|
|
1781
|
+
options.plural = arg3;
|
|
1782
|
+
}
|
|
1783
|
+
else if (isString(arg3)) {
|
|
1784
|
+
options.default = arg3;
|
|
1785
|
+
}
|
|
1786
|
+
else if (isPlainObject(arg3)) {
|
|
1787
|
+
assign(options, arg3);
|
|
1788
|
+
}
|
|
1789
|
+
return [key, options];
|
|
1790
|
+
}
|
|
1791
|
+
function getCompileContext(context, locale, key, source, warnHtmlMessage, onError) {
|
|
1792
|
+
return {
|
|
1793
|
+
locale,
|
|
1794
|
+
key,
|
|
1795
|
+
warnHtmlMessage,
|
|
1796
|
+
onError: (err) => {
|
|
1797
|
+
onError && onError(err);
|
|
1798
|
+
if ((process.env.NODE_ENV !== 'production')) {
|
|
1799
|
+
const _source = getSourceForCodeFrame(source);
|
|
1800
|
+
const message = `Message compilation error: ${err.message}`;
|
|
1801
|
+
const codeFrame = err.location &&
|
|
1802
|
+
_source &&
|
|
1803
|
+
generateCodeFrame(_source, err.location.start.offset, err.location.end.offset);
|
|
1804
|
+
const emitter = context.__v_emitter;
|
|
1805
|
+
if (emitter && _source) {
|
|
1806
|
+
emitter.emit('compile-error', {
|
|
1807
|
+
message: _source,
|
|
1808
|
+
error: err.message,
|
|
1809
|
+
start: err.location && err.location.start.offset,
|
|
1810
|
+
end: err.location && err.location.end.offset,
|
|
1811
|
+
groupId: `${'translate'}:${key}`
|
|
1812
|
+
});
|
|
1813
|
+
}
|
|
1814
|
+
console.error(codeFrame ? `${message}\n${codeFrame}` : message);
|
|
1815
|
+
}
|
|
1816
|
+
else {
|
|
1817
|
+
throw err;
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
onCacheKey: (source) => generateFormatCacheKey(locale, key, source)
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
function getSourceForCodeFrame(source) {
|
|
1824
|
+
if (isString(source)) {
|
|
1825
|
+
return source;
|
|
1826
|
+
}
|
|
1827
|
+
else {
|
|
1828
|
+
if (source.loc && source.loc.source) {
|
|
1829
|
+
return source.loc.source;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
function getMessageContextOptions(context, locale, message, options) {
|
|
1834
|
+
const { modifiers, pluralRules, messageResolver: resolveValue, fallbackLocale, fallbackWarn, missingWarn, fallbackContext } = context;
|
|
1835
|
+
const resolveMessage = (key, useLinked) => {
|
|
1836
|
+
let val = resolveValue(message, key);
|
|
1837
|
+
// fallback
|
|
1838
|
+
if (val == null && (fallbackContext || useLinked)) {
|
|
1839
|
+
const [, , message] = resolveMessageFormat(fallbackContext || context, // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
1840
|
+
key, locale, fallbackLocale, fallbackWarn, missingWarn);
|
|
1841
|
+
val = resolveValue(message, key);
|
|
1842
|
+
}
|
|
1843
|
+
if (isString(val) || isMessageAST(val)) {
|
|
1844
|
+
let occurred = false;
|
|
1845
|
+
const onError = () => {
|
|
1846
|
+
occurred = true;
|
|
1847
|
+
};
|
|
1848
|
+
const msg = compileMessageFormat(context, key, locale, val, key, onError);
|
|
1849
|
+
return !occurred
|
|
1850
|
+
? msg
|
|
1851
|
+
: NOOP_MESSAGE_FUNCTION;
|
|
1852
|
+
}
|
|
1853
|
+
else if (isMessageFunction(val)) {
|
|
1854
|
+
return val;
|
|
1855
|
+
}
|
|
1856
|
+
else {
|
|
1857
|
+
// TODO: should be implemented warning message
|
|
1858
|
+
return NOOP_MESSAGE_FUNCTION;
|
|
1859
|
+
}
|
|
1860
|
+
};
|
|
1861
|
+
const ctxOptions = {
|
|
1862
|
+
locale,
|
|
1863
|
+
modifiers,
|
|
1864
|
+
pluralRules,
|
|
1865
|
+
messages: resolveMessage
|
|
1866
|
+
};
|
|
1867
|
+
if (context.processor) {
|
|
1868
|
+
ctxOptions.processor = context.processor;
|
|
1869
|
+
}
|
|
1870
|
+
if (options.list) {
|
|
1871
|
+
ctxOptions.list = options.list;
|
|
1872
|
+
}
|
|
1873
|
+
if (options.named) {
|
|
1874
|
+
ctxOptions.named = options.named;
|
|
1875
|
+
}
|
|
1876
|
+
if (isNumber(options.plural)) {
|
|
1877
|
+
ctxOptions.pluralIndex = options.plural;
|
|
1878
|
+
}
|
|
1879
|
+
return ctxOptions;
|
|
1880
|
+
}
|
|
1881
|
+
|
|
1882
|
+
{
|
|
1883
|
+
initFeatureFlags();
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export { AST_NODE_PROPS_KEYS, CORE_ERROR_CODES_EXTEND_POINT, CORE_WARN_CODES_EXTEND_POINT, CoreErrorCodes, CoreWarnCodes, DATETIME_FORMAT_OPTIONS_KEYS, DEFAULT_LOCALE, DEFAULT_MESSAGE_DATA_TYPE, MISSING_RESOLVE_VALUE, NOT_REOSLVED, NUMBER_FORMAT_OPTIONS_KEYS, VERSION, clearCompileCache, clearDateTimeFormat, clearNumberFormat, compile, createCoreContext, createCoreError, createMessageContext, datetime, fallbackWithLocaleChain, fallbackWithSimple, getAdditionalMeta, getDevToolsHook, getFallbackContext, getLocale, getWarnMessage, handleMissing, initI18nDevTools, isAlmostSameLocale, isImplicitFallback, isMessageAST, isMessageFunction, isTranslateFallbackWarn, isTranslateMissingWarn, number, parse, parseDateTimeArgs, parseNumberArgs, parseTranslateArgs, registerLocaleFallbacker, registerMessageCompiler, registerMessageResolver, resolveLocale, resolveValue, resolveWithKeyValue, setAdditionalMeta, setDevToolsHook, setFallbackContext, translate, translateDevTools, updateFallbackLocale };
|