@copilotkit/aimock 1.12.0 → 1.13.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 (178) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/README.md +20 -2
  4. package/dist/_virtual/_rolldown/runtime.cjs +2 -0
  5. package/dist/_virtual/_rolldown/runtime.js +29 -0
  6. package/dist/a2a-types.d.cts.map +1 -1
  7. package/dist/a2a-types.d.ts.map +1 -1
  8. package/dist/aimock-cli.cjs +16 -0
  9. package/dist/aimock-cli.cjs.map +1 -1
  10. package/dist/aimock-cli.d.cts +2 -0
  11. package/dist/aimock-cli.d.cts.map +1 -1
  12. package/dist/aimock-cli.d.ts +2 -0
  13. package/dist/aimock-cli.d.ts.map +1 -1
  14. package/dist/aimock-cli.js +16 -0
  15. package/dist/aimock-cli.js.map +1 -1
  16. package/dist/config-loader.d.cts.map +1 -1
  17. package/dist/convert-mockllm.cjs +232 -0
  18. package/dist/convert-mockllm.cjs.map +1 -0
  19. package/dist/convert-mockllm.js +230 -0
  20. package/dist/convert-mockllm.js.map +1 -0
  21. package/dist/convert-vidaimock.cjs +110 -0
  22. package/dist/convert-vidaimock.cjs.map +1 -0
  23. package/dist/convert-vidaimock.js +108 -0
  24. package/dist/convert-vidaimock.js.map +1 -0
  25. package/dist/convert.cjs +158 -0
  26. package/dist/convert.cjs.map +1 -0
  27. package/dist/convert.d.cts +16 -0
  28. package/dist/convert.d.cts.map +1 -0
  29. package/dist/convert.d.ts +16 -0
  30. package/dist/convert.d.ts.map +1 -0
  31. package/dist/convert.js +157 -0
  32. package/dist/convert.js.map +1 -0
  33. package/dist/jest.cjs +70 -0
  34. package/dist/jest.cjs.map +1 -0
  35. package/dist/jest.d.cts +33 -0
  36. package/dist/jest.d.cts.map +1 -0
  37. package/dist/jest.d.ts +33 -0
  38. package/dist/jest.d.ts.map +1 -0
  39. package/dist/jest.js +67 -0
  40. package/dist/jest.js.map +1 -0
  41. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.cjs +934 -0
  42. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.cjs.map +1 -0
  43. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +934 -0
  44. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
  45. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.cjs +1051 -0
  46. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.cjs.map +1 -0
  47. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +1042 -0
  48. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js.map +1 -0
  49. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.cjs +1 -0
  50. package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +3 -0
  51. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.cjs +96 -0
  52. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.cjs.map +1 -0
  53. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +93 -0
  54. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
  55. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.cjs +49 -0
  56. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.cjs.map +1 -0
  57. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +43 -0
  58. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
  59. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.cjs +456 -0
  60. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.cjs.map +1 -0
  61. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +456 -0
  62. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js.map +1 -0
  63. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.cjs +170 -0
  64. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.cjs.map +1 -0
  65. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +169 -0
  66. package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
  67. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.cjs +388 -0
  68. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.cjs.map +1 -0
  69. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +385 -0
  70. package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js.map +1 -0
  71. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.cjs +12 -0
  72. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.cjs.map +1 -0
  73. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +12 -0
  74. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
  75. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.cjs +17 -0
  76. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.cjs.map +1 -0
  77. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +17 -0
  78. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
  79. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.cjs +12 -0
  80. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.cjs.map +1 -0
  81. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +12 -0
  82. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
  83. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.cjs +16 -0
  84. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.cjs.map +1 -0
  85. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +16 -0
  86. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
  87. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.cjs +14 -0
  88. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.cjs.map +1 -0
  89. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +14 -0
  90. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
  91. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.cjs +35 -0
  92. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.cjs.map +1 -0
  93. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +35 -0
  94. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
  95. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.cjs +13 -0
  96. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.cjs.map +1 -0
  97. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +13 -0
  98. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
  99. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.cjs +128 -0
  100. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.cjs.map +1 -0
  101. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +123 -0
  102. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
  103. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.cjs +41 -0
  104. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.cjs.map +1 -0
  105. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +40 -0
  106. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
  107. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.cjs +100 -0
  108. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.cjs.map +1 -0
  109. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +100 -0
  110. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
  111. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.cjs +26 -0
  112. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.cjs.map +1 -0
  113. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +26 -0
  114. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
  115. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.cjs +15 -0
  116. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.cjs.map +1 -0
  117. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +15 -0
  118. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
  119. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.cjs +22 -0
  120. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.cjs.map +1 -0
  121. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +22 -0
  122. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
  123. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.cjs +7 -0
  124. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.cjs.map +1 -0
  125. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  126. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
  127. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.cjs +13 -0
  128. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.cjs.map +1 -0
  129. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +13 -0
  130. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
  131. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.cjs +19 -0
  132. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.cjs.map +1 -0
  133. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +19 -0
  134. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
  135. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.cjs +26 -0
  136. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.cjs.map +1 -0
  137. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +26 -0
  138. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
  139. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.cjs +10 -0
  140. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.cjs.map +1 -0
  141. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
  142. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
  143. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.cjs +31 -0
  144. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.cjs.map +1 -0
  145. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +31 -0
  146. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
  147. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.cjs +52 -0
  148. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.cjs.map +1 -0
  149. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +52 -0
  150. package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js.map +1 -0
  151. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.cjs +83 -0
  152. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.cjs.map +1 -0
  153. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
  154. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
  155. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.cjs +10 -0
  156. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.cjs.map +1 -0
  157. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +10 -0
  158. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
  159. package/dist/vitest.cjs +80 -0
  160. package/dist/vitest.cjs.map +1 -0
  161. package/dist/vitest.d.cts +30 -0
  162. package/dist/vitest.d.cts.map +1 -0
  163. package/dist/vitest.d.ts +30 -0
  164. package/dist/vitest.d.ts.map +1 -0
  165. package/dist/vitest.js +77 -0
  166. package/dist/vitest.js.map +1 -0
  167. package/fixtures/examples/a2a/a2a-config.json +42 -0
  168. package/fixtures/examples/agui/agui-text-response.json +35 -0
  169. package/fixtures/examples/chaos/chaos-config.json +10 -0
  170. package/fixtures/examples/full-suite.json +116 -0
  171. package/fixtures/examples/llm/embeddings.json +10 -0
  172. package/fixtures/examples/llm/error-injection.json +15 -0
  173. package/fixtures/examples/llm/sequential-responses.json +20 -0
  174. package/fixtures/examples/llm/streaming-physics.json +15 -0
  175. package/fixtures/examples/mcp/mcp-config.json +26 -0
  176. package/fixtures/examples/record-replay/record-config.json +11 -0
  177. package/fixtures/examples/vector/vector-config.json +34 -0
  178. package/package.json +59 -1
