@paulirish/trace_engine 0.0.60 → 0.0.62

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 (302) hide show
  1. package/.tmp/tsbuildinfo/analyze-trace.d.mts.map +1 -1
  2. package/.tmp/tsbuildinfo/tsconfig.tsbuildinfo +1 -1
  3. package/analyze-inspector-issues.mjs +1 -1
  4. package/analyze-trace.mjs +1 -2
  5. package/core/platform/ArrayUtilities.d.ts +2 -0
  6. package/core/platform/ArrayUtilities.js +11 -1
  7. package/core/platform/ArrayUtilities.js.map +1 -1
  8. package/core/platform/HostRuntime.d.ts +4 -0
  9. package/core/platform/HostRuntime.js +25 -0
  10. package/core/platform/HostRuntime.js.map +1 -0
  11. package/core/platform/KeyboardUtilities.d.ts +6 -2
  12. package/core/platform/KeyboardUtilities.js.map +1 -1
  13. package/core/platform/StringUtilities.d.ts +2 -0
  14. package/core/platform/StringUtilities.js +64 -13
  15. package/core/platform/StringUtilities.js.map +1 -1
  16. package/core/platform/api/HostRuntime.d.ts +36 -0
  17. package/core/platform/api/HostRuntime.js +5 -0
  18. package/core/platform/api/HostRuntime.js.map +1 -0
  19. package/core/platform/api/api-tsconfig.json +43 -0
  20. package/core/platform/api/api.d.ts +2 -0
  21. package/core/platform/api/api.js +6 -0
  22. package/core/platform/api/api.js.map +1 -0
  23. package/core/platform/api/api_node_typecheck-tsconfig.json +48 -0
  24. package/core/platform/api/bundle-tsconfig.json +1 -0
  25. package/core/platform/api/devtools_entrypoint-bundle-typescript-tsconfig.json +48 -0
  26. package/core/platform/browser/HostRuntime.d.ts +2 -0
  27. package/core/platform/browser/HostRuntime.js +64 -0
  28. package/core/platform/browser/HostRuntime.js.map +1 -0
  29. package/core/platform/browser/browser-tsconfig.json +48 -0
  30. package/core/platform/browser/browser.d.ts +2 -0
  31. package/core/platform/browser/browser.js +6 -0
  32. package/core/platform/browser/browser.js.map +1 -0
  33. package/core/platform/browser/bundle-tsconfig.json +1 -0
  34. package/core/platform/browser/devtools_entrypoint-bundle-typescript-tsconfig.json +48 -0
  35. package/core/platform/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  36. package/core/platform/node/HostRuntime.d.ts +2 -0
  37. package/core/platform/node/HostRuntime.js +73 -0
  38. package/core/platform/node/HostRuntime.js.map +1 -0
  39. package/core/platform/node/bundle-tsconfig.json +1 -0
  40. package/core/platform/node/devtools_entrypoint-bundle-typescript-tsconfig.json +48 -0
  41. package/core/platform/node/node-tsconfig.json +52 -0
  42. package/core/platform/node/node.d.ts +2 -0
  43. package/core/platform/node/node.js +6 -0
  44. package/core/platform/node/node.js.map +1 -0
  45. package/core/platform/platform-tsconfig.json +17 -5
  46. package/core/platform/platform.d.ts +2 -2
  47. package/core/platform/platform.js +2 -2
  48. package/core/platform/platform.js.map +1 -1
  49. package/core/platform/platform_node_typecheck-tsconfig.json +74 -0
  50. package/generated/protocol.d.ts +1517 -592
  51. package/locales/af.json +83 -38
  52. package/locales/am.json +83 -38
  53. package/locales/ar.json +86 -41
  54. package/locales/as.json +83 -38
  55. package/locales/az.json +83 -38
  56. package/locales/be.json +81 -36
  57. package/locales/bg.json +81 -36
  58. package/locales/bn.json +83 -38
  59. package/locales/bs.json +82 -37
  60. package/locales/ca.json +81 -36
  61. package/locales/cs.json +81 -36
  62. package/locales/cy.json +83 -38
  63. package/locales/da.json +83 -38
  64. package/locales/de.json +81 -36
  65. package/locales/el.json +82 -37
  66. package/locales/en-GB.json +83 -38
  67. package/locales/en-US.json +104 -35
  68. package/locales/en-XL.json +104 -35
  69. package/locales/es-419.json +81 -36
  70. package/locales/es.json +82 -37
  71. package/locales/et.json +83 -38
  72. package/locales/eu.json +81 -36
  73. package/locales/fa.json +84 -39
  74. package/locales/fi.json +81 -36
  75. package/locales/fil.json +83 -38
  76. package/locales/fr-CA.json +82 -37
  77. package/locales/fr.json +168 -123
  78. package/locales/gl.json +82 -37
  79. package/locales/gu.json +82 -37
  80. package/locales/he.json +96 -51
  81. package/locales/hi.json +82 -37
  82. package/locales/hr.json +81 -36
  83. package/locales/hu.json +82 -37
  84. package/locales/hy.json +82 -37
  85. package/locales/id.json +83 -38
  86. package/locales/is.json +82 -37
  87. package/locales/it.json +81 -36
  88. package/locales/ja.json +81 -36
  89. package/locales/ka.json +83 -38
  90. package/locales/kk.json +81 -36
  91. package/locales/km.json +83 -38
  92. package/locales/kn.json +82 -37
  93. package/locales/ko.json +82 -37
  94. package/locales/ky.json +81 -36
  95. package/locales/lo.json +82 -37
  96. package/locales/lt.json +81 -36
  97. package/locales/lv.json +81 -36
  98. package/locales/mk.json +84 -39
  99. package/locales/ml.json +82 -37
  100. package/locales/mn.json +82 -37
  101. package/locales/mr.json +83 -38
  102. package/locales/ms.json +81 -36
  103. package/locales/my.json +82 -37
  104. package/locales/ne.json +82 -37
  105. package/locales/nl.json +82 -37
  106. package/locales/no.json +81 -36
  107. package/locales/or.json +81 -36
  108. package/locales/pa.json +81 -36
  109. package/locales/pl.json +81 -36
  110. package/locales/pt-PT.json +81 -36
  111. package/locales/pt.json +83 -38
  112. package/locales/ro.json +82 -37
  113. package/locales/ru.json +81 -36
  114. package/locales/si.json +81 -36
  115. package/locales/sk.json +81 -36
  116. package/locales/sl.json +81 -36
  117. package/locales/sq.json +82 -37
  118. package/locales/sr-Latn.json +82 -37
  119. package/locales/sr.json +82 -37
  120. package/locales/sv.json +84 -39
  121. package/locales/sw.json +83 -38
  122. package/locales/ta.json +82 -37
  123. package/locales/te.json +82 -37
  124. package/locales/th.json +82 -37
  125. package/locales/tr.json +81 -36
  126. package/locales/uk.json +81 -36
  127. package/locales/ur.json +82 -37
  128. package/locales/uz.json +82 -37
  129. package/locales/vi.json +83 -38
  130. package/locales/zh-HK.json +81 -36
  131. package/locales/zh-TW.json +84 -39
  132. package/locales/zh.json +84 -39
  133. package/locales/zu.json +82 -37
  134. package/models/cpu_profile/CPUProfileDataModel.d.ts +9 -0
  135. package/models/cpu_profile/CPUProfileDataModel.js +9 -7
  136. package/models/cpu_profile/CPUProfileDataModel.js.map +1 -1
  137. package/models/cpu_profile/ProfileTreeModel.d.ts +3 -2
  138. package/models/cpu_profile/ProfileTreeModel.js +6 -7
  139. package/models/cpu_profile/ProfileTreeModel.js.map +1 -1
  140. package/models/cpu_profile/cpu_profile-tsconfig.json +4 -3
  141. package/models/cpu_profile/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  142. package/models/trace/EntityMapper.d.ts +1 -0
  143. package/models/trace/EntityMapper.js +10 -0
  144. package/models/trace/EntityMapper.js.map +1 -1
  145. package/models/trace/EventsSerializer.js +10 -2
  146. package/models/trace/EventsSerializer.js.map +1 -1
  147. package/models/trace/LanternComputationData.d.ts +1 -1
  148. package/models/trace/LanternComputationData.js +3 -8
  149. package/models/trace/LanternComputationData.js.map +1 -1
  150. package/models/trace/ModelImpl.d.ts +1 -0
  151. package/models/trace/ModelImpl.js +9 -6
  152. package/models/trace/ModelImpl.js.map +1 -1
  153. package/models/trace/Processor.js +23 -23
  154. package/models/trace/Processor.js.map +1 -1
  155. package/models/trace/Styles.js +13 -5
  156. package/models/trace/Styles.js.map +1 -1
  157. package/models/trace/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  158. package/models/trace/extras/Initiators.d.ts +12 -0
  159. package/models/trace/extras/Initiators.js +47 -0
  160. package/models/trace/extras/Initiators.js.map +1 -0
  161. package/models/trace/extras/TraceTree.js +13 -5
  162. package/models/trace/extras/TraceTree.js.map +1 -1
  163. package/models/trace/extras/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  164. package/models/trace/extras/extras-tsconfig.json +11 -3
  165. package/models/trace/extras/extras.d.ts +0 -3979
  166. package/models/trace/extras/extras.js +0 -3979
  167. package/models/trace/extras/extras.js.map +1 -1
  168. package/models/trace/handlers/LargestImagePaintHandler.js +2 -2
  169. package/models/trace/handlers/LargestImagePaintHandler.js.map +1 -1
  170. package/models/trace/handlers/LayoutShiftsHandler.js +1 -1
  171. package/models/trace/handlers/LayoutShiftsHandler.js.map +1 -1
  172. package/models/trace/handlers/MetaHandler.d.ts +12 -1
  173. package/models/trace/handlers/MetaHandler.js +10 -1
  174. package/models/trace/handlers/MetaHandler.js.map +1 -1
  175. package/models/trace/handlers/NetworkRequestsHandler.d.ts +8 -1
  176. package/models/trace/handlers/NetworkRequestsHandler.js +22 -4
  177. package/models/trace/handlers/NetworkRequestsHandler.js.map +1 -1
  178. package/models/trace/handlers/PageLoadMetricsHandler.d.ts +13 -3
  179. package/models/trace/handlers/PageLoadMetricsHandler.js +71 -27
  180. package/models/trace/handlers/PageLoadMetricsHandler.js.map +1 -1
  181. package/models/trace/handlers/SamplesHandler.js +59 -6
  182. package/models/trace/handlers/SamplesHandler.js.map +1 -1
  183. package/models/trace/handlers/ScriptsHandler.js +24 -0
  184. package/models/trace/handlers/ScriptsHandler.js.map +1 -1
  185. package/models/trace/handlers/UserTimingsHandler.d.ts +1 -1
  186. package/models/trace/handlers/UserTimingsHandler.js +1 -1
  187. package/models/trace/handlers/UserTimingsHandler.js.map +1 -1
  188. package/models/trace/handlers/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  189. package/models/trace/handlers/handlers-tsconfig.json +13 -3
  190. package/models/trace/helpers/Network.js +1 -1
  191. package/models/trace/helpers/Network.js.map +1 -1
  192. package/models/trace/helpers/SamplesIntegrator.js +1 -8
  193. package/models/trace/helpers/SamplesIntegrator.js.map +1 -1
  194. package/models/trace/helpers/Timing.d.ts +1 -1
  195. package/models/trace/helpers/Timing.js +9 -2
  196. package/models/trace/helpers/Timing.js.map +1 -1
  197. package/models/trace/helpers/Trace.d.ts +1 -0
  198. package/models/trace/helpers/Trace.js +12 -5
  199. package/models/trace/helpers/Trace.js.map +1 -1
  200. package/models/trace/helpers/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  201. package/models/trace/helpers/helpers-tsconfig.json +7 -3
  202. package/models/trace/insights/CLSCulprits.d.ts +1 -1
  203. package/models/trace/insights/CLSCulprits.js +2 -1
  204. package/models/trace/insights/CLSCulprits.js.map +1 -1
  205. package/models/trace/insights/Cache.d.ts +1 -1
  206. package/models/trace/insights/Cache.js +2 -1
  207. package/models/trace/insights/Cache.js.map +1 -1
  208. package/models/trace/insights/CharacterSet.d.ts +49 -0
  209. package/models/trace/insights/CharacterSet.js +132 -0
  210. package/models/trace/insights/CharacterSet.js.map +1 -0
  211. package/models/trace/insights/Common.d.ts +2 -2
  212. package/models/trace/insights/Common.js +1 -6
  213. package/models/trace/insights/Common.js.map +1 -1
  214. package/models/trace/insights/DOMSize.d.ts +1 -1
  215. package/models/trace/insights/DOMSize.js +2 -1
  216. package/models/trace/insights/DOMSize.js.map +1 -1
  217. package/models/trace/insights/DocumentLatency.d.ts +1 -1
  218. package/models/trace/insights/DocumentLatency.js +2 -1
  219. package/models/trace/insights/DocumentLatency.js.map +1 -1
  220. package/models/trace/insights/DuplicatedJavaScript.d.ts +1 -1
  221. package/models/trace/insights/DuplicatedJavaScript.js +2 -1
  222. package/models/trace/insights/DuplicatedJavaScript.js.map +1 -1
  223. package/models/trace/insights/FontDisplay.d.ts +1 -1
  224. package/models/trace/insights/FontDisplay.js +2 -1
  225. package/models/trace/insights/FontDisplay.js.map +1 -1
  226. package/models/trace/insights/ForcedReflow.d.ts +2 -2
  227. package/models/trace/insights/ForcedReflow.js +3 -2
  228. package/models/trace/insights/ForcedReflow.js.map +1 -1
  229. package/models/trace/insights/INPBreakdown.d.ts +1 -1
  230. package/models/trace/insights/INPBreakdown.js +2 -1
  231. package/models/trace/insights/INPBreakdown.js.map +1 -1
  232. package/models/trace/insights/ImageDelivery.d.ts +1 -1
  233. package/models/trace/insights/ImageDelivery.js +2 -1
  234. package/models/trace/insights/ImageDelivery.js.map +1 -1
  235. package/models/trace/insights/LCPBreakdown.d.ts +2 -2
  236. package/models/trace/insights/LCPBreakdown.js +4 -3
  237. package/models/trace/insights/LCPBreakdown.js.map +1 -1
  238. package/models/trace/insights/LCPDiscovery.d.ts +8 -4
  239. package/models/trace/insights/LCPDiscovery.js +18 -11
  240. package/models/trace/insights/LCPDiscovery.js.map +1 -1
  241. package/models/trace/insights/LegacyJavaScript.d.ts +1 -1
  242. package/models/trace/insights/LegacyJavaScript.js +2 -1
  243. package/models/trace/insights/LegacyJavaScript.js.map +1 -1
  244. package/models/trace/insights/Models.d.ts +1 -0
  245. package/models/trace/insights/Models.js +1 -0
  246. package/models/trace/insights/Models.js.map +1 -1
  247. package/models/trace/insights/ModernHTTP.d.ts +1 -1
  248. package/models/trace/insights/ModernHTTP.js +2 -1
  249. package/models/trace/insights/ModernHTTP.js.map +1 -1
  250. package/models/trace/insights/NetworkDependencyTree.d.ts +1 -1
  251. package/models/trace/insights/NetworkDependencyTree.js +6 -4
  252. package/models/trace/insights/NetworkDependencyTree.js.map +1 -1
  253. package/models/trace/insights/RenderBlocking.d.ts +2 -2
  254. package/models/trace/insights/RenderBlocking.js +8 -7
  255. package/models/trace/insights/RenderBlocking.js.map +1 -1
  256. package/models/trace/insights/SlowCSSSelector.d.ts +1 -1
  257. package/models/trace/insights/SlowCSSSelector.js +2 -1
  258. package/models/trace/insights/SlowCSSSelector.js.map +1 -1
  259. package/models/trace/insights/ThirdParties.js +2 -1
  260. package/models/trace/insights/ThirdParties.js.map +1 -1
  261. package/models/trace/insights/Viewport.d.ts +1 -1
  262. package/models/trace/insights/Viewport.js +2 -1
  263. package/models/trace/insights/Viewport.js.map +1 -1
  264. package/models/trace/insights/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  265. package/models/trace/insights/insights-tsconfig.json +26 -3
  266. package/models/trace/insights/types.d.ts +17 -6
  267. package/models/trace/insights/types.js +1 -0
  268. package/models/trace/insights/types.js.map +1 -1
  269. package/models/trace/lantern/core/core-tsconfig.json +4 -3
  270. package/models/trace/lantern/core/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  271. package/models/trace/lantern/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  272. package/models/trace/lantern/graph/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  273. package/models/trace/lantern/graph/graph-tsconfig.json +4 -3
  274. package/models/trace/lantern/lantern-tsconfig.json +4 -3
  275. package/models/trace/lantern/metrics/FirstContentfulPaint.js +6 -6
  276. package/models/trace/lantern/metrics/FirstContentfulPaint.js.map +1 -1
  277. package/models/trace/lantern/metrics/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  278. package/models/trace/lantern/metrics/metrics-tsconfig.json +4 -3
  279. package/models/trace/lantern/simulation/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  280. package/models/trace/lantern/simulation/simulation-tsconfig.json +4 -3
  281. package/models/trace/lantern/types/Lantern.d.ts +7 -7
  282. package/models/trace/lantern/types/Lantern.js.map +1 -1
  283. package/models/trace/lantern/types/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  284. package/models/trace/lantern/types/types-tsconfig.json +4 -3
  285. package/models/trace/trace-tsconfig.json +7 -3
  286. package/models/trace/types/Configuration.d.ts +1 -4
  287. package/models/trace/types/Configuration.js +0 -1
  288. package/models/trace/types/Configuration.js.map +1 -1
  289. package/models/trace/types/File.d.ts +8 -0
  290. package/models/trace/types/File.js.map +1 -1
  291. package/models/trace/types/TraceEvents.d.ts +97 -15
  292. package/models/trace/types/TraceEvents.js +44 -11
  293. package/models/trace/types/TraceEvents.js.map +1 -1
  294. package/models/trace/types/devtools_entrypoint-bundle-typescript-tsconfig.json +4 -3
  295. package/models/trace/types/types-tsconfig.json +10 -3
  296. package/package.json +1 -1
  297. package/test/test-trace-engine.mjs +8 -9
  298. package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts +0 -4
  299. package/.tmp/tsbuildinfo/models/trace/extras/polyfills.d.ts.map +0 -1
  300. package/core/platform/DOMUtilities.d.ts +0 -16
  301. package/core/platform/DOMUtilities.js +0 -123
  302. package/core/platform/DOMUtilities.js.map +0 -1
@@ -1,5 +1,4 @@
1
1
  // @ts-nocheck
2
- /* eslint-disable */
3
2
 
4
3
  // Copyright 2025 The Chromium Authors. All rights reserved.
5
4
  // Use of this source code is governed by a BSD-style license that can be
@@ -11,3981 +10,3 @@ export * as StackTraceForEvent from './StackTraceForEvent.js';
11
10
  export * as ThirdParties from './ThirdParties.js';
12
11
  export * as TraceFilter from './TraceFilter.js';
13
12
  export * as TraceTree from './TraceTree.js';
