renovate-log-parser 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (325) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +402 -0
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +30 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/analyze.d.ts +24 -0
  7. package/dist/commands/analyze.js +114 -0
  8. package/dist/commands/analyze.js.map +1 -0
  9. package/dist/commands/detect-errors.d.ts +17 -0
  10. package/dist/commands/detect-errors.js +119 -0
  11. package/dist/commands/detect-errors.js.map +1 -0
  12. package/dist/commands/install-analyze-skill.d.ts +27 -0
  13. package/dist/commands/install-analyze-skill.js +181 -0
  14. package/dist/commands/install-analyze-skill.js.map +1 -0
  15. package/dist/commands/web.d.ts +12 -0
  16. package/dist/commands/web.js +103 -0
  17. package/dist/commands/web.js.map +1 -0
  18. package/dist/core/analyzer.d.ts +89 -0
  19. package/dist/core/analyzer.js +179 -0
  20. package/dist/core/analyzer.js.map +1 -0
  21. package/dist/core/error-detector.d.ts +56 -0
  22. package/dist/core/error-detector.js +236 -0
  23. package/dist/core/error-detector.js.map +1 -0
  24. package/dist/core/filters.d.ts +136 -0
  25. package/dist/core/filters.js +95 -0
  26. package/dist/core/filters.js.map +1 -0
  27. package/dist/core/ignore-file.d.ts +52 -0
  28. package/dist/core/ignore-file.js +104 -0
  29. package/dist/core/ignore-file.js.map +1 -0
  30. package/dist/core/levels.d.ts +33 -0
  31. package/dist/core/levels.js +35 -0
  32. package/dist/core/levels.js.map +1 -0
  33. package/dist/core/parser.d.ts +57 -0
  34. package/dist/core/parser.js +201 -0
  35. package/dist/core/parser.js.map +1 -0
  36. package/dist/core/query-builder.d.ts +47 -0
  37. package/dist/core/query-builder.js +155 -0
  38. package/dist/core/query-builder.js.map +1 -0
  39. package/dist/core/skill-template.d.ts +34 -0
  40. package/dist/core/skill-template.js +259 -0
  41. package/dist/core/skill-template.js.map +1 -0
  42. package/package.json +68 -0
  43. package/web/.output/nitro.json +15 -0
  44. package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
  45. package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
  46. package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
  47. package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
  48. package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
  49. package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
  50. package/web/.output/public/_nuxt/BWja8e3M.js +37 -0
  51. package/web/.output/public/_nuxt/BgApMHS1.js +1 -0
  52. package/web/.output/public/_nuxt/CGPWRqbc.js +1 -0
  53. package/web/.output/public/_nuxt/DlAUqK2U.js +1 -0
  54. package/web/.output/public/_nuxt/Sgtec1U0.js +1 -0
  55. package/web/.output/public/_nuxt/builds/latest.json +1 -0
  56. package/web/.output/public/_nuxt/builds/meta/c4723e49-0623-47af-ae79-9ab6428bdcc1.json +1 -0
  57. package/web/.output/public/_nuxt/entry.9mB-pyEY.css +1 -0
  58. package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +1 -0
  59. package/web/.output/public/_nuxt/error-500.CghkKCEr.css +1 -0
  60. package/web/.output/public/_nuxt/index.BlvAG7F6.css +1 -0
  61. package/web/.output/public/favicon.ico +0 -0
  62. package/web/.output/server/chunks/_/error-500.mjs +19 -0
  63. package/web/.output/server/chunks/_/error-500.mjs.map +1 -0
  64. package/web/.output/server/chunks/_/icons.mjs +6153 -0
  65. package/web/.output/server/chunks/_/icons.mjs.map +1 -0
  66. package/web/.output/server/chunks/_/icons2.mjs +11494 -0
  67. package/web/.output/server/chunks/_/icons2.mjs.map +1 -0
  68. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +10 -0
  69. package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +1 -0
  70. package/web/.output/server/chunks/build/client.precomputed.mjs +4 -0
  71. package/web/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
  72. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs +106 -0
  73. package/web/.output/server/chunks/build/error-404-DyaaQUIS.mjs.map +1 -0
  74. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +8 -0
  75. package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +1 -0
  76. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs +89 -0
  77. package/web/.output/server/chunks/build/error-500-CVSP-p02.mjs.map +1 -0
  78. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +8 -0
  79. package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +1 -0
  80. package/web/.output/server/chunks/build/index-88dXYOxO.mjs +19675 -0
  81. package/web/.output/server/chunks/build/index-88dXYOxO.mjs.map +1 -0
  82. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +8 -0
  83. package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +1 -0
  84. package/web/.output/server/chunks/build/server.mjs +7910 -0
  85. package/web/.output/server/chunks/build/server.mjs.map +1 -0
  86. package/web/.output/server/chunks/build/styles.mjs +10 -0
  87. package/web/.output/server/chunks/build/styles.mjs.map +1 -0
  88. package/web/.output/server/chunks/nitro/nitro.mjs +6944 -0
  89. package/web/.output/server/chunks/nitro/nitro.mjs.map +1 -0
  90. package/web/.output/server/chunks/routes/api/fields.get.mjs +27 -0
  91. package/web/.output/server/chunks/routes/api/fields.get.mjs.map +1 -0
  92. package/web/.output/server/chunks/routes/api/findings.get.mjs +30 -0
  93. package/web/.output/server/chunks/routes/api/findings.get.mjs.map +1 -0
  94. package/web/.output/server/chunks/routes/api/log/contents.post.mjs +29 -0
  95. package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +1 -0
  96. package/web/.output/server/chunks/routes/api/log/path.post.mjs +30 -0
  97. package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +1 -0
  98. package/web/.output/server/chunks/routes/api/repositories.get.mjs +27 -0
  99. package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +1 -0
  100. package/web/.output/server/chunks/routes/api/rows.get.mjs +48 -0
  101. package/web/.output/server/chunks/routes/api/rows.get.mjs.map +1 -0
  102. package/web/.output/server/chunks/routes/renderer.mjs +451 -0
  103. package/web/.output/server/chunks/routes/renderer.mjs.map +1 -0
  104. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
  105. package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
  106. package/web/.output/server/index.mjs +16 -0
  107. package/web/.output/server/index.mjs.map +1 -0
  108. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +290 -0
  109. package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
  110. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
  111. package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
  112. package/web/.output/server/node_modules/@babel/parser/lib/index.js +14599 -0
  113. package/web/.output/server/node_modules/@babel/parser/package.json +50 -0
  114. package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +1038 -0
  115. package/web/.output/server/node_modules/@floating-ui/core/package.json +63 -0
  116. package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +789 -0
  117. package/web/.output/server/node_modules/@floating-ui/dom/package.json +72 -0
  118. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +165 -0
  119. package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +136 -0
  120. package/web/.output/server/node_modules/@floating-ui/utils/package.json +70 -0
  121. package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +190 -0
  122. package/web/.output/server/node_modules/@floating-ui/vue/package.json +71 -0
  123. package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
  124. package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
  125. package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
  126. package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
  127. package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
  128. package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
  129. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
  130. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  131. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
  132. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
  133. package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
  134. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
  135. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
  136. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
  137. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
  138. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
  139. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
  140. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
  141. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
  142. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
  143. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
  144. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
  145. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
  146. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
  147. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
  148. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
  149. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
  150. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
  151. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
  152. package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
  153. package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
  154. package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
  155. package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
  156. package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
  157. package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
  158. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
  159. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
  160. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
  161. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
  162. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
  163. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
  164. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
  165. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
  166. package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
  167. package/web/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
  168. package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
  169. package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
  170. package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
  171. package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
  172. package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
  173. package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
  174. package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
  175. package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
  176. package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
  177. package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
  178. package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
  179. package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
  180. package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
  181. package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
  182. package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
  183. package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
  184. package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
  185. package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
  186. package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
  187. package/web/.output/server/node_modules/@iconify/utils/package.json +119 -0
  188. package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1896 -0
  189. package/web/.output/server/node_modules/@iconify/vue/package.json +62 -0
  190. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +1268 -0
  191. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +34 -0
  192. package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +74 -0
  193. package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +56 -0
  194. package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +66 -0
  195. package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +68 -0
  196. package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6759 -0
  197. package/web/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
  198. package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
  199. package/web/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
  200. package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
  201. package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
  202. package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +2 -0
  203. package/web/.output/server/node_modules/@vue/devtools-api/package.json +34 -0
  204. package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +5670 -0
  205. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +290 -0
  206. package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +49 -0
  207. package/web/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
  208. package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +239 -0
  209. package/web/.output/server/node_modules/@vue/devtools-shared/package.json +33 -0
  210. package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1899 -0
  211. package/web/.output/server/node_modules/@vue/reactivity/package.json +55 -0
  212. package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6940 -0
  213. package/web/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
  214. package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1822 -0
  215. package/web/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
  216. package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +896 -0
  217. package/web/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
  218. package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
  219. package/web/.output/server/node_modules/@vue/shared/package.json +47 -0
  220. package/web/.output/server/node_modules/@vueuse/core/dist/index.js +8464 -0
  221. package/web/.output/server/node_modules/@vueuse/core/package.json +49 -0
  222. package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +2013 -0
  223. package/web/.output/server/node_modules/@vueuse/shared/package.json +42 -0
  224. package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +174 -0
  225. package/web/.output/server/node_modules/aria-hidden/package.json +71 -0
  226. package/web/.output/server/node_modules/birpc/dist/index.mjs +291 -0
  227. package/web/.output/server/node_modules/birpc/package.json +57 -0
  228. package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
  229. package/web/.output/server/node_modules/consola/dist/core.mjs +512 -0
  230. package/web/.output/server/node_modules/consola/dist/index.mjs +651 -0
  231. package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
  232. package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
  233. package/web/.output/server/node_modules/consola/package.json +136 -0
  234. package/web/.output/server/node_modules/devalue/index.js +4 -0
  235. package/web/.output/server/node_modules/devalue/package.json +40 -0
  236. package/web/.output/server/node_modules/devalue/src/base64.js +60 -0
  237. package/web/.output/server/node_modules/devalue/src/constants.js +12 -0
  238. package/web/.output/server/node_modules/devalue/src/parse.js +283 -0
  239. package/web/.output/server/node_modules/devalue/src/stringify.js +401 -0
  240. package/web/.output/server/node_modules/devalue/src/uneval.js +552 -0
  241. package/web/.output/server/node_modules/devalue/src/utils.js +160 -0
  242. package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
  243. package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
  244. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
  245. package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
  246. package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
  247. package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
  248. package/web/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
  249. package/web/.output/server/node_modules/entities/package.json +120 -0
  250. package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
  251. package/web/.output/server/node_modules/estree-walker/package.json +37 -0
  252. package/web/.output/server/node_modules/hookable/dist/index.mjs +257 -0
  253. package/web/.output/server/node_modules/hookable/package.json +53 -0
  254. package/web/.output/server/node_modules/nostics/dist/index.mjs +179 -0
  255. package/web/.output/server/node_modules/nostics/package.json +124 -0
  256. package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +89 -0
  257. package/web/.output/server/node_modules/perfect-debounce/package.json +41 -0
  258. package/web/.output/server/node_modules/rou3/dist/index.mjs +501 -0
  259. package/web/.output/server/node_modules/rou3/package.json +48 -0
  260. package/web/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
  261. package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
  262. package/web/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
  263. package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
  264. package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
  265. package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
  266. package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
  267. package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
  268. package/web/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
  269. package/web/.output/server/node_modules/source-map-js/lib/util.js +594 -0
  270. package/web/.output/server/node_modules/source-map-js/package.json +71 -0
  271. package/web/.output/server/node_modules/source-map-js/source-map.js +8 -0
  272. package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +39 -0
  273. package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +56 -0
  274. package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +58 -0
  275. package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +134 -0
  276. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +15 -0
  277. package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +75 -0
  278. package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +976 -0
  279. package/web/.output/server/node_modules/srvx/package.json +102 -0
  280. package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +3365 -0
  281. package/web/.output/server/node_modules/tailwind-merge/package.json +93 -0
  282. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +112 -0
  283. package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +269 -0
  284. package/web/.output/server/node_modules/tailwind-variants/dist/index.js +38 -0
  285. package/web/.output/server/node_modules/tailwind-variants/package.json +122 -0
  286. package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +1 -0
  287. package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
  288. package/web/.output/server/node_modules/tailwindcss/package.json +89 -0
  289. package/web/.output/server/node_modules/ufo/dist/index.mjs +645 -0
  290. package/web/.output/server/node_modules/ufo/package.json +48 -0
  291. package/web/.output/server/node_modules/unhead/dist/index.mjs +9 -0
  292. package/web/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
  293. package/web/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
  294. package/web/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
  295. package/web/.output/server/node_modules/unhead/dist/server.mjs +180 -0
  296. package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +207 -0
  297. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
  298. package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
  299. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +182 -0
  300. package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
  301. package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +236 -0
  302. package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
  303. package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +44 -0
  304. package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +166 -0
  305. package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
  306. package/web/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
  307. package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +257 -0
  308. package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +53 -0
  309. package/web/.output/server/node_modules/unhead/package.json +105 -0
  310. package/web/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
  311. package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
  312. package/web/.output/server/node_modules/vue/index.js +7 -0
  313. package/web/.output/server/node_modules/vue/index.mjs +1 -0
  314. package/web/.output/server/node_modules/vue/package.json +112 -0
  315. package/web/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
  316. package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +249 -0
  317. package/web/.output/server/node_modules/vue-bundle-renderer/package.json +57 -0
  318. package/web/.output/server/node_modules/vue-demi/lib/index.mjs +34 -0
  319. package/web/.output/server/node_modules/vue-demi/package.json +47 -0
  320. package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +1056 -0
  321. package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +436 -0
  322. package/web/.output/server/node_modules/vue-router/dist/vue-router.js +1543 -0
  323. package/web/.output/server/node_modules/vue-router/package.json +214 -0
  324. package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
  325. package/web/.output/server/package.json +51 -0
