@baic/yolk-cli 2.1.0-alpha.21 → 2.1.0-alpha.210

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 (515) hide show
  1. package/LICENSE +1 -1
  2. package/compiled/commander/index.d.ts +898 -0
  3. package/compiled/commander/index.js +1 -0
  4. package/compiled/commander/package.json +1 -0
  5. package/compiled/mustache/index.d.ts +431 -0
  6. package/compiled/mustache/index.js +5 -0
  7. package/compiled/mustache/package.json +1 -0
  8. package/compiled/v8-compile-cache/index.js +1 -0
  9. package/compiled/v8-compile-cache/package.json +1 -0
  10. package/es/.lintstagedrc.js +67 -0
  11. package/es/.prettierrc.js +24 -0
  12. package/es/_util.d.ts +26 -0
  13. package/es/_util.js +1 -0
  14. package/es/index.d.ts +0 -1
  15. package/es/index.js +1 -1
  16. package/es/yolk.js +1 -1
  17. package/lib/.lintstagedrc.js +67 -0
  18. package/lib/.prettierrc.js +24 -0
  19. package/lib/_util.d.ts +26 -0
  20. package/lib/_util.js +1 -0
  21. package/lib/index.d.ts +0 -1
  22. package/lib/index.js +1 -1
  23. package/lib/yolk.js +1 -1
  24. package/package.json +43 -24
  25. package/templates/miniprogram/.eslintrc.js +7 -0
  26. package/templates/miniprogram/.gitignore.tpl +5 -1
  27. package/templates/miniprogram/.prettierignore +5 -1
  28. package/templates/miniprogram/.prettierrc.js +1 -0
  29. package/templates/miniprogram/LICENSE +1 -1
  30. package/templates/miniprogram/global.d.ts +1 -33
  31. package/templates/miniprogram/project.config.json.tpl +5 -3
  32. package/templates/miniprogram/src/app.config.ts +1 -1
  33. package/templates/miniprogram/src/app.scss +0 -1
  34. package/templates/miniprogram/src/app.tsx +4 -6
  35. package/templates/miniprogram/src/pages/demo/examples/Input.tsx +11 -3
  36. package/templates/miniprogram/src/pages/demo/examples/MobileInput.tsx +0 -1
  37. package/templates/miniprogram/src/pages/demo/examples/MoneyInput.tsx +0 -1
  38. package/templates/miniprogram/src/pages/demo/examples/NumberInput.tsx +0 -1
  39. package/templates/miniprogram/src/pages/demo/examples/Textarea.tsx +12 -3
  40. package/templates/miniprogram/src/pages/demo/examples/TimerButton.tsx +0 -1
  41. package/templates/miniprogram/src/pages/demo/examples/usePreload.tsx +0 -1
  42. package/templates/miniprogram/src/pages/demo/index.config.ts +1 -1
  43. package/templates/miniprogram/src/pages/demo/index.tsx +6 -5
  44. package/templates/miniprogram/src/pages/index/index.config.ts +1 -1
  45. package/templates/miniprogram/src/pages/index/index.tsx +1 -1
  46. package/templates/miniprogram/src/types/user.d.ts +4 -2
  47. package/templates/miniprogram/tsconfig.json +2 -19
  48. package/templates/umi-mobile/.eslintrc.js +7 -0
  49. package/templates/umi-mobile/.prettierignore +6 -2
  50. package/templates/umi-mobile/.prettierrc.js +1 -0
  51. package/templates/umi-mobile/.umirc.ts.tpl +0 -1
  52. package/templates/umi-mobile/LICENSE +1 -1
  53. package/templates/umi-mobile/src/app.tsx +2 -2
  54. package/templates/umi-mobile/src/pages/404.tsx +0 -1
  55. package/templates/umi-mobile/src/pages/demo/examples/BarCode.tsx +0 -1
  56. package/templates/umi-mobile/src/pages/demo/examples/Iconfont.tsx +1 -2
  57. package/templates/umi-mobile/src/pages/demo/examples/Input.tsx +1 -3
  58. package/templates/umi-mobile/src/pages/demo/examples/List/1.tsx +1 -2
  59. package/templates/umi-mobile/src/pages/demo/examples/List/2.tsx +1 -1
  60. package/templates/umi-mobile/src/pages/demo/examples/List/3.tsx +1 -1
  61. package/templates/umi-mobile/src/pages/demo/examples/List/4.tsx +9 -10
  62. package/templates/umi-mobile/src/pages/demo/examples/Loading.tsx +0 -1
  63. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/1.tsx +1 -3
  64. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/2.tsx +1 -3
  65. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/3.tsx +1 -3
  66. package/templates/umi-mobile/src/pages/demo/examples/NumberInput/4.tsx +1 -3
  67. package/templates/umi-mobile/src/pages/demo/examples/PagingList/1.tsx +1 -2
  68. package/templates/umi-mobile/src/pages/demo/examples/QrCode.tsx +0 -1
  69. package/templates/umi-mobile/src/pages/demo/examples/Required.tsx +0 -1
  70. package/templates/umi-mobile/src/pages/demo/examples/TimerButton.tsx +0 -1
  71. package/templates/umi-mobile/src/pages/demo/examples/usePreload.tsx +1 -1
  72. package/templates/umi-mobile/src/pages/demo/index.tsx +10 -10
  73. package/templates/umi-mobile/src/pages/index.tsx +0 -2
  74. package/templates/umi-mobile/src/types/user.d.ts +2 -2
  75. package/templates/umi-mobile-h5+app/.eslintrc.js +7 -0
  76. package/templates/umi-mobile-h5+app/.prettierignore +6 -2
  77. package/templates/umi-mobile-h5+app/.prettierrc.js +1 -0
  78. package/templates/umi-mobile-h5+app/.umirc.ts.tpl +0 -1
  79. package/templates/umi-mobile-h5+app/LICENSE +1 -1
  80. package/templates/umi-mobile-h5+app/src/pages/404.tsx +0 -1
  81. package/templates/umi-mobile-h5+app/src/pages/demo/examples/Input.tsx +1 -2
  82. package/templates/umi-mobile-h5+app/src/pages/demo/examples/List/4.tsx +2 -2
  83. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  84. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  85. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  86. package/templates/umi-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  87. package/templates/umi-mobile-h5+app/src/pages/demo/index.tsx +8 -7
  88. package/templates/umi-mobile-h5+app/src/pages/index.tsx +0 -2
  89. package/templates/umi-mobile-h5+app/src/types/user.d.ts +2 -2
  90. package/templates/umi-mobile-native/.eslintrc.js +7 -0
  91. package/templates/umi-mobile-native/.prettierignore +6 -2
  92. package/templates/umi-mobile-native/.prettierrc.js +1 -0
  93. package/templates/umi-mobile-native/.umirc.ts.tpl +0 -1
  94. package/templates/umi-mobile-native/LICENSE +1 -1
  95. package/templates/umi-mobile-native/android/app/build.gradle +19 -4
  96. package/templates/umi-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  97. package/templates/umi-mobile-native/android/gradle.properties +1 -1
  98. package/templates/umi-mobile-native/src/common/Xprinter.ts +4 -4
  99. package/templates/umi-mobile-native/src/common/bluetooth.ts +8 -8
  100. package/templates/umi-mobile-native/src/common/bridge.ts +6 -6
  101. package/templates/umi-mobile-native/src/pages/404.tsx +0 -1
  102. package/templates/umi-mobile-native/src/pages/demo/examples/Input.tsx +1 -2
  103. package/templates/umi-mobile-native/src/pages/demo/examples/List/4.tsx +2 -2
  104. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +1 -2
  105. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +1 -2
  106. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +1 -2
  107. package/templates/umi-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +1 -2
  108. package/templates/umi-mobile-native/src/pages/demo/index.tsx +8 -7
  109. package/templates/umi-mobile-native/src/types/user.d.ts +2 -2
  110. package/templates/umi-web/.eslintrc.js +7 -0
  111. package/templates/umi-web/.prettierignore +6 -2
  112. package/templates/umi-web/.prettierrc.js +1 -0
  113. package/templates/umi-web/.umirc.ts.tpl +0 -1
  114. package/templates/umi-web/LICENSE +1 -1
  115. package/templates/umi-web/src/pages/404.tsx +2 -3
  116. package/templates/umi-web/src/pages/demo/examples/BankInput.tsx +1 -2
  117. package/templates/umi-web/src/pages/demo/examples/Grid/5.tsx +1 -2
  118. package/templates/umi-web/src/pages/demo/examples/Input/2.tsx +2 -1
  119. package/templates/umi-web/src/pages/demo/examples/RangeNumber/2.tsx +1 -2
  120. package/templates/umi-web/src/pages/demo/examples/SearchLayout.tsx +2 -2
  121. package/templates/umi-web/src/pages/demo/index.tsx +11 -9
  122. package/templates/umi-web/src/pages/index.tsx +0 -2
  123. package/templates/umi-web/src/types/user.d.ts +2 -2
  124. package/templates/umi-web-screen/.eslintrc.js +7 -0
  125. package/templates/umi-web-screen/.prettierignore +6 -2
  126. package/templates/umi-web-screen/.prettierrc.js +1 -0
  127. package/templates/umi-web-screen/.umirc.ts.tpl +0 -1
  128. package/templates/umi-web-screen/LICENSE +1 -1
  129. package/templates/umi-web-screen/src/components/resize-container/index.tsx +18 -18
  130. package/templates/umi-web-screen/src/layouts/controller/index.tsx +5 -9
  131. package/templates/umi-web-screen/src/pages/404.tsx +2 -3
  132. package/templates/umi-web-screen/src/pages/index.tsx +0 -2
  133. package/templates/umi-web-screen/src/pages/template/components/charts/demo-line/index.tsx +2 -3
  134. package/templates/umi-web-screen/src/pages/template/controller/index.tsx +11 -12
  135. package/templates/umi-web-screen/src/types/user.d.ts +2 -2
  136. package/templates/ice-mobile/.eslintrc +0 -6
  137. package/templates/ice-mobile/.gitignore.tpl +0 -34
  138. package/templates/ice-mobile/.icerc.ts +0 -3
  139. package/templates/ice-mobile/.npmrc.tpl +0 -2
  140. package/templates/ice-mobile/.prettierignore +0 -9
  141. package/templates/ice-mobile/.prettierrc +0 -11
  142. package/templates/ice-mobile/.stylelintrc +0 -3
  143. package/templates/ice-mobile/README.md.tpl +0 -34
  144. package/templates/ice-mobile/package.json.tpl +0 -16
  145. package/templates/ice-mobile/public/favicon.ico +0 -0
  146. package/templates/ice-mobile/public/index.html +0 -15
  147. package/templates/ice-mobile/src/app.tsx +0 -5
  148. package/templates/ice-mobile/src/common/request.ts +0 -3
  149. package/templates/ice-mobile/src/common/util.ts +0 -7
  150. package/templates/ice-mobile/src/components/index.ts +0 -0
  151. package/templates/ice-mobile/src/global.less +0 -3
  152. package/templates/ice-mobile/src/layouts/index.tsx +0 -5
  153. package/templates/ice-mobile/src/pages/404.tsx +0 -10
  154. package/templates/ice-mobile/src/pages/demo/examples/BarCode.tsx +0 -4
  155. package/templates/ice-mobile/src/pages/demo/examples/Iconfont.tsx +0 -18
  156. package/templates/ice-mobile/src/pages/demo/examples/Input.tsx +0 -17
  157. package/templates/ice-mobile/src/pages/demo/examples/List/1.tsx +0 -12
  158. package/templates/ice-mobile/src/pages/demo/examples/List/2.tsx +0 -29
  159. package/templates/ice-mobile/src/pages/demo/examples/List/3.tsx +0 -29
  160. package/templates/ice-mobile/src/pages/demo/examples/List/4.tsx +0 -55
  161. package/templates/ice-mobile/src/pages/demo/examples/List/mock.ts +0 -30
  162. package/templates/ice-mobile/src/pages/demo/examples/Loading.tsx +0 -12
  163. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  164. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  165. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  166. package/templates/ice-mobile/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  167. package/templates/ice-mobile/src/pages/demo/examples/PagingList/1.tsx +0 -6
  168. package/templates/ice-mobile/src/pages/demo/examples/QrCode.tsx +0 -4
  169. package/templates/ice-mobile/src/pages/demo/examples/Required.tsx +0 -4
  170. package/templates/ice-mobile/src/pages/demo/examples/TimerButton.tsx +0 -4
  171. package/templates/ice-mobile/src/pages/demo/examples/usePreload.tsx +0 -9
  172. package/templates/ice-mobile/src/pages/demo/index.tsx +0 -87
  173. package/templates/ice-mobile/src/pages/index.tsx +0 -3
  174. package/templates/ice-mobile/src/routes.ts +0 -29
  175. package/templates/ice-mobile/src/types/user.d.ts +0 -3
  176. package/templates/ice-mobile/tsconfig.json +0 -3
  177. package/templates/ice-mobile/typings.d.ts +0 -1
  178. package/templates/ice-mobile-h5+app/.eslintrc +0 -6
  179. package/templates/ice-mobile-h5+app/.gitignore.tpl +0 -34
  180. package/templates/ice-mobile-h5+app/.icerc.ts +0 -6
  181. package/templates/ice-mobile-h5+app/.npmrc.tpl +0 -2
  182. package/templates/ice-mobile-h5+app/.prettierignore +0 -9
  183. package/templates/ice-mobile-h5+app/.prettierrc +0 -11
  184. package/templates/ice-mobile-h5+app/.stylelintrc +0 -3
  185. package/templates/ice-mobile-h5+app/README.md.tpl +0 -34
  186. package/templates/ice-mobile-h5+app/h5+app/manifest.json +0 -87
  187. package/templates/ice-mobile-h5+app/package.json.tpl +0 -16
  188. package/templates/ice-mobile-h5+app/public/favicon.ico +0 -0
  189. package/templates/ice-mobile-h5+app/public/index.html +0 -15
  190. package/templates/ice-mobile-h5+app/src/app.tsx +0 -5
  191. package/templates/ice-mobile-h5+app/src/common/request.ts +0 -3
  192. package/templates/ice-mobile-h5+app/src/common/util.ts +0 -7
  193. package/templates/ice-mobile-h5+app/src/components/index.ts +0 -0
  194. package/templates/ice-mobile-h5+app/src/global.less +0 -3
  195. package/templates/ice-mobile-h5+app/src/layouts/index.tsx +0 -5
  196. package/templates/ice-mobile-h5+app/src/pages/404.tsx +0 -10
  197. package/templates/ice-mobile-h5+app/src/pages/demo/examples/BarCode.tsx +0 -4
  198. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Iconfont.tsx +0 -18
  199. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Input.tsx +0 -17
  200. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/1.tsx +0 -12
  201. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/2.tsx +0 -29
  202. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/3.tsx +0 -29
  203. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/4.tsx +0 -55
  204. package/templates/ice-mobile-h5+app/src/pages/demo/examples/List/mock.ts +0 -30
  205. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Loading.tsx +0 -12
  206. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  207. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  208. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  209. package/templates/ice-mobile-h5+app/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  210. package/templates/ice-mobile-h5+app/src/pages/demo/examples/PagingList/1.tsx +0 -6
  211. package/templates/ice-mobile-h5+app/src/pages/demo/examples/QrCode.tsx +0 -4
  212. package/templates/ice-mobile-h5+app/src/pages/demo/examples/Required.tsx +0 -4
  213. package/templates/ice-mobile-h5+app/src/pages/demo/examples/TimerButton.tsx +0 -4
  214. package/templates/ice-mobile-h5+app/src/pages/demo/examples/usePreload.tsx +0 -9
  215. package/templates/ice-mobile-h5+app/src/pages/demo/index.tsx +0 -87
  216. package/templates/ice-mobile-h5+app/src/pages/index.tsx +0 -3
  217. package/templates/ice-mobile-h5+app/src/routes.ts +0 -29
  218. package/templates/ice-mobile-h5+app/src/types/user.d.ts +0 -3
  219. package/templates/ice-mobile-h5+app/tsconfig.json +0 -3
  220. package/templates/ice-mobile-h5+app/typings.d.ts +0 -1
  221. package/templates/ice-mobile-native/.eslintrc +0 -6
  222. package/templates/ice-mobile-native/.gitignore.tpl +0 -39
  223. package/templates/ice-mobile-native/.icerc.ts +0 -8
  224. package/templates/ice-mobile-native/.npmrc.tpl +0 -2
  225. package/templates/ice-mobile-native/.prettierignore +0 -9
  226. package/templates/ice-mobile-native/.prettierrc +0 -11
  227. package/templates/ice-mobile-native/.stylelintrc +0 -3
  228. package/templates/ice-mobile-native/README.md.tpl +0 -34
  229. package/templates/ice-mobile-native/android/app/6209ba977ffec7d62675a4e254ebc209.keystore +0 -0
  230. package/templates/ice-mobile-native/android/app/build.gradle +0 -66
  231. package/templates/ice-mobile-native/android/app/libs/Bluetooth-release.aar +0 -0
  232. package/templates/ice-mobile-native/android/app/libs/PosPrinterSDK.jar +0 -0
  233. package/templates/ice-mobile-native/android/app/libs/android-gif-drawable-release@1.2.23.aar +0 -0
  234. package/templates/ice-mobile-native/android/app/libs/lib.5plus.base-release.aar +0 -0
  235. package/templates/ice-mobile-native/android/app/libs/oaid_sdk_1.0.25.aar +0 -0
  236. package/templates/ice-mobile-native/android/app/libs/webview-x5-release.aar +0 -0
  237. package/templates/ice-mobile-native/android/app/proguard-rules.pro +0 -303
  238. package/templates/ice-mobile-native/android/app/src/main/AndroidManifest.xml +0 -98
  239. package/templates/ice-mobile-native/android/app/src/main/assets/apps/H5ECA1DEE/www/manifest.json +0 -89
  240. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_control.xml +0 -6
  241. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_error.html +0 -92
  242. package/templates/ice-mobile-native/android/app/src/main/assets/data/dcloud_properties.xml +0 -19
  243. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/JSBridge/FunctionCreator.java +0 -119
  244. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/MPandoraEntryActivity.java +0 -17
  245. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Creator.java +0 -17
  246. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/FunctionFactory/Error.java +0 -26
  247. package/templates/ice-mobile-native/android/app/src/main/java/plus/H5ECA1DEE/Xprinter/JSPlugin.java +0 -265
  248. package/templates/ice-mobile-native/android/app/src/main/res/drawable/icon.png +0 -0
  249. package/templates/ice-mobile-native/android/app/src/main/res/values/colors.xml +0 -5
  250. package/templates/ice-mobile-native/android/app/src/main/res/values/strings.xml +0 -3
  251. package/templates/ice-mobile-native/android/build.gradle +0 -9
  252. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  253. package/templates/ice-mobile-native/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  254. package/templates/ice-mobile-native/android/gradle.properties +0 -22
  255. package/templates/ice-mobile-native/android/gradlew +0 -185
  256. package/templates/ice-mobile-native/android/gradlew.bat +0 -89
  257. package/templates/ice-mobile-native/android/settings.gradle +0 -16
  258. package/templates/ice-mobile-native/ios/HBuilder/HBuilder.entitlements +0 -5
  259. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/1024x1024.png +0 -0
  260. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120-1.png +0 -0
  261. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/120x120.png +0 -0
  262. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/180x180.png +0 -0
  263. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/40x40.png +0 -0
  264. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/58x58.png +0 -0
  265. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/60x60.png +0 -0
  266. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/80x80.png +0 -0
  267. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/87x87.png +0 -0
  268. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/AppIcon.appiconset/Contents.json +0 -62
  269. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Contents.json +0 -6
  270. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/Image.imageset/Contents.json +0 -20
  271. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/120x120.png +0 -0
  272. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/180x180.png +0 -0
  273. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/60x60.png +0 -0
  274. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/app.imageset/Contents.json +0 -26
  275. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/Contents.json +0 -21
  276. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/control_brightness.imageset/brightness@2x.png +0 -0
  277. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/Contents.json +0 -22
  278. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@2x.png +0 -0
  279. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exitfullscreen.imageset/shrinkscreen@3x.png +0 -0
  280. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset/Contents.json +0 -22
  281. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211-1.png +0 -0
  282. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/exposure_slider_max.imageset//346/233/235/345/205/211.png +0 -0
  283. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset/Contents.json +0 -22
  284. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206-1.png +0 -0
  285. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_border.imageset//345/257/271/347/204/246/346/241/206.png +0 -0
  286. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset/Contents.json +0 -21
  287. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_line.imageset//345/257/271/347/204/246/347/272/277.png +0 -0
  288. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset/Contents.json +0 -22
  289. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225-1.png +0 -0
  290. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/focus_slider_thumb.imageset//345/257/271/347/204/246/345/272/225.png +0 -0
  291. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/Contents.json +0 -22
  292. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@2x.png +0 -0
  293. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/full-screen.imageset/fullscreen@3x.png +0 -0
  294. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/Contents.json +0 -23
  295. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play.png +0 -0
  296. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@2x.png +0 -0
  297. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/play.imageset/play@3x.png +0 -0
  298. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/Contents.json +0 -23
  299. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back.png +0 -0
  300. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@2x.png +0 -0
  301. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_back.imageset/player_back@3x.png +0 -0
  302. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/Contents.json +0 -23
  303. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play.png +0 -0
  304. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@2x.png +0 -0
  305. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_play.imageset/play@3x.png +0 -0
  306. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/Contents.json +0 -23
  307. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop.png +0 -0
  308. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@2x.png +0 -0
  309. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/player_stop.imageset/player-stop@3x.png +0 -0
  310. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/Contents.json +0 -22
  311. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@2x.png +0 -0
  312. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteoff.imageset/video_ic_muteoff@3x.png +0 -0
  313. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/Contents.json +0 -22
  314. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@2x.png +0 -0
  315. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_ic_muteon.imageset/video_ic_muteon@3x.png +0 -0
  316. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/Contents.json +0 -22
  317. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@2x.png +0 -0
  318. package/templates/ice-mobile-native/ios/HBuilder/Images.xcassets/video_volume.imageset/video_volume@3x.png +0 -0
  319. package/templates/ice-mobile-native/ios/HBuilder-Hello/120x120.png +0 -0
  320. package/templates/ice-mobile-native/ios/HBuilder-Hello/180x180.png +0 -0
  321. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.h +0 -16
  322. package/templates/ice-mobile-native/ios/HBuilder-Hello/AppDelegate.m +0 -225
  323. package/templates/ice-mobile-native/ios/HBuilder-Hello/Base.lproj/LaunchScreen.storyboard +0 -65
  324. package/templates/ice-mobile-native/ios/HBuilder-Hello/English.lproj/Localizable.strings +0 -13
  325. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Info.plist +0 -486
  326. package/templates/ice-mobile-native/ios/HBuilder-Hello/HBuilder-Hello-Prefix.pch +0 -16
  327. package/templates/ice-mobile-native/ios/HBuilder-Hello/LaunchScreen.storyboard +0 -67
  328. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/manifest.json +0 -79
  329. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/1024x1024.png +0 -0
  330. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/120x120.png +0 -0
  331. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/144x144.png +0 -0
  332. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/152x152.png +0 -0
  333. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/167x167.png +0 -0
  334. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/180x180.png +0 -0
  335. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/192x192.png +0 -0
  336. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/20x20.png +0 -0
  337. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/29x29.png +0 -0
  338. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/40x40.png +0 -0
  339. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/58x58.png +0 -0
  340. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/60x60.png +0 -0
  341. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/72x72.png +0 -0
  342. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/76x76.png +0 -0
  343. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/80x80.png +0 -0
  344. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/87x87.png +0 -0
  345. package/templates/ice-mobile-native/ios/HBuilder-Hello/Pandora/apps/H5ECA1DEE/www/unpackage/res/icons/96x96.png +0 -0
  346. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.h +0 -19
  347. package/templates/ice-mobile-native/ios/HBuilder-Hello/ViewController.m +0 -161
  348. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.h +0 -19
  349. package/templates/ice-mobile-native/ios/HBuilder-Hello/Xprinter.m +0 -235
  350. package/templates/ice-mobile-native/ios/HBuilder-Hello/control.xml +0 -107
  351. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/InfoPlist.strings +0 -4
  352. package/templates/ice-mobile-native/ios/HBuilder-Hello/en.lproj/Localizable.strings +0 -12
  353. package/templates/ice-mobile-native/ios/HBuilder-Hello/main.m +0 -18
  354. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/InfoPlist.strings +0 -4
  355. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/LaunchScreen.strings +0 -3
  356. package/templates/ice-mobile-native/ios/HBuilder-Hello/zh-Hans.lproj/Localizable.strings +0 -13
  357. package/templates/ice-mobile-native/ios/HBuilder-Hello.xcodeproj/project.pbxproj +0 -1607
  358. package/templates/ice-mobile-native/package.json.tpl +0 -16
  359. package/templates/ice-mobile-native/public/favicon.ico +0 -0
  360. package/templates/ice-mobile-native/public/index.html +0 -15
  361. package/templates/ice-mobile-native/src/app.tsx +0 -5
  362. package/templates/ice-mobile-native/src/common/Xprinter.ts +0 -58
  363. package/templates/ice-mobile-native/src/common/bluetooth.ts +0 -354
  364. package/templates/ice-mobile-native/src/common/bridge.ts +0 -59
  365. package/templates/ice-mobile-native/src/common/request.ts +0 -3
  366. package/templates/ice-mobile-native/src/common/util.ts +0 -7
  367. package/templates/ice-mobile-native/src/components/index.ts +0 -0
  368. package/templates/ice-mobile-native/src/global.less +0 -3
  369. package/templates/ice-mobile-native/src/layouts/index.tsx +0 -5
  370. package/templates/ice-mobile-native/src/pages/404.tsx +0 -10
  371. package/templates/ice-mobile-native/src/pages/demo/examples/BarCode.tsx +0 -4
  372. package/templates/ice-mobile-native/src/pages/demo/examples/Iconfont.tsx +0 -18
  373. package/templates/ice-mobile-native/src/pages/demo/examples/Input.tsx +0 -17
  374. package/templates/ice-mobile-native/src/pages/demo/examples/List/1.tsx +0 -12
  375. package/templates/ice-mobile-native/src/pages/demo/examples/List/2.tsx +0 -29
  376. package/templates/ice-mobile-native/src/pages/demo/examples/List/3.tsx +0 -29
  377. package/templates/ice-mobile-native/src/pages/demo/examples/List/4.tsx +0 -55
  378. package/templates/ice-mobile-native/src/pages/demo/examples/List/mock.ts +0 -30
  379. package/templates/ice-mobile-native/src/pages/demo/examples/Loading.tsx +0 -12
  380. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/1.tsx +0 -17
  381. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/2.tsx +0 -17
  382. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/3.tsx +0 -17
  383. package/templates/ice-mobile-native/src/pages/demo/examples/NumberInput/4.tsx +0 -17
  384. package/templates/ice-mobile-native/src/pages/demo/examples/PagingList/1.tsx +0 -6
  385. package/templates/ice-mobile-native/src/pages/demo/examples/QrCode.tsx +0 -4
  386. package/templates/ice-mobile-native/src/pages/demo/examples/Required.tsx +0 -4
  387. package/templates/ice-mobile-native/src/pages/demo/examples/TimerButton.tsx +0 -4
  388. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/index.tsx +0 -64
  389. package/templates/ice-mobile-native/src/pages/demo/examples/Xprinter/style.less +0 -16
  390. package/templates/ice-mobile-native/src/pages/demo/examples/usePreload.tsx +0 -9
  391. package/templates/ice-mobile-native/src/pages/demo/index.tsx +0 -89
  392. package/templates/ice-mobile-native/src/pages/index.tsx +0 -3
  393. package/templates/ice-mobile-native/src/routes.ts +0 -29
  394. package/templates/ice-mobile-native/src/types/user.d.ts +0 -3
  395. package/templates/ice-mobile-native/tsconfig.json +0 -3
  396. package/templates/ice-mobile-native/typings.d.ts +0 -1
  397. package/templates/ice-web/.eslintrc +0 -6
  398. package/templates/ice-web/.gitignore.tpl +0 -34
  399. package/templates/ice-web/.icerc.ts +0 -3
  400. package/templates/ice-web/.npmrc.tpl +0 -2
  401. package/templates/ice-web/.prettierignore +0 -9
  402. package/templates/ice-web/.prettierrc +0 -11
  403. package/templates/ice-web/.stylelintrc +0 -3
  404. package/templates/ice-web/README.md.tpl +0 -34
  405. package/templates/ice-web/package.json.tpl +0 -16
  406. package/templates/ice-web/public/favicon.ico +0 -0
  407. package/templates/ice-web/public/index.html +0 -15
  408. package/templates/ice-web/src/app.tsx +0 -5
  409. package/templates/ice-web/src/common/request.ts +0 -3
  410. package/templates/ice-web/src/common/util.ts +0 -7
  411. package/templates/ice-web/src/components/index.ts +0 -0
  412. package/templates/ice-web/src/global.less +0 -5
  413. package/templates/ice-web/src/layouts/index.tsx +0 -5
  414. package/templates/ice-web/src/pages/404.tsx +0 -17
  415. package/templates/ice-web/src/pages/demo/examples/BankInput.tsx +0 -13
  416. package/templates/ice-web/src/pages/demo/examples/BarCode.tsx +0 -4
  417. package/templates/ice-web/src/pages/demo/examples/Collapse.tsx +0 -4
  418. package/templates/ice-web/src/pages/demo/examples/DatePicker.tsx +0 -4
  419. package/templates/ice-web/src/pages/demo/examples/Flex.tsx +0 -10
  420. package/templates/ice-web/src/pages/demo/examples/Grid/1.tsx +0 -25
  421. package/templates/ice-web/src/pages/demo/examples/Grid/2.tsx +0 -26
  422. package/templates/ice-web/src/pages/demo/examples/Grid/3.tsx +0 -37
  423. package/templates/ice-web/src/pages/demo/examples/Grid/4.tsx +0 -43
  424. package/templates/ice-web/src/pages/demo/examples/Grid/5.tsx +0 -36
  425. package/templates/ice-web/src/pages/demo/examples/Grid/6.tsx +0 -28
  426. package/templates/ice-web/src/pages/demo/examples/Iconfont.tsx +0 -18
  427. package/templates/ice-web/src/pages/demo/examples/ImagePreview.tsx +0 -20
  428. package/templates/ice-web/src/pages/demo/examples/Input/1.tsx +0 -4
  429. package/templates/ice-web/src/pages/demo/examples/Input/2.tsx +0 -80
  430. package/templates/ice-web/src/pages/demo/examples/LinkButton/1.tsx +0 -4
  431. package/templates/ice-web/src/pages/demo/examples/LinkButton/2.tsx +0 -9
  432. package/templates/ice-web/src/pages/demo/examples/LinkButton/3.tsx +0 -12
  433. package/templates/ice-web/src/pages/demo/examples/Loading.tsx +0 -12
  434. package/templates/ice-web/src/pages/demo/examples/MobileInput.tsx +0 -4
  435. package/templates/ice-web/src/pages/demo/examples/NumberInput.tsx +0 -4
  436. package/templates/ice-web/src/pages/demo/examples/PagingTable.tsx +0 -21
  437. package/templates/ice-web/src/pages/demo/examples/QrCode.tsx +0 -4
  438. package/templates/ice-web/src/pages/demo/examples/RangeNumber/1.tsx +0 -4
  439. package/templates/ice-web/src/pages/demo/examples/RangeNumber/2.tsx +0 -15
  440. package/templates/ice-web/src/pages/demo/examples/Required.tsx +0 -4
  441. package/templates/ice-web/src/pages/demo/examples/SearchLayout.tsx +0 -46
  442. package/templates/ice-web/src/pages/demo/examples/Table/1.tsx +0 -64
  443. package/templates/ice-web/src/pages/demo/examples/Table/2.tsx +0 -29
  444. package/templates/ice-web/src/pages/demo/examples/Table/3.tsx +0 -39
  445. package/templates/ice-web/src/pages/demo/examples/Table/4.tsx +0 -42
  446. package/templates/ice-web/src/pages/demo/examples/TimerButton.tsx +0 -4
  447. package/templates/ice-web/src/pages/demo/examples/Title/1.tsx +0 -4
  448. package/templates/ice-web/src/pages/demo/examples/Title/2.tsx +0 -5
  449. package/templates/ice-web/src/pages/demo/examples/WaterMark.tsx +0 -8
  450. package/templates/ice-web/src/pages/demo/examples/Wrapper.tsx +0 -40
  451. package/templates/ice-web/src/pages/demo/examples/usePreload.tsx +0 -9
  452. package/templates/ice-web/src/pages/demo/index.tsx +0 -135
  453. package/templates/ice-web/src/pages/index.tsx +0 -3
  454. package/templates/ice-web/src/routes.ts +0 -29
  455. package/templates/ice-web/src/types/user.d.ts +0 -3
  456. package/templates/ice-web/tsconfig.json +0 -3
  457. package/templates/ice-web/typings.d.ts +0 -1
  458. package/templates/ice-web-screen/.eslintrc +0 -6
  459. package/templates/ice-web-screen/.gitignore.tpl +0 -34
  460. package/templates/ice-web-screen/.icerc.ts +0 -3
  461. package/templates/ice-web-screen/.npmrc.tpl +0 -2
  462. package/templates/ice-web-screen/.prettierignore +0 -9
  463. package/templates/ice-web-screen/.prettierrc +0 -11
  464. package/templates/ice-web-screen/.stylelintrc +0 -3
  465. package/templates/ice-web-screen/README.md.tpl +0 -34
  466. package/templates/ice-web-screen/package.json.tpl +0 -17
  467. package/templates/ice-web-screen/public/favicon.ico +0 -0
  468. package/templates/ice-web-screen/public/index.html +0 -15
  469. package/templates/ice-web-screen/src/app.tsx +0 -5
  470. package/templates/ice-web-screen/src/common/request.ts +0 -3
  471. package/templates/ice-web-screen/src/common/util.ts +0 -15
  472. package/templates/ice-web-screen/src/components/index.ts +0 -1
  473. package/templates/ice-web-screen/src/components/resize-container/index.tsx +0 -95
  474. package/templates/ice-web-screen/src/components/resize-container/style.module.less +0 -3
  475. package/templates/ice-web-screen/src/constants.ts +0 -7
  476. package/templates/ice-web-screen/src/global.less +0 -31
  477. package/templates/ice-web-screen/src/hooks/use-size.ts +0 -18
  478. package/templates/ice-web-screen/src/layouts/16_9/fixed.less +0 -18
  479. package/templates/ice-web-screen/src/layouts/16_9/index.tsx +0 -34
  480. package/templates/ice-web-screen/src/layouts/16_9/style.module.less +0 -19
  481. package/templates/ice-web-screen/src/layouts/components/index.ts +0 -0
  482. package/templates/ice-web-screen/src/layouts/controller/index.tsx +0 -79
  483. package/templates/ice-web-screen/src/layouts/index.tsx +0 -11
  484. package/templates/ice-web-screen/src/pages/404.tsx +0 -17
  485. package/templates/ice-web-screen/src/pages/index.tsx +0 -3
  486. package/templates/ice-web-screen/src/pages/template/16_9/index.tsx +0 -13
  487. package/templates/ice-web-screen/src/pages/template/16_9/style.module.less +0 -7
  488. package/templates/ice-web-screen/src/pages/template/components/charts/demo-line/index.tsx +0 -274
  489. package/templates/ice-web-screen/src/pages/template/components/charts/index.ts +0 -1
  490. package/templates/ice-web-screen/src/pages/template/components/index.ts +0 -1
  491. package/templates/ice-web-screen/src/pages/template/controller/index.tsx +0 -85
  492. package/templates/ice-web-screen/src/pages/template/index.tsx +0 -15
  493. package/templates/ice-web-screen/src/pages/template/style.module.less +0 -3
  494. package/templates/ice-web-screen/src/routes.ts +0 -29
  495. package/templates/ice-web-screen/src/styles/vars.less +0 -5
  496. package/templates/ice-web-screen/src/types/user.d.ts +0 -3
  497. package/templates/ice-web-screen/tsconfig.json +0 -3
  498. package/templates/ice-web-screen/typings.d.ts +0 -1
  499. package/templates/miniprogram/.editorconfig +0 -12
  500. package/templates/miniprogram/.eslintrc +0 -6
  501. package/templates/miniprogram/.prettierrc +0 -12
  502. package/templates/miniprogram/src/pages/demo/index.module.scss.d.ts +0 -5
  503. package/templates/miniprogram/src/pages/index/index.module.scss.d.ts +0 -5
  504. package/templates/umi-mobile/.eslintrc +0 -6
  505. package/templates/umi-mobile/.prettierrc +0 -11
  506. package/templates/umi-mobile-h5+app/.eslintrc +0 -6
  507. package/templates/umi-mobile-h5+app/.prettierrc +0 -11
  508. package/templates/umi-mobile-native/.eslintrc +0 -6
  509. package/templates/umi-mobile-native/.prettierrc +0 -11
  510. package/templates/umi-web/.eslintrc +0 -6
  511. package/templates/umi-web/.prettierrc +0 -11
  512. package/templates/umi-web-screen/.eslintrc +0 -6
  513. package/templates/umi-web-screen/.prettierrc +0 -11
  514. /package/templates/miniprogram/src/pages/demo/{index.module.scss → style.scss} +0 -0
  515. /package/templates/miniprogram/src/pages/index/{index.module.scss → style.scss} +0 -0