14
-
15
-
16
- // The rest of this file is a polyfill :)
17
- // Remove once Lighthouse drops Node 18 support.
18
-
19
- // npx esbuild tmp.js --bundle
20
- //
21
- // where tmp.js is:
22
- //
23
- // import 'es-iterator-helpers/Iterator.prototype.find/auto';
24
- // import 'es-iterator-helpers/Iterator.prototype.flatMap/auto';
25
- // import 'es-iterator-helpers/Iterator.prototype.map/auto';
26
- // import 'es-iterator-helpers/Iterator.prototype.reduce/auto';
27
- // import 'es-iterator-helpers/Iterator.prototype.toArray/auto';
28
-
29
- "use strict";
30
- (() => {
31
- var __getOwnPropNames = Object.getOwnPropertyNames;
32
- var __commonJS = (cb, mod) => function __require() {
33
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
34
- };
35
-
36
- // node_modules/object-keys/isArguments.js
37
- var require_isArguments = __commonJS({
38
- "node_modules/object-keys/isArguments.js"(exports, module) {
39
- "use strict";
40
- var toStr = Object.prototype.toString;
41
- module.exports = function isArguments(value) {
42
- var str = toStr.call(value);
43
- var isArgs = str === "[object Arguments]";
44
- if (!isArgs) {
45
- isArgs = str !== "[object Array]" && value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && toStr.call(value.callee) === "[object Function]";
46
- }
47
- return isArgs;
48
- };
49
- }
50
- });
51
-
52
- // node_modules/object-keys/implementation.js
53
- var require_implementation = __commonJS({
54
- "node_modules/object-keys/implementation.js"(exports, module) {
55
- "use strict";
56
- var keysShim;
57
- if (!Object.keys) {
58
- has = Object.prototype.hasOwnProperty;
59
- toStr = Object.prototype.toString;
60
- isArgs = require_isArguments();
61
- isEnumerable = Object.prototype.propertyIsEnumerable;
62
- hasDontEnumBug = !isEnumerable.call({ toString: null }, "toString");
63
- hasProtoEnumBug = isEnumerable.call(function() {
64
- }, "prototype");
65
- dontEnums = [
66
- "toString",
67
- "toLocaleString",
68
- "valueOf",
69
- "hasOwnProperty",
70
- "isPrototypeOf",
71
- "propertyIsEnumerable",
72
- "constructor"
73
- ];
74
- equalsConstructorPrototype = function(o) {
75
- var ctor = o.constructor;
76
- return ctor && ctor.prototype === o;
77
- };
78
- excludedKeys = {
79
- $applicationCache: true,
80
- $console: true,
81
- $external: true,
82
- $frame: true,
83
- $frameElement: true,
84
- $frames: true,
85
- $innerHeight: true,
86
- $innerWidth: true,
87
- $onmozfullscreenchange: true,
88
- $onmozfullscreenerror: true,
89
- $outerHeight: true,
90
- $outerWidth: true,
91
- $pageXOffset: true,
92
- $pageYOffset: true,
93
- $parent: true,
94
- $scrollLeft: true,
95
- $scrollTop: true,
96
- $scrollX: true,
97
- $scrollY: true,
98
- $self: true,
99
- $webkitIndexedDB: true,
100
- $webkitStorageInfo: true,
101
- $window: true
102
- };
103
- hasAutomationEqualityBug = function() {
104
- if (typeof window === "undefined") {
105
- return false;
106
- }
107
- for (var k in window) {
108
- try {
109
- if (!excludedKeys["$" + k] && has.call(window, k) && window[k] !== null && typeof window[k] === "object") {
110
- try {
111
- equalsConstructorPrototype(window[k]);
112
- } catch (e) {
113
- return true;
114
- }
115
- }
116
- } catch (e) {
117
- return true;
118
- }
119
- }
120
- return false;
121
- }();
122
- equalsConstructorPrototypeIfNotBuggy = function(o) {
123
- if (typeof window === "undefined" || !hasAutomationEqualityBug) {
124
- return equalsConstructorPrototype(o);
125
- }
126
- try {
127
- return equalsConstructorPrototype(o);
128
- } catch (e) {
129
- return false;
130
- }
131
- };
132
- keysShim = function keys(object) {
133
- var isObject = object !== null && typeof object === "object";
134
- var isFunction = toStr.call(object) === "[object Function]";
135
- var isArguments = isArgs(object);
136
- var isString = isObject && toStr.call(object) === "[object String]";
137
- var theKeys = [];
138
- if (!isObject && !isFunction && !isArguments) {
139
- throw new TypeError("Object.keys called on a non-object");
140
- }
141
- var skipProto = hasProtoEnumBug && isFunction;
142
- if (isString && object.length > 0 && !has.call(object, 0)) {
143
- for (var i = 0; i < object.length; ++i) {
144
- theKeys.push(String(i));
145
- }
146
- }
147
- if (isArguments && object.length > 0) {
148
- for (var j = 0; j < object.length; ++j) {
149
- theKeys.push(String(j));
150
- }
151
- } else {
152
- for (var name in object) {
153
- if (!(skipProto && name === "prototype") && has.call(object, name)) {
154
- theKeys.push(String(name));
155
- }
156
- }
157
- }
158
- if (hasDontEnumBug) {
159
- var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
160
- for (var k = 0; k < dontEnums.length; ++k) {
161
- if (!(skipConstructor && dontEnums[k] === "constructor") && has.call(object, dontEnums[k])) {
162
- theKeys.push(dontEnums[k]);
163
- }
164
- }
165
- }
166
- return theKeys;
167
- };
168
- }
169
- var has;
170
- var toStr;
171
- var isArgs;
172
- var isEnumerable;
173
- var hasDontEnumBug;
174
- var hasProtoEnumBug;
175
- var dontEnums;
176
- var equalsConstructorPrototype;
177
- var excludedKeys;
178
- var hasAutomationEqualityBug;
179
- var equalsConstructorPrototypeIfNotBuggy;
180
- module.exports = keysShim;
181
- }
182
- });
183
-
184
- // node_modules/object-keys/index.js
185
- var require_object_keys = __commonJS({
186
- "node_modules/object-keys/index.js"(exports, module) {
187
- "use strict";
188
- var slice = Array.prototype.slice;
189
- var isArgs = require_isArguments();
190
- var origKeys = Object.keys;
191
- var keysShim = origKeys ? function keys(o) {
192
- return origKeys(o);
193
- } : require_implementation();
194
- var originalKeys = Object.keys;
195
- keysShim.shim = function shimObjectKeys() {
196
- if (Object.keys) {
197
- var keysWorksWithArguments = function() {
198
- var args = Object.keys(arguments);
199
- return args && args.length === arguments.length;
200
- }(1, 2);
201
- if (!keysWorksWithArguments) {
202
- Object.keys = function keys(object) {
203
- if (isArgs(object)) {
204
- return originalKeys(slice.call(object));
205
- }
206
- return originalKeys(object);
207
- };
208
- }
209
- } else {
210
- Object.keys = keysShim;
211
- }
212
- return Object.keys || keysShim;
213
- };
214
- module.exports = keysShim;
215
- }
216
- });
217
-
218
- // node_modules/es-define-property/index.js
219
- var require_es_define_property = __commonJS({
220
- "node_modules/es-define-property/index.js"(exports, module) {
221
- "use strict";
222
- var $defineProperty = Object.defineProperty || false;
223
- if ($defineProperty) {
224
- try {
225
- $defineProperty({}, "a", { value: 1 });
226
- } catch (e) {
227
- $defineProperty = false;
228
- }
229
- }
230
- module.exports = $defineProperty;
231
- }
232
- });
233
-
234
- // node_modules/es-errors/syntax.js
235
- var require_syntax = __commonJS({
236
- "node_modules/es-errors/syntax.js"(exports, module) {
237
- "use strict";
238
- module.exports = SyntaxError;
239
- }
240
- });
241
-
242
- // node_modules/es-errors/type.js
243
- var require_type = __commonJS({
244
- "node_modules/es-errors/type.js"(exports, module) {
245
- "use strict";
246
- module.exports = TypeError;
247
- }
248
- });
249
-
250
- // node_modules/gopd/gOPD.js
251
- var require_gOPD = __commonJS({
252
- "node_modules/gopd/gOPD.js"(exports, module) {
253
- "use strict";
254
- module.exports = Object.getOwnPropertyDescriptor;
255
- }
256
- });
257
-
258
- // node_modules/gopd/index.js
259
- var require_gopd = __commonJS({
260
- "node_modules/gopd/index.js"(exports, module) {
261
- "use strict";
262
- var $gOPD = require_gOPD();
263
- if ($gOPD) {
264
- try {
265
- $gOPD([], "length");
266
- } catch (e) {
267
- $gOPD = null;
268
- }
269
- }
270
- module.exports = $gOPD;
271
- }
272
- });
273
-
274
- // node_modules/define-data-property/index.js
275
- var require_define_data_property = __commonJS({
276
- "node_modules/define-data-property/index.js"(exports, module) {
277
- "use strict";
278
- var $defineProperty = require_es_define_property();
279
- var $SyntaxError = require_syntax();
280
- var $TypeError = require_type();
281
- var gopd = require_gopd();
282
- module.exports = function defineDataProperty(obj, property, value) {
283
- if (!obj || typeof obj !== "object" && typeof obj !== "function") {
284
- throw new $TypeError("`obj` must be an object or a function`");
285
- }
286
- if (typeof property !== "string" && typeof property !== "symbol") {
287
- throw new $TypeError("`property` must be a string or a symbol`");
288
- }
289
- if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
290
- throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
291
- }
292
- if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
293
- throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
294
- }
295
- if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
296
- throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
297
- }
298
- if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
299
- throw new $TypeError("`loose`, if provided, must be a boolean");
300
- }
301
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
302
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
303
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
304
- var loose = arguments.length > 6 ? arguments[6] : false;
305
- var desc = !!gopd && gopd(obj, property);
306
- if ($defineProperty) {
307
- $defineProperty(obj, property, {
308
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
309
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
310
- value,
311
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
312
- });
313
- } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
314
- obj[property] = value;
315
- } else {
316
- throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
317
- }
318
- };
319
- }
320
- });
321
-
322
- // node_modules/has-property-descriptors/index.js
323
- var require_has_property_descriptors = __commonJS({
324
- "node_modules/has-property-descriptors/index.js"(exports, module) {
325
- "use strict";
326
- var $defineProperty = require_es_define_property();
327
- var hasPropertyDescriptors = function hasPropertyDescriptors2() {
328
- return !!$defineProperty;
329
- };
330
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
331
- if (!$defineProperty) {
332
- return null;
333
- }
334
- try {
335
- return $defineProperty([], "length", { value: 1 }).length !== 1;
336
- } catch (e) {
337
- return true;
338
- }
339
- };
340
- module.exports = hasPropertyDescriptors;
341
- }
342
- });
343
-
344
- // node_modules/define-properties/index.js
345
- var require_define_properties = __commonJS({
346
- "node_modules/define-properties/index.js"(exports, module) {
347
- "use strict";
348
- var keys = require_object_keys();
349
- var hasSymbols = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
350
- var toStr = Object.prototype.toString;
351
- var concat = Array.prototype.concat;
352
- var defineDataProperty = require_define_data_property();
353
- var isFunction = function(fn) {
354
- return typeof fn === "function" && toStr.call(fn) === "[object Function]";
355
- };
356
- var supportsDescriptors = require_has_property_descriptors()();
357
- var defineProperty = function(object, name, value, predicate) {
358
- if (name in object) {
359
- if (predicate === true) {
360
- if (object[name] === value) {
361
- return;
362
- }
363
- } else if (!isFunction(predicate) || !predicate()) {
364
- return;
365
- }
366
- }
367
- if (supportsDescriptors) {
368
- defineDataProperty(object, name, value, true);
369
- } else {
370
- defineDataProperty(object, name, value);
371
- }
372
- };
373
- var defineProperties = function(object, map) {
374
- var predicates = arguments.length > 2 ? arguments[2] : {};
375
- var props = keys(map);
376
- if (hasSymbols) {
377
- props = concat.call(props, Object.getOwnPropertySymbols(map));
378
- }
379
- for (var i = 0; i < props.length; i += 1) {
380
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
381
- }
382
- };
383
- defineProperties.supportsDescriptors = !!supportsDescriptors;
384
- module.exports = defineProperties;
385
- }
386
- });
387
-
388
- // node_modules/es-object-atoms/index.js
389
- var require_es_object_atoms = __commonJS({
390
- "node_modules/es-object-atoms/index.js"(exports, module) {
391
- "use strict";
392
- module.exports = Object;
393
- }
394
- });
395
-
396
- // node_modules/es-errors/index.js
397
- var require_es_errors = __commonJS({
398
- "node_modules/es-errors/index.js"(exports, module) {
399
- "use strict";
400
- module.exports = Error;
401
- }
402
- });
403
-
404
- // node_modules/es-errors/eval.js
405
- var require_eval = __commonJS({
406
- "node_modules/es-errors/eval.js"(exports, module) {
407
- "use strict";
408
- module.exports = EvalError;
409
- }
410
- });
411
-
412
- // node_modules/es-errors/range.js
413
- var require_range = __commonJS({
414
- "node_modules/es-errors/range.js"(exports, module) {
415
- "use strict";
416
- module.exports = RangeError;
417
- }
418
- });
419
-
420
- // node_modules/es-errors/ref.js
421
- var require_ref = __commonJS({
422
- "node_modules/es-errors/ref.js"(exports, module) {
423
- "use strict";
424
- module.exports = ReferenceError;
425
- }
426
- });
427
-
428
- // node_modules/es-errors/uri.js
429
- var require_uri = __commonJS({
430
- "node_modules/es-errors/uri.js"(exports, module) {
431
- "use strict";
432
- module.exports = URIError;
433
- }
434
- });
435
-
436
- // node_modules/math-intrinsics/abs.js
437
- var require_abs = __commonJS({
438
- "node_modules/math-intrinsics/abs.js"(exports, module) {
439
- "use strict";
440
- module.exports = Math.abs;
441
- }
442
- });
443
-
444
- // node_modules/math-intrinsics/floor.js
445
- var require_floor = __commonJS({
446
- "node_modules/math-intrinsics/floor.js"(exports, module) {
447
- "use strict";
448
- module.exports = Math.floor;
449
- }
450
- });
451
-
452
- // node_modules/math-intrinsics/max.js
453
- var require_max = __commonJS({
454
- "node_modules/math-intrinsics/max.js"(exports, module) {
455
- "use strict";
456
- module.exports = Math.max;
457
- }
458
- });
459
-
460
- // node_modules/math-intrinsics/min.js
461
- var require_min = __commonJS({
462
- "node_modules/math-intrinsics/min.js"(exports, module) {
463
- "use strict";
464
- module.exports = Math.min;
465
- }
466
- });
467
-
468
- // node_modules/math-intrinsics/pow.js
469
- var require_pow = __commonJS({
470
- "node_modules/math-intrinsics/pow.js"(exports, module) {
471
- "use strict";
472
- module.exports = Math.pow;
473
- }
474
- });
475
-
476
- // node_modules/math-intrinsics/round.js
477
- var require_round = __commonJS({
478
- "node_modules/math-intrinsics/round.js"(exports, module) {
479
- "use strict";
480
- module.exports = Math.round;
481
- }
482
- });
483
-
484
- // node_modules/math-intrinsics/isNaN.js
485
- var require_isNaN = __commonJS({
486
- "node_modules/math-intrinsics/isNaN.js"(exports, module) {
487
- "use strict";
488
- module.exports = Number.isNaN || function isNaN2(a) {
489
- return a !== a;
490
- };
491
- }
492
- });
493
-
494
- // node_modules/math-intrinsics/sign.js
495
- var require_sign = __commonJS({
496
- "node_modules/math-intrinsics/sign.js"(exports, module) {
497
- "use strict";
498
- var $isNaN = require_isNaN();
499
- module.exports = function sign(number) {
500
- if ($isNaN(number) || number === 0) {
501
- return number;
502
- }
503
- return number < 0 ? -1 : 1;
504
- };
505
- }
506
- });
507
-
508
- // node_modules/has-symbols/shams.js
509
- var require_shams = __commonJS({
510
- "node_modules/has-symbols/shams.js"(exports, module) {
511
- "use strict";
512
- module.exports = function hasSymbols() {
513
- if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
514
- return false;
515
- }
516
- if (typeof Symbol.iterator === "symbol") {
517
- return true;
518
- }
519
- var obj = {};
520
- var sym = Symbol("test");
521
- var symObj = Object(sym);
522
- if (typeof sym === "string") {
523
- return false;
524
- }
525
- if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
526
- return false;
527
- }
528
- if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
529
- return false;
530
- }
531
- var symVal = 42;
532
- obj[sym] = symVal;
533
- for (var _ in obj) {
534
- return false;
535
- }
536
- if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
537
- return false;
538
- }
539
- if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
540
- return false;
541
- }
542
- var syms = Object.getOwnPropertySymbols(obj);
543
- if (syms.length !== 1 || syms[0] !== sym) {
544
- return false;
545
- }
546
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
547
- return false;
548
- }
549
- if (typeof Object.getOwnPropertyDescriptor === "function") {
550
- var descriptor = (
551
- /** @type {PropertyDescriptor} */
552
- Object.getOwnPropertyDescriptor(obj, sym)
553
- );
554
- if (descriptor.value !== symVal || descriptor.enumerable !== true) {
555
- return false;
556
- }
557
- }
558
- return true;
559
- };
560
- }
561
- });
562
-
563
- // node_modules/has-symbols/index.js
564
- var require_has_symbols = __commonJS({
565
- "node_modules/has-symbols/index.js"(exports, module) {
566
- "use strict";
567
- var origSymbol = typeof Symbol !== "undefined" && Symbol;
568
- var hasSymbolSham = require_shams();
569
- module.exports = function hasNativeSymbols() {
570
- if (typeof origSymbol !== "function") {
571
- return false;
572
- }
573
- if (typeof Symbol !== "function") {
574
- return false;
575
- }
576
- if (typeof origSymbol("foo") !== "symbol") {
577
- return false;
578
- }
579
- if (typeof Symbol("bar") !== "symbol") {
580
- return false;
581
- }
582
- return hasSymbolSham();
583
- };
584
- }
585
- });
586
-
587
- // node_modules/get-proto/Reflect.getPrototypeOf.js
588
- var require_Reflect_getPrototypeOf = __commonJS({
589
- "node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
590
- "use strict";
591
- module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
592
- }
593
- });
594
-
595
- // node_modules/get-proto/Object.getPrototypeOf.js
596
- var require_Object_getPrototypeOf = __commonJS({
597
- "node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
598
- "use strict";
599
- var $Object = require_es_object_atoms();
600
- module.exports = $Object.getPrototypeOf || null;
601
- }
602
- });
603
-
604
- // node_modules/function-bind/implementation.js
605
- var require_implementation2 = __commonJS({
606
- "node_modules/function-bind/implementation.js"(exports, module) {
607
- "use strict";
608
- var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
609
- var toStr = Object.prototype.toString;
610
- var max = Math.max;
611
- var funcType = "[object Function]";
612
- var concatty = function concatty2(a, b) {
613
- var arr = [];
614
- for (var i = 0; i < a.length; i += 1) {
615
- arr[i] = a[i];
616
- }
617
- for (var j = 0; j < b.length; j += 1) {
618
- arr[j + a.length] = b[j];
619
- }
620
- return arr;
621
- };
622
- var slicy = function slicy2(arrLike, offset) {
623
- var arr = [];
624
- for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
625
- arr[j] = arrLike[i];
626
- }
627
- return arr;
628
- };
629
- var joiny = function(arr, joiner) {
630
- var str = "";
631
- for (var i = 0; i < arr.length; i += 1) {
632
- str += arr[i];
633
- if (i + 1 < arr.length) {
634
- str += joiner;
635
- }
636
- }
637
- return str;
638
- };
639
- module.exports = function bind(that) {
640
- var target = this;
641
- if (typeof target !== "function" || toStr.apply(target) !== funcType) {
642
- throw new TypeError(ERROR_MESSAGE + target);
643
- }
644
- var args = slicy(arguments, 1);
645
- var bound;
646
- var binder = function() {
647
- if (this instanceof bound) {
648
- var result = target.apply(
649
- this,
650
- concatty(args, arguments)
651
- );
652
- if (Object(result) === result) {
653
- return result;
654
- }
655
- return this;
656
- }
657
- return target.apply(
658
- that,
659
- concatty(args, arguments)
660
- );
661
- };
662
- var boundLength = max(0, target.length - args.length);
663
- var boundArgs = [];
664
- for (var i = 0; i < boundLength; i++) {
665
- boundArgs[i] = "$" + i;
666
- }
667
- bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
668
- if (target.prototype) {
669
- var Empty = function Empty2() {
670
- };
671
- Empty.prototype = target.prototype;
672
- bound.prototype = new Empty();
673
- Empty.prototype = null;
674
- }
675
- return bound;
676
- };
677
- }
678
- });
679
-
680
- // node_modules/function-bind/index.js
681
- var require_function_bind = __commonJS({
682
- "node_modules/function-bind/index.js"(exports, module) {
683
- "use strict";
684
- var implementation = require_implementation2();
685
- module.exports = Function.prototype.bind || implementation;
686
- }
687
- });
688
-
689
- // node_modules/call-bind-apply-helpers/functionCall.js
690
- var require_functionCall = __commonJS({
691
- "node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
692
- "use strict";
693
- module.exports = Function.prototype.call;
694
- }
695
- });
696
-
697
- // node_modules/call-bind-apply-helpers/functionApply.js
698
- var require_functionApply = __commonJS({
699
- "node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
700
- "use strict";
701
- module.exports = Function.prototype.apply;
702
- }
703
- });
704
-
705
- // node_modules/call-bind-apply-helpers/reflectApply.js
706
- var require_reflectApply = __commonJS({
707
- "node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
708
- "use strict";
709
- module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
710
- }
711
- });
712
-
713
- // node_modules/call-bind-apply-helpers/actualApply.js
714
- var require_actualApply = __commonJS({
715
- "node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
716
- "use strict";
717
- var bind = require_function_bind();
718
- var $apply = require_functionApply();
719
- var $call = require_functionCall();
720
- var $reflectApply = require_reflectApply();
721
- module.exports = $reflectApply || bind.call($call, $apply);
722
- }
723
- });
724
-
725
- // node_modules/call-bind-apply-helpers/index.js
726
- var require_call_bind_apply_helpers = __commonJS({
727
- "node_modules/call-bind-apply-helpers/index.js"(exports, module) {
728
- "use strict";
729
- var bind = require_function_bind();
730
- var $TypeError = require_type();
731
- var $call = require_functionCall();
732
- var $actualApply = require_actualApply();
733
- module.exports = function callBindBasic(args) {
734
- if (args.length < 1 || typeof args[0] !== "function") {
735
- throw new $TypeError("a function is required");
736
- }
737
- return $actualApply(bind, $call, args);
738
- };
739
- }
740
- });
741
-
742
- // node_modules/dunder-proto/get.js
743
- var require_get = __commonJS({
744
- "node_modules/dunder-proto/get.js"(exports, module) {
745
- "use strict";
746
- var callBind = require_call_bind_apply_helpers();
747
- var gOPD = require_gopd();
748
- var hasProtoAccessor;
749
- try {
750
- hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
751
- [].__proto__ === Array.prototype;
752
- } catch (e) {
753
- if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
754
- throw e;
755
- }
756
- }
757
- var desc = !!hasProtoAccessor && gOPD && gOPD(
758
- Object.prototype,
759
- /** @type {keyof typeof Object.prototype} */
760
- "__proto__"
761
- );
762
- var $Object = Object;
763
- var $getPrototypeOf = $Object.getPrototypeOf;
764
- module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
765
- /** @type {import('./get')} */
766
- function getDunder(value) {
767
- return $getPrototypeOf(value == null ? value : $Object(value));
768
- }
769
- ) : false;
770
- }
771
- });
772
-
773
- // node_modules/get-proto/index.js
774
- var require_get_proto = __commonJS({
775
- "node_modules/get-proto/index.js"(exports, module) {
776
- "use strict";
777
- var reflectGetProto = require_Reflect_getPrototypeOf();
778
- var originalGetProto = require_Object_getPrototypeOf();
779
- var getDunderProto = require_get();
780
- module.exports = reflectGetProto ? function getProto(O) {
781
- return reflectGetProto(O);
782
- } : originalGetProto ? function getProto(O) {
783
- if (!O || typeof O !== "object" && typeof O !== "function") {
784
- throw new TypeError("getProto: not an object");
785
- }
786
- return originalGetProto(O);
787
- } : getDunderProto ? function getProto(O) {
788
- return getDunderProto(O);
789
- } : null;
790
- }
791
- });
792
-
793
- // node_modules/hasown/index.js
794
- var require_hasown = __commonJS({
795
- "node_modules/hasown/index.js"(exports, module) {
796
- "use strict";
797
- var call = Function.prototype.call;
798
- var $hasOwn = Object.prototype.hasOwnProperty;
799
- var bind = require_function_bind();
800
- module.exports = bind.call(call, $hasOwn);
801
- }
802
- });
803
-
804
- // node_modules/get-intrinsic/index.js
805
- var require_get_intrinsic = __commonJS({
806
- "node_modules/get-intrinsic/index.js"(exports, module) {
807
- "use strict";
808
- var undefined2;
809
- var $Object = require_es_object_atoms();
810
- var $Error = require_es_errors();
811
- var $EvalError = require_eval();
812
- var $RangeError = require_range();
813
- var $ReferenceError = require_ref();
814
- var $SyntaxError = require_syntax();
815
- var $TypeError = require_type();
816
- var $URIError = require_uri();
817
- var abs = require_abs();
818
- var floor = require_floor();
819
- var max = require_max();
820
- var min = require_min();
821
- var pow = require_pow();
822
- var round = require_round();
823
- var sign = require_sign();
824
- var $Function = Function;
825
- var getEvalledConstructor = function(expressionSyntax) {
826
- try {
827
- return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
828
- } catch (e) {
829
- }
830
- };
831
- var $gOPD = require_gopd();
832
- var $defineProperty = require_es_define_property();
833
- var throwTypeError = function() {
834
- throw new $TypeError();
835
- };
836
- var ThrowTypeError = $gOPD ? function() {
837
- try {
838
- arguments.callee;
839
- return throwTypeError;
840
- } catch (calleeThrows) {
841
- try {
842
- return $gOPD(arguments, "callee").get;
843
- } catch (gOPDthrows) {
844
- return throwTypeError;
845
- }
846
- }
847
- }() : throwTypeError;
848
- var hasSymbols = require_has_symbols()();
849
- var getProto = require_get_proto();
850
- var $ObjectGPO = require_Object_getPrototypeOf();
851
- var $ReflectGPO = require_Reflect_getPrototypeOf();
852
- var $apply = require_functionApply();
853
- var $call = require_functionCall();
854
- var needsEval = {};
855
- var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
856
- var INTRINSICS = {
857
- __proto__: null,
858
- "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
859
- "%Array%": Array,
860
- "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
861
- "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined2,
862
- "%AsyncFromSyncIteratorPrototype%": undefined2,
863
- "%AsyncFunction%": needsEval,
864
- "%AsyncGenerator%": needsEval,
865
- "%AsyncGeneratorFunction%": needsEval,
866
- "%AsyncIteratorPrototype%": needsEval,
867
- "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
868
- "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
869
- "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined2 : BigInt64Array,
870
- "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined2 : BigUint64Array,
871
- "%Boolean%": Boolean,
872
- "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
873
- "%Date%": Date,
874
- "%decodeURI%": decodeURI,
875
- "%decodeURIComponent%": decodeURIComponent,
876
- "%encodeURI%": encodeURI,
877
- "%encodeURIComponent%": encodeURIComponent,
878
- "%Error%": $Error,
879
- "%eval%": eval,
880
- // eslint-disable-line no-eval
881
- "%EvalError%": $EvalError,
882
- "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
883
- "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
884
- "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
885
- "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
886
- "%Function%": $Function,
887
- "%GeneratorFunction%": needsEval,
888
- "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
889
- "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
890
- "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
891
- "%isFinite%": isFinite,
892
- "%isNaN%": isNaN,
893
- "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined2,
894
- "%JSON%": typeof JSON === "object" ? JSON : undefined2,
895
- "%Map%": typeof Map === "undefined" ? undefined2 : Map,
896
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
897
- "%Math%": Math,
898
- "%Number%": Number,
899
- "%Object%": $Object,
900
- "%Object.getOwnPropertyDescriptor%": $gOPD,
901
- "%parseFloat%": parseFloat,
902
- "%parseInt%": parseInt,
903
- "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
904
- "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
905
- "%RangeError%": $RangeError,
906
- "%ReferenceError%": $ReferenceError,
907
- "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
908
- "%RegExp%": RegExp,
909
- "%Set%": typeof Set === "undefined" ? undefined2 : Set,
910
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
911
- "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
912
- "%String%": String,
913
- "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined2,
914
- "%Symbol%": hasSymbols ? Symbol : undefined2,
915
- "%SyntaxError%": $SyntaxError,
916
- "%ThrowTypeError%": ThrowTypeError,
917
- "%TypedArray%": TypedArray,
918
- "%TypeError%": $TypeError,
919
- "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
920
- "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
921
- "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
922
- "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
923
- "%URIError%": $URIError,
924
- "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
925
- "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
926
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
927
- "%Function.prototype.call%": $call,
928
- "%Function.prototype.apply%": $apply,
929
- "%Object.defineProperty%": $defineProperty,
930
- "%Object.getPrototypeOf%": $ObjectGPO,
931
- "%Math.abs%": abs,
932
- "%Math.floor%": floor,
933
- "%Math.max%": max,
934
- "%Math.min%": min,
935
- "%Math.pow%": pow,
936
- "%Math.round%": round,
937
- "%Math.sign%": sign,
938
- "%Reflect.getPrototypeOf%": $ReflectGPO
939
- };
940
- if (getProto) {
941
- try {
942
- null.error;
943
- } catch (e) {
944
- errorProto = getProto(getProto(e));
945
- INTRINSICS["%Error.prototype%"] = errorProto;
946
- }
947
- }
948
- var errorProto;
949
- var doEval = function doEval2(name) {
950
- var value;
951
- if (name === "%AsyncFunction%") {
952
- value = getEvalledConstructor("async function () {}");
953
- } else if (name === "%GeneratorFunction%") {
954
- value = getEvalledConstructor("function* () {}");
955
- } else if (name === "%AsyncGeneratorFunction%") {
956
- value = getEvalledConstructor("async function* () {}");
957
- } else if (name === "%AsyncGenerator%") {
958
- var fn = doEval2("%AsyncGeneratorFunction%");
959
- if (fn) {
960
- value = fn.prototype;
961
- }
962
- } else if (name === "%AsyncIteratorPrototype%") {
963
- var gen = doEval2("%AsyncGenerator%");
964
- if (gen && getProto) {
965
- value = getProto(gen.prototype);
966
- }
967
- }
968
- INTRINSICS[name] = value;
969
- return value;
970
- };
971
- var LEGACY_ALIASES = {
972
- __proto__: null,
973
- "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
974
- "%ArrayPrototype%": ["Array", "prototype"],
975
- "%ArrayProto_entries%": ["Array", "prototype", "entries"],
976
- "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
977
- "%ArrayProto_keys%": ["Array", "prototype", "keys"],
978
- "%ArrayProto_values%": ["Array", "prototype", "values"],
979
- "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
980
- "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
981
- "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
982
- "%BooleanPrototype%": ["Boolean", "prototype"],
983
- "%DataViewPrototype%": ["DataView", "prototype"],
984
- "%DatePrototype%": ["Date", "prototype"],
985
- "%ErrorPrototype%": ["Error", "prototype"],
986
- "%EvalErrorPrototype%": ["EvalError", "prototype"],
987
- "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
988
- "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
989
- "%FunctionPrototype%": ["Function", "prototype"],
990
- "%Generator%": ["GeneratorFunction", "prototype"],
991
- "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
992
- "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
993
- "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
994
- "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
995
- "%JSONParse%": ["JSON", "parse"],
996
- "%JSONStringify%": ["JSON", "stringify"],
997
- "%MapPrototype%": ["Map", "prototype"],
998
- "%NumberPrototype%": ["Number", "prototype"],
999
- "%ObjectPrototype%": ["Object", "prototype"],
1000
- "%ObjProto_toString%": ["Object", "prototype", "toString"],
1001
- "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
1002
- "%PromisePrototype%": ["Promise", "prototype"],
1003
- "%PromiseProto_then%": ["Promise", "prototype", "then"],
1004
- "%Promise_all%": ["Promise", "all"],
1005
- "%Promise_reject%": ["Promise", "reject"],
1006
- "%Promise_resolve%": ["Promise", "resolve"],
1007
- "%RangeErrorPrototype%": ["RangeError", "prototype"],
1008
- "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
1009
- "%RegExpPrototype%": ["RegExp", "prototype"],
1010
- "%SetPrototype%": ["Set", "prototype"],
1011
- "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
1012
- "%StringPrototype%": ["String", "prototype"],
1013
- "%SymbolPrototype%": ["Symbol", "prototype"],
1014
- "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
1015
- "%TypedArrayPrototype%": ["TypedArray", "prototype"],
1016
- "%TypeErrorPrototype%": ["TypeError", "prototype"],
1017
- "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
1018
- "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
1019
- "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
1020
- "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
1021
- "%URIErrorPrototype%": ["URIError", "prototype"],
1022
- "%WeakMapPrototype%": ["WeakMap", "prototype"],
1023
- "%WeakSetPrototype%": ["WeakSet", "prototype"]
1024
- };
1025
- var bind = require_function_bind();
1026
- var hasOwn = require_hasown();
1027
- var $concat = bind.call($call, Array.prototype.concat);
1028
- var $spliceApply = bind.call($apply, Array.prototype.splice);
1029
- var $replace = bind.call($call, String.prototype.replace);
1030
- var $strSlice = bind.call($call, String.prototype.slice);
1031
- var $exec = bind.call($call, RegExp.prototype.exec);
1032
- var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
1033
- var reEscapeChar = /\\(\\)?/g;
1034
- var stringToPath = function stringToPath2(string) {
1035
- var first = $strSlice(string, 0, 1);
1036
- var last = $strSlice(string, -1);
1037
- if (first === "%" && last !== "%") {
1038
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
1039
- } else if (last === "%" && first !== "%") {
1040
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
1041
- }
1042
- var result = [];
1043
- $replace(string, rePropName, function(match, number, quote, subString) {
1044
- result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
1045
- });
1046
- return result;
1047
- };
1048
- var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
1049
- var intrinsicName = name;
1050
- var alias;
1051
- if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
1052
- alias = LEGACY_ALIASES[intrinsicName];
1053
- intrinsicName = "%" + alias[0] + "%";
1054
- }
1055
- if (hasOwn(INTRINSICS, intrinsicName)) {
1056
- var value = INTRINSICS[intrinsicName];
1057
- if (value === needsEval) {
1058
- value = doEval(intrinsicName);
1059
- }
1060
- if (typeof value === "undefined" && !allowMissing) {
1061
- throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
1062
- }
1063
- return {
1064
- alias,
1065
- name: intrinsicName,
1066
- value
1067
- };
1068
- }
1069
- throw new $SyntaxError("intrinsic " + name + " does not exist!");
1070
- };
1071
- module.exports = function GetIntrinsic(name, allowMissing) {
1072
- if (typeof name !== "string" || name.length === 0) {
1073
- throw new $TypeError("intrinsic name must be a non-empty string");
1074
- }
1075
- if (arguments.length > 1 && typeof allowMissing !== "boolean") {
1076
- throw new $TypeError('"allowMissing" argument must be a boolean');
1077
- }
1078
- if ($exec(/^%?[^%]*%?$/, name) === null) {
1079
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1080
- }
1081
- var parts = stringToPath(name);
1082
- var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
1083
- var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
1084
- var intrinsicRealName = intrinsic.name;
1085
- var value = intrinsic.value;
1086
- var skipFurtherCaching = false;
1087
- var alias = intrinsic.alias;
1088
- if (alias) {
1089
- intrinsicBaseName = alias[0];
1090
- $spliceApply(parts, $concat([0, 1], alias));
1091
- }
1092
- for (var i = 1, isOwn = true; i < parts.length; i += 1) {
1093
- var part = parts[i];
1094
- var first = $strSlice(part, 0, 1);
1095
- var last = $strSlice(part, -1);
1096
- if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
1097
- throw new $SyntaxError("property names with quotes must have matching quotes");
1098
- }
1099
- if (part === "constructor" || !isOwn) {
1100
- skipFurtherCaching = true;
1101
- }
1102
- intrinsicBaseName += "." + part;
1103
- intrinsicRealName = "%" + intrinsicBaseName + "%";
1104
- if (hasOwn(INTRINSICS, intrinsicRealName)) {
1105
- value = INTRINSICS[intrinsicRealName];
1106
- } else if (value != null) {
1107
- if (!(part in value)) {
1108
- if (!allowMissing) {
1109
- throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
1110
- }
1111
- return void undefined2;
1112
- }
1113
- if ($gOPD && i + 1 >= parts.length) {
1114
- var desc = $gOPD(value, part);
1115
- isOwn = !!desc;
1116
- if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
1117
- value = desc.get;
1118
- } else {
1119
- value = value[part];
1120
- }
1121
- } else {
1122
- isOwn = hasOwn(value, part);
1123
- value = value[part];
1124
- }
1125
- if (isOwn && !skipFurtherCaching) {
1126
- INTRINSICS[intrinsicRealName] = value;
1127
- }
1128
- }
1129
- }
1130
- return value;
1131
- };
1132
- }
1133
- });
1134
-
1135
- // node_modules/call-bound/index.js
1136
- var require_call_bound = __commonJS({
1137
- "node_modules/call-bound/index.js"(exports, module) {
1138
- "use strict";
1139
- var GetIntrinsic = require_get_intrinsic();
1140
- var callBindBasic = require_call_bind_apply_helpers();
1141
- var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
1142
- module.exports = function callBoundIntrinsic(name, allowMissing) {
1143
- var intrinsic = (
1144
- /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1145
- GetIntrinsic(name, !!allowMissing)
1146
- );
1147
- if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1148
- return callBindBasic(
1149
- /** @type {const} */
1150
- [intrinsic]
1151
- );
1152
- }
1153
- return intrinsic;
1154
- };
1155
- }
1156
- });
1157
-
1158
- // node_modules/es-abstract/helpers/IsArray.js
1159
- var require_IsArray = __commonJS({
1160
- "node_modules/es-abstract/helpers/IsArray.js"(exports, module) {
1161
- "use strict";
1162
- var GetIntrinsic = require_get_intrinsic();
1163
- var $Array = GetIntrinsic("%Array%");
1164
- var toStr = !$Array.isArray && require_call_bound()("Object.prototype.toString");
1165
- module.exports = $Array.isArray || function IsArray(argument) {
1166
- return toStr(argument) === "[object Array]";
1167
- };
1168
- }
1169
- });
1170
-
1171
- // node_modules/es-abstract/2024/IsArray.js
1172
- var require_IsArray2 = __commonJS({
1173
- "node_modules/es-abstract/2024/IsArray.js"(exports, module) {
1174
- "use strict";
1175
- module.exports = require_IsArray();
1176
- }
1177
- });
1178
-
1179
- // node_modules/es-abstract/2024/Call.js
1180
- var require_Call = __commonJS({
1181
- "node_modules/es-abstract/2024/Call.js"(exports, module) {
1182
- "use strict";
1183
- var GetIntrinsic = require_get_intrinsic();
1184
- var callBound = require_call_bound();
1185
- var $TypeError = require_type();
1186
- var IsArray = require_IsArray2();
1187
- var $apply = GetIntrinsic("%Reflect.apply%", true) || callBound("Function.prototype.apply");
1188
- module.exports = function Call(F, V) {
1189
- var argumentsList = arguments.length > 2 ? arguments[2] : [];
1190
- if (!IsArray(argumentsList)) {
1191
- throw new $TypeError("Assertion failed: optional `argumentsList`, if provided, must be a List");
1192
- }
1193
- return $apply(F, V, argumentsList);
1194
- };
1195
- }
1196
- });
1197
-
1198
- // (disabled):node_modules/object-inspect/util.inspect
1199
- var require_util = __commonJS({
1200
- "(disabled):node_modules/object-inspect/util.inspect"() {
1201
- }
1202
- });
1203
-
1204
- // node_modules/object-inspect/index.js
1205
- var require_object_inspect = __commonJS({
1206
- "node_modules/object-inspect/index.js"(exports, module) {
1207
- var hasMap = typeof Map === "function" && Map.prototype;
1208
- var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
1209
- var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
1210
- var mapForEach = hasMap && Map.prototype.forEach;
1211
- var hasSet = typeof Set === "function" && Set.prototype;
1212
- var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
1213
- var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
1214
- var setForEach = hasSet && Set.prototype.forEach;
1215
- var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
1216
- var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
1217
- var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
1218
- var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
1219
- var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
1220
- var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
1221
- var booleanValueOf = Boolean.prototype.valueOf;
1222
- var objectToString = Object.prototype.toString;
1223
- var functionToString = Function.prototype.toString;
1224
- var $match = String.prototype.match;
1225
- var $slice = String.prototype.slice;
1226
- var $replace = String.prototype.replace;
1227
- var $toUpperCase = String.prototype.toUpperCase;
1228
- var $toLowerCase = String.prototype.toLowerCase;
1229
- var $test = RegExp.prototype.test;
1230
- var $concat = Array.prototype.concat;
1231
- var $join = Array.prototype.join;
1232
- var $arrSlice = Array.prototype.slice;
1233
- var $floor = Math.floor;
1234
- var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
1235
- var gOPS = Object.getOwnPropertySymbols;
1236
- var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
1237
- var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
1238
- var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
1239
- var isEnumerable = Object.prototype.propertyIsEnumerable;
1240
- var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
1241
- return O.__proto__;
1242
- } : null);
1243
- function addNumericSeparator(num, str) {
1244
- if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
1245
- return str;
1246
- }
1247
- var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1248
- if (typeof num === "number") {
1249
- var int = num < 0 ? -$floor(-num) : $floor(num);
1250
- if (int !== num) {
1251
- var intStr = String(int);
1252
- var dec = $slice.call(str, intStr.length + 1);
1253
- return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
1254
- }
1255
- }
1256
- return $replace.call(str, sepRegex, "$&_");
1257
- }
1258
- var utilInspect = require_util();
1259
- var inspectCustom = utilInspect.custom;
1260
- var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
1261
- var quotes = {
1262
- __proto__: null,
1263
- "double": '"',
1264
- single: "'"
1265
- };
1266
- var quoteREs = {
1267
- __proto__: null,
1268
- "double": /(["\\])/g,
1269
- single: /(['\\])/g
1270
- };
1271
- module.exports = function inspect_(obj, options, depth, seen) {
1272
- var opts = options || {};
1273
- if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
1274
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
1275
- }
1276
- if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
1277
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
1278
- }
1279
- var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
1280
- if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
1281
- throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
1282
- }
1283
- if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
1284
- throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
1285
- }
1286
- if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
1287
- throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
1288
- }
1289
- var numericSeparator = opts.numericSeparator;
1290
- if (typeof obj === "undefined") {
1291
- return "undefined";
1292
- }
1293
- if (obj === null) {
1294
- return "null";
1295
- }
1296
- if (typeof obj === "boolean") {
1297
- return obj ? "true" : "false";
1298
- }
1299
- if (typeof obj === "string") {
1300
- return inspectString(obj, opts);
1301
- }
1302
- if (typeof obj === "number") {
1303
- if (obj === 0) {
1304
- return Infinity / obj > 0 ? "0" : "-0";
1305
- }
1306
- var str = String(obj);
1307
- return numericSeparator ? addNumericSeparator(obj, str) : str;
1308
- }
1309
- if (typeof obj === "bigint") {
1310
- var bigIntStr = String(obj) + "n";
1311
- return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
1312
- }
1313
- var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
1314
- if (typeof depth === "undefined") {
1315
- depth = 0;
1316
- }
1317
- if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
1318
- return isArray(obj) ? "[Array]" : "[Object]";
1319
- }
1320
- var indent = getIndent(opts, depth);
1321
- if (typeof seen === "undefined") {
1322
- seen = [];
1323
- } else if (indexOf(seen, obj) >= 0) {
1324
- return "[Circular]";
1325
- }
1326
- function inspect(value, from, noIndent) {
1327
- if (from) {
1328
- seen = $arrSlice.call(seen);
1329
- seen.push(from);
1330
- }
1331
- if (noIndent) {
1332
- var newOpts = {
1333
- depth: opts.depth
1334
- };
1335
- if (has(opts, "quoteStyle")) {
1336
- newOpts.quoteStyle = opts.quoteStyle;
1337
- }
1338
- return inspect_(value, newOpts, depth + 1, seen);
1339
- }
1340
- return inspect_(value, opts, depth + 1, seen);
1341
- }
1342
- if (typeof obj === "function" && !isRegExp(obj)) {
1343
- var name = nameOf(obj);
1344
- var keys = arrObjKeys(obj, inspect);
1345
- return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
1346
- }
1347
- if (isSymbol(obj)) {
1348
- var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
1349
- return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
1350
- }
1351
- if (isElement(obj)) {
1352
- var s = "<" + $toLowerCase.call(String(obj.nodeName));
1353
- var attrs = obj.attributes || [];
1354
- for (var i = 0; i < attrs.length; i++) {
1355
- s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
1356
- }
1357
- s += ">";
1358
- if (obj.childNodes && obj.childNodes.length) {
1359
- s += "...";
1360
- }
1361
- s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
1362
- return s;
1363
- }
1364
- if (isArray(obj)) {
1365
- if (obj.length === 0) {
1366
- return "[]";
1367
- }
1368
- var xs = arrObjKeys(obj, inspect);
1369
- if (indent && !singleLineValues(xs)) {
1370
- return "[" + indentedJoin(xs, indent) + "]";
1371
- }
1372
- return "[ " + $join.call(xs, ", ") + " ]";
1373
- }
1374
- if (isError(obj)) {
1375
- var parts = arrObjKeys(obj, inspect);
1376
- if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
1377
- return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
1378
- }
1379
- if (parts.length === 0) {
1380
- return "[" + String(obj) + "]";
1381
- }
1382
- return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
1383
- }
1384
- if (typeof obj === "object" && customInspect) {
1385
- if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
1386
- return utilInspect(obj, { depth: maxDepth - depth });
1387
- } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
1388
- return obj.inspect();
1389
- }
1390
- }
1391
- if (isMap(obj)) {
1392
- var mapParts = [];
1393
- if (mapForEach) {
1394
- mapForEach.call(obj, function(value, key) {
1395
- mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
1396
- });
1397
- }
1398
- return collectionOf("Map", mapSize.call(obj), mapParts, indent);
1399
- }
1400
- if (isSet(obj)) {
1401
- var setParts = [];
1402
- if (setForEach) {
1403
- setForEach.call(obj, function(value) {
1404
- setParts.push(inspect(value, obj));
1405
- });
1406
- }
1407
- return collectionOf("Set", setSize.call(obj), setParts, indent);
1408
- }
1409
- if (isWeakMap(obj)) {
1410
- return weakCollectionOf("WeakMap");
1411
- }
1412
- if (isWeakSet(obj)) {
1413
- return weakCollectionOf("WeakSet");
1414
- }
1415
- if (isWeakRef(obj)) {
1416
- return weakCollectionOf("WeakRef");
1417
- }
1418
- if (isNumber(obj)) {
1419
- return markBoxed(inspect(Number(obj)));
1420
- }
1421
- if (isBigInt(obj)) {
1422
- return markBoxed(inspect(bigIntValueOf.call(obj)));
1423
- }
1424
- if (isBoolean(obj)) {
1425
- return markBoxed(booleanValueOf.call(obj));
1426
- }
1427
- if (isString(obj)) {
1428
- return markBoxed(inspect(String(obj)));
1429
- }
1430
- if (typeof window !== "undefined" && obj === window) {
1431
- return "{ [object Window] }";
1432
- }
1433
- if (typeof globalThis !== "undefined" && obj === globalThis || typeof global !== "undefined" && obj === global) {
1434
- return "{ [object globalThis] }";
1435
- }
1436
- if (!isDate(obj) && !isRegExp(obj)) {
1437
- var ys = arrObjKeys(obj, inspect);
1438
- var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1439
- var protoTag = obj instanceof Object ? "" : "null prototype";
1440
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
1441
- var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
1442
- var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
1443
- if (ys.length === 0) {
1444
- return tag + "{}";
1445
- }
1446
- if (indent) {
1447
- return tag + "{" + indentedJoin(ys, indent) + "}";
1448
- }
1449
- return tag + "{ " + $join.call(ys, ", ") + " }";
1450
- }
1451
- return String(obj);
1452
- };
1453
- function wrapQuotes(s, defaultStyle, opts) {
1454
- var style = opts.quoteStyle || defaultStyle;
1455
- var quoteChar = quotes[style];
1456
- return quoteChar + s + quoteChar;
1457
- }
1458
- function quote(s) {
1459
- return $replace.call(String(s), /"/g, "&quot;");
1460
- }
1461
- function canTrustToString(obj) {
1462
- return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
1463
- }
1464
- function isArray(obj) {
1465
- return toStr(obj) === "[object Array]" && canTrustToString(obj);
1466
- }
1467
- function isDate(obj) {
1468
- return toStr(obj) === "[object Date]" && canTrustToString(obj);
1469
- }
1470
- function isRegExp(obj) {
1471
- return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
1472
- }
1473
- function isError(obj) {
1474
- return toStr(obj) === "[object Error]" && canTrustToString(obj);
1475
- }
1476
- function isString(obj) {
1477
- return toStr(obj) === "[object String]" && canTrustToString(obj);
1478
- }
1479
- function isNumber(obj) {
1480
- return toStr(obj) === "[object Number]" && canTrustToString(obj);
1481
- }
1482
- function isBoolean(obj) {
1483
- return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
1484
- }
1485
- function isSymbol(obj) {
1486
- if (hasShammedSymbols) {
1487
- return obj && typeof obj === "object" && obj instanceof Symbol;
1488
- }
1489
- if (typeof obj === "symbol") {
1490
- return true;
1491
- }
1492
- if (!obj || typeof obj !== "object" || !symToString) {
1493
- return false;
1494
- }
1495
- try {
1496
- symToString.call(obj);
1497
- return true;
1498
- } catch (e) {
1499
- }
1500
- return false;
1501
- }
1502
- function isBigInt(obj) {
1503
- if (!obj || typeof obj !== "object" || !bigIntValueOf) {
1504
- return false;
1505
- }
1506
- try {
1507
- bigIntValueOf.call(obj);
1508
- return true;
1509
- } catch (e) {
1510
- }
1511
- return false;
1512
- }
1513
- var hasOwn = Object.prototype.hasOwnProperty || function(key) {
1514
- return key in this;
1515
- };
1516
- function has(obj, key) {
1517
- return hasOwn.call(obj, key);
1518
- }
1519
- function toStr(obj) {
1520
- return objectToString.call(obj);
1521
- }
1522
- function nameOf(f) {
1523
- if (f.name) {
1524
- return f.name;
1525
- }
1526
- var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
1527
- if (m) {
1528
- return m[1];
1529
- }
1530
- return null;
1531
- }
1532
- function indexOf(xs, x) {
1533
- if (xs.indexOf) {
1534
- return xs.indexOf(x);
1535
- }
1536
- for (var i = 0, l = xs.length; i < l; i++) {
1537
- if (xs[i] === x) {
1538
- return i;
1539
- }
1540
- }
1541
- return -1;
1542
- }
1543
- function isMap(x) {
1544
- if (!mapSize || !x || typeof x !== "object") {
1545
- return false;
1546
- }
1547
- try {
1548
- mapSize.call(x);
1549
- try {
1550
- setSize.call(x);
1551
- } catch (s) {
1552
- return true;
1553
- }
1554
- return x instanceof Map;
1555
- } catch (e) {
1556
- }
1557
- return false;
1558
- }
1559
- function isWeakMap(x) {
1560
- if (!weakMapHas || !x || typeof x !== "object") {
1561
- return false;
1562
- }
1563
- try {
1564
- weakMapHas.call(x, weakMapHas);
1565
- try {
1566
- weakSetHas.call(x, weakSetHas);
1567
- } catch (s) {
1568
- return true;
1569
- }
1570
- return x instanceof WeakMap;
1571
- } catch (e) {
1572
- }
1573
- return false;
1574
- }
1575
- function isWeakRef(x) {
1576
- if (!weakRefDeref || !x || typeof x !== "object") {
1577
- return false;
1578
- }
1579
- try {
1580
- weakRefDeref.call(x);
1581
- return true;
1582
- } catch (e) {
1583
- }
1584
- return false;
1585
- }
1586
- function isSet(x) {
1587
- if (!setSize || !x || typeof x !== "object") {
1588
- return false;
1589
- }
1590
- try {
1591
- setSize.call(x);
1592
- try {
1593
- mapSize.call(x);
1594
- } catch (m) {
1595
- return true;
1596
- }
1597
- return x instanceof Set;
1598
- } catch (e) {
1599
- }
1600
- return false;
1601
- }
1602
- function isWeakSet(x) {
1603
- if (!weakSetHas || !x || typeof x !== "object") {
1604
- return false;
1605
- }
1606
- try {
1607
- weakSetHas.call(x, weakSetHas);
1608
- try {
1609
- weakMapHas.call(x, weakMapHas);
1610
- } catch (s) {
1611
- return true;
1612
- }
1613
- return x instanceof WeakSet;
1614
- } catch (e) {
1615
- }
1616
- return false;
1617
- }
1618
- function isElement(x) {
1619
- if (!x || typeof x !== "object") {
1620
- return false;
1621
- }
1622
- if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
1623
- return true;
1624
- }
1625
- return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
1626
- }
1627
- function inspectString(str, opts) {
1628
- if (str.length > opts.maxStringLength) {
1629
- var remaining = str.length - opts.maxStringLength;
1630
- var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
1631
- return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1632
- }
1633
- var quoteRE = quoteREs[opts.quoteStyle || "single"];
1634
- quoteRE.lastIndex = 0;
1635
- var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
1636
- return wrapQuotes(s, "single", opts);
1637
- }
1638
- function lowbyte(c) {
1639
- var n = c.charCodeAt(0);
1640
- var x = {
1641
- 8: "b",
1642
- 9: "t",
1643
- 10: "n",
1644
- 12: "f",
1645
- 13: "r"
1646
- }[n];
1647
- if (x) {
1648
- return "\\" + x;
1649
- }
1650
- return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
1651
- }
1652
- function markBoxed(str) {
1653
- return "Object(" + str + ")";
1654
- }
1655
- function weakCollectionOf(type) {
1656
- return type + " { ? }";
1657
- }
1658
- function collectionOf(type, size, entries, indent) {
1659
- var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
1660
- return type + " (" + size + ") {" + joinedEntries + "}";
1661
- }
1662
- function singleLineValues(xs) {
1663
- for (var i = 0; i < xs.length; i++) {
1664
- if (indexOf(xs[i], "\n") >= 0) {
1665
- return false;
1666
- }
1667
- }
1668
- return true;
1669
- }
1670
- function getIndent(opts, depth) {
1671
- var baseIndent;
1672
- if (opts.indent === " ") {
1673
- baseIndent = " ";
1674
- } else if (typeof opts.indent === "number" && opts.indent > 0) {
1675
- baseIndent = $join.call(Array(opts.indent + 1), " ");
1676
- } else {
1677
- return null;
1678
- }
1679
- return {
1680
- base: baseIndent,
1681
- prev: $join.call(Array(depth + 1), baseIndent)
1682
- };
1683
- }
1684
- function indentedJoin(xs, indent) {
1685
- if (xs.length === 0) {
1686
- return "";
1687
- }
1688
- var lineJoiner = "\n" + indent.prev + indent.base;
1689
- return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
1690
- }
1691
- function arrObjKeys(obj, inspect) {
1692
- var isArr = isArray(obj);
1693
- var xs = [];
1694
- if (isArr) {
1695
- xs.length = obj.length;
1696
- for (var i = 0; i < obj.length; i++) {
1697
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
1698
- }
1699
- }
1700
- var syms = typeof gOPS === "function" ? gOPS(obj) : [];
1701
- var symMap;
1702
- if (hasShammedSymbols) {
1703
- symMap = {};
1704
- for (var k = 0; k < syms.length; k++) {
1705
- symMap["$" + syms[k]] = syms[k];
1706
- }
1707
- }
1708
- for (var key in obj) {
1709
- if (!has(obj, key)) {
1710
- continue;
1711
- }
1712
- if (isArr && String(Number(key)) === key && key < obj.length) {
1713
- continue;
1714
- }
1715
- if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
1716
- continue;
1717
- } else if ($test.call(/[^\w$]/, key)) {
1718
- xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
1719
- } else {
1720
- xs.push(key + ": " + inspect(obj[key], obj));
1721
- }
1722
- }
1723
- if (typeof gOPS === "function") {
1724
- for (var j = 0; j < syms.length; j++) {
1725
- if (isEnumerable.call(obj, syms[j])) {
1726
- xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
1727
- }
1728
- }
1729
- }
1730
- return xs;
1731
- }
1732
- }
1733
- });
1734
-
1735
- // node_modules/es-abstract/helpers/isObject.js
1736
- var require_isObject = __commonJS({
1737
- "node_modules/es-abstract/helpers/isObject.js"(exports, module) {
1738
- "use strict";
1739
- module.exports = function isObject(x) {
1740
- return !!x && (typeof x === "function" || typeof x === "object");
1741
- };
1742
- }
1743
- });
1744
-
1745
- // node_modules/es-abstract/helpers/isPropertyKey.js
1746
- var require_isPropertyKey = __commonJS({
1747
- "node_modules/es-abstract/helpers/isPropertyKey.js"(exports, module) {
1748
- "use strict";
1749
- module.exports = function isPropertyKey(argument) {
1750
- return typeof argument === "string" || typeof argument === "symbol";
1751
- };
1752
- }
1753
- });
1754
-
1755
- // node_modules/es-abstract/2024/Get.js
1756
- var require_Get = __commonJS({
1757
- "node_modules/es-abstract/2024/Get.js"(exports, module) {
1758
- "use strict";
1759
- var $TypeError = require_type();
1760
- var inspect = require_object_inspect();
1761
- var isObject = require_isObject();
1762
- var isPropertyKey = require_isPropertyKey();
1763
- module.exports = function Get(O, P) {
1764
- if (!isObject(O)) {
1765
- throw new $TypeError("Assertion failed: Type(O) is not Object");
1766
- }
1767
- if (!isPropertyKey(P)) {
1768
- throw new $TypeError("Assertion failed: P is not a Property Key, got " + inspect(P));
1769
- }
1770
- return O[P];
1771
- };
1772
- }
1773
- });
1774
-
1775
- // node_modules/es-abstract/5/Type.js
1776
- var require_Type = __commonJS({
1777
- "node_modules/es-abstract/5/Type.js"(exports, module) {
1778
- "use strict";
1779
- var isObject = require_isObject();
1780
- module.exports = function Type(x) {
1781
- if (x === null) {
1782
- return "Null";
1783
- }
1784
- if (typeof x === "undefined") {
1785
- return "Undefined";
1786
- }
1787
- if (isObject(x)) {
1788
- return "Object";
1789
- }
1790
- if (typeof x === "number") {
1791
- return "Number";
1792
- }
1793
- if (typeof x === "boolean") {
1794
- return "Boolean";
1795
- }
1796
- if (typeof x === "string") {
1797
- return "String";
1798
- }
1799
- };
1800
- }
1801
- });
1802
-
1803
- // node_modules/es-abstract/2024/Type.js
1804
- var require_Type2 = __commonJS({
1805
- "node_modules/es-abstract/2024/Type.js"(exports, module) {
1806
- "use strict";
1807
- var ES5Type = require_Type();
1808
- module.exports = function Type(x) {
1809
- if (typeof x === "symbol") {
1810
- return "Symbol";
1811
- }
1812
- if (typeof x === "bigint") {
1813
- return "BigInt";
1814
- }
1815
- return ES5Type(x);
1816
- };
1817
- }
1818
- });
1819
-
1820
- // node_modules/es-iterator-helpers/aos/GetIteratorDirect.js
1821
- var require_GetIteratorDirect = __commonJS({
1822
- "node_modules/es-iterator-helpers/aos/GetIteratorDirect.js"(exports, module) {
1823
- "use strict";
1824
- var $TypeError = require_type();
1825
- var Get = require_Get();
1826
- var Type = require_Type2();
1827
- module.exports = function GetIteratorDirect(obj) {
1828
- if (Type(obj) !== "Object") {
1829
- throw new $TypeError("Assertion failed: `obj` must be an Object");
1830
- }
1831
- var nextMethod = Get(obj, "next");
1832
- var iteratorRecord = { "[[Iterator]]": obj, "[[NextMethod]]": nextMethod, "[[Done]]": false };
1833
- return iteratorRecord;
1834
- };
1835
- }
1836
- });
1837
-
1838
- // node_modules/is-callable/index.js
1839
- var require_is_callable = __commonJS({
1840
- "node_modules/is-callable/index.js"(exports, module) {
1841
- "use strict";
1842
- var fnToStr = Function.prototype.toString;
1843
- var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
1844
- var badArrayLike;
1845
- var isCallableMarker;
1846
- if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") {
1847
- try {
1848
- badArrayLike = Object.defineProperty({}, "length", {
1849
- get: function() {
1850
- throw isCallableMarker;
1851
- }
1852
- });
1853
- isCallableMarker = {};
1854
- reflectApply(function() {
1855
- throw 42;
1856
- }, null, badArrayLike);
1857
- } catch (_) {
1858
- if (_ !== isCallableMarker) {
1859
- reflectApply = null;
1860
- }
1861
- }
1862
- } else {
1863
- reflectApply = null;
1864
- }
1865
- var constructorRegex = /^\s*class\b/;
1866
- var isES6ClassFn = function isES6ClassFunction(value) {
1867
- try {
1868
- var fnStr = fnToStr.call(value);
1869
- return constructorRegex.test(fnStr);
1870
- } catch (e) {
1871
- return false;
1872
- }
1873
- };
1874
- var tryFunctionObject = function tryFunctionToStr(value) {
1875
- try {
1876
- if (isES6ClassFn(value)) {
1877
- return false;
1878
- }
1879
- fnToStr.call(value);
1880
- return true;
1881
- } catch (e) {
1882
- return false;
1883
- }
1884
- };
1885
- var toStr = Object.prototype.toString;
1886
- var objectClass = "[object Object]";
1887
- var fnClass = "[object Function]";
1888
- var genClass = "[object GeneratorFunction]";
1889
- var ddaClass = "[object HTMLAllCollection]";
1890
- var ddaClass2 = "[object HTML document.all class]";
1891
- var ddaClass3 = "[object HTMLCollection]";
1892
- var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
1893
- var isIE68 = !(0 in [,]);
1894
- var isDDA = function isDocumentDotAll() {
1895
- return false;
1896
- };
1897
- if (typeof document === "object") {
1898
- all = document.all;
1899
- if (toStr.call(all) === toStr.call(document.all)) {
1900
- isDDA = function isDocumentDotAll(value) {
1901
- if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
1902
- try {
1903
- var str = toStr.call(value);
1904
- return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
1905
- } catch (e) {
1906
- }
1907
- }
1908
- return false;
1909
- };
1910
- }
1911
- }
1912
- var all;
1913
- module.exports = reflectApply ? function isCallable(value) {
1914
- if (isDDA(value)) {
1915
- return true;
1916
- }
1917
- if (!value) {
1918
- return false;
1919
- }
1920
- if (typeof value !== "function" && typeof value !== "object") {
1921
- return false;
1922
- }
1923
- try {
1924
- reflectApply(value, null, badArrayLike);
1925
- } catch (e) {
1926
- if (e !== isCallableMarker) {
1927
- return false;
1928
- }
1929
- }
1930
- return !isES6ClassFn(value) && tryFunctionObject(value);
1931
- } : function isCallable(value) {
1932
- if (isDDA(value)) {
1933
- return true;
1934
- }
1935
- if (!value) {
1936
- return false;
1937
- }
1938
- if (typeof value !== "function" && typeof value !== "object") {
1939
- return false;
1940
- }
1941
- if (hasToStringTag) {
1942
- return tryFunctionObject(value);
1943
- }
1944
- if (isES6ClassFn(value)) {
1945
- return false;
1946
- }
1947
- var strClass = toStr.call(value);
1948
- if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
1949
- return false;
1950
- }
1951
- return tryFunctionObject(value);
1952
- };
1953
- }
1954
- });
1955
-
1956
- // node_modules/es-abstract/2024/IsCallable.js
1957
- var require_IsCallable = __commonJS({
1958
- "node_modules/es-abstract/2024/IsCallable.js"(exports, module) {
1959
- "use strict";
1960
- module.exports = require_is_callable();
1961
- }
1962
- });
1963
-
1964
- // node_modules/side-channel-list/index.js
1965
- var require_side_channel_list = __commonJS({
1966
- "node_modules/side-channel-list/index.js"(exports, module) {
1967
- "use strict";
1968
- var inspect = require_object_inspect();
1969
- var $TypeError = require_type();
1970
- var listGetNode = function(list, key, isDelete) {
1971
- var prev = list;
1972
- var curr;
1973
- for (; (curr = prev.next) != null; prev = curr) {
1974
- if (curr.key === key) {
1975
- prev.next = curr.next;
1976
- if (!isDelete) {
1977
- curr.next = /** @type {NonNullable<typeof list.next>} */
1978
- list.next;
1979
- list.next = curr;
1980
- }
1981
- return curr;
1982
- }
1983
- }
1984
- };
1985
- var listGet = function(objects, key) {
1986
- if (!objects) {
1987
- return void 0;
1988
- }
1989
- var node = listGetNode(objects, key);
1990
- return node && node.value;
1991
- };
1992
- var listSet = function(objects, key, value) {
1993
- var node = listGetNode(objects, key);
1994
- if (node) {
1995
- node.value = value;
1996
- } else {
1997
- objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
1998
- {
1999
- // eslint-disable-line no-param-reassign, no-extra-parens
2000
- key,
2001
- next: objects.next,
2002
- value
2003
- };
2004
- }
2005
- };
2006
- var listHas = function(objects, key) {
2007
- if (!objects) {
2008
- return false;
2009
- }
2010
- return !!listGetNode(objects, key);
2011
- };
2012
- var listDelete = function(objects, key) {
2013
- if (objects) {
2014
- return listGetNode(objects, key, true);
2015
- }
2016
- };
2017
- module.exports = function getSideChannelList() {
2018
- var $o;
2019
- var channel = {
2020
- assert: function(key) {
2021
- if (!channel.has(key)) {
2022
- throw new $TypeError("Side channel does not contain " + inspect(key));
2023
- }
2024
- },
2025
- "delete": function(key) {
2026
- var root = $o && $o.next;
2027
- var deletedNode = listDelete($o, key);
2028
- if (deletedNode && root && root === deletedNode) {
2029
- $o = void 0;
2030
- }
2031
- return !!deletedNode;
2032
- },
2033
- get: function(key) {
2034
- return listGet($o, key);
2035
- },
2036
- has: function(key) {
2037
- return listHas($o, key);
2038
- },
2039
- set: function(key, value) {
2040
- if (!$o) {
2041
- $o = {
2042
- next: void 0
2043
- };
2044
- }
2045
- listSet(
2046
- /** @type {NonNullable<typeof $o>} */
2047
- $o,
2048
- key,
2049
- value
2050
- );
2051
- }
2052
- };
2053
- return channel;
2054
- };
2055
- }
2056
- });
2057
-
2058
- // node_modules/side-channel-map/index.js
2059
- var require_side_channel_map = __commonJS({
2060
- "node_modules/side-channel-map/index.js"(exports, module) {
2061
- "use strict";
2062
- var GetIntrinsic = require_get_intrinsic();
2063
- var callBound = require_call_bound();
2064
- var inspect = require_object_inspect();
2065
- var $TypeError = require_type();
2066
- var $Map = GetIntrinsic("%Map%", true);
2067
- var $mapGet = callBound("Map.prototype.get", true);
2068
- var $mapSet = callBound("Map.prototype.set", true);
2069
- var $mapHas = callBound("Map.prototype.has", true);
2070
- var $mapDelete = callBound("Map.prototype.delete", true);
2071
- var $mapSize = callBound("Map.prototype.size", true);
2072
- module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */
2073
- function getSideChannelMap() {
2074
- var $m;
2075
- var channel = {
2076
- assert: function(key) {
2077
- if (!channel.has(key)) {
2078
- throw new $TypeError("Side channel does not contain " + inspect(key));
2079
- }
2080
- },
2081
- "delete": function(key) {
2082
- if ($m) {
2083
- var result = $mapDelete($m, key);
2084
- if ($mapSize($m) === 0) {
2085
- $m = void 0;
2086
- }
2087
- return result;
2088
- }
2089
- return false;
2090
- },
2091
- get: function(key) {
2092
- if ($m) {
2093
- return $mapGet($m, key);
2094
- }
2095
- },
2096
- has: function(key) {
2097
- if ($m) {
2098
- return $mapHas($m, key);
2099
- }
2100
- return false;
2101
- },
2102
- set: function(key, value) {
2103
- if (!$m) {
2104
- $m = new $Map();
2105
- }
2106
- $mapSet($m, key, value);
2107
- }
2108
- };
2109
- return channel;
2110
- };
2111
- }
2112
- });
2113
-
2114
- // node_modules/side-channel-weakmap/index.js
2115
- var require_side_channel_weakmap = __commonJS({
2116
- "node_modules/side-channel-weakmap/index.js"(exports, module) {
2117
- "use strict";
2118
- var GetIntrinsic = require_get_intrinsic();
2119
- var callBound = require_call_bound();
2120
- var inspect = require_object_inspect();
2121
- var getSideChannelMap = require_side_channel_map();
2122
- var $TypeError = require_type();
2123
- var $WeakMap = GetIntrinsic("%WeakMap%", true);
2124
- var $weakMapGet = callBound("WeakMap.prototype.get", true);
2125
- var $weakMapSet = callBound("WeakMap.prototype.set", true);
2126
- var $weakMapHas = callBound("WeakMap.prototype.has", true);
2127
- var $weakMapDelete = callBound("WeakMap.prototype.delete", true);
2128
- module.exports = $WeakMap ? (
2129
- /** @type {Exclude<import('.'), false>} */
2130
- function getSideChannelWeakMap() {
2131
- var $wm;
2132
- var $m;
2133
- var channel = {
2134
- assert: function(key) {
2135
- if (!channel.has(key)) {
2136
- throw new $TypeError("Side channel does not contain " + inspect(key));
2137
- }
2138
- },
2139
- "delete": function(key) {
2140
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
2141
- if ($wm) {
2142
- return $weakMapDelete($wm, key);
2143
- }
2144
- } else if (getSideChannelMap) {
2145
- if ($m) {
2146
- return $m["delete"](key);
2147
- }
2148
- }
2149
- return false;
2150
- },
2151
- get: function(key) {
2152
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
2153
- if ($wm) {
2154
- return $weakMapGet($wm, key);
2155
- }
2156
- }
2157
- return $m && $m.get(key);
2158
- },
2159
- has: function(key) {
2160
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
2161
- if ($wm) {
2162
- return $weakMapHas($wm, key);
2163
- }
2164
- }
2165
- return !!$m && $m.has(key);
2166
- },
2167
- set: function(key, value) {
2168
- if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
2169
- if (!$wm) {
2170
- $wm = new $WeakMap();
2171
- }
2172
- $weakMapSet($wm, key, value);
2173
- } else if (getSideChannelMap) {
2174
- if (!$m) {
2175
- $m = getSideChannelMap();
2176
- }
2177
- $m.set(key, value);
2178
- }
2179
- }
2180
- };
2181
- return channel;
2182
- }
2183
- ) : getSideChannelMap;
2184
- }
2185
- });
2186
-
2187
- // node_modules/side-channel/index.js
2188
- var require_side_channel = __commonJS({
2189
- "node_modules/side-channel/index.js"(exports, module) {
2190
- "use strict";
2191
- var $TypeError = require_type();
2192
- var inspect = require_object_inspect();
2193
- var getSideChannelList = require_side_channel_list();
2194
- var getSideChannelMap = require_side_channel_map();
2195
- var getSideChannelWeakMap = require_side_channel_weakmap();
2196
- var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
2197
- module.exports = function getSideChannel() {
2198
- var $channelData;
2199
- var channel = {
2200
- assert: function(key) {
2201
- if (!channel.has(key)) {
2202
- throw new $TypeError("Side channel does not contain " + inspect(key));
2203
- }
2204
- },
2205
- "delete": function(key) {
2206
- return !!$channelData && $channelData["delete"](key);
2207
- },
2208
- get: function(key) {
2209
- return $channelData && $channelData.get(key);
2210
- },
2211
- has: function(key) {
2212
- return !!$channelData && $channelData.has(key);
2213
- },
2214
- set: function(key, value) {
2215
- if (!$channelData) {
2216
- $channelData = makeChannel();
2217
- }
2218
- $channelData.set(key, value);
2219
- }
2220
- };
2221
- return channel;
2222
- };
2223
- }
2224
- });
2225
-
2226
- // node_modules/internal-slot/index.js
2227
- var require_internal_slot = __commonJS({
2228
- "node_modules/internal-slot/index.js"(exports, module) {
2229
- "use strict";
2230
- var hasOwn = require_hasown();
2231
- var channel = require_side_channel()();
2232
- var $TypeError = require_type();
2233
- var SLOT = {
2234
- assert: function(O, slot) {
2235
- if (!O || typeof O !== "object" && typeof O !== "function") {
2236
- throw new $TypeError("`O` is not an object");
2237
- }
2238
- if (typeof slot !== "string") {
2239
- throw new $TypeError("`slot` must be a string");
2240
- }
2241
- channel.assert(O);
2242
- if (!SLOT.has(O, slot)) {
2243
- throw new $TypeError("`" + slot + "` is not present on `O`");
2244
- }
2245
- },
2246
- get: function(O, slot) {
2247
- if (!O || typeof O !== "object" && typeof O !== "function") {
2248
- throw new $TypeError("`O` is not an object");
2249
- }
2250
- if (typeof slot !== "string") {
2251
- throw new $TypeError("`slot` must be a string");
2252
- }
2253
- var slots = channel.get(O);
2254
- return slots && slots[
2255
- /** @type {SaltedInternalSlot} */
2256
- "$" + slot
2257
- ];
2258
- },
2259
- has: function(O, slot) {
2260
- if (!O || typeof O !== "object" && typeof O !== "function") {
2261
- throw new $TypeError("`O` is not an object");
2262
- }
2263
- if (typeof slot !== "string") {
2264
- throw new $TypeError("`slot` must be a string");
2265
- }
2266
- var slots = channel.get(O);
2267
- return !!slots && hasOwn(
2268
- slots,
2269
- /** @type {SaltedInternalSlot} */
2270
- "$" + slot
2271
- );
2272
- },
2273
- set: function(O, slot, V) {
2274
- if (!O || typeof O !== "object" && typeof O !== "function") {
2275
- throw new $TypeError("`O` is not an object");
2276
- }
2277
- if (typeof slot !== "string") {
2278
- throw new $TypeError("`slot` must be a string");
2279
- }
2280
- var slots = channel.get(O);
2281
- if (!slots) {
2282
- slots = {};
2283
- channel.set(O, slots);
2284
- }
2285
- slots[
2286
- /** @type {SaltedInternalSlot} */
2287
- "$" + slot
2288
- ] = V;
2289
- }
2290
- };
2291
- if (Object.freeze) {
2292
- Object.freeze(SLOT);
2293
- }
2294
- module.exports = SLOT;
2295
- }
2296
- });
2297
-
2298
- // node_modules/es-abstract/2024/CompletionRecord.js
2299
- var require_CompletionRecord = __commonJS({
2300
- "node_modules/es-abstract/2024/CompletionRecord.js"(exports, module) {
2301
- "use strict";
2302
- var $SyntaxError = require_syntax();
2303
- var SLOT = require_internal_slot();
2304
- var CompletionRecord = function CompletionRecord2(type, value) {
2305
- if (!(this instanceof CompletionRecord2)) {
2306
- return new CompletionRecord2(type, value);
2307
- }
2308
- if (type !== "normal" && type !== "break" && type !== "continue" && type !== "return" && type !== "throw") {
2309
- throw new $SyntaxError('Assertion failed: `type` must be one of "normal", "break", "continue", "return", or "throw"');
2310
- }
2311
- SLOT.set(this, "[[Type]]", type);
2312
- SLOT.set(this, "[[Value]]", value);
2313
- };
2314
- CompletionRecord.prototype.type = function Type() {
2315
- return SLOT.get(this, "[[Type]]");
2316
- };
2317
- CompletionRecord.prototype.value = function Value() {
2318
- return SLOT.get(this, "[[Value]]");
2319
- };
2320
- CompletionRecord.prototype["?"] = function ReturnIfAbrupt() {
2321
- var type = SLOT.get(this, "[[Type]]");
2322
- var value = SLOT.get(this, "[[Value]]");
2323
- if (type === "throw") {
2324
- throw value;
2325
- }
2326
- return value;
2327
- };
2328
- CompletionRecord.prototype["!"] = function assert() {
2329
- var type = SLOT.get(this, "[[Type]]");
2330
- if (type !== "normal") {
2331
- throw new $SyntaxError('Assertion failed: Completion Record is not of type "normal"');
2332
- }
2333
- return SLOT.get(this, "[[Value]]");
2334
- };
2335
- module.exports = CompletionRecord;
2336
- }
2337
- });
2338
-
2339
- // node_modules/es-abstract/2024/GetV.js
2340
- var require_GetV = __commonJS({
2341
- "node_modules/es-abstract/2024/GetV.js"(exports, module) {
2342
- "use strict";
2343
- var $TypeError = require_type();
2344
- var inspect = require_object_inspect();
2345
- var isPropertyKey = require_isPropertyKey();
2346
- module.exports = function GetV(V, P) {
2347
- if (!isPropertyKey(P)) {
2348
- throw new $TypeError("Assertion failed: P is not a Property Key, got " + inspect(P));
2349
- }
2350
- return V[P];
2351
- };
2352
- }
2353
- });
2354
-
2355
- // node_modules/es-abstract/2024/GetMethod.js
2356
- var require_GetMethod = __commonJS({
2357
- "node_modules/es-abstract/2024/GetMethod.js"(exports, module) {
2358
- "use strict";
2359
- var $TypeError = require_type();
2360
- var GetV = require_GetV();
2361
- var IsCallable = require_IsCallable();
2362
- var isPropertyKey = require_isPropertyKey();
2363
- var inspect = require_object_inspect();
2364
- module.exports = function GetMethod(O, P) {
2365
- if (!isPropertyKey(P)) {
2366
- throw new $TypeError("Assertion failed: P is not a Property Key");
2367
- }
2368
- var func = GetV(O, P);
2369
- if (func == null) {
2370
- return void 0;
2371
- }
2372
- if (!IsCallable(func)) {
2373
- throw new $TypeError(inspect(P) + " is not a function: " + inspect(func));
2374
- }
2375
- return func;
2376
- };
2377
- }
2378
- });
2379
-
2380
- // node_modules/es-abstract/helpers/records/iterator-record.js
2381
- var require_iterator_record = __commonJS({
2382
- "node_modules/es-abstract/helpers/records/iterator-record.js"(exports, module) {
2383
- "use strict";
2384
- var hasOwn = require_hasown();
2385
- module.exports = function isIteratorRecord(value) {
2386
- return !!value && typeof value === "object" && hasOwn(value, "[[Iterator]]") && hasOwn(value, "[[NextMethod]]") && hasOwn(value, "[[Done]]") && typeof value["[[Done]]"] === "boolean";
2387
- };
2388
- }
2389
- });
2390
-
2391
- // node_modules/es-abstract/2024/IteratorClose.js
2392
- var require_IteratorClose = __commonJS({
2393
- "node_modules/es-abstract/2024/IteratorClose.js"(exports, module) {
2394
- "use strict";
2395
- var $TypeError = require_type();
2396
- var Call = require_Call();
2397
- var CompletionRecord = require_CompletionRecord();
2398
- var GetMethod = require_GetMethod();
2399
- var IsCallable = require_IsCallable();
2400
- var isObject = require_isObject();
2401
- var isIteratorRecord = require_iterator_record();
2402
- module.exports = function IteratorClose(iteratorRecord, completion) {
2403
- if (!isIteratorRecord(iteratorRecord)) {
2404
- throw new $TypeError("Assertion failed: `iteratorRecord` must be an Iterator Record");
2405
- }
2406
- if (!isObject(iteratorRecord["[[Iterator]]"])) {
2407
- throw new $TypeError("Assertion failed: iteratorRecord.[[Iterator]] must be an Object");
2408
- }
2409
- if (!IsCallable(completion) && !(completion instanceof CompletionRecord)) {
2410
- throw new $TypeError("Assertion failed: completion is not a thunk representing a Completion Record, nor a Completion Record instance");
2411
- }
2412
- var completionThunk = completion instanceof CompletionRecord ? function() {
2413
- return completion["?"]();
2414
- } : completion;
2415
- var iterator = iteratorRecord["[[Iterator]]"];
2416
- var iteratorReturn;
2417
- try {
2418
- iteratorReturn = GetMethod(iterator, "return");
2419
- } catch (e) {
2420
- completionThunk();
2421
- completionThunk = null;
2422
- throw e;
2423
- }
2424
- if (typeof iteratorReturn === "undefined") {
2425
- return completionThunk();
2426
- }
2427
- var innerResult;
2428
- try {
2429
- innerResult = Call(iteratorReturn, iterator, []);
2430
- } catch (e) {
2431
- completionThunk();
2432
- completionThunk = null;
2433
- throw e;
2434
- }
2435
- var completionRecord = completionThunk();
2436
- completionThunk = null;
2437
- if (!isObject(innerResult)) {
2438
- throw new $TypeError("iterator .return must return an object");
2439
- }
2440
- return completionRecord;
2441
- };
2442
- }
2443
- });
2444
-
2445
- // node_modules/es-abstract/2024/ToBoolean.js
2446
- var require_ToBoolean = __commonJS({
2447
- "node_modules/es-abstract/2024/ToBoolean.js"(exports, module) {
2448
- "use strict";
2449
- module.exports = function ToBoolean(value) {
2450
- return !!value;
2451
- };
2452
- }
2453
- });
2454
-
2455
- // node_modules/es-abstract/2024/IteratorComplete.js
2456
- var require_IteratorComplete = __commonJS({
2457
- "node_modules/es-abstract/2024/IteratorComplete.js"(exports, module) {
2458
- "use strict";
2459
- var $TypeError = require_type();
2460
- var Get = require_Get();
2461
- var ToBoolean = require_ToBoolean();
2462
- var isObject = require_isObject();
2463
- module.exports = function IteratorComplete(iterResult) {
2464
- if (!isObject(iterResult)) {
2465
- throw new $TypeError("Assertion failed: Type(iterResult) is not Object");
2466
- }
2467
- return ToBoolean(Get(iterResult, "done"));
2468
- };
2469
- }
2470
- });
2471
-
2472
- // node_modules/es-abstract/2024/IteratorNext.js
2473
- var require_IteratorNext = __commonJS({
2474
- "node_modules/es-abstract/2024/IteratorNext.js"(exports, module) {
2475
- "use strict";
2476
- var $TypeError = require_type();
2477
- var Call = require_Call();
2478
- var isObject = require_isObject();
2479
- var isIteratorRecord = require_iterator_record();
2480
- module.exports = function IteratorNext(iteratorRecord) {
2481
- if (!isIteratorRecord(iteratorRecord)) {
2482
- throw new $TypeError("Assertion failed: `iteratorRecord` must be an Iterator Record");
2483
- }
2484
- var result;
2485
- if (arguments.length < 2) {
2486
- result = Call(iteratorRecord["[[NextMethod]]"], iteratorRecord["[[Iterator]]"]);
2487
- } else {
2488
- result = Call(iteratorRecord["[[NextMethod]]"], iteratorRecord["[[Iterator]]"], [arguments[1]]);
2489
- }
2490
- if (!isObject(result)) {
2491
- throw new $TypeError("iterator next must return an object");
2492
- }
2493
- return result;
2494
- };
2495
- }
2496
- });
2497
-
2498
- // node_modules/es-abstract/2024/IteratorStepValue.js
2499
- var require_IteratorStepValue = __commonJS({
2500
- "node_modules/es-abstract/2024/IteratorStepValue.js"(exports, module) {
2501
- "use strict";
2502
- var $TypeError = require_type();
2503
- var Get = require_Get();
2504
- var IteratorComplete = require_IteratorComplete();
2505
- var IteratorNext = require_IteratorNext();
2506
- var isIteratorRecord = require_iterator_record();
2507
- module.exports = function IteratorStepValue(iteratorRecord) {
2508
- if (!isIteratorRecord(iteratorRecord)) {
2509
- throw new $TypeError("Assertion failed: `iteratorRecord` must be an Iterator Record");
2510
- }
2511
- var result;
2512
- try {
2513
- result = IteratorNext(iteratorRecord);
2514
- } catch (e) {
2515
- iteratorRecord["[[Done]]"] = true;
2516
- throw e;
2517
- }
2518
- var done;
2519
- try {
2520
- done = IteratorComplete(result);
2521
- } catch (e) {
2522
- iteratorRecord["[[Done]]"] = true;
2523
- throw e;
2524
- }
2525
- if (done) {
2526
- iteratorRecord["[[Done]]"] = true;
2527
- return "DONE";
2528
- }
2529
- var value;
2530
- try {
2531
- value = Get(result, "value");
2532
- } catch (e) {
2533
- iteratorRecord["[[Done]]"] = true;
2534
- throw e;
2535
- }
2536
- return value;
2537
- };
2538
- }
2539
- });
2540
-
2541
- // node_modules/es-abstract/2024/NormalCompletion.js
2542
- var require_NormalCompletion = __commonJS({
2543
- "node_modules/es-abstract/2024/NormalCompletion.js"(exports, module) {
2544
- "use strict";
2545
- var CompletionRecord = require_CompletionRecord();
2546
- module.exports = function NormalCompletion(value) {
2547
- return new CompletionRecord("normal", value);
2548
- };
2549
- }
2550
- });
2551
-
2552
- // node_modules/es-abstract/2024/ThrowCompletion.js
2553
- var require_ThrowCompletion = __commonJS({
2554
- "node_modules/es-abstract/2024/ThrowCompletion.js"(exports, module) {
2555
- "use strict";
2556
- var CompletionRecord = require_CompletionRecord();
2557
- module.exports = function ThrowCompletion(argument) {
2558
- return new CompletionRecord("throw", argument);
2559
- };
2560
- }
2561
- });
2562
-
2563
- // node_modules/es-iterator-helpers/Iterator.prototype.find/implementation.js
2564
- var require_implementation3 = __commonJS({
2565
- "node_modules/es-iterator-helpers/Iterator.prototype.find/implementation.js"(exports, module) {
2566
- "use strict";
2567
- var $TypeError = require_type();
2568
- var Call = require_Call();
2569
- var GetIteratorDirect = require_GetIteratorDirect();
2570
- var IsCallable = require_IsCallable();
2571
- var IteratorClose = require_IteratorClose();
2572
- var IteratorStepValue = require_IteratorStepValue();
2573
- var NormalCompletion = require_NormalCompletion();
2574
- var ThrowCompletion = require_ThrowCompletion();
2575
- var ToBoolean = require_ToBoolean();
2576
- var Type = require_Type2();
2577
- module.exports = function find(predicate) {
2578
- if (this instanceof find) {
2579
- throw new $TypeError("`find` is not a constructor");
2580
- }
2581
- var O = this;
2582
- if (Type(O) !== "Object") {
2583
- throw new $TypeError("`this` value must be an Object");
2584
- }
2585
- if (!IsCallable(predicate)) {
2586
- throw new $TypeError("`predicate` must be a function");
2587
- }
2588
- var iterated = GetIteratorDirect(O);
2589
- var counter = 0;
2590
- while (true) {
2591
- var value = IteratorStepValue(iterated);
2592
- if (iterated["[[Done]]"]) {
2593
- return void 0;
2594
- }
2595
- var result;
2596
- try {
2597
- result = Call(predicate, void 0, [value, counter]);
2598
- } catch (e) {
2599
- IteratorClose(
2600
- iterated,
2601
- ThrowCompletion(e)
2602
- );
2603
- } finally {
2604
- counter += 1;
2605
- }
2606
- if (ToBoolean(result)) {
2607
- return IteratorClose(
2608
- iterated,
2609
- NormalCompletion(value)
2610
- );
2611
- }
2612
- }
2613
- };
2614
- }
2615
- });
2616
-
2617
- // node_modules/es-iterator-helpers/Iterator.prototype.find/polyfill.js
2618
- var require_polyfill = __commonJS({
2619
- "node_modules/es-iterator-helpers/Iterator.prototype.find/polyfill.js"(exports, module) {
2620
- "use strict";
2621
- var implementation = require_implementation3();
2622
- module.exports = function getPolyfill() {
2623
- return typeof Iterator === "function" && typeof Iterator.prototype.find === "function" ? Iterator.prototype.find : implementation;
2624
- };
2625
- }
2626
- });
2627
-
2628
- // node_modules/functions-have-names/index.js
2629
- var require_functions_have_names = __commonJS({
2630
- "node_modules/functions-have-names/index.js"(exports, module) {
2631
- "use strict";
2632
- var functionsHaveNames = function functionsHaveNames2() {
2633
- return typeof function f() {
2634
- }.name === "string";
2635
- };
2636
- var gOPD = Object.getOwnPropertyDescriptor;
2637
- if (gOPD) {
2638
- try {
2639
- gOPD([], "length");
2640
- } catch (e) {
2641
- gOPD = null;
2642
- }
2643
- }
2644
- functionsHaveNames.functionsHaveConfigurableNames = function functionsHaveConfigurableNames() {
2645
- if (!functionsHaveNames() || !gOPD) {
2646
- return false;
2647
- }
2648
- var desc = gOPD(function() {
2649
- }, "name");
2650
- return !!desc && !!desc.configurable;
2651
- };
2652
- var $bind = Function.prototype.bind;
2653
- functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames() {
2654
- return functionsHaveNames() && typeof $bind === "function" && function f() {
2655
- }.bind().name !== "";
2656
- };
2657
- module.exports = functionsHaveNames;
2658
- }
2659
- });
2660
-
2661
- // node_modules/set-function-name/index.js
2662
- var require_set_function_name = __commonJS({
2663
- "node_modules/set-function-name/index.js"(exports, module) {
2664
- "use strict";
2665
- var define = require_define_data_property();
2666
- var hasDescriptors = require_has_property_descriptors()();
2667
- var functionsHaveConfigurableNames = require_functions_have_names().functionsHaveConfigurableNames();
2668
- var $TypeError = require_type();
2669
- module.exports = function setFunctionName(fn, name) {
2670
- if (typeof fn !== "function") {
2671
- throw new $TypeError("`fn` is not a function");
2672
- }
2673
- var loose = arguments.length > 2 && !!arguments[2];
2674
- if (!loose || functionsHaveConfigurableNames) {
2675
- if (hasDescriptors) {
2676
- define(
2677
- /** @type {Parameters<define>[0]} */
2678
- fn,
2679
- "name",
2680
- name,
2681
- true,
2682
- true
2683
- );
2684
- } else {
2685
- define(
2686
- /** @type {Parameters<define>[0]} */
2687
- fn,
2688
- "name",
2689
- name
2690
- );
2691
- }
2692
- }
2693
- return fn;
2694
- };
2695
- }
2696
- });
2697
-
2698
- // node_modules/iterator.prototype/index.js
2699
- var require_iterator = __commonJS({
2700
- "node_modules/iterator.prototype/index.js"(exports, module) {
2701
- "use strict";
2702
- var GetIntrinsic = require_get_intrinsic();
2703
- var gPO = require_get_proto();
2704
- var hasSymbols = require_has_symbols();
2705
- var setFunctionName = require_set_function_name();
2706
- var defineDataProperty = require_define_data_property();
2707
- var $Object = require_es_object_atoms();
2708
- var arrayIterProto = GetIntrinsic("%ArrayIteratorPrototype%", true);
2709
- var iterProto = arrayIterProto && gPO(arrayIterProto);
2710
- var result = iterProto !== $Object.prototype && iterProto || {};
2711
- if (hasSymbols()) {
2712
- if (!(Symbol.iterator in result)) {
2713
- iter = setFunctionName(function SymbolIterator() {
2714
- return this;
2715
- }, "[Symbol.iterator]", true);
2716
- defineDataProperty(result, Symbol.iterator, iter, true);
2717
- }
2718
- }
2719
- var iter;
2720
- module.exports = result;
2721
- }
2722
- });
2723
-
2724
- // node_modules/es-iterator-helpers/Iterator.prototype/implementation.js
2725
- var require_implementation4 = __commonJS({
2726
- "node_modules/es-iterator-helpers/Iterator.prototype/implementation.js"(exports, module) {
2727
- "use strict";
2728
- module.exports = require_iterator();
2729
- }
2730
- });
2731
-
2732
- // node_modules/es-iterator-helpers/Iterator.prototype.find/shim.js
2733
- var require_shim = __commonJS({
2734
- "node_modules/es-iterator-helpers/Iterator.prototype.find/shim.js"(exports, module) {
2735
- "use strict";
2736
- var define = require_define_properties();
2737
- var getPolyfill = require_polyfill();
2738
- var $IteratorPrototype = require_implementation4();
2739
- module.exports = function shimIteratorPrototypeFind() {
2740
- var polyfill = getPolyfill();
2741
- define(
2742
- $IteratorPrototype,
2743
- { find: polyfill },
2744
- { find: function() {
2745
- return $IteratorPrototype.find !== polyfill;
2746
- } }
2747
- );
2748
- return polyfill;
2749
- };
2750
- }
2751
- });
2752
-
2753
- // node_modules/es-abstract/2024/CreateIterResultObject.js
2754
- var require_CreateIterResultObject = __commonJS({
2755
- "node_modules/es-abstract/2024/CreateIterResultObject.js"(exports, module) {
2756
- "use strict";
2757
- var $TypeError = require_type();
2758
- module.exports = function CreateIterResultObject(value, done) {
2759
- if (typeof done !== "boolean") {
2760
- throw new $TypeError("Assertion failed: Type(done) is not Boolean");
2761
- }
2762
- return {
2763
- value,
2764
- done
2765
- };
2766
- };
2767
- }
2768
- });
2769
-
2770
- // node_modules/es-iterator-helpers/aos/GeneratorStart.js
2771
- var require_GeneratorStart = __commonJS({
2772
- "node_modules/es-iterator-helpers/aos/GeneratorStart.js"(exports, module) {
2773
- "use strict";
2774
- var $TypeError = require_type();
2775
- var CreateIterResultObject = require_CreateIterResultObject();
2776
- var IsCallable = require_IsCallable();
2777
- var Type = require_Type2();
2778
- var SLOT = require_internal_slot();
2779
- module.exports = function GeneratorStart(generator, closure) {
2780
- SLOT.assert(generator, "[[GeneratorState]]");
2781
- SLOT.assert(generator, "[[GeneratorContext]]");
2782
- SLOT.assert(generator, "[[GeneratorBrand]]");
2783
- SLOT.assert(generator, "[[Sentinel]]");
2784
- SLOT.assert(generator, "[[CloseIfAbrupt]]");
2785
- if (!IsCallable(closure) || closure.length !== 0) {
2786
- throw new $TypeError("`closure` must be a function that takes no arguments");
2787
- }
2788
- var sentinel = SLOT.get(closure, "[[Sentinel]]");
2789
- if (Type(sentinel) !== "Object") {
2790
- throw new $TypeError("`closure.[[Sentinel]]` must be an object");
2791
- }
2792
- SLOT.set(generator, "[[GeneratorContext]]", function() {
2793
- try {
2794
- var result = closure();
2795
- if (result === sentinel) {
2796
- SLOT.set(generator, "[[GeneratorState]]", "completed");
2797
- SLOT.set(generator, "[[GeneratorContext]]", null);
2798
- return CreateIterResultObject(void 0, true);
2799
- }
2800
- SLOT.set(generator, "[[GeneratorState]]", "suspendedYield");
2801
- return CreateIterResultObject(result, false);
2802
- } catch (e) {
2803
- SLOT.set(generator, "[[GeneratorState]]", "completed");
2804
- SLOT.set(generator, "[[GeneratorContext]]", null);
2805
- throw e;
2806
- }
2807
- });
2808
- SLOT.set(generator, "[[GeneratorState]]", "suspendedStart");
2809
- };
2810
- }
2811
- });
2812
-
2813
- // node_modules/es-abstract/helpers/forEach.js
2814
- var require_forEach = __commonJS({
2815
- "node_modules/es-abstract/helpers/forEach.js"(exports, module) {
2816
- "use strict";
2817
- module.exports = function forEach(array, callback) {
2818
- for (var i = 0; i < array.length; i += 1) {
2819
- callback(array[i], i, array);
2820
- }
2821
- };
2822
- }
2823
- });
2824
-
2825
- // node_modules/has-proto/index.js
2826
- var require_has_proto = __commonJS({
2827
- "node_modules/has-proto/index.js"(exports, module) {
2828
- "use strict";
2829
- var test = {
2830
- __proto__: null,
2831
- foo: {}
2832
- };
2833
- var result = { __proto__: test }.foo === test.foo && !(test instanceof Object);
2834
- module.exports = function hasProto() {
2835
- return result;
2836
- };
2837
- }
2838
- });
2839
-
2840
- // node_modules/es-abstract/2024/OrdinaryObjectCreate.js
2841
- var require_OrdinaryObjectCreate = __commonJS({
2842
- "node_modules/es-abstract/2024/OrdinaryObjectCreate.js"(exports, module) {
2843
- "use strict";
2844
- var GetIntrinsic = require_get_intrinsic();
2845
- var $ObjectCreate = GetIntrinsic("%Object.create%", true);
2846
- var $TypeError = require_type();
2847
- var $SyntaxError = require_syntax();
2848
- var IsArray = require_IsArray2();
2849
- var forEach = require_forEach();
2850
- var isObject = require_isObject();
2851
- var SLOT = require_internal_slot();
2852
- var hasProto = require_has_proto()();
2853
- module.exports = function OrdinaryObjectCreate(proto) {
2854
- if (proto !== null && !isObject(proto)) {
2855
- throw new $TypeError("Assertion failed: `proto` must be null or an object");
2856
- }
2857
- var additionalInternalSlotsList = arguments.length < 2 ? [] : arguments[1];
2858
- if (!IsArray(additionalInternalSlotsList)) {
2859
- throw new $TypeError("Assertion failed: `additionalInternalSlotsList` must be an Array");
2860
- }
2861
- var O;
2862
- if ($ObjectCreate) {
2863
- O = $ObjectCreate(proto);
2864
- } else if (hasProto) {
2865
- O = { __proto__: proto };
2866
- } else {
2867
- if (proto === null) {
2868
- throw new $SyntaxError("native Object.create support is required to create null objects");
2869
- }
2870
- var T = function T2() {
2871
- };
2872
- T.prototype = proto;
2873
- O = new T();
2874
- }
2875
- if (additionalInternalSlotsList.length > 0) {
2876
- forEach(additionalInternalSlotsList, function(slot) {
2877
- SLOT.set(O, slot, void 0);
2878
- });
2879
- }
2880
- return O;
2881
- };
2882
- }
2883
- });
2884
-
2885
- // node_modules/es-abstract/helpers/every.js
2886
- var require_every = __commonJS({
2887
- "node_modules/es-abstract/helpers/every.js"(exports, module) {
2888
- "use strict";
2889
- module.exports = function every(array, predicate) {
2890
- for (var i = 0; i < array.length; i += 1) {
2891
- if (!predicate(array[i], i, array)) {
2892
- return false;
2893
- }
2894
- }
2895
- return true;
2896
- };
2897
- }
2898
- });
2899
-
2900
- // node_modules/set-function-length/index.js
2901
- var require_set_function_length = __commonJS({
2902
- "node_modules/set-function-length/index.js"(exports, module) {
2903
- "use strict";
2904
- var GetIntrinsic = require_get_intrinsic();
2905
- var define = require_define_data_property();
2906
- var hasDescriptors = require_has_property_descriptors()();
2907
- var gOPD = require_gopd();
2908
- var $TypeError = require_type();
2909
- var $floor = GetIntrinsic("%Math.floor%");
2910
- module.exports = function setFunctionLength(fn, length) {
2911
- if (typeof fn !== "function") {
2912
- throw new $TypeError("`fn` is not a function");
2913
- }
2914
- if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) {
2915
- throw new $TypeError("`length` must be a positive 32-bit integer");
2916
- }
2917
- var loose = arguments.length > 2 && !!arguments[2];
2918
- var functionLengthIsConfigurable = true;
2919
- var functionLengthIsWritable = true;
2920
- if ("length" in fn && gOPD) {
2921
- var desc = gOPD(fn, "length");
2922
- if (desc && !desc.configurable) {
2923
- functionLengthIsConfigurable = false;
2924
- }
2925
- if (desc && !desc.writable) {
2926
- functionLengthIsWritable = false;
2927
- }
2928
- }
2929
- if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
2930
- if (hasDescriptors) {
2931
- define(
2932
- /** @type {Parameters<define>[0]} */
2933
- fn,
2934
- "length",
2935
- length,
2936
- true,
2937
- true
2938
- );
2939
- } else {
2940
- define(
2941
- /** @type {Parameters<define>[0]} */
2942
- fn,
2943
- "length",
2944
- length
2945
- );
2946
- }
2947
- }
2948
- return fn;
2949
- };
2950
- }
2951
- });
2952
-
2953
- // node_modules/call-bind-apply-helpers/applyBind.js
2954
- var require_applyBind = __commonJS({
2955
- "node_modules/call-bind-apply-helpers/applyBind.js"(exports, module) {
2956
- "use strict";
2957
- var bind = require_function_bind();
2958
- var $apply = require_functionApply();
2959
- var actualApply = require_actualApply();
2960
- module.exports = function applyBind() {
2961
- return actualApply(bind, $apply, arguments);
2962
- };
2963
- }
2964
- });
2965
-
2966
- // node_modules/call-bind/index.js
2967
- var require_call_bind = __commonJS({
2968
- "node_modules/call-bind/index.js"(exports, module) {
2969
- "use strict";
2970
- var setFunctionLength = require_set_function_length();
2971
- var $defineProperty = require_es_define_property();
2972
- var callBindBasic = require_call_bind_apply_helpers();
2973
- var applyBind = require_applyBind();
2974
- module.exports = function callBind(originalFunction) {
2975
- var func = callBindBasic(arguments);
2976
- var adjustedLength = originalFunction.length - (arguments.length - 1);
2977
- return setFunctionLength(
2978
- func,
2979
- 1 + (adjustedLength > 0 ? adjustedLength : 0),
2980
- true
2981
- );
2982
- };
2983
- if ($defineProperty) {
2984
- $defineProperty(module.exports, "apply", { value: applyBind });
2985
- } else {
2986
- module.exports.apply = applyBind;
2987
- }
2988
- }
2989
- });
2990
-
2991
- // node_modules/isarray/index.js
2992
- var require_isarray = __commonJS({
2993
- "node_modules/isarray/index.js"(exports, module) {
2994
- var toString = {}.toString;
2995
- module.exports = Array.isArray || function(arr) {
2996
- return toString.call(arr) == "[object Array]";
2997
- };
2998
- }
2999
- });
3000
-
3001
- // node_modules/safe-array-concat/index.js
3002
- var require_safe_array_concat = __commonJS({
3003
- "node_modules/safe-array-concat/index.js"(exports, module) {
3004
- "use strict";
3005
- var GetIntrinsic = require_get_intrinsic();
3006
- var $concat = GetIntrinsic("%Array.prototype.concat%");
3007
- var callBind = require_call_bind();
3008
- var callBound = require_call_bound();
3009
- var $slice = callBound("Array.prototype.slice");
3010
- var hasSymbols = require_shams()();
3011
- var isConcatSpreadable = hasSymbols && Symbol.isConcatSpreadable;
3012
- var empty = [];
3013
- var $concatApply = isConcatSpreadable ? callBind.apply($concat, empty) : null;
3014
- var isArray = isConcatSpreadable ? (
3015
- /** @type {(value: unknown) => value is unknown[]} */
3016
- require_isarray()
3017
- ) : null;
3018
- module.exports = isConcatSpreadable ? function safeArrayConcat(item) {
3019
- for (var i = 0; i < arguments.length; i += 1) {
3020
- var arg = arguments[i];
3021
- if (arg && typeof arg === "object" && typeof arg[isConcatSpreadable] === "boolean") {
3022
- if (!empty[isConcatSpreadable]) {
3023
- empty[isConcatSpreadable] = true;
3024
- }
3025
- var arr = isArray(arg) ? $slice(arg) : [arg];
3026
- arr[isConcatSpreadable] = true;
3027
- arguments[i] = arr;
3028
- }
3029
- }
3030
- return $concatApply(arguments);
3031
- } : callBind($concat, empty);
3032
- }
3033
- });
3034
-
3035
- // node_modules/es-iterator-helpers/aos/CreateIteratorFromClosure.js
3036
- var require_CreateIteratorFromClosure = __commonJS({
3037
- "node_modules/es-iterator-helpers/aos/CreateIteratorFromClosure.js"(exports, module) {
3038
- "use strict";
3039
- var $TypeError = require_type();
3040
- var GeneratorStart = require_GeneratorStart();
3041
- var IsArray = require_IsArray2();
3042
- var IsCallable = require_IsCallable();
3043
- var OrdinaryObjectCreate = require_OrdinaryObjectCreate();
3044
- var every = require_every();
3045
- var SLOT = require_internal_slot();
3046
- var safeConcat = require_safe_array_concat();
3047
- var isString = function isString2(slot) {
3048
- return typeof slot === "string";
3049
- };
3050
- module.exports = function CreateIteratorFromClosure(closure, generatorBrand, proto) {
3051
- if (!IsCallable(closure)) {
3052
- throw new $TypeError("`closure` must be a function");
3053
- }
3054
- if (typeof generatorBrand !== "string") {
3055
- throw new $TypeError("`generatorBrand` must be a string");
3056
- }
3057
- var extraSlots = arguments.length > 3 ? arguments[3] : [];
3058
- if (arguments.length > 3) {
3059
- if (!IsArray(extraSlots) || !every(extraSlots, isString)) {
3060
- throw new $TypeError("`extraSlots` must be a List of String internal slot names");
3061
- }
3062
- }
3063
- var internalSlotsList = safeConcat(extraSlots, ["[[GeneratorContext]]", "[[GeneratorBrand]]", "[[GeneratorState]]"]);
3064
- var generator = OrdinaryObjectCreate(proto, internalSlotsList);
3065
- SLOT.set(generator, "[[GeneratorBrand]]", generatorBrand);
3066
- SLOT.assert(closure, "[[Sentinel]]");
3067
- SLOT.set(generator, "[[Sentinel]]", SLOT.get(closure, "[[Sentinel]]"));
3068
- SLOT.assert(closure, "[[CloseIfAbrupt]]");
3069
- SLOT.set(generator, "[[CloseIfAbrupt]]", SLOT.get(closure, "[[CloseIfAbrupt]]"));
3070
- GeneratorStart(generator, closure);
3071
- return generator;
3072
- };
3073
- }
3074
- });
3075
-
3076
- // node_modules/es-abstract/helpers/isLeadingSurrogate.js
3077
- var require_isLeadingSurrogate = __commonJS({
3078
- "node_modules/es-abstract/helpers/isLeadingSurrogate.js"(exports, module) {
3079
- "use strict";
3080
- module.exports = function isLeadingSurrogate(charCode) {
3081
- return typeof charCode === "number" && charCode >= 55296 && charCode <= 56319;
3082
- };
3083
- }
3084
- });
3085
-
3086
- // node_modules/es-abstract/helpers/isTrailingSurrogate.js
3087
- var require_isTrailingSurrogate = __commonJS({
3088
- "node_modules/es-abstract/helpers/isTrailingSurrogate.js"(exports, module) {
3089
- "use strict";
3090
- module.exports = function isTrailingSurrogate(charCode) {
3091
- return typeof charCode === "number" && charCode >= 56320 && charCode <= 57343;
3092
- };
3093
- }
3094
- });
3095
-
3096
- // node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js
3097
- var require_UTF16SurrogatePairToCodePoint = __commonJS({
3098
- "node_modules/es-abstract/2024/UTF16SurrogatePairToCodePoint.js"(exports, module) {
3099
- "use strict";
3100
- var GetIntrinsic = require_get_intrinsic();
3101
- var $TypeError = require_type();
3102
- var $fromCharCode = GetIntrinsic("%String.fromCharCode%");
3103
- var isLeadingSurrogate = require_isLeadingSurrogate();
3104
- var isTrailingSurrogate = require_isTrailingSurrogate();
3105
- module.exports = function UTF16SurrogatePairToCodePoint(lead, trail) {
3106
- if (!isLeadingSurrogate(lead) || !isTrailingSurrogate(trail)) {
3107
- throw new $TypeError("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");
3108
- }
3109
- return $fromCharCode(lead) + $fromCharCode(trail);
3110
- };
3111
- }
3112
- });
3113
-
3114
- // node_modules/es-abstract/2024/CodePointAt.js
3115
- var require_CodePointAt = __commonJS({
3116
- "node_modules/es-abstract/2024/CodePointAt.js"(exports, module) {
3117
- "use strict";
3118
- var $TypeError = require_type();
3119
- var callBound = require_call_bound();
3120
- var isLeadingSurrogate = require_isLeadingSurrogate();
3121
- var isTrailingSurrogate = require_isTrailingSurrogate();
3122
- var UTF16SurrogatePairToCodePoint = require_UTF16SurrogatePairToCodePoint();
3123
- var $charAt = callBound("String.prototype.charAt");
3124
- var $charCodeAt = callBound("String.prototype.charCodeAt");
3125
- module.exports = function CodePointAt(string, position) {
3126
- if (typeof string !== "string") {
3127
- throw new $TypeError("Assertion failed: `string` must be a String");
3128
- }
3129
- var size = string.length;
3130
- if (position < 0 || position >= size) {
3131
- throw new $TypeError("Assertion failed: `position` must be >= 0, and < the length of `string`");
3132
- }
3133
- var first = $charCodeAt(string, position);
3134
- var cp = $charAt(string, position);
3135
- var firstIsLeading = isLeadingSurrogate(first);
3136
- var firstIsTrailing = isTrailingSurrogate(first);
3137
- if (!firstIsLeading && !firstIsTrailing) {
3138
- return {
3139
- "[[CodePoint]]": cp,
3140
- "[[CodeUnitCount]]": 1,
3141
- "[[IsUnpairedSurrogate]]": false
3142
- };
3143
- }
3144
- if (firstIsTrailing || position + 1 === size) {
3145
- return {
3146
- "[[CodePoint]]": cp,
3147
- "[[CodeUnitCount]]": 1,
3148
- "[[IsUnpairedSurrogate]]": true
3149
- };
3150
- }
3151
- var second = $charCodeAt(string, position + 1);
3152
- if (!isTrailingSurrogate(second)) {
3153
- return {
3154
- "[[CodePoint]]": cp,
3155
- "[[CodeUnitCount]]": 1,
3156
- "[[IsUnpairedSurrogate]]": true
3157
- };
3158
- }
3159
- return {
3160
- "[[CodePoint]]": UTF16SurrogatePairToCodePoint(first, second),
3161
- "[[CodeUnitCount]]": 2,
3162
- "[[IsUnpairedSurrogate]]": false
3163
- };
3164
- };
3165
- }
3166
- });
3167
-
3168
- // node_modules/math-intrinsics/isFinite.js
3169
- var require_isFinite = __commonJS({
3170
- "node_modules/math-intrinsics/isFinite.js"(exports, module) {
3171
- "use strict";
3172
- var $isNaN = require_isNaN();
3173
- module.exports = function isFinite2(x) {
3174
- return (typeof x === "number" || typeof x === "bigint") && !$isNaN(x) && x !== Infinity && x !== -Infinity;
3175
- };
3176
- }
3177
- });
3178
-
3179
- // node_modules/math-intrinsics/isInteger.js
3180
- var require_isInteger = __commonJS({
3181
- "node_modules/math-intrinsics/isInteger.js"(exports, module) {
3182
- "use strict";
3183
- var $abs = require_abs();
3184
- var $floor = require_floor();
3185
- var $isNaN = require_isNaN();
3186
- var $isFinite = require_isFinite();
3187
- module.exports = function isInteger(argument) {
3188
- if (typeof argument !== "number" || $isNaN(argument) || !$isFinite(argument)) {
3189
- return false;
3190
- }
3191
- var absValue = $abs(argument);
3192
- return $floor(absValue) === absValue;
3193
- };
3194
- }
3195
- });
3196
-
3197
- // node_modules/math-intrinsics/constants/maxSafeInteger.js
3198
- var require_maxSafeInteger = __commonJS({
3199
- "node_modules/math-intrinsics/constants/maxSafeInteger.js"(exports, module) {
3200
- "use strict";
3201
- module.exports = /** @type {import('./maxSafeInteger')} */
3202
- Number.MAX_SAFE_INTEGER || 9007199254740991;
3203
- }
3204
- });
3205
-
3206
- // node_modules/es-abstract/2024/AdvanceStringIndex.js
3207
- var require_AdvanceStringIndex = __commonJS({
3208
- "node_modules/es-abstract/2024/AdvanceStringIndex.js"(exports, module) {
3209
- "use strict";
3210
- var CodePointAt = require_CodePointAt();
3211
- var $TypeError = require_type();
3212
- var isInteger = require_isInteger();
3213
- var MAX_SAFE_INTEGER = require_maxSafeInteger();
3214
- module.exports = function AdvanceStringIndex(S, index, unicode) {
3215
- if (typeof S !== "string") {
3216
- throw new $TypeError("Assertion failed: `S` must be a String");
3217
- }
3218
- if (!isInteger(index) || index < 0 || index > MAX_SAFE_INTEGER) {
3219
- throw new $TypeError("Assertion failed: `length` must be an integer >= 0 and <= 2**53");
3220
- }
3221
- if (typeof unicode !== "boolean") {
3222
- throw new $TypeError("Assertion failed: `unicode` must be a Boolean");
3223
- }
3224
- if (!unicode) {
3225
- return index + 1;
3226
- }
3227
- var length = S.length;
3228
- if (index + 1 >= length) {
3229
- return index + 1;
3230
- }
3231
- var cp = CodePointAt(S, index);
3232
- return index + cp["[[CodeUnitCount]]"];
3233
- };
3234
- }
3235
- });
3236
-
3237
- // node_modules/has-tostringtag/shams.js
3238
- var require_shams2 = __commonJS({
3239
- "node_modules/has-tostringtag/shams.js"(exports, module) {
3240
- "use strict";
3241
- var hasSymbols = require_shams();
3242
- module.exports = function hasToStringTagShams() {
3243
- return hasSymbols() && !!Symbol.toStringTag;
3244
- };
3245
- }
3246
- });
3247
-
3248
- // node_modules/is-string/index.js
3249
- var require_is_string = __commonJS({
3250
- "node_modules/is-string/index.js"(exports, module) {
3251
- "use strict";
3252
- var callBound = require_call_bound();
3253
- var $strValueOf = callBound("String.prototype.valueOf");
3254
- var tryStringObject = function tryStringObject2(value) {
3255
- try {
3256
- $strValueOf(value);
3257
- return true;
3258
- } catch (e) {
3259
- return false;
3260
- }
3261
- };
3262
- var $toString = callBound("Object.prototype.toString");
3263
- var strClass = "[object String]";
3264
- var hasToStringTag = require_shams2()();
3265
- module.exports = function isString(value) {
3266
- if (typeof value === "string") {
3267
- return true;
3268
- }
3269
- if (!value || typeof value !== "object") {
3270
- return false;
3271
- }
3272
- return hasToStringTag ? tryStringObject(value) : $toString(value) === strClass;
3273
- };
3274
- }
3275
- });
3276
-
3277
- // node_modules/es-abstract/helpers/getIteratorMethod.js
3278
- var require_getIteratorMethod = __commonJS({
3279
- "node_modules/es-abstract/helpers/getIteratorMethod.js"(exports, module) {
3280
- "use strict";
3281
- var hasSymbols = require_has_symbols()();
3282
- var GetIntrinsic = require_get_intrinsic();
3283
- var callBound = require_call_bound();
3284
- var isString = require_is_string();
3285
- var $iterator = GetIntrinsic("%Symbol.iterator%", true);
3286
- var $stringSlice = callBound("String.prototype.slice");
3287
- var $String = GetIntrinsic("%String%");
3288
- module.exports = function getIteratorMethod(ES, iterable) {
3289
- var usingIterator;
3290
- if (hasSymbols) {
3291
- usingIterator = ES.GetMethod(iterable, $iterator);
3292
- } else if (ES.IsArray(iterable)) {
3293
- usingIterator = function() {
3294
- var i = -1;
3295
- var arr = this;
3296
- return {
3297
- next: function() {
3298
- i += 1;
3299
- return {
3300
- done: i >= arr.length,
3301
- value: arr[i]
3302
- };
3303
- }
3304
- };
3305
- };
3306
- } else if (isString(iterable)) {
3307
- usingIterator = function() {
3308
- var i = 0;
3309
- return {
3310
- next: function() {
3311
- var nextIndex = ES.AdvanceStringIndex($String(iterable), i, true);
3312
- var value = $stringSlice(iterable, i, nextIndex);
3313
- i = nextIndex;
3314
- return {
3315
- done: nextIndex > iterable.length,
3316
- value
3317
- };
3318
- }
3319
- };
3320
- };
3321
- }
3322
- return usingIterator;
3323
- };
3324
- }
3325
- });
3326
-
3327
- // node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js
3328
- var require_GetIteratorFlattenable = __commonJS({
3329
- "node_modules/es-iterator-helpers/aos/GetIteratorFlattenable.js"(exports, module) {
3330
- "use strict";
3331
- var $TypeError = require_type();
3332
- var AdvanceStringIndex = require_AdvanceStringIndex();
3333
- var Call = require_Call();
3334
- var GetIteratorDirect = require_GetIteratorDirect();
3335
- var GetMethod = require_GetMethod();
3336
- var IsArray = require_IsArray2();
3337
- var Type = require_Type2();
3338
- var getIteratorMethod = require_getIteratorMethod();
3339
- module.exports = function GetIteratorFlattenable(obj, stringHandling) {
3340
- if (stringHandling !== "REJECT-STRINGS" && stringHandling !== "ITERATE-STRINGS") {
3341
- throw new $TypeError('Assertion failed: `stringHandling` must be "REJECT-STRINGS" or "ITERATE-STRINGS"');
3342
- }
3343
- if (Type(obj) !== "Object") {
3344
- if (stringHandling === "REJECT-STRINGS" || typeof obj !== "string") {
3345
- throw new $TypeError("obj must be an Object");
3346
- }
3347
- }
3348
- var method = void 0;
3349
- method = getIteratorMethod(
3350
- {
3351
- AdvanceStringIndex,
3352
- GetMethod,
3353
- IsArray
3354
- },
3355
- obj
3356
- );
3357
- var iterator;
3358
- if (typeof method === "undefined") {
3359
- iterator = obj;
3360
- } else {
3361
- iterator = Call(method, obj);
3362
- }
3363
- if (Type(iterator) !== "Object") {
3364
- throw new $TypeError("iterator must be an Object");
3365
- }
3366
- return GetIteratorDirect(iterator);
3367
- };
3368
- }
3369
- });
3370
-
3371
- // node_modules/es-set-tostringtag/index.js
3372
- var require_es_set_tostringtag = __commonJS({
3373
- "node_modules/es-set-tostringtag/index.js"(exports, module) {
3374
- "use strict";
3375
- var GetIntrinsic = require_get_intrinsic();
3376
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
3377
- var hasToStringTag = require_shams2()();
3378
- var hasOwn = require_hasown();
3379
- var $TypeError = require_type();
3380
- var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
3381
- module.exports = function setToStringTag(object, value) {
3382
- var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
3383
- var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
3384
- if (typeof overrideIfSet !== "undefined" && typeof overrideIfSet !== "boolean" || typeof nonConfigurable !== "undefined" && typeof nonConfigurable !== "boolean") {
3385
- throw new $TypeError("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");
3386
- }
3387
- if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
3388
- if ($defineProperty) {
3389
- $defineProperty(object, toStringTag, {
3390
- configurable: !nonConfigurable,
3391
- enumerable: false,
3392
- value,
3393
- writable: false
3394
- });
3395
- } else {
3396
- object[toStringTag] = value;
3397
- }
3398
- }
3399
- };
3400
- }
3401
- });
3402
-
3403
- // node_modules/es-iterator-helpers/aos/GeneratorValidate.js
3404
- var require_GeneratorValidate = __commonJS({
3405
- "node_modules/es-iterator-helpers/aos/GeneratorValidate.js"(exports, module) {
3406
- "use strict";
3407
- var $TypeError = require_type();
3408
- var SLOT = require_internal_slot();
3409
- module.exports = function GeneratorValidate(generator, generatorBrand) {
3410
- SLOT.assert(generator, "[[GeneratorState]]");
3411
- SLOT.assert(generator, "[[GeneratorBrand]]");
3412
- var brand = SLOT.get(generator, "[[GeneratorBrand]]");
3413
- if (brand !== generatorBrand) {
3414
- throw new $TypeError("Assertion failed: generator brand is unexpected: " + brand);
3415
- }
3416
- SLOT.assert(generator, "[[GeneratorContext]]");
3417
- var state = SLOT.get(generator, "[[GeneratorState]]");
3418
- if (state === "executing") {
3419
- throw new $TypeError("generator is executing");
3420
- }
3421
- return state;
3422
- };
3423
- }
3424
- });
3425
-
3426
- // node_modules/es-iterator-helpers/aos/GeneratorResume.js
3427
- var require_GeneratorResume = __commonJS({
3428
- "node_modules/es-iterator-helpers/aos/GeneratorResume.js"(exports, module) {
3429
- "use strict";
3430
- var $TypeError = require_type();
3431
- var CreateIterResultObject = require_CreateIterResultObject();
3432
- var GeneratorValidate = require_GeneratorValidate();
3433
- var SLOT = require_internal_slot();
3434
- module.exports = function GeneratorResume(generator, value, generatorBrand) {
3435
- var state = GeneratorValidate(generator, generatorBrand);
3436
- if (state === "completed") {
3437
- return CreateIterResultObject(void 0, true);
3438
- }
3439
- if (state !== "suspendedStart" && state !== "suspendedYield") {
3440
- throw new $TypeError("Assertion failed: generator state is unexpected: " + state);
3441
- }
3442
- var genContext = SLOT.get(generator, "[[GeneratorContext]]");
3443
- SLOT.set(generator, "[[GeneratorState]]", "executing");
3444
- var result = genContext(value);
3445
- return result;
3446
- };
3447
- }
3448
- });
3449
-
3450
- // node_modules/es-iterator-helpers/aos/GeneratorResumeAbrupt.js
3451
- var require_GeneratorResumeAbrupt = __commonJS({
3452
- "node_modules/es-iterator-helpers/aos/GeneratorResumeAbrupt.js"(exports, module) {
3453
- "use strict";
3454
- var $TypeError = require_type();
3455
- var CompletionRecord = require_CompletionRecord();
3456
- var CreateIterResultObject = require_CreateIterResultObject();
3457
- var GeneratorValidate = require_GeneratorValidate();
3458
- var NormalCompletion = require_NormalCompletion();
3459
- var SLOT = require_internal_slot();
3460
- module.exports = function GeneratorResumeAbrupt(generator, abruptCompletion, generatorBrand) {
3461
- if (!(abruptCompletion instanceof CompletionRecord)) {
3462
- throw new $TypeError("Assertion failed: abruptCompletion must be a Completion Record");
3463
- }
3464
- var state = GeneratorValidate(generator, generatorBrand);
3465
- if (state === "suspendedStart") {
3466
- SLOT.set(generator, "[[GeneratorState]]", "completed");
3467
- SLOT.set(generator, "[[GeneratorContext]]", null);
3468
- state = "completed";
3469
- }
3470
- var value = abruptCompletion.value();
3471
- if (state === "completed") {
3472
- return CreateIterResultObject(value, true);
3473
- }
3474
- if (state !== "suspendedYield") {
3475
- throw new $TypeError("Assertion failed: generator state is unexpected: " + state);
3476
- }
3477
- if (abruptCompletion.type() === "return") {
3478
- return CreateIterResultObject(SLOT.get(generator, "[[CloseIfAbrupt]]")(NormalCompletion(abruptCompletion.value())), true);
3479
- }
3480
- var genContext = SLOT.get(generator, "[[GeneratorContext]]");
3481
- SLOT.set(generator, "[[GeneratorState]]", "executing");
3482
- var result = genContext(value);
3483
- return result;
3484
- };
3485
- }
3486
- });
3487
-
3488
- // node_modules/es-iterator-helpers/aos/IteratorCloseAll.js
3489
- var require_IteratorCloseAll = __commonJS({
3490
- "node_modules/es-iterator-helpers/aos/IteratorCloseAll.js"(exports, module) {
3491
- "use strict";
3492
- var $TypeError = require_type();
3493
- var CompletionRecord = require_CompletionRecord();
3494
- var IteratorClose = require_IteratorClose();
3495
- var ThrowCompletion = require_ThrowCompletion();
3496
- var IsArray = require_IsArray();
3497
- var every = require_every();
3498
- var isIteratorRecord = require_iterator_record();
3499
- module.exports = function IteratorCloseAll(iters, completion) {
3500
- if (!IsArray(iters) || !every(iters, isIteratorRecord)) {
3501
- throw new $TypeError("Assertion failed: `iters` must be a List of IteratorRecords");
3502
- }
3503
- if (!(completion instanceof CompletionRecord)) {
3504
- throw new $TypeError("Assertion failed: `completion` must be a Completion Record");
3505
- }
3506
- for (var i = iters.length - 1; i >= 0; i -= 1) {
3507
- try {
3508
- IteratorClose(iters[i], completion);
3509
- } catch (e) {
3510
- completion = ThrowCompletion(e);
3511
- }
3512
- }
3513
- return completion["?"]();
3514
- };
3515
- }
3516
- });
3517
-
3518
- // node_modules/es-iterator-helpers/aos/ReturnCompletion.js
3519
- var require_ReturnCompletion = __commonJS({
3520
- "node_modules/es-iterator-helpers/aos/ReturnCompletion.js"(exports, module) {
3521
- "use strict";
3522
- var CompletionRecord = require_CompletionRecord();
3523
- module.exports = function ReturnCompletion(value) {
3524
- return new CompletionRecord("return", value);
3525
- };
3526
- }
3527
- });
3528
-
3529
- // node_modules/es-iterator-helpers/IteratorHelperPrototype/index.js
3530
- var require_IteratorHelperPrototype = __commonJS({
3531
- "node_modules/es-iterator-helpers/IteratorHelperPrototype/index.js"(exports, module) {
3532
- "use strict";
3533
- var setToStringTag = require_es_set_tostringtag();
3534
- var hasProto = require_has_proto()();
3535
- var iterProto = require_implementation4();
3536
- var SLOT = require_internal_slot();
3537
- var CreateIterResultObject = require_CreateIterResultObject();
3538
- var GeneratorResume = require_GeneratorResume();
3539
- var GeneratorResumeAbrupt = require_GeneratorResumeAbrupt();
3540
- var IteratorCloseAll = require_IteratorCloseAll();
3541
- var ReturnCompletion = require_ReturnCompletion();
3542
- var implementation;
3543
- var o = {
3544
- // in an object, for name inference
3545
- "return": function() {
3546
- var O = this;
3547
- SLOT.assert(O, "[[UnderlyingIterators]]");
3548
- SLOT.assert(O, "[[GeneratorState]]");
3549
- if (SLOT.get(O, "[[GeneratorState]]") === "suspendedStart") {
3550
- SLOT.set(O, "[[GeneratorState]]", "completed");
3551
- IteratorCloseAll(SLOT.get(O, "[[UnderlyingIterators]]"), ReturnCompletion(void 0));
3552
- return CreateIterResultObject(void 0, true);
3553
- }
3554
- var C = ReturnCompletion(void 0);
3555
- return GeneratorResumeAbrupt(O, C, "Iterator Helper");
3556
- }
3557
- };
3558
- if (hasProto) {
3559
- implementation = {
3560
- __proto__: iterProto,
3561
- next: function next() {
3562
- return GeneratorResume(this, void 0, "Iterator Helper");
3563
- },
3564
- "return": o["return"]
3565
- };
3566
- setToStringTag(implementation, "Iterator Helper");
3567
- } else {
3568
- IteratorHelper = function IteratorHelper2() {
3569
- };
3570
- IteratorHelper.prototype = iterProto;
3571
- implementation = new IteratorHelper();
3572
- delete implementation.constructor;
3573
- implementation.next = function next() {
3574
- return GeneratorResume(this, void 0, "Iterator Helper");
3575
- };
3576
- implementation["return"] = o["return"];
3577
- }
3578
- var IteratorHelper;
3579
- module.exports = implementation;
3580
- }
3581
- });
3582
-
3583
- // node_modules/es-iterator-helpers/Iterator.prototype.flatMap/implementation.js
3584
- var require_implementation5 = __commonJS({
3585
- "node_modules/es-iterator-helpers/Iterator.prototype.flatMap/implementation.js"(exports, module) {
3586
- "use strict";
3587
- var $TypeError = require_type();
3588
- var Call = require_Call();
3589
- var CompletionRecord = require_CompletionRecord();
3590
- var CreateIteratorFromClosure = require_CreateIteratorFromClosure();
3591
- var GetIteratorDirect = require_GetIteratorDirect();
3592
- var GetIteratorFlattenable = require_GetIteratorFlattenable();
3593
- var IsCallable = require_IsCallable();
3594
- var IteratorClose = require_IteratorClose();
3595
- var IteratorStepValue = require_IteratorStepValue();
3596
- var ThrowCompletion = require_ThrowCompletion();
3597
- var Type = require_Type2();
3598
- var iterHelperProto = require_IteratorHelperPrototype();
3599
- var SLOT = require_internal_slot();
3600
- module.exports = function flatMap(mapper) {
3601
- if (this instanceof flatMap) {
3602
- throw new $TypeError("`flatMap` is not a constructor");
3603
- }
3604
- var O = this;
3605
- if (Type(O) !== "Object") {
3606
- throw new $TypeError("`this` value must be an Object");
3607
- }
3608
- if (!IsCallable(mapper)) {
3609
- throw new $TypeError("`mapper` must be a function");
3610
- }
3611
- var iterated = GetIteratorDirect(O);
3612
- var sentinel = { sentinel: true };
3613
- var innerIterator = sentinel;
3614
- var closeIfAbrupt = function(abruptCompletion) {
3615
- if (!(abruptCompletion instanceof CompletionRecord)) {
3616
- throw new $TypeError("`abruptCompletion` must be a Completion Record");
3617
- }
3618
- try {
3619
- if (innerIterator !== sentinel) {
3620
- IteratorClose(
3621
- innerIterator,
3622
- abruptCompletion
3623
- );
3624
- }
3625
- } finally {
3626
- innerIterator = sentinel;
3627
- IteratorClose(
3628
- iterated,
3629
- abruptCompletion
3630
- );
3631
- }
3632
- };
3633
- var counter = 0;
3634
- var innerAlive = false;
3635
- var closure = function() {
3636
- if (innerIterator === sentinel) {
3637
- var value = IteratorStepValue(iterated);
3638
- if (iterated["[[Done]]"]) {
3639
- innerAlive = false;
3640
- innerIterator = sentinel;
3641
- return sentinel;
3642
- }
3643
- }
3644
- if (innerIterator === sentinel) {
3645
- innerAlive = true;
3646
- try {
3647
- var mapped = Call(mapper, void 0, [value, counter]);
3648
- innerIterator = GetIteratorFlattenable(mapped, "REJECT-STRINGS");
3649
- } catch (e) {
3650
- innerAlive = false;
3651
- innerIterator = sentinel;
3652
- closeIfAbrupt(ThrowCompletion(e));
3653
- } finally {
3654
- counter += 1;
3655
- }
3656
- }
3657
- if (innerAlive) {
3658
- var innerValue;
3659
- try {
3660
- innerValue = IteratorStepValue(innerIterator);
3661
- } catch (e) {
3662
- innerAlive = false;
3663
- innerIterator = sentinel;
3664
- closeIfAbrupt(ThrowCompletion(e));
3665
- }
3666
- if (innerIterator["[[Done]]"]) {
3667
- innerAlive = false;
3668
- innerIterator = sentinel;
3669
- return closure();
3670
- }
3671
- return innerValue;
3672
- }
3673
- return sentinel;
3674
- };
3675
- SLOT.set(closure, "[[Sentinel]]", sentinel);
3676
- SLOT.set(closure, "[[CloseIfAbrupt]]", closeIfAbrupt);
3677
- var result = CreateIteratorFromClosure(closure, "Iterator Helper", iterHelperProto, ["[[UnderlyingIterators]]"]);
3678
- SLOT.set(result, "[[UnderlyingIterators]]", [iterated]);
3679
- return result;
3680
- };
3681
- }
3682
- });
3683
-
3684
- // node_modules/es-iterator-helpers/Iterator.prototype.flatMap/polyfill.js
3685
- var require_polyfill2 = __commonJS({
3686
- "node_modules/es-iterator-helpers/Iterator.prototype.flatMap/polyfill.js"(exports, module) {
3687
- "use strict";
3688
- var implementation = require_implementation5();
3689
- module.exports = function getPolyfill() {
3690
- if (typeof Iterator === "function" && typeof Iterator.prototype.flatMap === "function") {
3691
- try {
3692
- Iterator.prototype.flatMap.call({ next: null }, function() {
3693
- }).next();
3694
- } catch (e) {
3695
- return Iterator.prototype.flatMap;
3696
- }
3697
- }
3698
- return implementation;
3699
- };
3700
- }
3701
- });
3702
-
3703
- // node_modules/es-iterator-helpers/Iterator.prototype.flatMap/shim.js
3704
- var require_shim2 = __commonJS({
3705
- "node_modules/es-iterator-helpers/Iterator.prototype.flatMap/shim.js"(exports, module) {
3706
- "use strict";
3707
- var define = require_define_properties();
3708
- var getPolyfill = require_polyfill2();
3709
- var $IteratorPrototype = require_implementation4();
3710
- module.exports = function shimIteratorPrototypeFlatMap() {
3711
- var polyfill = getPolyfill();
3712
- define(
3713
- $IteratorPrototype,
3714
- { flatMap: polyfill },
3715
- { flatMap: function() {
3716
- return $IteratorPrototype.flatMap !== polyfill;
3717
- } }
3718
- );
3719
- return polyfill;
3720
- };
3721
- }
3722
- });
3723
-
3724
- // node_modules/es-iterator-helpers/Iterator.prototype.map/implementation.js
3725
- var require_implementation6 = __commonJS({
3726
- "node_modules/es-iterator-helpers/Iterator.prototype.map/implementation.js"(exports, module) {
3727
- "use strict";
3728
- var $TypeError = require_type();
3729
- var Call = require_Call();
3730
- var CompletionRecord = require_CompletionRecord();
3731
- var CreateIteratorFromClosure = require_CreateIteratorFromClosure();
3732
- var GetIteratorDirect = require_GetIteratorDirect();
3733
- var IsCallable = require_IsCallable();
3734
- var IteratorClose = require_IteratorClose();
3735
- var IteratorStepValue = require_IteratorStepValue();
3736
- var ThrowCompletion = require_ThrowCompletion();
3737
- var Type = require_Type2();
3738
- var iterHelperProto = require_IteratorHelperPrototype();
3739
- var SLOT = require_internal_slot();
3740
- module.exports = function map(mapper) {
3741
- if (this instanceof map) {
3742
- throw new $TypeError("`map` is not a constructor");
3743
- }
3744
- var O = this;
3745
- if (Type(O) !== "Object") {
3746
- throw new $TypeError("`this` value must be an Object");
3747
- }
3748
- if (!IsCallable(mapper)) {
3749
- throw new $TypeError("`mapper` must be a function");
3750
- }
3751
- var iterated = GetIteratorDirect(O);
3752
- var closeIfAbrupt = function(abruptCompletion) {
3753
- if (!(abruptCompletion instanceof CompletionRecord)) {
3754
- throw new $TypeError("`abruptCompletion` must be a Completion Record");
3755
- }
3756
- IteratorClose(
3757
- iterated,
3758
- abruptCompletion
3759
- );
3760
- };
3761
- var sentinel = {};
3762
- var counter = 0;
3763
- var closure = function() {
3764
- var value = IteratorStepValue(iterated);
3765
- if (iterated["[[Done]]"]) {
3766
- return sentinel;
3767
- }
3768
- var mapped;
3769
- try {
3770
- mapped = Call(mapper, void 0, [value, counter]);
3771
- return mapped;
3772
- } catch (e) {
3773
- closeIfAbrupt(ThrowCompletion(e));
3774
- throw e;
3775
- } finally {
3776
- counter += 1;
3777
- }
3778
- };
3779
- SLOT.set(closure, "[[Sentinel]]", sentinel);
3780
- SLOT.set(closure, "[[CloseIfAbrupt]]", closeIfAbrupt);
3781
- var result = CreateIteratorFromClosure(closure, "Iterator Helper", iterHelperProto, ["[[UnderlyingIterators]]"]);
3782
- SLOT.set(result, "[[UnderlyingIterators]]", [iterated]);
3783
- return result;
3784
- };
3785
- }
3786
- });
3787
-
3788
- // node_modules/es-iterator-helpers/Iterator.prototype.map/polyfill.js
3789
- var require_polyfill3 = __commonJS({
3790
- "node_modules/es-iterator-helpers/Iterator.prototype.map/polyfill.js"(exports, module) {
3791
- "use strict";
3792
- var implementation = require_implementation6();
3793
- module.exports = function getPolyfill() {
3794
- if (typeof Iterator === "function" && typeof Iterator.prototype.map === "function") {
3795
- try {
3796
- Iterator.prototype.map.call({ next: null }, function() {
3797
- }).next();
3798
- } catch (e) {
3799
- return Iterator.prototype.map;
3800
- }
3801
- }
3802
- return implementation;
3803
- };
3804
- }
3805
- });
3806
-
3807
- // node_modules/es-iterator-helpers/Iterator.prototype.map/shim.js
3808
- var require_shim3 = __commonJS({
3809
- "node_modules/es-iterator-helpers/Iterator.prototype.map/shim.js"(exports, module) {
3810
- "use strict";
3811
- var define = require_define_properties();
3812
- var getPolyfill = require_polyfill3();
3813
- var $IteratorPrototype = require_implementation4();
3814
- module.exports = function shimIteratorPrototypeMap() {
3815
- var polyfill = getPolyfill();
3816
- define(
3817
- $IteratorPrototype,
3818
- { map: polyfill },
3819
- { map: function() {
3820
- return $IteratorPrototype.map !== polyfill;
3821
- } }
3822
- );
3823
- return polyfill;
3824
- };
3825
- }
3826
- });
3827
-
3828
- // node_modules/es-iterator-helpers/Iterator.prototype.reduce/implementation.js
3829
- var require_implementation7 = __commonJS({
3830
- "node_modules/es-iterator-helpers/Iterator.prototype.reduce/implementation.js"(exports, module) {
3831
- "use strict";
3832
- var $TypeError = require_type();
3833
- var Call = require_Call();
3834
- var GetIteratorDirect = require_GetIteratorDirect();
3835
- var IsCallable = require_IsCallable();
3836
- var IteratorClose = require_IteratorClose();
3837
- var IteratorStepValue = require_IteratorStepValue();
3838
- var ThrowCompletion = require_ThrowCompletion();
3839
- var Type = require_Type2();
3840
- module.exports = function reduce(reducer) {
3841
- if (this instanceof reduce) {
3842
- throw new $TypeError("`reduce` is not a constructor");
3843
- }
3844
- var O = this;
3845
- if (Type(O) !== "Object") {
3846
- throw new $TypeError("`this` value must be an Object");
3847
- }
3848
- if (!IsCallable(reducer)) {
3849
- throw new $TypeError("`reducer` must be a function");
3850
- }
3851
- var iterated = GetIteratorDirect(O);
3852
- var accumulator;
3853
- var counter;
3854
- if (arguments.length < 2) {
3855
- accumulator = IteratorStepValue(iterated);
3856
- if (iterated["[[Done]]"]) {
3857
- throw new $TypeError("Reduce of empty iterator with no initial value");
3858
- }
3859
- counter = 1;
3860
- } else {
3861
- accumulator = arguments[1];
3862
- counter = 0;
3863
- }
3864
- while (true) {
3865
- var value = IteratorStepValue(iterated);
3866
- if (iterated["[[Done]]"]) {
3867
- return accumulator;
3868
- }
3869
- try {
3870
- var result = Call(reducer, void 0, [accumulator, value, counter]);
3871
- accumulator = result;
3872
- } catch (e) {
3873
- IteratorClose(
3874
- iterated,
3875
- ThrowCompletion(e)
3876
- );
3877
- }
3878
- counter += 1;
3879
- }
3880
- };
3881
- }
3882
- });
3883
-
3884
- // node_modules/es-iterator-helpers/Iterator.prototype.reduce/polyfill.js
3885
- var require_polyfill4 = __commonJS({
3886
- "node_modules/es-iterator-helpers/Iterator.prototype.reduce/polyfill.js"(exports, module) {
3887
- "use strict";
3888
- var implementation = require_implementation7();
3889
- module.exports = function getPolyfill() {
3890
- return typeof Iterator === "function" && typeof Iterator.prototype.reduce === "function" ? Iterator.prototype.reduce : implementation;
3891
- };
3892
- }
3893
- });
3894
-
3895
- // node_modules/es-iterator-helpers/Iterator.prototype.reduce/shim.js
3896
- var require_shim4 = __commonJS({
3897
- "node_modules/es-iterator-helpers/Iterator.prototype.reduce/shim.js"(exports, module) {
3898
- "use strict";
3899
- var define = require_define_properties();
3900
- var getPolyfill = require_polyfill4();
3901
- var $IteratorPrototype = require_implementation4();
3902
- module.exports = function shimIteratorPrototypeReduce() {
3903
- var polyfill = getPolyfill();
3904
- define(
3905
- $IteratorPrototype,
3906
- { reduce: polyfill },
3907
- { reduce: function() {
3908
- return $IteratorPrototype.reduce !== polyfill;
3909
- } }
3910
- );
3911
- return polyfill;
3912
- };
3913
- }
3914
- });
3915
-
3916
- // node_modules/es-iterator-helpers/Iterator.prototype.toArray/implementation.js
3917
- var require_implementation8 = __commonJS({
3918
- "node_modules/es-iterator-helpers/Iterator.prototype.toArray/implementation.js"(exports, module) {
3919
- "use strict";
3920
- var $TypeError = require_type();
3921
- var GetIteratorDirect = require_GetIteratorDirect();
3922
- var IteratorStepValue = require_IteratorStepValue();
3923
- var Type = require_Type2();
3924
- module.exports = function toArray() {
3925
- if (this instanceof toArray) {
3926
- throw new $TypeError("`toArray` is not a constructor");
3927
- }
3928
- var O = this;
3929
- if (Type(O) !== "Object") {
3930
- throw new $TypeError("`this` value must be an Object");
3931
- }
3932
- var iterated = GetIteratorDirect(O);
3933
- var items = [];
3934
- while (true) {
3935
- var value = IteratorStepValue(iterated);
3936
- if (iterated["[[Done]]"]) {
3937
- return items;
3938
- }
3939
- items[items.length] = value;
3940
- }
3941
- };
3942
- }
3943
- });
3944
-
3945
- // node_modules/es-iterator-helpers/Iterator.prototype.toArray/polyfill.js
3946
- var require_polyfill5 = __commonJS({
3947
- "node_modules/es-iterator-helpers/Iterator.prototype.toArray/polyfill.js"(exports, module) {
3948
- "use strict";
3949
- var implementation = require_implementation8();
3950
- module.exports = function getPolyfill() {
3951
- return typeof Iterator === "function" && typeof Iterator.prototype.toArray === "function" ? Iterator.prototype.toArray : implementation;
3952
- };
3953
- }
3954
- });
3955
-
3956
- // node_modules/es-iterator-helpers/Iterator.prototype.toArray/shim.js
3957
- var require_shim5 = __commonJS({
3958
- "node_modules/es-iterator-helpers/Iterator.prototype.toArray/shim.js"(exports, module) {
3959
- "use strict";
3960
- var define = require_define_properties();
3961
- var getPolyfill = require_polyfill5();
3962
- var $IteratorPrototype = require_implementation4();
3963
- module.exports = function shimIteratorPrototypeToArray() {
3964
- var polyfill = getPolyfill();
3965
- define(
3966
- $IteratorPrototype,
3967
- { toArray: polyfill },
3968
- { toArray: function() {
3969
- return $IteratorPrototype.toArray !== polyfill;
3970
- } }
3971
- );
3972
- return polyfill;
3973
- };
3974
- }
3975
- });
3976
-
3977
- // node_modules/es-iterator-helpers/Iterator.prototype.find/auto.js
3978
- require_shim()();
3979
-
3980
- // node_modules/es-iterator-helpers/Iterator.prototype.flatMap/auto.js
3981
- require_shim2()();
3982
-
3983
- // node_modules/es-iterator-helpers/Iterator.prototype.map/auto.js
3984
- require_shim3()();
3985
-
3986
- // node_modules/es-iterator-helpers/Iterator.prototype.reduce/auto.js
3987
- require_shim4()();
3988
-
3989
- // node_modules/es-iterator-helpers/Iterator.prototype.toArray/auto.js
3990
- require_shim5()();
3991
- })();