@vtex/faststore 0.0.6 → 0.0.7

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 (132) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/catalog.json +161 -20
  3. package/dist/cli/UnreachableCaseError-Crd168Vu.js +10 -0
  4. package/dist/cli/UnreachableCaseError-Crd168Vu.js.map +1 -0
  5. package/dist/cli/cacheControl-CEojH_TM.js +158 -0
  6. package/dist/cli/cacheControl-CEojH_TM.js.map +1 -0
  7. package/dist/cli/cachePolicy-m2vASMRW.js +26 -0
  8. package/dist/cli/cachePolicy-m2vASMRW.js.map +1 -0
  9. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js +10 -0
  10. package/dist/cli/computeCoreSchemaHash-DPJZj-qJ.js.map +1 -0
  11. package/dist/cli/default-BCQHcwbL.js +253 -0
  12. package/dist/cli/default-BCQHcwbL.js.map +1 -0
  13. package/dist/cli/disableSuggestions-yO9UqiWn.js +21 -0
  14. package/dist/cli/disableSuggestions-yO9UqiWn.js.map +1 -0
  15. package/dist/cli/dist-C1JhdHfo.js +2001 -0
  16. package/dist/cli/dist-C1JhdHfo.js.map +1 -0
  17. package/dist/cli/graphql-DG9thCDG.js +14589 -0
  18. package/dist/cli/graphql-DG9thCDG.js.map +1 -0
  19. package/dist/cli/index.d.ts +350 -0
  20. package/dist/cli/index.js +35047 -0
  21. package/dist/cli/index.js.map +1 -0
  22. package/dist/cli/index.min-BsIHDfFK.js +613 -0
  23. package/dist/cli/index.min-BsIHDfFK.js.map +1 -0
  24. package/dist/cli/inlineTrace-uLgOJ3TH.js +52 -0
  25. package/dist/cli/inlineTrace-uLgOJ3TH.js.map +1 -0
  26. package/dist/cli/internalPlugin-DnuwN4_4.js +11 -0
  27. package/dist/cli/internalPlugin-DnuwN4_4.js.map +1 -0
  28. package/dist/cli/packageVersion-DQAnIEil.js +6 -0
  29. package/dist/cli/packageVersion-DQAnIEil.js.map +1 -0
  30. package/dist/cli/rolldown-runtime-BMI-E3GI.js +44 -0
  31. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js +17 -0
  32. package/dist/cli/schemaIsSubgraph-DoGh3OYj.js.map +1 -0
  33. package/dist/cli/schemaReporting-K-me-3-v.js +199 -0
  34. package/dist/cli/schemaReporting-K-me-3-v.js.map +1 -0
  35. package/dist/cli/server-runtime.js +49859 -0
  36. package/dist/cli/server-runtime.js.map +1 -0
  37. package/dist/cli/traceTreeBuilder-BIcV2U7b.js +9118 -0
  38. package/dist/cli/traceTreeBuilder-BIcV2U7b.js.map +1 -0
  39. package/dist/cli/usageReporting-Bpl8vSZX.js +10201 -0
  40. package/dist/cli/usageReporting-Bpl8vSZX.js.map +1 -0
  41. package/dist/cli/v4-CBhFvC49.js +42 -0
  42. package/dist/cli/v4-CBhFvC49.js.map +1 -0
  43. package/dist/components.d.ts +5 -3
  44. package/dist/components.js +5 -3
  45. package/dist/content-types.json +93 -0
  46. package/dist/core/dist/define-component.d.ts +37 -0
  47. package/dist/core/dist/index.d.ts +2 -2
  48. package/dist/docs/account-entry-point.md +1 -1
  49. package/dist/docs/account-menu-identity.md +160 -0
  50. package/dist/docs/account-menu.md +106 -23
  51. package/dist/docs/avatar.md +103 -0
  52. package/dist/docs/my-account-profile.md +1 -1
  53. package/dist/docs/product-shelf.md +20 -13
  54. package/dist/index.d.ts +2 -2
  55. package/dist/internal/client.js +1 -1
  56. package/dist/internal/content.d.ts +2 -2
  57. package/dist/internal/server.d.ts +4 -1
  58. package/dist/internal/server.js +4 -1
  59. package/dist/matter/account-access-gate/account-access-gate.js.map +1 -1
  60. package/dist/matter/account-entry-point/account-entry-point.js +1 -1
  61. package/dist/matter/account-entry-point/account-entry-point.js.map +1 -1
  62. package/dist/matter/account-menu/account-menu.d.ts +70 -0
  63. package/dist/matter/account-menu/account-menu.js +201 -9
  64. package/dist/matter/account-menu/account-menu.js.map +1 -1
  65. package/dist/matter/account-menu/sign-out-failure.js +50 -0
  66. package/dist/matter/account-menu/sign-out-failure.js.map +1 -0
  67. package/dist/matter/account-menu-identity/account-menu-identity.d.ts +21 -0
  68. package/dist/matter/account-menu-identity/account-menu-identity.js +88 -0
  69. package/dist/matter/account-menu-identity/account-menu-identity.js.map +1 -0
  70. package/dist/matter/card-entry/card-entry.js +1 -0
  71. package/dist/matter/card-entry/card-entry.js.map +1 -1
  72. package/dist/matter/cart/cart.js +1 -1
  73. package/dist/matter/client-preferences/client-preferences-fieldset.js +2 -2
  74. package/dist/matter/client-profile-form/client-profile-fieldset.js +2 -2
  75. package/dist/matter/identity-summary/identity-summary.js +2 -1
  76. package/dist/matter/identity-summary/identity-summary.js.map +1 -1
  77. package/dist/matter/my-account-profile/my-account-profile.d.ts +3 -0
  78. package/dist/matter/my-account-profile/my-account-profile.js +2 -1
  79. package/dist/matter/my-account-profile/my-account-profile.js.map +1 -1
  80. package/dist/matter/payment/payment-controller.js +1 -0
  81. package/dist/matter/payment/payment-controller.js.map +1 -1
  82. package/dist/matter/payment/payment.js +1 -0
  83. package/dist/matter/payment/payment.js.map +1 -1
  84. package/dist/matter/product-shelf/product-shelf.d.ts +61 -31
  85. package/dist/matter/product-shelf/product-shelf.js +157 -57
  86. package/dist/matter/product-shelf/product-shelf.js.map +1 -1
  87. package/dist/matter/saved-cards/saved-cards.js +1 -0
  88. package/dist/matter/saved-cards/saved-cards.js.map +1 -1
  89. package/dist/matter/shipping-address/shipping-address.js +2 -2
  90. package/dist/particles/avatar/avatar.d.ts +17 -0
  91. package/dist/particles/avatar/avatar.js +65 -0
  92. package/dist/particles/avatar/avatar.js.map +1 -0
  93. package/dist/schema.graphql +65 -26
  94. package/dist/sdk/analytics/use-analytics-actions.js +2 -1
  95. package/dist/sdk/analytics/use-analytics-actions.js.map +1 -1
  96. package/dist/sdk/cart/use-cart-actions.js +9 -8
  97. package/dist/sdk/cart/use-cart-actions.js.map +1 -1
  98. package/dist/sdk/cart/use-cart-validate-on-open.js +2 -1
  99. package/dist/sdk/cart/use-cart-validate-on-open.js.map +1 -1
  100. package/dist/sdk/content/create-content-runtime.d.ts +22 -1
  101. package/dist/sdk/content/create-content-runtime.js +89 -1
  102. package/dist/sdk/content/create-content-runtime.js.map +1 -1
  103. package/dist/sdk/data/empty-content-value.js +16 -0
  104. package/dist/sdk/data/empty-content-value.js.map +1 -0
  105. package/dist/sdk/data/hot-data-provider.js +2 -1
  106. package/dist/sdk/data/hot-data-provider.js.map +1 -1
  107. package/dist/sdk/data/index.js +2 -2
  108. package/dist/sdk/data/reactive-list-item-data-provider.js +2 -2
  109. package/dist/sdk/data/variables-from-content.d.ts +43 -0
  110. package/dist/sdk/data/variables-from-content.js +57 -0
  111. package/dist/sdk/data/variables-from-content.js.map +1 -0
  112. package/dist/sdk/generated/gql.js +2 -1
  113. package/dist/sdk/generated/gql.js.map +1 -1
  114. package/dist/sdk/generated/graphql.js +85 -1
  115. package/dist/sdk/generated/graphql.js.map +1 -1
  116. package/dist/sdk/identity/use-identity-actions.js +5 -4
  117. package/dist/sdk/identity/use-identity-actions.js.map +1 -1
  118. package/dist/sdk/payment/use-payment-actions.js +1 -1
  119. package/dist/sdk/payment/use-place-order.js +1 -1
  120. package/dist/sdk/region/use-region-actions.js +2 -1
  121. package/dist/sdk/region/use-region-actions.js.map +1 -1
  122. package/dist/sdk/session/read-server-session.d.ts +21 -0
  123. package/dist/sdk/session/read-server-session.js +61 -0
  124. package/dist/sdk/session/read-server-session.js.map +1 -0
  125. package/dist/sdk/session/use-session-actions.js +5 -4
  126. package/dist/sdk/session/use-session-actions.js.map +1 -1
  127. package/dist/sdk/session/use-session-revalidation.js +2 -1
  128. package/dist/sdk/session/use-session-revalidation.js.map +1 -1
  129. package/dist/sdk/shipping/use-shipping-actions.js +3 -2
  130. package/dist/sdk/shipping/use-shipping-actions.js.map +1 -1
  131. package/dist/utils/safe-href.d.ts +11 -0
  132. package/package.json +13 -2
