businesslens 0.2.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.
Files changed (354) hide show
  1. package/.output/nitro.json +15 -0
  2. package/.output/public/_nuxt/ANTr5GBv.js +1 -0
  3. package/.output/public/_nuxt/B3Z-Zt7l.js +37 -0
  4. package/.output/public/_nuxt/Bd76-HGM.js +1 -0
  5. package/.output/public/_nuxt/Bf4VrETn.js +1 -0
  6. package/.output/public/_nuxt/CR3jGlpM.js +1 -0
  7. package/.output/public/_nuxt/CntoM1kL.js +1 -0
  8. package/.output/public/_nuxt/DogqooqX.js +1 -0
  9. package/.output/public/_nuxt/Zsu92SSr.js +1 -0
  10. package/.output/public/_nuxt/builds/latest.json +1 -0
  11. package/.output/public/_nuxt/builds/meta/e74555da-0c18-4e95-b959-2bdcc538677b.json +1 -0
  12. package/.output/public/_nuxt/default.CRZmPCG_.css +1 -0
  13. package/.output/public/_nuxt/e3lOfLH3.js +1 -0
  14. package/.output/public/_nuxt/entry.SgkJh-3P.css +1 -0
  15. package/.output/public/_nuxt/error-404.CTIGkQtd.css +1 -0
  16. package/.output/public/_nuxt/error-500.CKBWIF4V.css +1 -0
  17. package/.output/public/_nuxt/fCd72uLR.js +1 -0
  18. package/.output/public/_nuxt/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  19. package/.output/public/_nuxt/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  20. package/.output/public/_nuxt/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  21. package/.output/public/_nuxt/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  22. package/.output/public/_nuxt/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  23. package/.output/public/_nuxt/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  24. package/.output/public/_nuxt/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  25. package/.output/public/_nuxt/vk0fkBN0.js +1 -0
  26. package/.output/public/_nuxt/zg6VsE4d.js +39 -0
  27. package/.output/public/brand/logo/businesslens-mark.svg +20 -0
  28. package/.output/public/favicon.svg +13 -0
  29. package/.output/server/chunks/_/error-500.mjs +19 -0
  30. package/.output/server/chunks/_/error-500.mjs.map +1 -0
  31. package/.output/server/chunks/_/icons.mjs +6150 -0
  32. package/.output/server/chunks/_/icons.mjs.map +1 -0
  33. package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs +161 -0
  34. package/.output/server/chunks/build/Card-DJ5Lo0Cn.mjs.map +1 -0
  35. package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs +4412 -0
  36. package/.output/server/chunks/build/EntityInspector-fTjbuYoq.mjs.map +1 -0
  37. package/.output/server/chunks/build/Slideover-KOfskX1l.mjs +4226 -0
  38. package/.output/server/chunks/build/Slideover-KOfskX1l.mjs.map +1 -0
  39. package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs +1338 -0
  40. package/.output/server/chunks/build/Tooltip-DkxwLaX6.mjs.map +1 -0
  41. package/.output/server/chunks/build/client.precomputed.mjs +4 -0
  42. package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  43. package/.output/server/chunks/build/default-BJSthw3t.mjs +8999 -0
  44. package/.output/server/chunks/build/default-BJSthw3t.mjs.map +1 -0
  45. package/.output/server/chunks/build/default-styles.BYgqaNao.mjs +8 -0
  46. package/.output/server/chunks/build/default-styles.BYgqaNao.mjs.map +1 -0
  47. package/.output/server/chunks/build/error-404-BOiGLcfP.mjs +96 -0
  48. package/.output/server/chunks/build/error-404-BOiGLcfP.mjs.map +1 -0
  49. package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs +8 -0
  50. package/.output/server/chunks/build/error-404-styles.DA-UkGXW.mjs.map +1 -0
  51. package/.output/server/chunks/build/error-500-Bwyw373t.mjs +79 -0
  52. package/.output/server/chunks/build/error-500-Bwyw373t.mjs.map +1 -0
  53. package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs +8 -0
  54. package/.output/server/chunks/build/error-500-styles.De7qbKJ2.mjs.map +1 -0
  55. package/.output/server/chunks/build/index-BuhKSZfH.mjs +313 -0
  56. package/.output/server/chunks/build/index-BuhKSZfH.mjs.map +1 -0
  57. package/.output/server/chunks/build/journeys-DHHOyxCM.mjs +244 -0
  58. package/.output/server/chunks/build/journeys-DHHOyxCM.mjs.map +1 -0
  59. package/.output/server/chunks/build/server.mjs +14099 -0
  60. package/.output/server/chunks/build/server.mjs.map +1 -0
  61. package/.output/server/chunks/build/styles.mjs +9 -0
  62. package/.output/server/chunks/build/styles.mjs.map +1 -0
  63. package/.output/server/chunks/build/topology-BJfDB_jA.mjs +295 -0
  64. package/.output/server/chunks/build/topology-BJfDB_jA.mjs.map +1 -0
  65. package/.output/server/chunks/build/useReport-pDAk-ETG.mjs +406 -0
  66. package/.output/server/chunks/build/useReport-pDAk-ETG.mjs.map +1 -0
  67. package/.output/server/chunks/nitro/nitro.mjs +5770 -0
  68. package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  69. package/.output/server/chunks/routes/api/report.get.mjs +617 -0
  70. package/.output/server/chunks/routes/api/report.get.mjs.map +1 -0
  71. package/.output/server/chunks/routes/renderer.mjs +451 -0
  72. package/.output/server/chunks/routes/renderer.mjs.map +1 -0
  73. package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  74. package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  75. package/.output/server/index.mjs +12 -0
  76. package/.output/server/index.mjs.map +1 -0
  77. package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
  78. package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
  79. package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
  80. package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
  81. package/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
  82. package/.output/server/node_modules/@babel/parser/package.json +50 -0
  83. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  84. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  85. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  86. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  87. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  88. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  89. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  90. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  91. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  92. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  93. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  94. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  95. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  96. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  97. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  98. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  99. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  100. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  101. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  102. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  103. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  104. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  105. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  106. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  107. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  108. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  109. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  110. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  111. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  112. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  113. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  114. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  115. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  116. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  117. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  118. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  119. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  120. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  121. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  122. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  123. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  124. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  125. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  126. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  127. package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  128. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  129. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  130. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  131. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  132. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  133. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  134. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  135. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  136. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  137. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  138. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  139. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  140. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  141. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  142. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  143. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  145. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  146. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  147. package/.output/server/node_modules/@iconify/utils/package.json +119 -0
  148. package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
  149. package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  150. package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  151. package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  152. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  153. package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  154. package/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
  155. package/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
  156. package/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
  157. package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
  158. package/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
  159. package/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
  160. package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
  161. package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  162. package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
  163. package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  164. package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
  165. package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  166. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
  167. package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  168. package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  169. package/.output/server/node_modules/@vue/shared/package.json +47 -0
  170. package/.output/server/node_modules/@vue-flow/core/dist/vue-flow-core.mjs +10186 -0
  171. package/.output/server/node_modules/@vue-flow/core/package.json +95 -0
  172. package/.output/server/node_modules/ajv/dist/2020.js +55 -0
  173. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  174. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  175. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  176. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  177. package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
  178. package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
  179. package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
  180. package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
  181. package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
  182. package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
  183. package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
  184. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  185. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  186. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  187. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  188. package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
  189. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  190. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  191. package/.output/server/node_modules/ajv/dist/core.js +618 -0
  192. package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
  193. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  194. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  195. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  196. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  197. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  198. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  199. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  200. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  201. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  202. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  203. package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
  204. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  205. package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
  206. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  207. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  208. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  209. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  210. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  211. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  212. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  213. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  214. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  215. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  216. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  217. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  218. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  219. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  220. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  221. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  222. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  223. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  224. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  225. package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
  226. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  227. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  228. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  229. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  230. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  231. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  232. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  233. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  234. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  235. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  236. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  237. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  238. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  239. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  240. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  241. package/.output/server/node_modules/ajv/dist/vocabularies/next.js +8 -0
  242. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  243. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  244. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  245. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  246. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  247. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  248. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  249. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  250. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  251. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  252. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  253. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  254. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  255. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +24 -0
  256. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  257. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  258. package/.output/server/node_modules/ajv/package.json +126 -0
  259. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  260. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  261. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  262. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  263. package/.output/server/node_modules/birpc/dist/index.mjs +291 -0
  264. package/.output/server/node_modules/birpc/package.json +57 -0
  265. package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  266. package/.output/server/node_modules/consola/dist/core.mjs +512 -0
  267. package/.output/server/node_modules/consola/dist/index.mjs +651 -0
  268. package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  269. package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  270. package/.output/server/node_modules/consola/package.json +136 -0
  271. package/.output/server/node_modules/devalue/index.js +4 -0
  272. package/.output/server/node_modules/devalue/package.json +40 -0
  273. package/.output/server/node_modules/devalue/src/base64.js +60 -0
  274. package/.output/server/node_modules/devalue/src/constants.js +12 -0
  275. package/.output/server/node_modules/devalue/src/parse.js +283 -0
  276. package/.output/server/node_modules/devalue/src/stringify.js +401 -0
  277. package/.output/server/node_modules/devalue/src/uneval.js +552 -0
  278. package/.output/server/node_modules/devalue/src/utils.js +160 -0
  279. package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  280. package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  281. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  282. package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  283. package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  284. package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  285. package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  286. package/.output/server/node_modules/entities/package.json +120 -0
  287. package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  288. package/.output/server/node_modules/estree-walker/package.json +37 -0
  289. package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
  290. package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
  291. package/.output/server/node_modules/fast-uri/index.js +406 -0
  292. package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
  293. package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
  294. package/.output/server/node_modules/fast-uri/package.json +68 -0
  295. package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
  296. package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
  297. package/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  298. package/.output/server/node_modules/perfect-debounce/package.json +41 -0
  299. package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  300. package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  301. package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  302. package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  303. package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  304. package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  305. package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  306. package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  307. package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  308. package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  309. package/.output/server/node_modules/source-map-js/package.json +71 -0
  310. package/.output/server/node_modules/source-map-js/source-map.js +8 -0
  311. package/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  312. package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  313. package/.output/server/node_modules/tailwindcss/package.json +89 -0
  314. package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  315. package/.output/server/node_modules/ufo/package.json +48 -0
  316. package/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  317. package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  318. package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  319. package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  320. package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  321. package/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
  322. package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  323. package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  324. package/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
  325. package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  326. package/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  327. package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  328. package/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
  329. package/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  330. package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  331. package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  332. package/.output/server/node_modules/unhead/package.json +105 -0
  333. package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  334. package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  335. package/.output/server/node_modules/vue/index.js +7 -0
  336. package/.output/server/node_modules/vue/index.mjs +1 -0
  337. package/.output/server/node_modules/vue/package.json +112 -0
  338. package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  339. package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
  340. package/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
  341. package/.output/server/node_modules/vue-router/dist/devtools-DCoWQoU_.js +1034 -0
  342. package/.output/server/node_modules/vue-router/dist/useApi-s_02lHjl.js +181 -0
  343. package/.output/server/node_modules/vue-router/dist/vue-router.js +1499 -0
  344. package/.output/server/node_modules/vue-router/package.json +226 -0
  345. package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  346. package/.output/server/package.json +41 -0
  347. package/README.md +114 -0
  348. package/THIRD_PARTY_NOTICES.md +28 -0
  349. package/bin/businesslens.mjs +181 -0
  350. package/package.json +68 -0
  351. package/packages/report-schema/schemas/report.schema.json +235 -0
  352. package/packages/report-schema/types/index.ts +1 -0
  353. package/packages/report-schema/types/report.ts +101 -0
  354. package/packages/report-schema/validate.mjs +111 -0