@@ -0,0 +1,1038 @@
1
+ import { getSideAxis, getAlignmentAxis, getAxisLength, getSide, getAlignment, evaluate, getPaddingObject, rectToClientRect, min, clamp, placements, getAlignmentSides, getOppositeAlignmentPlacement, getOppositePlacement, getExpandedPlacements, getOppositeAxisPlacements, sides, max, getOppositeAxis } from '@floating-ui/utils';
2
+ export { rectToClientRect } from '@floating-ui/utils';
3
+
4
+ function computeCoordsFromPlacement(_ref, placement, rtl) {
5
+ let {
6
+ reference,
7
+ floating
8
+ } = _ref;
9
+ const sideAxis = getSideAxis(placement);
10
+ const alignmentAxis = getAlignmentAxis(placement);
11
+ const alignLength = getAxisLength(alignmentAxis);
12
+ const side = getSide(placement);
13
+ const isVertical = sideAxis === 'y';
14
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
15
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
16
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
17
+ let coords;
18
+ switch (side) {
19
+ case 'top':
20
+ coords = {
21
+ x: commonX,
22
+ y: reference.y - floating.height
23
+ };
24
+ break;
25
+ case 'bottom':
26
+ coords = {
27
+ x: commonX,
28
+ y: reference.y + reference.height
29
+ };
30
+ break;
31
+ case 'right':
32
+ coords = {
33
+ x: reference.x + reference.width,
34
+ y: commonY
35
+ };
36
+ break;
37
+ case 'left':
38
+ coords = {
39
+ x: reference.x - floating.width,
40
+ y: commonY
41
+ };
42
+ break;
43
+ default:
44
+ coords = {
45
+ x: reference.x,
46
+ y: reference.y
47
+ };
48
+ }
49
+ const alignment = getAlignment(placement);
50
+ if (alignment) {
51
+ coords[alignmentAxis] += commonAlign * (alignment === 'end' ? 1 : -1) * (rtl && isVertical ? -1 : 1);
52
+ }
53
+ return coords;
54
+ }
55
+
56
+ /**
57
+ * Resolves with an object of overflow side offsets that determine how much the
58
+ * element is overflowing a given clipping boundary on each side.
59
+ * - positive = overflowing the boundary by that number of pixels
60
+ * - negative = how many pixels left before it will overflow
61
+ * - 0 = lies flush with the boundary
62
+ * @see https://floating-ui.com/docs/detectOverflow
63
+ */
64
+ async function detectOverflow(state, options) {
65
+ var _await$platform$isEle;
66
+ if (options === void 0) {
67
+ options = {};
68
+ }
69
+ const {
70
+ x,
71
+ y,
72
+ platform,
73
+ rects,
74
+ elements,
75
+ strategy
76
+ } = state;
77
+ const {
78
+ boundary = 'clippingAncestors',
79
+ rootBoundary = 'viewport',
80
+ elementContext = 'floating',
81
+ altBoundary = false,
82
+ padding = 0
83
+ } = evaluate(options, state);
84
+ const paddingObject = getPaddingObject(padding);
85
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
86
+ const element = elements[altBoundary ? altContext : elementContext];
87
+ const clippingClientRect = rectToClientRect(await platform.getClippingRect({
88
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
89
+ boundary,
90
+ rootBoundary,
91
+ strategy
92
+ }));
93
+ const rect = elementContext === 'floating' ? {
94
+ x,
95
+ y,
96
+ width: rects.floating.width,
97
+ height: rects.floating.height
98
+ } : rects.reference;
99
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
100
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) && (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
101
+ x: 1,
102
+ y: 1
103
+ };
104
+ const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
105
+ elements,
106
+ rect,
107
+ offsetParent,
108
+ strategy
109
+ }) : rect);
110
+ return {
111
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
112
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
113
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
114
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
115
+ };
116
+ }
117
+
118
+ // Maximum number of resets that can occur before bailing to avoid infinite reset loops.
119
+ const MAX_RESET_COUNT = 50;
120
+
121
+ /**
122
+ * Computes the `x` and `y` coordinates that will place the floating element
123
+ * next to a given reference element.
124
+ *
125
+ * This export does not have any `platform` interface logic. You will need to
126
+ * write one for the platform you are using Floating UI with.
127
+ */
128
+ const computePosition = async (reference, floating, config) => {
129
+ const {
130
+ placement = 'bottom',
131
+ strategy = 'absolute',
132
+ middleware = [],
133
+ platform
134
+ } = config;
135
+ const platformWithDetectOverflow = platform.detectOverflow ? platform : {
136
+ ...platform,
137
+ detectOverflow
138
+ };
139
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
140
+ let rects = await platform.getElementRects({
141
+ reference,
142
+ floating,
143
+ strategy
144
+ });
145
+ let {
146
+ x,
147
+ y
148
+ } = computeCoordsFromPlacement(rects, placement, rtl);
149
+ let statefulPlacement = placement;
150
+ let resetCount = 0;
151
+ const middlewareData = {};
152
+ for (let i = 0; i < middleware.length; i++) {
153
+ const currentMiddleware = middleware[i];
154
+ if (!currentMiddleware) {
155
+ continue;
156
+ }
157
+ const {
158
+ name,
159
+ fn
160
+ } = currentMiddleware;
161
+ const {
162
+ x: nextX,
163
+ y: nextY,
164
+ data,
165
+ reset
166
+ } = await fn({
167
+ x,
168
+ y,
169
+ initialPlacement: placement,
170
+ placement: statefulPlacement,
171
+ strategy,
172
+ middlewareData,
173
+ rects,
174
+ platform: platformWithDetectOverflow,
175
+ elements: {
176
+ reference,
177
+ floating
178
+ }
179
+ });
180
+ x = nextX != null ? nextX : x;
181
+ y = nextY != null ? nextY : y;
182
+ middlewareData[name] = {
183
+ ...middlewareData[name],
184
+ ...data
185
+ };
186
+ if (reset && resetCount < MAX_RESET_COUNT) {
187
+ resetCount++;
188
+ if (typeof reset === 'object') {
189
+ if (reset.placement) {
190
+ statefulPlacement = reset.placement;
191
+ }
192
+ if (reset.rects) {
193
+ rects = reset.rects === true ? await platform.getElementRects({
194
+ reference,
195
+ floating,
196
+ strategy
197
+ }) : reset.rects;
198
+ }
199
+ ({
200
+ x,
201
+ y
202
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
203
+ }
204
+ i = -1;
205
+ }
206
+ }
207
+ return {
208
+ x,
209
+ y,
210
+ placement: statefulPlacement,
211
+ strategy,
212
+ middlewareData
213
+ };
214
+ };
215
+
216
+ /**
217
+ * Provides data to position an inner element of the floating element so that it
218
+ * appears centered to the reference element.
219
+ * @see https://floating-ui.com/docs/arrow
220
+ */
221
+ const arrow = options => ({
222
+ name: 'arrow',
223
+ options,
224
+ async fn(state) {
225
+ const {
226
+ x,
227
+ y,
228
+ placement,
229
+ rects,
230
+ platform,
231
+ elements,
232
+ middlewareData
233
+ } = state;
234
+ // Since `element` is required, we don't Partial<> the type.
235
+ const {
236
+ element,
237
+ padding = 0
238
+ } = evaluate(options, state) || {};
239
+ if (element == null) {
240
+ return {};
241
+ }
242
+ const paddingObject = getPaddingObject(padding);
243
+ const coords = {
244
+ x,
245
+ y
246
+ };
247
+ const axis = getAlignmentAxis(placement);
248
+ const length = getAxisLength(axis);
249
+ const arrowDimensions = await platform.getDimensions(element);
250
+ const isYAxis = axis === 'y';
251
+ const minProp = isYAxis ? 'top' : 'left';
252
+ const maxProp = isYAxis ? 'bottom' : 'right';
253
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
254
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
255
+ const startDiff = coords[axis] - rects.reference[axis];
256
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
257
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
258
+
259
+ // DOM platform can return `window` as the `offsetParent`.
260
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
261
+ clientSize = elements.floating[clientProp] || rects.floating[length];
262
+ }
263
+ const centerToReference = endDiff / 2 - startDiff / 2;
264
+
265
+ // If the padding is large enough that it causes the arrow to no longer be
266
+ // centered, modify the padding so that it is centered.
267
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
268
+ const minPadding = min(paddingObject[minProp], largestPossiblePadding);
269
+ const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
270
+
271
+ // Make sure the arrow doesn't overflow the floating element if the center
272
+ // point is outside the floating element's bounds.
273
+ const max = clientSize - arrowDimensions[length] - maxPadding;
274
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
275
+ const offset = clamp(minPadding, center, max);
276
+
277
+ // If the reference is small enough that the arrow's padding causes it to
278
+ // to point to nothing for an aligned placement, adjust the offset of the
279
+ // floating element itself. To ensure `shift()` continues to take action,
280
+ // a single reset is performed when this is true.
281
+ const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < minPadding ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
282
+ const alignmentOffset = shouldAddOffset ? center < minPadding ? center - minPadding : center - max : 0;
283
+ return {
284
+ [axis]: coords[axis] + alignmentOffset,
285
+ data: {
286
+ [axis]: offset,
287
+ centerOffset: center - offset - alignmentOffset,
288
+ ...(shouldAddOffset && {
289
+ alignmentOffset
290
+ })
291
+ },
292
+ reset: shouldAddOffset
293
+ };
294
+ }
295
+ });
296
+
297
+ function getPlacementList(alignment, autoAlignment, allowedPlacements) {
298
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
299
+ return allowedPlacementsSortedByAlignment.filter(placement => {
300
+ if (alignment) {
301
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
302
+ }
303
+ return true;
304
+ });
305
+ }
306
+ /**
307
+ * Optimizes the visibility of the floating element by choosing the placement
308
+ * that has the most space available automatically, without needing to specify a
309
+ * preferred placement. Alternative to `flip`.
310
+ * @see https://floating-ui.com/docs/autoPlacement
311
+ */
312
+ const autoPlacement = function (options) {
313
+ if (options === void 0) {
314
+ options = {};
315
+ }
316
+ return {
317
+ name: 'autoPlacement',
318
+ options,
319
+ async fn(state) {
320
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
321
+ const {
322
+ rects,
323
+ middlewareData,
324
+ placement,
325
+ platform,
326
+ elements
327
+ } = state;
328
+ const {
329
+ crossAxis = false,
330
+ alignment,
331
+ allowedPlacements = placements,
332
+ autoAlignment = true,
333
+ ...detectOverflowOptions
334
+ } = evaluate(options, state);
335
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
336
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
337
+ const currentPlacement = placements$1[currentIndex];
338
+ if (currentPlacement == null) {
339
+ return {};
340
+ }
341
+
342
+ // Make `computeCoords` start from the right place.
343
+ if (placement !== currentPlacement) {
344
+ return {
345
+ reset: {
346
+ placement: placements$1[0]
347
+ }
348
+ };
349
+ }
350
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
351
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
352
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
353
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
354
+ placement: currentPlacement,
355
+ overflows: currentOverflows
356
+ }];
357
+ const nextPlacement = placements$1[currentIndex + 1];
358
+
359
+ // There are more placements to check.
360
+ if (nextPlacement) {
361
+ return {
362
+ data: {
363
+ index: currentIndex + 1,
364
+ overflows: allOverflows
365
+ },
366
+ reset: {
367
+ placement: nextPlacement
368
+ }
369
+ };
370
+ }
371
+ const placementsSortedByMostSpace = allOverflows.map(d => {
372
+ const alignment = getAlignment(d.placement);
373
+ return [d.placement, alignment && crossAxis ?
374
+ // Check along the mainAxis and main crossAxis side.
375
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
376
+ // Check only the mainAxis.
377
+ d.overflows[0], d.overflows];
378
+ }).sort((a, b) => a[1] - b[1]);
379
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
380
+ // Aligned placements should not check their opposite crossAxis
381
+ // side.
382
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
383
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
384
+ if (resetPlacement !== placement) {
385
+ return {
386
+ data: {
387
+ index: currentIndex + 1,
388
+ overflows: allOverflows
389
+ },
390
+ reset: {
391
+ placement: resetPlacement
392
+ }
393
+ };
394
+ }
395
+ return {};
396
+ }
397
+ };
398
+ };
399
+
400
+ /**
401
+ * Optimizes the visibility of the floating element by flipping the `placement`
402
+ * in order to keep it in view when the preferred placement(s) will overflow the
403
+ * clipping boundary. Alternative to `autoPlacement`.
404
+ * @see https://floating-ui.com/docs/flip
405
+ */
406
+ const flip = function (options) {
407
+ if (options === void 0) {
408
+ options = {};
409
+ }
410
+ return {
411
+ name: 'flip',
412
+ options,
413
+ async fn(state) {
414
+ var _middlewareData$arrow, _middlewareData$flip;
415
+ const {
416
+ placement,
417
+ middlewareData,
418
+ rects,
419
+ initialPlacement,
420
+ platform,
421
+ elements
422
+ } = state;
423
+ const {
424
+ mainAxis: checkMainAxis = true,
425
+ crossAxis: checkCrossAxis = true,
426
+ fallbackPlacements: specifiedFallbackPlacements,
427
+ fallbackStrategy = 'bestFit',
428
+ fallbackAxisSideDirection = 'none',
429
+ flipAlignment = true,
430
+ ...detectOverflowOptions
431
+ } = evaluate(options, state);
432
+
433
+ // If a reset by the arrow was caused due to an alignment offset being
434
+ // added, we should skip any logic now since `flip()` has already done its
435
+ // work.
436
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
437
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
438
+ return {};
439
+ }
440
+ const side = getSide(placement);
441
+ const initialSideAxis = getSideAxis(initialPlacement);
442
+ const isBasePlacement = getSide(initialPlacement) === initialPlacement;
443
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
444
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
445
+ const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
446
+ if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
447
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
448
+ }
449
+ const placements = [initialPlacement, ...fallbackPlacements];
450
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
451
+ const overflows = [];
452
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
453
+ if (checkMainAxis) {
454
+ overflows.push(overflow[side]);
455
+ }
456
+ if (checkCrossAxis) {
457
+ const sides = getAlignmentSides(placement, rects, rtl);
458
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
459
+ }
460
+ overflowsData = [...overflowsData, {
461
+ placement,
462
+ overflows
463
+ }];
464
+
465
+ // One or more sides is overflowing.
466
+ if (!overflows.every(side => side <= 0)) {
467
+ var _middlewareData$flip2, _overflowsData$filter;
468
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
469
+ const nextPlacement = placements[nextIndex];
470
+ if (nextPlacement) {
471
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
472
+ if (!ignoreCrossAxisOverflow ||
473
+ // We leave the current main axis only if every placement on that axis
474
+ // overflows the main axis.
475
+ overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
476
+ // Try next placement and re-run the lifecycle.
477
+ return {
478
+ data: {
479
+ index: nextIndex,
480
+ overflows: overflowsData
481
+ },
482
+ reset: {
483
+ placement: nextPlacement
484
+ }
485
+ };
486
+ }
487
+ }
488
+
489
+ // First, find the candidates that fit on the mainAxis side of overflow,
490
+ // then find the placement that fits the best on the main crossAxis side.
491
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
492
+
493
+ // Otherwise fallback.
494
+ if (!resetPlacement) {
495
+ switch (fallbackStrategy) {
496
+ case 'bestFit':
497
+ {
498
+ var _overflowsData$filter2;
499
+ const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
500
+ if (hasFallbackAxisSideDirection) {
501
+ const currentSideAxis = getSideAxis(d.placement);
502
+ return currentSideAxis === initialSideAxis ||
503
+ // Create a bias to the `y` side axis due to horizontal
504
+ // reading directions favoring greater width.
505
+ currentSideAxis === 'y';
506
+ }
507
+ return true;
508
+ }).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
509
+ if (placement) {
510
+ resetPlacement = placement;
511
+ }
512
+ break;
513
+ }
514
+ case 'initialPlacement':
515
+ resetPlacement = initialPlacement;
516
+ break;
517
+ }
518
+ }
519
+ if (placement !== resetPlacement) {
520
+ return {
521
+ reset: {
522
+ placement: resetPlacement
523
+ }
524
+ };
525
+ }
526
+ }
527
+ return {};
528
+ }
529
+ };
530
+ };
531
+
532
+ function getSideOffsets(overflow, rect) {
533
+ return {
534
+ top: overflow.top - rect.height,
535
+ right: overflow.right - rect.width,
536
+ bottom: overflow.bottom - rect.height,
537
+ left: overflow.left - rect.width
538
+ };
539
+ }
540
+ function isAnySideFullyClipped(overflow) {
541
+ return sides.some(side => overflow[side] >= 0);
542
+ }
543
+ /**
544
+ * Provides data to hide the floating element in applicable situations, such as
545
+ * when it is not in the same clipping context as the reference element.
546
+ * @see https://floating-ui.com/docs/hide
547
+ */
548
+ const hide = function (options) {
549
+ if (options === void 0) {
550
+ options = {};
551
+ }
552
+ return {
553
+ name: 'hide',
554
+ options,
555
+ async fn(state) {
556
+ const {
557
+ rects,
558
+ platform
559
+ } = state;
560
+ const {
561
+ strategy = 'referenceHidden',
562
+ ...detectOverflowOptions
563
+ } = evaluate(options, state);
564
+ switch (strategy) {
565
+ case 'referenceHidden':
566
+ {
567
+ const overflow = await platform.detectOverflow(state, {
568
+ ...detectOverflowOptions,
569
+ elementContext: 'reference'
570
+ });
571
+ const offsets = getSideOffsets(overflow, rects.reference);
572
+ return {
573
+ data: {
574
+ referenceHiddenOffsets: offsets,
575
+ referenceHidden: isAnySideFullyClipped(offsets)
576
+ }
577
+ };
578
+ }
579
+ case 'escaped':
580
+ {
581
+ const overflow = await platform.detectOverflow(state, {
582
+ ...detectOverflowOptions,
583
+ altBoundary: true
584
+ });
585
+ const offsets = getSideOffsets(overflow, rects.floating);
586
+ return {
587
+ data: {
588
+ escapedOffsets: offsets,
589
+ escaped: isAnySideFullyClipped(offsets)
590
+ }
591
+ };
592
+ }
593
+ default:
594
+ {
595
+ return {};
596
+ }
597
+ }
598
+ }
599
+ };
600
+ };
601
+
602
+ function getBoundingRect(rects) {
603
+ const minX = min(...rects.map(rect => rect.left));
604
+ const minY = min(...rects.map(rect => rect.top));
605
+ const maxX = max(...rects.map(rect => rect.right));
606
+ const maxY = max(...rects.map(rect => rect.bottom));
607
+ return {
608
+ x: minX,
609
+ y: minY,
610
+ width: maxX - minX,
611
+ height: maxY - minY
612
+ };
613
+ }
614
+ function getRectsByLine(rects) {
615
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
616
+ const groups = [];
617
+ let prevRect = null;
618
+ for (let i = 0; i < sortedRects.length; i++) {
619
+ const rect = sortedRects[i];
620
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
621
+ groups.push([rect]);
622
+ } else {
623
+ groups[groups.length - 1].push(rect);
624
+ }
625
+ prevRect = rect;
626
+ }
627
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
628
+ }
629
+ /**
630
+ * Provides improved positioning for inline reference elements that can span
631
+ * over multiple lines, such as hyperlinks or range selections.
632
+ * @see https://floating-ui.com/docs/inline
633
+ */
634
+ const inline = function (options) {
635
+ if (options === void 0) {
636
+ options = {};
637
+ }
638
+ return {
639
+ name: 'inline',
640
+ options,
641
+ async fn(state) {
642
+ const {
643
+ placement,
644
+ elements,
645
+ rects,
646
+ platform,
647
+ strategy
648
+ } = state;
649
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
650
+ // ClientRect's bounds, despite the event listener being triggered. A
651
+ // padding of 2 seems to handle this issue.
652
+ const {
653
+ padding = 2,
654
+ x,
655
+ y
656
+ } = evaluate(options, state);
657
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
658
+
659
+ // No rects (e.g. a hidden or detached reference, or a collapsed range) —
660
+ // keep the existing reference rect rather than resetting to an invalid
661
+ // one with non-finite values.
662
+ if (!nativeClientRects.length) {
663
+ return {};
664
+ }
665
+ const clientRects = getRectsByLine(nativeClientRects);
666
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
667
+ const paddingObject = getPaddingObject(padding);
668
+ function getBoundingClientRect() {
669
+ // There are two rects and they are disjoined.
670
+ if (clientRects.length === 2 && (clientRects[0].left > clientRects[1].right || clientRects[1].left > clientRects[0].right) && x != null && y != null) {
671
+ // Find the first rect in which the point is fully inside.
672
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
673
+ }
674
+
675
+ // There are 2 or more connected rects.
676
+ if (clientRects.length >= 2) {
677
+ if (getSideAxis(placement) === 'y') {
678
+ const firstRect = clientRects[0];
679
+ const lastRect = clientRects[clientRects.length - 1];
680
+ const isTop = getSide(placement) === 'top';
681
+ const top = firstRect.top;
682
+ const bottom = lastRect.bottom;
683
+ const left = isTop ? firstRect.left : lastRect.left;
684
+ const right = isTop ? firstRect.right : lastRect.right;
685
+ return rectToClientRect({
686
+ x: left,
687
+ y: top,
688
+ width: right - left,
689
+ height: bottom - top
690
+ });
691
+ }
692
+ const isLeftSide = getSide(placement) === 'left';
693
+ const maxRight = max(...clientRects.map(rect => rect.right));
694
+ const minLeft = min(...clientRects.map(rect => rect.left));
695
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
696
+ const top = measureRects[0].top;
697
+ const bottom = measureRects[measureRects.length - 1].bottom;
698
+ return rectToClientRect({
699
+ x: minLeft,
700
+ y: top,
701
+ width: maxRight - minLeft,
702
+ height: bottom - top
703
+ });
704
+ }
705
+ return fallback;
706
+ }
707
+ const resetRects = await platform.getElementRects({
708
+ reference: {
709
+ getBoundingClientRect
710
+ },
711
+ floating: elements.floating,
712
+ strategy
713
+ });
714
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
715
+ return {
716
+ reset: {
717
+ rects: resetRects
718
+ }
719
+ };
720
+ }
721
+ return {};
722
+ }
723
+ };
724
+ };
725
+
726
+ const originSides = /*#__PURE__*/new Set(['left', 'top']);
727
+
728
+ // For type backwards-compatibility, the `OffsetOptions` type was also
729
+ // Derivable.
730
+
731
+ async function convertValueToCoords(state, options) {
732
+ const {
733
+ placement,
734
+ platform,
735
+ elements
736
+ } = state;
737
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
738
+ const side = getSide(placement);
739
+ const alignment = getAlignment(placement);
740
+ const isVertical = getSideAxis(placement) === 'y';
741
+ const mainAxisMulti = originSides.has(side) ? -1 : 1;
742
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
743
+ const rawValue = evaluate(options, state);
744
+
745
+ // eslint-disable-next-line prefer-const
746
+ let {
747
+ mainAxis,
748
+ crossAxis,
749
+ alignmentAxis
750
+ } = typeof rawValue === 'number' ? {
751
+ mainAxis: rawValue,
752
+ crossAxis: 0,
753
+ alignmentAxis: null
754
+ } : {
755
+ mainAxis: rawValue.mainAxis || 0,
756
+ crossAxis: rawValue.crossAxis || 0,
757
+ alignmentAxis: rawValue.alignmentAxis
758
+ };
759
+ if (alignment && typeof alignmentAxis === 'number') {
760
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
761
+ }
762
+ return isVertical ? {
763
+ x: crossAxis * crossAxisMulti,
764
+ y: mainAxis * mainAxisMulti
765
+ } : {
766
+ x: mainAxis * mainAxisMulti,
767
+ y: crossAxis * crossAxisMulti
768
+ };
769
+ }
770
+
771
+ /**
772
+ * Modifies the placement by translating the floating element along the
773
+ * specified axes.
774
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
775
+ * object may be passed.
776
+ * @see https://floating-ui.com/docs/offset
777
+ */
778
+ const offset = function (options) {
779
+ if (options === void 0) {
780
+ options = 0;
781
+ }
782
+ return {
783
+ name: 'offset',
784
+ options,
785
+ async fn(state) {
786
+ var _middlewareData$offse, _middlewareData$arrow;
787
+ const {
788
+ x,
789
+ y,
790
+ placement,
791
+ middlewareData
792
+ } = state;
793
+ const diffCoords = await convertValueToCoords(state, options);
794
+
795
+ // If the placement is the same and the arrow caused an alignment offset
796
+ // then we don't need to change the positioning coordinates.
797
+ if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
798
+ return {};
799
+ }
800
+ return {
801
+ x: x + diffCoords.x,
802
+ y: y + diffCoords.y,
803
+ data: {
804
+ ...diffCoords,
805
+ placement
806
+ }
807
+ };
808
+ }
809
+ };
810
+ };
811
+
812
+ /**
813
+ * Optimizes the visibility of the floating element by shifting it in order to
814
+ * keep it in view when it will overflow the clipping boundary.
815
+ * @see https://floating-ui.com/docs/shift
816
+ */
817
+ const shift = function (options) {
818
+ if (options === void 0) {
819
+ options = {};
820
+ }
821
+ return {
822
+ name: 'shift',
823
+ options,
824
+ async fn(state) {
825
+ const {
826
+ x,
827
+ y,
828
+ placement,
829
+ platform
830
+ } = state;
831
+ const {
832
+ mainAxis: checkMainAxis = true,
833
+ crossAxis: checkCrossAxis = false,
834
+ limiter = {
835
+ fn: _ref => {
836
+ let {
837
+ x,
838
+ y
839
+ } = _ref;
840
+ return {
841
+ x,
842
+ y
843
+ };
844
+ }
845
+ },
846
+ ...detectOverflowOptions
847
+ } = evaluate(options, state);
848
+ const coords = {
849
+ x,
850
+ y
851
+ };
852
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
853
+ const crossAxis = getSideAxis(placement);
854
+ const mainAxis = getOppositeAxis(crossAxis);
855
+ let mainAxisCoord = coords[mainAxis];
856
+ let crossAxisCoord = coords[crossAxis];
857
+ const clampCoord = (axis, coord) => clamp(coord + overflow[axis === 'y' ? 'top' : 'left'], coord, coord - overflow[axis === 'y' ? 'bottom' : 'right']);
858
+ if (checkMainAxis) {
859
+ mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
860
+ }
861
+ if (checkCrossAxis) {
862
+ crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
863
+ }
864
+ const limitedCoords = limiter.fn({
865
+ ...state,
866
+ [mainAxis]: mainAxisCoord,
867
+ [crossAxis]: crossAxisCoord
868
+ });
869
+ return {
870
+ ...limitedCoords,
871
+ data: {
872
+ x: limitedCoords.x - x,
873
+ y: limitedCoords.y - y,
874
+ enabled: {
875
+ [mainAxis]: checkMainAxis,
876
+ [crossAxis]: checkCrossAxis
877
+ }
878
+ }
879
+ };
880
+ }
881
+ };
882
+ };
883
+ /**
884
+ * Built-in `limiter` that will stop `shift()` at a certain point.
885
+ */
886
+ const limitShift = function (options) {
887
+ if (options === void 0) {
888
+ options = {};
889
+ }
890
+ return {
891
+ options,
892
+ fn(state) {
893
+ var _rawOffset$mainAxis, _rawOffset$crossAxis;
894
+ const {
895
+ x,
896
+ y,
897
+ placement,
898
+ rects,
899
+ middlewareData
900
+ } = state;
901
+ const {
902
+ offset = 0,
903
+ mainAxis: checkMainAxis = true,
904
+ crossAxis: checkCrossAxis = true
905
+ } = evaluate(options, state);
906
+ const coords = {
907
+ x,
908
+ y
909
+ };
910
+ const crossAxis = getSideAxis(placement);
911
+ const mainAxis = getOppositeAxis(crossAxis);
912
+ let mainAxisCoord = coords[mainAxis];
913
+ let crossAxisCoord = coords[crossAxis];
914
+ const rawOffset = evaluate(offset, state);
915
+ const computedOffset = typeof rawOffset === 'number' ? {
916
+ mainAxis: rawOffset,
917
+ crossAxis: 0
918
+ } : {
919
+ mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
920
+ crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
921
+ };
922
+ if (checkMainAxis) {
923
+ const len = mainAxis === 'y' ? 'height' : 'width';
924
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
925
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
926
+ if (mainAxisCoord < limitMin) {
927
+ mainAxisCoord = limitMin;
928
+ } else if (mainAxisCoord > limitMax) {
929
+ mainAxisCoord = limitMax;
930
+ }
931
+ }
932
+ if (checkCrossAxis) {
933
+ var _middlewareData$offse, _middlewareData$offse2;
934
+ const len = mainAxis === 'y' ? 'width' : 'height';
935
+ const isOriginSide = originSides.has(getSide(placement));
936
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
937
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
938
+ if (crossAxisCoord < limitMin) {
939
+ crossAxisCoord = limitMin;
940
+ } else if (crossAxisCoord > limitMax) {
941
+ crossAxisCoord = limitMax;
942
+ }
943
+ }
944
+ return {
945
+ [mainAxis]: mainAxisCoord,
946
+ [crossAxis]: crossAxisCoord
947
+ };
948
+ }
949
+ };
950
+ };
951
+
952
+ // Method syntax keeps callback parameters bivariant, but expressing the
953
+ // explicit `| undefined` required by `exactOptionalPropertyTypes` needs
954
+ // property syntax, which is contravariant under `strictFunctionTypes`.
955
+ // Extracting the function from a method position restores that bivariance so
956
+ // consumers can still assign callbacks with narrower parameter types.
957
+
958
+ /**
959
+ * Provides data that allows you to change the size of the floating element —
960
+ * for instance, prevent it from overflowing the clipping boundary or match the
961
+ * width of the reference element.
962
+ * @see https://floating-ui.com/docs/size
963
+ */
964
+ const size = function (options) {
965
+ if (options === void 0) {
966
+ options = {};
967
+ }
968
+ return {
969
+ name: 'size',
970
+ options,
971
+ async fn(state) {
972
+ const {
973
+ placement,
974
+ rects,
975
+ platform,
976
+ elements
977
+ } = state;
978
+ const {
979
+ apply = () => {},
980
+ ...detectOverflowOptions
981
+ } = evaluate(options, state);
982
+ const overflow = await platform.detectOverflow(state, detectOverflowOptions);
983
+ const side = getSide(placement);
984
+ const alignment = getAlignment(placement);
985
+ const isYAxis = getSideAxis(placement) === 'y';
986
+ const {
987
+ width,
988
+ height
989
+ } = rects.floating;
990
+ let heightSide;
991
+ let widthSide;
992
+ if (side === 'top' || side === 'bottom') {
993
+ heightSide = side;
994
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
995
+ } else {
996
+ widthSide = side;
997
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
998
+ }
999
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
1000
+ const maximumClippingWidth = width - overflow.left - overflow.right;
1001
+ const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
1002
+ const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
1003
+ const shiftData = state.middlewareData.shift;
1004
+ const noShift = !shiftData;
1005
+ let availableHeight = overflowAvailableHeight;
1006
+ let availableWidth = overflowAvailableWidth;
1007
+ if (shiftData != null && shiftData.enabled.x) {
1008
+ availableWidth = maximumClippingWidth;
1009
+ }
1010
+ if (shiftData != null && shiftData.enabled.y) {
1011
+ availableHeight = maximumClippingHeight;
1012
+ }
1013
+ if (noShift && !alignment) {
1014
+ if (isYAxis) {
1015
+ availableWidth = width - 2 * max(overflow.left, overflow.right);
1016
+ } else {
1017
+ availableHeight = height - 2 * max(overflow.top, overflow.bottom);
1018
+ }
1019
+ }
1020
+ await apply({
1021
+ ...state,
1022
+ availableWidth,
1023
+ availableHeight
1024
+ });
1025
+ const nextDimensions = await platform.getDimensions(elements.floating);
1026
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
1027
+ return {
1028
+ reset: {
1029
+ rects: true
1030
+ }
1031
+ };
1032
+ }
1033
+ return {};
1034
+ }
1035
+ };
1036
+ };
1037
+
1038
+ export { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, shift, size };