@@ -0,0 +1 @@
1
+ (function(){var t={81:function(t){"use strict";t.exports=require("child_process")},361:function(t){"use strict";t.exports=require("events")},147:function(t){"use strict";t.exports=require("fs")},17:function(t){"use strict";t.exports=require("path")},282:function(t){"use strict";t.exports=require("process")},400:function(t,e,i){const{InvalidArgumentError:n}=i(24);class Argument{constructor(t,e){this.description=e||"";this.variadic=false;this.parseArg=undefined;this.defaultValue=undefined;this.defaultValueDescription=undefined;this.argChoices=undefined;switch(t[0]){case"<":this.required=true;this._name=t.slice(1,-1);break;case"[":this.required=false;this._name=t.slice(1,-1);break;default:this.required=true;this._name=t;break}if(this._name.length>3&&this._name.slice(-3)==="..."){this.variadic=true;this._name=this._name.slice(0,-3)}}name(){return this._name}_concatValue(t,e){if(e===this.defaultValue||!Array.isArray(e)){return[t]}return e.concat(t)}default(t,e){this.defaultValue=t;this.defaultValueDescription=e;return this}argParser(t){this.parseArg=t;return this}choices(t){this.argChoices=t.slice();this.parseArg=(t,e)=>{if(!this.argChoices.includes(t)){throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(t,e)}return t};return this}argRequired(){this.required=true;return this}argOptional(){this.required=false;return this}}function humanReadableArgName(t){const e=t.name()+(t.variadic===true?"...":"");return t.required?"<"+e+">":"["+e+"]"}e.Argument=Argument;e.humanReadableArgName=humanReadableArgName},220:function(t,e,i){const n=i(361).EventEmitter;const s=i(81);const r=i(17);const o=i(147);const a=i(282);const{Argument:h,humanReadableArgName:l}=i(400);const{CommanderError:u}=i(24);const{Help:c}=i(505);const{Option:p,DualOptions:d}=i(663);const{suggestSimilar:m}=i(861);class Command extends n{constructor(t){super();this.commands=[];this.options=[];this.parent=null;this._allowUnknownOption=false;this._allowExcessArguments=true;this.registeredArguments=[];this._args=this.registeredArguments;this.args=[];this.rawArgs=[];this.processedArgs=[];this._scriptPath=null;this._name=t||"";this._optionValues={};this._optionValueSources={};this._storeOptionsAsProperties=false;this._actionHandler=null;this._executableHandler=false;this._executableFile=null;this._executableDir=null;this._defaultCommandName=null;this._exitCallback=null;this._aliases=[];this._combineFlagAndOptionalValue=true;this._description="";this._summary="";this._argsDescription=undefined;this._enablePositionalOptions=false;this._passThroughOptions=false;this._lifeCycleHooks={};this._showHelpAfterError=false;this._showSuggestionAfterError=true;this._outputConfiguration={writeOut:t=>a.stdout.write(t),writeErr:t=>a.stderr.write(t),getOutHelpWidth:()=>a.stdout.isTTY?a.stdout.columns:undefined,getErrHelpWidth:()=>a.stderr.isTTY?a.stderr.columns:undefined,outputError:(t,e)=>e(t)};this._hidden=false;this._helpOption=undefined;this._addImplicitHelpCommand=undefined;this._helpCommand=undefined;this._helpConfiguration={}}copyInheritedSettings(t){this._outputConfiguration=t._outputConfiguration;this._helpOption=t._helpOption;this._helpCommand=t._helpCommand;this._helpConfiguration=t._helpConfiguration;this._exitCallback=t._exitCallback;this._storeOptionsAsProperties=t._storeOptionsAsProperties;this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue;this._allowExcessArguments=t._allowExcessArguments;this._enablePositionalOptions=t._enablePositionalOptions;this._showHelpAfterError=t._showHelpAfterError;this._showSuggestionAfterError=t._showSuggestionAfterError;return this}_getCommandAndAncestors(){const t=[];for(let e=this;e;e=e.parent){t.push(e)}return t}command(t,e,i){let n=e;let s=i;if(typeof n==="object"&&n!==null){s=n;n=null}s=s||{};const[,r,o]=t.match(/([^ ]+) *(.*)/);const a=this.createCommand(r);if(n){a.description(n);a._executableHandler=true}if(s.isDefault)this._defaultCommandName=a._name;a._hidden=!!(s.noHelp||s.hidden);a._executableFile=s.executableFile||null;if(o)a.arguments(o);this._registerCommand(a);a.parent=this;a.copyInheritedSettings(this);if(n)return this;return a}createCommand(t){return new Command(t)}createHelp(){return Object.assign(new c,this.configureHelp())}configureHelp(t){if(t===undefined)return this._helpConfiguration;this._helpConfiguration=t;return this}configureOutput(t){if(t===undefined)return this._outputConfiguration;Object.assign(this._outputConfiguration,t);return this}showHelpAfterError(t=true){if(typeof t!=="string")t=!!t;this._showHelpAfterError=t;return this}showSuggestionAfterError(t=true){this._showSuggestionAfterError=!!t;return this}addCommand(t,e){if(!t._name){throw new Error(`Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()`)}e=e||{};if(e.isDefault)this._defaultCommandName=t._name;if(e.noHelp||e.hidden)t._hidden=true;this._registerCommand(t);t.parent=this;t._checkForBrokenPassThrough();return this}createArgument(t,e){return new h(t,e)}argument(t,e,i,n){const s=this.createArgument(t,e);if(typeof i==="function"){s.default(n).argParser(i)}else{s.default(i)}this.addArgument(s);return this}arguments(t){t.trim().split(/ +/).forEach((t=>{this.argument(t)}));return this}addArgument(t){const e=this.registeredArguments.slice(-1)[0];if(e&&e.variadic){throw new Error(`only the last argument can be variadic '${e.name()}'`)}if(t.required&&t.defaultValue!==undefined&&t.parseArg===undefined){throw new Error(`a default value for a required argument is never used: '${t.name()}'`)}this.registeredArguments.push(t);return this}helpCommand(t,e){if(typeof t==="boolean"){this._addImplicitHelpCommand=t;return this}t=t??"help [command]";const[,i,n]=t.match(/([^ ]+) *(.*)/);const s=e??"display help for command";const r=this.createCommand(i);r.helpOption(false);if(n)r.arguments(n);if(s)r.description(s);this._addImplicitHelpCommand=true;this._helpCommand=r;return this}addHelpCommand(t,e){if(typeof t!=="object"){this.helpCommand(t,e);return this}this._addImplicitHelpCommand=true;this._helpCommand=t;return this}_getHelpCommand(){const t=this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"));if(t){if(this._helpCommand===undefined){this.helpCommand(undefined,undefined)}return this._helpCommand}return null}hook(t,e){const i=["preSubcommand","preAction","postAction"];if(!i.includes(t)){throw new Error(`Unexpected value for event passed to hook : '${t}'.\nExpecting one of '${i.join("', '")}'`)}if(this._lifeCycleHooks[t]){this._lifeCycleHooks[t].push(e)}else{this._lifeCycleHooks[t]=[e]}return this}exitOverride(t){if(t){this._exitCallback=t}else{this._exitCallback=t=>{if(t.code!=="commander.executeSubCommandAsync"){throw t}else{}}}return this}_exit(t,e,i){if(this._exitCallback){this._exitCallback(new u(t,e,i))}a.exit(t)}action(t){const listener=e=>{const i=this.registeredArguments.length;const n=e.slice(0,i);if(this._storeOptionsAsProperties){n[i]=this}else{n[i]=this.opts()}n.push(this);return t.apply(this,n)};this._actionHandler=listener;return this}createOption(t,e){return new p(t,e)}_callParseArg(t,e,i,n){try{return t.parseArg(e,i)}catch(t){if(t.code==="commander.invalidArgument"){const e=`${n} ${t.message}`;this.error(e,{exitCode:t.exitCode,code:t.code})}throw t}}_registerOption(t){const e=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(e){const i=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${i}'\n- already used by option '${e.flags}'`)}this.options.push(t)}_registerCommand(t){const knownBy=t=>[t.name()].concat(t.aliases());const e=knownBy(t).find((t=>this._findCommand(t)));if(e){const i=knownBy(this._findCommand(e)).join("|");const n=knownBy(t).join("|");throw new Error(`cannot add command '${n}' as already have command '${i}'`)}this.commands.push(t)}addOption(t){this._registerOption(t);const e=t.name();const i=t.attributeName();if(t.negate){const e=t.long.replace(/^--no-/,"--");if(!this._findOption(e)){this.setOptionValueWithSource(i,t.defaultValue===undefined?true:t.defaultValue,"default")}}else if(t.defaultValue!==undefined){this.setOptionValueWithSource(i,t.defaultValue,"default")}const handleOptionValue=(e,n,s)=>{if(e==null&&t.presetArg!==undefined){e=t.presetArg}const r=this.getOptionValue(i);if(e!==null&&t.parseArg){e=this._callParseArg(t,e,r,n)}else if(e!==null&&t.variadic){e=t._concatValue(e,r)}if(e==null){if(t.negate){e=false}else if(t.isBoolean()||t.optional){e=true}else{e=""}}this.setOptionValueWithSource(i,e,s)};this.on("option:"+e,(e=>{const i=`error: option '${t.flags}' argument '${e}' is invalid.`;handleOptionValue(e,i,"cli")}));if(t.envVar){this.on("optionEnv:"+e,(e=>{const i=`error: option '${t.flags}' value '${e}' from env '${t.envVar}' is invalid.`;handleOptionValue(e,i,"env")}))}return this}_optionEx(t,e,i,n,s){if(typeof e==="object"&&e instanceof p){throw new Error("To add an Option object use addOption() instead of option() or requiredOption()")}const r=this.createOption(e,i);r.makeOptionMandatory(!!t.mandatory);if(typeof n==="function"){r.default(s).argParser(n)}else if(n instanceof RegExp){const t=n;n=(e,i)=>{const n=t.exec(e);return n?n[0]:i};r.default(s).argParser(n)}else{r.default(n)}return this.addOption(r)}option(t,e,i,n){return this._optionEx({},t,e,i,n)}requiredOption(t,e,i,n){return this._optionEx({mandatory:true},t,e,i,n)}combineFlagAndOptionalValue(t=true){this._combineFlagAndOptionalValue=!!t;return this}allowUnknownOption(t=true){this._allowUnknownOption=!!t;return this}allowExcessArguments(t=true){this._allowExcessArguments=!!t;return this}enablePositionalOptions(t=true){this._enablePositionalOptions=!!t;return this}passThroughOptions(t=true){this._passThroughOptions=!!t;this._checkForBrokenPassThrough();return this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions){throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}}storeOptionsAsProperties(t=true){if(this.options.length){throw new Error("call .storeOptionsAsProperties() before adding options")}if(Object.keys(this._optionValues).length){throw new Error("call .storeOptionsAsProperties() before setting option values")}this._storeOptionsAsProperties=!!t;return this}getOptionValue(t){if(this._storeOptionsAsProperties){return this[t]}return this._optionValues[t]}setOptionValue(t,e){return this.setOptionValueWithSource(t,e,undefined)}setOptionValueWithSource(t,e,i){if(this._storeOptionsAsProperties){this[t]=e}else{this._optionValues[t]=e}this._optionValueSources[t]=i;return this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let e;this._getCommandAndAncestors().forEach((i=>{if(i.getOptionValueSource(t)!==undefined){e=i.getOptionValueSource(t)}}));return e}_prepareUserArgs(t,e){if(t!==undefined&&!Array.isArray(t)){throw new Error("first parameter to parse must be array or undefined")}e=e||{};if(t===undefined){t=a.argv;if(a.versions&&a.versions.electron){e.from="electron"}}this.rawArgs=t.slice();let i;switch(e.from){case undefined:case"node":this._scriptPath=t[1];i=t.slice(2);break;case"electron":if(a.defaultApp){this._scriptPath=t[1];i=t.slice(2)}else{i=t.slice(1)}break;case"user":i=t.slice(0);break;default:throw new Error(`unexpected parse option { from: '${e.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);this._name=this._name||"program";return i}parse(t,e){const i=this._prepareUserArgs(t,e);this._parseCommand([],i);return this}async parseAsync(t,e){const i=this._prepareUserArgs(t,e);await this._parseCommand([],i);return this}_executeSubCommand(t,e){e=e.slice();let i=false;const n=[".js",".ts",".tsx",".mjs",".cjs"];function findFile(t,e){const i=r.resolve(t,e);if(o.existsSync(i))return i;if(n.includes(r.extname(e)))return undefined;const s=n.find((t=>o.existsSync(`${i}${t}`)));if(s)return`${i}${s}`;return undefined}this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();let h=t._executableFile||`${this._name}-${t._name}`;let l=this._executableDir||"";if(this._scriptPath){let t;try{t=o.realpathSync(this._scriptPath)}catch(e){t=this._scriptPath}l=r.resolve(r.dirname(t),l)}if(l){let e=findFile(l,h);if(!e&&!t._executableFile&&this._scriptPath){const i=r.basename(this._scriptPath,r.extname(this._scriptPath));if(i!==this._name){e=findFile(l,`${i}-${t._name}`)}}h=e||h}i=n.includes(r.extname(h));let c;if(a.platform!=="win32"){if(i){e.unshift(h);e=incrementNodeInspectorPort(a.execArgv).concat(e);c=s.spawn(a.argv[0],e,{stdio:"inherit"})}else{c=s.spawn(h,e,{stdio:"inherit"})}}else{e.unshift(h);e=incrementNodeInspectorPort(a.execArgv).concat(e);c=s.spawn(a.execPath,e,{stdio:"inherit"})}if(!c.killed){const t=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];t.forEach((t=>{a.on(t,(()=>{if(c.killed===false&&c.exitCode===null){c.kill(t)}}))}))}const p=this._exitCallback;c.on("close",((t,e)=>{t=t??1;if(!p){a.exit(t)}else{p(new u(t,"commander.executeSubCommandAsync","(close)"))}}));c.on("error",(e=>{if(e.code==="ENOENT"){const e=l?`searched for local subcommand relative to directory '${l}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory";const i=`'${h}' does not exist\n - if '${t._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${e}`;throw new Error(i)}else if(e.code==="EACCES"){throw new Error(`'${h}' not executable`)}if(!p){a.exit(1)}else{const t=new u(1,"commander.executeSubCommandAsync","(error)");t.nestedError=e;p(t)}}));this.runningCommand=c}_dispatchSubcommand(t,e,i){const n=this._findCommand(t);if(!n)this.help({error:true});let s;s=this._chainOrCallSubCommandHook(s,n,"preSubcommand");s=this._chainOrCall(s,(()=>{if(n._executableHandler){this._executeSubCommand(n,e.concat(i))}else{return n._parseCommand(e,i)}}));return s}_dispatchHelpCommand(t){if(!t){this.help()}const e=this._findCommand(t);if(e&&!e._executableHandler){e.help()}return this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach(((t,e)=>{if(t.required&&this.args[e]==null){this.missingArgument(t.name())}}));if(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic){return}if(this.args.length>this.registeredArguments.length){this._excessArguments(this.args)}}_processArguments(){const myParseArg=(t,e,i)=>{let n=e;if(e!==null&&t.parseArg){const s=`error: command-argument value '${e}' is invalid for argument '${t.name()}'.`;n=this._callParseArg(t,e,i,s)}return n};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach(((e,i)=>{let n=e.defaultValue;if(e.variadic){if(i<this.args.length){n=this.args.slice(i);if(e.parseArg){n=n.reduce(((t,i)=>myParseArg(e,i,t)),e.defaultValue)}}else if(n===undefined){n=[]}}else if(i<this.args.length){n=this.args[i];if(e.parseArg){n=myParseArg(e,n,e.defaultValue)}}t[i]=n}));this.processedArgs=t}_chainOrCall(t,e){if(t&&t.then&&typeof t.then==="function"){return t.then((()=>e()))}return e()}_chainOrCallHooks(t,e){let i=t;const n=[];this._getCommandAndAncestors().reverse().filter((t=>t._lifeCycleHooks[e]!==undefined)).forEach((t=>{t._lifeCycleHooks[e].forEach((e=>{n.push({hookedCommand:t,callback:e})}))}));if(e==="postAction"){n.reverse()}n.forEach((t=>{i=this._chainOrCall(i,(()=>t.callback(t.hookedCommand,this)))}));return i}_chainOrCallSubCommandHook(t,e,i){let n=t;if(this._lifeCycleHooks[i]!==undefined){this._lifeCycleHooks[i].forEach((t=>{n=this._chainOrCall(n,(()=>t(this,e)))}))}return n}_parseCommand(t,e){const i=this.parseOptions(e);this._parseOptionsEnv();this._parseOptionsImplied();t=t.concat(i.operands);e=i.unknown;this.args=t.concat(e);if(t&&this._findCommand(t[0])){return this._dispatchSubcommand(t[0],t.slice(1),e)}if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name()){return this._dispatchHelpCommand(t[1])}if(this._defaultCommandName){this._outputHelpIfRequested(e);return this._dispatchSubcommand(this._defaultCommandName,t,e)}if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName){this.help({error:true})}this._outputHelpIfRequested(i.unknown);this._checkForMissingMandatoryOptions();this._checkForConflictingOptions();const checkForUnknownOptions=()=>{if(i.unknown.length>0){this.unknownOption(i.unknown[0])}};const n=`command:${this.name()}`;if(this._actionHandler){checkForUnknownOptions();this._processArguments();let i;i=this._chainOrCallHooks(i,"preAction");i=this._chainOrCall(i,(()=>this._actionHandler(this.processedArgs)));if(this.parent){i=this._chainOrCall(i,(()=>{this.parent.emit(n,t,e)}))}i=this._chainOrCallHooks(i,"postAction");return i}if(this.parent&&this.parent.listenerCount(n)){checkForUnknownOptions();this._processArguments();this.parent.emit(n,t,e)}else if(t.length){if(this._findCommand("*")){return this._dispatchSubcommand("*",t,e)}if(this.listenerCount("command:*")){this.emit("command:*",t,e)}else if(this.commands.length){this.unknownCommand()}else{checkForUnknownOptions();this._processArguments()}}else if(this.commands.length){checkForUnknownOptions();this.help({error:true})}else{checkForUnknownOptions();this._processArguments()}}_findCommand(t){if(!t)return undefined;return this.commands.find((e=>e._name===t||e._aliases.includes(t)))}_findOption(t){return this.options.find((e=>e.is(t)))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((t=>{t.options.forEach((e=>{if(e.mandatory&&t.getOptionValue(e.attributeName())===undefined){t.missingMandatoryOptionValue(e)}}))}))}_checkForConflictingLocalOptions(){const t=this.options.filter((t=>{const e=t.attributeName();if(this.getOptionValue(e)===undefined){return false}return this.getOptionValueSource(e)!=="default"}));const e=t.filter((t=>t.conflictsWith.length>0));e.forEach((e=>{const i=t.find((t=>e.conflictsWith.includes(t.attributeName())));if(i){this._conflictingOption(e,i)}}))}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((t=>{t._checkForConflictingLocalOptions()}))}parseOptions(t){const e=[];const i=[];let n=e;const s=t.slice();function maybeOption(t){return t.length>1&&t[0]==="-"}let r=null;while(s.length){const t=s.shift();if(t==="--"){if(n===i)n.push(t);n.push(...s);break}if(r&&!maybeOption(t)){this.emit(`option:${r.name()}`,t);continue}r=null;if(maybeOption(t)){const e=this._findOption(t);if(e){if(e.required){const t=s.shift();if(t===undefined)this.optionMissingArgument(e);this.emit(`option:${e.name()}`,t)}else if(e.optional){let t=null;if(s.length>0&&!maybeOption(s[0])){t=s.shift()}this.emit(`option:${e.name()}`,t)}else{this.emit(`option:${e.name()}`)}r=e.variadic?e:null;continue}}if(t.length>2&&t[0]==="-"&&t[1]!=="-"){const e=this._findOption(`-${t[1]}`);if(e){if(e.required||e.optional&&this._combineFlagAndOptionalValue){this.emit(`option:${e.name()}`,t.slice(2))}else{this.emit(`option:${e.name()}`);s.unshift(`-${t.slice(2)}`)}continue}}if(/^--[^=]+=/.test(t)){const e=t.indexOf("=");const i=this._findOption(t.slice(0,e));if(i&&(i.required||i.optional)){this.emit(`option:${i.name()}`,t.slice(e+1));continue}}if(maybeOption(t)){n=i}if((this._enablePositionalOptions||this._passThroughOptions)&&e.length===0&&i.length===0){if(this._findCommand(t)){e.push(t);if(s.length>0)i.push(...s);break}else if(this._getHelpCommand()&&t===this._getHelpCommand().name()){e.push(t);if(s.length>0)e.push(...s);break}else if(this._defaultCommandName){i.push(t);if(s.length>0)i.push(...s);break}}if(this._passThroughOptions){n.push(t);if(s.length>0)n.push(...s);break}n.push(t)}return{operands:e,unknown:i}}opts(){if(this._storeOptionsAsProperties){const t={};const e=this.options.length;for(let i=0;i<e;i++){const e=this.options[i].attributeName();t[e]=e===this._versionOptionName?this._version:this[e]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce(((t,e)=>Object.assign(t,e.opts())),{})}error(t,e){this._outputConfiguration.outputError(`${t}\n`,this._outputConfiguration.writeErr);if(typeof this._showHelpAfterError==="string"){this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`)}else if(this._showHelpAfterError){this._outputConfiguration.writeErr("\n");this.outputHelp({error:true})}const i=e||{};const n=i.exitCode||1;const s=i.code||"commander.error";this._exit(n,s,t)}_parseOptionsEnv(){this.options.forEach((t=>{if(t.envVar&&t.envVar in a.env){const e=t.attributeName();if(this.getOptionValue(e)===undefined||["default","config","env"].includes(this.getOptionValueSource(e))){if(t.required||t.optional){this.emit(`optionEnv:${t.name()}`,a.env[t.envVar])}else{this.emit(`optionEnv:${t.name()}`)}}}}))}_parseOptionsImplied(){const t=new d(this.options);const hasCustomOptionValue=t=>this.getOptionValue(t)!==undefined&&!["default","implied"].includes(this.getOptionValueSource(t));this.options.filter((e=>e.implied!==undefined&&hasCustomOptionValue(e.attributeName())&&t.valueFromOption(this.getOptionValue(e.attributeName()),e))).forEach((t=>{Object.keys(t.implied).filter((t=>!hasCustomOptionValue(t))).forEach((e=>{this.setOptionValueWithSource(e,t.implied[e],"implied")}))}))}missingArgument(t){const e=`error: missing required argument '${t}'`;this.error(e,{code:"commander.missingArgument"})}optionMissingArgument(t){const e=`error: option '${t.flags}' argument missing`;this.error(e,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){const e=`error: required option '${t.flags}' not specified`;this.error(e,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,e){const findBestOptionFromValue=t=>{const e=t.attributeName();const i=this.getOptionValue(e);const n=this.options.find((t=>t.negate&&e===t.attributeName()));const s=this.options.find((t=>!t.negate&&e===t.attributeName()));if(n&&(n.presetArg===undefined&&i===false||n.presetArg!==undefined&&i===n.presetArg)){return n}return s||t};const getErrorMessage=t=>{const e=findBestOptionFromValue(t);const i=e.attributeName();const n=this.getOptionValueSource(i);if(n==="env"){return`environment variable '${e.envVar}'`}return`option '${e.flags}'`};const i=`error: ${getErrorMessage(t)} cannot be used with ${getErrorMessage(e)}`;this.error(i,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let e="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[];let n=this;do{const t=n.createHelp().visibleOptions(n).filter((t=>t.long)).map((t=>t.long));i=i.concat(t);n=n.parent}while(n&&!n._enablePositionalOptions);e=m(t,i)}const i=`error: unknown option '${t}'${e}`;this.error(i,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;const e=this.registeredArguments.length;const i=e===1?"":"s";const n=this.parent?` for '${this.name()}'`:"";const s=`error: too many arguments${n}. Expected ${e} argument${i} but got ${t.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){const t=this.args[0];let e="";if(this._showSuggestionAfterError){const i=[];this.createHelp().visibleCommands(this).forEach((t=>{i.push(t.name());if(t.alias())i.push(t.alias())}));e=m(t,i)}const i=`error: unknown command '${t}'${e}`;this.error(i,{code:"commander.unknownCommand"})}version(t,e,i){if(t===undefined)return this._version;this._version=t;e=e||"-V, --version";i=i||"output the version number";const n=this.createOption(e,i);this._versionOptionName=n.attributeName();this._registerOption(n);this.on("option:"+n.name(),(()=>{this._outputConfiguration.writeOut(`${t}\n`);this._exit(0,"commander.version",t)}));return this}description(t,e){if(t===undefined&&e===undefined)return this._description;this._description=t;if(e){this._argsDescription=e}return this}summary(t){if(t===undefined)return this._summary;this._summary=t;return this}alias(t){if(t===undefined)return this._aliases[0];let e=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler){e=this.commands[this.commands.length-1]}if(t===e._name)throw new Error("Command alias can't be the same as its name");const i=this.parent?._findCommand(t);if(i){const e=[i.name()].concat(i.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${e}'`)}e._aliases.push(t);return this}aliases(t){if(t===undefined)return this._aliases;t.forEach((t=>this.alias(t)));return this}usage(t){if(t===undefined){if(this._usage)return this._usage;const t=this.registeredArguments.map((t=>l(t)));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}this._usage=t;return this}name(t){if(t===undefined)return this._name;this._name=t;return this}nameFromFilename(t){this._name=r.basename(t,r.extname(t));return this}executableDir(t){if(t===undefined)return this._executableDir;this._executableDir=t;return this}helpInformation(t){const e=this.createHelp();if(e.helpWidth===undefined){e.helpWidth=t&&t.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()}return e.formatHelp(this,e)}_getHelpContext(t){t=t||{};const e={error:!!t.error};let i;if(e.error){i=t=>this._outputConfiguration.writeErr(t)}else{i=t=>this._outputConfiguration.writeOut(t)}e.write=t.write||i;e.command=this;return e}outputHelp(t){let e;if(typeof t==="function"){e=t;t=undefined}const i=this._getHelpContext(t);this._getCommandAndAncestors().reverse().forEach((t=>t.emit("beforeAllHelp",i)));this.emit("beforeHelp",i);let n=this.helpInformation(i);if(e){n=e(n);if(typeof n!=="string"&&!Buffer.isBuffer(n)){throw new Error("outputHelp callback must return a string or a Buffer")}}i.write(n);if(this._getHelpOption()?.long){this.emit(this._getHelpOption().long)}this.emit("afterHelp",i);this._getCommandAndAncestors().forEach((t=>t.emit("afterAllHelp",i)))}helpOption(t,e){if(typeof t==="boolean"){if(t){this._helpOption=this._helpOption??undefined}else{this._helpOption=null}return this}t=t??"-h, --help";e=e??"display help for command";this._helpOption=this.createOption(t,e);return this}_getHelpOption(){if(this._helpOption===undefined){this.helpOption(undefined,undefined)}return this._helpOption}addHelpOption(t){this._helpOption=t;return this}help(t){this.outputHelp(t);let e=a.exitCode||0;if(e===0&&t&&typeof t!=="function"&&t.error){e=1}this._exit(e,"commander.help","(outputHelp)")}addHelpText(t,e){const i=["beforeAll","before","after","afterAll"];if(!i.includes(t)){throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${i.join("', '")}'`)}const n=`${t}Help`;this.on(n,(t=>{let i;if(typeof e==="function"){i=e({error:t.error,command:t.command})}else{i=e}if(i){t.write(`${i}\n`)}}));return this}_outputHelpIfRequested(t){const e=this._getHelpOption();const i=e&&t.find((t=>e.is(t)));if(i){this.outputHelp();this._exit(0,"commander.helpDisplayed","(outputHelp)")}}}function incrementNodeInspectorPort(t){return t.map((t=>{if(!t.startsWith("--inspect")){return t}let e;let i="127.0.0.1";let n="9229";let s;if((s=t.match(/^(--inspect(-brk)?)$/))!==null){e=s[1]}else if((s=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null){e=s[1];if(/^\d+$/.test(s[3])){n=s[3]}else{i=s[3]}}else if((s=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null){e=s[1];i=s[3];n=s[4]}if(e&&n!=="0"){return`${e}=${i}:${parseInt(n)+1}`}return t}))}e.Command=Command},24:function(t,e){class CommanderError extends Error{constructor(t,e,i){super(i);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.code=e;this.exitCode=t;this.nestedError=undefined}}class InvalidArgumentError extends CommanderError{constructor(t){super(1,"commander.invalidArgument",t);Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name}}e.CommanderError=CommanderError;e.InvalidArgumentError=InvalidArgumentError},505:function(t,e,i){const{humanReadableArgName:n}=i(400);class Help{constructor(){this.helpWidth=undefined;this.sortSubcommands=false;this.sortOptions=false;this.showGlobalOptions=false}visibleCommands(t){const e=t.commands.filter((t=>!t._hidden));const i=t._getHelpCommand();if(i&&!i._hidden){e.push(i)}if(this.sortSubcommands){e.sort(((t,e)=>t.name().localeCompare(e.name())))}return e}compareOptions(t,e){const getSortKey=t=>t.short?t.short.replace(/^-/,""):t.long.replace(/^--/,"");return getSortKey(t).localeCompare(getSortKey(e))}visibleOptions(t){const e=t.options.filter((t=>!t.hidden));const i=t._getHelpOption();if(i&&!i.hidden){const n=i.short&&t._findOption(i.short);const s=i.long&&t._findOption(i.long);if(!n&&!s){e.push(i)}else if(i.long&&!s){e.push(t.createOption(i.long,i.description))}else if(i.short&&!n){e.push(t.createOption(i.short,i.description))}}if(this.sortOptions){e.sort(this.compareOptions)}return e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];const e=[];for(let i=t.parent;i;i=i.parent){const t=i.options.filter((t=>!t.hidden));e.push(...t)}if(this.sortOptions){e.sort(this.compareOptions)}return e}visibleArguments(t){if(t._argsDescription){t.registeredArguments.forEach((e=>{e.description=e.description||t._argsDescription[e.name()]||""}))}if(t.registeredArguments.find((t=>t.description))){return t.registeredArguments}return[]}subcommandTerm(t){const e=t.registeredArguments.map((t=>n(t))).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce(((t,i)=>Math.max(t,e.subcommandTerm(i).length)),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce(((t,i)=>Math.max(t,e.optionTerm(i).length)),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce(((t,i)=>Math.max(t,e.optionTerm(i).length)),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce(((t,i)=>Math.max(t,e.argumentTerm(i).length)),0)}commandUsage(t){let e=t._name;if(t._aliases[0]){e=e+"|"+t._aliases[0]}let i="";for(let e=t.parent;e;e=e.parent){i=e.name()+" "+i}return i+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){const e=[];if(t.argChoices){e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`)}if(t.defaultValue!==undefined){const i=t.required||t.optional||t.isBoolean()&&typeof t.defaultValue==="boolean";if(i){e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}}if(t.presetArg!==undefined&&t.optional){e.push(`preset: ${JSON.stringify(t.presetArg)}`)}if(t.envVar!==undefined){e.push(`env: ${t.envVar}`)}if(e.length>0){return`${t.description} (${e.join(", ")})`}return t.description}argumentDescription(t){const e=[];if(t.argChoices){e.push(`choices: ${t.argChoices.map((t=>JSON.stringify(t))).join(", ")}`)}if(t.defaultValue!==undefined){e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`)}if(e.length>0){const i=`(${e.join(", ")})`;if(t.description){return`${t.description} ${i}`}return i}return t.description}formatHelp(t,e){const i=e.padWidth(t,e);const n=e.helpWidth||80;const s=2;const r=2;function formatItem(t,o){if(o){const a=`${t.padEnd(i+r)}${o}`;return e.wrap(a,n-s,i+r)}return t}function formatList(t){return t.join("\n").replace(/^/gm," ".repeat(s))}let o=[`Usage: ${e.commandUsage(t)}`,""];const a=e.commandDescription(t);if(a.length>0){o=o.concat([e.wrap(a,n,0),""])}const h=e.visibleArguments(t).map((t=>formatItem(e.argumentTerm(t),e.argumentDescription(t))));if(h.length>0){o=o.concat(["Arguments:",formatList(h),""])}const l=e.visibleOptions(t).map((t=>formatItem(e.optionTerm(t),e.optionDescription(t))));if(l.length>0){o=o.concat(["Options:",formatList(l),""])}if(this.showGlobalOptions){const i=e.visibleGlobalOptions(t).map((t=>formatItem(e.optionTerm(t),e.optionDescription(t))));if(i.length>0){o=o.concat(["Global Options:",formatList(i),""])}}const u=e.visibleCommands(t).map((t=>formatItem(e.subcommandTerm(t),e.subcommandDescription(t))));if(u.length>0){o=o.concat(["Commands:",formatList(u),""])}return o.join("\n")}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}wrap(t,e,i,n=40){const s=" \\f\\t\\v   -    \ufeff";const r=new RegExp(`[\\n][${s}]+`);if(t.match(r))return t;const o=e-i;if(o<n)return t;const a=t.slice(0,i);const h=t.slice(i).replace("\r\n","\n");const l=" ".repeat(i);const u="​";const c=`\\s${u}`;const p=new RegExp(`\n|.{1,${o-1}}([${c}]|$)|[^${c}]+?([${c}]|$)`,"g");const d=h.match(p)||[];return a+d.map(((t,e)=>{if(t==="\n")return"";return(e>0?l:"")+t.trimEnd()})).join("\n")}}e.Help=Help},663:function(t,e,i){const{InvalidArgumentError:n}=i(24);class Option{constructor(t,e){this.flags=t;this.description=e||"";this.required=t.includes("<");this.optional=t.includes("[");this.variadic=/\w\.\.\.[>\]]$/.test(t);this.mandatory=false;const i=splitOptionFlags(t);this.short=i.shortFlag;this.long=i.longFlag;this.negate=false;if(this.long){this.negate=this.long.startsWith("--no-")}this.defaultValue=undefined;this.defaultValueDescription=undefined;this.presetArg=undefined;this.envVar=undefined;this.parseArg=undefined;this.hidden=false;this.argChoices=undefined;this.conflictsWith=[];this.implied=undefined}default(t,e){this.defaultValue=t;this.defaultValueDescription=e;return this}preset(t){this.presetArg=t;return this}conflicts(t){this.conflictsWith=this.conflictsWith.concat(t);return this}implies(t){let e=t;if(typeof t==="string"){e={[t]:true}}this.implied=Object.assign(this.implied||{},e);return this}env(t){this.envVar=t;return this}argParser(t){this.parseArg=t;return this}makeOptionMandatory(t=true){this.mandatory=!!t;return this}hideHelp(t=true){this.hidden=!!t;return this}_concatValue(t,e){if(e===this.defaultValue||!Array.isArray(e)){return[t]}return e.concat(t)}choices(t){this.argChoices=t.slice();this.parseArg=(t,e)=>{if(!this.argChoices.includes(t)){throw new n(`Allowed choices are ${this.argChoices.join(", ")}.`)}if(this.variadic){return this._concatValue(t,e)}return t};return this}name(){if(this.long){return this.long.replace(/^--/,"")}return this.short.replace(/^-/,"")}attributeName(){return camelcase(this.name().replace(/^no-/,""))}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class DualOptions{constructor(t){this.positiveOptions=new Map;this.negativeOptions=new Map;this.dualOptions=new Set;t.forEach((t=>{if(t.negate){this.negativeOptions.set(t.attributeName(),t)}else{this.positiveOptions.set(t.attributeName(),t)}}));this.negativeOptions.forEach(((t,e)=>{if(this.positiveOptions.has(e)){this.dualOptions.add(e)}}))}valueFromOption(t,e){const i=e.attributeName();if(!this.dualOptions.has(i))return true;const n=this.negativeOptions.get(i).presetArg;const s=n!==undefined?n:false;return e.negate===(s===t)}}function camelcase(t){return t.split("-").reduce(((t,e)=>t+e[0].toUpperCase()+e.slice(1)))}function splitOptionFlags(t){let e;let i;const n=t.split(/[ |,]+/);if(n.length>1&&!/^[[<]/.test(n[1]))e=n.shift();i=n.shift();if(!e&&/^-[^-]$/.test(i)){e=i;i=undefined}return{shortFlag:e,longFlag:i}}e.Option=Option;e.DualOptions=DualOptions},861:function(t,e){const i=3;function editDistance(t,e){if(Math.abs(t.length-e.length)>i)return Math.max(t.length,e.length);const n=[];for(let e=0;e<=t.length;e++){n[e]=[e]}for(let t=0;t<=e.length;t++){n[0][t]=t}for(let i=1;i<=e.length;i++){for(let s=1;s<=t.length;s++){let r=1;if(t[s-1]===e[i-1]){r=0}else{r=1}n[s][i]=Math.min(n[s-1][i]+1,n[s][i-1]+1,n[s-1][i-1]+r);if(s>1&&i>1&&t[s-1]===e[i-2]&&t[s-2]===e[i-1]){n[s][i]=Math.min(n[s][i],n[s-2][i-2]+1)}}}return n[t.length][e.length]}function suggestSimilar(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));const n=t.startsWith("--");if(n){t=t.slice(2);e=e.map((t=>t.slice(2)))}let s=[];let r=i;const o=.4;e.forEach((e=>{if(e.length<=1)return;const i=editDistance(t,e);const n=Math.max(t.length,e.length);const a=(n-i)/n;if(a>o){if(i<r){r=i;s=[e]}else if(i===r){s.push(e)}}}));s.sort(((t,e)=>t.localeCompare(e)));if(n){s=s.map((t=>`--${t}`))}if(s.length>1){return`\n(Did you mean one of ${s.join(", ")}?)`}if(s.length===1){return`\n(Did you mean ${s[0]}?)`}return""}e.suggestSimilar=suggestSimilar}};var e={};function __nccwpck_require__(i){var n=e[i];if(n!==undefined){return n.exports}var s=e[i]={exports:{}};var r=true;try{t[i](s,s.exports,__nccwpck_require__);r=false}finally{if(r)delete e[i]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i={};!function(){var t=i;const{Argument:e}=__nccwpck_require__(400);const{Command:n}=__nccwpck_require__(220);const{CommanderError:s,InvalidArgumentError:r}=__nccwpck_require__(24);const{Help:o}=__nccwpck_require__(505);const{Option:a}=__nccwpck_require__(663);t.program=new n;t.createCommand=t=>new n(t);t.createOption=(t,e)=>new a(t,e);t.createArgument=(t,i)=>new e(t,i);t.Command=n;t.Option=a;t.Argument=e;t.Help=o;t.CommanderError=s;t.InvalidArgumentError=r;t.InvalidOptionArgumentError=r}();module.exports=i})();
@@ -0,0 +1 @@
1
+ {"name":"commander","version":"12.0.0","author":"TJ Holowaychuk <tj@vision-media.ca>","license":"MIT","_lastModified":"2024-02-20T09:30:14.012Z"}
@@ -0,0 +1,431 @@
1
+ /**
2
+ * Clears all cached templates in this writer.
3
+ */
4
+ export declare function clearCache(): void;
5
+
6
+ export declare type COMMENT = "!";
7
+
8
+ /**
9
+ * Represents a rendering context by wrapping a view object and maintaining a reference to the parent context.
10
+ */
11
+ export declare class Context {
12
+ view: any;
13
+ parent: Context | undefined;
14
+
15
+ /**
16
+ * Initializes a new instance of the {@link Context `Context`} class.
17
+ */
18
+ constructor(view: any, parentContext?: Context);
19
+
20
+ /**
21
+ * Creates a new context using the given view with this context as the parent.
22
+ *
23
+ * @param view
24
+ * The view to create the new context with.
25
+ */
26
+ push(view: any): Context;
27
+
28
+ /**
29
+ * Returns the value of the given name in this context, traversing up the context hierarchy if the value is absent in this context's view.
30
+ *
31
+ * @param name
32
+ * The name to look up.
33
+ */
34
+ lookup(name: string): any;
35
+ }
36
+
37
+ export declare type EQUAL = "=";
38
+
39
+ /**
40
+ * HTML escaping by default, can be overridden by setting Mustache.escape explicitly or providing the `options`
41
+ * argument with an `escape` function when invoking {@link render `Mustache.render()`}.
42
+ *
43
+ * Escaping can be avoided when needed by using `{{{ value }}}` or `{{& value }}` in templates.
44
+ *
45
+ * @param value
46
+ * The value to escape into a string.
47
+ */
48
+ declare let escape_2: EscapeFunction;
49
+ export { escape_2 as escape }
50
+
51
+ export declare type ESCAPED_VALUE = "name";
52
+
53
+ /**
54
+ * Function responsible for escaping values from the view into the rendered output when templates
55
+ * has `{{ value }}` in them.
56
+ */
57
+ export declare type EscapeFunction = (value: any) => string;
58
+
59
+ export declare type INVERTED = "^";
60
+
61
+ /**
62
+ * The name of the module.
63
+ */
64
+ declare const name_2: string;
65
+ export { name_2 as name }
66
+
67
+ /**
68
+ * An array of two strings, representing the opening and closing tags respectively, to be used in the templates being rendered.
69
+ */
70
+ export declare type OpeningAndClosingTags = [string, string];
71
+
72
+ /**
73
+ * Parses and caches the given template in the default writer and returns the array of tokens it contains.
74
+ *
75
+ * Doing this ahead of time avoids the need to parse templates on the fly as they are rendered.
76
+ *
77
+ * @param template
78
+ * The template to parse.
79
+ *
80
+ * @param tags
81
+ * The tags to use.
82
+ */
83
+ export declare function parse(template: string, tags?: OpeningAndClosingTags): TemplateSpans;
84
+
85
+ export declare type PARTIAL = ">";
86
+
87
+ export declare type PartialLookupFn = (partialName: string) => string | undefined;
88
+
89
+ /**
90
+ * Whenever partials are provided, it can either be an object that contains the names and templates of partials that are used in templates
91
+ *
92
+ * -- or --
93
+ *
94
+ * A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
95
+ */
96
+ export declare type PartialsOrLookupFn = Record<string, string> | PartialLookupFn;
97
+
98
+ export declare type RAW_VALUE = "text";
99
+
100
+ /**
101
+ * Renders the {@link template `template`} with the given {@link view `view`} and {@link partials `partials`} using the default writer.
102
+ *
103
+ * @param template
104
+ * The template to render.
105
+ *
106
+ * @param view
107
+ * The view to render the template with.
108
+ *
109
+ * @param partials
110
+ * Either an object that contains the names and templates of partials that are used in a template
111
+ *
112
+ * -- or --
113
+ *
114
+ * A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
115
+ *
116
+ * @param tagsOrOptions
117
+ * The delimiter tags to use or options overriding global defaults.
118
+ */
119
+ export declare function render(
120
+ template: string,
121
+ view: any | Context,
122
+ partials?: PartialsOrLookupFn,
123
+ tagsOrOptions?: OpeningAndClosingTags | RenderOptions,
124
+ ): string;
125
+
126
+ export declare interface RenderOptions {
127
+ escape?: EscapeFunction | undefined;
128
+ tags?: OpeningAndClosingTags | undefined;
129
+ }
130
+
131
+ /**
132
+ * A simple string scanner that is used by the template parser to find tokens in template strings.
133
+ */
134
+ export declare class Scanner {
135
+ string: string;
136
+ tail: string;
137
+ pos: number;
138
+
139
+ /**
140
+ * Initializes a new instance of the {@link Scanner `Scanner`} class.
141
+ */
142
+ constructor(string: string);
143
+
144
+ /**
145
+ * Returns `true` if the tail is empty (end of string).
146
+ */
147
+ eos(): boolean;
148
+
149
+ /**
150
+ * Tries to match the given regular expression at the current position.
151
+ *
152
+ * @param re
153
+ * The regex-pattern to match.
154
+ *
155
+ * @returns
156
+ * The matched text if it can match, the empty string otherwise.
157
+ */
158
+ scan(re: RegExp): string;
159
+
160
+ /**
161
+ * Skips all text until the given regular expression can be matched.
162
+ *
163
+ * @param re
164
+ * The regex-pattern to match.
165
+ *
166
+ * @returns
167
+ * Returns the skipped string, which is the entire tail if no match can be made.
168
+ */
169
+ scanUntil(re: RegExp): string;
170
+ }
171
+
172
+ export declare type SECTION = "#";
173
+
174
+ /**
175
+ * The default opening and closing tags used while parsing the templates.
176
+ *
177
+ * Different default tags can be overridden by setting this field. They will have effect on all subsequent
178
+ * calls to {@link render `.render()`} or {@link parse `.parse()`}, unless custom tags are given as arguments to those functions.
179
+ *
180
+ * Default value is `[ "{{", "}}" ]`.
181
+ */
182
+ export declare let tags: OpeningAndClosingTags;
183
+
184
+ export declare interface TemplateCache {
185
+ set(cacheKey: string, value: string): void;
186
+ get(cacheKey: string): string | undefined;
187
+ clear(): void;
188
+ }
189
+
190
+ /**
191
+ * Customise the template caching behaviour by either:
192
+ *
193
+ * disable it completely by setting it to `undefined`
194
+ *
195
+ * -- or --
196
+ *
197
+ * provide a custom cache strategy that satisfies the {@link TemplateCache `TemplateCache`} interface
198
+ */
199
+ export declare let templateCache: TemplateCache | undefined;
200
+
201
+ export declare type TemplateSpans = Array<
202
+ | [TemplateSpanType, string, number, number]
203
+ | [TemplateSpanType, string, number, number, TemplateSpans, number]
204
+ | [TemplateSpanType, string, number, number, string, number, boolean]
205
+ >;
206
+
207
+ export declare type TemplateSpanType =
208
+ | RAW_VALUE
209
+ | ESCAPED_VALUE
210
+ | SECTION
211
+ | UNESCAPED_VALUE
212
+ | INVERTED
213
+ | COMMENT
214
+ | PARTIAL
215
+ | EQUAL;
216
+
217
+ export declare type UNESCAPED_VALUE = "&";
218
+
219
+ /**
220
+ * The version of the module.
221
+ */
222
+ export declare const version: string;
223
+
224
+ /**
225
+ * A Writer knows how to take a stream of tokens and render them to a {@link String `string`}, given a context.
226
+ *
227
+ * It also maintains a cache of templates to avoid the need to parse the same template twice.
228
+ */
229
+ export declare class Writer {
230
+ /**
231
+ * Initializes a new instance of the {@link Writer `Writer`} class.
232
+ */
233
+ constructor();
234
+
235
+ /**
236
+ * Clears all cached templates in this writer.
237
+ */
238
+ clearCache(): void;
239
+
240
+ /**
241
+ * Parses and caches the given {@link template `template`} and returns the array of tokens that is generated from the parse.
242
+ *
243
+ * @param template
244
+ * The template to parse.
245
+ *
246
+ * @param tags
247
+ * The tags to use.
248
+ */
249
+ parse(template: string, tags?: OpeningAndClosingTags): any;
250
+
251
+ /**
252
+ * High-level method that is used to render the given {@link template `template`} with the given {@link view `view`}.
253
+ *
254
+ * @param template
255
+ * The template to render.
256
+ *
257
+ * @param view
258
+ * The view to render the template with.
259
+ *
260
+ * @param partials
261
+ * Either an object that contains the names and templates of partials that are used in a template
262
+ *
263
+ * -- or --
264
+ *
265
+ * A function that is used to load partial template on the fly that takes a single argument: the name of the partial.
266
+ *
267
+ * @param config
268
+ * The options for the rendering process.
269
+ */
270
+ render(
271
+ template: string,
272
+ view: any | Context,
273
+ partials?: PartialsOrLookupFn,
274
+ config?: OpeningAndClosingTags | RenderOptions,
275
+ ): string;
276
+
277
+ /**
278
+ * Low-level method that renders the given array of {@link tokens `tokens`} using the given {@link context `context`} and {@link partials `partials`}.
279
+ *
280
+ * @param tokens
281
+ * The tokens to render.
282
+ *
283
+ * @param context
284
+ * The context to use for rendering the tokens.
285
+ *
286
+ * @param partials
287
+ * The partials to use for rendering the tokens.
288
+ *
289
+ * @param originalTemplate
290
+ * An object used to extract the portion of the original template that was contained in a higher-order section.
291
+ *
292
+ * If the template doesn't use higher-order sections, this argument may be omitted.
293
+ *
294
+ * @param config
295
+ * The options for the rendering process.
296
+ */
297
+ renderTokens(
298
+ tokens: string[][],
299
+ context: Context,
300
+ partials?: PartialsOrLookupFn,
301
+ originalTemplate?: string,
302
+ config?: RenderOptions,
303
+ ): string;
304
+
305
+ /**
306
+ * Renders a section block.
307
+ *
308
+ * @param token
309
+ * The token to render.
310
+ *
311
+ * @param context
312
+ * The context to use for rendering the token.
313
+ *
314
+ * @param partials
315
+ * The partials to use for rendering the token.
316
+ *
317
+ * @param originalTemplate
318
+ * An object used to extract the portion of the original template that was contained in a higher-order section.
319
+ *
320
+ * @param config
321
+ * The options for the rendering process.
322
+ */
323
+ renderSection(
324
+ token: string[],
325
+ context: Context,
326
+ partials?: PartialsOrLookupFn,
327
+ originalTemplate?: string,
328
+ config?: RenderOptions,
329
+ ): string;
330
+
331
+ /**
332
+ * Renders an inverted section block.
333
+ *
334
+ * @param token
335
+ * The token to render.
336
+ *
337
+ * @param context
338
+ * The context to use for rendering the token.
339
+ *
340
+ * @param partials
341
+ * The partials to use for rendering the token.
342
+ *
343
+ * @param originalTemplate
344
+ * An object used to extract the portion of the original template that was contained in a higher-order section.
345
+ *
346
+ * @param config
347
+ * The options for the rendering process.
348
+ */
349
+ renderInverted(
350
+ token: string[],
351
+ context: Context,
352
+ partials?: PartialsOrLookupFn,
353
+ originalTemplate?: string,
354
+ config?: RenderOptions,
355
+ ): string;
356
+
357
+ /**
358
+ * Adds indentation to each line of the given partial.
359
+ *
360
+ * @param partial
361
+ * The partial to indent.
362
+ *
363
+ * @param indentation
364
+ * String containing a combination of spaces and tabs to use as indentation.
365
+ *
366
+ * @param lineHasNonSpace
367
+ * Whether to indent lines that are empty.
368
+ */
369
+ indentPartial(partial: string, indentation: string, lineHasNonSpace: boolean): string;
370
+
371
+ /**
372
+ * Renders a partial.
373
+ *
374
+ * @param token
375
+ * The token to render.
376
+ *
377
+ * @param context
378
+ * The context to use for rendering the token.
379
+ *
380
+ * @param partials
381
+ * The partials to use for rendering the token.
382
+ *
383
+ * @param config
384
+ * The options for the rendering process.
385
+ */
386
+ renderPartial(
387
+ token: string[],
388
+ context: Context,
389
+ partials?: PartialsOrLookupFn,
390
+ config?: OpeningAndClosingTags | RenderOptions,
391
+ ): string;
392
+
393
+ /**
394
+ * Renders an unescaped value.
395
+ *
396
+ * @param token
397
+ * The token to render.
398
+ *
399
+ * @param context
400
+ * The context to use for rendering the token.
401
+ */
402
+ unescapedValue(token: string[], context: Context): string;
403
+
404
+ /**
405
+ * Renders an escaped value.
406
+ *
407
+ * @param token
408
+ * The token to render.
409
+ *
410
+ * @param context
411
+ * The context to use for rendering the token.
412
+ *
413
+ * @param config
414
+ * The options for the rendering process.
415
+ */
416
+ escapedValue(
417
+ token: string[],
418
+ context: Context,
419
+ config?: RenderOptions,
420
+ ): string;
421
+
422
+ /**
423
+ * Renders a raw token.
424
+ *
425
+ * @param token
426
+ * The token to render.
427
+ */
428
+ rawValue(token: string[]): string;
429
+ }
430
+
431
+ export { }
@@ -0,0 +1,5 @@
1
+ (function(){var e={639:function(e){(function(t,r){true?e.exports=r():0})(this,(function(){"use strict";
2
+ /*!
3
+ * mustache.js - Logic-less {{mustache}} templates with JavaScript
4
+ * http://github.com/janl/mustache.js
5
+ */var e=Object.prototype.toString;var t=Array.isArray||function isArrayPolyfill(t){return e.call(t)==="[object Array]"};function isFunction(e){return typeof e==="function"}function typeStr(e){return t(e)?"array":typeof e}function escapeRegExp(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function hasProperty(e,t){return e!=null&&typeof e==="object"&&t in e}function primitiveHasOwnProperty(e,t){return e!=null&&typeof e!=="object"&&e.hasOwnProperty&&e.hasOwnProperty(t)}var r=RegExp.prototype.test;function testRegExp(e,t){return r.call(e,t)}var n=/\S/;function isWhitespace(e){return!testRegExp(n,e)}var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function escapeHtml(e){return String(e).replace(/[&<>"'`=\/]/g,(function fromEntityMap(e){return i[e]}))}var a=/\s*/;var s=/\s+/;var o=/\s*=/;var p=/\s*\}/;var u=/#|\^|\/|>|\{|&|=|!/;function parseTemplate(e,r){if(!e)return[];var n=false;var i=[];var l=[];var f=[];var h=false;var d=false;var v="";var g=0;function stripSpace(){if(h&&!d){while(f.length)delete l[f.pop()]}else{f=[]}h=false;d=false}var y,w,m;function compileTags(e){if(typeof e==="string")e=e.split(s,2);if(!t(e)||e.length!==2)throw new Error("Invalid tags: "+e);y=new RegExp(escapeRegExp(e[0])+"\\s*");w=new RegExp("\\s*"+escapeRegExp(e[1]));m=new RegExp("\\s*"+escapeRegExp("}"+e[1]))}compileTags(r||c.tags);var x=new Scanner(e);var C,_,k,b,T,E;while(!x.eos()){C=x.pos;k=x.scanUntil(y);if(k){for(var S=0,W=k.length;S<W;++S){b=k.charAt(S);if(isWhitespace(b)){f.push(l.length);v+=b}else{d=true;n=true;v+=" "}l.push(["text",b,C,C+1]);C+=1;if(b==="\n"){stripSpace();v="";g=0;n=false}}}if(!x.scan(y))break;h=true;_=x.scan(u)||"name";x.scan(a);if(_==="="){k=x.scanUntil(o);x.scan(o);x.scanUntil(w)}else if(_==="{"){k=x.scanUntil(m);x.scan(p);x.scanUntil(w);_="&"}else{k=x.scanUntil(w)}if(!x.scan(w))throw new Error("Unclosed tag at "+x.pos);if(_==">"){T=[_,k,C,x.pos,v,g,n]}else{T=[_,k,C,x.pos]}g++;l.push(T);if(_==="#"||_==="^"){i.push(T)}else if(_==="/"){E=i.pop();if(!E)throw new Error('Unopened section "'+k+'" at '+C);if(E[1]!==k)throw new Error('Unclosed section "'+E[1]+'" at '+C)}else if(_==="name"||_==="{"||_==="&"){d=true}else if(_==="="){compileTags(k)}}stripSpace();E=i.pop();if(E)throw new Error('Unclosed section "'+E[1]+'" at '+x.pos);return nestTokens(squashTokens(l))}function squashTokens(e){var t=[];var r,n;for(var i=0,a=e.length;i<a;++i){r=e[i];if(r){if(r[0]==="text"&&n&&n[0]==="text"){n[1]+=r[1];n[3]=r[3]}else{t.push(r);n=r}}}return t}function nestTokens(e){var t=[];var r=t;var n=[];var i,a;for(var s=0,o=e.length;s<o;++s){i=e[s];switch(i[0]){case"#":case"^":r.push(i);n.push(i);r=i[4]=[];break;case"/":a=n.pop();a[5]=i[2];r=n.length>0?n[n.length-1][4]:t;break;default:r.push(i)}}return t}function Scanner(e){this.string=e;this.tail=e;this.pos=0}Scanner.prototype.eos=function eos(){return this.tail===""};Scanner.prototype.scan=function scan(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var r=t[0];this.tail=this.tail.substring(r.length);this.pos+=r.length;return r};Scanner.prototype.scanUntil=function scanUntil(e){var t=this.tail.search(e),r;switch(t){case-1:r=this.tail;this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,t);this.tail=this.tail.substring(t)}this.pos+=r.length;return r};function Context(e,t){this.view=e;this.cache={".":this.view};this.parent=t}Context.prototype.push=function push(e){return new Context(e,this)};Context.prototype.lookup=function lookup(e){var t=this.cache;var r;if(t.hasOwnProperty(e)){r=t[e]}else{var n=this,i,a,s,o=false;while(n){if(e.indexOf(".")>0){i=n.view;a=e.split(".");s=0;while(i!=null&&s<a.length){if(s===a.length-1)o=hasProperty(i,a[s])||primitiveHasOwnProperty(i,a[s]);i=i[a[s++]]}}else{i=n.view[e];o=hasProperty(n.view,e)}if(o){r=i;break}n=n.parent}t[e]=r}if(isFunction(r))r=r.call(this.view);return r};function Writer(){this.templateCache={_cache:{},set:function set(e,t){this._cache[e]=t},get:function get(e){return this._cache[e]},clear:function clear(){this._cache={}}}}Writer.prototype.clearCache=function clearCache(){if(typeof this.templateCache!=="undefined"){this.templateCache.clear()}};Writer.prototype.parse=function parse(e,t){var r=this.templateCache;var n=e+":"+(t||c.tags).join(":");var i=typeof r!=="undefined";var a=i?r.get(n):undefined;if(a==undefined){a=parseTemplate(e,t);i&&r.set(n,a)}return a};Writer.prototype.render=function render(e,t,r,n){var i=this.getConfigTags(n);var a=this.parse(e,i);var s=t instanceof Context?t:new Context(t,undefined);return this.renderTokens(a,s,r,e,n)};Writer.prototype.renderTokens=function renderTokens(e,t,r,n,i){var a="";var s,o,p;for(var u=0,c=e.length;u<c;++u){p=undefined;s=e[u];o=s[0];if(o==="#")p=this.renderSection(s,t,r,n,i);else if(o==="^")p=this.renderInverted(s,t,r,n,i);else if(o===">")p=this.renderPartial(s,t,r,i);else if(o==="&")p=this.unescapedValue(s,t);else if(o==="name")p=this.escapedValue(s,t,i);else if(o==="text")p=this.rawValue(s);if(p!==undefined)a+=p}return a};Writer.prototype.renderSection=function renderSection(e,r,n,i,a){var s=this;var o="";var p=r.lookup(e[1]);function subRender(e){return s.render(e,r,n,a)}if(!p)return;if(t(p)){for(var u=0,c=p.length;u<c;++u){o+=this.renderTokens(e[4],r.push(p[u]),n,i,a)}}else if(typeof p==="object"||typeof p==="string"||typeof p==="number"){o+=this.renderTokens(e[4],r.push(p),n,i,a)}else if(isFunction(p)){if(typeof i!=="string")throw new Error("Cannot use higher-order sections without the original template");p=p.call(r.view,i.slice(e[3],e[5]),subRender);if(p!=null)o+=p}else{o+=this.renderTokens(e[4],r,n,i,a)}return o};Writer.prototype.renderInverted=function renderInverted(e,r,n,i,a){var s=r.lookup(e[1]);if(!s||t(s)&&s.length===0)return this.renderTokens(e[4],r,n,i,a)};Writer.prototype.indentPartial=function indentPartial(e,t,r){var n=t.replace(/[^ \t]/g,"");var i=e.split("\n");for(var a=0;a<i.length;a++){if(i[a].length&&(a>0||!r)){i[a]=n+i[a]}}return i.join("\n")};Writer.prototype.renderPartial=function renderPartial(e,t,r,n){if(!r)return;var i=this.getConfigTags(n);var a=isFunction(r)?r(e[1]):r[e[1]];if(a!=null){var s=e[6];var o=e[5];var p=e[4];var u=a;if(o==0&&p){u=this.indentPartial(a,p,s)}var c=this.parse(u,i);return this.renderTokens(c,t,r,u,n)}};Writer.prototype.unescapedValue=function unescapedValue(e,t){var r=t.lookup(e[1]);if(r!=null)return r};Writer.prototype.escapedValue=function escapedValue(e,t,r){var n=this.getConfigEscape(r)||c.escape;var i=t.lookup(e[1]);if(i!=null)return typeof i==="number"&&n===c.escape?String(i):n(i)};Writer.prototype.rawValue=function rawValue(e){return e[1]};Writer.prototype.getConfigTags=function getConfigTags(e){if(t(e)){return e}else if(e&&typeof e==="object"){return e.tags}else{return undefined}};Writer.prototype.getConfigEscape=function getConfigEscape(e){if(e&&typeof e==="object"&&!t(e)){return e.escape}else{return undefined}};var c={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:undefined,escape:undefined,parse:undefined,render:undefined,Scanner:undefined,Context:undefined,Writer:undefined,set templateCache(e){l.templateCache=e},get templateCache(){return l.templateCache}};var l=new Writer;c.clearCache=function clearCache(){return l.clearCache()};c.parse=function parse(e,t){return l.parse(e,t)};c.render=function render(e,t,r,n){if(typeof e!=="string"){throw new TypeError('Invalid template! Template should be a "string" '+'but "'+typeStr(e)+'" was given as the first '+"argument for mustache#render(template, view, partials)")}return l.render(e,t,r,n)};c.escape=escapeHtml;c.Scanner=Scanner;c.Context=Context;c.Writer=Writer;return c}))}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var a=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(639);module.exports=r})();
@@ -0,0 +1 @@
1
+ {"name":"mustache","version":"4.2.0","author":"mustache.js Authors <http://github.com/janl/mustache.js>","license":"MIT","_lastModified":"2024-02-20T09:30:14.095Z"}
@@ -0,0 +1 @@
1
+ (function(){"use strict";var e={322:function(e,t,r){const s=r(188);const i=r(113);const o=r(147);const n=r(17);const c=r(144);const a=r(37);const l=Object.prototype.hasOwnProperty;class FileSystemBlobStore{constructor(e,t){const r=t?slashEscape(t+"."):"";this._blobFilename=n.join(e,r+"BLOB");this._mapFilename=n.join(e,r+"MAP");this._lockFilename=n.join(e,r+"LOCK");this._directory=e;this._load()}has(e,t){if(l.call(this._memoryBlobs,e)){return this._invalidationKeys[e]===t}else if(l.call(this._storedMap,e)){return this._storedMap[e][0]===t}return false}get(e,t){if(l.call(this._memoryBlobs,e)){if(this._invalidationKeys[e]===t){return this._memoryBlobs[e]}}else if(l.call(this._storedMap,e)){const r=this._storedMap[e];if(r[0]===t){return this._storedBlob.slice(r[1],r[2])}}}set(e,t,r){this._invalidationKeys[e]=t;this._memoryBlobs[e]=r;this._dirty=true}delete(e){if(l.call(this._memoryBlobs,e)){this._dirty=true;delete this._memoryBlobs[e]}if(l.call(this._invalidationKeys,e)){this._dirty=true;delete this._invalidationKeys[e]}if(l.call(this._storedMap,e)){this._dirty=true;delete this._storedMap[e]}}isDirty(){return this._dirty}save(){const e=this._getDump();const t=Buffer.concat(e[0]);const r=JSON.stringify(e[1]);try{mkdirpSync(this._directory);o.writeFileSync(this._lockFilename,"LOCK",{flag:"wx"})}catch(e){return false}try{o.writeFileSync(this._blobFilename,t);o.writeFileSync(this._mapFilename,r)}finally{o.unlinkSync(this._lockFilename)}return true}_load(){try{this._storedBlob=o.readFileSync(this._blobFilename);this._storedMap=JSON.parse(o.readFileSync(this._mapFilename))}catch(e){this._storedBlob=Buffer.alloc(0);this._storedMap={}}this._dirty=false;this._memoryBlobs={};this._invalidationKeys={}}_getDump(){const e=[];const t={};let r=0;function push(s,i,o){e.push(o);t[s]=[i,r,r+o.length];r+=o.length}for(const e of Object.keys(this._memoryBlobs)){const t=this._memoryBlobs[e];const r=this._invalidationKeys[e];push(e,r,t)}for(const e of Object.keys(this._storedMap)){if(l.call(t,e))continue;const r=this._storedMap[e];const s=this._storedBlob.slice(r[1],r[2]);push(e,r[0],s)}return[e,t]}}class NativeCompileCache{constructor(){this._cacheStore=null;this._previousModuleCompile=null}setCacheStore(e){this._cacheStore=e}install(){const e=this;const t=typeof require.resolve.paths==="function";this._previousModuleCompile=s.prototype._compile;s.prototype._compile=function(r,i){const o=this;function require(e){return o.require(e)}function resolve(e,t){return s._resolveFilename(e,o,false,t)}require.resolve=resolve;if(t){resolve.paths=function paths(e){return s._resolveLookupPaths(e,o,true)}}require.main=process.mainModule;require.extensions=s._extensions;require.cache=s._cache;const c=n.dirname(i);const a=e._moduleCompile(i,r);const l=[o.exports,require,o,i,c,process,global,Buffer];return a.apply(o.exports,l)}}uninstall(){s.prototype._compile=this._previousModuleCompile}_moduleCompile(e,t){var r=t.length;if(r>=2){if(t.charCodeAt(0)===35&&t.charCodeAt(1)===33/*!*/){if(r===2){t=""}else{var o=2;for(;o<r;++o){var n=t.charCodeAt(o);if(n===10||n===13)break}if(o===r){t=""}else{t=t.slice(o)}}}}var a=s.wrap(t);var l=i.createHash("sha1").update(t,"utf8").digest("hex");var h=this._cacheStore.get(e,l);var p=new c.Script(a,{filename:e,lineOffset:0,displayErrors:true,cachedData:h,produceCachedData:true});if(p.cachedDataProduced){this._cacheStore.set(e,l,p.cachedData)}else if(p.cachedDataRejected){this._cacheStore.delete(e)}var u=p.runInThisContext({filename:e,lineOffset:0,columnOffset:0,displayErrors:true});return u}}function mkdirpSync(e){_mkdirpSync(n.resolve(e),511)}function _mkdirpSync(e,t){try{o.mkdirSync(e,t)}catch(t){if(t.code==="ENOENT"){_mkdirpSync(n.dirname(e));_mkdirpSync(e)}else{try{const r=o.statSync(e);if(!r.isDirectory()){throw t}}catch(e){throw t}}}}function slashEscape(e){const t={"\\":"zB",":":"zC","/":"zS","\0":"z0",z:"zZ"};const r=/[\\:/\x00z]/g;return e.replace(r,(e=>t[e]))}function supportsCachedData(){const e=new c.Script('""',{produceCachedData:true});return e.cachedDataProduced===true}function getCacheDir(){const e=process.env.V8_COMPILE_CACHE_CACHE_DIR;if(e){return e}const t=typeof process.getuid==="function"?"v8-compile-cache-"+process.getuid():"v8-compile-cache";const r=process.arch;const s=typeof process.versions.v8==="string"?process.versions.v8:typeof process.versions.chakracore==="string"?"chakracore-"+process.versions.chakracore:"node-"+process.version;const i=n.join(a.tmpdir(),t,r,s);return i}function getMainName(){const e=require.main&&typeof require.main.filename==="string"?require.main.filename:process.cwd();return e}if(!process.env.DISABLE_V8_COMPILE_CACHE&&supportsCachedData()){const e=getCacheDir();const t=getMainName();const r=new FileSystemBlobStore(e,t);const s=new NativeCompileCache;s.setCacheStore(r);s.install();process.once("exit",(()=>{if(r.isDirty()){r.save()}s.uninstall()}))}e.exports.__TEST__={FileSystemBlobStore:FileSystemBlobStore,NativeCompileCache:NativeCompileCache,mkdirpSync:mkdirpSync,slashEscape:slashEscape,supportsCachedData:supportsCachedData,getCacheDir:getCacheDir,getMainName:getMainName}},113:function(e){e.exports=require("crypto")},147:function(e){e.exports=require("fs")},188:function(e){e.exports=require("module")},37:function(e){e.exports=require("os")},17:function(e){e.exports=require("path")},144:function(e){e.exports=require("vm")}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var i=t[r]={exports:{}};var o=true;try{e[r](i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(322);module.exports=r})();
@@ -0,0 +1 @@
1
+ {"name":"v8-compile-cache","version":"2.4.0","author":"Andres Suarez <zertosh@gmail.com>","license":"MIT","_lastModified":"2024-04-08T03:40:35.538Z"}
@@ -0,0 +1,67 @@
1
+ const { join } = require('path');
2
+
3
+ const {
4
+ getYolkConfig,
5
+ getEsLintConfigPath,
6
+ getStyleLintConfigPath,
7
+ } = require('./_util');
8
+
9
+ const defaultIgnore = [
10
+ '**/node_modules/**',
11
+ '**/build/**',
12
+ '**/dist/**',
13
+ '**/lib/**',
14
+ '**/es/**',
15
+ '**/mock/**',
16
+ '**/test/**',
17
+ '**/public/**',
18
+ '**/assets/**',
19
+ '**/.umi/**',
20
+ '**/.umi-production/**',
21
+ '**/h5+app/**',
22
+ '**/*uni*/**',
23
+ '**/android/**',
24
+ '**/ios/**',
25
+ '**/*.ignore/**',
26
+ ];
27
+
28
+ const yolkConfig = getYolkConfig();
29
+ const isStrict = yolkConfig.strict !== false;
30
+
31
+ const prettierCLI =
32
+ 'prettier --write --cache --cache-strategy=content --loglevel=error';
33
+ const eslintCLI = `eslint --fix ${
34
+ isStrict ? '--no-inline-config' : ''
35
+ } --no-error-on-unmatched-pattern --cache --cache-strategy=content --cache-location=${join(
36
+ process.cwd(),
37
+ 'node_modules',
38
+ '.cache',
39
+ '.eslintcache',
40
+ )} --config ${getEsLintConfigPath()} ${defaultIgnore
41
+ .map((i) => `--ignore-pattern ${i}`)
42
+ .join(' ')}`;
43
+ const stylelintCLI = `stylelint --fix ${
44
+ isStrict ? '--ignore-disables' : ''
45
+ } --allow-empty-input --cache --cache-strategy=content --cache-location=${join(
46
+ process.cwd(),
47
+ 'node_modules',
48
+ '.cache',
49
+ '.stylelintcache',
50
+ )} --config ${getStyleLintConfigPath()} ${defaultIgnore
51
+ .map((i) => `--ignore-pattern ${i}`)
52
+ .join(' ')}`;
53
+
54
+ const config = {
55
+ '*.{md,json}': [prettierCLI],
56
+ // '*.{png,jpeg,jpg,gif,svg}': ['imagemin-lint-staged'],
57
+ '*.css': [prettierCLI, `${stylelintCLI} --custom-syntax postcss`],
58
+ '*.less': [prettierCLI, `${stylelintCLI} --custom-syntax postcss-less`],
59
+ '*.{sass,scss}': [
60
+ prettierCLI,
61
+ `${stylelintCLI} --custom-syntax postcss-scss`,
62
+ ],
63
+ '*.{js,jsx}': [prettierCLI, eslintCLI],
64
+ '*.{ts,tsx}': [`${prettierCLI} --parser=typescript`, eslintCLI],
65
+ };
66
+
67
+ module.exports = config;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @deprecated 请使用 @baic/prettier-config-yolk
3
+ */
4
+ console.warn('* 注意:.prettierrc 中 @baic/yolk-cli/lib/.prettierrc 即将废弃,请更换 @baic/prettier-config-yolk');
5
+ module.exports = {
6
+ bracketSpacing: true,
7
+ overrides: [
8
+ {
9
+ files: '.prettierrc',
10
+ options: {
11
+ parser: 'json',
12
+ },
13
+ },
14
+ ],
15
+ plugins: [
16
+ // 'prettier-plugin-organize-imports',
17
+ // 'prettier-plugin-packagejson'
18
+ ],
19
+ printWidth: 80,
20
+ proseWrap: 'never',
21
+ singleQuote: true,
22
+ tabWidth: 2,
23
+ trailingComma: 'all',
24
+ };