@pubinfo-pr/devtools 0.171.2 → 0.171.4

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 (369) hide show
  1. package/dist/client/assets/Navbar-Dn_FwmwT.js +218 -0
  2. package/dist/client/assets/PanelGrids-Dr3Hj3fq.js +9 -0
  3. package/dist/client/assets/SelectTabs-DGbhp-SJ.js +171 -0
  4. package/dist/client/assets/component-BYcFX5o9.js +468 -0
  5. package/dist/client/assets/core-Deo0dKjJ.js +6012 -0
  6. package/dist/client/assets/css-D-vtiAqw.js +2 -0
  7. package/dist/client/assets/css-DbgpCiOq.js +2 -0
  8. package/dist/client/assets/engine-oniguruma-BR9-eBKQ.js +392 -0
  9. package/dist/client/assets/fetch-X85SI-zj.js +1112 -0
  10. package/dist/client/assets/html-C5tHi8hG.js +2 -0
  11. package/dist/client/assets/html-mHHj5Mh3.js +9 -0
  12. package/dist/client/assets/import-8bGFSBml.js +375 -0
  13. package/dist/client/assets/{index-r9fa78NA.css → index-C1hERR5y.css} +1 -1
  14. package/dist/client/assets/{index-BCCYVO0H.js → index-C74Jw2V-.js} +3461 -1728
  15. package/dist/client/assets/javascript-CZLwsMB1.js +2 -0
  16. package/dist/client/assets/javascript-DIagQh28.js +2 -0
  17. package/dist/client/assets/json-CzPoZe0r.js +2 -0
  18. package/dist/client/assets/json-WgRhEAOB.js +2 -0
  19. package/dist/client/assets/pages-Dj7OCD93.js +300 -0
  20. package/dist/client/assets/{server-router-6GvTqPc1.css → server-router-B1AB70as.css} +2 -2
  21. package/dist/client/assets/server-router-Byd0xUzV.js +2049 -0
  22. package/dist/client/assets/typescript-CzrZyZmM.js +2 -0
  23. package/dist/client/assets/typescript-DkhbmgdN.js +2 -0
  24. package/dist/client/assets/vue-Co3JBzx2.js +27 -0
  25. package/dist/client/assets/wasm-D0Echd05.js +5 -0
  26. package/dist/client/import.svg +1 -0
  27. package/dist/client/index.html +2 -2
  28. package/dist/dirs.mjs +3 -0
  29. package/dist/{index.js → index.mjs} +518 -170
  30. package/dist/panel/{index.js → index.mjs} +39 -3
  31. package/package.json +17 -17
  32. package/dist/client/assets/Navbar-f6u8nv1A.js +0 -190
  33. package/dist/client/assets/PanelGrids-B1uPlpXo.js +0 -8
  34. package/dist/client/assets/abap-BneqOAQn.js +0 -3
  35. package/dist/client/assets/actionscript-3-JJevXHHI.js +0 -3
  36. package/dist/client/assets/ada-Sz8xeSJ2.js +0 -3
  37. package/dist/client/assets/andromeeda-B43VcKOE.js +0 -2
  38. package/dist/client/assets/angular-html-C_XNpd6d.js +0 -5
  39. package/dist/client/assets/angular-html-xcXDdDxt.js +0 -23
  40. package/dist/client/assets/angular-ts-DD9ACpiD.js +0 -24
  41. package/dist/client/assets/apache-CH7oaL9w.js +0 -3
  42. package/dist/client/assets/apex-BpA7UqIt.js +0 -3
  43. package/dist/client/assets/apl-DmHUHJpj.js +0 -16
  44. package/dist/client/assets/applescript-CINTpQFD.js +0 -3
  45. package/dist/client/assets/ara-C4GBn5cG.js +0 -3
  46. package/dist/client/assets/asciidoc-CRs92jJ9.js +0 -3
  47. package/dist/client/assets/asm-Dcn9XRtC.js +0 -3
  48. package/dist/client/assets/astro-DDh1X0zj.js +0 -17
  49. package/dist/client/assets/aurora-x-Blua-2Ng.js +0 -2
  50. package/dist/client/assets/awk-i3TwHhsk.js +0 -3
  51. package/dist/client/assets/ayu-dark-rqcwfyq7.js +0 -2
  52. package/dist/client/assets/ballerina-XubCZIu_.js +0 -3
  53. package/dist/client/assets/bat-CJDZmMbE.js +0 -3
  54. package/dist/client/assets/beancount-Bz84L4pZ.js +0 -3
  55. package/dist/client/assets/berry-CPchONJa.js +0 -3
  56. package/dist/client/assets/bibtex-DVvKgGnw.js +0 -3
  57. package/dist/client/assets/bicep-AnktATo6.js +0 -3
  58. package/dist/client/assets/blade-DSiefmOm.js +0 -20
  59. package/dist/client/assets/bsl-B5rPHHQR.js +0 -4
  60. package/dist/client/assets/c-vo15i6HS.js +0 -3
  61. package/dist/client/assets/c-z_CBvR-7.js +0 -2
  62. package/dist/client/assets/cadence-ClJ3N6y1.js +0 -3
  63. package/dist/client/assets/cairo-CibIWXXr.js +0 -4
  64. package/dist/client/assets/catppuccin-frappe-DZStY-Pp.js +0 -2
  65. package/dist/client/assets/catppuccin-latte-DN5l0gng.js +0 -2
  66. package/dist/client/assets/catppuccin-macchiato-CQ07VMBV.js +0 -2
  67. package/dist/client/assets/catppuccin-mocha-BZQavwvR.js +0 -2
  68. package/dist/client/assets/clarity-2rxwVrD_.js +0 -3
  69. package/dist/client/assets/clojure-C0jiC_f1.js +0 -3
  70. package/dist/client/assets/cmake-es1DOjpX.js +0 -3
  71. package/dist/client/assets/cmake-hgeKAf6L.js +0 -2
  72. package/dist/client/assets/cobol-D4I6b-S-.js +0 -11
  73. package/dist/client/assets/codeowners-DQKqJDHd.js +0 -3
  74. package/dist/client/assets/codeql-Dz54F1mo.js +0 -3
  75. package/dist/client/assets/coffee-De9Ahhbk.js +0 -4
  76. package/dist/client/assets/common-lisp-DMXHEDsU.js +0 -3
  77. package/dist/client/assets/component-CAiGJCHL.js +0 -517
  78. package/dist/client/assets/coq-B3EyCE2_.js +0 -3
  79. package/dist/client/assets/cpp-BZS_uuBN.js +0 -6
  80. package/dist/client/assets/cpp-DQfrxaSK.js +0 -19
  81. package/dist/client/assets/crystal-DPw2ul3_.js +0 -17
  82. package/dist/client/assets/csharp-9SPrJBrf.js +0 -3
  83. package/dist/client/assets/csharp-C36TKsxo.js +0 -2
  84. package/dist/client/assets/css-BIIpc795.js +0 -3
  85. package/dist/client/assets/css-DR-9FJvj.js +0 -2
  86. package/dist/client/assets/csv-De8OeUXw.js +0 -3
  87. package/dist/client/assets/cue-bqy7mysW.js +0 -3
  88. package/dist/client/assets/cypher-CnGGPPF8.js +0 -3
  89. package/dist/client/assets/d-_v-0qIMo.js +0 -3
  90. package/dist/client/assets/dark-plus-B5VW4UtG.js +0 -2
  91. package/dist/client/assets/dart-D7mvjjnO.js +0 -3
  92. package/dist/client/assets/dax-id_v9k01.js +0 -3
  93. package/dist/client/assets/desktop-C63sB2uB.js +0 -3
  94. package/dist/client/assets/diff-B5GyjU4M.js +0 -3
  95. package/dist/client/assets/diff-DaXl9_BL.js +0 -2
  96. package/dist/client/assets/docker-5gOQFWt6.js +0 -3
  97. package/dist/client/assets/dotenv-CBz9ZAVs.js +0 -3
  98. package/dist/client/assets/dracula-CVkeaATE.js +0 -2
  99. package/dist/client/assets/dracula-soft-CMoFpNDM.js +0 -2
  100. package/dist/client/assets/dream-maker-DA2xoZVW.js +0 -3
  101. package/dist/client/assets/edge-Rvj64lc9.js +0 -13
  102. package/dist/client/assets/elixir-CoeM723j.js +0 -6
  103. package/dist/client/assets/elm-Bd7OM9qn.js +0 -5
  104. package/dist/client/assets/emacs-lisp-BegAz5NS.js +0 -3
  105. package/dist/client/assets/erb-MtET9AJK.js +0 -26
  106. package/dist/client/assets/erlang-C2LMbUyn.js +0 -4
  107. package/dist/client/assets/everforest-dark-7_cjN5Ls.js +0 -2
  108. package/dist/client/assets/everforest-light-CZ9uP19Z.js +0 -2
  109. package/dist/client/assets/fennel-CD-2iDIW.js +0 -3
  110. package/dist/client/assets/fetch-Vqmvg8bB.js +0 -969
  111. package/dist/client/assets/fish-Dg2ABucE.js +0 -3
  112. package/dist/client/assets/fluent-DVPJ3-hM.js +0 -3
  113. package/dist/client/assets/fortran-fixed-form-2tZ26fHw.js +0 -4
  114. package/dist/client/assets/fortran-free-form-1RD0EiW1.js +0 -3
  115. package/dist/client/assets/fortran-free-form-DHi82dZv.js +0 -2
  116. package/dist/client/assets/fsharp-BLIM__N6.js +0 -4
  117. package/dist/client/assets/gdresource-BqLhMx8o.js +0 -9
  118. package/dist/client/assets/gdscript-Bf4AGzTd.js +0 -2
  119. package/dist/client/assets/gdscript-Ct_7YOkG.js +0 -3
  120. package/dist/client/assets/gdshader-D8eohhwr.js +0 -2
  121. package/dist/client/assets/gdshader-DirlFY6X.js +0 -3
  122. package/dist/client/assets/genie-AuuHiNUM.js +0 -3
  123. package/dist/client/assets/gherkin-DFKTJFbA.js +0 -3
  124. package/dist/client/assets/git-commit-CuACZQ6M.js +0 -4
  125. package/dist/client/assets/git-rebase-BpEGiwgf.js +0 -4
  126. package/dist/client/assets/github-dark-CPRAlY9A.js +0 -2
  127. package/dist/client/assets/github-dark-default-CZbASOwg.js +0 -2
  128. package/dist/client/assets/github-dark-dimmed-DhBVNpZK.js +0 -2
  129. package/dist/client/assets/github-dark-high-contrast-Sr2JvhDL.js +0 -2
  130. package/dist/client/assets/github-light-default-CcwDY4o-.js +0 -2
  131. package/dist/client/assets/github-light-high-contrast-DiYFdlG4.js +0 -2
  132. package/dist/client/assets/github-light-nsZZ__b4.js +0 -2
  133. package/dist/client/assets/gleam-BHyqnKuN.js +0 -3
  134. package/dist/client/assets/glimmer-js-BYOiNDSp.js +0 -13
  135. package/dist/client/assets/glimmer-ts-DQ3A-M4A.js +0 -13
  136. package/dist/client/assets/glsl-B38FqIrO.js +0 -4
  137. package/dist/client/assets/glsl-xv19v6C3.js +0 -3
  138. package/dist/client/assets/gnuplot-BLvFISGO.js +0 -3
  139. package/dist/client/assets/go-C3PtlDL7.js +0 -2
  140. package/dist/client/assets/go-DdZjW6By.js +0 -3
  141. package/dist/client/assets/graphql-DazeCgwe.js +0 -13
  142. package/dist/client/assets/graphql-v1D07dEi.js +0 -6
  143. package/dist/client/assets/groovy-cVQ6ZwgN.js +0 -3
  144. package/dist/client/assets/gruvbox-dark-hard-BAs6lRWB.js +0 -2
  145. package/dist/client/assets/gruvbox-dark-medium-3GYOc_7i.js +0 -2
  146. package/dist/client/assets/gruvbox-dark-soft-CLjRrw1t.js +0 -2
  147. package/dist/client/assets/gruvbox-light-hard-B5pDyJmT.js +0 -2
  148. package/dist/client/assets/gruvbox-light-medium-Czo7iHvp.js +0 -2
  149. package/dist/client/assets/gruvbox-light-soft-MdVOuSwf.js +0 -2
  150. package/dist/client/assets/hack-AkEaSIiG.js +0 -11
  151. package/dist/client/assets/haml-12DF4L6t.js +0 -4
  152. package/dist/client/assets/haml-D7SdiIb2.js +0 -9
  153. package/dist/client/assets/handlebars-BF5SsGSc.js +0 -13
  154. package/dist/client/assets/haskell-Btp_MfgK.js +0 -3
  155. package/dist/client/assets/haxe-BRg8mBSK.js +0 -3
  156. package/dist/client/assets/haxe-qVl2C22S.js +0 -2
  157. package/dist/client/assets/hcl-CApdjmWo.js +0 -3
  158. package/dist/client/assets/hjson-B8yyLN8N.js +0 -3
  159. package/dist/client/assets/hlsl-7q7KfwR3.js +0 -2
  160. package/dist/client/assets/hlsl-DWQGecR0.js +0 -3
  161. package/dist/client/assets/houston-Dq9ylkJH.js +0 -2
  162. package/dist/client/assets/html-CygGKEU-.js +0 -9
  163. package/dist/client/assets/html-XPHP1ctB.js +0 -4
  164. package/dist/client/assets/html-derivative-BRUyLBYr.js +0 -5
  165. package/dist/client/assets/html-derivative-CDHXe1rc.js +0 -4
  166. package/dist/client/assets/http-BTiGLdVM.js +0 -18
  167. package/dist/client/assets/hxml-eH6B7Ggs.js +0 -4
  168. package/dist/client/assets/hy-BeCIpdlw.js +0 -3
  169. package/dist/client/assets/imba-DpPztiU8.js +0 -3
  170. package/dist/client/assets/ini-DebGZPuX.js +0 -3
  171. package/dist/client/assets/java-CSuGW7pk.js +0 -3
  172. package/dist/client/assets/java-JqMAxu8h.js +0 -2
  173. package/dist/client/assets/javascript-D8V2UVzz.js +0 -3
  174. package/dist/client/assets/javascript-LJ6D4L7Q.js +0 -2
  175. package/dist/client/assets/jinja-DPlrL6lm.js +0 -8
  176. package/dist/client/assets/jison-0ZlyxLzz.js +0 -4
  177. package/dist/client/assets/json-DiZTWJxw.js +0 -2
  178. package/dist/client/assets/json-N1bXK1S4.js +0 -3
  179. package/dist/client/assets/json5-BJHJ0To6.js +0 -3
  180. package/dist/client/assets/jsonc-BRhkMZMN.js +0 -3
  181. package/dist/client/assets/jsonl-Dqt2JMW8.js +0 -3
  182. package/dist/client/assets/jsonnet-f3ibr2Yq.js +0 -3
  183. package/dist/client/assets/jssm-Cnr_fb09.js +0 -3
  184. package/dist/client/assets/jsx-BcRPVPD9.js +0 -3
  185. package/dist/client/assets/jsx-kOdHP25g.js +0 -2
  186. package/dist/client/assets/julia-BSZQ7UdI.js +0 -18
  187. package/dist/client/assets/kanagawa-dragon-BV9Zk8qt.js +0 -2
  188. package/dist/client/assets/kanagawa-lotus-Axn-Auo6.js +0 -2
  189. package/dist/client/assets/kanagawa-wave-DUnLhLrF.js +0 -2
  190. package/dist/client/assets/kotlin-B35H-nQ1.js +0 -3
  191. package/dist/client/assets/kusto-JpEPj3V4.js +0 -3
  192. package/dist/client/assets/laserwave-DiD8Onb6.js +0 -2
  193. package/dist/client/assets/latex-eg89ZWIS.js +0 -5
  194. package/dist/client/assets/lean-CI_7uWok.js +0 -3
  195. package/dist/client/assets/less-DYcvZ1vs.js +0 -3
  196. package/dist/client/assets/less-DyvK2mij.js +0 -2
  197. package/dist/client/assets/light-plus-m_bgcHIo.js +0 -2
  198. package/dist/client/assets/liquid-ChIPyGY6.js +0 -13
  199. package/dist/client/assets/llvm-ClGsJD4P.js +0 -3
  200. package/dist/client/assets/log-BUigt4UI.js +0 -3
  201. package/dist/client/assets/logo-BCINIXU4.js +0 -3
  202. package/dist/client/assets/lua-DE8lfN39.js +0 -4
  203. package/dist/client/assets/lua-DmTtkYij.js +0 -3
  204. package/dist/client/assets/luau-BZzhLdC_.js +0 -3
  205. package/dist/client/assets/make-kRm5bKuA.js +0 -3
  206. package/dist/client/assets/markdown-6PLSK6_0.js +0 -3
  207. package/dist/client/assets/markdown-mlSUc649.js +0 -2
  208. package/dist/client/assets/marko-DgW77q7w.js +0 -13
  209. package/dist/client/assets/material-theme-darker-C4z_i_mu.js +0 -2
  210. package/dist/client/assets/material-theme-kKgGr_7i.js +0 -2
  211. package/dist/client/assets/material-theme-lighter-DbQ48hUl.js +0 -2
  212. package/dist/client/assets/material-theme-ocean-CpswQGq-.js +0 -2
  213. package/dist/client/assets/material-theme-palenight-B9YdP00v.js +0 -2
  214. package/dist/client/assets/matlab-DFqu3muE.js +0 -3
  215. package/dist/client/assets/mdc-D-3CUGp6.js +0 -14
  216. package/dist/client/assets/mdx-CDUtDhJ1.js +0 -3
  217. package/dist/client/assets/mermaid-J0yr3y0m.js +0 -3
  218. package/dist/client/assets/min-dark-fcEqhRpI.js +0 -2
  219. package/dist/client/assets/min-light-DWVresoN.js +0 -2
  220. package/dist/client/assets/mipsasm-5ppLD5jH.js +0 -3
  221. package/dist/client/assets/mojo-Bk5yI3fr.js +0 -3
  222. package/dist/client/assets/monokai-BN_TBhb9.js +0 -2
  223. package/dist/client/assets/move-XM2padQY.js +0 -3
  224. package/dist/client/assets/narrat-C6VnUWXS.js +0 -3
  225. package/dist/client/assets/nextflow-sVcVU_R2.js +0 -3
  226. package/dist/client/assets/nginx-CtF2jNry.js +0 -5
  227. package/dist/client/assets/night-owl-B29_KAmr.js +0 -2
  228. package/dist/client/assets/nim-TErUbZAu.js +0 -20
  229. package/dist/client/assets/nix-YSTOikLh.js +0 -3
  230. package/dist/client/assets/nord-DH5uOgoE.js +0 -2
  231. package/dist/client/assets/nushell-stskKkpE.js +0 -3
  232. package/dist/client/assets/objective-c-BNhcDvrR.js +0 -3
  233. package/dist/client/assets/objective-cpp-H1Owc-ej.js +0 -3
  234. package/dist/client/assets/ocaml-BDFFD8DR.js +0 -3
  235. package/dist/client/assets/one-dark-pro-Hhca3JzB.js +0 -2
  236. package/dist/client/assets/one-light-CkAyoF0j.js +0 -2
  237. package/dist/client/assets/pages-Bx84dNCY.js +0 -239
  238. package/dist/client/assets/pascal-datMNmKx.js +0 -3
  239. package/dist/client/assets/perl-BBy5Zwm3.js +0 -16
  240. package/dist/client/assets/php-BxmWfIjG.js +0 -17
  241. package/dist/client/assets/php-Dwoa08mV.js +0 -9
  242. package/dist/client/assets/plastic-1ETRJ1D-.js +0 -2
  243. package/dist/client/assets/plsql-DdbZbPNj.js +0 -3
  244. package/dist/client/assets/po-C6c1vTCK.js +0 -3
  245. package/dist/client/assets/poimandres-CnlY1rVk.js +0 -2
  246. package/dist/client/assets/polar-2mcakGk2.js +0 -3
  247. package/dist/client/assets/postcss-DRXKdNvs.js +0 -3
  248. package/dist/client/assets/postcss-mk7NO3GE.js +0 -2
  249. package/dist/client/assets/powerquery-Bskx_J2g.js +0 -3
  250. package/dist/client/assets/powershell-BDMMRQG8.js +0 -3
  251. package/dist/client/assets/prisma-B9kjRwd3.js +0 -3
  252. package/dist/client/assets/prolog-krySb6Vx.js +0 -3
  253. package/dist/client/assets/proto-BaKE0120.js +0 -3
  254. package/dist/client/assets/pug-_0lXH97N.js +0 -11
  255. package/dist/client/assets/puppet-Do5i4j8B.js +0 -3
  256. package/dist/client/assets/purescript-BRN1yDPC.js +0 -3
  257. package/dist/client/assets/python-CSI6xDEM.js +0 -3
  258. package/dist/client/assets/python-wZG5a_HU.js +0 -2
  259. package/dist/client/assets/qml-BbSTJdwY.js +0 -4
  260. package/dist/client/assets/qmldir-CH4NwF2P.js +0 -3
  261. package/dist/client/assets/qss-Dy8PrTp1.js +0 -3
  262. package/dist/client/assets/r-B4QMIUOL.js +0 -3
  263. package/dist/client/assets/r-C_0je1kM.js +0 -2
  264. package/dist/client/assets/racket-wuRvcgGp.js +0 -3
  265. package/dist/client/assets/raku-DsVSEccV.js +0 -3
  266. package/dist/client/assets/razor-B-gWLra0.js +0 -11
  267. package/dist/client/assets/red-CSHNpN1R.js +0 -2
  268. package/dist/client/assets/reg-DYEGF8g9.js +0 -3
  269. package/dist/client/assets/regexp-BV7LsrGP.js +0 -2
  270. package/dist/client/assets/regexp-BYt9QUJK.js +0 -3
  271. package/dist/client/assets/rel-B2-IkXcx.js +0 -3
  272. package/dist/client/assets/riscv-DVzb-nnG.js +0 -3
  273. package/dist/client/assets/rose-pine-CpIPLGs4.js +0 -2
  274. package/dist/client/assets/rose-pine-dawn-BruRtD0n.js +0 -2
  275. package/dist/client/assets/rose-pine-moon-CuLUPl8L.js +0 -2
  276. package/dist/client/assets/rst-vq3PUEe9.js +0 -35
  277. package/dist/client/assets/ruby-Py1CEke6.js +0 -29
  278. package/dist/client/assets/ruby-djifmDsY.js +0 -20
  279. package/dist/client/assets/rust-DIxn70Bc.js +0 -3
  280. package/dist/client/assets/sas-Crv05x8i.js +0 -4
  281. package/dist/client/assets/sass-PfnQUa_g.js +0 -3
  282. package/dist/client/assets/scala-BBzrXTKG.js +0 -3
  283. package/dist/client/assets/scheme-YR9NA8ZM.js +0 -3
  284. package/dist/client/assets/scss-Cl-VEz3E.js +0 -3
  285. package/dist/client/assets/scss-Cw2rR0Nw.js +0 -4
  286. package/dist/client/assets/sdbl-ZdJzdy9k.js +0 -2
  287. package/dist/client/assets/sdbl-t_ZuHY19.js +0 -3
  288. package/dist/client/assets/server-router-DLDLUF9W.js +0 -8698
  289. package/dist/client/assets/shaderlab-BhQ9G_fS.js +0 -4
  290. package/dist/client/assets/shellscript-3NHz9REQ.js +0 -2
  291. package/dist/client/assets/shellscript-DudglamS.js +0 -3
  292. package/dist/client/assets/shellsession-GL5OwgNh.js +0 -4
  293. package/dist/client/assets/slack-dark-D6KJ2ZHk.js +0 -2
  294. package/dist/client/assets/slack-ochin-CgGPHUxy.js +0 -2
  295. package/dist/client/assets/smalltalk-9xhKYkIL.js +0 -3
  296. package/dist/client/assets/snazzy-light-CYNZ3aPZ.js +0 -2
  297. package/dist/client/assets/solarized-dark-C-DYAQzw.js +0 -2
  298. package/dist/client/assets/solarized-light-klFMqjBj.js +0 -2
  299. package/dist/client/assets/solidity-Ozd5FRLq.js +0 -3
  300. package/dist/client/assets/soy-DWTMTRvm.js +0 -6
  301. package/dist/client/assets/sparql-Bhv-NULD.js +0 -4
  302. package/dist/client/assets/splunk-BeKRTE5f.js +0 -3
  303. package/dist/client/assets/sql-BNXsYZV2.js +0 -3
  304. package/dist/client/assets/sql-D9X2mMUX.js +0 -2
  305. package/dist/client/assets/ssh-config-CrEKc8er.js +0 -3
  306. package/dist/client/assets/stata-BlmwGy5v.js +0 -4
  307. package/dist/client/assets/stylus-BwRZfacm.js +0 -3
  308. package/dist/client/assets/stylus-CltJUoH-.js +0 -2
  309. package/dist/client/assets/svelte-Cz0fJMJu.js +0 -13
  310. package/dist/client/assets/swift-BCxbwyiK.js +0 -3
  311. package/dist/client/assets/synthwave-84-DrmUwzTK.js +0 -2
  312. package/dist/client/assets/system-verilog-BxAPtrDd.js +0 -3
  313. package/dist/client/assets/systemd-BUuSsiDV.js +0 -3
  314. package/dist/client/assets/talonscript-Cuu-B8IR.js +0 -3
  315. package/dist/client/assets/tasl-i94Nm9X2.js +0 -3
  316. package/dist/client/assets/tcl-JtwPeyJe.js +0 -3
  317. package/dist/client/assets/templ-DJEM4Dsn.js +0 -11
  318. package/dist/client/assets/terraform-H_gFhmGE.js +0 -3
  319. package/dist/client/assets/tex-V5JgLFQ3.js +0 -4
  320. package/dist/client/assets/tex-k6SW7rO1.js +0 -3
  321. package/dist/client/assets/tokyo-night-DJ3fbRL-.js +0 -2
  322. package/dist/client/assets/toml-Czn4TMmG.js +0 -3
  323. package/dist/client/assets/ts-tags-DftD3xuW.js +0 -49
  324. package/dist/client/assets/tsv-D7JVv6cM.js +0 -3
  325. package/dist/client/assets/tsx-B7G7qOdJ.js +0 -2
  326. package/dist/client/assets/tsx-CSxn0co8.js +0 -3
  327. package/dist/client/assets/turtle-Bg9WlzE1.js +0 -2
  328. package/dist/client/assets/turtle-gL243zka.js +0 -3
  329. package/dist/client/assets/twig-BH71GbCE.js +0 -34
  330. package/dist/client/assets/typescript-D838FC1-.js +0 -2
  331. package/dist/client/assets/typescript-Dx74cANe.js +0 -3
  332. package/dist/client/assets/typespec-ChNe-9Bn.js +0 -3
  333. package/dist/client/assets/typst-lzp37gIG.js +0 -3
  334. package/dist/client/assets/v-pJSB2935.js +0 -3
  335. package/dist/client/assets/vala-DQwyfTuQ.js +0 -3
  336. package/dist/client/assets/vb-DG-y450E.js +0 -3
  337. package/dist/client/assets/verilog-CGyXGbfs.js +0 -3
  338. package/dist/client/assets/vesper-onTZvQE4.js +0 -2
  339. package/dist/client/assets/vhdl-Bmc1tQry.js +0 -3
  340. package/dist/client/assets/viml-HNAopjhZ.js +0 -3
  341. package/dist/client/assets/vitesse-black-Dpu_nmGn.js +0 -2
  342. package/dist/client/assets/vue-CtiaKG90.js +0 -29
  343. package/dist/client/assets/vue-TeT-q0PM.js +0 -8
  344. package/dist/client/assets/vue-html-Dn0drGR_.js +0 -14
  345. package/dist/client/assets/vue-vine-Cl9MyVkQ.js +0 -23
  346. package/dist/client/assets/vyper-BcdH-HiN.js +0 -3
  347. package/dist/client/assets/wasm-B7JigFSi.js +0 -3
  348. package/dist/client/assets/wasm-CGqR8-aw.js +0 -5
  349. package/dist/client/assets/wenyan-BTFknrNi.js +0 -3
  350. package/dist/client/assets/wgsl-BPUHKtQI.js +0 -3
  351. package/dist/client/assets/wikitext-DUrIafj7.js +0 -3
  352. package/dist/client/assets/wit-CQC-whBg.js +0 -3
  353. package/dist/client/assets/wolfram-DNZpEQsI.js +0 -3
  354. package/dist/client/assets/xml-CbEHzi2l.js +0 -3
  355. package/dist/client/assets/xml-DNc0do_Y.js +0 -4
  356. package/dist/client/assets/xsl-HF12enVp.js +0 -5
  357. package/dist/client/assets/yaml-C44YtPPc.js +0 -2
  358. package/dist/client/assets/yaml-QnybJTzt.js +0 -3
  359. package/dist/client/assets/zenscript-CK7CgSxa.js +0 -3
  360. package/dist/client/assets/zig-CHGlMKvF.js +0 -3
  361. package/dist/dirs.js +0 -3
  362. /package/dist/client/assets/{vitesse-dark-COIKPj8_.js → vitesse-dark-Bz6RXfkV.js} +0 -0
  363. /package/dist/client/assets/{vitesse-light-BGqXUuET.js → vitesse-light-NvDlvJl2.js} +0 -0
  364. /package/dist/{constants.d.ts → constants.d.mts} +0 -0
  365. /package/dist/{constants.js → constants.mjs} +0 -0
  366. /package/dist/{dirs.d.ts → dirs.d.mts} +0 -0
  367. /package/dist/{dirs2.js → dirs2.mjs} +0 -0
  368. /package/dist/{index.d.ts → index.d.mts} +0 -0
  369. /package/dist/panel/{index.d.ts → index.d.mts} +0 -0