@@ -0,0 +1,35 @@
1
+ const require_helpers = require('./helpers.cjs');
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
4
+ const errorKeys = [
5
+ "stack",
6
+ "line",
7
+ "column",
8
+ "name",
9
+ "message",
10
+ "fileName",
11
+ "lineNumber",
12
+ "columnNumber",
13
+ "number",
14
+ "description",
15
+ "cause"
16
+ ];
17
+ function inspectObject(error, options) {
18
+ const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);
19
+ const name = error.name;
20
+ options.truncate -= name.length;
21
+ let message = "";
22
+ if (typeof error.message === "string") message = require_helpers.truncate(error.message, options.truncate);
23
+ else properties.unshift("message");
24
+ message = message ? `: ${message}` : "";
25
+ options.truncate -= message.length + 5;
26
+ options.seen = options.seen || [];
27
+ if (options.seen.includes(error)) return "[Circular]";
28
+ options.seen.push(error);
29
+ const propertyContents = require_helpers.inspectList(properties.map((key) => [key, error[key]]), options, require_helpers.inspectProperty);
30
+ return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
31
+ }
32
+
33
+ //#endregion
34
+ exports.default = inspectObject;
35
+ //# sourceMappingURL=error.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.cjs","names":["truncate","inspectList","inspectProperty"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js"],"sourcesContent":["import { inspectList, inspectProperty, truncate } from './helpers.js';\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nexport default function inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,YAAY;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH;AACD,SAAwB,cAAc,OAAO,SAAS;CAClD,MAAM,aAAa,OAAO,oBAAoB,MAAM,CAAC,QAAO,QAAO,UAAU,QAAQ,IAAI,KAAK,GAAG;CACjG,MAAM,OAAO,MAAM;AACnB,SAAQ,YAAY,KAAK;CACzB,IAAI,UAAU;AACd,KAAI,OAAO,MAAM,YAAY,SACzB,WAAUA,yBAAS,MAAM,SAAS,QAAQ,SAAS;KAGnD,YAAW,QAAQ,UAAU;AAEjC,WAAU,UAAU,KAAK,YAAY;AACrC,SAAQ,YAAY,QAAQ,SAAS;AACrC,SAAQ,OAAO,QAAQ,QAAQ,EAAE;AACjC,KAAI,QAAQ,KAAK,SAAS,MAAM,CAC5B,QAAO;AAEX,SAAQ,KAAK,KAAK,MAAM;CACxB,MAAM,mBAAmBC,4BAAY,WAAW,KAAI,QAAO,CAAC,KAAK,MAAM,KAAK,CAAC,EAAE,SAASC,gCAAgB;AACxG,QAAO,GAAG,OAAO,UAAU,mBAAmB,MAAM,iBAAiB,MAAM"}
@@ -0,0 +1,35 @@
1
+ import { inspectList, inspectProperty, truncate } from "./helpers.js";
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js
4
+ const errorKeys = [
5
+ "stack",
6
+ "line",
7
+ "column",
8
+ "name",
9
+ "message",
10
+ "fileName",
11
+ "lineNumber",
12
+ "columnNumber",
13
+ "number",
14
+ "description",
15
+ "cause"
16
+ ];
17
+ function inspectObject(error, options) {
18
+ const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys.indexOf(key) === -1);
19
+ const name = error.name;
20
+ options.truncate -= name.length;
21
+ let message = "";
22
+ if (typeof error.message === "string") message = truncate(error.message, options.truncate);
23
+ else properties.unshift("message");
24
+ message = message ? `: ${message}` : "";
25
+ options.truncate -= message.length + 5;
26
+ options.seen = options.seen || [];
27
+ if (options.seen.includes(error)) return "[Circular]";
28
+ options.seen.push(error);
29
+ const propertyContents = inspectList(properties.map((key) => [key, error[key]]), options, inspectProperty);
30
+ return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ""}`;
31
+ }
32
+
33
+ //#endregion
34
+ export { inspectObject as default };
35
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js"],"sourcesContent":["import { inspectList, inspectProperty, truncate } from './helpers.js';\nconst errorKeys = [\n 'stack',\n 'line',\n 'column',\n 'name',\n 'message',\n 'fileName',\n 'lineNumber',\n 'columnNumber',\n 'number',\n 'description',\n 'cause',\n];\nexport default function inspectObject(error, options) {\n const properties = Object.getOwnPropertyNames(error).filter(key => errorKeys.indexOf(key) === -1);\n const name = error.name;\n options.truncate -= name.length;\n let message = '';\n if (typeof error.message === 'string') {\n message = truncate(error.message, options.truncate);\n }\n else {\n properties.unshift('message');\n }\n message = message ? `: ${message}` : '';\n options.truncate -= message.length + 5;\n options.seen = options.seen || [];\n if (options.seen.includes(error)) {\n return '[Circular]';\n }\n options.seen.push(error);\n const propertyContents = inspectList(properties.map(key => [key, error[key]]), options, inspectProperty);\n return `${name}${message}${propertyContents ? ` { ${propertyContents} }` : ''}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,MAAM,YAAY;CACd;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH;AACD,SAAwB,cAAc,OAAO,SAAS;CAClD,MAAM,aAAa,OAAO,oBAAoB,MAAM,CAAC,QAAO,QAAO,UAAU,QAAQ,IAAI,KAAK,GAAG;CACjG,MAAM,OAAO,MAAM;AACnB,SAAQ,YAAY,KAAK;CACzB,IAAI,UAAU;AACd,KAAI,OAAO,MAAM,YAAY,SACzB,WAAU,SAAS,MAAM,SAAS,QAAQ,SAAS;KAGnD,YAAW,QAAQ,UAAU;AAEjC,WAAU,UAAU,KAAK,YAAY;AACrC,SAAQ,YAAY,QAAQ,SAAS;AACrC,SAAQ,OAAO,QAAQ,QAAQ,EAAE;AACjC,KAAI,QAAQ,KAAK,SAAS,MAAM,CAC5B,QAAO;AAEX,SAAQ,KAAK,KAAK,MAAM;CACxB,MAAM,mBAAmB,YAAY,WAAW,KAAI,QAAO,CAAC,KAAK,MAAM,KAAK,CAAC,EAAE,SAAS,gBAAgB;AACxG,QAAO,GAAG,OAAO,UAAU,mBAAmB,MAAM,iBAAiB,MAAM"}
@@ -0,0 +1,13 @@
1
+ const require_helpers = require('./helpers.cjs');
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
4
+ function inspectFunction(func, options) {
5
+ const functionType = func[Symbol.toStringTag] || "Function";
6
+ const name = func.name;
7
+ if (!name) return options.stylize(`[${functionType}]`, "special");
8
+ return options.stylize(`[${functionType} ${require_helpers.truncate(name, options.truncate - 11)}]`, "special");
9
+ }
10
+
11
+ //#endregion
12
+ exports.default = inspectFunction;
13
+ //# sourceMappingURL=function.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.cjs","names":["truncate"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,gBAAgB,MAAM,SAAS;CACnD,MAAM,eAAe,KAAK,OAAO,gBAAgB;CACjD,MAAM,OAAO,KAAK;AAClB,KAAI,CAAC,KACD,QAAO,QAAQ,QAAQ,IAAI,aAAa,IAAI,UAAU;AAE1D,QAAO,QAAQ,QAAQ,IAAI,aAAa,GAAGA,yBAAS,MAAM,QAAQ,WAAW,GAAG,CAAC,IAAI,UAAU"}
@@ -0,0 +1,13 @@
1
+ import { truncate } from "./helpers.js";
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js
4
+ function inspectFunction(func, options) {
5
+ const functionType = func[Symbol.toStringTag] || "Function";
6
+ const name = func.name;
7
+ if (!name) return options.stylize(`[${functionType}]`, "special");
8
+ return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, "special");
9
+ }
10
+
11
+ //#endregion
12
+ export { inspectFunction as default };
13
+ //# sourceMappingURL=function.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"function.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js"],"sourcesContent":["import { truncate } from './helpers.js';\nexport default function inspectFunction(func, options) {\n const functionType = func[Symbol.toStringTag] || 'Function';\n const name = func.name;\n if (!name) {\n return options.stylize(`[${functionType}]`, 'special');\n }\n return options.stylize(`[${functionType} ${truncate(name, options.truncate - 11)}]`, 'special');\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAwB,gBAAgB,MAAM,SAAS;CACnD,MAAM,eAAe,KAAK,OAAO,gBAAgB;CACjD,MAAM,OAAO,KAAK;AAClB,KAAI,CAAC,KACD,QAAO,QAAQ,QAAQ,IAAI,aAAa,IAAI,UAAU;AAE1D,QAAO,QAAQ,QAAQ,IAAI,aAAa,GAAG,SAAS,MAAM,QAAQ,WAAW,GAAG,CAAC,IAAI,UAAU"}
@@ -0,0 +1,128 @@
1
+
2
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
3
+ const ansiColors = {
4
+ bold: ["1", "22"],
5
+ dim: ["2", "22"],
6
+ italic: ["3", "23"],
7
+ underline: ["4", "24"],
8
+ inverse: ["7", "27"],
9
+ hidden: ["8", "28"],
10
+ strike: ["9", "29"],
11
+ black: ["30", "39"],
12
+ red: ["31", "39"],
13
+ green: ["32", "39"],
14
+ yellow: ["33", "39"],
15
+ blue: ["34", "39"],
16
+ magenta: ["35", "39"],
17
+ cyan: ["36", "39"],
18
+ white: ["37", "39"],
19
+ brightblack: ["30;1", "39"],
20
+ brightred: ["31;1", "39"],
21
+ brightgreen: ["32;1", "39"],
22
+ brightyellow: ["33;1", "39"],
23
+ brightblue: ["34;1", "39"],
24
+ brightmagenta: ["35;1", "39"],
25
+ brightcyan: ["36;1", "39"],
26
+ brightwhite: ["37;1", "39"],
27
+ grey: ["90", "39"]
28
+ };
29
+ const styles = {
30
+ special: "cyan",
31
+ number: "yellow",
32
+ bigint: "yellow",
33
+ boolean: "yellow",
34
+ undefined: "grey",
35
+ null: "bold",
36
+ string: "green",
37
+ symbol: "green",
38
+ date: "magenta",
39
+ regexp: "red"
40
+ };
41
+ const truncator = "…";
42
+ function colorise(value, styleType) {
43
+ const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
44
+ if (!color) return String(value);
45
+ return `\u001b[${color[0]}m${String(value)}\u001b[${color[1]}m`;
46
+ }
47
+ function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], truncate = Infinity, stylize = String } = {}, inspect) {
48
+ const options = {
49
+ showHidden: Boolean(showHidden),
50
+ depth: Number(depth),
51
+ colors: Boolean(colors),
52
+ customInspect: Boolean(customInspect),
53
+ showProxy: Boolean(showProxy),
54
+ maxArrayLength: Number(maxArrayLength),
55
+ breakLength: Number(breakLength),
56
+ truncate: Number(truncate),
57
+ seen,
58
+ inspect,
59
+ stylize
60
+ };
61
+ if (options.colors) options.stylize = colorise;
62
+ return options;
63
+ }
64
+ function isHighSurrogate(char) {
65
+ return char >= "\ud800" && char <= "\udbff";
66
+ }
67
+ function truncate(string, length, tail = truncator) {
68
+ string = String(string);
69
+ const tailLength = tail.length;
70
+ const stringLength = string.length;
71
+ if (tailLength > length && stringLength > tailLength) return tail;
72
+ if (stringLength > length && stringLength > tailLength) {
73
+ let end = length - tailLength;
74
+ if (end > 0 && isHighSurrogate(string[end - 1])) end = end - 1;
75
+ return `${string.slice(0, end)}${tail}`;
76
+ }
77
+ return string;
78
+ }
79
+ function inspectList(list, options, inspectItem, separator = ", ") {
80
+ inspectItem = inspectItem || options.inspect;
81
+ const size = list.length;
82
+ if (size === 0) return "";
83
+ const originalLength = options.truncate;
84
+ let output = "";
85
+ let peek = "";
86
+ let truncated = "";
87
+ for (let i = 0; i < size; i += 1) {
88
+ const last = i + 1 === list.length;
89
+ const secondToLast = i + 2 === list.length;
90
+ truncated = `${truncator}(${list.length - i})`;
91
+ const value = list[i];
92
+ options.truncate = originalLength - output.length - (last ? 0 : separator.length);
93
+ const string = peek || inspectItem(value, options) + (last ? "" : separator);
94
+ const nextLength = output.length + string.length;
95
+ const truncatedLength = nextLength + truncated.length;
96
+ if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
97
+ if (!last && !secondToLast && truncatedLength > originalLength) break;
98
+ peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
99
+ if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
100
+ output += string;
101
+ if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
102
+ truncated = `${truncator}(${list.length - i - 1})`;
103
+ break;
104
+ }
105
+ truncated = "";
106
+ }
107
+ return `${output}${truncated}`;
108
+ }
109
+ function quoteComplexKey(key) {
110
+ if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
111
+ return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
112
+ }
113
+ function inspectProperty([key, value], options) {
114
+ options.truncate -= 2;
115
+ if (typeof key === "string") key = quoteComplexKey(key);
116
+ else if (typeof key !== "number") key = `[${options.inspect(key, options)}]`;
117
+ options.truncate -= key.length;
118
+ value = options.inspect(value, options);
119
+ return `${key}: ${value}`;
120
+ }
121
+
122
+ //#endregion
123
+ exports.inspectList = inspectList;
124
+ exports.inspectProperty = inspectProperty;
125
+ exports.normaliseOptions = normaliseOptions;
126
+ exports.truncate = truncate;
127
+ exports.truncator = truncator;
128
+ //# sourceMappingURL=helpers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.cjs","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js"],"sourcesContent":["const ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nexport const truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nexport function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nexport function truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nexport function inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nexport function inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAM,aAAa;CACf,MAAM,CAAC,KAAK,KAAK;CACjB,KAAK,CAAC,KAAK,KAAK;CAChB,QAAQ,CAAC,KAAK,KAAK;CACnB,WAAW,CAAC,KAAK,KAAK;CAEtB,SAAS,CAAC,KAAK,KAAK;CACpB,QAAQ,CAAC,KAAK,KAAK;CACnB,QAAQ,CAAC,KAAK,KAAK;CAGnB,OAAO,CAAC,MAAM,KAAK;CACnB,KAAK,CAAC,MAAM,KAAK;CACjB,OAAO,CAAC,MAAM,KAAK;CACnB,QAAQ,CAAC,MAAM,KAAK;CACpB,MAAM,CAAC,MAAM,KAAK;CAClB,SAAS,CAAC,MAAM,KAAK;CACrB,MAAM,CAAC,MAAM,KAAK;CAClB,OAAO,CAAC,MAAM,KAAK;CACnB,aAAa,CAAC,QAAQ,KAAK;CAC3B,WAAW,CAAC,QAAQ,KAAK;CACzB,aAAa,CAAC,QAAQ,KAAK;CAC3B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AEhB,QAAO,GAAG,SAAS;;AAEvB,SAAS,gBAAgB,KAAK;AAC1B,KAAI,IAAI,MAAM,2BAA2B,CACrC,QAAO;AAEX,QAAO,KAAK,UAAU,IAAI,CACrB,QAAQ,MAAM,MAAM,CACpB,QAAQ,QAAQ,KAAI,CACpB,QAAQ,YAAY,IAAI;;AAEjC,SAAgB,gBAAgB,CAAC,KAAK,QAAQ,SAAS;AACnD,SAAQ,YAAY;AACpB,KAAI,OAAO,QAAQ,SACf,OAAM,gBAAgB,IAAI;UAErB,OAAO,QAAQ,SACpB,OAAM,IAAI,QAAQ,QAAQ,KAAK,QAAQ,CAAC;AAE5C,SAAQ,YAAY,IAAI;AACxB,SAAQ,QAAQ,QAAQ,OAAO,QAAQ;AACvC,QAAO,GAAG,IAAI,IAAI"}
@@ -0,0 +1,123 @@
1
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js
2
+ const ansiColors = {
3
+ bold: ["1", "22"],
4
+ dim: ["2", "22"],
5
+ italic: ["3", "23"],
6
+ underline: ["4", "24"],
7
+ inverse: ["7", "27"],
8
+ hidden: ["8", "28"],
9
+ strike: ["9", "29"],
10
+ black: ["30", "39"],
11
+ red: ["31", "39"],
12
+ green: ["32", "39"],
13
+ yellow: ["33", "39"],
14
+ blue: ["34", "39"],
15
+ magenta: ["35", "39"],
16
+ cyan: ["36", "39"],
17
+ white: ["37", "39"],
18
+ brightblack: ["30;1", "39"],
19
+ brightred: ["31;1", "39"],
20
+ brightgreen: ["32;1", "39"],
21
+ brightyellow: ["33;1", "39"],
22
+ brightblue: ["34;1", "39"],
23
+ brightmagenta: ["35;1", "39"],
24
+ brightcyan: ["36;1", "39"],
25
+ brightwhite: ["37;1", "39"],
26
+ grey: ["90", "39"]
27
+ };
28
+ const styles = {
29
+ special: "cyan",
30
+ number: "yellow",
31
+ bigint: "yellow",
32
+ boolean: "yellow",
33
+ undefined: "grey",
34
+ null: "bold",
35
+ string: "green",
36
+ symbol: "green",
37
+ date: "magenta",
38
+ regexp: "red"
39
+ };
40
+ const truncator = "…";
41
+ function colorise(value, styleType) {
42
+ const color = ansiColors[styles[styleType]] || ansiColors[styleType] || "";
43
+ if (!color) return String(value);
44
+ return `\u001b[${color[0]}m${String(value)}\u001b[${color[1]}m`;
45
+ }
46
+ function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], truncate = Infinity, stylize = String } = {}, inspect) {
47
+ const options = {
48
+ showHidden: Boolean(showHidden),
49
+ depth: Number(depth),
50
+ colors: Boolean(colors),
51
+ customInspect: Boolean(customInspect),
52
+ showProxy: Boolean(showProxy),
53
+ maxArrayLength: Number(maxArrayLength),
54
+ breakLength: Number(breakLength),
55
+ truncate: Number(truncate),
56
+ seen,
57
+ inspect,
58
+ stylize
59
+ };
60
+ if (options.colors) options.stylize = colorise;
61
+ return options;
62
+ }
63
+ function isHighSurrogate(char) {
64
+ return char >= "\ud800" && char <= "\udbff";
65
+ }
66
+ function truncate(string, length, tail = truncator) {
67
+ string = String(string);
68
+ const tailLength = tail.length;
69
+ const stringLength = string.length;
70
+ if (tailLength > length && stringLength > tailLength) return tail;
71
+ if (stringLength > length && stringLength > tailLength) {
72
+ let end = length - tailLength;
73
+ if (end > 0 && isHighSurrogate(string[end - 1])) end = end - 1;
74
+ return `${string.slice(0, end)}${tail}`;
75
+ }
76
+ return string;
77
+ }
78
+ function inspectList(list, options, inspectItem, separator = ", ") {
79
+ inspectItem = inspectItem || options.inspect;
80
+ const size = list.length;
81
+ if (size === 0) return "";
82
+ const originalLength = options.truncate;
83
+ let output = "";
84
+ let peek = "";
85
+ let truncated = "";
86
+ for (let i = 0; i < size; i += 1) {
87
+ const last = i + 1 === list.length;
88
+ const secondToLast = i + 2 === list.length;
89
+ truncated = `${truncator}(${list.length - i})`;
90
+ const value = list[i];
91
+ options.truncate = originalLength - output.length - (last ? 0 : separator.length);
92
+ const string = peek || inspectItem(value, options) + (last ? "" : separator);
93
+ const nextLength = output.length + string.length;
94
+ const truncatedLength = nextLength + truncated.length;
95
+ if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) break;
96
+ if (!last && !secondToLast && truncatedLength > originalLength) break;
97
+ peek = last ? "" : inspectItem(list[i + 1], options) + (secondToLast ? "" : separator);
98
+ if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) break;
99
+ output += string;
100
+ if (!last && !secondToLast && nextLength + peek.length >= originalLength) {
101
+ truncated = `${truncator}(${list.length - i - 1})`;
102
+ break;
103
+ }
104
+ truncated = "";
105
+ }
106
+ return `${output}${truncated}`;
107
+ }
108
+ function quoteComplexKey(key) {
109
+ if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) return key;
110
+ return JSON.stringify(key).replace(/'/g, "\\'").replace(/\\"/g, "\"").replace(/(^"|"$)/g, "'");
111
+ }
112
+ function inspectProperty([key, value], options) {
113
+ options.truncate -= 2;
114
+ if (typeof key === "string") key = quoteComplexKey(key);
115
+ else if (typeof key !== "number") key = `[${options.inspect(key, options)}]`;
116
+ options.truncate -= key.length;
117
+ value = options.inspect(value, options);
118
+ return `${key}: ${value}`;
119
+ }
120
+
121
+ //#endregion
122
+ export { inspectList, inspectProperty, normaliseOptions, truncate, truncator };
123
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js"],"sourcesContent":["const ansiColors = {\n bold: ['1', '22'],\n dim: ['2', '22'],\n italic: ['3', '23'],\n underline: ['4', '24'],\n // 5 & 6 are blinking\n inverse: ['7', '27'],\n hidden: ['8', '28'],\n strike: ['9', '29'],\n // 10-20 are fonts\n // 21-29 are resets for 1-9\n black: ['30', '39'],\n red: ['31', '39'],\n green: ['32', '39'],\n yellow: ['33', '39'],\n blue: ['34', '39'],\n magenta: ['35', '39'],\n cyan: ['36', '39'],\n white: ['37', '39'],\n brightblack: ['30;1', '39'],\n brightred: ['31;1', '39'],\n brightgreen: ['32;1', '39'],\n brightyellow: ['33;1', '39'],\n brightblue: ['34;1', '39'],\n brightmagenta: ['35;1', '39'],\n brightcyan: ['36;1', '39'],\n brightwhite: ['37;1', '39'],\n grey: ['90', '39'],\n};\nconst styles = {\n special: 'cyan',\n number: 'yellow',\n bigint: 'yellow',\n boolean: 'yellow',\n undefined: 'grey',\n null: 'bold',\n string: 'green',\n symbol: 'green',\n date: 'magenta',\n regexp: 'red',\n};\nexport const truncator = '…';\nfunction colorise(value, styleType) {\n const color = ansiColors[styles[styleType]] || ansiColors[styleType] || '';\n if (!color) {\n return String(value);\n }\n return `\\u001b[${color[0]}m${String(value)}\\u001b[${color[1]}m`;\n}\nexport function normaliseOptions({ showHidden = false, depth = 2, colors = false, customInspect = true, showProxy = false, maxArrayLength = Infinity, breakLength = Infinity, seen = [], \n// eslint-disable-next-line no-shadow\ntruncate = Infinity, stylize = String, } = {}, inspect) {\n const options = {\n showHidden: Boolean(showHidden),\n depth: Number(depth),\n colors: Boolean(colors),\n customInspect: Boolean(customInspect),\n showProxy: Boolean(showProxy),\n maxArrayLength: Number(maxArrayLength),\n breakLength: Number(breakLength),\n truncate: Number(truncate),\n seen,\n inspect,\n stylize,\n };\n if (options.colors) {\n options.stylize = colorise;\n }\n return options;\n}\nfunction isHighSurrogate(char) {\n return char >= '\\ud800' && char <= '\\udbff';\n}\nexport function truncate(string, length, tail = truncator) {\n string = String(string);\n const tailLength = tail.length;\n const stringLength = string.length;\n if (tailLength > length && stringLength > tailLength) {\n return tail;\n }\n if (stringLength > length && stringLength > tailLength) {\n let end = length - tailLength;\n if (end > 0 && isHighSurrogate(string[end - 1])) {\n end = end - 1;\n }\n return `${string.slice(0, end)}${tail}`;\n }\n return string;\n}\n// eslint-disable-next-line complexity\nexport function inspectList(list, options, inspectItem, separator = ', ') {\n inspectItem = inspectItem || options.inspect;\n const size = list.length;\n if (size === 0)\n return '';\n const originalLength = options.truncate;\n let output = '';\n let peek = '';\n let truncated = '';\n for (let i = 0; i < size; i += 1) {\n const last = i + 1 === list.length;\n const secondToLast = i + 2 === list.length;\n truncated = `${truncator}(${list.length - i})`;\n const value = list[i];\n // If there is more than one remaining we need to account for a separator of `, `\n options.truncate = originalLength - output.length - (last ? 0 : separator.length);\n const string = peek || inspectItem(value, options) + (last ? '' : separator);\n const nextLength = output.length + string.length;\n const truncatedLength = nextLength + truncated.length;\n // If this is the last element, and adding it would\n // take us over length, but adding the truncator wouldn't - then break now\n if (last && nextLength > originalLength && output.length + truncated.length <= originalLength) {\n break;\n }\n // If this isn't the last or second to last element to scan,\n // but the string is already over length then break here\n if (!last && !secondToLast && truncatedLength > originalLength) {\n break;\n }\n // Peek at the next string to determine if we should\n // break early before adding this item to the output\n peek = last ? '' : inspectItem(list[i + 1], options) + (secondToLast ? '' : separator);\n // If we have one element left, but this element and\n // the next takes over length, the break early\n if (!last && secondToLast && truncatedLength > originalLength && nextLength + peek.length > originalLength) {\n break;\n }\n output += string;\n // If the next element takes us to length -\n // but there are more after that, then we should truncate now\n if (!last && !secondToLast && nextLength + peek.length >= originalLength) {\n truncated = `${truncator}(${list.length - i - 1})`;\n break;\n }\n truncated = '';\n }\n return `${output}${truncated}`;\n}\nfunction quoteComplexKey(key) {\n if (key.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)) {\n return key;\n }\n return JSON.stringify(key)\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n}\nexport function inspectProperty([key, value], options) {\n options.truncate -= 2;\n if (typeof key === 'string') {\n key = quoteComplexKey(key);\n }\n else if (typeof key !== 'number') {\n key = `[${options.inspect(key, options)}]`;\n }\n options.truncate -= key.length;\n value = options.inspect(value, options);\n return `${key}: ${value}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,MAAM,aAAa;CACf,MAAM,CAAC,KAAK,KAAK;CACjB,KAAK,C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AAI,OAAO,KAAK;EAClE,MAAM,aAAa,OAAO,SAAS,OAAO;EAC1C,MAAM,kBAAkB,aAAa,UAAU;AAG/C,MAAI,QAAQ,aAAa,kBAAkB,OAAO,SAAS,UAAU,UAAU,eAC3E;AAIJ,MAAI,CAAC,QAAQ,CAAC,gBAAgB,kBAAkB,eAC5C;AAIJ,SAAO,OAAO,KAAK,YAAY,KAAK,IAAI,IAAI,QAAQ,IAAI,eAAe,KAAK;AAG5E,MAAI,CAAC,QAAQ,gBAAgB,kBAAkB,kBAAkB,aAAa,KAAK,SAAS,eACxF;AAEJ,YAAU;AAGV,MAAI,CAAC,QAAQ,CAAC,gBAAgB,aAAa,KAAK,UAAU,gBAAgB;AACtE,eAAY,GAAG,UAAU,GAAG,KAAK,SAAS,IAAI,EAAE;AAChD;;AAEJ,cAAY;;AAEhB,QAAO,GAAG,SAAS;;AAEvB,SAAS,gBAAgB,KAAK;AAC1B,KAAI,IAAI,MAAM,2BAA2B,CACrC,QAAO;AAEX,QAAO,KAAK,UAAU,IAAI,CACrB,QAAQ,MAAM,MAAM,CACpB,QAAQ,QAAQ,KAAI,CACpB,QAAQ,YAAY,IAAI;;AAEjC,SAAgB,gBAAgB,CAAC,KAAK,QAAQ,SAAS;AACnD,SAAQ,YAAY;AACpB,KAAI,OAAO,QAAQ,SACf,OAAM,gBAAgB,IAAI;UAErB,OAAO,QAAQ,SACpB,OAAM,IAAI,QAAQ,QAAQ,KAAK,QAAQ,CAAC;AAE5C,SAAQ,YAAY,IAAI;AACxB,SAAQ,QAAQ,QAAQ,OAAO,QAAQ;AACvC,QAAO,GAAG,IAAI,IAAI"}
@@ -0,0 +1,41 @@
1
+ const require_helpers = require('./helpers.cjs');
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
4
+ function inspectAttribute([key, value], options) {
5
+ options.truncate -= 3;
6
+ if (!value) return `${options.stylize(String(key), "yellow")}`;
7
+ return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
8
+ }
9
+ function inspectNodeCollection(collection, options) {
10
+ return require_helpers.inspectList(collection, options, inspectNode, "\n");
11
+ }
12
+ function inspectNode(node, options) {
13
+ switch (node.nodeType) {
14
+ case 1: return inspectHTML(node, options);
15
+ case 3: return options.inspect(node.data, options);
16
+ default: return options.inspect(node, options);
17
+ }
18
+ }
19
+ function inspectHTML(element, options) {
20
+ const properties = element.getAttributeNames();
21
+ const name = element.tagName.toLowerCase();
22
+ const head = options.stylize(`<${name}`, "special");
23
+ const headClose = options.stylize(`>`, "special");
24
+ const tail = options.stylize(`</${name}>`, "special");
25
+ options.truncate -= name.length * 2 + 5;
26
+ let propertyContents = "";
27
+ if (properties.length > 0) {
28
+ propertyContents += " ";
29
+ propertyContents += require_helpers.inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ");
30
+ }
31
+ options.truncate -= propertyContents.length;
32
+ const truncate = options.truncate;
33
+ let children = inspectNodeCollection(element.children, options);
34
+ if (children && children.length > truncate) children = `${require_helpers.truncator}(${element.children.length})`;
35
+ return `${head}${propertyContents}${headClose}${children}${tail}`;
36
+ }
37
+
38
+ //#endregion
39
+ exports.default = inspectHTML;
40
+ exports.inspectNodeCollection = inspectNodeCollection;
41
+ //# sourceMappingURL=html.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.cjs","names":["inspectList","truncator"],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js"],"sourcesContent":["import { inspectList, truncator } from './helpers.js';\nexport function inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nexport function inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nexport function inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nexport default function inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAgB,iBAAiB,CAAC,KAAK,QAAQ,SAAS;AACpD,SAAQ,YAAY;AACpB,KAAI,CAAC,MACD,QAAO,GAAG,QAAQ,QAAQ,OAAO,IAAI,EAAE,SAAS;AAEpD,QAAO,GAAG,QAAQ,QAAQ,OAAO,IAAI,EAAE,SAAS,CAAC,GAAG,QAAQ,QAAQ,IAAI,MAAM,IAAI,SAAS;;AAE/F,SAAgB,sBAAsB,YAAY,SAAS;AACvD,QAAOA,4BAAY,YAAY,SAAS,aAAa,KAAK;;AAE9D,SAAgB,YAAY,MAAM,SAAS;AACvC,SAAQ,KAAK,UAAb;EACI,KAAK,EACD,QAAO,YAAY,MAAM,QAAQ;EACrC,KAAK,EACD,QAAO,QAAQ,QAAQ,KAAK,MAAM,QAAQ;EAC9C,QACI,QAAO,QAAQ,QAAQ,MAAM,QAAQ;;;AAIjD,SAAwB,YAAY,SAAS,SAAS;CAClD,MAAM,aAAa,QAAQ,mBAAmB;CAC9C,MAAM,OAAO,QAAQ,QAAQ,aAAa;CAC1C,MAAM,OAAO,QAAQ,QAAQ,IAAI,QAAQ,UAAU;CACnD,MAAM,YAAY,QAAQ,QAAQ,KAAK,UAAU;CACjD,MAAM,OAAO,QAAQ,QAAQ,KAAK,KAAK,IAAI,UAAU;AACrD,SAAQ,YAAY,KAAK,SAAS,IAAI;CACtC,IAAI,mBAAmB;AACvB,KAAI,WAAW,SAAS,GAAG;AACvB,sBAAoB;AACpB,sBAAoBA,4BAAY,WAAW,KAAK,QAAQ,CAAC,KAAK,QAAQ,aAAa,IAAI,CAAC,CAAC,EAAE,SAAS,kBAAkB,IAAI;;AAE9H,SAAQ,YAAY,iBAAiB;CACrC,MAAM,WAAW,QAAQ;CACzB,IAAI,WAAW,sBAAsB,QAAQ,UAAU,QAAQ;AAC/D,KAAI,YAAY,SAAS,SAAS,SAC9B,YAAW,GAAGC,0BAAU,GAAG,QAAQ,SAAS,OAAO;AAEvD,QAAO,GAAG,OAAO,mBAAmB,YAAY,WAAW"}
@@ -0,0 +1,40 @@
1
+ import { inspectList, truncator } from "./helpers.js";
2
+
3
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js
4
+ function inspectAttribute([key, value], options) {
5
+ options.truncate -= 3;
6
+ if (!value) return `${options.stylize(String(key), "yellow")}`;
7
+ return `${options.stylize(String(key), "yellow")}=${options.stylize(`"${value}"`, "string")}`;
8
+ }
9
+ function inspectNodeCollection(collection, options) {
10
+ return inspectList(collection, options, inspectNode, "\n");
11
+ }
12
+ function inspectNode(node, options) {
13
+ switch (node.nodeType) {
14
+ case 1: return inspectHTML(node, options);
15
+ case 3: return options.inspect(node.data, options);
16
+ default: return options.inspect(node, options);
17
+ }
18
+ }
19
+ function inspectHTML(element, options) {
20
+ const properties = element.getAttributeNames();
21
+ const name = element.tagName.toLowerCase();
22
+ const head = options.stylize(`<${name}`, "special");
23
+ const headClose = options.stylize(`>`, "special");
24
+ const tail = options.stylize(`</${name}>`, "special");
25
+ options.truncate -= name.length * 2 + 5;
26
+ let propertyContents = "";
27
+ if (properties.length > 0) {
28
+ propertyContents += " ";
29
+ propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, " ");
30
+ }
31
+ options.truncate -= propertyContents.length;
32
+ const truncate = options.truncate;
33
+ let children = inspectNodeCollection(element.children, options);
34
+ if (children && children.length > truncate) children = `${truncator}(${element.children.length})`;
35
+ return `${head}${propertyContents}${headClose}${children}${tail}`;
36
+ }
37
+
38
+ //#endregion
39
+ export { inspectHTML as default, inspectNodeCollection };
40
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","names":[],"sources":["../../../../../../../node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js"],"sourcesContent":["import { inspectList, truncator } from './helpers.js';\nexport function inspectAttribute([key, value], options) {\n options.truncate -= 3;\n if (!value) {\n return `${options.stylize(String(key), 'yellow')}`;\n }\n return `${options.stylize(String(key), 'yellow')}=${options.stylize(`\"${value}\"`, 'string')}`;\n}\nexport function inspectNodeCollection(collection, options) {\n return inspectList(collection, options, inspectNode, '\\n');\n}\nexport function inspectNode(node, options) {\n switch (node.nodeType) {\n case 1:\n return inspectHTML(node, options);\n case 3:\n return options.inspect(node.data, options);\n default:\n return options.inspect(node, options);\n }\n}\n// @ts-ignore (Deno doesn't have Element)\nexport default function inspectHTML(element, options) {\n const properties = element.getAttributeNames();\n const name = element.tagName.toLowerCase();\n const head = options.stylize(`<${name}`, 'special');\n const headClose = options.stylize(`>`, 'special');\n const tail = options.stylize(`</${name}>`, 'special');\n options.truncate -= name.length * 2 + 5;\n let propertyContents = '';\n if (properties.length > 0) {\n propertyContents += ' ';\n propertyContents += inspectList(properties.map((key) => [key, element.getAttribute(key)]), options, inspectAttribute, ' ');\n }\n options.truncate -= propertyContents.length;\n const truncate = options.truncate;\n let children = inspectNodeCollection(element.children, options);\n if (children && children.length > truncate) {\n children = `${truncator}(${element.children.length})`;\n }\n return `${head}${propertyContents}${headClose}${children}${tail}`;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;AACA,SAAgB,iBAAiB,CAAC,KAAK,QAA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./helpers.cjs');
2
+ const require_array = require('./array.cjs');
3
+ const require_typedarray = require('./typedarray.cjs');
4
+ const require_date = require('./date.cjs');
5
+ const require_function = require('./function.cjs');
6
+ const require_map = require('./map.cjs');
7
+ const require_number = require('./number.cjs');
8
+ const require_bigint = require('./bigint.cjs');
9
+ const require_regexp = require('./regexp.cjs');
10
+ const require_set = require('./set.cjs');
11
+ const require_string = require('./string.cjs');
12
+ const require_symbol = require('./symbol.cjs');
13
+ const require_promise = require('./promise.cjs');
14
+ const require_object = require('./object.cjs');
15
+ const require_class = require('./class.cjs');
16
+ const require_arguments = require('./arguments.cjs');
17
+ const require_error = require('./error.cjs');
18
+ const require_html = require('./html.cjs');
19
+
20
+ //#region node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js
21
+ const chaiInspect = typeof Symbol === "function" && typeof Symbol.for === "function" ? Symbol.for("chai/inspect") : "@@chai/inspect";
22
+ const nodeInspect = Symbol.for("nodejs.util.inspect.custom");
23
+ const constructorMap = /* @__PURE__ */ new WeakMap();
24
+ const stringTagMap = {};
25
+ const baseTypesMap = {
26
+ undefined: (value, options) => options.stylize("undefined", "undefined"),
27
+ null: (value, options) => options.stylize("null", "null"),
28
+ boolean: (value, options) => options.stylize(String(value), "boolean"),
29
+ Boolean: (value, options) => options.stylize(String(value), "boolean"),
30
+ number: require_number.default,
31
+ Number: require_number.default,
32
+ bigint: require_bigint.default,
33
+ BigInt: require_bigint.default,
34
+ string: require_string.default,
35
+ String: require_string.default,
36
+ function: require_function.default,
37
+ Function: require_function.default,
38
+ symbol: require_symbol.default,
39
+ Symbol: require_symbol.default,
40
+ Array: require_array.default,
41
+ Date: require_date.default,
42
+ Map: require_map.default,
43
+ Set: require_set.default,
44
+ RegExp: require_regexp.default,
45
+ Promise: require_promise.default,
46
+ WeakSet: (value, options) => options.stylize("WeakSet{…}", "special"),
47
+ WeakMap: (value, options) => options.stylize("WeakMap{…}", "special"),
48
+ Arguments: require_arguments.default,
49
+ Int8Array: require_typedarray.default,
50
+ Uint8Array: require_typedarray.default,
51
+ Uint8ClampedArray: require_typedarray.default,
52
+ Int16Array: require_typedarray.default,
53
+ Uint16Array: require_typedarray.default,
54
+ Int32Array: require_typedarray.default,
55
+ Uint32Array: require_typedarray.default,
56
+ Float32Array: require_typedarray.default,
57
+ Float64Array: require_typedarray.default,
58
+ Generator: () => "",
59
+ DataView: () => "",
60
+ ArrayBuffer: () => "",
61
+ Error: require_error.default,
62
+ HTMLCollection: require_html.inspectNodeCollection,
63
+ NodeList: require_html.inspectNodeCollection
64
+ };
65
+ const inspectCustom = (value, options, type, inspectFn) => {
66
+ if (chaiInspect in value && typeof value[chaiInspect] === "function") return value[chaiInspect](options);
67
+ if (nodeInspect in value && typeof value[nodeInspect] === "function") return value[nodeInspect](options.depth, options, inspectFn);
68
+ if ("inspect" in value && typeof value.inspect === "function") return value.inspect(options.depth, options);
69
+ if ("constructor" in value && constructorMap.has(value.constructor)) return constructorMap.get(value.constructor)(value, options);
70
+ if (stringTagMap[type]) return stringTagMap[type](value, options);
71
+ return "";
72
+ };
73
+ const toString = Object.prototype.toString;
74
+ function inspect(value, opts = {}) {
75
+ const options = require_helpers.normaliseOptions(opts, inspect);
76
+ const { customInspect } = options;
77
+ let type = value === null ? "null" : typeof value;
78
+ if (type === "object") type = toString.call(value).slice(8, -1);
79
+ if (type in baseTypesMap) return baseTypesMap[type](value, options);
80
+ if (customInspect && value) {
81
+ const output = inspectCustom(value, options, type, inspect);
82
+ if (output) {
83
+ if (typeof output === "string") return output;
84
+ return inspect(output, options);
85
+ }
86
+ }
87
+ const proto = value ? Object.getPrototypeOf(value) : false;
88
+ if (proto === Object.prototype || proto === null) return require_object.default(value, options);
89
+ if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return require_html.default(value, options);
90
+ if ("constructor" in value) {
91
+ if (value.constructor !== Object) return require_class.default(value, options);
92
+ return require_object.default(value, options);
93
+ }
94
+ if (value === Object(value)) return require_object.default(value, options);
95
+ return options.stylize(String(value), type);
96
+ }
97
+
98
+ //#endregion
99
+ exports.default = inspect;
100
+ //# sourceMappingURL=index.cjs.map