@@ -0,0 +1,2001 @@
1
+ import { i as __require, t as __commonJSMin } from "./rolldown-runtime-BMI-E3GI.js";
2
+ //#region ../../node_modules/.pnpm/@apollo+utils.isnodelike@3.0.0/node_modules/@apollo/utils.isnodelike/dist/index.js
3
+ var require_dist$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.isNodeLike = void 0;
6
+ exports.isNodeLike = typeof process === "object" && process && process.release && process.versions && typeof process.versions.node === "string";
7
+ }));
8
+ //#endregion
9
+ //#region ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js
10
+ var require_inherits_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11
+ if (typeof Object.create === "function") module.exports = function inherits(ctor, superCtor) {
12
+ if (superCtor) {
13
+ ctor.super_ = superCtor;
14
+ ctor.prototype = Object.create(superCtor.prototype, { constructor: {
15
+ value: ctor,
16
+ enumerable: false,
17
+ writable: true,
18
+ configurable: true
19
+ } });
20
+ }
21
+ };
22
+ else module.exports = function inherits(ctor, superCtor) {
23
+ if (superCtor) {
24
+ ctor.super_ = superCtor;
25
+ var TempCtor = function() {};
26
+ TempCtor.prototype = superCtor.prototype;
27
+ ctor.prototype = new TempCtor();
28
+ ctor.prototype.constructor = ctor;
29
+ }
30
+ };
31
+ }));
32
+ //#endregion
33
+ //#region ../../node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js
34
+ var require_inherits = /* @__PURE__ */ __commonJSMin(((exports, module) => {
35
+ try {
36
+ var util = __require("util");
37
+ /* istanbul ignore next */
38
+ if (typeof util.inherits !== "function") throw "";
39
+ module.exports = util.inherits;
40
+ } catch (e) {
41
+ /* istanbul ignore next */
42
+ module.exports = require_inherits_browser();
43
+ }
44
+ }));
45
+ //#endregion
46
+ //#region ../../node_modules/.pnpm/safe-buffer@5.2.1/node_modules/safe-buffer/index.js
47
+ var require_safe_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
49
+ var buffer = __require("buffer");
50
+ var Buffer = buffer.Buffer;
51
+ function copyProps(src, dst) {
52
+ for (var key in src) dst[key] = src[key];
53
+ }
54
+ if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
55
+ else {
56
+ copyProps(buffer, exports);
57
+ exports.Buffer = SafeBuffer;
58
+ }
59
+ function SafeBuffer(arg, encodingOrOffset, length) {
60
+ return Buffer(arg, encodingOrOffset, length);
61
+ }
62
+ SafeBuffer.prototype = Object.create(Buffer.prototype);
63
+ copyProps(Buffer, SafeBuffer);
64
+ SafeBuffer.from = function(arg, encodingOrOffset, length) {
65
+ if (typeof arg === "number") throw new TypeError("Argument must not be a number");
66
+ return Buffer(arg, encodingOrOffset, length);
67
+ };
68
+ SafeBuffer.alloc = function(size, fill, encoding) {
69
+ if (typeof size !== "number") throw new TypeError("Argument must be a number");
70
+ var buf = Buffer(size);
71
+ if (fill !== void 0) {
72
+ if (typeof encoding === "string") buf.fill(fill, encoding);
73
+ else buf.fill(fill);
74
+ } else buf.fill(0);
75
+ return buf;
76
+ };
77
+ SafeBuffer.allocUnsafe = function(size) {
78
+ if (typeof size !== "number") throw new TypeError("Argument must be a number");
79
+ return Buffer(size);
80
+ };
81
+ SafeBuffer.allocUnsafeSlow = function(size) {
82
+ if (typeof size !== "number") throw new TypeError("Argument must be a number");
83
+ return buffer.SlowBuffer(size);
84
+ };
85
+ }));
86
+ //#endregion
87
+ //#region ../../node_modules/.pnpm/isarray@2.0.5/node_modules/isarray/index.js
88
+ var require_isarray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
89
+ var toString = {}.toString;
90
+ module.exports = Array.isArray || function(arr) {
91
+ return toString.call(arr) == "[object Array]";
92
+ };
93
+ }));
94
+ //#endregion
95
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js
96
+ var require_type = /* @__PURE__ */ __commonJSMin(((exports, module) => {
97
+ /** @type {import('./type')} */
98
+ module.exports = TypeError;
99
+ }));
100
+ //#endregion
101
+ //#region ../../node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js
102
+ var require_es_object_atoms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
103
+ /** @type {import('.')} */
104
+ module.exports = Object;
105
+ }));
106
+ //#endregion
107
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js
108
+ var require_es_errors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
109
+ /** @type {import('.')} */
110
+ module.exports = Error;
111
+ }));
112
+ //#endregion
113
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js
114
+ var require_eval = /* @__PURE__ */ __commonJSMin(((exports, module) => {
115
+ /** @type {import('./eval')} */
116
+ module.exports = EvalError;
117
+ }));
118
+ //#endregion
119
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js
120
+ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
121
+ /** @type {import('./range')} */
122
+ module.exports = RangeError;
123
+ }));
124
+ //#endregion
125
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js
126
+ var require_ref = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127
+ /** @type {import('./ref')} */
128
+ module.exports = ReferenceError;
129
+ }));
130
+ //#endregion
131
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js
132
+ var require_syntax = /* @__PURE__ */ __commonJSMin(((exports, module) => {
133
+ /** @type {import('./syntax')} */
134
+ module.exports = SyntaxError;
135
+ }));
136
+ //#endregion
137
+ //#region ../../node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js
138
+ var require_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
139
+ /** @type {import('./uri')} */
140
+ module.exports = URIError;
141
+ }));
142
+ //#endregion
143
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js
144
+ var require_abs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
145
+ /** @type {import('./abs')} */
146
+ module.exports = Math.abs;
147
+ }));
148
+ //#endregion
149
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js
150
+ var require_floor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
151
+ /** @type {import('./floor')} */
152
+ module.exports = Math.floor;
153
+ }));
154
+ //#endregion
155
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js
156
+ var require_max = /* @__PURE__ */ __commonJSMin(((exports, module) => {
157
+ /** @type {import('./max')} */
158
+ module.exports = Math.max;
159
+ }));
160
+ //#endregion
161
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js
162
+ var require_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
163
+ /** @type {import('./min')} */
164
+ module.exports = Math.min;
165
+ }));
166
+ //#endregion
167
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js
168
+ var require_pow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
169
+ /** @type {import('./pow')} */
170
+ module.exports = Math.pow;
171
+ }));
172
+ //#endregion
173
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js
174
+ var require_round = /* @__PURE__ */ __commonJSMin(((exports, module) => {
175
+ /** @type {import('./round')} */
176
+ module.exports = Math.round;
177
+ }));
178
+ //#endregion
179
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
180
+ var require_isNaN = /* @__PURE__ */ __commonJSMin(((exports, module) => {
181
+ /** @type {import('./isNaN')} */
182
+ module.exports = Number.isNaN || function isNaN(a) {
183
+ return a !== a;
184
+ };
185
+ }));
186
+ //#endregion
187
+ //#region ../../node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js
188
+ var require_sign = /* @__PURE__ */ __commonJSMin(((exports, module) => {
189
+ var $isNaN = require_isNaN();
190
+ /** @type {import('./sign')} */
191
+ module.exports = function sign(number) {
192
+ if ($isNaN(number) || number === 0) return number;
193
+ return number < 0 ? -1 : 1;
194
+ };
195
+ }));
196
+ //#endregion
197
+ //#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js
198
+ var require_gOPD = /* @__PURE__ */ __commonJSMin(((exports, module) => {
199
+ /** @type {import('./gOPD')} */
200
+ module.exports = Object.getOwnPropertyDescriptor;
201
+ }));
202
+ //#endregion
203
+ //#region ../../node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js
204
+ var require_gopd = /* @__PURE__ */ __commonJSMin(((exports, module) => {
205
+ /** @type {import('.')} */
206
+ var $gOPD = require_gOPD();
207
+ if ($gOPD) try {
208
+ $gOPD([], "length");
209
+ } catch (e) {
210
+ $gOPD = null;
211
+ }
212
+ module.exports = $gOPD;
213
+ }));
214
+ //#endregion
215
+ //#region ../../node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js
216
+ var require_es_define_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
217
+ /** @type {import('.')} */
218
+ var $defineProperty = Object.defineProperty || false;
219
+ if ($defineProperty) try {
220
+ $defineProperty({}, "a", { value: 1 });
221
+ } catch (e) {
222
+ $defineProperty = false;
223
+ }
224
+ module.exports = $defineProperty;
225
+ }));
226
+ //#endregion
227
+ //#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js
228
+ var require_shams$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
229
+ /** @type {import('./shams')} */
230
+ module.exports = function hasSymbols() {
231
+ if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") return false;
232
+ if (typeof Symbol.iterator === "symbol") return true;
233
+ /** @type {{ [k in symbol]?: unknown }} */
234
+ var obj = {};
235
+ var sym = Symbol("test");
236
+ var symObj = Object(sym);
237
+ if (typeof sym === "string") return false;
238
+ if (Object.prototype.toString.call(sym) !== "[object Symbol]") return false;
239
+ if (Object.prototype.toString.call(symObj) !== "[object Symbol]") return false;
240
+ var symVal = 42;
241
+ obj[sym] = symVal;
242
+ for (var _ in obj) return false;
243
+ if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) return false;
244
+ if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) return false;
245
+ var syms = Object.getOwnPropertySymbols(obj);
246
+ if (syms.length !== 1 || syms[0] !== sym) return false;
247
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) return false;
248
+ if (typeof Object.getOwnPropertyDescriptor === "function") {
249
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
250
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) return false;
251
+ }
252
+ return true;
253
+ };
254
+ }));
255
+ //#endregion
256
+ //#region ../../node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js
257
+ var require_has_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
258
+ var origSymbol = typeof Symbol !== "undefined" && Symbol;
259
+ var hasSymbolSham = require_shams$1();
260
+ /** @type {import('.')} */
261
+ module.exports = function hasNativeSymbols() {
262
+ if (typeof origSymbol !== "function") return false;
263
+ if (typeof Symbol !== "function") return false;
264
+ if (typeof origSymbol("foo") !== "symbol") return false;
265
+ if (typeof Symbol("bar") !== "symbol") return false;
266
+ return hasSymbolSham();
267
+ };
268
+ }));
269
+ //#endregion
270
+ //#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js
271
+ var require_Reflect_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
272
+ /** @type {import('./Reflect.getPrototypeOf')} */
273
+ module.exports = typeof Reflect !== "undefined" && Reflect.getPrototypeOf || null;
274
+ }));
275
+ //#endregion
276
+ //#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js
277
+ var require_Object_getPrototypeOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
278
+ /** @type {import('./Object.getPrototypeOf')} */
279
+ module.exports = require_es_object_atoms().getPrototypeOf || null;
280
+ }));
281
+ //#endregion
282
+ //#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js
283
+ var require_implementation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
284
+ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
285
+ var toStr = Object.prototype.toString;
286
+ var max = Math.max;
287
+ var funcType = "[object Function]";
288
+ var concatty = function concatty(a, b) {
289
+ var arr = [];
290
+ for (var i = 0; i < a.length; i += 1) arr[i] = a[i];
291
+ for (var j = 0; j < b.length; j += 1) arr[j + a.length] = b[j];
292
+ return arr;
293
+ };
294
+ var slicy = function slicy(arrLike, offset) {
295
+ var arr = [];
296
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) arr[j] = arrLike[i];
297
+ return arr;
298
+ };
299
+ var joiny = function(arr, joiner) {
300
+ var str = "";
301
+ for (var i = 0; i < arr.length; i += 1) {
302
+ str += arr[i];
303
+ if (i + 1 < arr.length) str += joiner;
304
+ }
305
+ return str;
306
+ };
307
+ module.exports = function bind(that) {
308
+ var target = this;
309
+ if (typeof target !== "function" || toStr.apply(target) !== funcType) throw new TypeError(ERROR_MESSAGE + target);
310
+ var args = slicy(arguments, 1);
311
+ var bound;
312
+ var binder = function() {
313
+ if (this instanceof bound) {
314
+ var result = target.apply(this, concatty(args, arguments));
315
+ if (Object(result) === result) return result;
316
+ return this;
317
+ }
318
+ return target.apply(that, concatty(args, arguments));
319
+ };
320
+ var boundLength = max(0, target.length - args.length);
321
+ var boundArgs = [];
322
+ for (var i = 0; i < boundLength; i++) boundArgs[i] = "$" + i;
323
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
324
+ if (target.prototype) {
325
+ var Empty = function Empty() {};
326
+ Empty.prototype = target.prototype;
327
+ bound.prototype = new Empty();
328
+ Empty.prototype = null;
329
+ }
330
+ return bound;
331
+ };
332
+ }));
333
+ //#endregion
334
+ //#region ../../node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js
335
+ var require_function_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
336
+ var implementation = require_implementation();
337
+ module.exports = Function.prototype.bind || implementation;
338
+ }));
339
+ //#endregion
340
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js
341
+ var require_functionCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
342
+ /** @type {import('./functionCall')} */
343
+ module.exports = Function.prototype.call;
344
+ }));
345
+ //#endregion
346
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js
347
+ var require_functionApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
348
+ /** @type {import('./functionApply')} */
349
+ module.exports = Function.prototype.apply;
350
+ }));
351
+ //#endregion
352
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js
353
+ var require_reflectApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
354
+ /** @type {import('./reflectApply')} */
355
+ module.exports = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
356
+ }));
357
+ //#endregion
358
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js
359
+ var require_actualApply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
360
+ var bind = require_function_bind();
361
+ var $apply = require_functionApply();
362
+ var $call = require_functionCall();
363
+ /** @type {import('./actualApply')} */
364
+ module.exports = require_reflectApply() || bind.call($call, $apply);
365
+ }));
366
+ //#endregion
367
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js
368
+ var require_call_bind_apply_helpers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
369
+ var bind = require_function_bind();
370
+ var $TypeError = require_type();
371
+ var $call = require_functionCall();
372
+ var $actualApply = require_actualApply();
373
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
374
+ module.exports = function callBindBasic(args) {
375
+ if (args.length < 1 || typeof args[0] !== "function") throw new $TypeError("a function is required");
376
+ return $actualApply(bind, $call, args);
377
+ };
378
+ }));
379
+ //#endregion
380
+ //#region ../../node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js
381
+ var require_get = /* @__PURE__ */ __commonJSMin(((exports, module) => {
382
+ var callBind = require_call_bind_apply_helpers();
383
+ var gOPD = require_gopd();
384
+ var hasProtoAccessor;
385
+ try {
386
+ hasProtoAccessor = [].__proto__ === Array.prototype;
387
+ } catch (e) {
388
+ if (!e || typeof e !== "object" || !("code" in e) || e.code !== "ERR_PROTO_ACCESS") throw e;
389
+ }
390
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, "__proto__");
391
+ var $Object = Object;
392
+ var $getPrototypeOf = $Object.getPrototypeOf;
393
+ /** @type {import('./get')} */
394
+ module.exports = desc && typeof desc.get === "function" ? callBind([desc.get]) : typeof $getPrototypeOf === "function" ? function getDunder(value) {
395
+ return $getPrototypeOf(value == null ? value : $Object(value));
396
+ } : false;
397
+ }));
398
+ //#endregion
399
+ //#region ../../node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js
400
+ var require_get_proto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
401
+ var reflectGetProto = require_Reflect_getPrototypeOf();
402
+ var originalGetProto = require_Object_getPrototypeOf();
403
+ var getDunderProto = require_get();
404
+ /** @type {import('.')} */
405
+ module.exports = reflectGetProto ? function getProto(O) {
406
+ return reflectGetProto(O);
407
+ } : originalGetProto ? function getProto(O) {
408
+ if (!O || typeof O !== "object" && typeof O !== "function") throw new TypeError("getProto: not an object");
409
+ return originalGetProto(O);
410
+ } : getDunderProto ? function getProto(O) {
411
+ return getDunderProto(O);
412
+ } : null;
413
+ }));
414
+ //#endregion
415
+ //#region ../../node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js
416
+ var require_hasown = /* @__PURE__ */ __commonJSMin(((exports, module) => {
417
+ var call = Function.prototype.call;
418
+ var $hasOwn = Object.prototype.hasOwnProperty;
419
+ /** @type {import('.')} */
420
+ module.exports = require_function_bind().call(call, $hasOwn);
421
+ }));
422
+ //#endregion
423
+ //#region ../../node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js
424
+ var require_get_intrinsic = /* @__PURE__ */ __commonJSMin(((exports, module) => {
425
+ var undefined;
426
+ var $Object = require_es_object_atoms();
427
+ var $Error = require_es_errors();
428
+ var $EvalError = require_eval();
429
+ var $RangeError = require_range();
430
+ var $ReferenceError = require_ref();
431
+ var $SyntaxError = require_syntax();
432
+ var $TypeError = require_type();
433
+ var $URIError = require_uri();
434
+ var abs = require_abs();
435
+ var floor = require_floor();
436
+ var max = require_max();
437
+ var min = require_min();
438
+ var pow = require_pow();
439
+ var round = require_round();
440
+ var sign = require_sign();
441
+ var $Function = Function;
442
+ var getEvalledConstructor = function(expressionSyntax) {
443
+ try {
444
+ return $Function("\"use strict\"; return (" + expressionSyntax + ").constructor;")();
445
+ } catch (e) {}
446
+ };
447
+ var $gOPD = require_gopd();
448
+ var $defineProperty = require_es_define_property();
449
+ var throwTypeError = function() {
450
+ throw new $TypeError();
451
+ };
452
+ var ThrowTypeError = $gOPD ? function() {
453
+ try {
454
+ arguments.callee;
455
+ return throwTypeError;
456
+ } catch (calleeThrows) {
457
+ try {
458
+ return $gOPD(arguments, "callee").get;
459
+ } catch (gOPDthrows) {
460
+ return throwTypeError;
461
+ }
462
+ }
463
+ }() : throwTypeError;
464
+ var hasSymbols = require_has_symbols()();
465
+ var getProto = require_get_proto();
466
+ var $ObjectGPO = require_Object_getPrototypeOf();
467
+ var $ReflectGPO = require_Reflect_getPrototypeOf();
468
+ var $apply = require_functionApply();
469
+ var $call = require_functionCall();
470
+ var needsEval = {};
471
+ var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined : getProto(Uint8Array);
472
+ var INTRINSICS = {
473
+ __proto__: null,
474
+ "%AggregateError%": typeof AggregateError === "undefined" ? undefined : AggregateError,
475
+ "%Array%": Array,
476
+ "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined : ArrayBuffer,
477
+ "%ArrayIteratorPrototype%": hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
478
+ "%AsyncFromSyncIteratorPrototype%": undefined,
479
+ "%AsyncFunction%": needsEval,
480
+ "%AsyncGenerator%": needsEval,
481
+ "%AsyncGeneratorFunction%": needsEval,
482
+ "%AsyncIteratorPrototype%": needsEval,
483
+ "%Atomics%": typeof Atomics === "undefined" ? undefined : Atomics,
484
+ "%BigInt%": typeof BigInt === "undefined" ? undefined : BigInt,
485
+ "%BigInt64Array%": typeof BigInt64Array === "undefined" ? undefined : BigInt64Array,
486
+ "%BigUint64Array%": typeof BigUint64Array === "undefined" ? undefined : BigUint64Array,
487
+ "%Boolean%": Boolean,
488
+ "%DataView%": typeof DataView === "undefined" ? undefined : DataView,
489
+ "%Date%": Date,
490
+ "%decodeURI%": decodeURI,
491
+ "%decodeURIComponent%": decodeURIComponent,
492
+ "%encodeURI%": encodeURI,
493
+ "%encodeURIComponent%": encodeURIComponent,
494
+ "%Error%": $Error,
495
+ "%eval%": eval,
496
+ "%EvalError%": $EvalError,
497
+ "%Float16Array%": typeof Float16Array === "undefined" ? undefined : Float16Array,
498
+ "%Float32Array%": typeof Float32Array === "undefined" ? undefined : Float32Array,
499
+ "%Float64Array%": typeof Float64Array === "undefined" ? undefined : Float64Array,
500
+ "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined : FinalizationRegistry,
501
+ "%Function%": $Function,
502
+ "%GeneratorFunction%": needsEval,
503
+ "%Int8Array%": typeof Int8Array === "undefined" ? undefined : Int8Array,
504
+ "%Int16Array%": typeof Int16Array === "undefined" ? undefined : Int16Array,
505
+ "%Int32Array%": typeof Int32Array === "undefined" ? undefined : Int32Array,
506
+ "%isFinite%": isFinite,
507
+ "%isNaN%": isNaN,
508
+ "%IteratorPrototype%": hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
509
+ "%JSON%": typeof JSON === "object" ? JSON : undefined,
510
+ "%Map%": typeof Map === "undefined" ? undefined : Map,
511
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
512
+ "%Math%": Math,
513
+ "%Number%": Number,
514
+ "%Object%": $Object,
515
+ "%Object.getOwnPropertyDescriptor%": $gOPD,
516
+ "%parseFloat%": parseFloat,
517
+ "%parseInt%": parseInt,
518
+ "%Promise%": typeof Promise === "undefined" ? undefined : Promise,
519
+ "%Proxy%": typeof Proxy === "undefined" ? undefined : Proxy,
520
+ "%RangeError%": $RangeError,
521
+ "%ReferenceError%": $ReferenceError,
522
+ "%Reflect%": typeof Reflect === "undefined" ? undefined : Reflect,
523
+ "%RegExp%": RegExp,
524
+ "%Set%": typeof Set === "undefined" ? undefined : Set,
525
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols || !getProto ? undefined : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
526
+ "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined : SharedArrayBuffer,
527
+ "%String%": String,
528
+ "%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined,
529
+ "%Symbol%": hasSymbols ? Symbol : undefined,
530
+ "%SyntaxError%": $SyntaxError,
531
+ "%ThrowTypeError%": ThrowTypeError,
532
+ "%TypedArray%": TypedArray,
533
+ "%TypeError%": $TypeError,
534
+ "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined : Uint8Array,
535
+ "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined : Uint8ClampedArray,
536
+ "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined : Uint16Array,
537
+ "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined : Uint32Array,
538
+ "%URIError%": $URIError,
539
+ "%WeakMap%": typeof WeakMap === "undefined" ? undefined : WeakMap,
540
+ "%WeakRef%": typeof WeakRef === "undefined" ? undefined : WeakRef,
541
+ "%WeakSet%": typeof WeakSet === "undefined" ? undefined : WeakSet,
542
+ "%Function.prototype.call%": $call,
543
+ "%Function.prototype.apply%": $apply,
544
+ "%Object.defineProperty%": $defineProperty,
545
+ "%Object.getPrototypeOf%": $ObjectGPO,
546
+ "%Math.abs%": abs,
547
+ "%Math.floor%": floor,
548
+ "%Math.max%": max,
549
+ "%Math.min%": min,
550
+ "%Math.pow%": pow,
551
+ "%Math.round%": round,
552
+ "%Math.sign%": sign,
553
+ "%Reflect.getPrototypeOf%": $ReflectGPO
554
+ };
555
+ if (getProto) try {
556
+ null.error;
557
+ } catch (e) {
558
+ INTRINSICS["%Error.prototype%"] = getProto(getProto(e));
559
+ }
560
+ var doEval = function doEval(name) {
561
+ var value;
562
+ if (name === "%AsyncFunction%") value = getEvalledConstructor("async function () {}");
563
+ else if (name === "%GeneratorFunction%") value = getEvalledConstructor("function* () {}");
564
+ else if (name === "%AsyncGeneratorFunction%") value = getEvalledConstructor("async function* () {}");
565
+ else if (name === "%AsyncGenerator%") {
566
+ var fn = doEval("%AsyncGeneratorFunction%");
567
+ if (fn) value = fn.prototype;
568
+ } else if (name === "%AsyncIteratorPrototype%") {
569
+ var gen = doEval("%AsyncGenerator%");
570
+ if (gen && getProto) value = getProto(gen.prototype);
571
+ }
572
+ INTRINSICS[name] = value;
573
+ return value;
574
+ };
575
+ var LEGACY_ALIASES = {
576
+ __proto__: null,
577
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
578
+ "%ArrayPrototype%": ["Array", "prototype"],
579
+ "%ArrayProto_entries%": [
580
+ "Array",
581
+ "prototype",
582
+ "entries"
583
+ ],
584
+ "%ArrayProto_forEach%": [
585
+ "Array",
586
+ "prototype",
587
+ "forEach"
588
+ ],
589
+ "%ArrayProto_keys%": [
590
+ "Array",
591
+ "prototype",
592
+ "keys"
593
+ ],
594
+ "%ArrayProto_values%": [
595
+ "Array",
596
+ "prototype",
597
+ "values"
598
+ ],
599
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
600
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
601
+ "%AsyncGeneratorPrototype%": [
602
+ "AsyncGeneratorFunction",
603
+ "prototype",
604
+ "prototype"
605
+ ],
606
+ "%BooleanPrototype%": ["Boolean", "prototype"],
607
+ "%DataViewPrototype%": ["DataView", "prototype"],
608
+ "%DatePrototype%": ["Date", "prototype"],
609
+ "%ErrorPrototype%": ["Error", "prototype"],
610
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
611
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
612
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
613
+ "%FunctionPrototype%": ["Function", "prototype"],
614
+ "%Generator%": ["GeneratorFunction", "prototype"],
615
+ "%GeneratorPrototype%": [
616
+ "GeneratorFunction",
617
+ "prototype",
618
+ "prototype"
619
+ ],
620
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
621
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
622
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
623
+ "%JSONParse%": ["JSON", "parse"],
624
+ "%JSONStringify%": ["JSON", "stringify"],
625
+ "%MapPrototype%": ["Map", "prototype"],
626
+ "%NumberPrototype%": ["Number", "prototype"],
627
+ "%ObjectPrototype%": ["Object", "prototype"],
628
+ "%ObjProto_toString%": [
629
+ "Object",
630
+ "prototype",
631
+ "toString"
632
+ ],
633
+ "%ObjProto_valueOf%": [
634
+ "Object",
635
+ "prototype",
636
+ "valueOf"
637
+ ],
638
+ "%PromisePrototype%": ["Promise", "prototype"],
639
+ "%PromiseProto_then%": [
640
+ "Promise",
641
+ "prototype",
642
+ "then"
643
+ ],
644
+ "%Promise_all%": ["Promise", "all"],
645
+ "%Promise_reject%": ["Promise", "reject"],
646
+ "%Promise_resolve%": ["Promise", "resolve"],
647
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
648
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
649
+ "%RegExpPrototype%": ["RegExp", "prototype"],
650
+ "%SetPrototype%": ["Set", "prototype"],
651
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
652
+ "%StringPrototype%": ["String", "prototype"],
653
+ "%SymbolPrototype%": ["Symbol", "prototype"],
654
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
655
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
656
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
657
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
658
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
659
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
660
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
661
+ "%URIErrorPrototype%": ["URIError", "prototype"],
662
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
663
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
664
+ };
665
+ var bind = require_function_bind();
666
+ var hasOwn = require_hasown();
667
+ var $concat = bind.call($call, Array.prototype.concat);
668
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
669
+ var $replace = bind.call($call, String.prototype.replace);
670
+ var $strSlice = bind.call($call, String.prototype.slice);
671
+ var $exec = bind.call($call, RegExp.prototype.exec);
672
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
673
+ var reEscapeChar = /\\(\\)?/g;
674
+ var stringToPath = function stringToPath(string) {
675
+ var first = $strSlice(string, 0, 1);
676
+ var last = $strSlice(string, -1);
677
+ if (first === "%" && last !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
678
+ else if (last === "%" && first !== "%") throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
679
+ var result = [];
680
+ $replace(string, rePropName, function(match, number, quote, subString) {
681
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
682
+ });
683
+ return result;
684
+ };
685
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
686
+ var intrinsicName = name;
687
+ var alias;
688
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
689
+ alias = LEGACY_ALIASES[intrinsicName];
690
+ intrinsicName = "%" + alias[0] + "%";
691
+ }
692
+ if (hasOwn(INTRINSICS, intrinsicName)) {
693
+ var value = INTRINSICS[intrinsicName];
694
+ if (value === needsEval) value = doEval(intrinsicName);
695
+ if (typeof value === "undefined" && !allowMissing) throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
696
+ return {
697
+ alias,
698
+ name: intrinsicName,
699
+ value
700
+ };
701
+ }
702
+ throw new $SyntaxError("intrinsic " + name + " does not exist!");
703
+ };
704
+ module.exports = function GetIntrinsic(name, allowMissing) {
705
+ if (typeof name !== "string" || name.length === 0) throw new $TypeError("intrinsic name must be a non-empty string");
706
+ if (arguments.length > 1 && typeof allowMissing !== "boolean") throw new $TypeError("\"allowMissing\" argument must be a boolean");
707
+ if ($exec(/^%?[^%]*%?$/, name) === null) throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
708
+ var parts = stringToPath(name);
709
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
710
+ var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
711
+ var intrinsicRealName = intrinsic.name;
712
+ var value = intrinsic.value;
713
+ var skipFurtherCaching = false;
714
+ var alias = intrinsic.alias;
715
+ if (alias) {
716
+ intrinsicBaseName = alias[0];
717
+ $spliceApply(parts, $concat([0, 1], alias));
718
+ }
719
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
720
+ var part = parts[i];
721
+ var first = $strSlice(part, 0, 1);
722
+ var last = $strSlice(part, -1);
723
+ if ((first === "\"" || first === "'" || first === "`" || last === "\"" || last === "'" || last === "`") && first !== last) throw new $SyntaxError("property names with quotes must have matching quotes");
724
+ if (part === "constructor" || !isOwn) skipFurtherCaching = true;
725
+ intrinsicBaseName += "." + part;
726
+ intrinsicRealName = "%" + intrinsicBaseName + "%";
727
+ if (hasOwn(INTRINSICS, intrinsicRealName)) value = INTRINSICS[intrinsicRealName];
728
+ else if (value != null) {
729
+ if (!(part in value)) {
730
+ if (!allowMissing) throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
731
+ return;
732
+ }
733
+ if ($gOPD && i + 1 >= parts.length) {
734
+ var desc = $gOPD(value, part);
735
+ isOwn = !!desc;
736
+ if (isOwn && "get" in desc && !("originalValue" in desc.get)) value = desc.get;
737
+ else value = value[part];
738
+ } else {
739
+ isOwn = hasOwn(value, part);
740
+ value = value[part];
741
+ }
742
+ if (isOwn && !skipFurtherCaching) INTRINSICS[intrinsicRealName] = value;
743
+ }
744
+ }
745
+ return value;
746
+ };
747
+ }));
748
+ //#endregion
749
+ //#region ../../node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js
750
+ var require_call_bound = /* @__PURE__ */ __commonJSMin(((exports, module) => {
751
+ var GetIntrinsic = require_get_intrinsic();
752
+ var callBindBasic = require_call_bind_apply_helpers();
753
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
754
+ var $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
755
+ /** @type {import('.')} */
756
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
757
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
758
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) return callBindBasic([intrinsic]);
759
+ return intrinsic;
760
+ };
761
+ }));
762
+ //#endregion
763
+ //#region ../../node_modules/.pnpm/is-callable@1.2.7/node_modules/is-callable/index.js
764
+ var require_is_callable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
765
+ var fnToStr = Function.prototype.toString;
766
+ var reflectApply = typeof Reflect === "object" && Reflect !== null && Reflect.apply;
767
+ var badArrayLike;
768
+ var isCallableMarker;
769
+ if (typeof reflectApply === "function" && typeof Object.defineProperty === "function") try {
770
+ badArrayLike = Object.defineProperty({}, "length", { get: function() {
771
+ throw isCallableMarker;
772
+ } });
773
+ isCallableMarker = {};
774
+ reflectApply(function() {
775
+ throw 42;
776
+ }, null, badArrayLike);
777
+ } catch (_) {
778
+ if (_ !== isCallableMarker) reflectApply = null;
779
+ }
780
+ else reflectApply = null;
781
+ var constructorRegex = /^\s*class\b/;
782
+ var isES6ClassFn = function isES6ClassFunction(value) {
783
+ try {
784
+ var fnStr = fnToStr.call(value);
785
+ return constructorRegex.test(fnStr);
786
+ } catch (e) {
787
+ return false;
788
+ }
789
+ };
790
+ var tryFunctionObject = function tryFunctionToStr(value) {
791
+ try {
792
+ if (isES6ClassFn(value)) return false;
793
+ fnToStr.call(value);
794
+ return true;
795
+ } catch (e) {
796
+ return false;
797
+ }
798
+ };
799
+ var toStr = Object.prototype.toString;
800
+ var objectClass = "[object Object]";
801
+ var fnClass = "[object Function]";
802
+ var genClass = "[object GeneratorFunction]";
803
+ var ddaClass = "[object HTMLAllCollection]";
804
+ var ddaClass2 = "[object HTML document.all class]";
805
+ var ddaClass3 = "[object HTMLCollection]";
806
+ var hasToStringTag = typeof Symbol === "function" && !!Symbol.toStringTag;
807
+ var isIE68 = !(0 in [,]);
808
+ var isDDA = function isDocumentDotAll() {
809
+ return false;
810
+ };
811
+ if (typeof document === "object") {
812
+ var all = document.all;
813
+ if (toStr.call(all) === toStr.call(document.all)) isDDA = function isDocumentDotAll(value) {
814
+ if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) try {
815
+ var str = toStr.call(value);
816
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 || str === objectClass) && value("") == null;
817
+ } catch (e) {}
818
+ return false;
819
+ };
820
+ }
821
+ module.exports = reflectApply ? function isCallable(value) {
822
+ if (isDDA(value)) return true;
823
+ if (!value) return false;
824
+ if (typeof value !== "function" && typeof value !== "object") return false;
825
+ try {
826
+ reflectApply(value, null, badArrayLike);
827
+ } catch (e) {
828
+ if (e !== isCallableMarker) return false;
829
+ }
830
+ return !isES6ClassFn(value) && tryFunctionObject(value);
831
+ } : function isCallable(value) {
832
+ if (isDDA(value)) return true;
833
+ if (!value) return false;
834
+ if (typeof value !== "function" && typeof value !== "object") return false;
835
+ if (hasToStringTag) return tryFunctionObject(value);
836
+ if (isES6ClassFn(value)) return false;
837
+ var strClass = toStr.call(value);
838
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) return false;
839
+ return tryFunctionObject(value);
840
+ };
841
+ }));
842
+ //#endregion
843
+ //#region ../../node_modules/.pnpm/for-each@0.3.5/node_modules/for-each/index.js
844
+ var require_for_each = /* @__PURE__ */ __commonJSMin(((exports, module) => {
845
+ var isCallable = require_is_callable();
846
+ var toStr = Object.prototype.toString;
847
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
848
+ /** @type {<This, A extends readonly unknown[]>(arr: A, iterator: (this: This | void, value: A[number], index: number, arr: A) => void, receiver: This | undefined) => void} */
849
+ var forEachArray = function forEachArray(array, iterator, receiver) {
850
+ for (var i = 0, len = array.length; i < len; i++) if (hasOwnProperty.call(array, i)) {
851
+ if (receiver == null) iterator(array[i], i, array);
852
+ else iterator.call(receiver, array[i], i, array);
853
+ }
854
+ };
855
+ /** @type {<This, S extends string>(string: S, iterator: (this: This | void, value: S[number], index: number, string: S) => void, receiver: This | undefined) => void} */
856
+ var forEachString = function forEachString(string, iterator, receiver) {
857
+ for (var i = 0, len = string.length; i < len; i++) if (receiver == null) iterator(string.charAt(i), i, string);
858
+ else iterator.call(receiver, string.charAt(i), i, string);
859
+ };
860
+ /** @type {<This, O>(obj: O, iterator: (this: This | void, value: O[keyof O], index: keyof O, obj: O) => void, receiver: This | undefined) => void} */
861
+ var forEachObject = function forEachObject(object, iterator, receiver) {
862
+ for (var k in object) if (hasOwnProperty.call(object, k)) {
863
+ if (receiver == null) iterator(object[k], k, object);
864
+ else iterator.call(receiver, object[k], k, object);
865
+ }
866
+ };
867
+ /** @type {(x: unknown) => x is readonly unknown[]} */
868
+ function isArray(x) {
869
+ return toStr.call(x) === "[object Array]";
870
+ }
871
+ /** @type {import('.')._internal} */
872
+ module.exports = function forEach(list, iterator, thisArg) {
873
+ if (!isCallable(iterator)) throw new TypeError("iterator must be a function");
874
+ var receiver;
875
+ if (arguments.length >= 3) receiver = thisArg;
876
+ if (isArray(list)) forEachArray(list, iterator, receiver);
877
+ else if (typeof list === "string") forEachString(list, iterator, receiver);
878
+ else forEachObject(list, iterator, receiver);
879
+ };
880
+ }));
881
+ //#endregion
882
+ //#region ../../node_modules/.pnpm/possible-typed-array-names@1.1.0/node_modules/possible-typed-array-names/index.js
883
+ var require_possible_typed_array_names = /* @__PURE__ */ __commonJSMin(((exports, module) => {
884
+ /** @type {import('.')} */
885
+ module.exports = [
886
+ "Float16Array",
887
+ "Float32Array",
888
+ "Float64Array",
889
+ "Int8Array",
890
+ "Int16Array",
891
+ "Int32Array",
892
+ "Uint8Array",
893
+ "Uint8ClampedArray",
894
+ "Uint16Array",
895
+ "Uint32Array",
896
+ "BigInt64Array",
897
+ "BigUint64Array"
898
+ ];
899
+ }));
900
+ //#endregion
901
+ //#region ../../node_modules/.pnpm/available-typed-arrays@1.0.7/node_modules/available-typed-arrays/index.js
902
+ var require_available_typed_arrays = /* @__PURE__ */ __commonJSMin(((exports, module) => {
903
+ var possibleNames = require_possible_typed_array_names();
904
+ var g = typeof globalThis === "undefined" ? global : globalThis;
905
+ /** @type {import('.')} */
906
+ module.exports = function availableTypedArrays() {
907
+ var out = [];
908
+ for (var i = 0; i < possibleNames.length; i++) if (typeof g[possibleNames[i]] === "function") out[out.length] = possibleNames[i];
909
+ return out;
910
+ };
911
+ }));
912
+ //#endregion
913
+ //#region ../../node_modules/.pnpm/define-data-property@1.1.4/node_modules/define-data-property/index.js
914
+ var require_define_data_property = /* @__PURE__ */ __commonJSMin(((exports, module) => {
915
+ var $defineProperty = require_es_define_property();
916
+ var $SyntaxError = require_syntax();
917
+ var $TypeError = require_type();
918
+ var gopd = require_gopd();
919
+ /** @type {import('.')} */
920
+ module.exports = function defineDataProperty(obj, property, value) {
921
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") throw new $TypeError("`obj` must be an object or a function`");
922
+ if (typeof property !== "string" && typeof property !== "symbol") throw new $TypeError("`property` must be a string or a symbol`");
923
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) throw new $TypeError("`nonEnumerable`, if provided, must be a boolean or null");
924
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) throw new $TypeError("`nonWritable`, if provided, must be a boolean or null");
925
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) throw new $TypeError("`nonConfigurable`, if provided, must be a boolean or null");
926
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") throw new $TypeError("`loose`, if provided, must be a boolean");
927
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
928
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
929
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
930
+ var loose = arguments.length > 6 ? arguments[6] : false;
931
+ var desc = !!gopd && gopd(obj, property);
932
+ if ($defineProperty) $defineProperty(obj, property, {
933
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
934
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
935
+ value,
936
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
937
+ });
938
+ else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) obj[property] = value;
939
+ else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
940
+ };
941
+ }));
942
+ //#endregion
943
+ //#region ../../node_modules/.pnpm/has-property-descriptors@1.0.2/node_modules/has-property-descriptors/index.js
944
+ var require_has_property_descriptors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
945
+ var $defineProperty = require_es_define_property();
946
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
947
+ return !!$defineProperty;
948
+ };
949
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
950
+ if (!$defineProperty) return null;
951
+ try {
952
+ return $defineProperty([], "length", { value: 1 }).length !== 1;
953
+ } catch (e) {
954
+ return true;
955
+ }
956
+ };
957
+ module.exports = hasPropertyDescriptors;
958
+ }));
959
+ //#endregion
960
+ //#region ../../node_modules/.pnpm/set-function-length@1.2.2/node_modules/set-function-length/index.js
961
+ var require_set_function_length = /* @__PURE__ */ __commonJSMin(((exports, module) => {
962
+ var GetIntrinsic = require_get_intrinsic();
963
+ var define = require_define_data_property();
964
+ var hasDescriptors = require_has_property_descriptors()();
965
+ var gOPD = require_gopd();
966
+ var $TypeError = require_type();
967
+ var $floor = GetIntrinsic("%Math.floor%");
968
+ /** @type {import('.')} */
969
+ module.exports = function setFunctionLength(fn, length) {
970
+ if (typeof fn !== "function") throw new $TypeError("`fn` is not a function");
971
+ if (typeof length !== "number" || length < 0 || length > 4294967295 || $floor(length) !== length) throw new $TypeError("`length` must be a positive 32-bit integer");
972
+ var loose = arguments.length > 2 && !!arguments[2];
973
+ var functionLengthIsConfigurable = true;
974
+ var functionLengthIsWritable = true;
975
+ if ("length" in fn && gOPD) {
976
+ var desc = gOPD(fn, "length");
977
+ if (desc && !desc.configurable) functionLengthIsConfigurable = false;
978
+ if (desc && !desc.writable) functionLengthIsWritable = false;
979
+ }
980
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
981
+ if (hasDescriptors) define(fn, "length", length, true, true);
982
+ else define(fn, "length", length);
983
+ }
984
+ return fn;
985
+ };
986
+ }));
987
+ //#endregion
988
+ //#region ../../node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/applyBind.js
989
+ var require_applyBind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
+ var bind = require_function_bind();
991
+ var $apply = require_functionApply();
992
+ var actualApply = require_actualApply();
993
+ /** @type {import('./applyBind')} */
994
+ module.exports = function applyBind() {
995
+ return actualApply(bind, $apply, arguments);
996
+ };
997
+ }));
998
+ //#endregion
999
+ //#region ../../node_modules/.pnpm/call-bind@1.0.8/node_modules/call-bind/index.js
1000
+ var require_call_bind = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1001
+ var setFunctionLength = require_set_function_length();
1002
+ var $defineProperty = require_es_define_property();
1003
+ var callBindBasic = require_call_bind_apply_helpers();
1004
+ var applyBind = require_applyBind();
1005
+ module.exports = function callBind(originalFunction) {
1006
+ var func = callBindBasic(arguments);
1007
+ var adjustedLength = originalFunction.length - (arguments.length - 1);
1008
+ return setFunctionLength(func, 1 + (adjustedLength > 0 ? adjustedLength : 0), true);
1009
+ };
1010
+ if ($defineProperty) $defineProperty(module.exports, "apply", { value: applyBind });
1011
+ else module.exports.apply = applyBind;
1012
+ }));
1013
+ //#endregion
1014
+ //#region ../../node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js
1015
+ var require_shams = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1016
+ var hasSymbols = require_shams$1();
1017
+ /** @type {import('.')} */
1018
+ module.exports = function hasToStringTagShams() {
1019
+ return hasSymbols() && !!Symbol.toStringTag;
1020
+ };
1021
+ }));
1022
+ //#endregion
1023
+ //#region ../../node_modules/.pnpm/which-typed-array@1.1.20/node_modules/which-typed-array/index.js
1024
+ var require_which_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1025
+ var forEach = require_for_each();
1026
+ var availableTypedArrays = require_available_typed_arrays();
1027
+ var callBind = require_call_bind();
1028
+ var callBound = require_call_bound();
1029
+ var gOPD = require_gopd();
1030
+ var getProto = require_get_proto();
1031
+ var $toString = callBound("Object.prototype.toString");
1032
+ var hasToStringTag = require_shams()();
1033
+ var g = typeof globalThis === "undefined" ? global : globalThis;
1034
+ var typedArrays = availableTypedArrays();
1035
+ var $slice = callBound("String.prototype.slice");
1036
+ /** @type {<T = unknown>(array: readonly T[], value: unknown) => number} */
1037
+ var $indexOf = callBound("Array.prototype.indexOf", true) || function indexOf(array, value) {
1038
+ for (var i = 0; i < array.length; i += 1) if (array[i] === value) return i;
1039
+ return -1;
1040
+ };
1041
+ /** @typedef {import('./types').Getter} Getter */
1042
+ /** @type {import('./types').Cache} */
1043
+ var cache = { __proto__: null };
1044
+ if (hasToStringTag && gOPD && getProto) forEach(typedArrays, function(typedArray) {
1045
+ var arr = new g[typedArray]();
1046
+ if (Symbol.toStringTag in arr && getProto) {
1047
+ var proto = getProto(arr);
1048
+ var descriptor = gOPD(proto, Symbol.toStringTag);
1049
+ if (!descriptor && proto) descriptor = gOPD(getProto(proto), Symbol.toStringTag);
1050
+ if (descriptor && descriptor.get) {
1051
+ var bound = callBind(descriptor.get);
1052
+ cache["$" + typedArray] = bound;
1053
+ }
1054
+ }
1055
+ });
1056
+ else forEach(typedArrays, function(typedArray) {
1057
+ var arr = new g[typedArray]();
1058
+ var fn = arr.slice || arr.set;
1059
+ if (fn) {
1060
+ var bound = callBind(fn);
1061
+ cache["$" + typedArray] = bound;
1062
+ }
1063
+ });
1064
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
1065
+ var tryTypedArrays = function tryAllTypedArrays(value) {
1066
+ /** @type {ReturnType<typeof tryAllTypedArrays>} */ var found = false;
1067
+ forEach(
1068
+ cache,
1069
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1070
+ function(getter, typedArray) {
1071
+ if (!found) try {
1072
+ if ("$" + getter(value) === typedArray) found = $slice(typedArray, 1);
1073
+ } catch (e) {}
1074
+ }
1075
+ );
1076
+ return found;
1077
+ };
1078
+ /** @type {(value: object) => false | import('.').TypedArrayName} */
1079
+ var trySlices = function tryAllSlices(value) {
1080
+ /** @type {ReturnType<typeof tryAllSlices>} */ var found = false;
1081
+ forEach(
1082
+ cache,
1083
+ /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
1084
+ function(getter, name) {
1085
+ if (!found) try {
1086
+ getter(value);
1087
+ found = $slice(name, 1);
1088
+ } catch (e) {}
1089
+ }
1090
+ );
1091
+ return found;
1092
+ };
1093
+ /** @type {import('.')} */
1094
+ module.exports = function whichTypedArray(value) {
1095
+ if (!value || typeof value !== "object") return false;
1096
+ if (!hasToStringTag) {
1097
+ /** @type {string} */
1098
+ var tag = $slice($toString(value), 8, -1);
1099
+ if ($indexOf(typedArrays, tag) > -1) return tag;
1100
+ if (tag !== "Object") return false;
1101
+ return trySlices(value);
1102
+ }
1103
+ if (!gOPD) return null;
1104
+ return tryTypedArrays(value);
1105
+ };
1106
+ }));
1107
+ //#endregion
1108
+ //#region ../../node_modules/.pnpm/is-typed-array@1.1.15/node_modules/is-typed-array/index.js
1109
+ var require_is_typed_array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1110
+ var whichTypedArray = require_which_typed_array();
1111
+ /** @type {import('.')} */
1112
+ module.exports = function isTypedArray(value) {
1113
+ return !!whichTypedArray(value);
1114
+ };
1115
+ }));
1116
+ //#endregion
1117
+ //#region ../../node_modules/.pnpm/typed-array-buffer@1.0.3/node_modules/typed-array-buffer/index.js
1118
+ var require_typed_array_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1119
+ var $TypeError = require_type();
1120
+ /** @type {undefined | ((thisArg: import('.').TypedArray) => Buffer<ArrayBufferLike>)} */
1121
+ var $typedArrayBuffer = require_call_bound()("TypedArray.prototype.buffer", true);
1122
+ var isTypedArray = require_is_typed_array();
1123
+ /** @type {import('.')} */
1124
+ module.exports = $typedArrayBuffer || function typedArrayBuffer(x) {
1125
+ if (!isTypedArray(x)) throw new $TypeError("Not a Typed Array");
1126
+ return x.buffer;
1127
+ };
1128
+ }));
1129
+ //#endregion
1130
+ //#region ../../node_modules/.pnpm/to-buffer@1.2.2/node_modules/to-buffer/index.js
1131
+ var require_to_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1132
+ var Buffer = require_safe_buffer().Buffer;
1133
+ var isArray = require_isarray();
1134
+ var typedArrayBuffer = require_typed_array_buffer();
1135
+ var isView = ArrayBuffer.isView || function isView(obj) {
1136
+ try {
1137
+ typedArrayBuffer(obj);
1138
+ return true;
1139
+ } catch (e) {
1140
+ return false;
1141
+ }
1142
+ };
1143
+ var useUint8Array = typeof Uint8Array !== "undefined";
1144
+ var useArrayBuffer = typeof ArrayBuffer !== "undefined" && typeof Uint8Array !== "undefined";
1145
+ var useFromArrayBuffer = useArrayBuffer && (Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT);
1146
+ module.exports = function toBuffer(data, encoding) {
1147
+ if (Buffer.isBuffer(data)) {
1148
+ if (data.constructor && !("isBuffer" in data)) return Buffer.from(data);
1149
+ return data;
1150
+ }
1151
+ if (typeof data === "string") return Buffer.from(data, encoding);
1152
+ if (useArrayBuffer && isView(data)) {
1153
+ if (data.byteLength === 0) return Buffer.alloc(0);
1154
+ if (useFromArrayBuffer) {
1155
+ var res = Buffer.from(data.buffer, data.byteOffset, data.byteLength);
1156
+ if (res.byteLength === data.byteLength) return res;
1157
+ }
1158
+ var uint8 = data instanceof Uint8Array ? data : new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
1159
+ var result = Buffer.from(uint8);
1160
+ if (result.length === data.byteLength) return result;
1161
+ }
1162
+ if (useUint8Array && data instanceof Uint8Array) return Buffer.from(data);
1163
+ var isArr = isArray(data);
1164
+ if (isArr) for (var i = 0; i < data.length; i += 1) {
1165
+ var x = data[i];
1166
+ if (typeof x !== "number" || x < 0 || x > 255 || ~~x !== x) throw new RangeError("Array items must be numbers in the range 0-255.");
1167
+ }
1168
+ if (isArr || Buffer.isBuffer(data) && data.constructor && typeof data.constructor.isBuffer === "function" && data.constructor.isBuffer(data)) return Buffer.from(data);
1169
+ throw new TypeError("The \"data\" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.");
1170
+ };
1171
+ }));
1172
+ //#endregion
1173
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/hash.js
1174
+ var require_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1175
+ var Buffer = require_safe_buffer().Buffer;
1176
+ var toBuffer = require_to_buffer();
1177
+ function Hash(blockSize, finalSize) {
1178
+ this._block = Buffer.alloc(blockSize);
1179
+ this._finalSize = finalSize;
1180
+ this._blockSize = blockSize;
1181
+ this._len = 0;
1182
+ }
1183
+ Hash.prototype.update = function(data, enc) {
1184
+ data = toBuffer(data, enc || "utf8");
1185
+ var block = this._block;
1186
+ var blockSize = this._blockSize;
1187
+ var length = data.length;
1188
+ var accum = this._len;
1189
+ for (var offset = 0; offset < length;) {
1190
+ var assigned = accum % blockSize;
1191
+ var remainder = Math.min(length - offset, blockSize - assigned);
1192
+ for (var i = 0; i < remainder; i++) block[assigned + i] = data[offset + i];
1193
+ accum += remainder;
1194
+ offset += remainder;
1195
+ if (accum % blockSize === 0) this._update(block);
1196
+ }
1197
+ this._len += length;
1198
+ return this;
1199
+ };
1200
+ Hash.prototype.digest = function(enc) {
1201
+ var rem = this._len % this._blockSize;
1202
+ this._block[rem] = 128;
1203
+ this._block.fill(0, rem + 1);
1204
+ if (rem >= this._finalSize) {
1205
+ this._update(this._block);
1206
+ this._block.fill(0);
1207
+ }
1208
+ var bits = this._len * 8;
1209
+ if (bits <= 4294967295) this._block.writeUInt32BE(bits, this._blockSize - 4);
1210
+ else {
1211
+ var lowBits = (bits & 4294967295) >>> 0;
1212
+ var highBits = (bits - lowBits) / 4294967296;
1213
+ this._block.writeUInt32BE(highBits, this._blockSize - 8);
1214
+ this._block.writeUInt32BE(lowBits, this._blockSize - 4);
1215
+ }
1216
+ this._update(this._block);
1217
+ var hash = this._hash();
1218
+ return enc ? hash.toString(enc) : hash;
1219
+ };
1220
+ Hash.prototype._update = function() {
1221
+ throw new Error("_update must be implemented by subclass");
1222
+ };
1223
+ module.exports = Hash;
1224
+ }));
1225
+ //#endregion
1226
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha.js
1227
+ var require_sha = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1228
+ var inherits = require_inherits();
1229
+ var Hash = require_hash();
1230
+ var Buffer = require_safe_buffer().Buffer;
1231
+ var K = [
1232
+ 1518500249,
1233
+ 1859775393,
1234
+ -1894007588,
1235
+ -899497514
1236
+ ];
1237
+ var W = new Array(80);
1238
+ function Sha() {
1239
+ this.init();
1240
+ this._w = W;
1241
+ Hash.call(this, 64, 56);
1242
+ }
1243
+ inherits(Sha, Hash);
1244
+ Sha.prototype.init = function() {
1245
+ this._a = 1732584193;
1246
+ this._b = 4023233417;
1247
+ this._c = 2562383102;
1248
+ this._d = 271733878;
1249
+ this._e = 3285377520;
1250
+ return this;
1251
+ };
1252
+ function rotl5(num) {
1253
+ return num << 5 | num >>> 27;
1254
+ }
1255
+ function rotl30(num) {
1256
+ return num << 30 | num >>> 2;
1257
+ }
1258
+ function ft(s, b, c, d) {
1259
+ if (s === 0) return b & c | ~b & d;
1260
+ if (s === 2) return b & c | b & d | c & d;
1261
+ return b ^ c ^ d;
1262
+ }
1263
+ Sha.prototype._update = function(M) {
1264
+ var w = this._w;
1265
+ var a = this._a | 0;
1266
+ var b = this._b | 0;
1267
+ var c = this._c | 0;
1268
+ var d = this._d | 0;
1269
+ var e = this._e | 0;
1270
+ for (var i = 0; i < 16; ++i) w[i] = M.readInt32BE(i * 4);
1271
+ for (; i < 80; ++i) w[i] = w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16];
1272
+ for (var j = 0; j < 80; ++j) {
1273
+ var s = ~~(j / 20);
1274
+ var t = rotl5(a) + ft(s, b, c, d) + e + w[j] + K[s] | 0;
1275
+ e = d;
1276
+ d = c;
1277
+ c = rotl30(b);
1278
+ b = a;
1279
+ a = t;
1280
+ }
1281
+ this._a = a + this._a | 0;
1282
+ this._b = b + this._b | 0;
1283
+ this._c = c + this._c | 0;
1284
+ this._d = d + this._d | 0;
1285
+ this._e = e + this._e | 0;
1286
+ };
1287
+ Sha.prototype._hash = function() {
1288
+ var H = Buffer.allocUnsafe(20);
1289
+ H.writeInt32BE(this._a | 0, 0);
1290
+ H.writeInt32BE(this._b | 0, 4);
1291
+ H.writeInt32BE(this._c | 0, 8);
1292
+ H.writeInt32BE(this._d | 0, 12);
1293
+ H.writeInt32BE(this._e | 0, 16);
1294
+ return H;
1295
+ };
1296
+ module.exports = Sha;
1297
+ }));
1298
+ //#endregion
1299
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha1.js
1300
+ var require_sha1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1301
+ var inherits = require_inherits();
1302
+ var Hash = require_hash();
1303
+ var Buffer = require_safe_buffer().Buffer;
1304
+ var K = [
1305
+ 1518500249,
1306
+ 1859775393,
1307
+ -1894007588,
1308
+ -899497514
1309
+ ];
1310
+ var W = new Array(80);
1311
+ function Sha1() {
1312
+ this.init();
1313
+ this._w = W;
1314
+ Hash.call(this, 64, 56);
1315
+ }
1316
+ inherits(Sha1, Hash);
1317
+ Sha1.prototype.init = function() {
1318
+ this._a = 1732584193;
1319
+ this._b = 4023233417;
1320
+ this._c = 2562383102;
1321
+ this._d = 271733878;
1322
+ this._e = 3285377520;
1323
+ return this;
1324
+ };
1325
+ function rotl1(num) {
1326
+ return num << 1 | num >>> 31;
1327
+ }
1328
+ function rotl5(num) {
1329
+ return num << 5 | num >>> 27;
1330
+ }
1331
+ function rotl30(num) {
1332
+ return num << 30 | num >>> 2;
1333
+ }
1334
+ function ft(s, b, c, d) {
1335
+ if (s === 0) return b & c | ~b & d;
1336
+ if (s === 2) return b & c | b & d | c & d;
1337
+ return b ^ c ^ d;
1338
+ }
1339
+ Sha1.prototype._update = function(M) {
1340
+ var w = this._w;
1341
+ var a = this._a | 0;
1342
+ var b = this._b | 0;
1343
+ var c = this._c | 0;
1344
+ var d = this._d | 0;
1345
+ var e = this._e | 0;
1346
+ for (var i = 0; i < 16; ++i) w[i] = M.readInt32BE(i * 4);
1347
+ for (; i < 80; ++i) w[i] = rotl1(w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]);
1348
+ for (var j = 0; j < 80; ++j) {
1349
+ var s = ~~(j / 20);
1350
+ var t = rotl5(a) + ft(s, b, c, d) + e + w[j] + K[s] | 0;
1351
+ e = d;
1352
+ d = c;
1353
+ c = rotl30(b);
1354
+ b = a;
1355
+ a = t;
1356
+ }
1357
+ this._a = a + this._a | 0;
1358
+ this._b = b + this._b | 0;
1359
+ this._c = c + this._c | 0;
1360
+ this._d = d + this._d | 0;
1361
+ this._e = e + this._e | 0;
1362
+ };
1363
+ Sha1.prototype._hash = function() {
1364
+ var H = Buffer.allocUnsafe(20);
1365
+ H.writeInt32BE(this._a | 0, 0);
1366
+ H.writeInt32BE(this._b | 0, 4);
1367
+ H.writeInt32BE(this._c | 0, 8);
1368
+ H.writeInt32BE(this._d | 0, 12);
1369
+ H.writeInt32BE(this._e | 0, 16);
1370
+ return H;
1371
+ };
1372
+ module.exports = Sha1;
1373
+ }));
1374
+ //#endregion
1375
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha256.js
1376
+ var require_sha256 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1377
+ /**
1378
+ * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
1379
+ * in FIPS 180-2
1380
+ * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
1381
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
1382
+ *
1383
+ */
1384
+ var inherits = require_inherits();
1385
+ var Hash = require_hash();
1386
+ var Buffer = require_safe_buffer().Buffer;
1387
+ var K = [
1388
+ 1116352408,
1389
+ 1899447441,
1390
+ 3049323471,
1391
+ 3921009573,
1392
+ 961987163,
1393
+ 1508970993,
1394
+ 2453635748,
1395
+ 2870763221,
1396
+ 3624381080,
1397
+ 310598401,
1398
+ 607225278,
1399
+ 1426881987,
1400
+ 1925078388,
1401
+ 2162078206,
1402
+ 2614888103,
1403
+ 3248222580,
1404
+ 3835390401,
1405
+ 4022224774,
1406
+ 264347078,
1407
+ 604807628,
1408
+ 770255983,
1409
+ 1249150122,
1410
+ 1555081692,
1411
+ 1996064986,
1412
+ 2554220882,
1413
+ 2821834349,
1414
+ 2952996808,
1415
+ 3210313671,
1416
+ 3336571891,
1417
+ 3584528711,
1418
+ 113926993,
1419
+ 338241895,
1420
+ 666307205,
1421
+ 773529912,
1422
+ 1294757372,
1423
+ 1396182291,
1424
+ 1695183700,
1425
+ 1986661051,
1426
+ 2177026350,
1427
+ 2456956037,
1428
+ 2730485921,
1429
+ 2820302411,
1430
+ 3259730800,
1431
+ 3345764771,
1432
+ 3516065817,
1433
+ 3600352804,
1434
+ 4094571909,
1435
+ 275423344,
1436
+ 430227734,
1437
+ 506948616,
1438
+ 659060556,
1439
+ 883997877,
1440
+ 958139571,
1441
+ 1322822218,
1442
+ 1537002063,
1443
+ 1747873779,
1444
+ 1955562222,
1445
+ 2024104815,
1446
+ 2227730452,
1447
+ 2361852424,
1448
+ 2428436474,
1449
+ 2756734187,
1450
+ 3204031479,
1451
+ 3329325298
1452
+ ];
1453
+ var W = new Array(64);
1454
+ function Sha256() {
1455
+ this.init();
1456
+ this._w = W;
1457
+ Hash.call(this, 64, 56);
1458
+ }
1459
+ inherits(Sha256, Hash);
1460
+ Sha256.prototype.init = function() {
1461
+ this._a = 1779033703;
1462
+ this._b = 3144134277;
1463
+ this._c = 1013904242;
1464
+ this._d = 2773480762;
1465
+ this._e = 1359893119;
1466
+ this._f = 2600822924;
1467
+ this._g = 528734635;
1468
+ this._h = 1541459225;
1469
+ return this;
1470
+ };
1471
+ function ch(x, y, z) {
1472
+ return z ^ x & (y ^ z);
1473
+ }
1474
+ function maj(x, y, z) {
1475
+ return x & y | z & (x | y);
1476
+ }
1477
+ function sigma0(x) {
1478
+ return (x >>> 2 | x << 30) ^ (x >>> 13 | x << 19) ^ (x >>> 22 | x << 10);
1479
+ }
1480
+ function sigma1(x) {
1481
+ return (x >>> 6 | x << 26) ^ (x >>> 11 | x << 21) ^ (x >>> 25 | x << 7);
1482
+ }
1483
+ function gamma0(x) {
1484
+ return (x >>> 7 | x << 25) ^ (x >>> 18 | x << 14) ^ x >>> 3;
1485
+ }
1486
+ function gamma1(x) {
1487
+ return (x >>> 17 | x << 15) ^ (x >>> 19 | x << 13) ^ x >>> 10;
1488
+ }
1489
+ Sha256.prototype._update = function(M) {
1490
+ var w = this._w;
1491
+ var a = this._a | 0;
1492
+ var b = this._b | 0;
1493
+ var c = this._c | 0;
1494
+ var d = this._d | 0;
1495
+ var e = this._e | 0;
1496
+ var f = this._f | 0;
1497
+ var g = this._g | 0;
1498
+ var h = this._h | 0;
1499
+ for (var i = 0; i < 16; ++i) w[i] = M.readInt32BE(i * 4);
1500
+ for (; i < 64; ++i) w[i] = gamma1(w[i - 2]) + w[i - 7] + gamma0(w[i - 15]) + w[i - 16] | 0;
1501
+ for (var j = 0; j < 64; ++j) {
1502
+ var T1 = h + sigma1(e) + ch(e, f, g) + K[j] + w[j] | 0;
1503
+ var T2 = sigma0(a) + maj(a, b, c) | 0;
1504
+ h = g;
1505
+ g = f;
1506
+ f = e;
1507
+ e = d + T1 | 0;
1508
+ d = c;
1509
+ c = b;
1510
+ b = a;
1511
+ a = T1 + T2 | 0;
1512
+ }
1513
+ this._a = a + this._a | 0;
1514
+ this._b = b + this._b | 0;
1515
+ this._c = c + this._c | 0;
1516
+ this._d = d + this._d | 0;
1517
+ this._e = e + this._e | 0;
1518
+ this._f = f + this._f | 0;
1519
+ this._g = g + this._g | 0;
1520
+ this._h = h + this._h | 0;
1521
+ };
1522
+ Sha256.prototype._hash = function() {
1523
+ var H = Buffer.allocUnsafe(32);
1524
+ H.writeInt32BE(this._a, 0);
1525
+ H.writeInt32BE(this._b, 4);
1526
+ H.writeInt32BE(this._c, 8);
1527
+ H.writeInt32BE(this._d, 12);
1528
+ H.writeInt32BE(this._e, 16);
1529
+ H.writeInt32BE(this._f, 20);
1530
+ H.writeInt32BE(this._g, 24);
1531
+ H.writeInt32BE(this._h, 28);
1532
+ return H;
1533
+ };
1534
+ module.exports = Sha256;
1535
+ }));
1536
+ //#endregion
1537
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha224.js
1538
+ var require_sha224 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1539
+ /**
1540
+ * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined
1541
+ * in FIPS 180-2
1542
+ * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.
1543
+ * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
1544
+ *
1545
+ */
1546
+ var inherits = require_inherits();
1547
+ var Sha256 = require_sha256();
1548
+ var Hash = require_hash();
1549
+ var Buffer = require_safe_buffer().Buffer;
1550
+ var W = new Array(64);
1551
+ function Sha224() {
1552
+ this.init();
1553
+ this._w = W;
1554
+ Hash.call(this, 64, 56);
1555
+ }
1556
+ inherits(Sha224, Sha256);
1557
+ Sha224.prototype.init = function() {
1558
+ this._a = 3238371032;
1559
+ this._b = 914150663;
1560
+ this._c = 812702999;
1561
+ this._d = 4144912697;
1562
+ this._e = 4290775857;
1563
+ this._f = 1750603025;
1564
+ this._g = 1694076839;
1565
+ this._h = 3204075428;
1566
+ return this;
1567
+ };
1568
+ Sha224.prototype._hash = function() {
1569
+ var H = Buffer.allocUnsafe(28);
1570
+ H.writeInt32BE(this._a, 0);
1571
+ H.writeInt32BE(this._b, 4);
1572
+ H.writeInt32BE(this._c, 8);
1573
+ H.writeInt32BE(this._d, 12);
1574
+ H.writeInt32BE(this._e, 16);
1575
+ H.writeInt32BE(this._f, 20);
1576
+ H.writeInt32BE(this._g, 24);
1577
+ return H;
1578
+ };
1579
+ module.exports = Sha224;
1580
+ }));
1581
+ //#endregion
1582
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha512.js
1583
+ var require_sha512 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1584
+ var inherits = require_inherits();
1585
+ var Hash = require_hash();
1586
+ var Buffer = require_safe_buffer().Buffer;
1587
+ var K = [
1588
+ 1116352408,
1589
+ 3609767458,
1590
+ 1899447441,
1591
+ 602891725,
1592
+ 3049323471,
1593
+ 3964484399,
1594
+ 3921009573,
1595
+ 2173295548,
1596
+ 961987163,
1597
+ 4081628472,
1598
+ 1508970993,
1599
+ 3053834265,
1600
+ 2453635748,
1601
+ 2937671579,
1602
+ 2870763221,
1603
+ 3664609560,
1604
+ 3624381080,
1605
+ 2734883394,
1606
+ 310598401,
1607
+ 1164996542,
1608
+ 607225278,
1609
+ 1323610764,
1610
+ 1426881987,
1611
+ 3590304994,
1612
+ 1925078388,
1613
+ 4068182383,
1614
+ 2162078206,
1615
+ 991336113,
1616
+ 2614888103,
1617
+ 633803317,
1618
+ 3248222580,
1619
+ 3479774868,
1620
+ 3835390401,
1621
+ 2666613458,
1622
+ 4022224774,
1623
+ 944711139,
1624
+ 264347078,
1625
+ 2341262773,
1626
+ 604807628,
1627
+ 2007800933,
1628
+ 770255983,
1629
+ 1495990901,
1630
+ 1249150122,
1631
+ 1856431235,
1632
+ 1555081692,
1633
+ 3175218132,
1634
+ 1996064986,
1635
+ 2198950837,
1636
+ 2554220882,
1637
+ 3999719339,
1638
+ 2821834349,
1639
+ 766784016,
1640
+ 2952996808,
1641
+ 2566594879,
1642
+ 3210313671,
1643
+ 3203337956,
1644
+ 3336571891,
1645
+ 1034457026,
1646
+ 3584528711,
1647
+ 2466948901,
1648
+ 113926993,
1649
+ 3758326383,
1650
+ 338241895,
1651
+ 168717936,
1652
+ 666307205,
1653
+ 1188179964,
1654
+ 773529912,
1655
+ 1546045734,
1656
+ 1294757372,
1657
+ 1522805485,
1658
+ 1396182291,
1659
+ 2643833823,
1660
+ 1695183700,
1661
+ 2343527390,
1662
+ 1986661051,
1663
+ 1014477480,
1664
+ 2177026350,
1665
+ 1206759142,
1666
+ 2456956037,
1667
+ 344077627,
1668
+ 2730485921,
1669
+ 1290863460,
1670
+ 2820302411,
1671
+ 3158454273,
1672
+ 3259730800,
1673
+ 3505952657,
1674
+ 3345764771,
1675
+ 106217008,
1676
+ 3516065817,
1677
+ 3606008344,
1678
+ 3600352804,
1679
+ 1432725776,
1680
+ 4094571909,
1681
+ 1467031594,
1682
+ 275423344,
1683
+ 851169720,
1684
+ 430227734,
1685
+ 3100823752,
1686
+ 506948616,
1687
+ 1363258195,
1688
+ 659060556,
1689
+ 3750685593,
1690
+ 883997877,
1691
+ 3785050280,
1692
+ 958139571,
1693
+ 3318307427,
1694
+ 1322822218,
1695
+ 3812723403,
1696
+ 1537002063,
1697
+ 2003034995,
1698
+ 1747873779,
1699
+ 3602036899,
1700
+ 1955562222,
1701
+ 1575990012,
1702
+ 2024104815,
1703
+ 1125592928,
1704
+ 2227730452,
1705
+ 2716904306,
1706
+ 2361852424,
1707
+ 442776044,
1708
+ 2428436474,
1709
+ 593698344,
1710
+ 2756734187,
1711
+ 3733110249,
1712
+ 3204031479,
1713
+ 2999351573,
1714
+ 3329325298,
1715
+ 3815920427,
1716
+ 3391569614,
1717
+ 3928383900,
1718
+ 3515267271,
1719
+ 566280711,
1720
+ 3940187606,
1721
+ 3454069534,
1722
+ 4118630271,
1723
+ 4000239992,
1724
+ 116418474,
1725
+ 1914138554,
1726
+ 174292421,
1727
+ 2731055270,
1728
+ 289380356,
1729
+ 3203993006,
1730
+ 460393269,
1731
+ 320620315,
1732
+ 685471733,
1733
+ 587496836,
1734
+ 852142971,
1735
+ 1086792851,
1736
+ 1017036298,
1737
+ 365543100,
1738
+ 1126000580,
1739
+ 2618297676,
1740
+ 1288033470,
1741
+ 3409855158,
1742
+ 1501505948,
1743
+ 4234509866,
1744
+ 1607167915,
1745
+ 987167468,
1746
+ 1816402316,
1747
+ 1246189591
1748
+ ];
1749
+ var W = new Array(160);
1750
+ function Sha512() {
1751
+ this.init();
1752
+ this._w = W;
1753
+ Hash.call(this, 128, 112);
1754
+ }
1755
+ inherits(Sha512, Hash);
1756
+ Sha512.prototype.init = function() {
1757
+ this._ah = 1779033703;
1758
+ this._bh = 3144134277;
1759
+ this._ch = 1013904242;
1760
+ this._dh = 2773480762;
1761
+ this._eh = 1359893119;
1762
+ this._fh = 2600822924;
1763
+ this._gh = 528734635;
1764
+ this._hh = 1541459225;
1765
+ this._al = 4089235720;
1766
+ this._bl = 2227873595;
1767
+ this._cl = 4271175723;
1768
+ this._dl = 1595750129;
1769
+ this._el = 2917565137;
1770
+ this._fl = 725511199;
1771
+ this._gl = 4215389547;
1772
+ this._hl = 327033209;
1773
+ return this;
1774
+ };
1775
+ function Ch(x, y, z) {
1776
+ return z ^ x & (y ^ z);
1777
+ }
1778
+ function maj(x, y, z) {
1779
+ return x & y | z & (x | y);
1780
+ }
1781
+ function sigma0(x, xl) {
1782
+ return (x >>> 28 | xl << 4) ^ (xl >>> 2 | x << 30) ^ (xl >>> 7 | x << 25);
1783
+ }
1784
+ function sigma1(x, xl) {
1785
+ return (x >>> 14 | xl << 18) ^ (x >>> 18 | xl << 14) ^ (xl >>> 9 | x << 23);
1786
+ }
1787
+ function Gamma0(x, xl) {
1788
+ return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ x >>> 7;
1789
+ }
1790
+ function Gamma0l(x, xl) {
1791
+ return (x >>> 1 | xl << 31) ^ (x >>> 8 | xl << 24) ^ (x >>> 7 | xl << 25);
1792
+ }
1793
+ function Gamma1(x, xl) {
1794
+ return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ x >>> 6;
1795
+ }
1796
+ function Gamma1l(x, xl) {
1797
+ return (x >>> 19 | xl << 13) ^ (xl >>> 29 | x << 3) ^ (x >>> 6 | xl << 26);
1798
+ }
1799
+ function getCarry(a, b) {
1800
+ return a >>> 0 < b >>> 0 ? 1 : 0;
1801
+ }
1802
+ Sha512.prototype._update = function(M) {
1803
+ var w = this._w;
1804
+ var ah = this._ah | 0;
1805
+ var bh = this._bh | 0;
1806
+ var ch = this._ch | 0;
1807
+ var dh = this._dh | 0;
1808
+ var eh = this._eh | 0;
1809
+ var fh = this._fh | 0;
1810
+ var gh = this._gh | 0;
1811
+ var hh = this._hh | 0;
1812
+ var al = this._al | 0;
1813
+ var bl = this._bl | 0;
1814
+ var cl = this._cl | 0;
1815
+ var dl = this._dl | 0;
1816
+ var el = this._el | 0;
1817
+ var fl = this._fl | 0;
1818
+ var gl = this._gl | 0;
1819
+ var hl = this._hl | 0;
1820
+ for (var i = 0; i < 32; i += 2) {
1821
+ w[i] = M.readInt32BE(i * 4);
1822
+ w[i + 1] = M.readInt32BE(i * 4 + 4);
1823
+ }
1824
+ for (; i < 160; i += 2) {
1825
+ var xh = w[i - 30];
1826
+ var xl = w[i - 30 + 1];
1827
+ var gamma0 = Gamma0(xh, xl);
1828
+ var gamma0l = Gamma0l(xl, xh);
1829
+ xh = w[i - 4];
1830
+ xl = w[i - 4 + 1];
1831
+ var gamma1 = Gamma1(xh, xl);
1832
+ var gamma1l = Gamma1l(xl, xh);
1833
+ var Wi7h = w[i - 14];
1834
+ var Wi7l = w[i - 14 + 1];
1835
+ var Wi16h = w[i - 32];
1836
+ var Wi16l = w[i - 32 + 1];
1837
+ var Wil = gamma0l + Wi7l | 0;
1838
+ var Wih = gamma0 + Wi7h + getCarry(Wil, gamma0l) | 0;
1839
+ Wil = Wil + gamma1l | 0;
1840
+ Wih = Wih + gamma1 + getCarry(Wil, gamma1l) | 0;
1841
+ Wil = Wil + Wi16l | 0;
1842
+ Wih = Wih + Wi16h + getCarry(Wil, Wi16l) | 0;
1843
+ w[i] = Wih;
1844
+ w[i + 1] = Wil;
1845
+ }
1846
+ for (var j = 0; j < 160; j += 2) {
1847
+ Wih = w[j];
1848
+ Wil = w[j + 1];
1849
+ var majh = maj(ah, bh, ch);
1850
+ var majl = maj(al, bl, cl);
1851
+ var sigma0h = sigma0(ah, al);
1852
+ var sigma0l = sigma0(al, ah);
1853
+ var sigma1h = sigma1(eh, el);
1854
+ var sigma1l = sigma1(el, eh);
1855
+ var Kih = K[j];
1856
+ var Kil = K[j + 1];
1857
+ var chh = Ch(eh, fh, gh);
1858
+ var chl = Ch(el, fl, gl);
1859
+ var t1l = hl + sigma1l | 0;
1860
+ var t1h = hh + sigma1h + getCarry(t1l, hl) | 0;
1861
+ t1l = t1l + chl | 0;
1862
+ t1h = t1h + chh + getCarry(t1l, chl) | 0;
1863
+ t1l = t1l + Kil | 0;
1864
+ t1h = t1h + Kih + getCarry(t1l, Kil) | 0;
1865
+ t1l = t1l + Wil | 0;
1866
+ t1h = t1h + Wih + getCarry(t1l, Wil) | 0;
1867
+ var t2l = sigma0l + majl | 0;
1868
+ var t2h = sigma0h + majh + getCarry(t2l, sigma0l) | 0;
1869
+ hh = gh;
1870
+ hl = gl;
1871
+ gh = fh;
1872
+ gl = fl;
1873
+ fh = eh;
1874
+ fl = el;
1875
+ el = dl + t1l | 0;
1876
+ eh = dh + t1h + getCarry(el, dl) | 0;
1877
+ dh = ch;
1878
+ dl = cl;
1879
+ ch = bh;
1880
+ cl = bl;
1881
+ bh = ah;
1882
+ bl = al;
1883
+ al = t1l + t2l | 0;
1884
+ ah = t1h + t2h + getCarry(al, t1l) | 0;
1885
+ }
1886
+ this._al = this._al + al | 0;
1887
+ this._bl = this._bl + bl | 0;
1888
+ this._cl = this._cl + cl | 0;
1889
+ this._dl = this._dl + dl | 0;
1890
+ this._el = this._el + el | 0;
1891
+ this._fl = this._fl + fl | 0;
1892
+ this._gl = this._gl + gl | 0;
1893
+ this._hl = this._hl + hl | 0;
1894
+ this._ah = this._ah + ah + getCarry(this._al, al) | 0;
1895
+ this._bh = this._bh + bh + getCarry(this._bl, bl) | 0;
1896
+ this._ch = this._ch + ch + getCarry(this._cl, cl) | 0;
1897
+ this._dh = this._dh + dh + getCarry(this._dl, dl) | 0;
1898
+ this._eh = this._eh + eh + getCarry(this._el, el) | 0;
1899
+ this._fh = this._fh + fh + getCarry(this._fl, fl) | 0;
1900
+ this._gh = this._gh + gh + getCarry(this._gl, gl) | 0;
1901
+ this._hh = this._hh + hh + getCarry(this._hl, hl) | 0;
1902
+ };
1903
+ Sha512.prototype._hash = function() {
1904
+ var H = Buffer.allocUnsafe(64);
1905
+ function writeInt64BE(h, l, offset) {
1906
+ H.writeInt32BE(h, offset);
1907
+ H.writeInt32BE(l, offset + 4);
1908
+ }
1909
+ writeInt64BE(this._ah, this._al, 0);
1910
+ writeInt64BE(this._bh, this._bl, 8);
1911
+ writeInt64BE(this._ch, this._cl, 16);
1912
+ writeInt64BE(this._dh, this._dl, 24);
1913
+ writeInt64BE(this._eh, this._el, 32);
1914
+ writeInt64BE(this._fh, this._fl, 40);
1915
+ writeInt64BE(this._gh, this._gl, 48);
1916
+ writeInt64BE(this._hh, this._hl, 56);
1917
+ return H;
1918
+ };
1919
+ module.exports = Sha512;
1920
+ }));
1921
+ //#endregion
1922
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/sha384.js
1923
+ var require_sha384 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1924
+ var inherits = require_inherits();
1925
+ var SHA512 = require_sha512();
1926
+ var Hash = require_hash();
1927
+ var Buffer = require_safe_buffer().Buffer;
1928
+ var W = new Array(160);
1929
+ function Sha384() {
1930
+ this.init();
1931
+ this._w = W;
1932
+ Hash.call(this, 128, 112);
1933
+ }
1934
+ inherits(Sha384, SHA512);
1935
+ Sha384.prototype.init = function() {
1936
+ this._ah = 3418070365;
1937
+ this._bh = 1654270250;
1938
+ this._ch = 2438529370;
1939
+ this._dh = 355462360;
1940
+ this._eh = 1731405415;
1941
+ this._fh = 2394180231;
1942
+ this._gh = 3675008525;
1943
+ this._hh = 1203062813;
1944
+ this._al = 3238371032;
1945
+ this._bl = 914150663;
1946
+ this._cl = 812702999;
1947
+ this._dl = 4144912697;
1948
+ this._el = 4290775857;
1949
+ this._fl = 1750603025;
1950
+ this._gl = 1694076839;
1951
+ this._hl = 3204075428;
1952
+ return this;
1953
+ };
1954
+ Sha384.prototype._hash = function() {
1955
+ var H = Buffer.allocUnsafe(48);
1956
+ function writeInt64BE(h, l, offset) {
1957
+ H.writeInt32BE(h, offset);
1958
+ H.writeInt32BE(l, offset + 4);
1959
+ }
1960
+ writeInt64BE(this._ah, this._al, 0);
1961
+ writeInt64BE(this._bh, this._bl, 8);
1962
+ writeInt64BE(this._ch, this._cl, 16);
1963
+ writeInt64BE(this._dh, this._dl, 24);
1964
+ writeInt64BE(this._eh, this._el, 32);
1965
+ writeInt64BE(this._fh, this._fl, 40);
1966
+ return H;
1967
+ };
1968
+ module.exports = Sha384;
1969
+ }));
1970
+ //#endregion
1971
+ //#region ../../node_modules/.pnpm/sha.js@2.4.12/node_modules/sha.js/index.js
1972
+ var require_sha_js = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1973
+ module.exports = function SHA(algorithm) {
1974
+ var alg = algorithm.toLowerCase();
1975
+ var Algorithm = module.exports[alg];
1976
+ if (!Algorithm) throw new Error(alg + " is not supported (we accept pull requests)");
1977
+ return new Algorithm();
1978
+ };
1979
+ module.exports.sha = require_sha();
1980
+ module.exports.sha1 = require_sha1();
1981
+ module.exports.sha224 = require_sha224();
1982
+ module.exports.sha256 = require_sha256();
1983
+ module.exports.sha384 = require_sha384();
1984
+ module.exports.sha512 = require_sha512();
1985
+ }));
1986
+ //#endregion
1987
+ //#region ../../node_modules/.pnpm/@apollo+utils.createhash@3.0.1/node_modules/@apollo/utils.createhash/dist/index.js
1988
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1989
+ Object.defineProperty(exports, "__esModule", { value: true });
1990
+ exports.createHash = void 0;
1991
+ const utils_isnodelike_1 = require_dist$1();
1992
+ function createHash(kind) {
1993
+ if (utils_isnodelike_1.isNodeLike && module.require) return module.require("crypto").createHash(kind);
1994
+ return require_sha_js()(kind);
1995
+ }
1996
+ exports.createHash = createHash;
1997
+ }));
1998
+ //#endregion
1999
+ export { require_inherits as a, require_type as i, require_call_bound as n, require_dist$1 as o, require_get_intrinsic as r, require_dist as t };
2000
+
2001
+ //# sourceMappingURL=dist-C1JhdHfo.js.map