@dxos/node-std 0.8.4-main.c1de068 → 0.8.4-main.c4373fc

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 (27) hide show
  1. package/dist/lib/browser/assert.mjs +9 -9
  2. package/dist/lib/browser/assert.mjs.map +1 -1
  3. package/dist/lib/browser/buffer.mjs +1 -1
  4. package/dist/lib/browser/{chunk-WIBV42KC.mjs → chunk-6QJFTFAJ.mjs} +404 -138
  5. package/dist/lib/browser/chunk-6QJFTFAJ.mjs.map +7 -0
  6. package/dist/lib/browser/{chunk-LJ5EWKWX.mjs → chunk-6YSEZSXZ.mjs} +2 -2
  7. package/dist/lib/browser/{chunk-YERYCS33.mjs → chunk-DDIIPJLY.mjs} +3 -3
  8. package/dist/lib/browser/{chunk-YERYCS33.mjs.map → chunk-DDIIPJLY.mjs.map} +1 -1
  9. package/dist/lib/browser/globals.mjs +2 -2
  10. package/dist/lib/browser/inject-globals.mjs +1 -1
  11. package/dist/lib/browser/meta.json +1 -1
  12. package/dist/lib/browser/util.mjs +8 -4
  13. package/dist/lib/browser/util.mjs.map +2 -2
  14. package/dist/lib/node-esm/buffer.mjs +1 -1
  15. package/dist/lib/node-esm/{chunk-F5GZS76O.mjs → chunk-GRHIY4HJ.mjs} +3 -3
  16. package/dist/lib/node-esm/{chunk-F5GZS76O.mjs.map → chunk-GRHIY4HJ.mjs.map} +1 -1
  17. package/dist/lib/node-esm/{chunk-RJ7I7ZC3.mjs → chunk-L22SCY2R.mjs} +2 -2
  18. package/dist/lib/node-esm/globals.mjs +2 -2
  19. package/dist/lib/node-esm/inject-globals.mjs +1 -1
  20. package/dist/lib/node-esm/meta.json +1 -1
  21. package/dist/lib/node-esm/util.mjs +410 -140
  22. package/dist/lib/node-esm/util.mjs.map +4 -4
  23. package/dist/types/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +1 -1
  25. package/dist/lib/browser/chunk-WIBV42KC.mjs.map +0 -7
  26. /package/dist/lib/browser/{chunk-LJ5EWKWX.mjs.map → chunk-6YSEZSXZ.mjs.map} +0 -0
  27. /package/dist/lib/node-esm/{chunk-RJ7I7ZC3.mjs.map → chunk-L22SCY2R.mjs.map} +0 -0
@@ -1,16 +1,16 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import "./chunk-RJ7I7ZC3.mjs";
2
+ import "./chunk-L22SCY2R.mjs";
3
3
  import "./chunk-3EE3KRAW.mjs";
4
- import "./chunk-F5GZS76O.mjs";
4
+ import "./chunk-GRHIY4HJ.mjs";
5
5
  import {
6
6
  __commonJS,
7
7
  __require,
8
8
  __toESM
9
9
  } from "./chunk-RZY7P3LC.mjs";
10
10
 
