renovate-log-parser 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -27
- package/dist/commands/web.d.ts +2 -1
- package/dist/commands/web.js +23 -11
- package/dist/commands/web.js.map +1 -1
- package/dist/server/api.d.ts +16 -0
- package/dist/server/api.js +173 -0
- package/dist/server/api.js.map +1 -0
- package/dist/server/http-error.d.ts +18 -0
- package/dist/server/http-error.js +23 -0
- package/dist/server/http-error.js.map +1 -0
- package/dist/server/index.d.ts +34 -0
- package/dist/server/index.js +54 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/log-registry.d.ts +34 -0
- package/dist/server/log-registry.js +157 -0
- package/dist/server/log-registry.js.map +1 -0
- package/dist/server/server-main.d.ts +1 -0
- package/dist/server/server-main.js +31 -0
- package/dist/server/server-main.js.map +1 -0
- package/dist/server/translate-filters.d.ts +58 -0
- package/dist/server/translate-filters.js +119 -0
- package/dist/server/translate-filters.js.map +1 -0
- package/package.json +6 -3
- package/web/.output/public/200.html +1 -0
- package/web/.output/public/404.html +1 -0
- package/web/.output/public/_nuxt/{CGPWRqbc.js → B4JKWaDj.js} +1 -1
- package/web/.output/public/_nuxt/Bs-RnkRE.js +37 -0
- package/web/.output/public/_nuxt/{Sgtec1U0.js → DjtJytwR.js} +1 -1
- package/web/.output/public/_nuxt/{BgApMHS1.js → a71R3CFc.js} +1 -1
- package/web/.output/public/_nuxt/builds/latest.json +1 -1
- package/web/.output/public/_nuxt/builds/meta/bc129b23-5172-4e74-875d-2a24574a5dbe.json +1 -0
- package/web/.output/public/index.html +1 -0
- package/web/.output/nitro.json +0 -15
- package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
- package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +0 -1
- package/web/.output/server/chunks/_/error-500.mjs +0 -19
- package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
- package/web/.output/server/chunks/_/icons.mjs +0 -6153
- package/web/.output/server/chunks/_/icons.mjs.map +0 -1
- package/web/.output/server/chunks/_/icons2.mjs +0 -11494
- package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
- package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
- package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +0 -106
- package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +0 -89
- package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs +0 -19675
- package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +0 -1
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
- package/web/.output/server/chunks/build/server.mjs +0 -7910
- package/web/.output/server/chunks/build/server.mjs.map +0 -1
- package/web/.output/server/chunks/build/styles.mjs +0 -10
- package/web/.output/server/chunks/build/styles.mjs.map +0 -1
- package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
- package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
- package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
- package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
- package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
- package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
- package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/renderer.mjs +0 -451
- package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
- package/web/.output/server/index.mjs +0 -16
- package/web/.output/server/index.mjs.map +0 -1
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
- package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
- package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
- package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
- package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
- package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
- package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
- package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
- package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
- package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
- package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
- package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
- package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
- package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
- package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
- package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
- package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
- package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
- package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
- package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
- package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
- package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
- package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
- package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
- package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
- package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
- package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
- package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
- package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
- package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
- package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
- package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
- package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
- package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
- package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
- package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
- package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
- package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
- package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
- package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
- package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
- package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
- package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
- package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
- package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
- package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
- package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
- package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
- package/web/.output/server/node_modules/birpc/package.json +0 -57
- package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
- package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
- package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
- package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
- package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
- package/web/.output/server/node_modules/consola/package.json +0 -136
- package/web/.output/server/node_modules/devalue/index.js +0 -4
- package/web/.output/server/node_modules/devalue/package.json +0 -40
- package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
- package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
- package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
- package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
- package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
- package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
- package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
- package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
- package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
- package/web/.output/server/node_modules/entities/package.json +0 -120
- package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
- package/web/.output/server/node_modules/estree-walker/package.json +0 -37
- package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/hookable/package.json +0 -53
- package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
- package/web/.output/server/node_modules/nostics/package.json +0 -124
- package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
- package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
- package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
- package/web/.output/server/node_modules/rou3/package.json +0 -48
- package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
- package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
- package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
- package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
- package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
- package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
- package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
- package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
- package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
- package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
- package/web/.output/server/node_modules/source-map-js/package.json +0 -71
- package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
- package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
- package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
- package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
- package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
- package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
- package/web/.output/server/node_modules/srvx/package.json +0 -102
- package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
- package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
- package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
- package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
- package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
- package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
- package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
- package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
- package/web/.output/server/node_modules/ufo/package.json +0 -48
- package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
- package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
- package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
- package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
- package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
- package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
- package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
- package/web/.output/server/node_modules/unhead/package.json +0 -105
- package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
- package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
- package/web/.output/server/node_modules/vue/index.js +0 -7
- package/web/.output/server/node_modules/vue/index.mjs +0 -1
- package/web/.output/server/node_modules/vue/package.json +0 -112
- package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
- package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
- package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
- package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
- package/web/.output/server/node_modules/vue-demi/package.json +0 -47
- package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
- package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
- package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
- package/web/.output/server/node_modules/vue-router/package.json +0 -214
- package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
- package/web/.output/server/package.json +0 -51
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { a as createUnhead } from './shared/unhead.CaI5ZD4O.mjs';
|
|
2
|
-
import { T as TagsWithInnerContent, S as SelfClosingTags } from './shared/unhead.yem5I2v_.mjs';
|
|
3
|
-
import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
|
|
4
|
-
import 'hookable';
|
|
5
|
-
import './shared/unhead.B3VbJo7Y.mjs';
|
|
6
|
-
import './shared/unhead.CbpEuj3y.mjs';
|
|
7
|
-
|
|
8
|
-
// @__NO_SIDE_EFFECTS__
|
|
9
|
-
function createHead(options = {}) {
|
|
10
|
-
const unhead = createUnhead({
|
|
11
|
-
...options,
|
|
12
|
-
// @ts-expect-error untyped
|
|
13
|
-
document: false,
|
|
14
|
-
propResolvers: [
|
|
15
|
-
...options.propResolvers || [],
|
|
16
|
-
(k, v) => {
|
|
17
|
-
if (k && k.startsWith("on") && typeof v === "function") {
|
|
18
|
-
return `this.dataset.${k}fired = true`;
|
|
19
|
-
}
|
|
20
|
-
return v;
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
init: [
|
|
24
|
-
options.disableDefaults ? void 0 : {
|
|
25
|
-
htmlAttrs: {
|
|
26
|
-
lang: "en"
|
|
27
|
-
},
|
|
28
|
-
meta: [
|
|
29
|
-
{
|
|
30
|
-
charset: "utf-8"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
name: "viewport",
|
|
34
|
-
content: "width=device-width, initial-scale=1"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
...options.init || []
|
|
39
|
-
]
|
|
40
|
-
});
|
|
41
|
-
unhead._ssrPayload = {};
|
|
42
|
-
unhead.use({
|
|
43
|
-
key: "server",
|
|
44
|
-
hooks: {
|
|
45
|
-
"tags:resolve": function(ctx) {
|
|
46
|
-
const title = ctx.tagMap.get("title");
|
|
47
|
-
const titleTemplate = ctx.tagMap.get("titleTemplate");
|
|
48
|
-
let payload = {
|
|
49
|
-
title: title?.mode === "server" ? unhead._title : void 0,
|
|
50
|
-
titleTemplate: titleTemplate?.mode === "server" ? unhead._titleTemplate : void 0
|
|
51
|
-
};
|
|
52
|
-
if (Object.keys(unhead._ssrPayload || {}).length > 0) {
|
|
53
|
-
payload = {
|
|
54
|
-
...unhead._ssrPayload,
|
|
55
|
-
...payload
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
if (Object.values(payload).some(Boolean)) {
|
|
59
|
-
ctx.tags.push({
|
|
60
|
-
tag: "script",
|
|
61
|
-
innerHTML: JSON.stringify(payload),
|
|
62
|
-
props: { id: "unhead:payload", type: "application/json" }
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
return unhead;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function extractUnheadInputFromHtml(html) {
|
|
72
|
-
return parseHtmlForUnheadExtraction(html);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function encodeAttribute(value) {
|
|
76
|
-
return String(value).replace(/"/g, """);
|
|
77
|
-
}
|
|
78
|
-
function propsToString(props) {
|
|
79
|
-
let attrs = "";
|
|
80
|
-
for (const key in props) {
|
|
81
|
-
if (!Object.hasOwn(props, key))
|
|
82
|
-
continue;
|
|
83
|
-
let value = props[key];
|
|
84
|
-
if ((key === "class" || key === "style") && typeof value !== "string") {
|
|
85
|
-
value = key === "class" ? Array.from(value).join(" ") : Array.from(value).map(([k, v]) => `${k}:${v}`).join(";");
|
|
86
|
-
}
|
|
87
|
-
if (value !== false && value !== null) {
|
|
88
|
-
attrs += value === true ? ` ${key}` : ` ${key}="${encodeAttribute(value)}"`;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return attrs;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function escapeHtml(str) {
|
|
95
|
-
return str.replace(/[&<>"'/]/g, (char) => {
|
|
96
|
-
switch (char) {
|
|
97
|
-
case "&":
|
|
98
|
-
return "&";
|
|
99
|
-
case "<":
|
|
100
|
-
return "<";
|
|
101
|
-
case ">":
|
|
102
|
-
return ">";
|
|
103
|
-
case '"':
|
|
104
|
-
return """;
|
|
105
|
-
case "'":
|
|
106
|
-
return "'";
|
|
107
|
-
case "/":
|
|
108
|
-
return "/";
|
|
109
|
-
default:
|
|
110
|
-
return char;
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function tagToString(tag) {
|
|
115
|
-
const attrs = propsToString(tag.props);
|
|
116
|
-
const openTag = `<${tag.tag}${attrs}>`;
|
|
117
|
-
if (!TagsWithInnerContent.has(tag.tag))
|
|
118
|
-
return SelfClosingTags.has(tag.tag) ? openTag : `${openTag}</${tag.tag}>`;
|
|
119
|
-
let content = String(tag.textContent || tag.innerHTML || "");
|
|
120
|
-
content = tag.tag === "title" ? escapeHtml(content) : content.replace(new RegExp(`</${tag.tag}`, "gi"), `<\\/${tag.tag}`);
|
|
121
|
-
return SelfClosingTags.has(tag.tag) ? openTag : `${openTag}${content}</${tag.tag}>`;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function ssrRenderTags(tags, options) {
|
|
125
|
-
const schema = { htmlAttrs: {}, bodyAttrs: {}, tags: { head: "", bodyClose: "", bodyOpen: "" } };
|
|
126
|
-
const lineBreaks = !options?.omitLineBreaks ? "\n" : "";
|
|
127
|
-
for (const tag of tags) {
|
|
128
|
-
if (tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs") {
|
|
129
|
-
Object.assign(schema[tag.tag], tag.props);
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
|
-
const s = tagToString(tag);
|
|
133
|
-
const tagPosition = tag.tagPosition || "head";
|
|
134
|
-
schema.tags[tagPosition] += schema.tags[tagPosition] ? `${lineBreaks}${s}` : s;
|
|
135
|
-
}
|
|
136
|
-
return {
|
|
137
|
-
headTags: schema.tags.head,
|
|
138
|
-
bodyTags: schema.tags.bodyClose,
|
|
139
|
-
bodyTagsOpen: schema.tags.bodyOpen,
|
|
140
|
-
htmlAttrs: propsToString(schema.htmlAttrs),
|
|
141
|
-
bodyAttrs: propsToString(schema.bodyAttrs)
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// @__NO_SIDE_EFFECTS__
|
|
146
|
-
async function renderSSRHead(head, options) {
|
|
147
|
-
const beforeRenderCtx = { shouldRender: true };
|
|
148
|
-
await head.hooks.callHook("ssr:beforeRender", beforeRenderCtx);
|
|
149
|
-
if (!beforeRenderCtx.shouldRender) {
|
|
150
|
-
return {
|
|
151
|
-
headTags: "",
|
|
152
|
-
bodyTags: "",
|
|
153
|
-
bodyTagsOpen: "",
|
|
154
|
-
htmlAttrs: "",
|
|
155
|
-
bodyAttrs: ""
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
const ctx = { tags: options?.resolvedTags || await head.resolveTags() };
|
|
159
|
-
await head.hooks.callHook("ssr:render", ctx);
|
|
160
|
-
const html = ssrRenderTags(ctx.tags, options);
|
|
161
|
-
const renderCtx = { tags: ctx.tags, html };
|
|
162
|
-
await head.hooks.callHook("ssr:rendered", renderCtx);
|
|
163
|
-
return renderCtx.html;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// @__NO_SIDE_EFFECTS__
|
|
167
|
-
async function transformHtmlTemplate(head, html, options) {
|
|
168
|
-
const template = parseHtmlForUnheadExtraction(html);
|
|
169
|
-
head.push(template.input, { _index: 0 });
|
|
170
|
-
const headHtml = await renderSSRHead(head, options);
|
|
171
|
-
return applyHeadToHtml(template, headHtml);
|
|
172
|
-
}
|
|
173
|
-
// @__NO_SIDE_EFFECTS__
|
|
174
|
-
async function transformHtmlTemplateRaw(head, html, options) {
|
|
175
|
-
const headHtml = await renderSSRHead(head, options);
|
|
176
|
-
const template = parseHtmlForIndexes(html);
|
|
177
|
-
return applyHeadToHtml(template, headHtml);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export { createHead, escapeHtml, extractUnheadInputFromHtml, propsToString, renderSSRHead, ssrRenderTags, tagToString, transformHtmlTemplate, transformHtmlTemplateRaw };
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import { U as UniqueTags, T as TagsWithInnerContent, M as MetaTagsArrayable, H as HasElementTags, a as TagConfigKeys, D as DupeableTags } from './unhead.yem5I2v_.mjs';
|
|
2
|
-
|
|
3
|
-
const allowedMetaProperties = ["name", "property", "http-equiv"];
|
|
4
|
-
const StandardSingleMetaTags = /* @__PURE__ */ new Set([
|
|
5
|
-
"viewport",
|
|
6
|
-
"description",
|
|
7
|
-
"keywords",
|
|
8
|
-
"robots"
|
|
9
|
-
]);
|
|
10
|
-
function isMetaArrayDupeKey(v) {
|
|
11
|
-
const parts = v.split(":");
|
|
12
|
-
if (!parts.length)
|
|
13
|
-
return false;
|
|
14
|
-
return MetaTagsArrayable.has(parts[1]);
|
|
15
|
-
}
|
|
16
|
-
function dedupeKey(tag) {
|
|
17
|
-
const { props, tag: name } = tag;
|
|
18
|
-
if (UniqueTags.has(name))
|
|
19
|
-
return name;
|
|
20
|
-
if (name === "link" && props.rel === "canonical")
|
|
21
|
-
return "canonical";
|
|
22
|
-
if (name === "link" && props.rel === "alternate") {
|
|
23
|
-
if (props.hreflang)
|
|
24
|
-
return `alternate:${props.hreflang}`;
|
|
25
|
-
if (props.type)
|
|
26
|
-
return `alternate:${props.type}:${props.href || ""}`;
|
|
27
|
-
}
|
|
28
|
-
if (props.charset)
|
|
29
|
-
return "charset";
|
|
30
|
-
if (tag.tag === "meta") {
|
|
31
|
-
for (const n of allowedMetaProperties) {
|
|
32
|
-
if (props[n] !== void 0) {
|
|
33
|
-
const propValue = props[n];
|
|
34
|
-
const isStructured = propValue && typeof propValue === "string" && propValue.includes(":");
|
|
35
|
-
const isStandardSingle = propValue && StandardSingleMetaTags.has(propValue);
|
|
36
|
-
const shouldAlwaysDedupe = isStructured || isStandardSingle;
|
|
37
|
-
const keyPart = !shouldAlwaysDedupe && tag.key ? `:key:${tag.key}` : "";
|
|
38
|
-
return `${name}:${propValue}${keyPart}`;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (tag.key) {
|
|
43
|
-
return `${name}:key:${tag.key}`;
|
|
44
|
-
}
|
|
45
|
-
if (props.id) {
|
|
46
|
-
return `${name}:id:${props.id}`;
|
|
47
|
-
}
|
|
48
|
-
if (name === "link" && props.rel === "alternate") {
|
|
49
|
-
return `alternate:${props.href || ""}`;
|
|
50
|
-
}
|
|
51
|
-
if (TagsWithInnerContent.has(name)) {
|
|
52
|
-
const v = tag.textContent || tag.innerHTML;
|
|
53
|
-
if (v) {
|
|
54
|
-
return `${name}:content:${v}`;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function hashTag(tag) {
|
|
59
|
-
const dedupe = tag._h || tag._d;
|
|
60
|
-
if (dedupe)
|
|
61
|
-
return dedupe;
|
|
62
|
-
const inner = tag.textContent || tag.innerHTML;
|
|
63
|
-
if (inner)
|
|
64
|
-
return inner;
|
|
65
|
-
return `${tag.tag}:${Object.entries(tag.props).map(([k, v]) => `${k}:${String(v)}`).join(",")}`;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function walkResolver(val, resolve, key) {
|
|
69
|
-
const type = typeof val;
|
|
70
|
-
if (type === "function") {
|
|
71
|
-
if (!key || key !== "titleTemplate" && !(key[0] === "o" && key[1] === "n")) {
|
|
72
|
-
val = val();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
const v = resolve ? resolve(key, val) : val;
|
|
76
|
-
if (Array.isArray(v)) {
|
|
77
|
-
return v.map((r) => walkResolver(r, resolve));
|
|
78
|
-
}
|
|
79
|
-
if (v?.constructor === Object) {
|
|
80
|
-
const next = {};
|
|
81
|
-
for (const k of Object.keys(v)) {
|
|
82
|
-
next[k] = walkResolver(v[k], resolve, k);
|
|
83
|
-
}
|
|
84
|
-
return next;
|
|
85
|
-
}
|
|
86
|
-
return v;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
function normalizeStyleClassProps(key, value) {
|
|
90
|
-
const store = key === "style" ? /* @__PURE__ */ new Map() : /* @__PURE__ */ new Set();
|
|
91
|
-
function processValue(rawValue) {
|
|
92
|
-
if (rawValue == null || rawValue === void 0)
|
|
93
|
-
return;
|
|
94
|
-
const value2 = String(rawValue).trim();
|
|
95
|
-
if (!value2)
|
|
96
|
-
return;
|
|
97
|
-
if (key === "style") {
|
|
98
|
-
const [k, ...v] = value2.split(":").map((s) => s ? s.trim() : "");
|
|
99
|
-
if (k && v.length)
|
|
100
|
-
store.set(k, v.join(":"));
|
|
101
|
-
} else {
|
|
102
|
-
value2.split(" ").filter(Boolean).forEach((c) => store.add(c));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (typeof value === "string") {
|
|
106
|
-
key === "style" ? value.split(";").forEach(processValue) : processValue(value);
|
|
107
|
-
} else if (Array.isArray(value)) {
|
|
108
|
-
value.forEach((item) => processValue(item));
|
|
109
|
-
} else if (value && typeof value === "object") {
|
|
110
|
-
Object.entries(value).forEach(([k, v]) => {
|
|
111
|
-
if (v && v !== "false") {
|
|
112
|
-
key === "style" ? store.set(String(k).trim(), String(v)) : processValue(k);
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return store;
|
|
117
|
-
}
|
|
118
|
-
function normalizeProps(tag, input) {
|
|
119
|
-
tag.props = tag.props || {};
|
|
120
|
-
if (!input) {
|
|
121
|
-
return tag;
|
|
122
|
-
}
|
|
123
|
-
if (tag.tag === "templateParams") {
|
|
124
|
-
tag.props = input;
|
|
125
|
-
return tag;
|
|
126
|
-
}
|
|
127
|
-
const isHtmlTag = HasElementTags.has(tag.tag) || tag.tag === "htmlAttrs" || tag.tag === "bodyAttrs";
|
|
128
|
-
Object.entries(input).forEach(([prop, value]) => {
|
|
129
|
-
if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
|
|
130
|
-
return;
|
|
131
|
-
if (value === null) {
|
|
132
|
-
tag.props[prop] = null;
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if (prop === "class" || prop === "style") {
|
|
136
|
-
tag.props[prop] = normalizeStyleClassProps(prop, value);
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
if (TagConfigKeys.has(prop)) {
|
|
140
|
-
if ((prop === "textContent" || prop === "innerHTML") && typeof value === "object") {
|
|
141
|
-
let type = input.type;
|
|
142
|
-
if (!input.type) {
|
|
143
|
-
type = "application/json";
|
|
144
|
-
}
|
|
145
|
-
if (!type?.endsWith("json") && type !== "speculationrules") {
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
input.type = type;
|
|
149
|
-
tag.props.type = type;
|
|
150
|
-
tag[prop] = JSON.stringify(value);
|
|
151
|
-
} else {
|
|
152
|
-
tag[prop] = value;
|
|
153
|
-
}
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
const isDataKey = prop.startsWith("data-");
|
|
157
|
-
const key = isHtmlTag && !isDataKey ? prop.toLowerCase() : prop;
|
|
158
|
-
const strValue = String(value);
|
|
159
|
-
const isMetaContentKey = tag.tag === "meta" && key === "content";
|
|
160
|
-
if (strValue === "true" || strValue === "") {
|
|
161
|
-
tag.props[key] = isDataKey || isMetaContentKey ? strValue : true;
|
|
162
|
-
} else if (!value && isDataKey && strValue === "false") {
|
|
163
|
-
tag.props[key] = "false";
|
|
164
|
-
} else if (value !== void 0) {
|
|
165
|
-
tag.props[key] = value;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
return tag;
|
|
169
|
-
}
|
|
170
|
-
function normalizeTag(tagName, _input) {
|
|
171
|
-
const input = typeof _input === "object" && typeof _input !== "function" ? _input : { [tagName === "script" || tagName === "noscript" || tagName === "style" ? "innerHTML" : "textContent"]: _input };
|
|
172
|
-
const tag = normalizeProps({ tag: tagName, props: {} }, input);
|
|
173
|
-
if (tag.key && DupeableTags.has(tag.tag)) {
|
|
174
|
-
tag.props["data-hid"] = tag._h = tag.key;
|
|
175
|
-
}
|
|
176
|
-
if (tag.tag === "script" && typeof tag.innerHTML === "object") {
|
|
177
|
-
tag.innerHTML = JSON.stringify(tag.innerHTML);
|
|
178
|
-
tag.props.type = tag.props.type || "application/json";
|
|
179
|
-
}
|
|
180
|
-
return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
|
|
181
|
-
}
|
|
182
|
-
function normalizeEntryToTags(input, propResolvers) {
|
|
183
|
-
if (!input) {
|
|
184
|
-
return [];
|
|
185
|
-
}
|
|
186
|
-
if (typeof input === "function") {
|
|
187
|
-
input = input();
|
|
188
|
-
}
|
|
189
|
-
const resolvers = (key, val) => {
|
|
190
|
-
for (let i = 0; i < propResolvers.length; i++) {
|
|
191
|
-
val = propResolvers[i](key, val);
|
|
192
|
-
}
|
|
193
|
-
return val;
|
|
194
|
-
};
|
|
195
|
-
input = resolvers(void 0, input);
|
|
196
|
-
const tags = [];
|
|
197
|
-
input = walkResolver(input, resolvers);
|
|
198
|
-
Object.entries(input || {}).forEach(([key, value]) => {
|
|
199
|
-
if (value === void 0)
|
|
200
|
-
return;
|
|
201
|
-
for (const v of Array.isArray(value) ? value : [value])
|
|
202
|
-
tags.push(normalizeTag(key, v));
|
|
203
|
-
});
|
|
204
|
-
return tags.flat();
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export { normalizeProps as a, dedupeKey as d, hashTag as h, isMetaArrayDupeKey as i, normalizeEntryToTags as n, walkResolver as w };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const SepSub = "%separator";
|
|
2
|
-
function sub(p, token, isJson = false) {
|
|
3
|
-
let val;
|
|
4
|
-
if (token === "s" || token === "pageTitle") {
|
|
5
|
-
val = p.pageTitle;
|
|
6
|
-
} else if (token.includes(".")) {
|
|
7
|
-
const dotIndex = token.indexOf(".");
|
|
8
|
-
val = p[token.substring(0, dotIndex)]?.[token.substring(dotIndex + 1)];
|
|
9
|
-
} else {
|
|
10
|
-
val = p[token];
|
|
11
|
-
}
|
|
12
|
-
if (val !== void 0) {
|
|
13
|
-
return isJson ? (val || "").replace(/\\/g, "\\\\").replace(/</g, "\\u003C").replace(/"/g, '\\"') : val || "";
|
|
14
|
-
}
|
|
15
|
-
return void 0;
|
|
16
|
-
}
|
|
17
|
-
function processTemplateParams(s, p, sep, isJson = false) {
|
|
18
|
-
if (typeof s !== "string" || !s.includes("%"))
|
|
19
|
-
return s;
|
|
20
|
-
let decoded = s;
|
|
21
|
-
try {
|
|
22
|
-
decoded = decodeURI(s);
|
|
23
|
-
} catch {
|
|
24
|
-
}
|
|
25
|
-
const tokens = decoded.match(/%\w+(?:\.\w+)?/g);
|
|
26
|
-
if (!tokens) {
|
|
27
|
-
return s;
|
|
28
|
-
}
|
|
29
|
-
const hasSepSub = s.includes(SepSub);
|
|
30
|
-
s = s.replace(/%\w+(?:\.\w+)?/g, (token) => {
|
|
31
|
-
if (token === SepSub || !tokens.includes(token)) {
|
|
32
|
-
return token;
|
|
33
|
-
}
|
|
34
|
-
const re = sub(p, token.slice(1), isJson);
|
|
35
|
-
return re !== void 0 ? re : token;
|
|
36
|
-
}).trim();
|
|
37
|
-
if (hasSepSub) {
|
|
38
|
-
s = s.split(SepSub).map((part) => part.trim()).filter((part) => part !== "").join(sep ? ` ${sep} ` : " ");
|
|
39
|
-
}
|
|
40
|
-
return s;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { processTemplateParams as p };
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { b as ScriptNetworkEvents } from './unhead.yem5I2v_.mjs';
|
|
2
|
-
|
|
3
|
-
function createNoopedRecordingProxy(instance = {}) {
|
|
4
|
-
const stack = [];
|
|
5
|
-
let stackIdx = -1;
|
|
6
|
-
const handler = (reuseStack = false) => ({
|
|
7
|
-
get(_, prop, receiver) {
|
|
8
|
-
if (!reuseStack) {
|
|
9
|
-
const v = Reflect.get(_, prop, receiver);
|
|
10
|
-
if (typeof v !== "undefined") {
|
|
11
|
-
return v;
|
|
12
|
-
}
|
|
13
|
-
stackIdx++;
|
|
14
|
-
stack[stackIdx] = [];
|
|
15
|
-
}
|
|
16
|
-
stack[stackIdx].push({ type: "get", key: prop });
|
|
17
|
-
return new Proxy(() => {
|
|
18
|
-
}, handler(true));
|
|
19
|
-
},
|
|
20
|
-
apply(_, __, args) {
|
|
21
|
-
stack[stackIdx].push({ type: "apply", key: "", args });
|
|
22
|
-
return void 0;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
proxy: new Proxy(instance || {}, handler()),
|
|
27
|
-
stack
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function createForwardingProxy(target) {
|
|
31
|
-
const handler = {
|
|
32
|
-
get(_, prop, receiver) {
|
|
33
|
-
const v = Reflect.get(_, prop, receiver);
|
|
34
|
-
if (typeof v === "object") {
|
|
35
|
-
return new Proxy(v, handler);
|
|
36
|
-
}
|
|
37
|
-
return v;
|
|
38
|
-
},
|
|
39
|
-
apply(_, __, args) {
|
|
40
|
-
Reflect.apply(_, __, args);
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return new Proxy(target, handler);
|
|
45
|
-
}
|
|
46
|
-
function replayProxyRecordings(target, stack) {
|
|
47
|
-
stack.forEach((recordings) => {
|
|
48
|
-
let context = target;
|
|
49
|
-
let prevContext = target;
|
|
50
|
-
recordings.forEach(({ type, key, args }) => {
|
|
51
|
-
if (type === "get") {
|
|
52
|
-
prevContext = context;
|
|
53
|
-
context = context[key];
|
|
54
|
-
} else if (type === "apply") {
|
|
55
|
-
context = context.call(prevContext, ...args);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function resolveScriptKey(input) {
|
|
62
|
-
return input.key || input.src || (typeof input.innerHTML === "string" ? input.innerHTML : "");
|
|
63
|
-
}
|
|
64
|
-
const PreconnectServerModes = ["preconnect", "dns-prefetch"];
|
|
65
|
-
function useScript(head, _input, _options) {
|
|
66
|
-
const input = typeof _input === "string" ? { src: _input } : _input;
|
|
67
|
-
const options = _options || {};
|
|
68
|
-
const id = resolveScriptKey(input);
|
|
69
|
-
const prevScript = head._scripts?.[id];
|
|
70
|
-
if (prevScript) {
|
|
71
|
-
prevScript.setupTriggerHandler(options.trigger);
|
|
72
|
-
return prevScript;
|
|
73
|
-
}
|
|
74
|
-
options.beforeInit?.();
|
|
75
|
-
const syncStatus = (s) => {
|
|
76
|
-
script.status = s;
|
|
77
|
-
head.hooks.callHook(`script:updated`, hookCtx);
|
|
78
|
-
};
|
|
79
|
-
ScriptNetworkEvents.forEach((fn) => {
|
|
80
|
-
const k = fn;
|
|
81
|
-
const _fn = typeof input[k] === "function" ? input[k].bind(options.eventContext) : null;
|
|
82
|
-
input[k] = (e) => {
|
|
83
|
-
syncStatus(fn === "onload" ? "loaded" : fn === "onerror" ? "error" : "loading");
|
|
84
|
-
_fn?.(e);
|
|
85
|
-
};
|
|
86
|
-
});
|
|
87
|
-
const _cbs = { loaded: [], error: [] };
|
|
88
|
-
const _uniqueCbs = /* @__PURE__ */ new Set();
|
|
89
|
-
const _registerCb = (key, cb, options2) => {
|
|
90
|
-
if (head.ssr) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (options2?.key) {
|
|
94
|
-
const key2 = `${options2?.key}:${options2.key}`;
|
|
95
|
-
if (_uniqueCbs.has(key2)) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
_uniqueCbs.add(key2);
|
|
99
|
-
}
|
|
100
|
-
if (_cbs[key]) {
|
|
101
|
-
const i = _cbs[key].push(cb);
|
|
102
|
-
return () => _cbs[key]?.splice(i - 1, 1);
|
|
103
|
-
}
|
|
104
|
-
cb(script.instance);
|
|
105
|
-
return () => {
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
const loadPromise = new Promise((resolve) => {
|
|
109
|
-
if (head.ssr)
|
|
110
|
-
return;
|
|
111
|
-
const emit = (api) => requestAnimationFrame(() => resolve(api));
|
|
112
|
-
const _ = head.hooks.hook("script:updated", ({ script: script2 }) => {
|
|
113
|
-
const status = script2.status;
|
|
114
|
-
if (script2.id === id && (status === "loaded" || status === "error")) {
|
|
115
|
-
if (status === "loaded") {
|
|
116
|
-
if (typeof options.use === "function") {
|
|
117
|
-
const api = options.use();
|
|
118
|
-
if (api) {
|
|
119
|
-
emit(api);
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
emit({});
|
|
123
|
-
}
|
|
124
|
-
} else if (status === "error") {
|
|
125
|
-
resolve(false);
|
|
126
|
-
}
|
|
127
|
-
_();
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
const script = {
|
|
132
|
-
_loadPromise: loadPromise,
|
|
133
|
-
instance: !head.ssr && options?.use?.() || null,
|
|
134
|
-
proxy: null,
|
|
135
|
-
id,
|
|
136
|
-
status: "awaitingLoad",
|
|
137
|
-
remove() {
|
|
138
|
-
script._triggerAbortControllers?.forEach((ac) => ac.abort());
|
|
139
|
-
script._triggerAbortControllers?.clear();
|
|
140
|
-
script._triggerPromises = [];
|
|
141
|
-
script._warmupEl?.dispose();
|
|
142
|
-
if (script.entry) {
|
|
143
|
-
script.entry.dispose();
|
|
144
|
-
script.entry = void 0;
|
|
145
|
-
syncStatus("removed");
|
|
146
|
-
delete head._scripts?.[id];
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
return false;
|
|
150
|
-
},
|
|
151
|
-
warmup(rel) {
|
|
152
|
-
const { src } = input;
|
|
153
|
-
const isCrossOrigin = !src.startsWith("/") || src.startsWith("//");
|
|
154
|
-
const isPreconnect = rel && PreconnectServerModes.includes(rel);
|
|
155
|
-
let href = src;
|
|
156
|
-
if (!rel || isPreconnect && !isCrossOrigin) {
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
if (isPreconnect) {
|
|
160
|
-
const $url = new URL(src);
|
|
161
|
-
href = `${$url.protocol}//${$url.host}`;
|
|
162
|
-
}
|
|
163
|
-
const link = {
|
|
164
|
-
href,
|
|
165
|
-
rel,
|
|
166
|
-
crossorigin: typeof input.crossorigin !== "undefined" ? input.crossorigin : isCrossOrigin ? "anonymous" : void 0,
|
|
167
|
-
referrerpolicy: typeof input.referrerpolicy !== "undefined" ? input.referrerpolicy : isCrossOrigin ? "no-referrer" : void 0,
|
|
168
|
-
fetchpriority: typeof input.fetchpriority !== "undefined" ? input.fetchpriority : "low",
|
|
169
|
-
integrity: input.integrity,
|
|
170
|
-
as: rel === "preload" ? "script" : void 0
|
|
171
|
-
};
|
|
172
|
-
script._warmupEl = head.push({ link: [link] }, { head, tagPriority: "high" });
|
|
173
|
-
return script._warmupEl;
|
|
174
|
-
},
|
|
175
|
-
load(cb) {
|
|
176
|
-
script._triggerAbortControllers?.forEach((ac) => ac.abort());
|
|
177
|
-
script._triggerAbortControllers?.clear();
|
|
178
|
-
script._triggerPromises = [];
|
|
179
|
-
if (!script.entry) {
|
|
180
|
-
syncStatus("loading");
|
|
181
|
-
const defaults = {
|
|
182
|
-
defer: true,
|
|
183
|
-
fetchpriority: "low"
|
|
184
|
-
};
|
|
185
|
-
if (input.src && (input.src.startsWith("http") || input.src.startsWith("//"))) {
|
|
186
|
-
defaults.crossorigin = "anonymous";
|
|
187
|
-
defaults.referrerpolicy = "no-referrer";
|
|
188
|
-
}
|
|
189
|
-
script.entry = head.push({
|
|
190
|
-
script: [{ ...defaults, ...input }]
|
|
191
|
-
}, options);
|
|
192
|
-
}
|
|
193
|
-
if (cb)
|
|
194
|
-
_registerCb("loaded", cb);
|
|
195
|
-
return loadPromise;
|
|
196
|
-
},
|
|
197
|
-
onLoaded(cb, options2) {
|
|
198
|
-
return _registerCb("loaded", cb, options2);
|
|
199
|
-
},
|
|
200
|
-
onError(cb, options2) {
|
|
201
|
-
return _registerCb("error", cb, options2);
|
|
202
|
-
},
|
|
203
|
-
setupTriggerHandler(trigger) {
|
|
204
|
-
if (script.status !== "awaitingLoad") {
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
if ((typeof trigger === "undefined" || trigger === "client") && !head.ssr || trigger === "server") {
|
|
208
|
-
script.load();
|
|
209
|
-
} else if (trigger instanceof Promise) {
|
|
210
|
-
if (head.ssr) {
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
const abortController = new AbortController();
|
|
214
|
-
script._triggerAbortControllers = script._triggerAbortControllers || /* @__PURE__ */ new Set();
|
|
215
|
-
script._triggerAbortControllers.add(abortController);
|
|
216
|
-
const abortPromise = new Promise((resolve) => {
|
|
217
|
-
abortController.signal.addEventListener("abort", () => {
|
|
218
|
-
script._triggerAbortControllers?.delete(abortController);
|
|
219
|
-
resolve();
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
script._triggerAbortController = abortController;
|
|
223
|
-
script._triggerPromises = script._triggerPromises || [];
|
|
224
|
-
const idx = script._triggerPromises.push(Promise.race([
|
|
225
|
-
trigger.then((v) => typeof v === "undefined" || v ? script.load : void 0),
|
|
226
|
-
abortPromise
|
|
227
|
-
]).catch(() => {
|
|
228
|
-
}).then((res) => {
|
|
229
|
-
res?.();
|
|
230
|
-
}).finally(() => {
|
|
231
|
-
script._triggerPromises?.splice(idx, 1);
|
|
232
|
-
}));
|
|
233
|
-
} else if (typeof trigger === "function") {
|
|
234
|
-
trigger(script.load);
|
|
235
|
-
}
|
|
236
|
-
},
|
|
237
|
-
_cbs
|
|
238
|
-
};
|
|
239
|
-
loadPromise.then((api) => {
|
|
240
|
-
if (api !== false) {
|
|
241
|
-
script.instance = api;
|
|
242
|
-
_cbs.loaded?.forEach((cb) => cb(api));
|
|
243
|
-
_cbs.loaded = null;
|
|
244
|
-
} else {
|
|
245
|
-
_cbs.error?.forEach((cb) => cb());
|
|
246
|
-
_cbs.error = null;
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
const hookCtx = { script };
|
|
250
|
-
script.setupTriggerHandler(options.trigger);
|
|
251
|
-
if (options.use) {
|
|
252
|
-
const { proxy, stack } = createNoopedRecordingProxy(head.ssr ? {} : options.use() || {});
|
|
253
|
-
script.proxy = proxy;
|
|
254
|
-
script.onLoaded((instance) => {
|
|
255
|
-
replayProxyRecordings(instance, stack);
|
|
256
|
-
script.proxy = createForwardingProxy(instance);
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
if (!options.warmupStrategy && (typeof options.trigger === "undefined" || options.trigger === "client")) {
|
|
260
|
-
options.warmupStrategy = "preload";
|
|
261
|
-
}
|
|
262
|
-
if (options.warmupStrategy) {
|
|
263
|
-
script.warmup(options.warmupStrategy);
|
|
264
|
-
}
|
|
265
|
-
head._scripts = Object.assign(head._scripts || {}, { [id]: script });
|
|
266
|
-
return script;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export { resolveScriptKey as r, useScript as u };
|