@@ -0,0 +1,1034 @@
1
+ /*!
2
+ * vue-router v5.1.0
3
+ * (c) 2026 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */
6
+ import { f as assign, g as isRouteComponent, h as isESModule, l as createRouterError, m as isArray, r as matchedRouteKey, y as isBrowser } from "./useApi-s_02lHjl.js";
7
+ import { getCurrentInstance, inject, onActivated, onDeactivated, onUnmounted, watch } from "vue";
8
+ import { setupDevtoolsPlugin } from "@vue/devtools-api";
9
+ //#region src/warning.ts
10
+ function warn$1(msg) {
11
+ const args = Array.from(arguments).slice(1);
12
+ console.warn.apply(console, ["[Vue Router warn]: " + msg].concat(args));
13
+ }
14
+ //#endregion
15
+ //#region src/encoding.ts
16
+ /**
17
+ * Encoding Rules (␣ = Space)
18
+ * - Path: ␣ " < > # ? { }
19
+ * - Query: ␣ " < > # & =
20
+ * - Hash: ␣ " < > `
21
+ *
22
+ * On top of that, the RFC3986 (https://tools.ietf.org/html/rfc3986#section-2.2)
23
+ * defines some extra characters to be encoded. Most browsers do not encode them
24
+ * in encodeURI https://github.com/whatwg/url/issues/369, so it may be safer to
25
+ * also encode `!'()*`. Leaving un-encoded only ASCII alphanumeric(`a-zA-Z0-9`)
26
+ * plus `-._~`. This extra safety should be applied to query by patching the
27
+ * string returned by encodeURIComponent encodeURI also encodes `[\]^`. `\`
28
+ * should be encoded to avoid ambiguity. Browsers (IE, FF, C) transform a `\`
29
+ * into a `/` if directly typed in. The _backtick_ (`````) should also be
30
+ * encoded everywhere because some browsers like FF encode it when directly
31
+ * written while others don't. Safari and IE don't encode ``"<>{}``` in hash.
32
+ */
33
+ const HASH_RE = /#/g;
34
+ const AMPERSAND_RE = /&/g;
35
+ const SLASH_RE = /\//g;
36
+ const EQUAL_RE = /=/g;
37
+ const IM_RE = /\?/g;
38
+ const PLUS_RE = /\+/g;
39
+ /**
40
+ * NOTE: It's not clear to me if we should encode the + symbol in queries, it
41
+ * seems to be less flexible than not doing so and I can't find out the legacy
42
+ * systems requiring this for regular requests like text/html. In the standard,
43
+ * the encoding of the plus character is only mentioned for
44
+ * application/x-www-form-urlencoded
45
+ * (https://url.spec.whatwg.org/#urlencoded-parsing) and most browsers seems lo
46
+ * leave the plus character as is in queries. To be more flexible, we allow the
47
+ * plus character on the query, but it can also be manually encoded by the user.
48
+ *
49
+ * Resources:
50
+ * - https://url.spec.whatwg.org/#urlencoded-parsing
51
+ * - https://stackoverflow.com/questions/1634271/url-encoding-the-space-character-or-20
52
+ */
53
+ const ENC_BRACKET_OPEN_RE = /%5B/g;
54
+ const ENC_BRACKET_CLOSE_RE = /%5D/g;
55
+ const ENC_CARET_RE = /%5E/g;
56
+ const ENC_BACKTICK_RE = /%60/g;
57
+ const ENC_CURLY_OPEN_RE = /%7B/g;
58
+ const ENC_PIPE_RE = /%7C/g;
59
+ const ENC_CURLY_CLOSE_RE = /%7D/g;
60
+ const ENC_SPACE_RE = /%20/g;
61
+ /**
62
+ * Encode characters that need to be encoded on the path, search and hash
63
+ * sections of the URL.
64
+ *
65
+ * @internal
66
+ * @param text - string to encode
67
+ * @returns encoded string
68
+ */
69
+ function commonEncode(text) {
70
+ return text == null ? "" : encodeURI("" + text).replace(ENC_PIPE_RE, "|").replace(ENC_BRACKET_OPEN_RE, "[").replace(ENC_BRACKET_CLOSE_RE, "]");
71
+ }
72
+ /**
73
+ * Encode characters that need to be encoded on the hash section of the URL.
74
+ *
75
+ * @param text - string to encode
76
+ * @returns encoded string
77
+ */
78
+ function encodeHash(text) {
79
+ return commonEncode(text).replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
80
+ }
81
+ /**
82
+ * Encode characters that need to be encoded query values on the query
83
+ * section of the URL.
84
+ *
85
+ * @param text - string to encode
86
+ * @returns encoded string
87
+ */
88
+ function encodeQueryValue(text) {
89
+ return commonEncode(text).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CURLY_OPEN_RE, "{").replace(ENC_CURLY_CLOSE_RE, "}").replace(ENC_CARET_RE, "^");
90
+ }
91
+ /**
92
+ * Like `encodeQueryValue` but also encodes the `=` character.
93
+ *
94
+ * @param text - string to encode
95
+ */
96
+ function encodeQueryKey(text) {
97
+ return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
98
+ }
99
+ /**
100
+ * Encode characters that need to be encoded on the path section of the URL.
101
+ *
102
+ * @param text - string to encode
103
+ * @returns encoded string
104
+ */
105
+ function encodePath(text) {
106
+ return commonEncode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F");
107
+ }
108
+ /**
109
+ * Encode characters that need to be encoded on the path section of the URL as a
110
+ * param. This function encodes everything {@link encodePath} does plus the
111
+ * slash (`/`) character. If `text` is `null` or `undefined`, returns an empty
112
+ * string instead.
113
+ *
114
+ * @param text - string to encode
115
+ * @returns encoded string
116
+ */
117
+ function encodeParam(text) {
118
+ return encodePath(text).replace(SLASH_RE, "%2F");
119
+ }
120
+ function decode(text) {
121
+ if (text == null) return null;
122
+ try {
123
+ return decodeURIComponent("" + text);
124
+ } catch {
125
+ process.env.NODE_ENV !== "production" && warn$1(`Error decoding "${text}". Using original value`);
126
+ }
127
+ return "" + text;
128
+ }
129
+ //#endregion
130
+ //#region src/location.ts
131
+ const TRAILING_SLASH_RE = /\/$/;
132
+ const removeTrailingSlash = (path) => path.replace(TRAILING_SLASH_RE, "");
133
+ /**
134
+ * Transforms a URI into a normalized history location
135
+ *
136
+ * @param parseQuery
137
+ * @param location - URI to normalize
138
+ * @param currentLocation - current absolute location. Allows resolving relative
139
+ * paths. Must start with `/`. Defaults to `/`
140
+ * @returns a normalized history location
141
+ */
142
+ function parseURL(parseQuery, location, currentLocation = "/") {
143
+ let path, query = {}, searchString = "", hash = "";
144
+ const hashPos = location.indexOf("#");
145
+ let searchPos = location.indexOf("?");
146
+ searchPos = hashPos >= 0 && searchPos > hashPos ? -1 : searchPos;
147
+ if (searchPos >= 0) {
148
+ path = location.slice(0, searchPos);
149
+ searchString = location.slice(searchPos, hashPos > 0 ? hashPos : location.length);
150
+ query = parseQuery(searchString.slice(1));
151
+ }
152
+ if (hashPos >= 0) {
153
+ path = path || location.slice(0, hashPos);
154
+ hash = location.slice(hashPos, location.length);
155
+ }
156
+ path = resolveRelativePath(path != null ? path : location, currentLocation);
157
+ return {
158
+ fullPath: path + searchString + hash,
159
+ path,
160
+ query,
161
+ hash: decode(hash)
162
+ };
163
+ }
164
+ function NEW_stringifyURL(stringifyQuery, path, query, hash = "") {
165
+ const searchText = stringifyQuery(query);
166
+ return path + (searchText && "?") + searchText + encodeHash(hash);
167
+ }
168
+ /**
169
+ * Stringifies a URL object
170
+ *
171
+ * @param stringifyQuery
172
+ * @param location
173
+ */
174
+ function stringifyURL(stringifyQuery, location) {
175
+ const query = location.query ? stringifyQuery(location.query) : "";
176
+ return location.path + (query && "?") + query + (location.hash || "");
177
+ }
178
+ /**
179
+ * Strips off the base from the beginning of a location.pathname in a non-case-sensitive way.
180
+ *
181
+ * @param pathname - location.pathname
182
+ * @param base - base to strip off
183
+ */
184
+ function stripBase(pathname, base) {
185
+ if (!base || !pathname.toLowerCase().startsWith(base.toLowerCase())) return pathname;
186
+ return pathname.slice(base.length) || "/";
187
+ }
188
+ /**
189
+ * Checks if two RouteLocation are equal. This means that both locations are
190
+ * pointing towards the same {@link RouteRecord} and that all `params`, `query`
191
+ * parameters and `hash` are the same
192
+ *
193
+ * @param stringifyQuery - A function that takes a query object of type LocationQueryRaw and returns a string representation of it.
194
+ * @param a - first {@link RouteLocation}
195
+ * @param b - second {@link RouteLocation}
196
+ */
197
+ function isSameRouteLocation(stringifyQuery, a, b) {
198
+ const aLastIndex = a.matched.length - 1;
199
+ const bLastIndex = b.matched.length - 1;
200
+ return aLastIndex > -1 && aLastIndex === bLastIndex && isSameRouteRecord(a.matched[aLastIndex], b.matched[bLastIndex]) && isSameRouteLocationParams(a.params, b.params) && stringifyQuery(a.query) === stringifyQuery(b.query) && a.hash === b.hash;
201
+ }
202
+ /**
203
+ * Check if two `RouteRecords` are equal. Takes into account aliases: they are
204
+ * considered equal to the `RouteRecord` they are aliasing.
205
+ *
206
+ * @param a - first {@link RouteRecord}
207
+ * @param b - second {@link RouteRecord}
208
+ */
209
+ function isSameRouteRecord(a, b) {
210
+ return (a.aliasOf || a) === (b.aliasOf || b);
211
+ }
212
+ function isSameRouteLocationParams(a, b) {
213
+ if (Object.keys(a).length !== Object.keys(b).length) return false;
214
+ for (var key in a) if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;
215
+ return true;
216
+ }
217
+ function isSameRouteLocationParamsValue(a, b) {
218
+ return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : (a && a.valueOf()) === (b && b.valueOf());
219
+ }
220
+ /**
221
+ * Check if two arrays are the same or if an array with one single entry is the
222
+ * same as another primitive value. Used to check query and parameters
223
+ *
224
+ * @param a - array of values
225
+ * @param b - array of values or a single value
226
+ */
227
+ function isEquivalentArray(a, b) {
228
+ return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
229
+ }
230
+ /**
231
+ * Resolves a relative path that starts with `.`.
232
+ *
233
+ * @param to - path location we are resolving
234
+ * @param from - currentLocation.path, should start with `/`
235
+ */
236
+ function resolveRelativePath(to, from) {
237
+ if (to.startsWith("/")) return to;
238
+ if (process.env.NODE_ENV !== "production" && !from.startsWith("/")) {
239
+ warn$1(`Cannot resolve a relative location without an absolute path. Trying to resolve "${to}" from "${from}". It should look like "/${from}".`);
240
+ return to;
241
+ }
242
+ if (!to) return from;
243
+ const fromSegments = from.split("/");
244
+ const toSegments = to.split("/");
245
+ const lastToSegment = toSegments[toSegments.length - 1];
246
+ if (lastToSegment === ".." || lastToSegment === ".") toSegments.push("");
247
+ let position = fromSegments.length - 1;
248
+ let toPosition;
249
+ let segment;
250
+ for (toPosition = 0; toPosition < toSegments.length; toPosition++) {
251
+ segment = toSegments[toPosition];
252
+ if (segment === ".") continue;
253
+ if (segment === "..") {
254
+ if (position > 1) position--;
255
+ } else break;
256
+ }
257
+ return fromSegments.slice(0, position).join("/") + "/" + toSegments.slice(toPosition).join("/");
258
+ }
259
+ /**
260
+ * Initial route location where the router is. Can be used in navigation guards
261
+ * to differentiate the initial navigation.
262
+ *
263
+ * @example
264
+ * ```js
265
+ * import { START_LOCATION } from 'vue-router'
266
+ *
267
+ * router.beforeEach((to, from) => {
268
+ * if (from === START_LOCATION) {
269
+ * // initial navigation
270
+ * }
271
+ * })
272
+ * ```
273
+ */
274
+ const START_LOCATION_NORMALIZED = {
275
+ path: "/",
276
+ name: void 0,
277
+ params: {},
278
+ query: {},
279
+ hash: "",
280
+ fullPath: "/",
281
+ matched: [],
282
+ meta: {},
283
+ redirectedFrom: void 0
284
+ };
285
+ //#endregion
286
+ //#region src/history/common.ts
287
+ /**
288
+ * Normalizes a base by removing any trailing slash and reading the base tag if
289
+ * present.
290
+ *
291
+ * @param base - base to normalize
292
+ */
293
+ function normalizeBase(base) {
294
+ if (!base) if (isBrowser) {
295
+ const baseEl = document.querySelector("base");
296
+ base = baseEl && baseEl.getAttribute("href") || "/";
297
+ base = base.replace(/^\w+:\/\/[^/]+/, "");
298
+ } else base = "/";
299
+ if (base[0] !== "/" && base[0] !== "#") base = "/" + base;
300
+ return removeTrailingSlash(base);
301
+ }
302
+ const BEFORE_HASH_RE = /^[^#]+#/;
303
+ function createHref(base, location) {
304
+ return base.replace(BEFORE_HASH_RE, "#") + location;
305
+ }
306
+ //#endregion
307
+ //#region src/scrollBehavior.ts
308
+ function getElementPosition(el, offset) {
309
+ const docRect = document.documentElement.getBoundingClientRect();
310
+ const elRect = el.getBoundingClientRect();
311
+ return {
312
+ behavior: offset.behavior,
313
+ left: elRect.left - docRect.left - (offset.left || 0),
314
+ top: elRect.top - docRect.top - (offset.top || 0)
315
+ };
316
+ }
317
+ const computeScrollPosition = () => ({
318
+ left: window.scrollX,
319
+ top: window.scrollY
320
+ });
321
+ function scrollToPosition(position) {
322
+ let scrollToOptions;
323
+ if ("el" in position) {
324
+ const positionEl = position.el;
325
+ const isIdSelector = typeof positionEl === "string" && positionEl.startsWith("#");
326
+ /**
327
+ * `id`s can accept pretty much any characters, including CSS combinators
328
+ * like `>` or `~`. It's still possible to retrieve elements using
329
+ * `document.getElementById('~')` but it needs to be escaped when using
330
+ * `document.querySelector('#\\~')` for it to be valid. The only
331
+ * requirements for `id`s are them to be unique on the page and to not be
332
+ * empty (`id=""`). Because of that, when passing an id selector, it should
333
+ * be properly escaped for it to work with `querySelector`. We could check
334
+ * for the id selector to be simple (no CSS combinators `+ >~`) but that
335
+ * would make things inconsistent since they are valid characters for an
336
+ * `id` but would need to be escaped when using `querySelector`, breaking
337
+ * their usage and ending up in no selector returned. Selectors need to be
338
+ * escaped:
339
+ *
340
+ * - `#1-thing` becomes `#\31 -thing`
341
+ * - `#with~symbols` becomes `#with\\~symbols`
342
+ *
343
+ * - More information about the topic can be found at
344
+ * https://mathiasbynens.be/notes/html5-id-class.
345
+ * - Practical example: https://mathiasbynens.be/demo/html5-id
346
+ */
347
+ if (process.env.NODE_ENV !== "production" && typeof position.el === "string") {
348
+ if (!isIdSelector || !document.getElementById(position.el.slice(1))) try {
349
+ const foundEl = document.querySelector(position.el);
350
+ if (isIdSelector && foundEl) {
351
+ warn$1(`The selector "${position.el}" should be passed as "el: document.querySelector('${position.el}')" because it starts with "#".`);
352
+ return;
353
+ }
354
+ } catch {
355
+ warn$1(`The selector "${position.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
356
+ return;
357
+ }
358
+ }
359
+ const el = typeof positionEl === "string" ? isIdSelector ? document.getElementById(positionEl.slice(1)) : document.querySelector(positionEl) : positionEl;
360
+ if (!el) {
361
+ process.env.NODE_ENV !== "production" && warn$1(`Couldn't find element using selector "${position.el}" returned by scrollBehavior.`);
362
+ return;
363
+ }
364
+ scrollToOptions = getElementPosition(el, position);
365
+ } else scrollToOptions = position;
366
+ if ("scrollBehavior" in document.documentElement.style) window.scrollTo(scrollToOptions);
367
+ else window.scrollTo(scrollToOptions.left != null ? scrollToOptions.left : window.scrollX, scrollToOptions.top != null ? scrollToOptions.top : window.scrollY);
368
+ }
369
+ function getScrollKey(path, delta) {
370
+ return (history.state ? history.state.position - delta : -1) + path;
371
+ }
372
+ const scrollPositions = /* @__PURE__ */ new Map();
373
+ function saveScrollPosition(key, scrollPosition) {
374
+ scrollPositions.set(key, scrollPosition);
375
+ }
376
+ function getSavedScrollPosition(key) {
377
+ const scroll = scrollPositions.get(key);
378
+ scrollPositions.delete(key);
379
+ return scroll;
380
+ }
381
+ /**
382
+ * ScrollBehavior instance used by the router to compute and restore the scroll
383
+ * position when navigating.
384
+ */
385
+ //#endregion
386
+ //#region src/types/typeGuards.ts
387
+ function isRouteLocation(route) {
388
+ return typeof route === "string" || route && typeof route === "object";
389
+ }
390
+ function isRouteName(name) {
391
+ return typeof name === "string" || typeof name === "symbol";
392
+ }
393
+ //#endregion
394
+ //#region src/query.ts
395
+ /**
396
+ * Transforms a queryString into a {@link LocationQuery} object. Accept both, a
397
+ * version with the leading `?` and without Should work as URLSearchParams
398
+
399
+ * @internal
400
+ *
401
+ * @param search - search string to parse
402
+ * @returns a query object
403
+ */
404
+ function parseQuery(search) {
405
+ const query = {};
406
+ if (search === "" || search === "?") return query;
407
+ const searchParams = (search[0] === "?" ? search.slice(1) : search).split("&");
408
+ for (let i = 0; i < searchParams.length; ++i) {
409
+ const searchParam = searchParams[i].replace(PLUS_RE, " ");
410
+ const eqPos = searchParam.indexOf("=");
411
+ const key = decode(eqPos < 0 ? searchParam : searchParam.slice(0, eqPos));
412
+ const value = eqPos < 0 ? null : decode(searchParam.slice(eqPos + 1));
413
+ if (key in query) {
414
+ let currentValue = query[key];
415
+ if (!isArray(currentValue)) currentValue = query[key] = [currentValue];
416
+ currentValue.push(value);
417
+ } else query[key] = value;
418
+ }
419
+ return query;
420
+ }
421
+ /**
422
+ * Stringifies a {@link LocationQueryRaw} object. Like `URLSearchParams`, it
423
+ * doesn't prepend a `?`
424
+ *
425
+ * @internal
426
+ *
427
+ * @param query - query object to stringify
428
+ * @returns string version of the query without the leading `?`
429
+ */
430
+ function stringifyQuery(query) {
431
+ let search = "";
432
+ for (let key in query) {
433
+ const value = query[key];
434
+ key = encodeQueryKey(key);
435
+ if (value == null) {
436
+ if (value !== void 0) search += (search.length ? "&" : "") + key;
437
+ continue;
438
+ }
439
+ (isArray(value) ? value.map((v) => v && encodeQueryValue(v)) : [value && encodeQueryValue(value)]).forEach((value) => {
440
+ if (value !== void 0) {
441
+ search += (search.length ? "&" : "") + key;
442
+ if (value != null) search += "=" + value;
443
+ }
444
+ });
445
+ }
446
+ return search;
447
+ }
448
+ /**
449
+ * Transforms a {@link LocationQueryRaw} into a {@link LocationQuery} by casting
450
+ * numbers into strings, removing keys with an undefined value and replacing
451
+ * undefined with null in arrays
452
+ *
453
+ * @param query - query object to normalize
454
+ * @returns a normalized query object
455
+ */
456
+ function normalizeQuery(query) {
457
+ const normalizedQuery = {};
458
+ for (const key in query) {
459
+ const value = query[key];
460
+ if (value !== void 0) normalizedQuery[key] = isArray(value) ? value.map((v) => v == null ? null : "" + v) : value == null ? value : "" + value;
461
+ }
462
+ return normalizedQuery;
463
+ }
464
+ //#endregion
465
+ //#region src/utils/callbacks.ts
466
+ /**
467
+ * Create a list of callbacks that can be reset. Used to create before and after navigation guards list
468
+ */
469
+ function useCallbacks() {
470
+ let handlers = [];
471
+ function add(handler) {
472
+ handlers.push(handler);
473
+ return () => {
474
+ const i = handlers.indexOf(handler);
475
+ if (i > -1) handlers.splice(i, 1);
476
+ };
477
+ }
478
+ function reset() {
479
+ handlers = [];
480
+ }
481
+ return {
482
+ add,
483
+ list: () => handlers.slice(),
484
+ reset
485
+ };
486
+ }
487
+ //#endregion
488
+ //#region src/navigationGuards.ts
489
+ function registerGuard(activeRecordRef, name, guard) {
490
+ const record = activeRecordRef.value;
491
+ if (!record) {
492
+ if (process.env.NODE_ENV !== "production") warn$1(`No active route record was found when calling \`${name === "updateGuards" ? "onBeforeRouteUpdate" : "onBeforeRouteLeave"}()\`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?`);
493
+ return;
494
+ }
495
+ let currentRecord = record;
496
+ const removeFromList = () => {
497
+ currentRecord[name].delete(guard);
498
+ };
499
+ onUnmounted(removeFromList);
500
+ onDeactivated(removeFromList);
501
+ onActivated(() => {
502
+ const newRecord = activeRecordRef.value;
503
+ if (process.env.NODE_ENV !== "production" && !newRecord) warn$1("No active route record was found when reactivating component with navigation guard. This is likely a bug in vue-router. Please report it.");
504
+ if (newRecord) currentRecord = newRecord;
505
+ currentRecord[name].add(guard);
506
+ });
507
+ currentRecord[name].add(guard);
508
+ }
509
+ /**
510
+ * Add a navigation guard that triggers whenever the component for the current
511
+ * location is about to be left. Similar to {@link beforeRouteLeave} but can be
512
+ * used in any component. The guard is removed when the component is unmounted.
513
+ *
514
+ * @param leaveGuard - {@link NavigationGuard}
515
+ */
516
+ function onBeforeRouteLeave(leaveGuard) {
517
+ if (process.env.NODE_ENV !== "production" && !getCurrentInstance()) {
518
+ warn$1("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");
519
+ return;
520
+ }
521
+ registerGuard(inject(matchedRouteKey, {}), "leaveGuards", leaveGuard);
522
+ }
523
+ /**
524
+ * Add a navigation guard that triggers whenever the current location is about
525
+ * to be updated. Similar to {@link beforeRouteUpdate} but can be used in any
526
+ * component. The guard is removed when the component is unmounted.
527
+ *
528
+ * @param updateGuard - {@link NavigationGuard}
529
+ */
530
+ function onBeforeRouteUpdate(updateGuard) {
531
+ if (process.env.NODE_ENV !== "production" && !getCurrentInstance()) {
532
+ warn$1("getCurrentInstance() returned null. onBeforeRouteUpdate() must be called at the top of a setup function");
533
+ return;
534
+ }
535
+ registerGuard(inject(matchedRouteKey, {}), "updateGuards", updateGuard);
536
+ }
537
+ function guardToPromiseFn(guard, to, from, record, name, runWithContext = (fn) => fn()) {
538
+ const enterCallbackArray = record && (record.enterCallbacks[name] = record.enterCallbacks[name] || []);
539
+ return () => new Promise((resolve, reject) => {
540
+ const next = (valid) => {
541
+ if (valid === false) reject(createRouterError(4, {
542
+ from,
543
+ to
544
+ }));
545
+ else if (valid instanceof Error) reject(valid);
546
+ else if (isRouteLocation(valid)) reject(createRouterError(2, {
547
+ from: to,
548
+ to: valid
549
+ }));
550
+ else {
551
+ if (enterCallbackArray && record.enterCallbacks[name] === enterCallbackArray && typeof valid === "function") enterCallbackArray.push(valid);
552
+ resolve();
553
+ }
554
+ };
555
+ const guardReturn = runWithContext(() => guard.call(record && record.instances[name], to, from, process.env.NODE_ENV !== "production" ? withDeprecationWarning(canOnlyBeCalledOnce(next, to, from)) : next));
556
+ let guardCall = Promise.resolve(guardReturn);
557
+ if (guard.length < 3) guardCall = guardCall.then(next);
558
+ if (process.env.NODE_ENV !== "production" && guard.length > 2) {
559
+ const message = `The "next" callback was never called inside of ${guard.name ? "\"" + guard.name + "\"" : ""}:\n${guard.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
560
+ if (typeof guardReturn === "object" && "then" in guardReturn) guardCall = guardCall.then((resolvedValue) => {
561
+ if (!next._called) {
562
+ warn$1(message);
563
+ return Promise.reject(/* @__PURE__ */ new Error("Invalid navigation guard"));
564
+ }
565
+ return resolvedValue;
566
+ });
567
+ else if (guardReturn !== void 0) {
568
+ if (!next._called) {
569
+ warn$1(message);
570
+ reject(/* @__PURE__ */ new Error("Invalid navigation guard"));
571
+ return;
572
+ }
573
+ }
574
+ }
575
+ guardCall.catch((err) => reject(err));
576
+ });
577
+ }
578
+ /**
579
+ * Wraps the next callback to warn when it is used. Dev-only: when __DEV__ is
580
+ * false (production builds), this branch is dead code and is stripped from the
581
+ * bundle.
582
+ *
583
+ * @internal
584
+ */
585
+ function withDeprecationWarning(next) {
586
+ let warned = false;
587
+ return function() {
588
+ if (!warned) {
589
+ warned = true;
590
+ warn$1("The `next()` callback in navigation guards is deprecated. Return the value instead of calling `next(value)`.");
591
+ }
592
+ return next.apply(this, arguments);
593
+ };
594
+ }
595
+ function canOnlyBeCalledOnce(next, to, from) {
596
+ let called = 0;
597
+ return function() {
598
+ if (called++ === 1) warn$1(`The "next" callback was called more than once in one navigation guard when going from "${from.fullPath}" to "${to.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`);
599
+ next._called = true;
600
+ if (called === 1) next.apply(null, arguments);
601
+ };
602
+ }
603
+ function extractComponentsGuards(matched, guardType, to, from, runWithContext = (fn) => fn()) {
604
+ const guards = [];
605
+ for (const record of matched) {
606
+ if (process.env.NODE_ENV !== "production" && !record.components && record.children && !record.children.length) warn$1(`Record with path "${record.path}" is either missing a "component(s)" or "children" property.`);
607
+ for (const name in record.components) {
608
+ let rawComponent = record.components[name];
609
+ if (process.env.NODE_ENV !== "production") {
610
+ if (!rawComponent || typeof rawComponent !== "object" && typeof rawComponent !== "function") {
611
+ warn$1(`Component "${name}" in record with path "${record.path}" is not a valid component. Received "${String(rawComponent)}".`);
612
+ throw new Error("Invalid route component");
613
+ } else if ("then" in rawComponent) {
614
+ warn$1(`Component "${name}" in record with path "${record.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
615
+ const promise = rawComponent;
616
+ rawComponent = () => promise;
617
+ } else if (rawComponent.__asyncLoader && !rawComponent.__warnedDefineAsync) {
618
+ rawComponent.__warnedDefineAsync = true;
619
+ warn$1(`Component "${name}" in record with path "${record.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`);
620
+ }
621
+ }
622
+ if (guardType !== "beforeRouteEnter" && !record.instances[name]) continue;
623
+ if (isRouteComponent(rawComponent)) {
624
+ const guard = (rawComponent.__vccOpts || rawComponent)[guardType];
625
+ guard && guards.push(guardToPromiseFn(guard, to, from, record, name, runWithContext));
626
+ } else {
627
+ let componentPromise = rawComponent();
628
+ if (process.env.NODE_ENV !== "production" && !("catch" in componentPromise)) {
629
+ warn$1(`Component "${name}" in record with path "${record.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`);
630
+ componentPromise = Promise.resolve(componentPromise);
631
+ }
632
+ guards.push(() => componentPromise.then((resolved) => {
633
+ if (!resolved) throw new Error(`Couldn't resolve component "${name}" at "${record.path}"`);
634
+ const resolvedComponent = isESModule(resolved) ? resolved.default : resolved;
635
+ record.mods[name] = resolved;
636
+ record.components[name] = resolvedComponent;
637
+ const guard = (resolvedComponent.__vccOpts || resolvedComponent)[guardType];
638
+ return guard && guardToPromiseFn(guard, to, from, record, name, runWithContext)();
639
+ }));
640
+ }
641
+ }
642
+ }
643
+ return guards;
644
+ }
645
+ /**
646
+ * Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.
647
+ *
648
+ * @param route - resolved route to load
649
+ */
650
+ function loadRouteLocation(route) {
651
+ return route.matched.every((record) => record.redirect) ? Promise.reject(/* @__PURE__ */ new Error("Cannot load a route that redirects.")) : Promise.all(route.matched.map((record) => record.components && Promise.all(Object.keys(record.components).reduce((promises, name) => {
652
+ const rawComponent = record.components[name];
653
+ if (typeof rawComponent === "function" && !("displayName" in rawComponent)) promises.push(rawComponent().then((resolved) => {
654
+ if (!resolved) return Promise.reject(/* @__PURE__ */ new Error(`Couldn't resolve component "${name}" at "${record.path}". Ensure you passed a function that returns a promise.`));
655
+ const resolvedComponent = isESModule(resolved) ? resolved.default : resolved;
656
+ record.mods[name] = resolved;
657
+ record.components[name] = resolvedComponent;
658
+ }));
659
+ return promises;
660
+ }, [])))).then(() => route);
661
+ }
662
+ /**
663
+ * Split the leaving, updating, and entering records.
664
+ * @internal
665
+ *
666
+ * @param to - Location we are navigating to
667
+ * @param from - Location we are navigating from
668
+ */
669
+ function extractChangingRecords(to, from) {
670
+ const leavingRecords = [];
671
+ const updatingRecords = [];
672
+ const enteringRecords = [];
673
+ const len = Math.max(from.matched.length, to.matched.length);
674
+ for (let i = 0; i < len; i++) {
675
+ const recordFrom = from.matched[i];
676
+ if (recordFrom) if (to.matched.find((record) => isSameRouteRecord(record, recordFrom))) updatingRecords.push(recordFrom);
677
+ else leavingRecords.push(recordFrom);
678
+ const recordTo = to.matched[i];
679
+ if (recordTo) {
680
+ if (!from.matched.find((record) => isSameRouteRecord(record, recordTo))) enteringRecords.push(recordTo);
681
+ }
682
+ }
683
+ return [
684
+ leavingRecords,
685
+ updatingRecords,
686
+ enteringRecords
687
+ ];
688
+ }
689
+ //#endregion
690
+ //#region src/devtools.ts
691
+ /**
692
+ * Copies a route location and removes any problematic properties that cannot be shown in devtools (e.g. Vue instances).
693
+ *
694
+ * @param routeLocation - routeLocation to format
695
+ * @param tooltip - optional tooltip
696
+ * @returns a copy of the routeLocation
697
+ */
698
+ function formatRouteLocation(routeLocation, tooltip) {
699
+ const copy = assign({}, routeLocation, { matched: routeLocation.matched.map((matched) => omit(matched, [
700
+ "instances",
701
+ "children",
702
+ "aliasOf"
703
+ ])) });
704
+ return { _custom: {
705
+ type: null,
706
+ readOnly: true,
707
+ display: routeLocation.fullPath,
708
+ tooltip,
709
+ value: copy
710
+ } };
711
+ }
712
+ function formatDisplay(display) {
713
+ return { _custom: { display } };
714
+ }
715
+ let routerId = 0;
716
+ function addDevtools(app, router, matcher) {
717
+ if (router.__hasDevtools) return;
718
+ router.__hasDevtools = true;
719
+ const id = routerId++;
720
+ setupDevtoolsPlugin({
721
+ id: "org.vuejs.router" + (id ? "." + id : ""),
722
+ label: "Vue Router",
723
+ packageName: "vue-router",
724
+ homepage: "https://router.vuejs.org",
725
+ logo: "https://router.vuejs.org/logo.png",
726
+ componentStateTypes: ["Routing"],
727
+ app
728
+ }, (api) => {
729
+ api.on.inspectComponent((payload) => {
730
+ if (payload.instanceData) payload.instanceData.state.push({
731
+ type: "Routing",
732
+ key: "$route",
733
+ editable: false,
734
+ value: formatRouteLocation(router.currentRoute.value, "Current Route")
735
+ });
736
+ });
737
+ api.on.visitComponentTree(({ treeNode: node, componentInstance }) => {
738
+ if (componentInstance.__vrv_devtools) {
739
+ const info = componentInstance.__vrv_devtools;
740
+ node.tags.push({
741
+ label: (info.name ? `${info.name.toString()}: ` : "") + info.path,
742
+ textColor: 0,
743
+ tooltip: "This component is rendered by &lt;router-view&gt;",
744
+ backgroundColor: PINK_500
745
+ });
746
+ }
747
+ if (isArray(componentInstance.__vrl_devtools)) {
748
+ componentInstance.__devtoolsApi = api;
749
+ componentInstance.__vrl_devtools.forEach((devtoolsData) => {
750
+ let label = devtoolsData.route.path;
751
+ let backgroundColor = ORANGE_400;
752
+ let tooltip = "";
753
+ let textColor = 0;
754
+ if (devtoolsData.error) {
755
+ label = devtoolsData.error;
756
+ backgroundColor = RED_100;
757
+ textColor = RED_700;
758
+ } else if (devtoolsData.isExactActive) {
759
+ backgroundColor = LIME_500;
760
+ tooltip = "This is exactly active";
761
+ } else if (devtoolsData.isActive) {
762
+ backgroundColor = BLUE_600;
763
+ tooltip = "This link is active";
764
+ }
765
+ node.tags.push({
766
+ label,
767
+ textColor,
768
+ tooltip,
769
+ backgroundColor
770
+ });
771
+ });
772
+ }
773
+ });
774
+ watch(router.currentRoute, () => {
775
+ refreshRoutesView();
776
+ api.notifyComponentUpdate();
777
+ api.sendInspectorTree(routerInspectorId);
778
+ api.sendInspectorState(routerInspectorId);
779
+ });
780
+ const navigationsLayerId = "router:navigations:" + id;
781
+ api.addTimelineLayer({
782
+ id: navigationsLayerId,
783
+ label: `Router${id ? " " + id : ""} Navigations`,
784
+ color: 4237508
785
+ });
786
+ router.onError((error, to) => {
787
+ api.addTimelineEvent({
788
+ layerId: navigationsLayerId,
789
+ event: {
790
+ title: "Error during Navigation",
791
+ subtitle: to.fullPath,
792
+ logType: "error",
793
+ time: api.now(),
794
+ data: { error },
795
+ groupId: to.meta.__navigationId
796
+ }
797
+ });
798
+ });
799
+ let navigationId = 0;
800
+ router.beforeEach((to, from) => {
801
+ const data = {
802
+ guard: formatDisplay("beforeEach"),
803
+ from: formatRouteLocation(from, "Current Location during this navigation"),
804
+ to: formatRouteLocation(to, "Target location")
805
+ };
806
+ Object.defineProperty(to.meta, "__navigationId", { value: navigationId++ });
807
+ api.addTimelineEvent({
808
+ layerId: navigationsLayerId,
809
+ event: {
810
+ time: api.now(),
811
+ title: "Start of navigation",
812
+ subtitle: to.fullPath,
813
+ data,
814
+ groupId: to.meta.__navigationId
815
+ }
816
+ });
817
+ });
818
+ router.afterEach((to, from, failure) => {
819
+ const data = { guard: formatDisplay("afterEach") };
820
+ if (failure) {
821
+ data.failure = { _custom: {
822
+ type: Error,
823
+ readOnly: true,
824
+ display: failure ? failure.message : "",
825
+ tooltip: "Navigation Failure",
826
+ value: failure
827
+ } };
828
+ data.status = formatDisplay("❌");
829
+ } else data.status = formatDisplay("✅");
830
+ data.from = formatRouteLocation(from, "Current Location during this navigation");
831
+ data.to = formatRouteLocation(to, "Target location");
832
+ api.addTimelineEvent({
833
+ layerId: navigationsLayerId,
834
+ event: {
835
+ title: "End of navigation",
836
+ subtitle: to.fullPath,
837
+ time: api.now(),
838
+ data,
839
+ logType: failure ? "warning" : "default",
840
+ groupId: to.meta.__navigationId
841
+ }
842
+ });
843
+ });
844
+ /**
845
+ * Inspector of Existing routes
846
+ */
847
+ const routerInspectorId = "router-inspector:" + id;
848
+ api.addInspector({
849
+ id: routerInspectorId,
850
+ label: "Routes" + (id ? " " + id : ""),
851
+ icon: "book",
852
+ treeFilterPlaceholder: "Search routes"
853
+ });
854
+ function refreshRoutesView() {
855
+ if (!activeRoutesPayload) return;
856
+ const payload = activeRoutesPayload;
857
+ let routes = matcher.getRoutes().filter((route) => !route.parent || !route.parent.record.components);
858
+ routes.forEach(resetMatchStateOnRouteRecord);
859
+ if (payload.filter) routes = routes.filter((route) => isRouteMatching(route, payload.filter.toLowerCase()));
860
+ routes.forEach((route) => markRouteRecordActive(route, router.currentRoute.value));
861
+ payload.rootNodes = routes.map(formatRouteRecordForInspector);
862
+ }
863
+ let activeRoutesPayload;
864
+ api.on.getInspectorTree((payload) => {
865
+ activeRoutesPayload = payload;
866
+ if (payload.app === app && payload.inspectorId === routerInspectorId) refreshRoutesView();
867
+ });
868
+ /**
869
+ * Display information about the currently selected route record
870
+ */
871
+ api.on.getInspectorState((payload) => {
872
+ if (payload.app === app && payload.inspectorId === routerInspectorId) {
873
+ const route = matcher.getRoutes().find((route) => route.record.__vd_id === payload.nodeId);
874
+ if (route) payload.state = { options: formatRouteRecordMatcherForStateInspector(route) };
875
+ }
876
+ });
877
+ api.sendInspectorTree(routerInspectorId);
878
+ api.sendInspectorState(routerInspectorId);
879
+ });
880
+ }
881
+ function modifierForKey(key) {
882
+ if (key.optional) return key.repeatable ? "*" : "?";
883
+ else return key.repeatable ? "+" : "";
884
+ }
885
+ function formatRouteRecordMatcherForStateInspector(route) {
886
+ const { record } = route;
887
+ const fields = [{
888
+ editable: false,
889
+ key: "path",
890
+ value: record.path
891
+ }];
892
+ if (record.name != null) fields.push({
893
+ editable: false,
894
+ key: "name",
895
+ value: record.name
896
+ });
897
+ fields.push({
898
+ editable: false,
899
+ key: "regexp",
900
+ value: route.re
901
+ });
902
+ if (route.keys.length) fields.push({
903
+ editable: false,
904
+ key: "keys",
905
+ value: { _custom: {
906
+ type: null,
907
+ readOnly: true,
908
+ display: route.keys.map((key) => `${key.name}${modifierForKey(key)}`).join(" "),
909
+ tooltip: "Param keys",
910
+ value: route.keys
911
+ } }
912
+ });
913
+ if (record.redirect != null) fields.push({
914
+ editable: false,
915
+ key: "redirect",
916
+ value: record.redirect
917
+ });
918
+ if (route.alias.length) fields.push({
919
+ editable: false,
920
+ key: "aliases",
921
+ value: route.alias.map((alias) => alias.record.path)
922
+ });
923
+ if (Object.keys(route.record.meta).length) fields.push({
924
+ editable: false,
925
+ key: "meta",
926
+ value: route.record.meta
927
+ });
928
+ fields.push({
929
+ key: "score",
930
+ editable: false,
931
+ value: { _custom: {
932
+ type: null,
933
+ readOnly: true,
934
+ display: route.score.map((score) => score.join(", ")).join(" | "),
935
+ tooltip: "Score used to sort routes",
936
+ value: route.score
937
+ } }
938
+ });
939
+ return fields;
940
+ }
941
+ /**
942
+ * Extracted from tailwind palette
943
+ */
944
+ const PINK_500 = 15485081;
945
+ const BLUE_600 = 2450411;
946
+ const LIME_500 = 8702998;
947
+ const CYAN_400 = 2282478;
948
+ const ORANGE_400 = 16486972;
949
+ const DARK = 6710886;
950
+ const RED_100 = 16704226;
951
+ const RED_700 = 12131356;
952
+ function formatRouteRecordForInspector(route) {
953
+ const tags = [];
954
+ const { record } = route;
955
+ if (record.name != null) tags.push({
956
+ label: String(record.name),
957
+ textColor: 0,
958
+ backgroundColor: CYAN_400
959
+ });
960
+ if (record.aliasOf) tags.push({
961
+ label: "alias",
962
+ textColor: 0,
963
+ backgroundColor: ORANGE_400
964
+ });
965
+ if (route.__vd_match) tags.push({
966
+ label: "matches",
967
+ textColor: 0,
968
+ backgroundColor: PINK_500
969
+ });
970
+ if (route.__vd_exactActive) tags.push({
971
+ label: "exact",
972
+ textColor: 0,
973
+ backgroundColor: LIME_500
974
+ });
975
+ if (route.__vd_active) tags.push({
976
+ label: "active",
977
+ textColor: 0,
978
+ backgroundColor: BLUE_600
979
+ });
980
+ if (record.redirect) tags.push({
981
+ label: typeof record.redirect === "string" ? `redirect: ${record.redirect}` : "redirects",
982
+ textColor: 16777215,
983
+ backgroundColor: DARK
984
+ });
985
+ let id = record.__vd_id;
986
+ if (id == null) {
987
+ id = String(routeRecordId++);
988
+ record.__vd_id = id;
989
+ }
990
+ return {
991
+ id,
992
+ label: record.path,
993
+ tags,
994
+ children: route.children.map(formatRouteRecordForInspector)
995
+ };
996
+ }
997
+ let routeRecordId = 0;
998
+ const EXTRACT_REGEXP_RE = /^\/(.*)\/([a-z]*)$/;
999
+ function markRouteRecordActive(route, currentRoute) {
1000
+ const isExactActive = currentRoute.matched.length && isSameRouteRecord(currentRoute.matched[currentRoute.matched.length - 1], route.record);
1001
+ route.__vd_exactActive = route.__vd_active = isExactActive;
1002
+ if (!isExactActive) route.__vd_active = currentRoute.matched.some((match) => isSameRouteRecord(match, route.record));
1003
+ route.children.forEach((childRoute) => markRouteRecordActive(childRoute, currentRoute));
1004
+ }
1005
+ function resetMatchStateOnRouteRecord(route) {
1006
+ route.__vd_match = false;
1007
+ route.children.forEach(resetMatchStateOnRouteRecord);
1008
+ }
1009
+ function isRouteMatching(route, filter) {
1010
+ const found = String(route.re).match(EXTRACT_REGEXP_RE);
1011
+ route.__vd_match = false;
1012
+ if (!found || found.length < 3) return false;
1013
+ if (new RegExp(found[1].replace(/\$$/, ""), found[2]).test(filter)) {
1014
+ route.children.forEach((child) => isRouteMatching(child, filter));
1015
+ if (route.record.path !== "/" || filter === "/") {
1016
+ route.__vd_match = route.re.test(filter);
1017
+ return true;
1018
+ }
1019
+ return false;
1020
+ }
1021
+ const path = route.record.path.toLowerCase();
1022
+ const decodedPath = decode(path);
1023
+ if (!filter.startsWith("/") && (decodedPath.includes(filter) || path.includes(filter))) return true;
1024
+ if (decodedPath.startsWith(filter) || path.startsWith(filter)) return true;
1025
+ if (route.record.name && String(route.record.name).includes(filter)) return true;
1026
+ return route.children.some((child) => isRouteMatching(child, filter));
1027
+ }
1028
+ function omit(obj, keys) {
1029
+ const ret = {};
1030
+ for (const key in obj) if (!keys.includes(key)) ret[key] = obj[key];
1031
+ return ret;
1032
+ }
1033
+ //#endregion
1034
+ export { PLUS_RE as A, isSameRouteLocation as C, resolveRelativePath as D, parseURL as E, warn$1 as F, encodeHash as M, encodeParam as N, stringifyURL as O, encodePath as P, START_LOCATION_NORMALIZED as S, isSameRouteRecord as T, saveScrollPosition as _, loadRouteLocation as a, normalizeBase as b, useCallbacks as c, stringifyQuery as d, isRouteLocation as f, getScrollKey as g, getSavedScrollPosition as h, guardToPromiseFn as i, decode as j, stripBase as k, normalizeQuery as l, computeScrollPosition as m, extractChangingRecords as n, onBeforeRouteLeave as o, isRouteName as p, extractComponentsGuards as r, onBeforeRouteUpdate as s, addDevtools as t, parseQuery as u, scrollToPosition as v, isSameRouteLocationParams as w, NEW_stringifyURL as x, createHref as y };