11
- // ../../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js
11
+ // ../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
12
12
  var require_shams = __commonJS({
13
- "../../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/shams.js"(exports, module) {
13
+ "../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
14
14
  "use strict";
15
15
  module.exports = function hasSymbols() {
16
16
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
@@ -33,7 +33,7 @@ var require_shams = __commonJS({
33
33
  }
34
34
  var symVal = 42;
35
35
  obj[sym] = symVal;
36
- for (sym in obj) {
36
+ for (var _ in obj) {
37
37
  return false;
38
38
  }
39
39
  if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
@@ -50,7 +50,10 @@ var require_shams = __commonJS({
50
50
  return false;
51
51
  }
52
52
  if (typeof Object.getOwnPropertyDescriptor === "function") {
53
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
53
+ var descriptor = (
54
+ /** @type {PropertyDescriptor} */
55
+ Object.getOwnPropertyDescriptor(obj, sym)
56
+ );
54
57
  if (descriptor.value !== symVal || descriptor.enumerable !== true) {
55
58
  return false;
56
59
  }
@@ -60,9 +63,9 @@ var require_shams = __commonJS({
60
63
  }
61
64
  });
62
65
 
63
- // ../../../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js
66
+ // ../../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
64
67
  var require_shams2 = __commonJS({
65
- "../../../node_modules/.pnpm/has-tostringtag@1.0.0/node_modules/has-tostringtag/shams.js"(exports, module) {
68
+ "../../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module) {
66
69
  "use strict";
67
70
  var hasSymbols = require_shams();
68
71
  module.exports = function hasToStringTagShams() {
@@ -71,6 +74,14 @@ var require_shams2 = __commonJS({
71
74
  }
72
75
  });
73
76
 
77
+ // ../../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
78
+ var require_es_object_atoms = __commonJS({
79
+ "../../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
80
+ "use strict";
81
+ module.exports = Object;
82
+ }
83
+ });
84
+
74
85
  // ../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
75
86
  var require_es_errors = __commonJS({
76
87
  "../../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
@@ -127,9 +138,121 @@ var require_uri = __commonJS({
127
138
  }
128
139
  });
129
140
 
130
- // ../../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js
141
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
142
+ var require_abs = __commonJS({
143
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
144
+ "use strict";
145
+ module.exports = Math.abs;
146
+ }
147
+ });
148
+
149
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
150
+ var require_floor = __commonJS({
151
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
152
+ "use strict";
153
+ module.exports = Math.floor;
154
+ }
155
+ });
156
+
157
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
158
+ var require_max = __commonJS({
159
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
160
+ "use strict";
161
+ module.exports = Math.max;
162
+ }
163
+ });
164
+
165
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
166
+ var require_min = __commonJS({
167
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
168
+ "use strict";
169
+ module.exports = Math.min;
170
+ }
171
+ });
172
+
173
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
174
+ var require_pow = __commonJS({
175
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
176
+ "use strict";
177
+ module.exports = Math.pow;
178
+ }
179
+ });
180
+
181
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
182
+ var require_round = __commonJS({
183
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
184
+ "use strict";
185
+ module.exports = Math.round;
186
+ }
187
+ });
188
+
189
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
190
+ var require_isNaN = __commonJS({
191
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
192
+ "use strict";
193
+ module.exports = Number.isNaN || function isNaN2(a) {
194
+ return a !== a;
195
+ };
196
+ }
197
+ });
198
+
199
+ // ../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
200
+ var require_sign = __commonJS({
201
+ "../../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
202
+ "use strict";
203
+ var $isNaN = require_isNaN();
204
+ module.exports = function sign(number) {
205
+ if ($isNaN(number) || number === 0) {
206
+ return number;
207
+ }
208
+ return number < 0 ? -1 : 1;
209
+ };
210
+ }
211
+ });
212
+
213
+ // ../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
214
+ var require_gOPD = __commonJS({
215
+ "../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
216
+ "use strict";
217
+ module.exports = Object.getOwnPropertyDescriptor;
218
+ }
219
+ });
220
+
221
+ // ../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
222
+ var require_gopd = __commonJS({
223
+ "../../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
224
+ "use strict";
225
+ var $gOPD = require_gOPD();
226
+ if ($gOPD) {
227
+ try {
228
+ $gOPD([], "length");
229
+ } catch (e) {
230
+ $gOPD = null;
231
+ }
232
+ }
233
+ module.exports = $gOPD;
234
+ }
235
+ });
236
+
237
+ // ../../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
238
+ var require_es_define_property = __commonJS({
239
+ "../../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
240
+ "use strict";
241
+ var $defineProperty = Object.defineProperty || false;
242
+ if ($defineProperty) {
243
+ try {
244
+ $defineProperty({}, "a", { value: 1 });
245
+ } catch (e) {
246
+ $defineProperty = false;
247
+ }
248
+ }
249
+ module.exports = $defineProperty;
250
+ }
251
+ });
252
+
253
+ // ../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
131
254
  var require_has_symbols = __commonJS({
132
- "../../../node_modules/.pnpm/has-symbols@1.0.3/node_modules/has-symbols/index.js"(exports, module) {
255
+ "../../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
133
256
  "use strict";
134
257
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
135
258
  var hasSymbolSham = require_shams();
@@ -151,18 +274,20 @@ var require_has_symbols = __commonJS({
151
274
  }
152
275
  });
153
276
 
154
- // ../../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js
155
- var require_has_proto = __commonJS({
156
- "../../../node_modules/.pnpm/has-proto@1.0.3/node_modules/has-proto/index.js"(exports, module) {
277
+ // ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
278
+ var require_Reflect_getPrototypeOf = __commonJS({
279
+ "../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
157
280
  "use strict";
158
- var test = {
159
- __proto__: null,
160
- foo: {}
161
- };
162
- var $Object = Object;
163
- module.exports = function hasProto() {
164
- return { __proto__: test }.foo === test.foo && !(test instanceof $Object);
165
- };
281
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
282
+ }
283
+ });
284
+
285
+ // ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
286
+ var require_Object_getPrototypeOf = __commonJS({
287
+ "../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
288
+ "use strict";
289
+ var $Object = require_es_object_atoms();
290
+ module.exports = $Object.getPrototypeOf || null;
166
291
  }
167
292
  });
168
293
 
@@ -251,6 +376,110 @@ var require_function_bind = __commonJS({
251
376
  }
252
377
  });
253
378
 
379
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
380
+ var require_functionCall = __commonJS({
381
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
382
+ "use strict";
383
+ module.exports = Function.prototype.call;
384
+ }
385
+ });
386
+
387
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
388
+ var require_functionApply = __commonJS({
389
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
390
+ "use strict";
391
+ module.exports = Function.prototype.apply;
392
+ }
393
+ });
394
+
395
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
396
+ var require_reflectApply = __commonJS({
397
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
398
+ "use strict";
399
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
400
+ }
401
+ });
402
+
403
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
404
+ var require_actualApply = __commonJS({
405
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
406
+ "use strict";
407
+ var bind = require_function_bind();
408
+ var $apply = require_functionApply();
409
+ var $call = require_functionCall();
410
+ var $reflectApply = require_reflectApply();
411
+ module.exports = $reflectApply || bind.call($call, $apply);
412
+ }
413
+ });
414
+
415
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
416
+ var require_call_bind_apply_helpers = __commonJS({
417
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
418
+ "use strict";
419
+ var bind = require_function_bind();
420
+ var $TypeError = require_type();
421
+ var $call = require_functionCall();
422
+ var $actualApply = require_actualApply();
423
+ module.exports = function callBindBasic(args) {
424
+ if (args.length < 1 || typeof args[0] !== "function") {
425
+ throw new $TypeError("a function is required");
426
+ }
427
+ return $actualApply(bind, $call, args);
428
+ };
429
+ }
430
+ });
431
+
432
+ // ../../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
433
+ var require_get = __commonJS({
434
+ "../../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
435
+ "use strict";
436
+ var callBind = require_call_bind_apply_helpers();
437
+ var gOPD = require_gopd();
438
+ var hasProtoAccessor;
439
+ try {
440
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */
441
+ [].__proto__ === Array.prototype;
442
+ } catch (e) {
443
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") {
444
+ throw e;
445
+ }
446
+ }
447
+ var desc = !!hasProtoAccessor && gOPD && gOPD(
448
+ Object.prototype,
449
+ /** @type {keyof typeof Object.prototype} */
450
+ "__proto__"
451
+ );
452
+ var $Object = Object;
453
+ var $getPrototypeOf = $Object.getPrototypeOf;
454
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? (
455
+ /** @type {import('./get')} */
456
+ function getDunder(value) {
457
+ return $getPrototypeOf(value == null ? value : $Object(value));
458
+ }
459
+ ) : false;
460
+ }
461
+ });
462
+
463
+ // ../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
464
+ var require_get_proto = __commonJS({
465
+ "../../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
466
+ "use strict";
467
+ var reflectGetProto = require_Reflect_getPrototypeOf();
468
+ var originalGetProto = require_Object_getPrototypeOf();
469
+ var getDunderProto = require_get();
470
+ module.exports = reflectGetProto ? function getProto(O) {
471
+ return reflectGetProto(O);
472
+ } : originalGetProto ? function getProto(O) {
473
+ if (!O || typeof O !== "object" && typeof O !== "function") {
474
+ throw new TypeError("getProto: not an object");
475
+ }
476
+ return originalGetProto(O);
477
+ } : getDunderProto ? function getProto(O) {
478
+ return getDunderProto(O);
479
+ } : null;
480
+ }
481
+ });
482
+
254
483
  // ../../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
