dimcode-linux-arm64 0.0.77-beta.0 → 0.0.78-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/bin/dimcode +0 -0
  2. package/bin/node_modules/skills/bin/cli.mjs +14 -0
  3. package/bin/node_modules/skills/dist/_chunks/libs/@clack/core.mjs +767 -0
  4. package/bin/node_modules/skills/dist/_chunks/libs/@clack/prompts.mjs +334 -0
  5. package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/file-exists.mjs +562 -0
  6. package/bin/node_modules/skills/dist/_chunks/libs/@kwsites/promise-deferred.mjs +37 -0
  7. package/bin/node_modules/skills/dist/_chunks/libs/@vercel/detect-agent.mjs +138 -0
  8. package/bin/node_modules/skills/dist/_chunks/libs/simple-git.mjs +3584 -0
  9. package/bin/node_modules/skills/dist/_chunks/libs/xdg-basedir.mjs +14 -0
  10. package/bin/node_modules/skills/dist/_chunks/rolldown-runtime.mjs +24 -0
  11. package/bin/node_modules/skills/dist/cli.d.mts +1 -0
  12. package/bin/node_modules/skills/dist/cli.mjs +5484 -0
  13. package/bin/node_modules/skills/package.json +127 -0
  14. package/bin/node_modules/yaml/LICENSE +13 -0
  15. package/bin/node_modules/yaml/README.md +172 -0
  16. package/bin/node_modules/yaml/bin.mjs +11 -0
  17. package/bin/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
  18. package/bin/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
  19. package/bin/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
  20. package/bin/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
  21. package/bin/node_modules/yaml/browser/dist/compose/composer.js +219 -0
  22. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
  23. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
  24. package/bin/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
  25. package/bin/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
  26. package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
  27. package/bin/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
  28. package/bin/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
  29. package/bin/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
  30. package/bin/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
  31. package/bin/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
  32. package/bin/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
  33. package/bin/node_modules/yaml/browser/dist/doc/Document.js +335 -0
  34. package/bin/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
  35. package/bin/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
  36. package/bin/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
  37. package/bin/node_modules/yaml/browser/dist/doc/directives.js +176 -0
  38. package/bin/node_modules/yaml/browser/dist/errors.js +57 -0
  39. package/bin/node_modules/yaml/browser/dist/index.js +17 -0
  40. package/bin/node_modules/yaml/browser/dist/log.js +11 -0
  41. package/bin/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
  42. package/bin/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
  43. package/bin/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
  44. package/bin/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
  45. package/bin/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
  46. package/bin/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
  47. package/bin/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
  48. package/bin/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
  49. package/bin/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
  50. package/bin/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
  51. package/bin/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
  52. package/bin/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
  53. package/bin/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
  54. package/bin/node_modules/yaml/browser/dist/parse/cst.js +98 -0
  55. package/bin/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
  56. package/bin/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
  57. package/bin/node_modules/yaml/browser/dist/parse/parser.js +975 -0
  58. package/bin/node_modules/yaml/browser/dist/public-api.js +102 -0
  59. package/bin/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
  60. package/bin/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
  61. package/bin/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
  62. package/bin/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
  63. package/bin/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
  64. package/bin/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
  65. package/bin/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
  66. package/bin/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
  67. package/bin/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
  68. package/bin/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
  69. package/bin/node_modules/yaml/browser/dist/schema/tags.js +96 -0
  70. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
  71. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
  72. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
  73. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
  74. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
  75. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
  76. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
  77. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
  78. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
  79. package/bin/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
  80. package/bin/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
  81. package/bin/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
  82. package/bin/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
  83. package/bin/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
  84. package/bin/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
  85. package/bin/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
  86. package/bin/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
  87. package/bin/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
  88. package/bin/node_modules/yaml/browser/dist/util.js +11 -0
  89. package/bin/node_modules/yaml/browser/dist/visit.js +233 -0
  90. package/bin/node_modules/yaml/browser/index.js +5 -0
  91. package/bin/node_modules/yaml/browser/package.json +3 -0
  92. package/bin/node_modules/yaml/dist/cli.d.ts +8 -0
  93. package/bin/node_modules/yaml/dist/cli.mjs +201 -0
  94. package/bin/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
  95. package/bin/node_modules/yaml/dist/compose/compose-collection.js +90 -0
  96. package/bin/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
  97. package/bin/node_modules/yaml/dist/compose/compose-doc.js +45 -0
  98. package/bin/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
  99. package/bin/node_modules/yaml/dist/compose/compose-node.js +112 -0
  100. package/bin/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
  101. package/bin/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
  102. package/bin/node_modules/yaml/dist/compose/composer.d.ts +63 -0
  103. package/bin/node_modules/yaml/dist/compose/composer.js +224 -0
  104. package/bin/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
  105. package/bin/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
  106. package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
  107. package/bin/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
  108. package/bin/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
  109. package/bin/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
  110. package/bin/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
  111. package/bin/node_modules/yaml/dist/compose/resolve-end.js +39 -0
  112. package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
  113. package/bin/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
  114. package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
  115. package/bin/node_modules/yaml/dist/compose/resolve-flow-scalar.js +227 -0
  116. package/bin/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
  117. package/bin/node_modules/yaml/dist/compose/resolve-props.js +148 -0
  118. package/bin/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
  119. package/bin/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
  120. package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
  121. package/bin/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
  122. package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
  123. package/bin/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
  124. package/bin/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
  125. package/bin/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
  126. package/bin/node_modules/yaml/dist/doc/Document.d.ts +141 -0
  127. package/bin/node_modules/yaml/dist/doc/Document.js +337 -0
  128. package/bin/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
  129. package/bin/node_modules/yaml/dist/doc/anchors.js +76 -0
  130. package/bin/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
  131. package/bin/node_modules/yaml/dist/doc/applyReviver.js +57 -0
  132. package/bin/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
  133. package/bin/node_modules/yaml/dist/doc/createNode.js +90 -0
  134. package/bin/node_modules/yaml/dist/doc/directives.d.ts +49 -0
  135. package/bin/node_modules/yaml/dist/doc/directives.js +178 -0
  136. package/bin/node_modules/yaml/dist/errors.d.ts +21 -0
  137. package/bin/node_modules/yaml/dist/errors.js +62 -0
  138. package/bin/node_modules/yaml/dist/index.d.ts +25 -0
  139. package/bin/node_modules/yaml/dist/index.js +50 -0
  140. package/bin/node_modules/yaml/dist/log.d.ts +3 -0
  141. package/bin/node_modules/yaml/dist/log.js +19 -0
  142. package/bin/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
  143. package/bin/node_modules/yaml/dist/nodes/Alias.js +118 -0
  144. package/bin/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
  145. package/bin/node_modules/yaml/dist/nodes/Collection.js +151 -0
  146. package/bin/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
  147. package/bin/node_modules/yaml/dist/nodes/Node.js +40 -0
  148. package/bin/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
  149. package/bin/node_modules/yaml/dist/nodes/Pair.js +39 -0
  150. package/bin/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
  151. package/bin/node_modules/yaml/dist/nodes/Scalar.js +27 -0
  152. package/bin/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
  153. package/bin/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
  154. package/bin/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
  155. package/bin/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
  156. package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
  157. package/bin/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
  158. package/bin/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
  159. package/bin/node_modules/yaml/dist/nodes/identity.js +53 -0
  160. package/bin/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
  161. package/bin/node_modules/yaml/dist/nodes/toJS.js +39 -0
  162. package/bin/node_modules/yaml/dist/options.d.ts +350 -0
  163. package/bin/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
  164. package/bin/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
  165. package/bin/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
  166. package/bin/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
  167. package/bin/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
  168. package/bin/node_modules/yaml/dist/parse/cst-visit.js +99 -0
  169. package/bin/node_modules/yaml/dist/parse/cst.d.ts +109 -0
  170. package/bin/node_modules/yaml/dist/parse/cst.js +112 -0
  171. package/bin/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
  172. package/bin/node_modules/yaml/dist/parse/lexer.js +723 -0
  173. package/bin/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
  174. package/bin/node_modules/yaml/dist/parse/line-counter.js +41 -0
  175. package/bin/node_modules/yaml/dist/parse/parser.d.ts +84 -0
  176. package/bin/node_modules/yaml/dist/parse/parser.js +980 -0
  177. package/bin/node_modules/yaml/dist/public-api.d.ts +44 -0
  178. package/bin/node_modules/yaml/dist/public-api.js +107 -0
  179. package/bin/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
  180. package/bin/node_modules/yaml/dist/schema/Schema.js +39 -0
  181. package/bin/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
  182. package/bin/node_modules/yaml/dist/schema/common/map.js +19 -0
  183. package/bin/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
  184. package/bin/node_modules/yaml/dist/schema/common/null.js +17 -0
  185. package/bin/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
  186. package/bin/node_modules/yaml/dist/schema/common/seq.js +19 -0
  187. package/bin/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
  188. package/bin/node_modules/yaml/dist/schema/common/string.js +16 -0
  189. package/bin/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
  190. package/bin/node_modules/yaml/dist/schema/core/bool.js +21 -0
  191. package/bin/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
  192. package/bin/node_modules/yaml/dist/schema/core/float.js +47 -0
  193. package/bin/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
  194. package/bin/node_modules/yaml/dist/schema/core/int.js +42 -0
  195. package/bin/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
  196. package/bin/node_modules/yaml/dist/schema/core/schema.js +25 -0
  197. package/bin/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
  198. package/bin/node_modules/yaml/dist/schema/json/schema.js +64 -0
  199. package/bin/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
  200. package/bin/node_modules/yaml/dist/schema/tags.d.ts +48 -0
  201. package/bin/node_modules/yaml/dist/schema/tags.js +99 -0
  202. package/bin/node_modules/yaml/dist/schema/types.d.ts +92 -0
  203. package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
  204. package/bin/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
  205. package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
  206. package/bin/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
  207. package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
  208. package/bin/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
  209. package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
  210. package/bin/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
  211. package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
  212. package/bin/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
  213. package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
  214. package/bin/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
  215. package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
  216. package/bin/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
  217. package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
  218. package/bin/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
  219. package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
  220. package/bin/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
  221. package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
  222. package/bin/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
  223. package/bin/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
  224. package/bin/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
  225. package/bin/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
  226. package/bin/node_modules/yaml/dist/stringify/stringify.js +132 -0
  227. package/bin/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
  228. package/bin/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
  229. package/bin/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
  230. package/bin/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
  231. package/bin/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
  232. package/bin/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
  233. package/bin/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
  234. package/bin/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
  235. package/bin/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
  236. package/bin/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
  237. package/bin/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
  238. package/bin/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
  239. package/bin/node_modules/yaml/dist/test-events.d.ts +4 -0
  240. package/bin/node_modules/yaml/dist/test-events.js +134 -0
  241. package/bin/node_modules/yaml/dist/util.d.ts +16 -0
  242. package/bin/node_modules/yaml/dist/util.js +28 -0
  243. package/bin/node_modules/yaml/dist/visit.d.ts +102 -0
  244. package/bin/node_modules/yaml/dist/visit.js +236 -0
  245. package/bin/node_modules/yaml/package.json +97 -0
  246. package/bin/node_modules/yaml/util.js +2 -0
  247. package/package.json +1 -1
