@elgap/edukaai 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/BHDzAs85.js +1 -0
- package/.output/public/_nuxt/BJzbfdL_.js +1 -0
- package/.output/public/_nuxt/BKGLlKXk.js +6 -0
- package/.output/public/_nuxt/BLuXzJk3.js +1 -0
- package/.output/public/_nuxt/BNOzzLI3.js +1 -0
- package/.output/public/_nuxt/BO5GMwXh.js +1 -0
- package/.output/public/_nuxt/BQRbsFGy.js +1 -0
- package/.output/public/_nuxt/Be4MVdOg.js +1 -0
- package/.output/public/_nuxt/Bu4d3Z1T.js +1 -0
- package/.output/public/_nuxt/BwpBBNv4.js +1 -0
- package/.output/public/_nuxt/C1Og9-6n.js +97 -0
- package/.output/public/_nuxt/C3CjAhtj.js +1 -0
- package/.output/public/_nuxt/C6E3Ty3z.js +1 -0
- package/.output/public/_nuxt/COct4B42.js +1 -0
- package/.output/public/_nuxt/CQ6g2dtj.js +1 -0
- package/.output/public/_nuxt/CURSW5TV.js +246 -0
- package/.output/public/_nuxt/CW57JW4s.js +1 -0
- package/.output/public/_nuxt/Cg2fM61o.js +18 -0
- package/.output/public/_nuxt/CgGOeWta.js +1 -0
- package/.output/public/_nuxt/CoyYbT7u.js +1 -0
- package/.output/public/_nuxt/D11MHbGc.js +133 -0
- package/.output/public/_nuxt/D24dz0S8.js +1 -0
- package/.output/public/_nuxt/D3EFPr8x.js +1 -0
- package/.output/public/_nuxt/Dvt4ZHil.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/ab87ba0e-6d0d-4466-8b12-00d44f8fb9d3.json +1 -0
- package/.output/public/_nuxt/default.C1K1-g4D.css +1 -0
- package/.output/public/_nuxt/entry.CH8k-Mga.css +1 -0
- package/.output/public/_nuxt/error-404.C-Ezrlz-.css +1 -0
- package/.output/public/_nuxt/error-500.DBWf9FGj.css +1 -0
- package/.output/public/_nuxt/first-training.wFDD65zm.css +1 -0
- package/.output/public/_nuxt/import.cUKYdCrq.css +1 -0
- package/.output/public/_nuxt/index.D-2VHyHA.css +1 -0
- package/.output/public/_nuxt/index.D4J_vHmL.css +1 -0
- package/.output/public/_nuxt/mPJeLIz7.js +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs +8 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs +238 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs.map +1 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs +8 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs +113 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs.map +1 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs +112 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs.map +1 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs +38 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs +354 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs +8 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs +97 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs +79 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs.map +1 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs +134 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs.map +1 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs +233 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs.map +1 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs +112 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs.map +1 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs +38 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs +343 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs +8 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs.map +1 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs +397 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs.map +1 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs +128 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs.map +1 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs +247 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs.map +1 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs +235 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs.map +1 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs +320 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs.map +1 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs +360 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs.map +1 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs +513 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs.map +1 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs +91 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs.map +1 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs +92 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs +290 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs.map +1 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs +45 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1979 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +20 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs +105 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +5800 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +481 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/dist/index.cjs +42 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/package.json +32 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/dist/index.mjs +266 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/package.json +52 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/dist/index.cjs +59 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/package.json +44 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/dist/index.mjs +89 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/package.json +41 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
- package/.output/server/node_modules/@iconify/utils/package.json +118 -0
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1893 -0
- package/.output/server/node_modules/@iconify/vue/package.json +64 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6850 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -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 +6810 -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 +1750 -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 +883 -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/birpc/dist/index.cjs +296 -0
- package/.output/server/node_modules/birpc/package.json +57 -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/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +7 -0
- package/.output/server/node_modules/devalue/src/parse.js +246 -0
- package/.output/server/node_modules/devalue/src/stringify.js +350 -0
- package/.output/server/node_modules/devalue/src/uneval.js +490 -0
- package/.output/server/node_modules/devalue/src/utils.js +148 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -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/pinia/dist/pinia.prod.cjs +719 -0
- package/.output/server/node_modules/pinia/package.json +94 -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/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D_nrZZPH.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.fVVqDC1O.mjs +203 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +37 -0
- package/LICENSE +21 -0
- package/README.md +132 -0
- package/bin/cli.js +75 -0
- package/package.json +71 -0
|
@@ -0,0 +1,883 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/server-renderer v3.5.29
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var Vue = require('vue');
|
|
11
|
+
var shared = require('@vue/shared');
|
|
12
|
+
var compilerSsr = require('@vue/compiler-ssr');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (var k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var Vue__namespace = /*#__PURE__*/_interopNamespaceDefault(Vue);
|
|
26
|
+
|
|
27
|
+
const shouldIgnoreProp = /* @__PURE__ */ shared.makeMap(
|
|
28
|
+
`,key,ref,innerHTML,textContent,ref_key,ref_for`
|
|
29
|
+
);
|
|
30
|
+
function ssrRenderAttrs(props, tag) {
|
|
31
|
+
let ret = "";
|
|
32
|
+
for (let key in props) {
|
|
33
|
+
if (shouldIgnoreProp(key) || shared.isOn(key) || tag === "textarea" && key === "value" || // force as property (not rendered in SSR)
|
|
34
|
+
key.startsWith(".")) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
const value = props[key];
|
|
38
|
+
if (key.startsWith("^")) key = key.slice(1);
|
|
39
|
+
if (key === "class") {
|
|
40
|
+
ret += ` class="${ssrRenderClass(value)}"`;
|
|
41
|
+
} else if (key === "style") {
|
|
42
|
+
ret += ` style="${ssrRenderStyle(value)}"`;
|
|
43
|
+
} else if (key === "className") {
|
|
44
|
+
if (value != null) {
|
|
45
|
+
ret += ` class="${shared.escapeHtml(String(value))}"`;
|
|
46
|
+
}
|
|
47
|
+
} else {
|
|
48
|
+
ret += ssrRenderDynamicAttr(key, value, tag);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return ret;
|
|
52
|
+
}
|
|
53
|
+
function ssrRenderDynamicAttr(key, value, tag) {
|
|
54
|
+
if (!shared.isRenderableAttrValue(value)) {
|
|
55
|
+
return ``;
|
|
56
|
+
}
|
|
57
|
+
const attrKey = tag && (tag.indexOf("-") > 0 || shared.isSVGTag(tag)) ? key : shared.propsToAttrMap[key] || key.toLowerCase();
|
|
58
|
+
if (shared.isBooleanAttr(attrKey)) {
|
|
59
|
+
return shared.includeBooleanAttr(value) ? ` ${attrKey}` : ``;
|
|
60
|
+
} else if (shared.isSSRSafeAttrName(attrKey)) {
|
|
61
|
+
return value === "" ? ` ${attrKey}` : ` ${attrKey}="${shared.escapeHtml(value)}"`;
|
|
62
|
+
} else {
|
|
63
|
+
console.warn(
|
|
64
|
+
`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${attrKey}`
|
|
65
|
+
);
|
|
66
|
+
return ``;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function ssrRenderAttr(key, value) {
|
|
70
|
+
if (!shared.isRenderableAttrValue(value)) {
|
|
71
|
+
return ``;
|
|
72
|
+
}
|
|
73
|
+
return ` ${key}="${shared.escapeHtml(value)}"`;
|
|
74
|
+
}
|
|
75
|
+
function ssrRenderClass(raw) {
|
|
76
|
+
return shared.escapeHtml(shared.normalizeClass(raw));
|
|
77
|
+
}
|
|
78
|
+
function ssrRenderStyle(raw) {
|
|
79
|
+
if (!raw) {
|
|
80
|
+
return "";
|
|
81
|
+
}
|
|
82
|
+
if (shared.isString(raw)) {
|
|
83
|
+
return shared.escapeHtml(raw);
|
|
84
|
+
}
|
|
85
|
+
const styles = shared.normalizeStyle(ssrResetCssVars(raw));
|
|
86
|
+
return shared.escapeHtml(shared.stringifyStyle(styles));
|
|
87
|
+
}
|
|
88
|
+
function ssrResetCssVars(raw) {
|
|
89
|
+
if (!shared.isArray(raw) && shared.isObject(raw)) {
|
|
90
|
+
const res = {};
|
|
91
|
+
for (const key in raw) {
|
|
92
|
+
if (key.startsWith(":--")) {
|
|
93
|
+
res[key.slice(1)] = shared.normalizeCssVarValue(raw[key]);
|
|
94
|
+
} else {
|
|
95
|
+
res[key] = raw[key];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return res;
|
|
99
|
+
}
|
|
100
|
+
return raw;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function ssrRenderComponent(comp, props = null, children = null, parentComponent = null, slotScopeId) {
|
|
104
|
+
return renderComponentVNode(
|
|
105
|
+
Vue.createVNode(comp, props, children),
|
|
106
|
+
parentComponent,
|
|
107
|
+
slotScopeId
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const { ensureValidVNode } = Vue.ssrUtils;
|
|
112
|
+
function ssrRenderSlot(slots, slotName, slotProps, fallbackRenderFn, push, parentComponent, slotScopeId) {
|
|
113
|
+
push(`<!--[-->`);
|
|
114
|
+
ssrRenderSlotInner(
|
|
115
|
+
slots,
|
|
116
|
+
slotName,
|
|
117
|
+
slotProps,
|
|
118
|
+
fallbackRenderFn,
|
|
119
|
+
push,
|
|
120
|
+
parentComponent,
|
|
121
|
+
slotScopeId
|
|
122
|
+
);
|
|
123
|
+
push(`<!--]-->`);
|
|
124
|
+
}
|
|
125
|
+
function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push, parentComponent, slotScopeId, transition) {
|
|
126
|
+
const slotFn = slots[slotName];
|
|
127
|
+
if (slotFn) {
|
|
128
|
+
const slotBuffer = [];
|
|
129
|
+
const bufferedPush = (item) => {
|
|
130
|
+
slotBuffer.push(item);
|
|
131
|
+
};
|
|
132
|
+
const ret = slotFn(
|
|
133
|
+
slotProps,
|
|
134
|
+
bufferedPush,
|
|
135
|
+
parentComponent,
|
|
136
|
+
slotScopeId ? " " + slotScopeId : ""
|
|
137
|
+
);
|
|
138
|
+
if (shared.isArray(ret)) {
|
|
139
|
+
const validSlotContent = ensureValidVNode(ret);
|
|
140
|
+
if (validSlotContent) {
|
|
141
|
+
renderVNodeChildren(
|
|
142
|
+
push,
|
|
143
|
+
validSlotContent,
|
|
144
|
+
parentComponent,
|
|
145
|
+
slotScopeId
|
|
146
|
+
);
|
|
147
|
+
} else if (fallbackRenderFn) {
|
|
148
|
+
fallbackRenderFn();
|
|
149
|
+
} else if (transition) {
|
|
150
|
+
push(`<!---->`);
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
let isEmptySlot = true;
|
|
154
|
+
if (transition) {
|
|
155
|
+
isEmptySlot = false;
|
|
156
|
+
} else {
|
|
157
|
+
for (let i = 0; i < slotBuffer.length; i++) {
|
|
158
|
+
if (!isComment(slotBuffer[i])) {
|
|
159
|
+
isEmptySlot = false;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
if (isEmptySlot) {
|
|
165
|
+
if (fallbackRenderFn) {
|
|
166
|
+
fallbackRenderFn();
|
|
167
|
+
}
|
|
168
|
+
} else {
|
|
169
|
+
let start = 0;
|
|
170
|
+
let end = slotBuffer.length;
|
|
171
|
+
if (transition && slotBuffer[0] === "<!--[-->" && slotBuffer[end - 1] === "<!--]-->") {
|
|
172
|
+
start++;
|
|
173
|
+
end--;
|
|
174
|
+
}
|
|
175
|
+
if (start < end) {
|
|
176
|
+
for (let i = start; i < end; i++) {
|
|
177
|
+
push(slotBuffer[i]);
|
|
178
|
+
}
|
|
179
|
+
} else if (transition) {
|
|
180
|
+
push(`<!---->`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
} else if (fallbackRenderFn) {
|
|
185
|
+
fallbackRenderFn();
|
|
186
|
+
} else if (transition) {
|
|
187
|
+
push(`<!---->`);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const commentTestRE = /^<!--[\s\S]*-->$/;
|
|
191
|
+
const commentRE = /<!--[^]*?-->/gm;
|
|
192
|
+
function isComment(item) {
|
|
193
|
+
if (typeof item !== "string" || !commentTestRE.test(item)) return false;
|
|
194
|
+
if (item.length <= 8) return true;
|
|
195
|
+
return !item.replace(commentRE, "").trim();
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function ssrRenderTeleport(parentPush, contentRenderFn, target, disabled, parentComponent) {
|
|
199
|
+
parentPush("<!--teleport start-->");
|
|
200
|
+
const context = parentComponent.appContext.provides[Vue.ssrContextKey];
|
|
201
|
+
const teleportBuffers = context.__teleportBuffers || (context.__teleportBuffers = {});
|
|
202
|
+
const targetBuffer = teleportBuffers[target] || (teleportBuffers[target] = []);
|
|
203
|
+
const bufferIndex = targetBuffer.length;
|
|
204
|
+
let teleportContent;
|
|
205
|
+
if (disabled) {
|
|
206
|
+
contentRenderFn(parentPush);
|
|
207
|
+
teleportContent = `<!--teleport start anchor--><!--teleport anchor-->`;
|
|
208
|
+
} else {
|
|
209
|
+
const { getBuffer, push } = createBuffer();
|
|
210
|
+
push(`<!--teleport start anchor-->`);
|
|
211
|
+
contentRenderFn(push);
|
|
212
|
+
push(`<!--teleport anchor-->`);
|
|
213
|
+
teleportContent = getBuffer();
|
|
214
|
+
}
|
|
215
|
+
targetBuffer.splice(bufferIndex, 0, teleportContent);
|
|
216
|
+
parentPush("<!--teleport end-->");
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function ssrInterpolate(value) {
|
|
220
|
+
return shared.escapeHtml(shared.toDisplayString(value));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function ssrRenderList(source, renderItem) {
|
|
224
|
+
if (shared.isArray(source) || shared.isString(source)) {
|
|
225
|
+
for (let i = 0, l = source.length; i < l; i++) {
|
|
226
|
+
renderItem(source[i], i);
|
|
227
|
+
}
|
|
228
|
+
} else if (typeof source === "number") {
|
|
229
|
+
for (let i = 0; i < source; i++) {
|
|
230
|
+
renderItem(i + 1, i);
|
|
231
|
+
}
|
|
232
|
+
} else if (shared.isObject(source)) {
|
|
233
|
+
if (source[Symbol.iterator]) {
|
|
234
|
+
const arr = Array.from(source);
|
|
235
|
+
for (let i = 0, l = arr.length; i < l; i++) {
|
|
236
|
+
renderItem(arr[i], i);
|
|
237
|
+
}
|
|
238
|
+
} else {
|
|
239
|
+
const keys = Object.keys(source);
|
|
240
|
+
for (let i = 0, l = keys.length; i < l; i++) {
|
|
241
|
+
const key = keys[i];
|
|
242
|
+
renderItem(source[key], key, i);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
async function ssrRenderSuspense(push, { default: renderContent }) {
|
|
249
|
+
if (renderContent) {
|
|
250
|
+
renderContent();
|
|
251
|
+
} else {
|
|
252
|
+
push(`<!---->`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function ssrGetDirectiveProps(instance, dir, value, arg, modifiers = {}) {
|
|
257
|
+
if (typeof dir !== "function" && dir.getSSRProps) {
|
|
258
|
+
return dir.getSSRProps(
|
|
259
|
+
{
|
|
260
|
+
dir,
|
|
261
|
+
instance: Vue.ssrUtils.getComponentPublicInstance(instance.$),
|
|
262
|
+
value,
|
|
263
|
+
oldValue: void 0,
|
|
264
|
+
arg,
|
|
265
|
+
modifiers
|
|
266
|
+
},
|
|
267
|
+
null
|
|
268
|
+
) || {};
|
|
269
|
+
}
|
|
270
|
+
return {};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
const ssrLooseEqual = shared.looseEqual;
|
|
274
|
+
function ssrLooseContain(arr, value) {
|
|
275
|
+
return shared.looseIndexOf(arr, value) > -1;
|
|
276
|
+
}
|
|
277
|
+
function ssrRenderDynamicModel(type, model, value) {
|
|
278
|
+
switch (type) {
|
|
279
|
+
case "radio":
|
|
280
|
+
return shared.looseEqual(model, value) ? " checked" : "";
|
|
281
|
+
case "checkbox":
|
|
282
|
+
return (shared.isArray(model) ? ssrLooseContain(model, value) : model) ? " checked" : "";
|
|
283
|
+
default:
|
|
284
|
+
return ssrRenderAttr("value", model);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
function ssrGetDynamicModelProps(existingProps = {}, model) {
|
|
288
|
+
const { type, value } = existingProps;
|
|
289
|
+
switch (type) {
|
|
290
|
+
case "radio":
|
|
291
|
+
return shared.looseEqual(model, value) ? { checked: true } : null;
|
|
292
|
+
case "checkbox":
|
|
293
|
+
return (shared.isArray(model) ? ssrLooseContain(model, value) : model) ? { checked: true } : null;
|
|
294
|
+
default:
|
|
295
|
+
return { value: model };
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
var helpers = /*#__PURE__*/Object.freeze({
|
|
300
|
+
__proto__: null,
|
|
301
|
+
ssrGetDirectiveProps: ssrGetDirectiveProps,
|
|
302
|
+
ssrGetDynamicModelProps: ssrGetDynamicModelProps,
|
|
303
|
+
ssrIncludeBooleanAttr: shared.includeBooleanAttr,
|
|
304
|
+
ssrInterpolate: ssrInterpolate,
|
|
305
|
+
ssrLooseContain: ssrLooseContain,
|
|
306
|
+
ssrLooseEqual: ssrLooseEqual,
|
|
307
|
+
ssrRenderAttr: ssrRenderAttr,
|
|
308
|
+
ssrRenderAttrs: ssrRenderAttrs,
|
|
309
|
+
ssrRenderClass: ssrRenderClass,
|
|
310
|
+
ssrRenderComponent: ssrRenderComponent,
|
|
311
|
+
ssrRenderDynamicAttr: ssrRenderDynamicAttr,
|
|
312
|
+
ssrRenderDynamicModel: ssrRenderDynamicModel,
|
|
313
|
+
ssrRenderList: ssrRenderList,
|
|
314
|
+
ssrRenderSlot: ssrRenderSlot,
|
|
315
|
+
ssrRenderSlotInner: ssrRenderSlotInner,
|
|
316
|
+
ssrRenderStyle: ssrRenderStyle,
|
|
317
|
+
ssrRenderSuspense: ssrRenderSuspense,
|
|
318
|
+
ssrRenderTeleport: ssrRenderTeleport,
|
|
319
|
+
ssrRenderVNode: renderVNode
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
323
|
+
function ssrCompile(template, instance) {
|
|
324
|
+
const Component = instance.type;
|
|
325
|
+
const { isCustomElement, compilerOptions } = instance.appContext.config;
|
|
326
|
+
const { delimiters, compilerOptions: componentCompilerOptions } = Component;
|
|
327
|
+
const finalCompilerOptions = shared.extend(
|
|
328
|
+
shared.extend(
|
|
329
|
+
{
|
|
330
|
+
isCustomElement,
|
|
331
|
+
delimiters
|
|
332
|
+
},
|
|
333
|
+
compilerOptions
|
|
334
|
+
),
|
|
335
|
+
componentCompilerOptions
|
|
336
|
+
);
|
|
337
|
+
finalCompilerOptions.isCustomElement = finalCompilerOptions.isCustomElement || shared.NO;
|
|
338
|
+
finalCompilerOptions.isNativeTag = finalCompilerOptions.isNativeTag || shared.NO;
|
|
339
|
+
const cacheKey = JSON.stringify(
|
|
340
|
+
{
|
|
341
|
+
template,
|
|
342
|
+
compilerOptions: finalCompilerOptions
|
|
343
|
+
},
|
|
344
|
+
(key, value) => {
|
|
345
|
+
return shared.isFunction(value) ? value.toString() : value;
|
|
346
|
+
}
|
|
347
|
+
);
|
|
348
|
+
const cached = compileCache[cacheKey];
|
|
349
|
+
if (cached) {
|
|
350
|
+
return cached;
|
|
351
|
+
}
|
|
352
|
+
finalCompilerOptions.onError = (err) => {
|
|
353
|
+
{
|
|
354
|
+
throw err;
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
const { code } = compilerSsr.compile(template, finalCompilerOptions);
|
|
358
|
+
const requireMap = {
|
|
359
|
+
vue: Vue__namespace,
|
|
360
|
+
"vue/server-renderer": helpers
|
|
361
|
+
};
|
|
362
|
+
const fakeRequire = (id) => requireMap[id];
|
|
363
|
+
return compileCache[cacheKey] = Function("require", code)(fakeRequire);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const {
|
|
367
|
+
createComponentInstance,
|
|
368
|
+
setCurrentRenderingInstance,
|
|
369
|
+
setupComponent,
|
|
370
|
+
renderComponentRoot,
|
|
371
|
+
normalizeVNode,
|
|
372
|
+
pushWarningContext,
|
|
373
|
+
popWarningContext
|
|
374
|
+
} = Vue.ssrUtils;
|
|
375
|
+
function createBuffer() {
|
|
376
|
+
let appendable = false;
|
|
377
|
+
const buffer = [];
|
|
378
|
+
return {
|
|
379
|
+
getBuffer() {
|
|
380
|
+
return buffer;
|
|
381
|
+
},
|
|
382
|
+
push(item) {
|
|
383
|
+
const isStringItem = shared.isString(item);
|
|
384
|
+
if (appendable && isStringItem) {
|
|
385
|
+
buffer[buffer.length - 1] += item;
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
buffer.push(item);
|
|
389
|
+
appendable = isStringItem;
|
|
390
|
+
if (shared.isPromise(item) || shared.isArray(item) && item.hasAsync) {
|
|
391
|
+
buffer.hasAsync = true;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
function renderComponentVNode(vnode, parentComponent = null, slotScopeId) {
|
|
397
|
+
const instance = vnode.component = createComponentInstance(
|
|
398
|
+
vnode,
|
|
399
|
+
parentComponent,
|
|
400
|
+
null
|
|
401
|
+
);
|
|
402
|
+
const res = setupComponent(
|
|
403
|
+
instance,
|
|
404
|
+
true
|
|
405
|
+
/* isSSR */
|
|
406
|
+
);
|
|
407
|
+
const hasAsyncSetup = shared.isPromise(res);
|
|
408
|
+
let prefetches = instance.sp;
|
|
409
|
+
if (hasAsyncSetup || prefetches) {
|
|
410
|
+
const p = Promise.resolve(res).then(() => {
|
|
411
|
+
if (hasAsyncSetup) prefetches = instance.sp;
|
|
412
|
+
if (prefetches) {
|
|
413
|
+
return Promise.all(
|
|
414
|
+
prefetches.map((prefetch) => prefetch.call(instance.proxy))
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
}).catch(shared.NOOP);
|
|
418
|
+
return p.then(() => renderComponentSubTree(instance, slotScopeId));
|
|
419
|
+
} else {
|
|
420
|
+
return renderComponentSubTree(instance, slotScopeId);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function renderComponentSubTree(instance, slotScopeId) {
|
|
424
|
+
const comp = instance.type;
|
|
425
|
+
const { getBuffer, push } = createBuffer();
|
|
426
|
+
if (shared.isFunction(comp)) {
|
|
427
|
+
let root = renderComponentRoot(instance);
|
|
428
|
+
if (!comp.props) {
|
|
429
|
+
for (const key in instance.attrs) {
|
|
430
|
+
if (key.startsWith(`data-v-`)) {
|
|
431
|
+
(root.props || (root.props = {}))[key] = ``;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
renderVNode(push, instance.subTree = root, instance, slotScopeId);
|
|
436
|
+
} else {
|
|
437
|
+
if ((!instance.render || instance.render === shared.NOOP) && !instance.ssrRender && !comp.ssrRender && shared.isString(comp.template)) {
|
|
438
|
+
comp.ssrRender = ssrCompile(comp.template, instance);
|
|
439
|
+
}
|
|
440
|
+
const ssrRender = instance.ssrRender || comp.ssrRender;
|
|
441
|
+
if (ssrRender) {
|
|
442
|
+
let attrs = instance.inheritAttrs !== false ? instance.attrs : void 0;
|
|
443
|
+
let hasCloned = false;
|
|
444
|
+
let cur = instance;
|
|
445
|
+
while (true) {
|
|
446
|
+
const scopeId = cur.vnode.scopeId;
|
|
447
|
+
if (scopeId) {
|
|
448
|
+
if (!hasCloned) {
|
|
449
|
+
attrs = { ...attrs };
|
|
450
|
+
hasCloned = true;
|
|
451
|
+
}
|
|
452
|
+
attrs[scopeId] = "";
|
|
453
|
+
}
|
|
454
|
+
const parent = cur.parent;
|
|
455
|
+
if (parent && parent.subTree && parent.subTree === cur.vnode) {
|
|
456
|
+
cur = parent;
|
|
457
|
+
} else {
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (slotScopeId) {
|
|
462
|
+
if (!hasCloned) attrs = { ...attrs };
|
|
463
|
+
const slotScopeIdList = slotScopeId.trim().split(" ");
|
|
464
|
+
for (let i = 0; i < slotScopeIdList.length; i++) {
|
|
465
|
+
attrs[slotScopeIdList[i]] = "";
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
const prev = setCurrentRenderingInstance(instance);
|
|
469
|
+
try {
|
|
470
|
+
ssrRender(
|
|
471
|
+
instance.proxy,
|
|
472
|
+
push,
|
|
473
|
+
instance,
|
|
474
|
+
attrs,
|
|
475
|
+
// compiler-optimized bindings
|
|
476
|
+
instance.props,
|
|
477
|
+
instance.setupState,
|
|
478
|
+
instance.data,
|
|
479
|
+
instance.ctx
|
|
480
|
+
);
|
|
481
|
+
} finally {
|
|
482
|
+
setCurrentRenderingInstance(prev);
|
|
483
|
+
}
|
|
484
|
+
} else if (instance.render && instance.render !== shared.NOOP) {
|
|
485
|
+
renderVNode(
|
|
486
|
+
push,
|
|
487
|
+
instance.subTree = renderComponentRoot(instance),
|
|
488
|
+
instance,
|
|
489
|
+
slotScopeId
|
|
490
|
+
);
|
|
491
|
+
} else {
|
|
492
|
+
const componentName = comp.name || comp.__file || `<Anonymous>`;
|
|
493
|
+
Vue.warn(`Component ${componentName} is missing template or render function.`);
|
|
494
|
+
push(`<!---->`);
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
return getBuffer();
|
|
498
|
+
}
|
|
499
|
+
function renderVNode(push, vnode, parentComponent, slotScopeId) {
|
|
500
|
+
const { type, shapeFlag, children, dirs, props } = vnode;
|
|
501
|
+
if (dirs) {
|
|
502
|
+
vnode.props = applySSRDirectives(vnode, props, dirs);
|
|
503
|
+
}
|
|
504
|
+
switch (type) {
|
|
505
|
+
case Vue.Text:
|
|
506
|
+
push(shared.escapeHtml(children));
|
|
507
|
+
break;
|
|
508
|
+
case Vue.Comment:
|
|
509
|
+
push(
|
|
510
|
+
children ? `<!--${shared.escapeHtmlComment(children)}-->` : `<!---->`
|
|
511
|
+
);
|
|
512
|
+
break;
|
|
513
|
+
case Vue.Static:
|
|
514
|
+
push(children);
|
|
515
|
+
break;
|
|
516
|
+
case Vue.Fragment:
|
|
517
|
+
if (vnode.slotScopeIds) {
|
|
518
|
+
slotScopeId = (slotScopeId ? slotScopeId + " " : "") + vnode.slotScopeIds.join(" ");
|
|
519
|
+
}
|
|
520
|
+
push(`<!--[-->`);
|
|
521
|
+
renderVNodeChildren(
|
|
522
|
+
push,
|
|
523
|
+
children,
|
|
524
|
+
parentComponent,
|
|
525
|
+
slotScopeId
|
|
526
|
+
);
|
|
527
|
+
push(`<!--]-->`);
|
|
528
|
+
break;
|
|
529
|
+
default:
|
|
530
|
+
if (shapeFlag & 1) {
|
|
531
|
+
renderElementVNode(push, vnode, parentComponent, slotScopeId);
|
|
532
|
+
} else if (shapeFlag & 6) {
|
|
533
|
+
push(renderComponentVNode(vnode, parentComponent, slotScopeId));
|
|
534
|
+
} else if (shapeFlag & 64) {
|
|
535
|
+
renderTeleportVNode(push, vnode, parentComponent, slotScopeId);
|
|
536
|
+
} else if (shapeFlag & 128) {
|
|
537
|
+
renderVNode(push, vnode.ssContent, parentComponent, slotScopeId);
|
|
538
|
+
} else {
|
|
539
|
+
Vue.warn(
|
|
540
|
+
"[@vue/server-renderer] Invalid VNode type:",
|
|
541
|
+
type,
|
|
542
|
+
`(${typeof type})`
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function renderVNodeChildren(push, children, parentComponent, slotScopeId) {
|
|
548
|
+
for (let i = 0; i < children.length; i++) {
|
|
549
|
+
renderVNode(push, normalizeVNode(children[i]), parentComponent, slotScopeId);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
function renderElementVNode(push, vnode, parentComponent, slotScopeId) {
|
|
553
|
+
const tag = vnode.type;
|
|
554
|
+
let { props, children, shapeFlag, scopeId } = vnode;
|
|
555
|
+
let openTag = `<${tag}`;
|
|
556
|
+
if (props) {
|
|
557
|
+
openTag += ssrRenderAttrs(props, tag);
|
|
558
|
+
}
|
|
559
|
+
if (scopeId) {
|
|
560
|
+
openTag += ` ${scopeId}`;
|
|
561
|
+
}
|
|
562
|
+
let curParent = parentComponent;
|
|
563
|
+
let curVnode = vnode;
|
|
564
|
+
while (curParent && curVnode === curParent.subTree) {
|
|
565
|
+
curVnode = curParent.vnode;
|
|
566
|
+
if (curVnode.scopeId) {
|
|
567
|
+
openTag += ` ${curVnode.scopeId}`;
|
|
568
|
+
}
|
|
569
|
+
curParent = curParent.parent;
|
|
570
|
+
}
|
|
571
|
+
if (slotScopeId) {
|
|
572
|
+
openTag += ` ${slotScopeId}`;
|
|
573
|
+
}
|
|
574
|
+
push(openTag + `>`);
|
|
575
|
+
if (!shared.isVoidTag(tag)) {
|
|
576
|
+
let hasChildrenOverride = false;
|
|
577
|
+
if (props) {
|
|
578
|
+
if (props.innerHTML) {
|
|
579
|
+
hasChildrenOverride = true;
|
|
580
|
+
push(props.innerHTML);
|
|
581
|
+
} else if (props.textContent) {
|
|
582
|
+
hasChildrenOverride = true;
|
|
583
|
+
push(shared.escapeHtml(props.textContent));
|
|
584
|
+
} else if (tag === "textarea" && props.value) {
|
|
585
|
+
hasChildrenOverride = true;
|
|
586
|
+
push(shared.escapeHtml(props.value));
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
if (!hasChildrenOverride) {
|
|
590
|
+
if (shapeFlag & 8) {
|
|
591
|
+
push(shared.escapeHtml(children));
|
|
592
|
+
} else if (shapeFlag & 16) {
|
|
593
|
+
renderVNodeChildren(
|
|
594
|
+
push,
|
|
595
|
+
children,
|
|
596
|
+
parentComponent,
|
|
597
|
+
slotScopeId
|
|
598
|
+
);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
push(`</${tag}>`);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
function applySSRDirectives(vnode, rawProps, dirs) {
|
|
605
|
+
const toMerge = [];
|
|
606
|
+
for (let i = 0; i < dirs.length; i++) {
|
|
607
|
+
const binding = dirs[i];
|
|
608
|
+
const {
|
|
609
|
+
dir: { getSSRProps }
|
|
610
|
+
} = binding;
|
|
611
|
+
if (getSSRProps) {
|
|
612
|
+
const props = getSSRProps(binding, vnode);
|
|
613
|
+
if (props) toMerge.push(props);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
return Vue.mergeProps(rawProps || {}, ...toMerge);
|
|
617
|
+
}
|
|
618
|
+
function renderTeleportVNode(push, vnode, parentComponent, slotScopeId) {
|
|
619
|
+
const target = vnode.props && vnode.props.to;
|
|
620
|
+
const disabled = vnode.props && vnode.props.disabled;
|
|
621
|
+
if (!target) {
|
|
622
|
+
if (!disabled) {
|
|
623
|
+
Vue.warn(`[@vue/server-renderer] Teleport is missing target prop.`);
|
|
624
|
+
}
|
|
625
|
+
return [];
|
|
626
|
+
}
|
|
627
|
+
if (!shared.isString(target)) {
|
|
628
|
+
Vue.warn(
|
|
629
|
+
`[@vue/server-renderer] Teleport target must be a query selector string.`
|
|
630
|
+
);
|
|
631
|
+
return [];
|
|
632
|
+
}
|
|
633
|
+
ssrRenderTeleport(
|
|
634
|
+
push,
|
|
635
|
+
(push2) => {
|
|
636
|
+
renderVNodeChildren(
|
|
637
|
+
push2,
|
|
638
|
+
vnode.children,
|
|
639
|
+
parentComponent,
|
|
640
|
+
slotScopeId
|
|
641
|
+
);
|
|
642
|
+
},
|
|
643
|
+
target,
|
|
644
|
+
disabled || disabled === "",
|
|
645
|
+
parentComponent
|
|
646
|
+
);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
const { isVNode: isVNode$1 } = Vue.ssrUtils;
|
|
650
|
+
function nestedUnrollBuffer(buffer, parentRet, startIndex) {
|
|
651
|
+
if (!buffer.hasAsync) {
|
|
652
|
+
return parentRet + unrollBufferSync$1(buffer);
|
|
653
|
+
}
|
|
654
|
+
let ret = parentRet;
|
|
655
|
+
for (let i = startIndex; i < buffer.length; i += 1) {
|
|
656
|
+
const item = buffer[i];
|
|
657
|
+
if (shared.isString(item)) {
|
|
658
|
+
ret += item;
|
|
659
|
+
continue;
|
|
660
|
+
}
|
|
661
|
+
if (shared.isPromise(item)) {
|
|
662
|
+
return item.then((nestedItem) => {
|
|
663
|
+
buffer[i] = nestedItem;
|
|
664
|
+
return nestedUnrollBuffer(buffer, ret, i);
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
const result = nestedUnrollBuffer(item, ret, 0);
|
|
668
|
+
if (shared.isPromise(result)) {
|
|
669
|
+
return result.then((nestedItem) => {
|
|
670
|
+
buffer[i] = nestedItem;
|
|
671
|
+
return nestedUnrollBuffer(buffer, "", i);
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
ret = result;
|
|
675
|
+
}
|
|
676
|
+
return ret;
|
|
677
|
+
}
|
|
678
|
+
function unrollBuffer$1(buffer) {
|
|
679
|
+
return nestedUnrollBuffer(buffer, "", 0);
|
|
680
|
+
}
|
|
681
|
+
function unrollBufferSync$1(buffer) {
|
|
682
|
+
let ret = "";
|
|
683
|
+
for (let i = 0; i < buffer.length; i++) {
|
|
684
|
+
let item = buffer[i];
|
|
685
|
+
if (shared.isString(item)) {
|
|
686
|
+
ret += item;
|
|
687
|
+
} else {
|
|
688
|
+
ret += unrollBufferSync$1(item);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
return ret;
|
|
692
|
+
}
|
|
693
|
+
async function renderToString(input, context = {}) {
|
|
694
|
+
if (isVNode$1(input)) {
|
|
695
|
+
return renderToString(Vue.createApp({ render: () => input }), context);
|
|
696
|
+
}
|
|
697
|
+
const vnode = Vue.createVNode(input._component, input._props);
|
|
698
|
+
vnode.appContext = input._context;
|
|
699
|
+
input.provide(Vue.ssrContextKey, context);
|
|
700
|
+
const buffer = await renderComponentVNode(vnode);
|
|
701
|
+
const result = await unrollBuffer$1(buffer);
|
|
702
|
+
await resolveTeleports(context);
|
|
703
|
+
if (context.__watcherHandles) {
|
|
704
|
+
for (const unwatch of context.__watcherHandles) {
|
|
705
|
+
unwatch();
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
return result;
|
|
709
|
+
}
|
|
710
|
+
async function resolveTeleports(context) {
|
|
711
|
+
if (context.__teleportBuffers) {
|
|
712
|
+
context.teleports = context.teleports || {};
|
|
713
|
+
for (const key in context.__teleportBuffers) {
|
|
714
|
+
context.teleports[key] = await unrollBuffer$1(
|
|
715
|
+
await Promise.all([context.__teleportBuffers[key]])
|
|
716
|
+
);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
const { isVNode } = Vue.ssrUtils;
|
|
722
|
+
async function unrollBuffer(buffer, stream) {
|
|
723
|
+
if (buffer.hasAsync) {
|
|
724
|
+
for (let i = 0; i < buffer.length; i++) {
|
|
725
|
+
let item = buffer[i];
|
|
726
|
+
if (shared.isPromise(item)) {
|
|
727
|
+
item = await item;
|
|
728
|
+
}
|
|
729
|
+
if (shared.isString(item)) {
|
|
730
|
+
stream.push(item);
|
|
731
|
+
} else {
|
|
732
|
+
await unrollBuffer(item, stream);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
} else {
|
|
736
|
+
unrollBufferSync(buffer, stream);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
function unrollBufferSync(buffer, stream) {
|
|
740
|
+
for (let i = 0; i < buffer.length; i++) {
|
|
741
|
+
let item = buffer[i];
|
|
742
|
+
if (shared.isString(item)) {
|
|
743
|
+
stream.push(item);
|
|
744
|
+
} else {
|
|
745
|
+
unrollBufferSync(item, stream);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
function renderToSimpleStream(input, context, stream) {
|
|
750
|
+
if (isVNode(input)) {
|
|
751
|
+
return renderToSimpleStream(
|
|
752
|
+
Vue.createApp({ render: () => input }),
|
|
753
|
+
context,
|
|
754
|
+
stream
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
const vnode = Vue.createVNode(input._component, input._props);
|
|
758
|
+
vnode.appContext = input._context;
|
|
759
|
+
input.provide(Vue.ssrContextKey, context);
|
|
760
|
+
Promise.resolve(renderComponentVNode(vnode)).then((buffer) => unrollBuffer(buffer, stream)).then(() => resolveTeleports(context)).then(() => {
|
|
761
|
+
if (context.__watcherHandles) {
|
|
762
|
+
for (const unwatch of context.__watcherHandles) {
|
|
763
|
+
unwatch();
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}).then(() => stream.push(null)).catch((error) => {
|
|
767
|
+
stream.destroy(error);
|
|
768
|
+
});
|
|
769
|
+
return stream;
|
|
770
|
+
}
|
|
771
|
+
function renderToStream(input, context = {}) {
|
|
772
|
+
console.warn(
|
|
773
|
+
`[@vue/server-renderer] renderToStream is deprecated - use renderToNodeStream instead.`
|
|
774
|
+
);
|
|
775
|
+
return renderToNodeStream(input, context);
|
|
776
|
+
}
|
|
777
|
+
function renderToNodeStream(input, context = {}) {
|
|
778
|
+
const stream = new (require("node:stream")).Readable({ read() {
|
|
779
|
+
} }) ;
|
|
780
|
+
if (!stream) {
|
|
781
|
+
throw new Error(
|
|
782
|
+
`ESM build of renderToStream() does not support renderToNodeStream(). Use pipeToNodeWritable() with an existing Node.js Writable stream instance instead.`
|
|
783
|
+
);
|
|
784
|
+
}
|
|
785
|
+
return renderToSimpleStream(input, context, stream);
|
|
786
|
+
}
|
|
787
|
+
function pipeToNodeWritable(input, context = {}, writable) {
|
|
788
|
+
renderToSimpleStream(input, context, {
|
|
789
|
+
push(content) {
|
|
790
|
+
if (content != null) {
|
|
791
|
+
writable.write(content);
|
|
792
|
+
} else {
|
|
793
|
+
writable.end();
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
destroy(err) {
|
|
797
|
+
writable.destroy(err);
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
function renderToWebStream(input, context = {}) {
|
|
802
|
+
if (typeof ReadableStream !== "function") {
|
|
803
|
+
throw new Error(
|
|
804
|
+
`ReadableStream constructor is not available in the global scope. If the target environment does support web streams, consider using pipeToWebWritable() with an existing WritableStream instance instead.`
|
|
805
|
+
);
|
|
806
|
+
}
|
|
807
|
+
const encoder = new TextEncoder();
|
|
808
|
+
let cancelled = false;
|
|
809
|
+
return new ReadableStream({
|
|
810
|
+
start(controller) {
|
|
811
|
+
renderToSimpleStream(input, context, {
|
|
812
|
+
push(content) {
|
|
813
|
+
if (cancelled) return;
|
|
814
|
+
if (content != null) {
|
|
815
|
+
controller.enqueue(encoder.encode(content));
|
|
816
|
+
} else {
|
|
817
|
+
controller.close();
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
destroy(err) {
|
|
821
|
+
controller.error(err);
|
|
822
|
+
}
|
|
823
|
+
});
|
|
824
|
+
},
|
|
825
|
+
cancel() {
|
|
826
|
+
cancelled = true;
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
function pipeToWebWritable(input, context = {}, writable) {
|
|
831
|
+
const writer = writable.getWriter();
|
|
832
|
+
const encoder = new TextEncoder();
|
|
833
|
+
let hasReady = false;
|
|
834
|
+
try {
|
|
835
|
+
hasReady = shared.isPromise(writer.ready);
|
|
836
|
+
} catch (e) {
|
|
837
|
+
}
|
|
838
|
+
renderToSimpleStream(input, context, {
|
|
839
|
+
async push(content) {
|
|
840
|
+
if (hasReady) {
|
|
841
|
+
await writer.ready;
|
|
842
|
+
}
|
|
843
|
+
if (content != null) {
|
|
844
|
+
return writer.write(encoder.encode(content));
|
|
845
|
+
} else {
|
|
846
|
+
return writer.close();
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
destroy(err) {
|
|
850
|
+
console.log(err);
|
|
851
|
+
writer.close();
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
Vue.initDirectivesForSSR();
|
|
857
|
+
|
|
858
|
+
exports.ssrIncludeBooleanAttr = shared.includeBooleanAttr;
|
|
859
|
+
exports.pipeToNodeWritable = pipeToNodeWritable;
|
|
860
|
+
exports.pipeToWebWritable = pipeToWebWritable;
|
|
861
|
+
exports.renderToNodeStream = renderToNodeStream;
|
|
862
|
+
exports.renderToSimpleStream = renderToSimpleStream;
|
|
863
|
+
exports.renderToStream = renderToStream;
|
|
864
|
+
exports.renderToString = renderToString;
|
|
865
|
+
exports.renderToWebStream = renderToWebStream;
|
|
866
|
+
exports.ssrGetDirectiveProps = ssrGetDirectiveProps;
|
|
867
|
+
exports.ssrGetDynamicModelProps = ssrGetDynamicModelProps;
|
|
868
|
+
exports.ssrInterpolate = ssrInterpolate;
|
|
869
|
+
exports.ssrLooseContain = ssrLooseContain;
|
|
870
|
+
exports.ssrLooseEqual = ssrLooseEqual;
|
|
871
|
+
exports.ssrRenderAttr = ssrRenderAttr;
|
|
872
|
+
exports.ssrRenderAttrs = ssrRenderAttrs;
|
|
873
|
+
exports.ssrRenderClass = ssrRenderClass;
|
|
874
|
+
exports.ssrRenderComponent = ssrRenderComponent;
|
|
875
|
+
exports.ssrRenderDynamicAttr = ssrRenderDynamicAttr;
|
|
876
|
+
exports.ssrRenderDynamicModel = ssrRenderDynamicModel;
|
|
877
|
+
exports.ssrRenderList = ssrRenderList;
|
|
878
|
+
exports.ssrRenderSlot = ssrRenderSlot;
|
|
879
|
+
exports.ssrRenderSlotInner = ssrRenderSlotInner;
|
|
880
|
+
exports.ssrRenderStyle = ssrRenderStyle;
|
|
881
|
+
exports.ssrRenderSuspense = ssrRenderSuspense;
|
|
882
|
+
exports.ssrRenderTeleport = ssrRenderTeleport;
|
|
883
|
+
exports.ssrRenderVNode = renderVNode;
|