@@ -0,0 +1,1112 @@
1
+ import { $ as toValue, D as onMounted, G as onScopeDispose, H as effectScope, J as ref, L as watch, O as openBlock, Q as toRef$1, T as nextTick, U as getCurrentScope, V as customRef, W as isRef, X as shallowRef, Y as shallowReadonly, Z as toRaw, b as getCurrentInstance, d as computed, et as unref, h as createElementBlock, j as renderSlot, q as readonly, y as defineComponent } from "./index-C74Jw2V-.js";
2
+ function tryOnScopeDispose(fn, failSilently) {
3
+ if (getCurrentScope()) {
4
+ onScopeDispose(fn, failSilently);
5
+ return true;
6
+ }
7
+ return false;
8
+ }
9
+ function createEventHook() {
10
+ const fns = /* @__PURE__ */ new Set();
11
+ const off = (fn) => {
12
+ fns.delete(fn);
13
+ };
14
+ const clear = () => {
15
+ fns.clear();
16
+ };
17
+ const on = (fn) => {
18
+ fns.add(fn);
19
+ const offFn = () => off(fn);
20
+ tryOnScopeDispose(offFn);
21
+ return { off: offFn };
22
+ };
23
+ const trigger = (...args) => {
24
+ return Promise.all(Array.from(fns).map((fn) => fn(...args)));
25
+ };
26
+ return {
27
+ on,
28
+ off,
29
+ trigger,
30
+ clear
31
+ };
32
+ }
33
+ var isClient = typeof window !== "undefined" && typeof document !== "undefined";
34
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
35
+ var isDef = (val) => typeof val !== "undefined";
36
+ var toString = Object.prototype.toString;
37
+ var isObject = (val) => toString.call(val) === "[object Object]";
38
+ var noop = () => {};
39
+ var isIOS = /* @__PURE__ */ getIsIOS();
40
+ function getIsIOS() {
41
+ var _window, _window2, _window3;
42
+ return isClient && !!((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.navigator) === null || _window2 === void 0 ? void 0 : _window2.maxTouchPoints) > 2 && /iPad|Macintosh/.test((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.navigator.userAgent));
43
+ }
44
+ function toRef(...args) {
45
+ if (args.length !== 1) return toRef$1(...args);
46
+ const r = args[0];
47
+ return typeof r === "function" ? readonly(customRef(() => ({
48
+ get: r,
49
+ set: noop
50
+ }))) : ref(r);
51
+ }
52
+ function createFilterWrapper(filter, fn) {
53
+ function wrapper(...args) {
54
+ return new Promise((resolve, reject) => {
55
+ Promise.resolve(filter(() => fn.apply(this, args), {
56
+ fn,
57
+ thisArg: this,
58
+ args
59
+ })).then(resolve).catch(reject);
60
+ });
61
+ }
62
+ return wrapper;
63
+ }
64
+ var bypassFilter = (invoke$1) => {
65
+ return invoke$1();
66
+ };
67
+ function pausableFilter(extendFilter = bypassFilter, options = {}) {
68
+ const { initialState = "active" } = options;
69
+ const isActive = toRef(initialState === "active");
70
+ function pause() {
71
+ isActive.value = false;
72
+ }
73
+ function resume() {
74
+ isActive.value = true;
75
+ }
76
+ const eventFilter = (...args) => {
77
+ if (isActive.value) extendFilter(...args);
78
+ };
79
+ return {
80
+ isActive: readonly(isActive),
81
+ pause,
82
+ resume,
83
+ eventFilter
84
+ };
85
+ }
86
+ function promiseTimeout(ms, throwOnTimeout = false, reason = "Timeout") {
87
+ return new Promise((resolve, reject) => {
88
+ if (throwOnTimeout) setTimeout(() => reject(reason), ms);
89
+ else setTimeout(resolve, ms);
90
+ });
91
+ }
92
+ function createSingletonPromise(fn) {
93
+ let _promise;
94
+ function wrapper() {
95
+ if (!_promise) _promise = fn();
96
+ return _promise;
97
+ }
98
+ wrapper.reset = async () => {
99
+ const _prev = _promise;
100
+ _promise = void 0;
101
+ if (_prev) await _prev;
102
+ };
103
+ return wrapper;
104
+ }
105
+ function containsProp(obj, ...props) {
106
+ return props.some((k) => k in obj);
107
+ }
108
+ function toArray(value) {
109
+ return Array.isArray(value) ? value : [value];
110
+ }
111
+ function cacheStringFunction(fn) {
112
+ const cache = Object.create(null);
113
+ return ((str) => {
114
+ return cache[str] || (cache[str] = fn(str));
115
+ });
116
+ }
117
+ var hyphenateRE = /\B([A-Z])/g;
118
+ cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
119
+ var camelizeRE = /-(\w)/g;
120
+ var camelize = cacheStringFunction((str) => {
121
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
122
+ });
123
+ function getLifeCycleTarget(target) {
124
+ return target || getCurrentInstance();
125
+ }
126
+ function createSharedComposable(composable) {
127
+ if (!isClient) return composable;
128
+ let subscribers = 0;
129
+ let state;
130
+ let scope;
131
+ const dispose = () => {
132
+ subscribers -= 1;
133
+ if (scope && subscribers <= 0) {
134
+ scope.stop();
135
+ state = void 0;
136
+ scope = void 0;
137
+ }
138
+ };
139
+ return ((...args) => {
140
+ subscribers += 1;
141
+ if (!scope) {
142
+ scope = effectScope(true);
143
+ state = scope.run(() => composable(...args));
144
+ }
145
+ tryOnScopeDispose(dispose);
146
+ return state;
147
+ });
148
+ }
149
+ /* @__NO_SIDE_EFFECTS__ */
150
+ function makeDestructurable(obj, arr) {
151
+ if (typeof Symbol !== "undefined") {
152
+ const clone = { ...obj };
153
+ Object.defineProperty(clone, Symbol.iterator, {
154
+ enumerable: false,
155
+ value() {
156
+ let index = 0;
157
+ return { next: () => ({
158
+ value: arr[index++],
159
+ done: index > arr.length
160
+ }) };
161
+ }
162
+ });
163
+ return clone;
164
+ } else return Object.assign([...arr], obj);
165
+ }
166
+ function watchWithFilter(source, cb, options = {}) {
167
+ const { eventFilter = bypassFilter, ...watchOptions } = options;
168
+ return watch(source, createFilterWrapper(eventFilter, cb), watchOptions);
169
+ }
170
+ function watchPausable(source, cb, options = {}) {
171
+ const { eventFilter: filter, initialState = "active", ...watchOptions } = options;
172
+ const { eventFilter, pause, resume, isActive } = pausableFilter(filter, { initialState });
173
+ return {
174
+ stop: watchWithFilter(source, cb, {
175
+ ...watchOptions,
176
+ eventFilter
177
+ }),
178
+ pause,
179
+ resume,
180
+ isActive
181
+ };
182
+ }
183
+ var pausableWatch = watchPausable;
184
+ function tryOnMounted(fn, sync = true, target) {
185
+ if (getLifeCycleTarget(target)) onMounted(fn, target);
186
+ else if (sync) fn();
187
+ else nextTick(fn);
188
+ }
189
+ function createUntil(r, isNot = false) {
190
+ function toMatch(condition, { flush = "sync", deep = false, timeout, throwOnTimeout } = {}) {
191
+ let stop = null;
192
+ const promises = [new Promise((resolve) => {
193
+ stop = watch(r, (v) => {
194
+ if (condition(v) !== isNot) {
195
+ if (stop) stop();
196
+ else nextTick(() => stop === null || stop === void 0 ? void 0 : stop());
197
+ resolve(v);
198
+ }
199
+ }, {
200
+ flush,
201
+ deep,
202
+ immediate: true
203
+ });
204
+ })];
205
+ if (timeout != null) promises.push(promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop === null || stop === void 0 ? void 0 : stop()));
206
+ return Promise.race(promises);
207
+ }
208
+ function toBe(value, options) {
209
+ if (!isRef(value)) return toMatch((v) => v === value, options);
210
+ const { flush = "sync", deep = false, timeout, throwOnTimeout } = options !== null && options !== void 0 ? options : {};
211
+ let stop = null;
212
+ const promises = [new Promise((resolve) => {
213
+ stop = watch([r, value], ([v1, v2]) => {
214
+ if (isNot !== (v1 === v2)) {
215
+ if (stop) stop();
216
+ else nextTick(() => stop === null || stop === void 0 ? void 0 : stop());
217
+ resolve(v1);
218
+ }
219
+ }, {
220
+ flush,
221
+ deep,
222
+ immediate: true
223
+ });
224
+ })];
225
+ if (timeout != null) promises.push(promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => {
226
+ stop === null || stop === void 0 || stop();
227
+ return toValue(r);
228
+ }));
229
+ return Promise.race(promises);
230
+ }
231
+ function toBeTruthy(options) {
232
+ return toMatch((v) => Boolean(v), options);
233
+ }
234
+ function toBeNull(options) {
235
+ return toBe(null, options);
236
+ }
237
+ function toBeUndefined(options) {
238
+ return toBe(void 0, options);
239
+ }
240
+ function toBeNaN(options) {
241
+ return toMatch(Number.isNaN, options);
242
+ }
243
+ function toContains(value, options) {
244
+ return toMatch((v) => {
245
+ const array = Array.from(v);
246
+ return array.includes(value) || array.includes(toValue(value));
247
+ }, options);
248
+ }
249
+ function changed(options) {
250
+ return changedTimes(1, options);
251
+ }
252
+ function changedTimes(n = 1, options) {
253
+ let count = -1;
254
+ return toMatch(() => {
255
+ count += 1;
256
+ return count >= n;
257
+ }, options);
258
+ }
259
+ if (Array.isArray(toValue(r))) return {
260
+ toMatch,
261
+ toContains,
262
+ changed,
263
+ changedTimes,
264
+ get not() {
265
+ return createUntil(r, !isNot);
266
+ }
267
+ };
268
+ else return {
269
+ toMatch,
270
+ toBe,
271
+ toBeTruthy,
272
+ toBeNull,
273
+ toBeNaN,
274
+ toBeUndefined,
275
+ changed,
276
+ changedTimes,
277
+ get not() {
278
+ return createUntil(r, !isNot);
279
+ }
280
+ };
281
+ }
282
+ function until(r) {
283
+ return createUntil(r);
284
+ }
285
+ function useTimeoutFn(cb, interval, options = {}) {
286
+ const { immediate = true, immediateCallback = false } = options;
287
+ const isPending = shallowRef(false);
288
+ let timer;
289
+ function clear() {
290
+ if (timer) {
291
+ clearTimeout(timer);
292
+ timer = void 0;
293
+ }
294
+ }
295
+ function stop() {
296
+ isPending.value = false;
297
+ clear();
298
+ }
299
+ function start(...args) {
300
+ if (immediateCallback) cb();
301
+ clear();
302
+ isPending.value = true;
303
+ timer = setTimeout(() => {
304
+ isPending.value = false;
305
+ timer = void 0;
306
+ cb(...args);
307
+ }, toValue(interval));
308
+ }
309
+ if (immediate) {
310
+ isPending.value = true;
311
+ if (isClient) start();
312
+ }
313
+ tryOnScopeDispose(stop);
314
+ return {
315
+ isPending: shallowReadonly(isPending),
316
+ start,
317
+ stop
318
+ };
319
+ }
320
+ function watchImmediate(source, cb, options) {
321
+ return watch(source, cb, {
322
+ ...options,
323
+ immediate: true
324
+ });
325
+ }
326
+ function createReusableTemplate(options = {}) {
327
+ const { inheritAttrs = true } = options;
328
+ const render = shallowRef();
329
+ const define = defineComponent({ setup(_, { slots }) {
330
+ return () => {
331
+ render.value = slots.default;
332
+ };
333
+ } });
334
+ const reuse = defineComponent({
335
+ inheritAttrs,
336
+ props: options.props,
337
+ setup(props, { attrs, slots }) {
338
+ return () => {
339
+ var _render$value;
340
+ if (!render.value && true) throw new Error("[VueUse] Failed to find the definition of reusable template");
341
+ const vnode = (_render$value = render.value) === null || _render$value === void 0 ? void 0 : _render$value.call(render, {
342
+ ...options.props == null ? keysToCamelKebabCase(attrs) : props,
343
+ $slots: slots
344
+ });
345
+ return inheritAttrs && (vnode === null || vnode === void 0 ? void 0 : vnode.length) === 1 ? vnode[0] : vnode;
346
+ };
347
+ }
348
+ });
349
+ return /* @__PURE__ */ makeDestructurable({
350
+ define,
351
+ reuse
352
+ }, [define, reuse]);
353
+ }
354
+ function keysToCamelKebabCase(obj) {
355
+ const newObj = {};
356
+ for (const key in obj) newObj[camelize(key)] = obj[key];
357
+ return newObj;
358
+ }
359
+ var defaultWindow = isClient ? window : void 0;
360
+ isClient && window.document;
361
+ var defaultNavigator = isClient ? window.navigator : void 0;
362
+ isClient && window.location;
363
+ function unrefElement(elRef) {
364
+ var _$el;
365
+ const plain = toValue(elRef);
366
+ return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
367
+ }
368
+ function useEventListener(...args) {
369
+ const register = (el, event, listener, options) => {
370
+ el.addEventListener(event, listener, options);
371
+ return () => el.removeEventListener(event, listener, options);
372
+ };
373
+ const firstParamTargets = computed(() => {
374
+ const test = toArray(toValue(args[0])).filter((e) => e != null);
375
+ return test.every((e) => typeof e !== "string") ? test : void 0;
376
+ });
377
+ return watchImmediate(() => {
378
+ var _firstParamTargets$va, _firstParamTargets$va2;
379
+ return [
380
+ (_firstParamTargets$va = (_firstParamTargets$va2 = firstParamTargets.value) === null || _firstParamTargets$va2 === void 0 ? void 0 : _firstParamTargets$va2.map((e) => unrefElement(e))) !== null && _firstParamTargets$va !== void 0 ? _firstParamTargets$va : [defaultWindow].filter((e) => e != null),
381
+ toArray(toValue(firstParamTargets.value ? args[1] : args[0])),
382
+ toArray(unref(firstParamTargets.value ? args[2] : args[1])),
383
+ toValue(firstParamTargets.value ? args[3] : args[2])
384
+ ];
385
+ }, ([raw_targets, raw_events, raw_listeners, raw_options], _, onCleanup) => {
386
+ if (!(raw_targets === null || raw_targets === void 0 ? void 0 : raw_targets.length) || !(raw_events === null || raw_events === void 0 ? void 0 : raw_events.length) || !(raw_listeners === null || raw_listeners === void 0 ? void 0 : raw_listeners.length)) return;
387
+ const optionsClone = isObject(raw_options) ? { ...raw_options } : raw_options;
388
+ const cleanups = raw_targets.flatMap((el) => raw_events.flatMap((event) => raw_listeners.map((listener) => register(el, event, listener, optionsClone))));
389
+ onCleanup(() => {
390
+ cleanups.forEach((fn) => fn());
391
+ });
392
+ }, { flush: "post" });
393
+ }
394
+ var _iOSWorkaround = false;
395
+ function onClickOutside(target, handler, options = {}) {
396
+ const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
397
+ if (!window$1) return controls ? {
398
+ stop: noop,
399
+ cancel: noop,
400
+ trigger: noop
401
+ } : noop;
402
+ if (isIOS && !_iOSWorkaround) {
403
+ _iOSWorkaround = true;
404
+ const listenerOptions = { passive: true };
405
+ Array.from(window$1.document.body.children).forEach((el) => el.addEventListener("click", noop, listenerOptions));
406
+ window$1.document.documentElement.addEventListener("click", noop, listenerOptions);
407
+ }
408
+ let shouldListen = true;
409
+ const shouldIgnore = (event) => {
410
+ return toValue(ignore).some((target$1) => {
411
+ if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
412
+ else {
413
+ const el = unrefElement(target$1);
414
+ return el && (event.target === el || event.composedPath().includes(el));
415
+ }
416
+ });
417
+ };
418
+ function hasMultipleRoots(target$1) {
419
+ const vm = toValue(target$1);
420
+ return vm && vm.$.subTree.shapeFlag === 16;
421
+ }
422
+ function checkMultipleRoots(target$1, event) {
423
+ const vm = toValue(target$1);
424
+ const children = vm.$.subTree && vm.$.subTree.children;
425
+ if (children == null || !Array.isArray(children)) return false;
426
+ return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
427
+ }
428
+ const listener = (event) => {
429
+ const el = unrefElement(target);
430
+ if (event.target == null) return;
431
+ if (!(el instanceof Element) && hasMultipleRoots(target) && checkMultipleRoots(target, event)) return;
432
+ if (!el || el === event.target || event.composedPath().includes(el)) return;
433
+ if ("detail" in event && event.detail === 0) shouldListen = !shouldIgnore(event);
434
+ if (!shouldListen) {
435
+ shouldListen = true;
436
+ return;
437
+ }
438
+ handler(event);
439
+ };
440
+ let isProcessingClick = false;
441
+ const cleanup = [
442
+ useEventListener(window$1, "click", (event) => {
443
+ if (!isProcessingClick) {
444
+ isProcessingClick = true;
445
+ setTimeout(() => {
446
+ isProcessingClick = false;
447
+ }, 0);
448
+ listener(event);
449
+ }
450
+ }, {
451
+ passive: true,
452
+ capture
453
+ }),
454
+ useEventListener(window$1, "pointerdown", (e) => {
455
+ const el = unrefElement(target);
456
+ shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
457
+ }, { passive: true }),
458
+ detectIframe && useEventListener(window$1, "blur", (event) => {
459
+ setTimeout(() => {
460
+ var _window$document$acti;
461
+ const el = unrefElement(target);
462
+ if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
463
+ }, 0);
464
+ }, { passive: true })
465
+ ].filter(Boolean);
466
+ const stop = () => cleanup.forEach((fn) => fn());
467
+ if (controls) return {
468
+ stop,
469
+ cancel: () => {
470
+ shouldListen = false;
471
+ },
472
+ trigger: (event) => {
473
+ shouldListen = true;
474
+ listener(event);
475
+ shouldListen = false;
476
+ }
477
+ };
478
+ return stop;
479
+ }
480
+ function useMounted() {
481
+ const isMounted = shallowRef(false);
482
+ const instance = getCurrentInstance();
483
+ if (instance) onMounted(() => {
484
+ isMounted.value = true;
485
+ }, instance);
486
+ return isMounted;
487
+ }
488
+ /* @__NO_SIDE_EFFECTS__ */
489
+ function useSupported(callback) {
490
+ const isMounted = useMounted();
491
+ return computed(() => {
492
+ isMounted.value;
493
+ return Boolean(callback());
494
+ });
495
+ }
496
+ function usePermission(permissionDesc, options = {}) {
497
+ const { controls = false, navigator: navigator$1 = defaultNavigator } = options;
498
+ const isSupported = /* @__PURE__ */ useSupported(() => navigator$1 && "permissions" in navigator$1);
499
+ const permissionStatus = shallowRef();
500
+ const desc = typeof permissionDesc === "string" ? { name: permissionDesc } : permissionDesc;
501
+ const state = shallowRef();
502
+ const update = () => {
503
+ var _permissionStatus$val, _permissionStatus$val2;
504
+ state.value = (_permissionStatus$val = (_permissionStatus$val2 = permissionStatus.value) === null || _permissionStatus$val2 === void 0 ? void 0 : _permissionStatus$val2.state) !== null && _permissionStatus$val !== void 0 ? _permissionStatus$val : "prompt";
505
+ };
506
+ useEventListener(permissionStatus, "change", update, { passive: true });
507
+ const query = createSingletonPromise(async () => {
508
+ if (!isSupported.value) return;
509
+ if (!permissionStatus.value) try {
510
+ permissionStatus.value = await navigator$1.permissions.query(desc);
511
+ } catch (_unused) {
512
+ permissionStatus.value = void 0;
513
+ } finally {
514
+ update();
515
+ }
516
+ if (controls) return toRaw(permissionStatus.value);
517
+ });
518
+ query();
519
+ if (controls) return {
520
+ state,
521
+ isSupported,
522
+ query
523
+ };
524
+ else return state;
525
+ }
526
+ function useClipboard(options = {}) {
527
+ const { navigator: navigator$1 = defaultNavigator, read = false, source, copiedDuring = 1500, legacy = false } = options;
528
+ const isClipboardApiSupported = /* @__PURE__ */ useSupported(() => navigator$1 && "clipboard" in navigator$1);
529
+ const permissionRead = usePermission("clipboard-read");
530
+ const permissionWrite = usePermission("clipboard-write");
531
+ const isSupported = computed(() => isClipboardApiSupported.value || legacy);
532
+ const text = shallowRef("");
533
+ const copied = shallowRef(false);
534
+ const timeout = useTimeoutFn(() => copied.value = false, copiedDuring, { immediate: false });
535
+ async function updateText() {
536
+ let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionRead.value));
537
+ if (!useLegacy) try {
538
+ text.value = await navigator$1.clipboard.readText();
539
+ } catch (_unused) {
540
+ useLegacy = true;
541
+ }
542
+ if (useLegacy) text.value = legacyRead();
543
+ }
544
+ if (isSupported.value && read) useEventListener(["copy", "cut"], updateText, { passive: true });
545
+ async function copy(value = toValue(source)) {
546
+ if (isSupported.value && value != null) {
547
+ let useLegacy = !(isClipboardApiSupported.value && isAllowed(permissionWrite.value));
548
+ if (!useLegacy) try {
549
+ await navigator$1.clipboard.writeText(value);
550
+ } catch (_unused2) {
551
+ useLegacy = true;
552
+ }
553
+ if (useLegacy) legacyCopy(value);
554
+ text.value = value;
555
+ copied.value = true;
556
+ timeout.start();
557
+ }
558
+ }
559
+ function legacyCopy(value) {
560
+ const ta = document.createElement("textarea");
561
+ ta.value = value;
562
+ ta.style.position = "absolute";
563
+ ta.style.opacity = "0";
564
+ ta.setAttribute("readonly", "");
565
+ document.body.appendChild(ta);
566
+ ta.select();
567
+ document.execCommand("copy");
568
+ ta.remove();
569
+ }
570
+ function legacyRead() {
571
+ var _document$getSelectio, _document, _document$getSelectio2;
572
+ return (_document$getSelectio = (_document = document) === null || _document === void 0 || (_document$getSelectio2 = _document.getSelection) === null || _document$getSelectio2 === void 0 || (_document$getSelectio2 = _document$getSelectio2.call(_document)) === null || _document$getSelectio2 === void 0 ? void 0 : _document$getSelectio2.toString()) !== null && _document$getSelectio !== void 0 ? _document$getSelectio : "";
573
+ }
574
+ function isAllowed(status) {
575
+ return status === "granted" || status === "prompt";
576
+ }
577
+ return {
578
+ isSupported,
579
+ text: readonly(text),
580
+ copied: readonly(copied),
581
+ copy
582
+ };
583
+ }
584
+ function cloneFnJSON(source) {
585
+ return JSON.parse(JSON.stringify(source));
586
+ }
587
+ var _global = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
588
+ var globalKey = "__vueuse_ssr_handlers__";
589
+ var handlers = /* @__PURE__ */ getHandlers();
590
+ function getHandlers() {
591
+ if (!(globalKey in _global)) _global[globalKey] = _global[globalKey] || {};
592
+ return _global[globalKey];
593
+ }
594
+ function getSSRHandler(key, fallback) {
595
+ return handlers[key] || fallback;
596
+ }
597
+ function guessSerializerType(rawInit) {
598
+ return rawInit == null ? "any" : rawInit instanceof Set ? "set" : rawInit instanceof Map ? "map" : rawInit instanceof Date ? "date" : typeof rawInit === "boolean" ? "boolean" : typeof rawInit === "string" ? "string" : typeof rawInit === "object" ? "object" : !Number.isNaN(rawInit) ? "number" : "any";
599
+ }
600
+ var StorageSerializers = {
601
+ boolean: {
602
+ read: (v) => v === "true",
603
+ write: (v) => String(v)
604
+ },
605
+ object: {
606
+ read: (v) => JSON.parse(v),
607
+ write: (v) => JSON.stringify(v)
608
+ },
609
+ number: {
610
+ read: (v) => Number.parseFloat(v),
611
+ write: (v) => String(v)
612
+ },
613
+ any: {
614
+ read: (v) => v,
615
+ write: (v) => String(v)
616
+ },
617
+ string: {
618
+ read: (v) => v,
619
+ write: (v) => String(v)
620
+ },
621
+ map: {
622
+ read: (v) => new Map(JSON.parse(v)),
623
+ write: (v) => JSON.stringify(Array.from(v.entries()))
624
+ },
625
+ set: {
626
+ read: (v) => new Set(JSON.parse(v)),
627
+ write: (v) => JSON.stringify(Array.from(v))
628
+ },
629
+ date: {
630
+ read: (v) => new Date(v),
631
+ write: (v) => v.toISOString()
632
+ }
633
+ };
634
+ var customStorageEventName = "vueuse-storage";
635
+ function useStorage(key, defaults$1, storage, options = {}) {
636
+ var _options$serializer;
637
+ const { flush = "pre", deep = true, listenToStorageChanges = true, writeDefaults = true, mergeDefaults = false, shallow, window: window$1 = defaultWindow, eventFilter, onError = (e) => {
638
+ console.error(e);
639
+ }, initOnMounted } = options;
640
+ const data = (shallow ? shallowRef : ref)(typeof defaults$1 === "function" ? defaults$1() : defaults$1);
641
+ const keyComputed = computed(() => toValue(key));
642
+ if (!storage) try {
643
+ storage = getSSRHandler("getDefaultStorage", () => defaultWindow === null || defaultWindow === void 0 ? void 0 : defaultWindow.localStorage)();
644
+ } catch (e) {
645
+ onError(e);
646
+ }
647
+ if (!storage) return data;
648
+ const rawInit = toValue(defaults$1);
649
+ const type = guessSerializerType(rawInit);
650
+ const serializer = (_options$serializer = options.serializer) !== null && _options$serializer !== void 0 ? _options$serializer : StorageSerializers[type];
651
+ const { pause: pauseWatch, resume: resumeWatch } = pausableWatch(data, (newValue) => write(newValue), {
652
+ flush,
653
+ deep,
654
+ eventFilter
655
+ });
656
+ watch(keyComputed, () => update(), { flush });
657
+ let firstMounted = false;
658
+ const onStorageEvent = (ev) => {
659
+ if (initOnMounted && !firstMounted) return;
660
+ update(ev);
661
+ };
662
+ const onStorageCustomEvent = (ev) => {
663
+ if (initOnMounted && !firstMounted) return;
664
+ updateFromCustomEvent(ev);
665
+ };
666
+ if (window$1 && listenToStorageChanges) if (storage instanceof Storage) useEventListener(window$1, "storage", onStorageEvent, { passive: true });
667
+ else useEventListener(window$1, customStorageEventName, onStorageCustomEvent);
668
+ if (initOnMounted) tryOnMounted(() => {
669
+ firstMounted = true;
670
+ update();
671
+ });
672
+ else update();
673
+ function dispatchWriteEvent(oldValue, newValue) {
674
+ if (window$1) {
675
+ const payload = {
676
+ key: keyComputed.value,
677
+ oldValue,
678
+ newValue,
679
+ storageArea: storage
680
+ };
681
+ window$1.dispatchEvent(storage instanceof Storage ? new StorageEvent("storage", payload) : new CustomEvent(customStorageEventName, { detail: payload }));
682
+ }
683
+ }
684
+ function write(v) {
685
+ try {
686
+ const oldValue = storage.getItem(keyComputed.value);
687
+ if (v == null) {
688
+ dispatchWriteEvent(oldValue, null);
689
+ storage.removeItem(keyComputed.value);
690
+ } else {
691
+ const serialized = serializer.write(v);
692
+ if (oldValue !== serialized) {
693
+ storage.setItem(keyComputed.value, serialized);
694
+ dispatchWriteEvent(oldValue, serialized);
695
+ }
696
+ }
697
+ } catch (e) {
698
+ onError(e);
699
+ }
700
+ }
701
+ function read(event) {
702
+ const rawValue = event ? event.newValue : storage.getItem(keyComputed.value);
703
+ if (rawValue == null) {
704
+ if (writeDefaults && rawInit != null) storage.setItem(keyComputed.value, serializer.write(rawInit));
705
+ return rawInit;
706
+ } else if (!event && mergeDefaults) {
707
+ const value = serializer.read(rawValue);
708
+ if (typeof mergeDefaults === "function") return mergeDefaults(value, rawInit);
709
+ else if (type === "object" && !Array.isArray(value)) return {
710
+ ...rawInit,
711
+ ...value
712
+ };
713
+ return value;
714
+ } else if (typeof rawValue !== "string") return rawValue;
715
+ else return serializer.read(rawValue);
716
+ }
717
+ function update(event) {
718
+ if (event && event.storageArea !== storage) return;
719
+ if (event && event.key == null) {
720
+ data.value = rawInit;
721
+ return;
722
+ }
723
+ if (event && event.key !== keyComputed.value) return;
724
+ pauseWatch();
725
+ try {
726
+ const serializedData = serializer.write(data.value);
727
+ if (event === void 0 || (event === null || event === void 0 ? void 0 : event.newValue) !== serializedData) data.value = read(event);
728
+ } catch (e) {
729
+ onError(e);
730
+ } finally {
731
+ if (event) nextTick(resumeWatch);
732
+ else resumeWatch();
733
+ }
734
+ }
735
+ function updateFromCustomEvent(event) {
736
+ update(event.detail);
737
+ }
738
+ return data;
739
+ }
740
+ function useResizeObserver(target, callback, options = {}) {
741
+ const { window: window$1 = defaultWindow, ...observerOptions } = options;
742
+ let observer;
743
+ const isSupported = /* @__PURE__ */ useSupported(() => window$1 && "ResizeObserver" in window$1);
744
+ const cleanup = () => {
745
+ if (observer) {
746
+ observer.disconnect();
747
+ observer = void 0;
748
+ }
749
+ };
750
+ const stopWatch = watch(computed(() => {
751
+ const _targets = toValue(target);
752
+ return Array.isArray(_targets) ? _targets.map((el) => unrefElement(el)) : [unrefElement(_targets)];
753
+ }), (els) => {
754
+ cleanup();
755
+ if (isSupported.value && window$1) {
756
+ observer = new ResizeObserver(callback);
757
+ for (const _el of els) if (_el) observer.observe(_el, observerOptions);
758
+ }
759
+ }, {
760
+ immediate: true,
761
+ flush: "post"
762
+ });
763
+ const stop = () => {
764
+ cleanup();
765
+ stopWatch();
766
+ };
767
+ tryOnScopeDispose(stop);
768
+ return {
769
+ isSupported,
770
+ stop
771
+ };
772
+ }
773
+ function useElementSize(target, initialSize = {
774
+ width: 0,
775
+ height: 0
776
+ }, options = {}) {
777
+ const { window: window$1 = defaultWindow, box = "content-box" } = options;
778
+ const isSVG = computed(() => {
779
+ var _unrefElement;
780
+ return (_unrefElement = unrefElement(target)) === null || _unrefElement === void 0 || (_unrefElement = _unrefElement.namespaceURI) === null || _unrefElement === void 0 ? void 0 : _unrefElement.includes("svg");
781
+ });
782
+ const width = shallowRef(initialSize.width);
783
+ const height = shallowRef(initialSize.height);
784
+ const { stop: stop1 } = useResizeObserver(target, ([entry]) => {
785
+ const boxSize = box === "border-box" ? entry.borderBoxSize : box === "content-box" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;
786
+ if (window$1 && isSVG.value) {
787
+ const $elem = unrefElement(target);
788
+ if ($elem) {
789
+ const rect = $elem.getBoundingClientRect();
790
+ width.value = rect.width;
791
+ height.value = rect.height;
792
+ }
793
+ } else if (boxSize) {
794
+ const formatBoxSize = toArray(boxSize);
795
+ width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);
796
+ height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);
797
+ } else {
798
+ width.value = entry.contentRect.width;
799
+ height.value = entry.contentRect.height;
800
+ }
801
+ }, options);
802
+ tryOnMounted(() => {
803
+ const ele = unrefElement(target);
804
+ if (ele) {
805
+ width.value = "offsetWidth" in ele ? ele.offsetWidth : initialSize.width;
806
+ height.value = "offsetHeight" in ele ? ele.offsetHeight : initialSize.height;
807
+ }
808
+ });
809
+ const stop2 = watch(() => unrefElement(target), (ele) => {
810
+ width.value = ele ? initialSize.width : 0;
811
+ height.value = ele ? initialSize.height : 0;
812
+ });
813
+ function stop() {
814
+ stop1();
815
+ stop2();
816
+ }
817
+ return {
818
+ width,
819
+ height,
820
+ stop
821
+ };
822
+ }
823
+ var payloadMapping = {
824
+ json: "application/json",
825
+ text: "text/plain"
826
+ };
827
+ function isFetchOptions(obj) {
828
+ return obj && containsProp(obj, "immediate", "refetch", "initialData", "timeout", "beforeFetch", "afterFetch", "onFetchError", "fetch", "updateDataOnError");
829
+ }
830
+ function headersToObject(headers) {
831
+ if (typeof Headers !== "undefined" && headers instanceof Headers) return Object.fromEntries(headers.entries());
832
+ return headers;
833
+ }
834
+ function useFetch(url, ...args) {
835
+ var _defaultWindow$fetch, _globalThis;
836
+ const supportsAbort = typeof AbortController === "function";
837
+ let fetchOptions = {};
838
+ let options = {
839
+ immediate: true,
840
+ refetch: false,
841
+ timeout: 0,
842
+ updateDataOnError: false
843
+ };
844
+ const config = {
845
+ method: "GET",
846
+ type: "text",
847
+ payload: void 0
848
+ };
849
+ if (args.length > 0) if (isFetchOptions(args[0])) options = {
850
+ ...options,
851
+ ...args[0]
852
+ };
853
+ else fetchOptions = args[0];
854
+ if (args.length > 1) {
855
+ if (isFetchOptions(args[1])) options = {
856
+ ...options,
857
+ ...args[1]
858
+ };
859
+ }
860
+ const { fetch = (_defaultWindow$fetch = defaultWindow === null || defaultWindow === void 0 ? void 0 : defaultWindow.fetch) !== null && _defaultWindow$fetch !== void 0 ? _defaultWindow$fetch : (_globalThis = globalThis) === null || _globalThis === void 0 ? void 0 : _globalThis.fetch, initialData, timeout } = options;
861
+ const responseEvent = createEventHook();
862
+ const errorEvent = createEventHook();
863
+ const finallyEvent = createEventHook();
864
+ const isFinished = shallowRef(false);
865
+ const isFetching = shallowRef(false);
866
+ const aborted = shallowRef(false);
867
+ const statusCode = shallowRef(null);
868
+ const response = shallowRef(null);
869
+ const error = shallowRef(null);
870
+ const data = shallowRef(initialData || null);
871
+ const canAbort = computed(() => supportsAbort && isFetching.value);
872
+ let controller;
873
+ let timer;
874
+ const abort = (reason) => {
875
+ if (supportsAbort) {
876
+ controller === null || controller === void 0 || controller.abort(reason);
877
+ controller = new AbortController();
878
+ controller.signal.onabort = () => aborted.value = true;
879
+ fetchOptions = {
880
+ ...fetchOptions,
881
+ signal: controller.signal
882
+ };
883
+ }
884
+ };
885
+ const loading = (isLoading) => {
886
+ isFetching.value = isLoading;
887
+ isFinished.value = !isLoading;
888
+ };
889
+ if (timeout) timer = useTimeoutFn(abort, timeout, { immediate: false });
890
+ let executeCounter = 0;
891
+ const execute = async (throwOnFailed = false) => {
892
+ var _context$options;
893
+ abort();
894
+ loading(true);
895
+ error.value = null;
896
+ statusCode.value = null;
897
+ aborted.value = false;
898
+ executeCounter += 1;
899
+ const currentExecuteCounter = executeCounter;
900
+ const defaultFetchOptions = {
901
+ method: config.method,
902
+ headers: {}
903
+ };
904
+ const payload = toValue(config.payload);
905
+ if (payload) {
906
+ var _payloadMapping$confi;
907
+ const headers = headersToObject(defaultFetchOptions.headers);
908
+ const proto = Object.getPrototypeOf(payload);
909
+ if (!config.payloadType && payload && (proto === Object.prototype || Array.isArray(proto)) && !(payload instanceof FormData)) config.payloadType = "json";
910
+ if (config.payloadType) headers["Content-Type"] = (_payloadMapping$confi = payloadMapping[config.payloadType]) !== null && _payloadMapping$confi !== void 0 ? _payloadMapping$confi : config.payloadType;
911
+ defaultFetchOptions.body = config.payloadType === "json" ? JSON.stringify(payload) : payload;
912
+ }
913
+ let isCanceled = false;
914
+ const context = {
915
+ url: toValue(url),
916
+ options: {
917
+ ...defaultFetchOptions,
918
+ ...fetchOptions
919
+ },
920
+ cancel: () => {
921
+ isCanceled = true;
922
+ }
923
+ };
924
+ if (options.beforeFetch) Object.assign(context, await options.beforeFetch(context));
925
+ if (isCanceled || !fetch) {
926
+ loading(false);
927
+ return Promise.resolve(null);
928
+ }
929
+ let responseData = null;
930
+ if (timer) timer.start();
931
+ return fetch(context.url, {
932
+ ...defaultFetchOptions,
933
+ ...context.options,
934
+ headers: {
935
+ ...headersToObject(defaultFetchOptions.headers),
936
+ ...headersToObject((_context$options = context.options) === null || _context$options === void 0 ? void 0 : _context$options.headers)
937
+ }
938
+ }).then(async (fetchResponse) => {
939
+ response.value = fetchResponse;
940
+ statusCode.value = fetchResponse.status;
941
+ responseData = await fetchResponse.clone()[config.type]();
942
+ if (!fetchResponse.ok) {
943
+ data.value = initialData || null;
944
+ throw new Error(fetchResponse.statusText);
945
+ }
946
+ if (options.afterFetch) ({data: responseData} = await options.afterFetch({
947
+ data: responseData,
948
+ response: fetchResponse,
949
+ context,
950
+ execute
951
+ }));
952
+ data.value = responseData;
953
+ responseEvent.trigger(fetchResponse);
954
+ return fetchResponse;
955
+ }).catch(async (fetchError) => {
956
+ let errorData = fetchError.message || fetchError.name;
957
+ if (options.onFetchError) ({error: errorData, data: responseData} = await options.onFetchError({
958
+ data: responseData,
959
+ error: fetchError,
960
+ response: response.value,
961
+ context,
962
+ execute
963
+ }));
964
+ error.value = errorData;
965
+ if (options.updateDataOnError) data.value = responseData;
966
+ errorEvent.trigger(fetchError);
967
+ if (throwOnFailed) throw fetchError;
968
+ return null;
969
+ }).finally(() => {
970
+ if (currentExecuteCounter === executeCounter) loading(false);
971
+ if (timer) timer.stop();
972
+ finallyEvent.trigger(null);
973
+ });
974
+ };
975
+ const refetch = toRef(options.refetch);
976
+ watch([refetch, toRef(url)], ([refetch$1]) => refetch$1 && execute(), { deep: true });
977
+ const shell = {
978
+ isFinished: readonly(isFinished),
979
+ isFetching: readonly(isFetching),
980
+ statusCode,
981
+ response,
982
+ error,
983
+ data,
984
+ canAbort,
985
+ aborted,
986
+ abort,
987
+ execute,
988
+ onFetchResponse: responseEvent.on,
989
+ onFetchError: errorEvent.on,
990
+ onFetchFinally: finallyEvent.on,
991
+ get: setMethod("GET"),
992
+ put: setMethod("PUT"),
993
+ post: setMethod("POST"),
994
+ delete: setMethod("DELETE"),
995
+ patch: setMethod("PATCH"),
996
+ head: setMethod("HEAD"),
997
+ options: setMethod("OPTIONS"),
998
+ json: setType("json"),
999
+ text: setType("text"),
1000
+ blob: setType("blob"),
1001
+ arrayBuffer: setType("arrayBuffer"),
1002
+ formData: setType("formData")
1003
+ };
1004
+ function setMethod(method) {
1005
+ return (payload, payloadType) => {
1006
+ if (!isFetching.value) {
1007
+ config.method = method;
1008
+ config.payload = payload;
1009
+ config.payloadType = payloadType;
1010
+ if (isRef(config.payload)) watch([refetch, toRef(config.payload)], ([refetch$1]) => refetch$1 && execute(), { deep: true });
1011
+ return {
1012
+ ...shell,
1013
+ then(onFulfilled, onRejected) {
1014
+ return waitUntilFinished().then(onFulfilled, onRejected);
1015
+ }
1016
+ };
1017
+ }
1018
+ };
1019
+ }
1020
+ function waitUntilFinished() {
1021
+ return new Promise((resolve, reject) => {
1022
+ until(isFinished).toBe(true).then(() => resolve(shell)).catch(reject);
1023
+ });
1024
+ }
1025
+ function setType(type) {
1026
+ return () => {
1027
+ if (!isFetching.value) {
1028
+ config.type = type;
1029
+ return {
1030
+ ...shell,
1031
+ then(onFulfilled, onRejected) {
1032
+ return waitUntilFinished().then(onFulfilled, onRejected);
1033
+ }
1034
+ };
1035
+ }
1036
+ };
1037
+ }
1038
+ if (options.immediate) Promise.resolve().then(() => execute());
1039
+ return {
1040
+ ...shell,
1041
+ then(onFulfilled, onRejected) {
1042
+ return waitUntilFinished().then(onFulfilled, onRejected);
1043
+ }
1044
+ };
1045
+ }
1046
+ function useLocalStorage(key, initialValue, options = {}) {
1047
+ const { window: window$1 = defaultWindow } = options;
1048
+ return useStorage(key, initialValue, window$1 === null || window$1 === void 0 ? void 0 : window$1.localStorage, options);
1049
+ }
1050
+ Number.POSITIVE_INFINITY;
1051
+ function useVModel(props, key, emit, options = {}) {
1052
+ var _vm$$emit, _vm$proxy;
1053
+ const { clone = false, passive = false, eventName, deep = false, defaultValue, shouldEmit } = options;
1054
+ const vm = getCurrentInstance();
1055
+ const _emit = emit || (vm === null || vm === void 0 ? void 0 : vm.emit) || (vm === null || vm === void 0 || (_vm$$emit = vm.$emit) === null || _vm$$emit === void 0 ? void 0 : _vm$$emit.bind(vm)) || (vm === null || vm === void 0 || (_vm$proxy = vm.proxy) === null || _vm$proxy === void 0 || (_vm$proxy = _vm$proxy.$emit) === null || _vm$proxy === void 0 ? void 0 : _vm$proxy.bind(vm === null || vm === void 0 ? void 0 : vm.proxy));
1056
+ let event = eventName;
1057
+ if (!key) key = "modelValue";
1058
+ event = event || `update:${key.toString()}`;
1059
+ const cloneFn = (val) => !clone ? val : typeof clone === "function" ? clone(val) : cloneFnJSON(val);
1060
+ const getValue$1 = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;
1061
+ const triggerEmit = (value) => {
1062
+ if (shouldEmit) {
1063
+ if (shouldEmit(value)) _emit(event, value);
1064
+ } else _emit(event, value);
1065
+ };
1066
+ if (passive) {
1067
+ const proxy = ref(getValue$1());
1068
+ let isUpdating = false;
1069
+ watch(() => props[key], (v) => {
1070
+ if (!isUpdating) {
1071
+ isUpdating = true;
1072
+ proxy.value = cloneFn(v);
1073
+ nextTick(() => isUpdating = false);
1074
+ }
1075
+ });
1076
+ watch(proxy, (v) => {
1077
+ if (!isUpdating && (v !== props[key] || deep)) triggerEmit(v);
1078
+ }, { deep });
1079
+ return proxy;
1080
+ } else return computed({
1081
+ get() {
1082
+ return getValue$1();
1083
+ },
1084
+ set(value) {
1085
+ triggerEmit(value);
1086
+ }
1087
+ });
1088
+ }
1089
+ var _plugin_vue_export_helper_default = (sfc, props) => {
1090
+ const target = sfc.__vccOpts || sfc;
1091
+ for (const [key, val] of props) target[key] = val;
1092
+ return target;
1093
+ };
1094
+ var _hoisted_1 = { class: "n-badge" };
1095
+ var Badge_default = /* @__PURE__ */ defineComponent({
1096
+ name: "Badge",
1097
+ __name: "Badge",
1098
+ setup(__props) {
1099
+ return (_ctx, _cache) => {
1100
+ return openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "default")]);
1101
+ };
1102
+ }
1103
+ });
1104
+ var API_ROOT = "/__pubinfo_devtools_api";
1105
+ const overviewFetch = useFetch(`${API_ROOT}/overview`, { immediate: false }).json();
1106
+ const apiListFetch = useFetch(`${API_ROOT}/api-list`, { immediate: false }).json();
1107
+ const componentUsageFetch = useFetch(`${API_ROOT}/component-usage`, { immediate: false }).json();
1108
+ const importUsageFetch = useFetch(`${API_ROOT}/import-usage`, { immediate: false }).json();
1109
+ function usePackageVersion(packageName) {
1110
+ return useFetch(`${API_ROOT}/package-version?package=${encodeURIComponent(packageName)}`, { immediate: false }).json();
1111
+ }
1112
+ export { usePackageVersion as a, createReusableTemplate as c, useElementSize as d, useLocalStorage as f, createSharedComposable as h, overviewFetch as i, onClickOutside as l, createEventHook as m, componentUsageFetch as n, Badge_default as o, useVModel as p, importUsageFetch as r, _plugin_vue_export_helper_default as s, apiListFetch as t, useClipboard as u };