@fangzhongya/vue-archive 0.1.21 → 0.1.23

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 (341) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  2. package/dist/_virtual/_commonjsHelpers.js +6 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
  4. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  5. package/dist/_virtual/common.cjs +1 -0
  6. package/dist/_virtual/common.js +7 -0
  7. package/dist/_virtual/core.cjs +1 -0
  8. package/dist/_virtual/core.js +7 -0
  9. package/dist/index.css +1 -2
  10. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.cjs +1 -0
  11. package/dist/node_modules/.pnpm/@highlightjs_vue-plugin@2.1_dace39d2ab17d71b087de9a32848566a/node_modules/@highlightjs/vue-plugin/dist/highlightjs-vue.esm.min.js +31 -0
  12. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.cjs +1 -0
  13. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/common.js +5 -0
  14. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.cjs +1 -0
  15. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +5 -0
  16. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.cjs +1 -0
  17. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/common.js +47 -0
  18. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.cjs +3 -0
  19. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +1063 -0
  20. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.cjs +1 -0
  21. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/bash.js +383 -0
  22. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.cjs +1 -0
  23. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/c.js +283 -0
  24. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.cjs +1 -0
  25. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/cpp.js +527 -0
  26. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.cjs +1 -0
  27. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/csharp.js +388 -0
  28. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.cjs +1 -0
  29. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/css.js +929 -0
  30. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.cjs +1 -0
  31. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/diff.js +60 -0
  32. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.cjs +1 -0
  33. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/go.js +157 -0
  34. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.cjs +1 -0
  35. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/graphql.js +76 -0
  36. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.cjs +1 -0
  37. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ini.js +113 -0
  38. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.cjs +1 -0
  39. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/java.js +246 -0
  40. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.cjs +1 -0
  41. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/javascript.js +664 -0
  42. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.cjs +1 -0
  43. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/json.js +44 -0
  44. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.cjs +2 -0
  45. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/kotlin.js +248 -0
  46. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.cjs +1 -0
  47. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/less.js +998 -0
  48. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.cjs +1 -0
  49. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/lua.js +65 -0
  50. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.cjs +1 -0
  51. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/makefile.js +73 -0
  52. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.cjs +1 -0
  53. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/markdown.js +222 -0
  54. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.cjs +1 -0
  55. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/objectivec.js +243 -0
  56. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.cjs +1 -0
  57. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/perl.js +475 -0
  58. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.cjs +1 -0
  59. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php-template.js +53 -0
  60. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.cjs +2 -0
  61. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/php.js +572 -0
  62. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.cjs +1 -0
  63. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/plaintext.js +19 -0
  64. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.cjs +1 -0
  65. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python-repl.js +32 -0
  66. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.cjs +1 -0
  67. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/python.js +405 -0
  68. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.cjs +1 -0
  69. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/r.js +213 -0
  70. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.cjs +1 -0
  71. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/ruby.js +394 -0
  72. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.cjs +1 -0
  73. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/rust.js +311 -0
  74. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.cjs +1 -0
  75. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/scss.js +914 -0
  76. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.cjs +1 -0
  77. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/shell.js +31 -0
  78. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.cjs +1 -0
  79. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/sql.js +621 -0
  80. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.cjs +1 -0
  81. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/swift.js +805 -0
  82. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.cjs +1 -0
  83. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/typescript.js +759 -0
  84. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.cjs +1 -0
  85. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/vbnet.js +128 -0
  86. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.cjs +1 -0
  87. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/wasm.js +120 -0
  88. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.cjs +1 -0
  89. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/xml.js +225 -0
  90. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.cjs +1 -0
  91. package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/languages/yaml.js +189 -0
  92. package/dist/packages/components/aside/index.vue.cjs +1 -0
  93. package/dist/packages/components/aside/index.vue.js +98 -0
  94. package/dist/packages/components/aside/index.vue2.cjs +1 -0
  95. package/dist/packages/components/aside/index.vue2.js +4 -0
  96. package/dist/packages/components/boxurl/index.vue.cjs +1 -0
  97. package/dist/packages/components/boxurl/index.vue.js +62 -0
  98. package/dist/packages/components/boxurl/index.vue2.cjs +1 -0
  99. package/dist/packages/components/boxurl/index.vue2.js +4 -0
  100. package/dist/packages/components/choice/choice.vue.cjs +1 -0
  101. package/dist/packages/components/choice/choice.vue.js +46 -0
  102. package/dist/packages/components/choice/choice.vue2.cjs +1 -0
  103. package/dist/packages/components/choice/choice.vue2.js +4 -0
  104. package/dist/packages/components/choice/index.vue.cjs +1 -0
  105. package/dist/packages/components/choice/index.vue.js +87 -0
  106. package/dist/packages/components/choice/index.vue2.cjs +1 -0
  107. package/dist/packages/components/choice/index.vue2.js +4 -0
  108. package/dist/packages/components/code/highlight.vue.cjs +1 -0
  109. package/dist/packages/components/code/highlight.vue.js +16 -0
  110. package/dist/packages/components/code/highlight.vue2.cjs +1 -0
  111. package/dist/packages/components/code/highlight.vue2.js +20 -0
  112. package/dist/packages/components/code/index.vue.cjs +1 -0
  113. package/dist/packages/components/code/index.vue.js +115 -0
  114. package/dist/packages/components/code/index.vue2.cjs +1 -0
  115. package/dist/packages/components/code/index.vue2.js +4 -0
  116. package/dist/packages/components/compo/code.vue.cjs +1 -0
  117. package/dist/packages/components/compo/code.vue.js +21 -0
  118. package/dist/packages/components/compo/code.vue3.cjs +1 -0
  119. package/dist/packages/components/compo/code.vue3.js +5 -0
  120. package/dist/packages/components/compo/ftable.vue.cjs +1 -0
  121. package/dist/packages/components/compo/ftable.vue.js +57 -0
  122. package/dist/packages/components/compo/ftable.vue2.cjs +1 -0
  123. package/dist/packages/components/compo/ftable.vue2.js +4 -0
  124. package/dist/packages/components/compo/index.cjs +1 -0
  125. package/dist/packages/components/compo/index.js +127 -0
  126. package/dist/packages/components/compo/index.vue.cjs +1 -0
  127. package/dist/packages/components/compo/index.vue.js +79 -0
  128. package/dist/packages/components/compo/index.vue2.cjs +1 -0
  129. package/dist/packages/components/compo/index.vue2.js +4 -0
  130. package/dist/packages/components/compo/info-top.vue.cjs +1 -0
  131. package/dist/packages/components/compo/info-top.vue.js +32 -0
  132. package/dist/packages/components/compo/info-top.vue2.cjs +1 -0
  133. package/dist/packages/components/compo/info-top.vue2.js +4 -0
  134. package/dist/packages/components/compo/info.vue.cjs +1 -0
  135. package/dist/packages/components/compo/info.vue.js +41 -0
  136. package/dist/packages/components/compo/info.vue2.cjs +1 -0
  137. package/dist/packages/components/compo/info.vue2.js +4 -0
  138. package/dist/packages/components/compo/props.vue.cjs +1 -0
  139. package/dist/packages/components/compo/props.vue.js +87 -0
  140. package/dist/packages/components/compo/props.vue2.cjs +1 -0
  141. package/dist/packages/components/compo/props.vue2.js +4 -0
  142. package/dist/packages/components/compo/top.cjs +1 -0
  143. package/dist/packages/components/compo/top.js +148 -0
  144. package/dist/packages/components/header/index.vue.cjs +1 -0
  145. package/dist/packages/components/header/index.vue.js +10 -0
  146. package/dist/packages/components/main/index.vue.cjs +1 -0
  147. package/dist/packages/components/main/index.vue.js +68 -0
  148. package/dist/packages/components/main/index.vue2.cjs +1 -0
  149. package/dist/packages/components/main/index.vue2.js +4 -0
  150. package/dist/packages/components/md/index.vue.cjs +1 -0
  151. package/dist/packages/components/md/index.vue.js +56 -0
  152. package/dist/packages/components/md/index.vue2.cjs +1 -0
  153. package/dist/packages/components/md/index.vue2.js +4 -0
  154. package/dist/packages/components/test/index.cjs +1 -0
  155. package/dist/packages/components/test/index.js +105 -0
  156. package/dist/packages/components/test/index.vue.cjs +1 -0
  157. package/dist/packages/components/test/index.vue.js +75 -0
  158. package/dist/packages/components/test/index.vue2.cjs +1 -0
  159. package/dist/packages/components/test/index.vue2.js +4 -0
  160. package/dist/packages/components/test/top.cjs +1 -0
  161. package/dist/packages/components/test/top.js +148 -0
  162. package/dist/packages/components/use/code.cjs +20 -0
  163. package/dist/packages/components/use/code.js +212 -0
  164. package/dist/packages/components/use/code.vue.cjs +1 -0
  165. package/dist/packages/components/use/code.vue.js +66 -0
  166. package/dist/packages/components/use/code.vue2.cjs +1 -0
  167. package/dist/packages/components/use/code.vue2.js +4 -0
  168. package/dist/packages/components/use/edit.cjs +18 -0
  169. package/dist/packages/components/use/edit.js +214 -0
  170. package/dist/packages/components/use/effect.vue.cjs +1 -0
  171. package/dist/packages/components/use/effect.vue.js +12 -0
  172. package/dist/packages/components/use/index.cjs +1 -0
  173. package/dist/packages/components/use/index.js +196 -0
  174. package/dist/packages/components/use/prettier.cjs +1 -0
  175. package/dist/packages/components/use/prettier.js +40 -0
  176. package/dist/packages/components/use/retrie/any/index.vue.cjs +1 -0
  177. package/dist/packages/components/use/retrie/any/index.vue.js +115 -0
  178. package/dist/packages/components/use/retrie/any/index.vue2.cjs +1 -0
  179. package/dist/packages/components/use/retrie/any/index.vue2.js +4 -0
  180. package/dist/packages/components/use/retrie/array/index.vue.cjs +3 -0
  181. package/dist/packages/components/use/retrie/array/index.vue.js +55 -0
  182. package/dist/packages/components/use/retrie/array/index.vue2.cjs +1 -0
  183. package/dist/packages/components/use/retrie/array/index.vue2.js +4 -0
  184. package/dist/packages/components/use/retrie/boolean/index.vue.cjs +1 -0
  185. package/dist/packages/components/use/retrie/boolean/index.vue.js +68 -0
  186. package/dist/packages/components/use/retrie/boolean/index.vue3.cjs +1 -0
  187. package/dist/packages/components/use/retrie/boolean/index.vue3.js +5 -0
  188. package/dist/packages/components/use/retrie/choice/index.vue.cjs +1 -0
  189. package/dist/packages/components/use/retrie/choice/index.vue.js +142 -0
  190. package/dist/packages/components/use/retrie/choice/index.vue3.cjs +1 -0
  191. package/dist/packages/components/use/retrie/choice/index.vue3.js +5 -0
  192. package/dist/packages/components/use/retrie/expose/index.vue.cjs +1 -0
  193. package/dist/packages/components/use/retrie/expose/index.vue.js +63 -0
  194. package/dist/packages/components/use/retrie/expose/index.vue3.cjs +1 -0
  195. package/dist/packages/components/use/retrie/expose/index.vue3.js +5 -0
  196. package/dist/packages/components/use/retrie/form/index.vue.cjs +1 -0
  197. package/dist/packages/components/use/retrie/form/index.vue.js +148 -0
  198. package/dist/packages/components/use/retrie/form/index.vue2.cjs +1 -0
  199. package/dist/packages/components/use/retrie/form/index.vue2.js +4 -0
  200. package/dist/packages/components/use/retrie/function/index.vue.cjs +3 -0
  201. package/dist/packages/components/use/retrie/function/index.vue.js +68 -0
  202. package/dist/packages/components/use/retrie/function/index.vue2.cjs +1 -0
  203. package/dist/packages/components/use/retrie/function/index.vue2.js +4 -0
  204. package/dist/packages/components/use/retrie/index.vue.cjs +1 -0
  205. package/dist/packages/components/use/retrie/index.vue.js +103 -0
  206. package/dist/packages/components/use/retrie/index.vue3.cjs +1 -0
  207. package/dist/packages/components/use/retrie/index.vue3.js +5 -0
  208. package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -0
  209. package/dist/packages/components/use/retrie/input/editor/editor.js +104 -0
  210. package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -0
  211. package/dist/packages/components/use/retrie/input/editor/editor.vue.js +59 -0
  212. package/dist/packages/components/use/retrie/input/editor/editor.vue3.cjs +1 -0
  213. package/dist/packages/components/use/retrie/input/editor/editor.vue3.js +5 -0
  214. package/dist/packages/components/use/retrie/input/editor/getExtraLib.cjs +416 -0
  215. package/dist/packages/components/use/retrie/input/editor/getExtraLib.js +427 -0
  216. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -0
  217. package/dist/packages/components/use/retrie/input/index.vue.js +54 -0
  218. package/dist/packages/components/use/retrie/input/index.vue3.cjs +1 -0
  219. package/dist/packages/components/use/retrie/input/index.vue3.js +5 -0
  220. package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -0
  221. package/dist/packages/components/use/retrie/input/text.vue.js +39 -0
  222. package/dist/packages/components/use/retrie/input/text.vue3.cjs +1 -0
  223. package/dist/packages/components/use/retrie/input/text.vue3.js +5 -0
  224. package/dist/packages/components/use/retrie/number/index.vue.cjs +1 -0
  225. package/dist/packages/components/use/retrie/number/index.vue.js +50 -0
  226. package/dist/packages/components/use/retrie/number/index.vue3.cjs +1 -0
  227. package/dist/packages/components/use/retrie/number/index.vue3.js +5 -0
  228. package/dist/packages/components/use/retrie/object/index.vue.cjs +3 -0
  229. package/dist/packages/components/use/retrie/object/index.vue.js +55 -0
  230. package/dist/packages/components/use/retrie/object/index.vue2.cjs +1 -0
  231. package/dist/packages/components/use/retrie/object/index.vue2.js +4 -0
  232. package/dist/packages/components/use/retrie/other/index.vue.cjs +1 -0
  233. package/dist/packages/components/use/retrie/other/index.vue.js +67 -0
  234. package/dist/packages/components/use/retrie/other/index.vue2.cjs +1 -0
  235. package/dist/packages/components/use/retrie/other/index.vue2.js +4 -0
  236. package/dist/packages/components/use/retrie/select/index.vue.cjs +1 -0
  237. package/dist/packages/components/use/retrie/select/index.vue.js +123 -0
  238. package/dist/packages/components/use/retrie/select/index.vue3.cjs +1 -0
  239. package/dist/packages/components/use/retrie/select/index.vue3.js +5 -0
  240. package/dist/packages/components/use/retrie/slot/index.vue.cjs +1 -0
  241. package/dist/packages/components/use/retrie/slot/index.vue.js +43 -0
  242. package/dist/packages/components/use/retrie/slot/index.vue2.cjs +1 -0
  243. package/dist/packages/components/use/retrie/slot/index.vue2.js +4 -0
  244. package/dist/packages/components/use/retrie/string/index.vue.cjs +1 -0
  245. package/dist/packages/components/use/retrie/string/index.vue.js +53 -0
  246. package/dist/packages/components/use/retrie/string/index.vue3.cjs +1 -0
  247. package/dist/packages/components/use/retrie/string/index.vue3.js +5 -0
  248. package/dist/packages/components/use/set-code.vue.cjs +1 -0
  249. package/dist/packages/components/use/set-code.vue.js +63 -0
  250. package/dist/packages/components/use/set-code.vue2.cjs +1 -0
  251. package/dist/packages/components/use/set-code.vue2.js +4 -0
  252. package/dist/packages/components/use/set-emit.vue.cjs +1 -0
  253. package/dist/packages/components/use/set-emit.vue.js +50 -0
  254. package/dist/packages/components/use/set-emit.vue3.cjs +1 -0
  255. package/dist/packages/components/use/set-emit.vue3.js +5 -0
  256. package/dist/packages/components/use/set-expose.vue.cjs +1 -0
  257. package/dist/packages/components/use/set-expose.vue.js +66 -0
  258. package/dist/packages/components/use/set-expose.vue3.cjs +1 -0
  259. package/dist/packages/components/use/set-expose.vue3.js +5 -0
  260. package/dist/packages/components/use/set-props.vue.cjs +1 -0
  261. package/dist/packages/components/use/set-props.vue.js +71 -0
  262. package/dist/packages/components/use/set-props.vue2.cjs +1 -0
  263. package/dist/packages/components/use/set-props.vue2.js +4 -0
  264. package/dist/packages/components/use/set-slot.vue.cjs +1 -0
  265. package/dist/packages/components/use/set-slot.vue.js +45 -0
  266. package/dist/packages/components/use/set-slot.vue2.cjs +1 -0
  267. package/dist/packages/components/use/set-slot.vue2.js +4 -0
  268. package/dist/packages/components/use/util.cjs +3 -0
  269. package/dist/packages/components/use/util.js +294 -0
  270. package/dist/packages/config.cjs +1 -0
  271. package/dist/packages/config.js +14 -0
  272. package/dist/packages/directives/adjust/index.cjs +1 -0
  273. package/dist/packages/directives/adjust/index.js +246 -0
  274. package/dist/packages/index/index.vue.cjs +1 -0
  275. package/dist/packages/index/index.vue.js +4 -0
  276. package/dist/packages/index/index.vue2.cjs +1 -0
  277. package/dist/packages/index/index.vue2.js +14 -0
  278. package/dist/packages/index.cjs +1 -0
  279. package/dist/packages/index.d.ts +1 -0
  280. package/dist/packages/index.js +20 -0
  281. package/dist/packages/page/compon/index.vue.cjs +1 -0
  282. package/dist/packages/page/compon/index.vue.js +4 -0
  283. package/dist/packages/page/compon/index.vue2.cjs +1 -0
  284. package/dist/packages/page/compon/index.vue2.js +21 -0
  285. package/dist/packages/page/comprops/index.vue.cjs +1 -0
  286. package/dist/packages/page/comprops/index.vue.js +4 -0
  287. package/dist/packages/page/comprops/index.vue2.cjs +1 -0
  288. package/dist/packages/page/comprops/index.vue2.js +91 -0
  289. package/dist/packages/page/develop/index.vue.cjs +1 -0
  290. package/dist/packages/page/develop/index.vue.js +4 -0
  291. package/dist/packages/page/develop/index.vue2.cjs +1 -0
  292. package/dist/packages/page/develop/index.vue2.js +26 -0
  293. package/dist/packages/page/edit/index.vue.cjs +1 -0
  294. package/dist/packages/page/edit/index.vue.js +4 -0
  295. package/dist/packages/page/edit/index.vue2.cjs +1 -0
  296. package/dist/packages/page/edit/index.vue2.js +27 -0
  297. package/dist/packages/page/index/index.vue.cjs +1 -0
  298. package/dist/packages/page/index/index.vue.js +4 -0
  299. package/dist/packages/page/index/index.vue2.cjs +1 -0
  300. package/dist/packages/page/index/index.vue2.js +61 -0
  301. package/dist/packages/page/single/index.vue.cjs +1 -0
  302. package/dist/packages/page/single/index.vue.js +4 -0
  303. package/dist/packages/page/single/index.vue2.cjs +1 -0
  304. package/dist/packages/page/single/index.vue2.js +60 -0
  305. package/dist/packages/page/tests/index.vue.cjs +1 -0
  306. package/dist/packages/page/tests/index.vue.js +4 -0
  307. package/dist/packages/page/tests/index.vue2.cjs +1 -0
  308. package/dist/packages/page/tests/index.vue2.js +67 -0
  309. package/dist/packages/router/file.cjs +1 -0
  310. package/dist/packages/router/file.js +44 -0
  311. package/dist/packages/router/index.cjs +1 -0
  312. package/dist/packages/router/index.js +122 -0
  313. package/dist/packages/utils/annotat.cjs +1 -0
  314. package/dist/packages/utils/annotat.js +322 -0
  315. package/dist/packages/utils/common.cjs +1 -0
  316. package/dist/packages/utils/common.js +200 -0
  317. package/dist/packages/utils/glob.cjs +5 -0
  318. package/dist/packages/utils/glob.js +502 -0
  319. package/dist/packages/utils/index.cjs +1 -0
  320. package/dist/packages/utils/index.js +14 -0
  321. package/dist/packages/utils/props.cjs +1 -0
  322. package/dist/packages/utils/props.js +110 -0
  323. package/dist/packages/utils/storage.cjs +1 -0
  324. package/dist/packages/utils/storage.js +34 -0
  325. package/dist/packages/utils/util.cjs +1 -0
  326. package/dist/packages/utils/util.js +46 -0
  327. package/package.json +5 -5
  328. package/dist/config.cjs +0 -1
  329. package/dist/config.js +0 -11
  330. package/dist/index/index.cjs +0 -1
  331. package/dist/index/index.js +0 -5
  332. package/dist/index/index.vue_vue_type_script_setup_true_lang.cjs +0 -1
  333. package/dist/index/index.vue_vue_type_script_setup_true_lang.js +0 -12
  334. package/dist/index.cjs +0 -1
  335. package/dist/index.js +0 -15
  336. package/dist/router/file.cjs +0 -1
  337. package/dist/router/file.js +0 -32
  338. package/dist/router/index.cjs +0 -1
  339. package/dist/router/index.js +0 -45
  340. package/dist/utils/storage.cjs +0 -1
  341. package/dist/utils/storage.js +0 -23
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _,B;function Y(){if(B)return _;B=1;const A="[A-Za-z$_][0-9A-Za-z$_]*",U=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],x=["true","false","null","undefined","NaN","Infinity"],N=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],S=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],m=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],D=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],k=[].concat(m,N,S);function P(e){const a=e.regex,$=(t,{after:r})=>{const l="</"+t[0].slice(1);return t.input.indexOf(l,r)!==-1},n=A,T={begin:"<>",end:"</>"},Z=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(t,r)=>{const l=t[0].length+t.index,u=t.input[l];if(u==="<"||u===","){r.ignoreMatch();return}u===">"&&($(t,{after:l})||r.ignoreMatch());let b;const h=t.input.substring(l);if(b=h.match(/^\s*=/)){r.ignoreMatch();return}if((b=h.match(/^\s+extends\s+/))&&b.index===0){r.ignoreMatch();return}}},s={$pattern:A,keyword:U,literal:x,built_in:k,"variable.language":D},f="[0-9](_?[0-9])*",E=`\\.(${f})`,R="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${R})((${E})|\\.)?|(${E}))[eE][+-]?(${f})\\b`},{begin:`\\b(${R})\\b((${E})\\b|\\.)?|(${E})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},I={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},O={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},d={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,I,O,p,C,{match:/\$\d+/},y];c.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(v)});const M=[].concat(d,c.contains),g=M.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(M)}]),o={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:g},F={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,a.concat(n,"(",a.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...N,...S]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},G={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[o],illegal:/%/},K={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(t){return a.concat("(?!",t.join("|"),")")}const J={match:a.concat(/\b/,H([...m,"super","import"].map(t=>`${t}\\s*\\(`)),n,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},q={begin:a.concat(/\./,a.lookahead(a.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},o]},w="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(w)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[o]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:g,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,I,O,p,C,d,{match:/\$\d+/},y,L,{scope:"attr",match:n+a.lookahead(":"),relevance:0},X,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[d,e.REGEXP_MODE,{className:"function",begin:w,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:g}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:T.begin,end:T.end},{match:Z},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},G,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[o,e.inherit(e.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[o]},J,K,F,W,{match:/\$[(.]/}]}}return _=P,_}exports.__require=Y;
@@ -0,0 +1,664 @@
1
+ var _, B;
2
+ function Q() {
3
+ if (B) return _;
4
+ B = 1;
5
+ const A = "[A-Za-z$_][0-9A-Za-z$_]*", x = [
6
+ "as",
7
+ // for exports
8
+ "in",
9
+ "of",
10
+ "if",
11
+ "for",
12
+ "while",
13
+ "finally",
14
+ "var",
15
+ "new",
16
+ "function",
17
+ "do",
18
+ "return",
19
+ "void",
20
+ "else",
21
+ "break",
22
+ "catch",
23
+ "instanceof",
24
+ "with",
25
+ "throw",
26
+ "case",
27
+ "default",
28
+ "try",
29
+ "switch",
30
+ "continue",
31
+ "typeof",
32
+ "delete",
33
+ "let",
34
+ "yield",
35
+ "const",
36
+ "class",
37
+ // JS handles these with a special rule
38
+ // "get",
39
+ // "set",
40
+ "debugger",
41
+ "async",
42
+ "await",
43
+ "static",
44
+ "import",
45
+ "from",
46
+ "export",
47
+ "extends",
48
+ // It's reached stage 3, which is "recommended for implementation":
49
+ "using"
50
+ ], U = [
51
+ "true",
52
+ "false",
53
+ "null",
54
+ "undefined",
55
+ "NaN",
56
+ "Infinity"
57
+ ], N = [
58
+ // Fundamental objects
59
+ "Object",
60
+ "Function",
61
+ "Boolean",
62
+ "Symbol",
63
+ // numbers and dates
64
+ "Math",
65
+ "Date",
66
+ "Number",
67
+ "BigInt",
68
+ // text
69
+ "String",
70
+ "RegExp",
71
+ // Indexed collections
72
+ "Array",
73
+ "Float32Array",
74
+ "Float64Array",
75
+ "Int8Array",
76
+ "Uint8Array",
77
+ "Uint8ClampedArray",
78
+ "Int16Array",
79
+ "Int32Array",
80
+ "Uint16Array",
81
+ "Uint32Array",
82
+ "BigInt64Array",
83
+ "BigUint64Array",
84
+ // Keyed collections
85
+ "Set",
86
+ "Map",
87
+ "WeakSet",
88
+ "WeakMap",
89
+ // Structured data
90
+ "ArrayBuffer",
91
+ "SharedArrayBuffer",
92
+ "Atomics",
93
+ "DataView",
94
+ "JSON",
95
+ // Control abstraction objects
96
+ "Promise",
97
+ "Generator",
98
+ "GeneratorFunction",
99
+ "AsyncFunction",
100
+ // Reflection
101
+ "Reflect",
102
+ "Proxy",
103
+ // Internationalization
104
+ "Intl",
105
+ // WebAssembly
106
+ "WebAssembly"
107
+ ], S = [
108
+ "Error",
109
+ "EvalError",
110
+ "InternalError",
111
+ "RangeError",
112
+ "ReferenceError",
113
+ "SyntaxError",
114
+ "TypeError",
115
+ "URIError"
116
+ ], m = [
117
+ "setInterval",
118
+ "setTimeout",
119
+ "clearInterval",
120
+ "clearTimeout",
121
+ "require",
122
+ "exports",
123
+ "eval",
124
+ "isFinite",
125
+ "isNaN",
126
+ "parseFloat",
127
+ "parseInt",
128
+ "decodeURI",
129
+ "decodeURIComponent",
130
+ "encodeURI",
131
+ "encodeURIComponent",
132
+ "escape",
133
+ "unescape"
134
+ ], D = [
135
+ "arguments",
136
+ "this",
137
+ "super",
138
+ "console",
139
+ "window",
140
+ "document",
141
+ "localStorage",
142
+ "sessionStorage",
143
+ "module",
144
+ "global"
145
+ // Node.js
146
+ ], k = [].concat(
147
+ m,
148
+ N,
149
+ S
150
+ );
151
+ function P(e) {
152
+ const t = e.regex, $ = (a, { after: r }) => {
153
+ const l = "</" + a[0].slice(1);
154
+ return a.input.indexOf(l, r) !== -1;
155
+ }, n = A, T = {
156
+ begin: "<>",
157
+ end: "</>"
158
+ }, Z = /<[A-Za-z0-9\\._:-]+\s*\/>/, i = {
159
+ begin: /<[A-Za-z0-9\\._:-]+/,
160
+ end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
161
+ /**
162
+ * @param {RegExpMatchArray} match
163
+ * @param {CallbackResponse} response
164
+ */
165
+ isTrulyOpeningTag: (a, r) => {
166
+ const l = a[0].length + a.index, d = a.input[l];
167
+ if (
168
+ // HTML should not include another raw `<` inside a tag
169
+ // nested type?
170
+ // `<Array<Array<number>>`, etc.
171
+ d === "<" || // the , gives away that this is not HTML
172
+ // `<T, A extends keyof T, V>`
173
+ d === ","
174
+ ) {
175
+ r.ignoreMatch();
176
+ return;
177
+ }
178
+ d === ">" && ($(a, { after: l }) || r.ignoreMatch());
179
+ let b;
180
+ const h = a.input.substring(l);
181
+ if (b = h.match(/^\s*=/)) {
182
+ r.ignoreMatch();
183
+ return;
184
+ }
185
+ if ((b = h.match(/^\s+extends\s+/)) && b.index === 0) {
186
+ r.ignoreMatch();
187
+ return;
188
+ }
189
+ }
190
+ }, s = {
191
+ $pattern: A,
192
+ keyword: x,
193
+ literal: U,
194
+ built_in: k,
195
+ "variable.language": D
196
+ }, f = "[0-9](_?[0-9])*", E = `\\.(${f})`, R = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", y = {
197
+ className: "number",
198
+ variants: [
199
+ // DecimalLiteral
200
+ { begin: `(\\b(${R})((${E})|\\.)?|(${E}))[eE][+-]?(${f})\\b` },
201
+ { begin: `\\b(${R})\\b((${E})\\b|\\.)?|(${E})\\b` },
202
+ // DecimalBigIntegerLiteral
203
+ { begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
204
+ // NonDecimalIntegerLiteral
205
+ { begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
206
+ { begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
207
+ { begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
208
+ // LegacyOctalIntegerLiteral (does not include underscore separators)
209
+ // https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
210
+ { begin: "\\b0[0-7]+n?\\b" }
211
+ ],
212
+ relevance: 0
213
+ }, c = {
214
+ className: "subst",
215
+ begin: "\\$\\{",
216
+ end: "\\}",
217
+ keywords: s,
218
+ contains: []
219
+ // defined later
220
+ }, I = {
221
+ begin: ".?html`",
222
+ end: "",
223
+ starts: {
224
+ end: "`",
225
+ returnEnd: !1,
226
+ contains: [
227
+ e.BACKSLASH_ESCAPE,
228
+ c
229
+ ],
230
+ subLanguage: "xml"
231
+ }
232
+ }, O = {
233
+ begin: ".?css`",
234
+ end: "",
235
+ starts: {
236
+ end: "`",
237
+ returnEnd: !1,
238
+ contains: [
239
+ e.BACKSLASH_ESCAPE,
240
+ c
241
+ ],
242
+ subLanguage: "css"
243
+ }
244
+ }, p = {
245
+ begin: ".?gql`",
246
+ end: "",
247
+ starts: {
248
+ end: "`",
249
+ returnEnd: !1,
250
+ contains: [
251
+ e.BACKSLASH_ESCAPE,
252
+ c
253
+ ],
254
+ subLanguage: "graphql"
255
+ }
256
+ }, C = {
257
+ className: "string",
258
+ begin: "`",
259
+ end: "`",
260
+ contains: [
261
+ e.BACKSLASH_ESCAPE,
262
+ c
263
+ ]
264
+ }, u = {
265
+ className: "comment",
266
+ variants: [
267
+ e.COMMENT(
268
+ /\/\*\*(?!\/)/,
269
+ "\\*/",
270
+ {
271
+ relevance: 0,
272
+ contains: [
273
+ {
274
+ begin: "(?=@[A-Za-z]+)",
275
+ relevance: 0,
276
+ contains: [
277
+ {
278
+ className: "doctag",
279
+ begin: "@[A-Za-z]+"
280
+ },
281
+ {
282
+ className: "type",
283
+ begin: "\\{",
284
+ end: "\\}",
285
+ excludeEnd: !0,
286
+ excludeBegin: !0,
287
+ relevance: 0
288
+ },
289
+ {
290
+ className: "variable",
291
+ begin: n + "(?=\\s*(-)|$)",
292
+ endsParent: !0,
293
+ relevance: 0
294
+ },
295
+ // eat spaces (not newlines) so we can find
296
+ // types or variables
297
+ {
298
+ begin: /(?=[^\n])\s/,
299
+ relevance: 0
300
+ }
301
+ ]
302
+ }
303
+ ]
304
+ }
305
+ ),
306
+ e.C_BLOCK_COMMENT_MODE,
307
+ e.C_LINE_COMMENT_MODE
308
+ ]
309
+ }, v = [
310
+ e.APOS_STRING_MODE,
311
+ e.QUOTE_STRING_MODE,
312
+ I,
313
+ O,
314
+ p,
315
+ C,
316
+ // Skip numbers when they are part of a variable name
317
+ { match: /\$\d+/ },
318
+ y
319
+ // This is intentional:
320
+ // See https://github.com/highlightjs/highlight.js/issues/3288
321
+ // hljs.REGEXP_MODE
322
+ ];
323
+ c.contains = v.concat({
324
+ // we need to pair up {} inside our subst to prevent
325
+ // it from ending too early by matching another }
326
+ begin: /\{/,
327
+ end: /\}/,
328
+ keywords: s,
329
+ contains: [
330
+ "self"
331
+ ].concat(v)
332
+ });
333
+ const M = [].concat(u, c.contains), g = M.concat([
334
+ // eat recursive parens in sub expressions
335
+ {
336
+ begin: /(\s*)\(/,
337
+ end: /\)/,
338
+ keywords: s,
339
+ contains: ["self"].concat(M)
340
+ }
341
+ ]), o = {
342
+ className: "params",
343
+ // convert this to negative lookbehind in v12
344
+ begin: /(\s*)\(/,
345
+ // to match the parms with
346
+ end: /\)/,
347
+ excludeBegin: !0,
348
+ excludeEnd: !0,
349
+ keywords: s,
350
+ contains: g
351
+ }, F = {
352
+ variants: [
353
+ // class Car extends vehicle
354
+ {
355
+ match: [
356
+ /class/,
357
+ /\s+/,
358
+ n,
359
+ /\s+/,
360
+ /extends/,
361
+ /\s+/,
362
+ t.concat(n, "(", t.concat(/\./, n), ")*")
363
+ ],
364
+ scope: {
365
+ 1: "keyword",
366
+ 3: "title.class",
367
+ 5: "keyword",
368
+ 7: "title.class.inherited"
369
+ }
370
+ },
371
+ // class Car
372
+ {
373
+ match: [
374
+ /class/,
375
+ /\s+/,
376
+ n
377
+ ],
378
+ scope: {
379
+ 1: "keyword",
380
+ 3: "title.class"
381
+ }
382
+ }
383
+ ]
384
+ }, L = {
385
+ relevance: 0,
386
+ match: t.either(
387
+ // Hard coded exceptions
388
+ /\bJSON/,
389
+ // Float32Array, OutT
390
+ /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
391
+ // CSSFactory, CSSFactoryT
392
+ /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
393
+ // FPs, FPsT
394
+ /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
395
+ // P
396
+ // single letters are not highlighted
397
+ // BLAH
398
+ // this will be flagged as a UPPER_CASE_CONSTANT instead
399
+ ),
400
+ className: "title.class",
401
+ keywords: {
402
+ _: [
403
+ // se we still get relevance credit for JS library classes
404
+ ...N,
405
+ ...S
406
+ ]
407
+ }
408
+ }, z = {
409
+ label: "use_strict",
410
+ className: "meta",
411
+ relevance: 10,
412
+ begin: /^\s*['"]use (strict|asm)['"]/
413
+ }, G = {
414
+ variants: [
415
+ {
416
+ match: [
417
+ /function/,
418
+ /\s+/,
419
+ n,
420
+ /(?=\s*\()/
421
+ ]
422
+ },
423
+ // anonymous function
424
+ {
425
+ match: [
426
+ /function/,
427
+ /\s*(?=\()/
428
+ ]
429
+ }
430
+ ],
431
+ className: {
432
+ 1: "keyword",
433
+ 3: "title.function"
434
+ },
435
+ label: "func.def",
436
+ contains: [o],
437
+ illegal: /%/
438
+ }, K = {
439
+ relevance: 0,
440
+ match: /\b[A-Z][A-Z_0-9]+\b/,
441
+ className: "variable.constant"
442
+ };
443
+ function H(a) {
444
+ return t.concat("(?!", a.join("|"), ")");
445
+ }
446
+ const J = {
447
+ match: t.concat(
448
+ /\b/,
449
+ H([
450
+ ...m,
451
+ "super",
452
+ "import"
453
+ ].map((a) => `${a}\\s*\\(`)),
454
+ n,
455
+ t.lookahead(/\s*\(/)
456
+ ),
457
+ className: "title.function",
458
+ relevance: 0
459
+ }, q = {
460
+ begin: t.concat(/\./, t.lookahead(
461
+ t.concat(n, /(?![0-9A-Za-z$_(])/)
462
+ )),
463
+ end: n,
464
+ excludeBegin: !0,
465
+ keywords: "prototype",
466
+ className: "property",
467
+ relevance: 0
468
+ }, W = {
469
+ match: [
470
+ /get|set/,
471
+ /\s+/,
472
+ n,
473
+ /(?=\()/
474
+ ],
475
+ className: {
476
+ 1: "keyword",
477
+ 3: "title.function"
478
+ },
479
+ contains: [
480
+ {
481
+ // eat to avoid empty params
482
+ begin: /\(\)/
483
+ },
484
+ o
485
+ ]
486
+ }, w = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", X = {
487
+ match: [
488
+ /const|var|let/,
489
+ /\s+/,
490
+ n,
491
+ /\s*/,
492
+ /=\s*/,
493
+ /(async\s*)?/,
494
+ // async is optional
495
+ t.lookahead(w)
496
+ ],
497
+ keywords: "async",
498
+ className: {
499
+ 1: "keyword",
500
+ 3: "title.function"
501
+ },
502
+ contains: [
503
+ o
504
+ ]
505
+ };
506
+ return {
507
+ name: "JavaScript",
508
+ aliases: ["js", "jsx", "mjs", "cjs"],
509
+ keywords: s,
510
+ // this will be extended by TypeScript
511
+ exports: { PARAMS_CONTAINS: g, CLASS_REFERENCE: L },
512
+ illegal: /#(?![$_A-z])/,
513
+ contains: [
514
+ e.SHEBANG({
515
+ label: "shebang",
516
+ binary: "node",
517
+ relevance: 5
518
+ }),
519
+ z,
520
+ e.APOS_STRING_MODE,
521
+ e.QUOTE_STRING_MODE,
522
+ I,
523
+ O,
524
+ p,
525
+ C,
526
+ u,
527
+ // Skip numbers when they are part of a variable name
528
+ { match: /\$\d+/ },
529
+ y,
530
+ L,
531
+ {
532
+ scope: "attr",
533
+ match: n + t.lookahead(":"),
534
+ relevance: 0
535
+ },
536
+ X,
537
+ {
538
+ // "value" container
539
+ begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
540
+ keywords: "return throw case",
541
+ relevance: 0,
542
+ contains: [
543
+ u,
544
+ e.REGEXP_MODE,
545
+ {
546
+ className: "function",
547
+ // we have to count the parens to make sure we actually have the
548
+ // correct bounding ( ) before the =>. There could be any number of
549
+ // sub-expressions inside also surrounded by parens.
550
+ begin: w,
551
+ returnBegin: !0,
552
+ end: "\\s*=>",
553
+ contains: [
554
+ {
555
+ className: "params",
556
+ variants: [
557
+ {
558
+ begin: e.UNDERSCORE_IDENT_RE,
559
+ relevance: 0
560
+ },
561
+ {
562
+ className: null,
563
+ begin: /\(\s*\)/,
564
+ skip: !0
565
+ },
566
+ {
567
+ begin: /(\s*)\(/,
568
+ end: /\)/,
569
+ excludeBegin: !0,
570
+ excludeEnd: !0,
571
+ keywords: s,
572
+ contains: g
573
+ }
574
+ ]
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ // could be a comma delimited list of params to a function call
580
+ begin: /,/,
581
+ relevance: 0
582
+ },
583
+ {
584
+ match: /\s+/,
585
+ relevance: 0
586
+ },
587
+ {
588
+ // JSX
589
+ variants: [
590
+ { begin: T.begin, end: T.end },
591
+ { match: Z },
592
+ {
593
+ begin: i.begin,
594
+ // we carefully check the opening tag to see if it truly
595
+ // is a tag and not a false positive
596
+ "on:begin": i.isTrulyOpeningTag,
597
+ end: i.end
598
+ }
599
+ ],
600
+ subLanguage: "xml",
601
+ contains: [
602
+ {
603
+ begin: i.begin,
604
+ end: i.end,
605
+ skip: !0,
606
+ contains: ["self"]
607
+ }
608
+ ]
609
+ }
610
+ ]
611
+ },
612
+ G,
613
+ {
614
+ // prevent this from getting swallowed up by function
615
+ // since they appear "function like"
616
+ beginKeywords: "while if switch catch for"
617
+ },
618
+ {
619
+ // we have to count the parens to make sure we actually have the correct
620
+ // bounding ( ). There could be any number of sub-expressions inside
621
+ // also surrounded by parens.
622
+ begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
623
+ // end parens
624
+ returnBegin: !0,
625
+ label: "func.def",
626
+ contains: [
627
+ o,
628
+ e.inherit(e.TITLE_MODE, { begin: n, className: "title.function" })
629
+ ]
630
+ },
631
+ // catch ... so it won't trigger the property rule below
632
+ {
633
+ match: /\.\.\./,
634
+ relevance: 0
635
+ },
636
+ q,
637
+ // hack: prevents detection of keywords in some circumstances
638
+ // .keyword()
639
+ // $keyword = x
640
+ {
641
+ match: "\\$" + n,
642
+ relevance: 0
643
+ },
644
+ {
645
+ match: [/\bconstructor(?=\s*\()/],
646
+ className: { 1: "title.function" },
647
+ contains: [o]
648
+ },
649
+ J,
650
+ K,
651
+ F,
652
+ W,
653
+ {
654
+ match: /\$[(.]/
655
+ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
656
+ }
657
+ ]
658
+ };
659
+ }
660
+ return _ = P, _;
661
+ }
662
+ export {
663
+ Q as __require
664
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n,t;function c(){if(t)return n;t=1;function a(e){const o={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},s={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[o,s,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return n=a,n}exports.__require=c;