@@ -0,0 +1,562 @@
1
+ import { n as __require, t as __commonJSMin } from "../../rolldown-runtime.mjs";
2
+ var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3
+ var s = 1e3;
4
+ var m = s * 60;
5
+ var h = m * 60;
6
+ var d = h * 24;
7
+ var w = d * 7;
8
+ var y = d * 365.25;
9
+ module.exports = function(val, options) {
10
+ options = options || {};
11
+ var type = typeof val;
12
+ if (type === "string" && val.length > 0) return parse(val);
13
+ else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
14
+ throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
15
+ };
16
+ function parse(str) {
17
+ str = String(str);
18
+ if (str.length > 100) return;
19
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
20
+ if (!match) return;
21
+ var n = parseFloat(match[1]);
22
+ switch ((match[2] || "ms").toLowerCase()) {
23
+ case "years":
24
+ case "year":
25
+ case "yrs":
26
+ case "yr":
27
+ case "y": return n * y;
28
+ case "weeks":
29
+ case "week":
30
+ case "w": return n * w;
31
+ case "days":
32
+ case "day":
33
+ case "d": return n * d;
34
+ case "hours":
35
+ case "hour":
36
+ case "hrs":
37
+ case "hr":
38
+ case "h": return n * h;
39
+ case "minutes":
40
+ case "minute":
41
+ case "mins":
42
+ case "min":
43
+ case "m": return n * m;
44
+ case "seconds":
45
+ case "second":
46
+ case "secs":
47
+ case "sec":
48
+ case "s": return n * s;
49
+ case "milliseconds":
50
+ case "millisecond":
51
+ case "msecs":
52
+ case "msec":
53
+ case "ms": return n;
54
+ default: return;
55
+ }
56
+ }
57
+ function fmtShort(ms) {
58
+ var msAbs = Math.abs(ms);
59
+ if (msAbs >= d) return Math.round(ms / d) + "d";
60
+ if (msAbs >= h) return Math.round(ms / h) + "h";
61
+ if (msAbs >= m) return Math.round(ms / m) + "m";
62
+ if (msAbs >= s) return Math.round(ms / s) + "s";
63
+ return ms + "ms";
64
+ }
65
+ function fmtLong(ms) {
66
+ var msAbs = Math.abs(ms);
67
+ if (msAbs >= d) return plural(ms, msAbs, d, "day");
68
+ if (msAbs >= h) return plural(ms, msAbs, h, "hour");
69
+ if (msAbs >= m) return plural(ms, msAbs, m, "minute");
70
+ if (msAbs >= s) return plural(ms, msAbs, s, "second");
71
+ return ms + " ms";
72
+ }
73
+ function plural(ms, msAbs, n, name) {
74
+ var isPlural = msAbs >= n * 1.5;
75
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
76
+ }
77
+ }));
78
+ var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
79
+ function setup(env) {
80
+ createDebug.debug = createDebug;
81
+ createDebug.default = createDebug;
82
+ createDebug.coerce = coerce;
83
+ createDebug.disable = disable;
84
+ createDebug.enable = enable;
85
+ createDebug.enabled = enabled;
86
+ createDebug.humanize = require_ms();
87
+ createDebug.destroy = destroy;
88
+ Object.keys(env).forEach((key) => {
89
+ createDebug[key] = env[key];
90
+ });
91
+ createDebug.names = [];
92
+ createDebug.skips = [];
93
+ createDebug.formatters = {};
94
+ function selectColor(namespace) {
95
+ let hash = 0;
96
+ for (let i = 0; i < namespace.length; i++) {
97
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
98
+ hash |= 0;
99
+ }
100
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
101
+ }
102
+ createDebug.selectColor = selectColor;
103
+ function createDebug(namespace) {
104
+ let prevTime;
105
+ let enableOverride = null;
106
+ let namespacesCache;
107
+ let enabledCache;
108
+ function debug(...args) {
109
+ if (!debug.enabled) return;
110
+ const self = debug;
111
+ const curr = Number(/* @__PURE__ */ new Date());
112
+ self.diff = curr - (prevTime || curr);
113
+ self.prev = prevTime;
114
+ self.curr = curr;
115
+ prevTime = curr;
116
+ args[0] = createDebug.coerce(args[0]);
117
+ if (typeof args[0] !== "string") args.unshift("%O");
118
+ let index = 0;
119
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
120
+ if (match === "%%") return "%";
121
+ index++;
122
+ const formatter = createDebug.formatters[format];
123
+ if (typeof formatter === "function") {
124
+ const val = args[index];
125
+ match = formatter.call(self, val);
126
+ args.splice(index, 1);
127
+ index--;
128
+ }
129
+ return match;
130
+ });
131
+ createDebug.formatArgs.call(self, args);
132
+ (self.log || createDebug.log).apply(self, args);
133
+ }
134
+ debug.namespace = namespace;
135
+ debug.useColors = createDebug.useColors();
136
+ debug.color = createDebug.selectColor(namespace);
137
+ debug.extend = extend;
138
+ debug.destroy = createDebug.destroy;
139
+ Object.defineProperty(debug, "enabled", {
140
+ enumerable: true,
141
+ configurable: false,
142
+ get: () => {
143
+ if (enableOverride !== null) return enableOverride;
144
+ if (namespacesCache !== createDebug.namespaces) {
145
+ namespacesCache = createDebug.namespaces;
146
+ enabledCache = createDebug.enabled(namespace);
147
+ }
148
+ return enabledCache;
149
+ },
150
+ set: (v) => {
151
+ enableOverride = v;
152
+ }
153
+ });
154
+ if (typeof createDebug.init === "function") createDebug.init(debug);
155
+ return debug;
156
+ }
157
+ function extend(namespace, delimiter) {
158
+ const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
159
+ newDebug.log = this.log;
160
+ return newDebug;
161
+ }
162
+ function enable(namespaces) {
163
+ createDebug.save(namespaces);
164
+ createDebug.namespaces = namespaces;
165
+ createDebug.names = [];
166
+ createDebug.skips = [];
167
+ const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
168
+ for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
169
+ else createDebug.names.push(ns);
170
+ }
171
+ function matchesTemplate(search, template) {
172
+ let searchIndex = 0;
173
+ let templateIndex = 0;
174
+ let starIndex = -1;
175
+ let matchIndex = 0;
176
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
177
+ starIndex = templateIndex;
178
+ matchIndex = searchIndex;
179
+ templateIndex++;
180
+ } else {
181
+ searchIndex++;
182
+ templateIndex++;
183
+ }
184
+ else if (starIndex !== -1) {
185
+ templateIndex = starIndex + 1;
186
+ matchIndex++;
187
+ searchIndex = matchIndex;
188
+ } else return false;
189
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
190
+ return templateIndex === template.length;
191
+ }
192
+ function disable() {
193
+ const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
194
+ createDebug.enable("");
195
+ return namespaces;
196
+ }
197
+ function enabled(name) {
198
+ for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
199
+ for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
200
+ return false;
201
+ }
202
+ function coerce(val) {
203
+ if (val instanceof Error) return val.stack || val.message;
204
+ return val;
205
+ }
206
+ function destroy() {
207
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
208
+ }
209
+ createDebug.enable(createDebug.load());
210
+ return createDebug;
211
+ }
212
+ module.exports = setup;
213
+ }));
214
+ var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
215
+ exports.formatArgs = formatArgs;
216
+ exports.save = save;
217
+ exports.load = load;
218
+ exports.useColors = useColors;
219
+ exports.storage = localstorage();
220
+ exports.destroy = (() => {
221
+ let warned = false;
222
+ return () => {
223
+ if (!warned) {
224
+ warned = true;
225
+ console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
226
+ }
227
+ };
228
+ })();
229
+ exports.colors = [
230
+ "#0000CC",
231
+ "#0000FF",
232
+ "#0033CC",
233
+ "#0033FF",
234
+ "#0066CC",
235
+ "#0066FF",
236
+ "#0099CC",
237
+ "#0099FF",
238
+ "#00CC00",
239
+ "#00CC33",
240
+ "#00CC66",
241
+ "#00CC99",
242
+ "#00CCCC",
243
+ "#00CCFF",
244
+ "#3300CC",
245
+ "#3300FF",
246
+ "#3333CC",
247
+ "#3333FF",
248
+ "#3366CC",
249
+ "#3366FF",
250
+ "#3399CC",
251
+ "#3399FF",
252
+ "#33CC00",
253
+ "#33CC33",
254
+ "#33CC66",
255
+ "#33CC99",
256
+ "#33CCCC",
257
+ "#33CCFF",
258
+ "#6600CC",
259
+ "#6600FF",
260
+ "#6633CC",
261
+ "#6633FF",
262
+ "#66CC00",
263
+ "#66CC33",
264
+ "#9900CC",
265
+ "#9900FF",
266
+ "#9933CC",
267
+ "#9933FF",
268
+ "#99CC00",
269
+ "#99CC33",
270
+ "#CC0000",
271
+ "#CC0033",
272
+ "#CC0066",
273
+ "#CC0099",
274
+ "#CC00CC",
275
+ "#CC00FF",
276
+ "#CC3300",
277
+ "#CC3333",
278
+ "#CC3366",
279
+ "#CC3399",
280
+ "#CC33CC",
281
+ "#CC33FF",
282
+ "#CC6600",
283
+ "#CC6633",
284
+ "#CC9900",
285
+ "#CC9933",
286
+ "#CCCC00",
287
+ "#CCCC33",
288
+ "#FF0000",
289
+ "#FF0033",
290
+ "#FF0066",
291
+ "#FF0099",
292
+ "#FF00CC",
293
+ "#FF00FF",
294
+ "#FF3300",
295
+ "#FF3333",
296
+ "#FF3366",
297
+ "#FF3399",
298
+ "#FF33CC",
299
+ "#FF33FF",
300
+ "#FF6600",
301
+ "#FF6633",
302
+ "#FF9900",
303
+ "#FF9933",
304
+ "#FFCC00",
305
+ "#FFCC33"
306
+ ];
307
+ function useColors() {
308
+ if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
309
+ if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
310
+ let m;
311
+ return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
312
+ }
313
+ function formatArgs(args) {
314
+ args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
315
+ if (!this.useColors) return;
316
+ const c = "color: " + this.color;
317
+ args.splice(1, 0, c, "color: inherit");
318
+ let index = 0;
319
+ let lastC = 0;
320
+ args[0].replace(/%[a-zA-Z%]/g, (match) => {
321
+ if (match === "%%") return;
322
+ index++;
323
+ if (match === "%c") lastC = index;
324
+ });
325
+ args.splice(lastC, 0, c);
326
+ }
327
+ exports.log = console.debug || console.log || (() => {});
328
+ function save(namespaces) {
329
+ try {
330
+ if (namespaces) exports.storage.setItem("debug", namespaces);
331
+ else exports.storage.removeItem("debug");
332
+ } catch (error) {}
333
+ }
334
+ function load() {
335
+ let r;
336
+ try {
337
+ r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
338
+ } catch (error) {}
339
+ if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
340
+ return r;
341
+ }
342
+ function localstorage() {
343
+ try {
344
+ return localStorage;
345
+ } catch (error) {}
346
+ }
347
+ module.exports = require_common()(exports);
348
+ const { formatters } = module.exports;
349
+ formatters.j = function(v) {
350
+ try {
351
+ return JSON.stringify(v);
352
+ } catch (error) {
353
+ return "[UnexpectedJSONParseError]: " + error.message;
354
+ }
355
+ };
356
+ }));
357
+ var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
358
+ const tty = __require("tty");
359
+ const util = __require("util");
360
+ exports.init = init;
361
+ exports.log = log;
362
+ exports.formatArgs = formatArgs;
363
+ exports.save = save;
364
+ exports.load = load;
365
+ exports.useColors = useColors;
366
+ exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
367
+ exports.colors = [
368
+ 6,
369
+ 2,
370
+ 3,
371
+ 4,
372
+ 5,
373
+ 1
374
+ ];
375
+ try {
376
+ const supportsColor = __require("supports-color");
377
+ if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
378
+ 20,
379
+ 21,
380
+ 26,
381
+ 27,
382
+ 32,
383
+ 33,
384
+ 38,
385
+ 39,
386
+ 40,
387
+ 41,
388
+ 42,
389
+ 43,
390
+ 44,
391
+ 45,
392
+ 56,
393
+ 57,
394
+ 62,
395
+ 63,
396
+ 68,
397
+ 69,
398
+ 74,
399
+ 75,
400
+ 76,
401
+ 77,
402
+ 78,
403
+ 79,
404
+ 80,
405
+ 81,
406
+ 92,
407
+ 93,
408
+ 98,
409
+ 99,
410
+ 112,
411
+ 113,
412
+ 128,
413
+ 129,
414
+ 134,
415
+ 135,
416
+ 148,
417
+ 149,
418
+ 160,
419
+ 161,
420
+ 162,
421
+ 163,
422
+ 164,
423
+ 165,
424
+ 166,
425
+ 167,
426
+ 168,
427
+ 169,
428
+ 170,
429
+ 171,
430
+ 172,
431
+ 173,
432
+ 178,
433
+ 179,
434
+ 184,
435
+ 185,
436
+ 196,
437
+ 197,
438
+ 198,
439
+ 199,
440
+ 200,
441
+ 201,
442
+ 202,
443
+ 203,
444
+ 204,
445
+ 205,
446
+ 206,
447
+ 207,
448
+ 208,
449
+ 209,
450
+ 214,
451
+ 215,
452
+ 220,
453
+ 221
454
+ ];
455
+ } catch (error) {}
456
+ exports.inspectOpts = Object.keys(process.env).filter((key) => {
457
+ return /^debug_/i.test(key);
458
+ }).reduce((obj, key) => {
459
+ const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
460
+ return k.toUpperCase();
461
+ });
462
+ let val = process.env[key];
463
+ if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
464
+ else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
465
+ else if (val === "null") val = null;
466
+ else val = Number(val);
467
+ obj[prop] = val;
468
+ return obj;
469
+ }, {});
470
+ function useColors() {
471
+ return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
472
+ }
473
+ function formatArgs(args) {
474
+ const { namespace: name, useColors } = this;
475
+ if (useColors) {
476
+ const c = this.color;
477
+ const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
478
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
479
+ args[0] = prefix + args[0].split("\n").join("\n" + prefix);
480
+ args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
481
+ } else args[0] = getDate() + name + " " + args[0];
482
+ }
483
+ function getDate() {
484
+ if (exports.inspectOpts.hideDate) return "";
485
+ return (/* @__PURE__ */ new Date()).toISOString() + " ";
486
+ }
487
+ function log(...args) {
488
+ return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
489
+ }
490
+ function save(namespaces) {
491
+ if (namespaces) process.env.DEBUG = namespaces;
492
+ else delete process.env.DEBUG;
493
+ }
494
+ function load() {
495
+ return process.env.DEBUG;
496
+ }
497
+ function init(debug) {
498
+ debug.inspectOpts = {};
499
+ const keys = Object.keys(exports.inspectOpts);
500
+ for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
501
+ }
502
+ module.exports = require_common()(exports);
503
+ const { formatters } = module.exports;
504
+ formatters.o = function(v) {
505
+ this.inspectOpts.colors = this.useColors;
506
+ return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
507
+ };
508
+ formatters.O = function(v) {
509
+ this.inspectOpts.colors = this.useColors;
510
+ return util.inspect(v, this.inspectOpts);
511
+ };
512
+ }));
513
+ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
514
+ if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
515
+ else module.exports = require_node();
516
+ }));
517
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
518
+ var __importDefault = exports && exports.__importDefault || function(mod) {
519
+ return mod && mod.__esModule ? mod : { "default": mod };
520
+ };
521
+ Object.defineProperty(exports, "__esModule", { value: true });
522
+ const fs_1 = __require("fs");
523
+ const log = __importDefault(require_src$1()).default("@kwsites/file-exists");
524
+ function check(path, isFile, isDirectory) {
525
+ log(`checking %s`, path);
526
+ try {
527
+ const stat = fs_1.statSync(path);
528
+ if (stat.isFile() && isFile) {
529
+ log(`[OK] path represents a file`);
530
+ return true;
531
+ }
532
+ if (stat.isDirectory() && isDirectory) {
533
+ log(`[OK] path represents a directory`);
534
+ return true;
535
+ }
536
+ log(`[FAIL] path represents something other than a file or directory`);
537
+ return false;
538
+ } catch (e) {
539
+ if (e.code === "ENOENT") {
540
+ log(`[FAIL] path is not accessible: %o`, e);
541
+ return false;
542
+ }
543
+ log(`[FATAL] %o`, e);
544
+ throw e;
545
+ }
546
+ }
547
+ function exists(path, type = exports.READABLE) {
548
+ return check(path, (type & exports.FILE) > 0, (type & exports.FOLDER) > 0);
549
+ }
550
+ exports.exists = exists;
551
+ exports.FILE = 1;
552
+ exports.FOLDER = 2;
553
+ exports.READABLE = exports.FILE + exports.FOLDER;
554
+ }));
555
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
556
+ function __export(m) {
557
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
558
+ }
559
+ Object.defineProperty(exports, "__esModule", { value: true });
560
+ __export(require_src());
561
+ }));
562
+ export { require_src$1 as n, require_dist as t };
@@ -0,0 +1,37 @@
1
+ import { t as __commonJSMin } from "../../rolldown-runtime.mjs";
2
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.createDeferred = exports.deferred = void 0;
5
+ function deferred() {
6
+ let done;
7
+ let fail;
8
+ let status = "pending";
9
+ return {
10
+ promise: new Promise((_done, _fail) => {
11
+ done = _done;
12
+ fail = _fail;
13
+ }),
14
+ done(result) {
15
+ if (status === "pending") {
16
+ status = "resolved";
17
+ done(result);
18
+ }
19
+ },
20
+ fail(error) {
21
+ if (status === "pending") {
22
+ status = "rejected";
23
+ fail(error);
24
+ }
25
+ },
26
+ get fulfilled() {
27
+ return status !== "pending";
28
+ },
29
+ get status() {
30
+ return status;
31
+ }
32
+ };
33
+ }
34
+ exports.deferred = deferred;
35
+ exports.createDeferred = deferred;
36
+ }));
37
+ export { require_dist as t };