255
484
  var require_hasown = __commonJS({
256
485
  "../../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
@@ -262,11 +491,12 @@ var require_hasown = __commonJS({
262
491
  }
263
492
  });
264
493
 
265
- // ../../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js
494
+ // ../../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
266
495
  var require_get_intrinsic = __commonJS({
267
- "../../../node_modules/.pnpm/get-intrinsic@1.2.4/node_modules/get-intrinsic/index.js"(exports, module) {
496
+ "../../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module) {
268
497
  "use strict";
269
498
  var undefined2;
499
+ var $Object = require_es_object_atoms();
270
500
  var $Error = require_es_errors();
271
501
  var $EvalError = require_eval();
272
502
  var $RangeError = require_range();
@@ -274,6 +504,13 @@ var require_get_intrinsic = __commonJS({
274
504
  var $SyntaxError = require_syntax();
275
505
  var $TypeError = require_type();
276
506
  var $URIError = require_uri();
507
+ var abs = require_abs();
508
+ var floor = require_floor();
509
+ var max = require_max();
510
+ var min = require_min();
511
+ var pow = require_pow();
512
+ var round = require_round();
513
+ var sign = require_sign();
277
514
  var $Function = Function;
278
515
  var getEvalledConstructor = function(expressionSyntax) {
279
516
  try {
@@ -281,18 +518,12 @@ var require_get_intrinsic = __commonJS({
281
518
  } catch (e) {
282
519
  }
283
520
  };
284
- var $gOPD = Object.getOwnPropertyDescriptor;
285
- if ($gOPD) {
286
- try {
287
- $gOPD({}, "");
288
- } catch (e) {
289
- $gOPD = null;
290
- }
291
- }
521
+ var $gOPD = require_gopd();
522
+ var $defineProperty = require_es_define_property();
292
523
  var throwTypeError = function() {
293
524
  throw new $TypeError();
294
525
  };
295
- var ThrowTypeError = $gOPD ? function() {
526
+ var ThrowTypeError = $gOPD ? (function() {
296
527
  try {
297
528
  arguments.callee;
298
529
  return throwTypeError;
@@ -303,12 +534,13 @@ var require_get_intrinsic = __commonJS({
303
534
  return throwTypeError;
304
535
  }
305
536
  }
306
- }() : throwTypeError;
537
+ })() : throwTypeError;
307
538
  var hasSymbols = require_has_symbols()();
308
- var hasProto = require_has_proto()();
309
- var getProto = Object.getPrototypeOf || (hasProto ? function(x) {
310
- return x.__proto__;
311
- } : null);
539
+ var getProto = require_get_proto();
540
+ var $ObjectGPO = require_Object_getPrototypeOf();
541
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
542
+ var $apply = require_functionApply();
543
+ var $call = require_functionCall();
312
544
  var needsEval = {};
313
545
  var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined2 : getProto(Uint8Array);
314
546
  var INTRINSICS = {
@@ -337,6 +569,7 @@ var require_get_intrinsic = __commonJS({
337
569
  "%eval%": eval,
338
570
  // eslint-disable-line no-eval
339
571
  "%EvalError%": $EvalError,
572
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined2 : Float16Array,
340
573
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
341
574
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
342
575
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
@@ -353,7 +586,8 @@ var require_get_intrinsic = __commonJS({
353
586
  "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
354
587
  "%Math%": Math,
355
588
  "%Number%": Number,
356
- "%Object%": Object,
589
+ "%Object%": $Object,
590
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
357
591
  "%parseFloat%": parseFloat,
358
592
  "%parseInt%": parseInt,
359
593
  "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
@@ -379,7 +613,19 @@ var require_get_intrinsic = __commonJS({
379
613
  "%URIError%": $URIError,
380
614
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
381
615
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
382
- "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
616
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet,
617
+ "%Function.prototype.call%": $call,
618
+ "%Function.prototype.apply%": $apply,
619
+ "%Object.defineProperty%": $defineProperty,
620
+ "%Object.getPrototypeOf%": $ObjectGPO,
621
+ "%Math.abs%": abs,
622
+ "%Math.floor%": floor,
623
+ "%Math.max%": max,
624
+ "%Math.min%": min,
625
+ "%Math.pow%": pow,
626
+ "%Math.round%": round,
627
+ "%Math.sign%": sign,
628
+ "%Reflect.getPrototypeOf%": $ReflectGPO
383
629
  };
384
630
  if (getProto) {
385
631
  try {
@@ -468,11 +714,11 @@ var require_get_intrinsic = __commonJS({
468
714
  };
469
715
  var bind = require_function_bind();
470
716
  var hasOwn = require_hasown();
471
- var $concat = bind.call(Function.call, Array.prototype.concat);
472
- var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
473
- var $replace = bind.call(Function.call, String.prototype.replace);
474
- var $strSlice = bind.call(Function.call, String.prototype.slice);
475
- var $exec = bind.call(Function.call, RegExp.prototype.exec);
717
+ var $concat = bind.call($call, Array.prototype.concat);
718
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
719
+ var $replace = bind.call($call, String.prototype.replace);
720
+ var $strSlice = bind.call($call, String.prototype.slice);
721
+ var $exec = bind.call($call, RegExp.prototype.exec);
476
722
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
477
723
  var reEscapeChar = /\\(\\)?/g;
478
724
  var stringToPath = function stringToPath2(string) {
@@ -576,40 +822,6 @@ var require_get_intrinsic = __commonJS({
576
822
  }
577
823
  });
578
824
 
579
- // ../../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js
580
- var require_es_define_property = __commonJS({
581
- "../../../node_modules/.pnpm/es-define-property@1.0.0/node_modules/es-define-property/index.js"(exports, module) {
582
- "use strict";
583
- var GetIntrinsic = require_get_intrinsic();
584
- var $defineProperty = GetIntrinsic("%Object.defineProperty%", true) || false;
585
- if ($defineProperty) {
586
- try {
587
- $defineProperty({}, "a", { value: 1 });
588
- } catch (e) {
589
- $defineProperty = false;
590
- }
591
- }
592
- module.exports = $defineProperty;
593
- }
594
- });
595
-
596
- // ../../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js
597
- var require_gopd = __commonJS({
598
- "../../../node_modules/.pnpm/gopd@1.0.1/node_modules/gopd/index.js"(exports, module) {
599
- "use strict";
600
- var GetIntrinsic = require_get_intrinsic();
601
- var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
602
- if ($gOPD) {
603
- try {
604
- $gOPD([], "length");
605
- } catch (e) {
606
- $gOPD = null;
607
- }
608
- }
609
- module.exports = $gOPD;
610
- }
611
- });
612
-
613
825
  // ../../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
614
826
  var require_define_data_property = __commonJS({
615
827
  "../../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js"(exports, module) {
@@ -733,33 +945,36 @@ var require_set_function_length = __commonJS({
733
945
  }
734
946
  });
735
947
 
736
- // ../../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js
737
- var require_call_bind = __commonJS({
738
- "../../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/index.js"(exports, module) {
948
+ // ../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
949
+ var require_applyBind = __commonJS({
950
+ "../../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js"(exports, module) {
739
951
  "use strict";
740
952
  var bind = require_function_bind();
741
- var GetIntrinsic = require_get_intrinsic();
953
+ var $apply = require_functionApply();
954
+ var actualApply = require_actualApply();
955
+ module.exports = function applyBind() {
956
+ return actualApply(bind, $apply, arguments);
957
+ };
958
+ }
959
+ });
960
+
961
+ // ../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
962
+ var require_call_bind = __commonJS({
963
+ "../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js"(exports, module) {
964
+ "use strict";
742
965
  var setFunctionLength = require_set_function_length();
743
- var $TypeError = require_type();
744
- var $apply = GetIntrinsic("%Function.prototype.apply%");
745
- var $call = GetIntrinsic("%Function.prototype.call%");
746
- var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
747
966
  var $defineProperty = require_es_define_property();
748
- var $max = GetIntrinsic("%Math.max%");
967
+ var callBindBasic = require_call_bind_apply_helpers();
968
+ var applyBind = require_applyBind();
749
969
  module.exports = function callBind(originalFunction) {
750
- if (typeof originalFunction !== "function") {
751
- throw new $TypeError("a function is required");
752
- }
753
- var func = $reflectApply(bind, $call, arguments);
970
+ var func = callBindBasic(arguments);
971
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
754
972
  return setFunctionLength(
755
973
  func,
756
- 1 + $max(0, originalFunction.length - (arguments.length - 1)),
974
+ 1 + (adjustedLength > 0 ? adjustedLength : 0),
757
975
  true
758
976
  );
759
977
  };
760
- var applyBind = function applyBind2() {
761
- return $reflectApply(bind, $apply, arguments);
762
- };
763
978
  if ($defineProperty) {
764
979
  $defineProperty(module.exports, "apply", { value: applyBind });
765
980
  } else {
@@ -768,9 +983,9 @@ var require_call_bind = __commonJS({
768
983
  }
769
984
  });
770
985
 
771
- // ../../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js
986
+ // ../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/callBound.js
772
987
  var require_callBound = __commonJS({
773
- "../../../node_modules/.pnpm/call-bind@1.0.7/node_modules/call-bind/callBound.js"(exports, module) {
988
+ "../../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/callBound.js"(exports, module) {
774
989
  "use strict";
775
990
  var GetIntrinsic = require_get_intrinsic();
776
991
  var callBind = require_call_bind();
@@ -804,9 +1019,9 @@ var require_is_arguments = __commonJS({
804
1019
  }
805
1020
  return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
806
1021
  };
807
- var supportsStandardArguments = function() {
1022
+ var supportsStandardArguments = (function() {
808
1023
  return isStandardArguments(arguments);
809
- }();
1024
+ })();
810
1025
  isStandardArguments.isLegacyArguments = isLegacyArguments;
811
1026
  module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
812
1027
  }
@@ -972,9 +1187,9 @@ var require_is_callable = __commonJS({
972
1187
  }
973
1188
  });
974
1189
 
975
- // ../../../node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js
1190
+ // ../../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
976
1191
  var require_for_each = __commonJS({
977
- "../../../node_modules/.pnpm/for-each@0.3.3/node_modules/for-each/index.js"(exports, module) {
1192
+ "../../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js"(exports, module) {
978
1193
  "use strict";
979
1194
  var isCallable = require_is_callable();
980
1195
  var toStr = Object.prototype.toString;
@@ -1010,7 +1225,10 @@ var require_for_each = __commonJS({
1010
1225
  }
1011
1226
  }
1012
1227
  };
1013
- var forEach = function forEach2(list, iterator, thisArg) {
1228
+ function isArray(x) {
1229
+ return toStr.call(x) === "[object Array]";
1230
+ }
1231
+ module.exports = function forEach(list, iterator, thisArg) {
1014
1232
  if (!isCallable(iterator)) {
1015
1233
  throw new TypeError("iterator must be a function");
1016
1234
  }
@@ -1018,7 +1236,7 @@ var require_for_each = __commonJS({
1018
1236
  if (arguments.length >= 3) {
1019
1237
  receiver = thisArg;
1020
1238
  }
1021
- if (toStr.call(list) === "[object Array]") {
1239
+ if (isArray(list)) {
1022
1240
  forEachArray(list, iterator, receiver);
1023
1241
  } else if (typeof list === "string") {
1024
1242
  forEachString(list, iterator, receiver);
@@ -1026,27 +1244,35 @@ var require_for_each = __commonJS({
1026
1244
  forEachObject(list, iterator, receiver);
1027
1245
  }
1028
1246
  };
1029
- module.exports = forEach;
1030
1247
  }
1031
1248
  });
1032
1249
 
1033
- // ../../../node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js
1034
- var require_available_typed_arrays = __commonJS({
1035
- "../../../node_modules/.pnpm/available-typed-arrays@1.0.5/node_modules/available-typed-arrays/index.js"(exports, module) {
1250
+ // ../../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
1251
+ var require_possible_typed_array_names = __commonJS({
1252
+ "../../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js"(exports, module) {
1036
1253
  "use strict";
1037
- var possibleNames = [
1038
- "BigInt64Array",
1039
- "BigUint64Array",
1254
+ module.exports = [
1255
+ "Float16Array",
1040
1256
  "Float32Array",
1041
1257
  "Float64Array",
1258
+ "Int8Array",
1042
1259
  "Int16Array",
1043
1260
  "Int32Array",
1044
- "Int8Array",
1261
+ "Uint8Array",
1262
+ "Uint8ClampedArray",
1045
1263
  "Uint16Array",
1046
1264
  "Uint32Array",
1047
- "Uint8Array",
1048
- "Uint8ClampedArray"
1265
+ "BigInt64Array",
1266
+ "BigUint64Array"
1049
1267
  ];
1268
+ }
1269
+ });
1270
+
1271
+ // ../../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
1272
+ var require_available_typed_arrays = __commonJS({
1273
+ "../../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js"(exports, module) {
1274
+ "use strict";
1275
+ var possibleNames = require_possible_typed_array_names();
1050
1276
  var g = typeof globalThis === "undefined" ? global : globalThis;
1051
1277
  module.exports = function availableTypedArrays() {
1052
1278
  var out = [];
@@ -1060,21 +1286,44 @@ var require_available_typed_arrays = __commonJS({
1060
1286
  }
1061
1287
  });
1062
1288
 
1063
- // ../../../node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js
1289
+ // ../../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
1290
+ var require_call_bound = __commonJS({
1291
+ "../../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module) {
1292
+ "use strict";
1293
+ var GetIntrinsic = require_get_intrinsic();
1294
+ var callBindBasic = require_call_bind_apply_helpers();
1295
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
1296
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
1297
+ var intrinsic = (
1298
+ /** @type {(this: unknown, ...args: unknown[]) => unknown} */
1299
+ GetIntrinsic(name, !!allowMissing)
1300
+ );
1301
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1302
+ return callBindBasic(
1303
+ /** @type {const} */
1304
+ [intrinsic]
1305
+ );
1306
+ }
1307
+ return intrinsic;
1308
+ };
1309
+ }
1310
+ });
1311
+
1312
+ // ../../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js
1064
1313
  var require_which_typed_array = __commonJS({
1065
- "../../../node_modules/.pnpm/which-typed-array@1.1.13/node_modules/which-typed-array/index.js"(exports, module) {
1314
+ "../../../node_modules/.pnpm/which-typed-array@1.1.19/node_modules/which-typed-array/index.js"(exports, module) {
1066
1315
  "use strict";
1067
1316
  var forEach = require_for_each();
1068
1317
  var availableTypedArrays = require_available_typed_arrays();
1069
1318
  var callBind = require_call_bind();
1070
- var callBound = require_callBound();
1319
+ var callBound = require_call_bound();
1071
1320
  var gOPD = require_gopd();
1321
+ var getProto = require_get_proto();
1072
1322
  var $toString = callBound("Object.prototype.toString");
1073
1323
  var hasToStringTag = require_shams2()();
1074
1324
  var g = typeof globalThis === "undefined" ? global : globalThis;
1075
1325
  var typedArrays = availableTypedArrays();
1076
1326
  var $slice = callBound("String.prototype.slice");
1077
- var getPrototypeOf = Object.getPrototypeOf;
1078
1327
  var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
1079
1328
  for (var i = 0; i < array.length; i += 1) {
1080
1329
  if (array[i] === value) {
@@ -1084,14 +1333,14 @@ var require_which_typed_array = __commonJS({
1084
1333
  return -1;
1085
1334
  };
1086
1335
  var cache = { __proto__: null };
1087
- if (hasToStringTag && gOPD && getPrototypeOf) {
1336
+ if (hasToStringTag && gOPD && getProto) {
1088
1337
  forEach(typedArrays, function(typedArray) {
1089
1338
  var arr = new g[typedArray]();
1090
- if (Symbol.toStringTag in arr) {
1091
- var proto = getPrototypeOf(arr);
1339
+ if (Symbol.toStringTag in arr && getProto) {
1340
+ var proto = getProto(arr);
1092
1341
  var descriptor = gOPD(proto, Symbol.toStringTag);
1093
- if (!descriptor) {
1094
- var superProto = getPrototypeOf(proto);
1342
+ if (!descriptor && proto) {
1343
+ var superProto = getProto(proto);
1095
1344
  descriptor = gOPD(superProto, Symbol.toStringTag);
1096
1345
  }
1097
1346
  cache["$" + typedArray] = callBind(descriptor.get);
@@ -1102,35 +1351,52 @@ var require_which_typed_array = __commonJS({
1102
1351
  var arr = new g[typedArray]();
1103
1352
  var fn = arr.slice || arr.set;
1104
1353
  if (fn) {
1105
- cache["$" + typedArray] = callBind(fn);
1354
+ cache[
1355
+ /** @type {`$${import('.').TypedArrayName}`} */
1356
+ "$" + typedArray
1357
+ ] = /** @type {import('./types').BoundSlice | import('./types').BoundSet} */
1358
+ // @ts-expect-error TODO FIXME
1359
+ callBind(fn);
1106
1360
  }
1107
1361
  });
1108
1362
  }
1109
1363
  var tryTypedArrays = function tryAllTypedArrays(value) {
1110
1364
  var found = false;
1111
- forEach(cache, function(getter, typedArray) {
1112
- if (!found) {
1113
- try {
1114
- if ("$" + getter(value) === typedArray) {
1115
- found = $slice(typedArray, 1);
1365
+ forEach(
1366
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
1367
+ cache,
1368
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1369
+ function(getter, typedArray) {
1370
+ if (!found) {
1371
+ try {
1372
+ if ("$" + getter(value) === typedArray) {
1373
+ found = /** @type {import('.').TypedArrayName} */
1374
+ $slice(typedArray, 1);
1375
+ }
1376
+ } catch (e) {
1116
1377
  }
1117
- } catch (e) {
1118
1378
  }
1119
1379
  }
1120
- });
1380
+ );
1121
1381
  return found;
1122
1382
  };
1123
1383
  var trySlices = function tryAllSlices(value) {
1124
1384
  var found = false;
1125
- forEach(cache, function(getter, name) {
1126
- if (!found) {
1127
- try {
1128
- getter(value);
1129
- found = $slice(name, 1);
1130
- } catch (e) {
1385
+ forEach(
1386
+ /** @type {Record<`\$${import('.').TypedArrayName}`, Getter>} */
1387
+ cache,
1388
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1389
+ function(getter, name) {
1390
+ if (!found) {
1391
+ try {
1392
+ getter(value);
1393
+ found = /** @type {import('.').TypedArrayName} */
1394
+ $slice(name, 1);
1395
+ } catch (e) {
1396
+ }
1131
1397
  }
1132
1398
  }
1133
- });
1399
+ );
1134
1400
  return found;
1135
1401
  };
1136
1402
  module.exports = function whichTypedArray(value) {
@@ -1155,9 +1421,9 @@ var require_which_typed_array = __commonJS({
1155
1421
  }
1156
1422
  });
1157
1423
 
1158
- // ../../../node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js
1424
+ // ../../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
1159
1425
  var require_is_typed_array = __commonJS({
1160
- "../../../node_modules/.pnpm/is-typed-array@1.1.12/node_modules/is-typed-array/index.js"(exports, module) {
1426
+ "../../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js"(exports, module) {
1161
1427
  "use strict";
1162
1428
  var whichTypedArray = require_which_typed_array();
1163
1429
  module.exports = function isTypedArray(value) {
@@ -2015,12 +2281,16 @@ var import_util = __toESM(require_util(), 1);
2015
2281
  var import_util2 = __toESM(require_util(), 1);
2016
2282
  var util_default = import_util.default;
2017
2283
  var export_callbackify = import_util2.callbackify;
2284
+ var export_debuglog = import_util2.debuglog;
2018
2285
  var export_inspect = import_util2.inspect;
2019
2286
  var export_promisify = import_util2.promisify;
2287
+ var export_stripVTControlCharacters = import_util2.stripVTControlCharacters;
2020
2288
  export {
2021
2289
  export_callbackify as callbackify,
2290
+ export_debuglog as debuglog,
2022
2291
  util_default as default,
2023
2292
  export_inspect as inspect,
2024
- export_promisify as promisify
2293
+ export_promisify as promisify,
2294
+ export_stripVTControlCharacters as stripVTControlCharacters
2025
2295
  };
2026
2296
  //# sourceMappingURL=util.mjs.map