mp-darkmode 1.2.3-beta.6 → 1.2.3-beta.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.
package/dist/darkmode.js CHANGED
@@ -96,6 +96,125 @@ return /******/ (function(modules) { // webpackBootstrap
96
96
  /************************************************************************/
97
97
  /******/ ({
98
98
 
99
+ /***/ "./node_modules/call-bind-apply-helpers/actualApply.js":
100
+ /*!*************************************************************!*\
101
+ !*** ./node_modules/call-bind-apply-helpers/actualApply.js ***!
102
+ \*************************************************************/
103
+ /*! no static exports found */
104
+ /***/ (function(module, exports, __webpack_require__) {
105
+
106
+ "use strict";
107
+
108
+
109
+ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
110
+ var $apply = __webpack_require__(/*! ./functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js");
111
+ var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
112
+ var $reflectApply = __webpack_require__(/*! ./reflectApply */ "./node_modules/call-bind-apply-helpers/reflectApply.js");
113
+
114
+ /** @type {import('./actualApply')} */
115
+ module.exports = $reflectApply || bind.call($call, $apply);
116
+
117
+ /***/ }),
118
+
119
+ /***/ "./node_modules/call-bind-apply-helpers/functionApply.js":
120
+ /*!***************************************************************!*\
121
+ !*** ./node_modules/call-bind-apply-helpers/functionApply.js ***!
122
+ \***************************************************************/
123
+ /*! no static exports found */
124
+ /***/ (function(module, exports, __webpack_require__) {
125
+
126
+ "use strict";
127
+
128
+
129
+ /** @type {import('./functionApply')} */
130
+ module.exports = Function.prototype.apply;
131
+
132
+ /***/ }),
133
+
134
+ /***/ "./node_modules/call-bind-apply-helpers/functionCall.js":
135
+ /*!**************************************************************!*\
136
+ !*** ./node_modules/call-bind-apply-helpers/functionCall.js ***!
137
+ \**************************************************************/
138
+ /*! no static exports found */
139
+ /***/ (function(module, exports, __webpack_require__) {
140
+
141
+ "use strict";
142
+
143
+
144
+ /** @type {import('./functionCall')} */
145
+ module.exports = Function.prototype.call;
146
+
147
+ /***/ }),
148
+
149
+ /***/ "./node_modules/call-bind-apply-helpers/index.js":
150
+ /*!*******************************************************!*\
151
+ !*** ./node_modules/call-bind-apply-helpers/index.js ***!
152
+ \*******************************************************/
153
+ /*! no static exports found */
154
+ /***/ (function(module, exports, __webpack_require__) {
155
+
156
+ "use strict";
157
+
158
+
159
+ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
160
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
161
+ var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
162
+ var $actualApply = __webpack_require__(/*! ./actualApply */ "./node_modules/call-bind-apply-helpers/actualApply.js");
163
+
164
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
165
+ module.exports = function callBindBasic(args) {
166
+ if (args.length < 1 || typeof args[0] !== 'function') {
167
+ throw new $TypeError('a function is required');
168
+ }
169
+ return $actualApply(bind, $call, args);
170
+ };
171
+
172
+ /***/ }),
173
+
174
+ /***/ "./node_modules/call-bind-apply-helpers/reflectApply.js":
175
+ /*!**************************************************************!*\
176
+ !*** ./node_modules/call-bind-apply-helpers/reflectApply.js ***!
177
+ \**************************************************************/
178
+ /*! no static exports found */
179
+ /***/ (function(module, exports, __webpack_require__) {
180
+
181
+ "use strict";
182
+
183
+
184
+ /** @type {import('./reflectApply')} */
185
+ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
186
+
187
+ /***/ }),
188
+
189
+ /***/ "./node_modules/call-bound/index.js":
190
+ /*!******************************************!*\
191
+ !*** ./node_modules/call-bound/index.js ***!
192
+ \******************************************/
193
+ /*! no static exports found */
194
+ /***/ (function(module, exports, __webpack_require__) {
195
+
196
+ "use strict";
197
+
198
+
199
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
200
+ var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js");
201
+
202
+ /** @type {(thisArg: string, searchString: string, position?: number) => number} */
203
+ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
204
+
205
+ /** @type {import('.')} */
206
+ module.exports = function callBoundIntrinsic(name, allowMissing) {
207
+ /* eslint no-extra-parens: 0 */
208
+
209
+ var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */GetIntrinsic(name, !!allowMissing);
210
+ if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
211
+ return callBindBasic( /** @type {const} */[intrinsic]);
212
+ }
213
+ return intrinsic;
214
+ };
215
+
216
+ /***/ }),
217
+
99
218
  /***/ "./node_modules/color-blend/dist/index.modern.js":
100
219
  /*!*******************************************************!*\
101
220
  !*** ./node_modules/color-blend/dist/index.modern.js ***!
@@ -121,8 +240,216 @@ __webpack_require__.r(__webpack_exports__);
121
240
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturation", function() { return Q; });
122
241
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "screen", function() { return C; });
123
242
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "softLight", function() { return K; });
124
- function n(n,r,t){return{r:255*t(n.r/255,r.r/255),g:255*t(n.g/255,r.g/255),b:255*t(n.b/255,r.b/255)}}function r(n,r){return r}function t(n,r){return n*r}function u(n,r){return n+r-n*r}function i(n,r){return a(r,n)}function o(n,r){return Math.min(n,r)}function e(n,r){return Math.min(Math.max(n,r),1)}function c(n,r){return 0===n?0:1===r?1:Math.min(1,n/(1-r))}function f(n,r){return 1===n?1:0===r?0:1-Math.min(1,(1-n)/r)}function a(n,r){return r<=.5?t(n,2*r):u(n,2*r-1)}function b(n,r){return r<=.5?n-(1-2*r)*n*(1-n):n+(2*r-1)*((n<=.25?((16*n-12)*n+4)*n:Math.sqrt(n))-n)}function g(n,r){return Math.abs(n-r)}function h(n,r){return n+r-2*n*r}function M(n,r,t){return Math.min(Math.max(n||0,r),t)}function m(n){return{r:M(n.r,0,255),g:M(n.g,0,255),b:M(n.b,0,255),a:M(n.a,0,1)}}function d(n){return{r:255*n.r,g:255*n.g,b:255*n.b,a:n.a}}function p(n){return{r:n.r/255,g:n.g/255,b:n.b/255,a:n.a}}function v(n,r){void 0===r&&(r=0);var t=Math.pow(10,r);return{r:Math.round(n.r*t)/t,g:Math.round(n.g*t)/t,b:Math.round(n.b*t)/t,a:n.a}}function x(n,r,t,u,i,o){return(1-r/t)*u+r/t*Math.round((1-n)*i+n*o)}function O(n,r,t,u,i){void 0===i&&(i={unitInput:!1,unitOutput:!1,roundOutput:!0}),i.unitInput&&(n=d(n),r=d(r)),n=m(n);var o=(r=m(r)).a+n.a-r.a*n.a,e=t(n,r,u),c=m({r:x(n.a,r.a,o,n.r,r.r,e.r),g:x(n.a,r.a,o,n.g,r.g,e.g),b:x(n.a,r.a,o,n.b,r.b,e.b),a:o});return c=i.unitOutput?p(c):i.roundOutput?v(c):function(n){return v(n,9)}(c),c}function s(n,r,t){return d(t(p(n),p(r)))}function I(n){return.3*n.r+.59*n.g+.11*n.b}function q(n,r){var t=r-I(n);return function(n){var r=I(n),t=n.r,u=n.g,i=n.b,o=Math.min(t,u,i),e=Math.max(t,u,i);function c(n){return r+(n-r)*r/(r-o)}function f(n){return r+(n-r)*(1-r)/(e-r)}return o<0&&(t=c(t),u=c(u),i=c(i)),e>1&&(t=f(t),u=f(u),i=f(i)),{r:t,g:u,b:i}}({r:n.r+t,g:n.g+t,b:n.b+t})}function w(n){return Math.max(n.r,n.g,n.b)-Math.min(n.r,n.g,n.b)}function j(n,r){var t=["r","g","b"].sort(function(r,t){return n[r]-n[t]}),u=t[0],i=t[1],o=t[2],e={r:n.r,g:n.g,b:n.b};return e[o]>e[u]?(e[i]=(e[i]-e[u])*r/(e[o]-e[u]),e[o]=r):e[i]=e[o]=0,e[u]=0,e}function k(n,r){return q(j(r,w(n)),I(n))}function l(n,r){return q(j(n,w(r)),I(n))}function y(n,r){return q(r,I(n))}function z(n,r){return q(n,I(r))}function A(t,u){return O(t,u,n,r)}function B(r,u){return O(r,u,n,t)}function C(r,t){return O(r,t,n,u)}function D(r,t){return O(r,t,n,i)}function E(r,t){return O(r,t,n,o)}function F(r,t){return O(r,t,n,e)}function G(r,t){return O(r,t,n,c)}function H(r,t){return O(r,t,n,f)}function J(r,t){return O(r,t,n,a)}function K(r,t){return O(r,t,n,b)}function L(r,t){return O(r,t,n,g)}function N(r,t){return O(r,t,n,h)}function P(n,r){return O(n,r,s,k)}function Q(n,r){return O(n,r,s,l)}function R(n,r){return O(n,r,s,y)}function S(n,r){return O(n,r,s,z)}
125
- //# sourceMappingURL=index.modern.js.map
243
+ function n(n, r, t) {
244
+ return {
245
+ r: 255 * t(n.r / 255, r.r / 255),
246
+ g: 255 * t(n.g / 255, r.g / 255),
247
+ b: 255 * t(n.b / 255, r.b / 255)
248
+ };
249
+ }
250
+ function r(n, r) {
251
+ return r;
252
+ }
253
+ function t(n, r) {
254
+ return n * r;
255
+ }
256
+ function u(n, r) {
257
+ return n + r - n * r;
258
+ }
259
+ function i(n, r) {
260
+ return a(r, n);
261
+ }
262
+ function o(n, r) {
263
+ return Math.min(n, r);
264
+ }
265
+ function e(n, r) {
266
+ return Math.min(Math.max(n, r), 1);
267
+ }
268
+ function c(n, r) {
269
+ return 0 === n ? 0 : 1 === r ? 1 : Math.min(1, n / (1 - r));
270
+ }
271
+ function f(n, r) {
272
+ return 1 === n ? 1 : 0 === r ? 0 : 1 - Math.min(1, (1 - n) / r);
273
+ }
274
+ function a(n, r) {
275
+ return r <= .5 ? t(n, 2 * r) : u(n, 2 * r - 1);
276
+ }
277
+ function b(n, r) {
278
+ return r <= .5 ? n - (1 - 2 * r) * n * (1 - n) : n + (2 * r - 1) * ((n <= .25 ? ((16 * n - 12) * n + 4) * n : Math.sqrt(n)) - n);
279
+ }
280
+ function g(n, r) {
281
+ return Math.abs(n - r);
282
+ }
283
+ function h(n, r) {
284
+ return n + r - 2 * n * r;
285
+ }
286
+ function M(n, r, t) {
287
+ return Math.min(Math.max(n || 0, r), t);
288
+ }
289
+ function m(n) {
290
+ return {
291
+ r: M(n.r, 0, 255),
292
+ g: M(n.g, 0, 255),
293
+ b: M(n.b, 0, 255),
294
+ a: M(n.a, 0, 1)
295
+ };
296
+ }
297
+ function d(n) {
298
+ return {
299
+ r: 255 * n.r,
300
+ g: 255 * n.g,
301
+ b: 255 * n.b,
302
+ a: n.a
303
+ };
304
+ }
305
+ function p(n) {
306
+ return {
307
+ r: n.r / 255,
308
+ g: n.g / 255,
309
+ b: n.b / 255,
310
+ a: n.a
311
+ };
312
+ }
313
+ function v(n, r) {
314
+ void 0 === r && (r = 0);
315
+ var t = Math.pow(10, r);
316
+ return {
317
+ r: Math.round(n.r * t) / t,
318
+ g: Math.round(n.g * t) / t,
319
+ b: Math.round(n.b * t) / t,
320
+ a: n.a
321
+ };
322
+ }
323
+ function x(n, r, t, u, i, o) {
324
+ return (1 - r / t) * u + r / t * Math.round((1 - n) * i + n * o);
325
+ }
326
+ function O(n, r, t, u, i) {
327
+ void 0 === i && (i = {
328
+ unitInput: !1,
329
+ unitOutput: !1,
330
+ roundOutput: !0
331
+ }), i.unitInput && (n = d(n), r = d(r)), n = m(n);
332
+ var o = (r = m(r)).a + n.a - r.a * n.a,
333
+ e = t(n, r, u),
334
+ c = m({
335
+ r: x(n.a, r.a, o, n.r, r.r, e.r),
336
+ g: x(n.a, r.a, o, n.g, r.g, e.g),
337
+ b: x(n.a, r.a, o, n.b, r.b, e.b),
338
+ a: o
339
+ });
340
+ return c = i.unitOutput ? p(c) : i.roundOutput ? v(c) : function (n) {
341
+ return v(n, 9);
342
+ }(c), c;
343
+ }
344
+ function s(n, r, t) {
345
+ return d(t(p(n), p(r)));
346
+ }
347
+ function I(n) {
348
+ return .3 * n.r + .59 * n.g + .11 * n.b;
349
+ }
350
+ function q(n, r) {
351
+ var t = r - I(n);
352
+ return function (n) {
353
+ var r = I(n),
354
+ t = n.r,
355
+ u = n.g,
356
+ i = n.b,
357
+ o = Math.min(t, u, i),
358
+ e = Math.max(t, u, i);
359
+ function c(n) {
360
+ return r + (n - r) * r / (r - o);
361
+ }
362
+ function f(n) {
363
+ return r + (n - r) * (1 - r) / (e - r);
364
+ }
365
+ return o < 0 && (t = c(t), u = c(u), i = c(i)), e > 1 && (t = f(t), u = f(u), i = f(i)), {
366
+ r: t,
367
+ g: u,
368
+ b: i
369
+ };
370
+ }({
371
+ r: n.r + t,
372
+ g: n.g + t,
373
+ b: n.b + t
374
+ });
375
+ }
376
+ function w(n) {
377
+ return Math.max(n.r, n.g, n.b) - Math.min(n.r, n.g, n.b);
378
+ }
379
+ function j(n, r) {
380
+ var t = ["r", "g", "b"].sort(function (r, t) {
381
+ return n[r] - n[t];
382
+ }),
383
+ u = t[0],
384
+ i = t[1],
385
+ o = t[2],
386
+ e = {
387
+ r: n.r,
388
+ g: n.g,
389
+ b: n.b
390
+ };
391
+ return e[o] > e[u] ? (e[i] = (e[i] - e[u]) * r / (e[o] - e[u]), e[o] = r) : e[i] = e[o] = 0, e[u] = 0, e;
392
+ }
393
+ function k(n, r) {
394
+ return q(j(r, w(n)), I(n));
395
+ }
396
+ function l(n, r) {
397
+ return q(j(n, w(r)), I(n));
398
+ }
399
+ function y(n, r) {
400
+ return q(r, I(n));
401
+ }
402
+ function z(n, r) {
403
+ return q(n, I(r));
404
+ }
405
+ function A(t, u) {
406
+ return O(t, u, n, r);
407
+ }
408
+ function B(r, u) {
409
+ return O(r, u, n, t);
410
+ }
411
+ function C(r, t) {
412
+ return O(r, t, n, u);
413
+ }
414
+ function D(r, t) {
415
+ return O(r, t, n, i);
416
+ }
417
+ function E(r, t) {
418
+ return O(r, t, n, o);
419
+ }
420
+ function F(r, t) {
421
+ return O(r, t, n, e);
422
+ }
423
+ function G(r, t) {
424
+ return O(r, t, n, c);
425
+ }
426
+ function H(r, t) {
427
+ return O(r, t, n, f);
428
+ }
429
+ function J(r, t) {
430
+ return O(r, t, n, a);
431
+ }
432
+ function K(r, t) {
433
+ return O(r, t, n, b);
434
+ }
435
+ function L(r, t) {
436
+ return O(r, t, n, g);
437
+ }
438
+ function N(r, t) {
439
+ return O(r, t, n, h);
440
+ }
441
+ function P(n, r) {
442
+ return O(n, r, s, k);
443
+ }
444
+ function Q(n, r) {
445
+ return O(n, r, s, l);
446
+ }
447
+ function R(n, r) {
448
+ return O(n, r, s, y);
449
+ }
450
+ function S(n, r) {
451
+ return O(n, r, s, z);
452
+ }
126
453
 
127
454
 
128
455
  /***/ }),
@@ -136,158 +463,159 @@ function n(n,r,t){return{r:255*t(n.r/255,r.r/255),g:255*t(n.g/255,r.g/255),b:255
136
463
 
137
464
  "use strict";
138
465
  __webpack_require__.r(__webpack_exports__);
139
- const colors = {
140
- aliceblue: [240, 248, 255],
141
- antiquewhite: [250, 235, 215],
142
- aqua: [0, 255, 255],
143
- aquamarine: [127, 255, 212],
144
- azure: [240, 255, 255],
145
- beige: [245, 245, 220],
146
- bisque: [255, 228, 196],
147
- black: [0, 0, 0],
148
- blanchedalmond: [255, 235, 205],
149
- blue: [0, 0, 255],
150
- blueviolet: [138, 43, 226],
151
- brown: [165, 42, 42],
152
- burlywood: [222, 184, 135],
153
- cadetblue: [95, 158, 160],
154
- chartreuse: [127, 255, 0],
155
- chocolate: [210, 105, 30],
156
- coral: [255, 127, 80],
157
- cornflowerblue: [100, 149, 237],
158
- cornsilk: [255, 248, 220],
159
- crimson: [220, 20, 60],
160
- cyan: [0, 255, 255],
161
- darkblue: [0, 0, 139],
162
- darkcyan: [0, 139, 139],
163
- darkgoldenrod: [184, 134, 11],
164
- darkgray: [169, 169, 169],
165
- darkgreen: [0, 100, 0],
166
- darkgrey: [169, 169, 169],
167
- darkkhaki: [189, 183, 107],
168
- darkmagenta: [139, 0, 139],
169
- darkolivegreen: [85, 107, 47],
170
- darkorange: [255, 140, 0],
171
- darkorchid: [153, 50, 204],
172
- darkred: [139, 0, 0],
173
- darksalmon: [233, 150, 122],
174
- darkseagreen: [143, 188, 143],
175
- darkslateblue: [72, 61, 139],
176
- darkslategray: [47, 79, 79],
177
- darkslategrey: [47, 79, 79],
178
- darkturquoise: [0, 206, 209],
179
- darkviolet: [148, 0, 211],
180
- deeppink: [255, 20, 147],
181
- deepskyblue: [0, 191, 255],
182
- dimgray: [105, 105, 105],
183
- dimgrey: [105, 105, 105],
184
- dodgerblue: [30, 144, 255],
185
- firebrick: [178, 34, 34],
186
- floralwhite: [255, 250, 240],
187
- forestgreen: [34, 139, 34],
188
- fuchsia: [255, 0, 255],
189
- gainsboro: [220, 220, 220],
190
- ghostwhite: [248, 248, 255],
191
- gold: [255, 215, 0],
192
- goldenrod: [218, 165, 32],
193
- gray: [128, 128, 128],
194
- green: [0, 128, 0],
195
- greenyellow: [173, 255, 47],
196
- grey: [128, 128, 128],
197
- honeydew: [240, 255, 240],
198
- hotpink: [255, 105, 180],
199
- indianred: [205, 92, 92],
200
- indigo: [75, 0, 130],
201
- ivory: [255, 255, 240],
202
- khaki: [240, 230, 140],
203
- lavender: [230, 230, 250],
204
- lavenderblush: [255, 240, 245],
205
- lawngreen: [124, 252, 0],
206
- lemonchiffon: [255, 250, 205],
207
- lightblue: [173, 216, 230],
208
- lightcoral: [240, 128, 128],
209
- lightcyan: [224, 255, 255],
210
- lightgoldenrodyellow: [250, 250, 210],
211
- lightgray: [211, 211, 211],
212
- lightgreen: [144, 238, 144],
213
- lightgrey: [211, 211, 211],
214
- lightpink: [255, 182, 193],
215
- lightsalmon: [255, 160, 122],
216
- lightseagreen: [32, 178, 170],
217
- lightskyblue: [135, 206, 250],
218
- lightslategray: [119, 136, 153],
219
- lightslategrey: [119, 136, 153],
220
- lightsteelblue: [176, 196, 222],
221
- lightyellow: [255, 255, 224],
222
- lime: [0, 255, 0],
223
- limegreen: [50, 205, 50],
224
- linen: [250, 240, 230],
225
- magenta: [255, 0, 255],
226
- maroon: [128, 0, 0],
227
- mediumaquamarine: [102, 205, 170],
228
- mediumblue: [0, 0, 205],
229
- mediumorchid: [186, 85, 211],
230
- mediumpurple: [147, 112, 219],
231
- mediumseagreen: [60, 179, 113],
232
- mediumslateblue: [123, 104, 238],
233
- mediumspringgreen: [0, 250, 154],
234
- mediumturquoise: [72, 209, 204],
235
- mediumvioletred: [199, 21, 133],
236
- midnightblue: [25, 25, 112],
237
- mintcream: [245, 255, 250],
238
- mistyrose: [255, 228, 225],
239
- moccasin: [255, 228, 181],
240
- navajowhite: [255, 222, 173],
241
- navy: [0, 0, 128],
242
- oldlace: [253, 245, 230],
243
- olive: [128, 128, 0],
244
- olivedrab: [107, 142, 35],
245
- orange: [255, 165, 0],
246
- orangered: [255, 69, 0],
247
- orchid: [218, 112, 214],
248
- palegoldenrod: [238, 232, 170],
249
- palegreen: [152, 251, 152],
250
- paleturquoise: [175, 238, 238],
251
- palevioletred: [219, 112, 147],
252
- papayawhip: [255, 239, 213],
253
- peachpuff: [255, 218, 185],
254
- peru: [205, 133, 63],
255
- pink: [255, 192, 203],
256
- plum: [221, 160, 221],
257
- powderblue: [176, 224, 230],
258
- purple: [128, 0, 128],
259
- rebeccapurple: [102, 51, 153],
260
- red: [255, 0, 0],
261
- rosybrown: [188, 143, 143],
262
- royalblue: [65, 105, 225],
263
- saddlebrown: [139, 69, 19],
264
- salmon: [250, 128, 114],
265
- sandybrown: [244, 164, 96],
266
- seagreen: [46, 139, 87],
267
- seashell: [255, 245, 238],
268
- sienna: [160, 82, 45],
269
- silver: [192, 192, 192],
270
- skyblue: [135, 206, 235],
271
- slateblue: [106, 90, 205],
272
- slategray: [112, 128, 144],
273
- slategrey: [112, 128, 144],
274
- snow: [255, 250, 250],
275
- springgreen: [0, 255, 127],
276
- steelblue: [70, 130, 180],
277
- tan: [210, 180, 140],
278
- teal: [0, 128, 128],
279
- thistle: [216, 191, 216],
280
- tomato: [255, 99, 71],
281
- turquoise: [64, 224, 208],
282
- violet: [238, 130, 238],
283
- wheat: [245, 222, 179],
284
- white: [255, 255, 255],
285
- whitesmoke: [245, 245, 245],
286
- yellow: [255, 255, 0],
287
- yellowgreen: [154, 205, 50],
288
- }
289
-
290
- for (const key in colors) Object.freeze(colors[key]);
466
+ var colors = {
467
+ aliceblue: [240, 248, 255],
468
+ antiquewhite: [250, 235, 215],
469
+ aqua: [0, 255, 255],
470
+ aquamarine: [127, 255, 212],
471
+ azure: [240, 255, 255],
472
+ beige: [245, 245, 220],
473
+ bisque: [255, 228, 196],
474
+ black: [0, 0, 0],
475
+ blanchedalmond: [255, 235, 205],
476
+ blue: [0, 0, 255],
477
+ blueviolet: [138, 43, 226],
478
+ brown: [165, 42, 42],
479
+ burlywood: [222, 184, 135],
480
+ cadetblue: [95, 158, 160],
481
+ chartreuse: [127, 255, 0],
482
+ chocolate: [210, 105, 30],
483
+ coral: [255, 127, 80],
484
+ cornflowerblue: [100, 149, 237],
485
+ cornsilk: [255, 248, 220],
486
+ crimson: [220, 20, 60],
487
+ cyan: [0, 255, 255],
488
+ darkblue: [0, 0, 139],
489
+ darkcyan: [0, 139, 139],
490
+ darkgoldenrod: [184, 134, 11],
491
+ darkgray: [169, 169, 169],
492
+ darkgreen: [0, 100, 0],
493
+ darkgrey: [169, 169, 169],
494
+ darkkhaki: [189, 183, 107],
495
+ darkmagenta: [139, 0, 139],
496
+ darkolivegreen: [85, 107, 47],
497
+ darkorange: [255, 140, 0],
498
+ darkorchid: [153, 50, 204],
499
+ darkred: [139, 0, 0],
500
+ darksalmon: [233, 150, 122],
501
+ darkseagreen: [143, 188, 143],
502
+ darkslateblue: [72, 61, 139],
503
+ darkslategray: [47, 79, 79],
504
+ darkslategrey: [47, 79, 79],
505
+ darkturquoise: [0, 206, 209],
506
+ darkviolet: [148, 0, 211],
507
+ deeppink: [255, 20, 147],
508
+ deepskyblue: [0, 191, 255],
509
+ dimgray: [105, 105, 105],
510
+ dimgrey: [105, 105, 105],
511
+ dodgerblue: [30, 144, 255],
512
+ firebrick: [178, 34, 34],
513
+ floralwhite: [255, 250, 240],
514
+ forestgreen: [34, 139, 34],
515
+ fuchsia: [255, 0, 255],
516
+ gainsboro: [220, 220, 220],
517
+ ghostwhite: [248, 248, 255],
518
+ gold: [255, 215, 0],
519
+ goldenrod: [218, 165, 32],
520
+ gray: [128, 128, 128],
521
+ green: [0, 128, 0],
522
+ greenyellow: [173, 255, 47],
523
+ grey: [128, 128, 128],
524
+ honeydew: [240, 255, 240],
525
+ hotpink: [255, 105, 180],
526
+ indianred: [205, 92, 92],
527
+ indigo: [75, 0, 130],
528
+ ivory: [255, 255, 240],
529
+ khaki: [240, 230, 140],
530
+ lavender: [230, 230, 250],
531
+ lavenderblush: [255, 240, 245],
532
+ lawngreen: [124, 252, 0],
533
+ lemonchiffon: [255, 250, 205],
534
+ lightblue: [173, 216, 230],
535
+ lightcoral: [240, 128, 128],
536
+ lightcyan: [224, 255, 255],
537
+ lightgoldenrodyellow: [250, 250, 210],
538
+ lightgray: [211, 211, 211],
539
+ lightgreen: [144, 238, 144],
540
+ lightgrey: [211, 211, 211],
541
+ lightpink: [255, 182, 193],
542
+ lightsalmon: [255, 160, 122],
543
+ lightseagreen: [32, 178, 170],
544
+ lightskyblue: [135, 206, 250],
545
+ lightslategray: [119, 136, 153],
546
+ lightslategrey: [119, 136, 153],
547
+ lightsteelblue: [176, 196, 222],
548
+ lightyellow: [255, 255, 224],
549
+ lime: [0, 255, 0],
550
+ limegreen: [50, 205, 50],
551
+ linen: [250, 240, 230],
552
+ magenta: [255, 0, 255],
553
+ maroon: [128, 0, 0],
554
+ mediumaquamarine: [102, 205, 170],
555
+ mediumblue: [0, 0, 205],
556
+ mediumorchid: [186, 85, 211],
557
+ mediumpurple: [147, 112, 219],
558
+ mediumseagreen: [60, 179, 113],
559
+ mediumslateblue: [123, 104, 238],
560
+ mediumspringgreen: [0, 250, 154],
561
+ mediumturquoise: [72, 209, 204],
562
+ mediumvioletred: [199, 21, 133],
563
+ midnightblue: [25, 25, 112],
564
+ mintcream: [245, 255, 250],
565
+ mistyrose: [255, 228, 225],
566
+ moccasin: [255, 228, 181],
567
+ navajowhite: [255, 222, 173],
568
+ navy: [0, 0, 128],
569
+ oldlace: [253, 245, 230],
570
+ olive: [128, 128, 0],
571
+ olivedrab: [107, 142, 35],
572
+ orange: [255, 165, 0],
573
+ orangered: [255, 69, 0],
574
+ orchid: [218, 112, 214],
575
+ palegoldenrod: [238, 232, 170],
576
+ palegreen: [152, 251, 152],
577
+ paleturquoise: [175, 238, 238],
578
+ palevioletred: [219, 112, 147],
579
+ papayawhip: [255, 239, 213],
580
+ peachpuff: [255, 218, 185],
581
+ peru: [205, 133, 63],
582
+ pink: [255, 192, 203],
583
+ plum: [221, 160, 221],
584
+ powderblue: [176, 224, 230],
585
+ purple: [128, 0, 128],
586
+ rebeccapurple: [102, 51, 153],
587
+ red: [255, 0, 0],
588
+ rosybrown: [188, 143, 143],
589
+ royalblue: [65, 105, 225],
590
+ saddlebrown: [139, 69, 19],
591
+ salmon: [250, 128, 114],
592
+ sandybrown: [244, 164, 96],
593
+ seagreen: [46, 139, 87],
594
+ seashell: [255, 245, 238],
595
+ sienna: [160, 82, 45],
596
+ silver: [192, 192, 192],
597
+ skyblue: [135, 206, 235],
598
+ slateblue: [106, 90, 205],
599
+ slategray: [112, 128, 144],
600
+ slategrey: [112, 128, 144],
601
+ snow: [255, 250, 250],
602
+ springgreen: [0, 255, 127],
603
+ steelblue: [70, 130, 180],
604
+ tan: [210, 180, 140],
605
+ teal: [0, 128, 128],
606
+ thistle: [216, 191, 216],
607
+ tomato: [255, 99, 71],
608
+ turquoise: [64, 224, 208],
609
+ violet: [238, 130, 238],
610
+ wheat: [245, 222, 179],
611
+ white: [255, 255, 255],
612
+ whitesmoke: [245, 245, 245],
613
+ yellow: [255, 255, 0],
614
+ yellowgreen: [154, 205, 50]
615
+ };
616
+ for (var key in colors) {
617
+ Object.freeze(colors[key]);
618
+ }
291
619
  /* harmony default export */ __webpack_exports__["default"] = (Object.freeze(colors));
292
620
 
293
621
  /***/ }),
@@ -303,238 +631,192 @@ for (const key in colors) Object.freeze(colors[key]);
303
631
  __webpack_require__.r(__webpack_exports__);
304
632
  /* harmony import */ var color_name__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! color-name */ "./node_modules/color-name/index.js");
305
633
 
306
-
307
- const reverseNames = Object.create(null);
634
+ var reverseNames = Object.create(null);
308
635
 
309
636
  // Create a list of reverse color names
310
- for (const name in color_name__WEBPACK_IMPORTED_MODULE_0__["default"]) {
311
- if (Object.hasOwn(color_name__WEBPACK_IMPORTED_MODULE_0__["default"], name)) {
312
- reverseNames[color_name__WEBPACK_IMPORTED_MODULE_0__["default"][name]] = name;
313
- }
637
+ for (var name in color_name__WEBPACK_IMPORTED_MODULE_0__["default"]) {
638
+ if (Object.hasOwn(color_name__WEBPACK_IMPORTED_MODULE_0__["default"], name)) {
639
+ reverseNames[color_name__WEBPACK_IMPORTED_MODULE_0__["default"][name]] = name;
640
+ }
314
641
  }
315
-
316
- const cs = {
317
- to: {},
318
- get: {},
642
+ var cs = {
643
+ to: {},
644
+ get: {}
319
645
  };
320
-
321
646
  cs.get = function (string) {
322
- const prefix = string.slice(0, 3).toLowerCase();
323
- let value;
324
- let model;
325
- switch (prefix) {
326
- case 'hsl': {
327
- value = cs.get.hsl(string);
328
- model = 'hsl';
329
- break;
330
- }
331
-
332
- case 'hwb': {
333
- value = cs.get.hwb(string);
334
- model = 'hwb';
335
- break;
336
- }
337
-
338
- default: {
339
- value = cs.get.rgb(string);
340
- model = 'rgb';
341
- break;
342
- }
343
- }
344
-
345
- if (!value) {
346
- return null;
347
- }
348
-
349
- return {model, value};
647
+ var prefix = string.slice(0, 3).toLowerCase();
648
+ var value;
649
+ var model;
650
+ switch (prefix) {
651
+ case 'hsl':
652
+ {
653
+ value = cs.get.hsl(string);
654
+ model = 'hsl';
655
+ break;
656
+ }
657
+ case 'hwb':
658
+ {
659
+ value = cs.get.hwb(string);
660
+ model = 'hwb';
661
+ break;
662
+ }
663
+ default:
664
+ {
665
+ value = cs.get.rgb(string);
666
+ model = 'rgb';
667
+ break;
668
+ }
669
+ }
670
+ if (!value) {
671
+ return null;
672
+ }
673
+ return {
674
+ model: model,
675
+ value: value
676
+ };
350
677
  };
351
-
352
678
  cs.get.rgb = function (string) {
353
- if (!string) {
354
- return null;
355
- }
356
-
357
- const abbr = /^#([a-f\d]{3,4})$/i;
358
- const hex = /^#([a-f\d]{6})([a-f\d]{2})?$/i;
359
- const rgba = /^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i;
360
- const per = /^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i;
361
- const keyword = /^(\w+)$/;
362
-
363
- let rgb = [0, 0, 0, 1];
364
- let match;
365
- let i;
366
- let hexAlpha;
367
-
368
- if (match = string.match(hex)) {
369
- hexAlpha = match[2];
370
- match = match[1];
371
-
372
- for (i = 0; i < 3; i++) {
373
- // https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
374
- const i2 = i * 2;
375
- rgb[i] = Number.parseInt(match.slice(i2, i2 + 2), 16);
376
- }
377
-
378
- if (hexAlpha) {
379
- rgb[3] = Number.parseInt(hexAlpha, 16) / 255;
380
- }
381
- } else if (match = string.match(abbr)) {
382
- match = match[1];
383
- hexAlpha = match[3];
384
-
385
- for (i = 0; i < 3; i++) {
386
- rgb[i] = Number.parseInt(match[i] + match[i], 16);
387
- }
388
-
389
- if (hexAlpha) {
390
- rgb[3] = Number.parseInt(hexAlpha + hexAlpha, 16) / 255;
391
- }
392
- } else if (match = string.match(rgba)) {
393
- for (i = 0; i < 3; i++) {
394
- rgb[i] = Number.parseFloat(match[i + 1]);
395
- }
396
-
397
- if (match[4]) {
398
- rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
399
- }
400
- } else if (match = string.match(per)) {
401
- for (i = 0; i < 3; i++) {
402
- rgb[i] = Math.round(Number.parseFloat(match[i + 1]) * 2.55);
403
- }
404
-
405
- if (match[4]) {
406
- rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
407
- }
408
- } else if (match = string.toLowerCase().match(keyword)) {
409
- if (match[1] === 'transparent') {
410
- return [0, 0, 0, 0];
411
- }
412
-
413
- if (!Object.hasOwn(color_name__WEBPACK_IMPORTED_MODULE_0__["default"], match[1])) {
414
- return null;
415
- }
416
-
417
- // eslint-disable-next-line unicorn/prefer-spread
418
- rgb = color_name__WEBPACK_IMPORTED_MODULE_0__["default"][match[1]].slice();
419
- rgb[3] = 1;
420
-
421
- return rgb;
422
- } else {
423
- return null;
424
- }
425
-
426
- for (i = 0; i < 3; i++) {
427
- rgb[i] = clamp(rgb[i], 0, 255);
428
- }
429
-
430
- rgb[3] = clamp(rgb[3], 0, 1);
431
-
432
- return rgb;
433
- };
679
+ if (!string) {
680
+ return null;
681
+ }
682
+ var abbr = /^#([a-f\d]{3,4})$/i;
683
+ var hex = /^#([a-f\d]{6})([a-f\d]{2})?$/i;
684
+ var rgba = /^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i;
685
+ var per = /^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i;
686
+ var keyword = /^(\w+)$/;
687
+ var rgb = [0, 0, 0, 1];
688
+ var match;
689
+ var i;
690
+ var hexAlpha;
691
+ if (match = string.match(hex)) {
692
+ hexAlpha = match[2];
693
+ match = match[1];
694
+ for (i = 0; i < 3; i++) {
695
+ // https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
696
+ var i2 = i * 2;
697
+ rgb[i] = Number.parseInt(match.slice(i2, i2 + 2), 16);
698
+ }
699
+ if (hexAlpha) {
700
+ rgb[3] = Number.parseInt(hexAlpha, 16) / 255;
701
+ }
702
+ } else if (match = string.match(abbr)) {
703
+ match = match[1];
704
+ hexAlpha = match[3];
705
+ for (i = 0; i < 3; i++) {
706
+ rgb[i] = Number.parseInt(match[i] + match[i], 16);
707
+ }
708
+ if (hexAlpha) {
709
+ rgb[3] = Number.parseInt(hexAlpha + hexAlpha, 16) / 255;
710
+ }
711
+ } else if (match = string.match(rgba)) {
712
+ for (i = 0; i < 3; i++) {
713
+ rgb[i] = Number.parseFloat(match[i + 1]);
714
+ }
715
+ if (match[4]) {
716
+ rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
717
+ }
718
+ } else if (match = string.match(per)) {
719
+ for (i = 0; i < 3; i++) {
720
+ rgb[i] = Math.round(Number.parseFloat(match[i + 1]) * 2.55);
721
+ }
722
+ if (match[4]) {
723
+ rgb[3] = match[5] ? Number.parseFloat(match[4]) * 0.01 : Number.parseFloat(match[4]);
724
+ }
725
+ } else if (match = string.toLowerCase().match(keyword)) {
726
+ if (match[1] === 'transparent') {
727
+ return [0, 0, 0, 0];
728
+ }
729
+ if (!Object.hasOwn(color_name__WEBPACK_IMPORTED_MODULE_0__["default"], match[1])) {
730
+ return null;
731
+ }
434
732
 
733
+ // eslint-disable-next-line unicorn/prefer-spread
734
+ rgb = color_name__WEBPACK_IMPORTED_MODULE_0__["default"][match[1]].slice();
735
+ rgb[3] = 1;
736
+ return rgb;
737
+ } else {
738
+ return null;
739
+ }
740
+ for (i = 0; i < 3; i++) {
741
+ rgb[i] = clamp(rgb[i], 0, 255);
742
+ }
743
+ rgb[3] = clamp(rgb[3], 0, 1);
744
+ return rgb;
745
+ };
435
746
  cs.get.hsl = function (string) {
436
- if (!string) {
437
- return null;
438
- }
439
-
440
- const hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
441
- const match = string.match(hsl);
442
-
443
- if (match) {
444
- const alpha = Number.parseFloat(match[4]);
445
- const h = ((Number.parseFloat(match[1]) % 360) + 360) % 360;
446
- const s = clamp(Number.parseFloat(match[2]), 0, 100);
447
- const l = clamp(Number.parseFloat(match[3]), 0, 100);
448
- const a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
449
-
450
- return [h, s, l, a];
451
- }
452
-
453
- return null;
747
+ if (!string) {
748
+ return null;
749
+ }
750
+ var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
751
+ var match = string.match(hsl);
752
+ if (match) {
753
+ var alpha = Number.parseFloat(match[4]);
754
+ var h = (Number.parseFloat(match[1]) % 360 + 360) % 360;
755
+ var s = clamp(Number.parseFloat(match[2]), 0, 100);
756
+ var l = clamp(Number.parseFloat(match[3]), 0, 100);
757
+ var a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
758
+ return [h, s, l, a];
759
+ }
760
+ return null;
454
761
  };
455
-
456
762
  cs.get.hwb = function (string) {
457
- if (!string) {
458
- return null;
459
- }
460
-
461
- const hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
462
- const match = string.match(hwb);
463
-
464
- if (match) {
465
- const alpha = Number.parseFloat(match[4]);
466
- const h = ((Number.parseFloat(match[1]) % 360) + 360) % 360;
467
- const w = clamp(Number.parseFloat(match[2]), 0, 100);
468
- const b = clamp(Number.parseFloat(match[3]), 0, 100);
469
- const a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
470
- return [h, w, b, a];
471
- }
472
-
473
- return null;
763
+ if (!string) {
764
+ return null;
765
+ }
766
+ var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i;
767
+ var match = string.match(hwb);
768
+ if (match) {
769
+ var alpha = Number.parseFloat(match[4]);
770
+ var h = (Number.parseFloat(match[1]) % 360 + 360) % 360;
771
+ var w = clamp(Number.parseFloat(match[2]), 0, 100);
772
+ var b = clamp(Number.parseFloat(match[3]), 0, 100);
773
+ var a = clamp(Number.isNaN(alpha) ? 1 : alpha, 0, 1);
774
+ return [h, w, b, a];
775
+ }
776
+ return null;
474
777
  };
475
-
476
- cs.to.hex = function (...rgba) {
477
- return (
478
- '#' +
479
- hexDouble(rgba[0]) +
480
- hexDouble(rgba[1]) +
481
- hexDouble(rgba[2]) +
482
- (rgba[3] < 1
483
- ? (hexDouble(Math.round(rgba[3] * 255)))
484
- : '')
485
- );
778
+ cs.to.hex = function () {
779
+ return '#' + hexDouble(arguments.length <= 0 ? undefined : arguments[0]) + hexDouble(arguments.length <= 1 ? undefined : arguments[1]) + hexDouble(arguments.length <= 2 ? undefined : arguments[2]) + ((arguments.length <= 3 ? undefined : arguments[3]) < 1 ? hexDouble(Math.round((arguments.length <= 3 ? undefined : arguments[3]) * 255)) : '');
486
780
  };
487
-
488
- cs.to.rgb = function (...rgba) {
489
- return rgba.length < 4 || rgba[3] === 1
490
- ? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')'
491
- : 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
781
+ cs.to.rgb = function () {
782
+ return arguments.length < 4 || (arguments.length <= 3 ? undefined : arguments[3]) === 1 ? 'rgb(' + Math.round(arguments.length <= 0 ? undefined : arguments[0]) + ', ' + Math.round(arguments.length <= 1 ? undefined : arguments[1]) + ', ' + Math.round(arguments.length <= 2 ? undefined : arguments[2]) + ')' : 'rgba(' + Math.round(arguments.length <= 0 ? undefined : arguments[0]) + ', ' + Math.round(arguments.length <= 1 ? undefined : arguments[1]) + ', ' + Math.round(arguments.length <= 2 ? undefined : arguments[2]) + ', ' + (arguments.length <= 3 ? undefined : arguments[3]) + ')';
492
783
  };
493
-
494
- cs.to.rgb.percent = function (...rgba) {
495
- const r = Math.round(rgba[0] / 255 * 100);
496
- const g = Math.round(rgba[1] / 255 * 100);
497
- const b = Math.round(rgba[2] / 255 * 100);
498
-
499
- return rgba.length < 4 || rgba[3] === 1
500
- ? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)'
501
- : 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
784
+ cs.to.rgb.percent = function () {
785
+ var r = Math.round((arguments.length <= 0 ? undefined : arguments[0]) / 255 * 100);
786
+ var g = Math.round((arguments.length <= 1 ? undefined : arguments[1]) / 255 * 100);
787
+ var b = Math.round((arguments.length <= 2 ? undefined : arguments[2]) / 255 * 100);
788
+ return arguments.length < 4 || (arguments.length <= 3 ? undefined : arguments[3]) === 1 ? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)' : 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + (arguments.length <= 3 ? undefined : arguments[3]) + ')';
502
789
  };
503
-
504
- cs.to.hsl = function (...hsla) {
505
- return hsla.length < 4 || hsla[3] === 1
506
- ? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)'
507
- : 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
790
+ cs.to.hsl = function () {
791
+ return arguments.length < 4 || (arguments.length <= 3 ? undefined : arguments[3]) === 1 ? 'hsl(' + (arguments.length <= 0 ? undefined : arguments[0]) + ', ' + (arguments.length <= 1 ? undefined : arguments[1]) + '%, ' + (arguments.length <= 2 ? undefined : arguments[2]) + '%)' : 'hsla(' + (arguments.length <= 0 ? undefined : arguments[0]) + ', ' + (arguments.length <= 1 ? undefined : arguments[1]) + '%, ' + (arguments.length <= 2 ? undefined : arguments[2]) + '%, ' + (arguments.length <= 3 ? undefined : arguments[3]) + ')';
508
792
  };
509
793
 
510
794
  // Hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
511
795
  // (hwb have alpha optional & 1 is default value)
512
- cs.to.hwb = function (...hwba) {
513
- let a = '';
514
- if (hwba.length >= 4 && hwba[3] !== 1) {
515
- a = ', ' + hwba[3];
516
- }
517
-
518
- return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
796
+ cs.to.hwb = function () {
797
+ var a = '';
798
+ if (arguments.length >= 4 && (arguments.length <= 3 ? undefined : arguments[3]) !== 1) {
799
+ a = ', ' + (arguments.length <= 3 ? undefined : arguments[3]);
800
+ }
801
+ return 'hwb(' + (arguments.length <= 0 ? undefined : arguments[0]) + ', ' + (arguments.length <= 1 ? undefined : arguments[1]) + '%, ' + (arguments.length <= 2 ? undefined : arguments[2]) + '%' + a + ')';
519
802
  };
520
-
521
- cs.to.keyword = function (...rgb) {
522
- return reverseNames[rgb.slice(0, 3)];
803
+ cs.to.keyword = function () {
804
+ for (var _len = arguments.length, rgb = new Array(_len), _key = 0; _key < _len; _key++) {
805
+ rgb[_key] = arguments[_key];
806
+ }
807
+ return reverseNames[rgb.slice(0, 3)];
523
808
  };
524
809
 
525
810
  // Helpers
526
811
  function clamp(number_, min, max) {
527
- return Math.min(Math.max(min, number_), max);
812
+ return Math.min(Math.max(min, number_), max);
528
813
  }
529
-
530
814
  function hexDouble(number_) {
531
- const string_ = Math.round(number_).toString(16).toUpperCase();
532
- return (string_.length < 2) ? '0' + string_ : string_;
815
+ var string_ = Math.round(number_).toString(16).toUpperCase();
816
+ return string_.length < 2 ? '0' + string_ : string_;
533
817
  }
534
-
535
818
  /* harmony default export */ __webpack_exports__["default"] = (cs);
536
819
 
537
-
538
820
  /***/ }),
539
821
 
540
822
  /***/ "./node_modules/color/index.js":
@@ -9739,93 +10021,2783 @@ Color.extend(contrastMethods);
9739
10021
 
9740
10022
  /***/ }),
9741
10023
 
9742
- /***/ "./src/darkmode.js":
9743
- /*!*************************!*\
9744
- !*** ./src/darkmode.js ***!
9745
- \*************************/
9746
- /*! exports provided: run, init, convertBg, updateStyle, getContrast, extend */
9747
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
10024
+ /***/ "./node_modules/define-data-property/index.js":
10025
+ /*!****************************************************!*\
10026
+ !*** ./node_modules/define-data-property/index.js ***!
10027
+ \****************************************************/
10028
+ /*! no static exports found */
10029
+ /***/ (function(module, exports, __webpack_require__) {
9748
10030
 
9749
10031
  "use strict";
9750
- __webpack_require__.r(__webpack_exports__);
9751
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "run", function() { return run; });
9752
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; });
9753
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertBg", function() { return convertBg; });
9754
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateStyle", function() { return updateStyle; });
9755
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContrast", function() { return getContrast; });
9756
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
9757
- /* harmony import */ var _modules_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/constant */ "./src/modules/constant.js");
9758
- /* harmony import */ var _modules_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/config */ "./src/modules/config.js");
9759
- /* harmony import */ var _modules_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules/global */ "./src/modules/global.js");
9760
- /* harmony import */ var _modules_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/domUtils */ "./src/modules/domUtils.js");
9761
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9762
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9763
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
9764
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
9765
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9766
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9767
- /**
9768
- * @name Darkmode主入口
9769
- *
9770
- * @function run 初始化Dark Mode配置并运行Dark Mode处理
9771
- * @param {DOM Object Array} nodes 要处理的节点列表
9772
- * @param {Object} opt Dark Mode配置,详见init配置说明
9773
- * @return void
9774
- *
9775
- * @function init 初始化Dark Mode配置
9776
- * @param {Function} opt.begin 开始处理时触发的回调
9777
- * @param {Function} opt.showFirstPage 首屏处理完成时触发的回调
9778
- * @param {Function} opt.error 发生error时触发的回调
9779
- * @param {string} opt.mode 强制指定的颜色模式(dark|light), 指定了就不监听系统颜色
9780
- * @param {Object} opt.whitelist 节点白名单
9781
- * @param {Array} opt.whitelist.tagName 标签名列表
9782
- * @param {Array} opt.whitelist.attribute 属性列表
9783
- * @param {boolean} opt.needJudgeFirstPage 是否需要判断首屏
9784
- * @param {boolean} opt.delayBgJudge 是否延迟背景判断
9785
- * @param {DOM Object} opt.container 延迟运行js时使用的容器
9786
- * @param {string} opt.cssSelectorsPrefix css选择器前缀
9787
- * @param {string} opt.defaultLightTextColor 非Dark Mode下字体颜色
9788
- * @param {string} opt.defaultLightBgColor 非Dark Mode下背景颜色
9789
- * @param {string} opt.defaultDarkTextColor Dark Mode下字体颜色
9790
- * @param {string} opt.defaultDarkBgColor Dark Mode下背景颜色
9791
- * @return void
9792
- *
9793
- * @function convertBg 处理背景
9794
- * @param {DOM Object Array} nodes 要处理的节点列表
9795
- * @return void
9796
- *
9797
- * @function updateStyle 更新节点Dark Mode样式
9798
- * @param {DOM Object} node 要更新的节点
9799
- * @param {Object} styles 更新的样式键值对对象,如:{ color: '#ddd' }
9800
- * @return void
9801
- *
9802
- * @function getContrast 获取两个颜色的对比度
9803
- * @param {string} color1 要计算颜色对比度的颜色1,支持css颜色格式
9804
- * @param {string} color2 要计算颜色对比度的颜色2,支持css颜色格式
9805
- * @return {number} 颜色对比度,取值范围为`[1, 21]`
9806
- *
9807
- * @function extend 挂载插件
9808
- * @param {Array} pluginList 插件列表
9809
- * @return void
9810
- *
9811
- */
9812
10032
 
9813
- // 常量
9814
10033
 
9815
- var classReg = new RegExp("".concat(_modules_constant__WEBPACK_IMPORTED_MODULE_0__["CLASS_PREFIX"], "[^ ]+"), 'g');
10034
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10035
+ var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
10036
+ var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js");
10037
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10038
+ var gopd = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
10039
+
10040
+ /** @type {import('.')} */
10041
+ module.exports = function defineDataProperty(obj, property, value) {
10042
+ if (!obj || _typeof(obj) !== 'object' && typeof obj !== 'function') {
10043
+ throw new $TypeError('`obj` must be an object or a function`');
10044
+ }
10045
+ if (typeof property !== 'string' && _typeof(property) !== 'symbol') {
10046
+ throw new $TypeError('`property` must be a string or a symbol`');
10047
+ }
10048
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
10049
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
10050
+ }
10051
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
10052
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
10053
+ }
10054
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
10055
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
10056
+ }
10057
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
10058
+ throw new $TypeError('`loose`, if provided, must be a boolean');
10059
+ }
10060
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
10061
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
10062
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
10063
+ var loose = arguments.length > 6 ? arguments[6] : false;
10064
+
10065
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
10066
+ var desc = !!gopd && gopd(obj, property);
10067
+ if ($defineProperty) {
10068
+ $defineProperty(obj, property, {
10069
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
10070
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
10071
+ value: value,
10072
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
10073
+ });
10074
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
10075
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
10076
+ obj[property] = value; // eslint-disable-line no-param-reassign
10077
+ } else {
10078
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
10079
+ }
10080
+ };
9816
10081
 
9817
- // Darkmode配置
10082
+ /***/ }),
9818
10083
 
10084
+ /***/ "./node_modules/define-properties/index.js":
10085
+ /*!*************************************************!*\
10086
+ !*** ./node_modules/define-properties/index.js ***!
10087
+ \*************************************************/
10088
+ /*! no static exports found */
10089
+ /***/ (function(module, exports, __webpack_require__) {
10090
+
10091
+ "use strict";
10092
+
10093
+
10094
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10095
+ var keys = __webpack_require__(/*! object-keys */ "./node_modules/object-keys/index.js");
10096
+ var hasSymbols = typeof Symbol === 'function' && _typeof(Symbol('foo')) === 'symbol';
10097
+ var toStr = Object.prototype.toString;
10098
+ var concat = Array.prototype.concat;
10099
+ var defineDataProperty = __webpack_require__(/*! define-data-property */ "./node_modules/define-data-property/index.js");
10100
+ var isFunction = function isFunction(fn) {
10101
+ return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
10102
+ };
10103
+ var supportsDescriptors = __webpack_require__(/*! has-property-descriptors */ "./node_modules/has-property-descriptors/index.js")();
10104
+ var defineProperty = function defineProperty(object, name, value, predicate) {
10105
+ if (name in object) {
10106
+ if (predicate === true) {
10107
+ if (object[name] === value) {
10108
+ return;
10109
+ }
10110
+ } else if (!isFunction(predicate) || !predicate()) {
10111
+ return;
10112
+ }
10113
+ }
10114
+ if (supportsDescriptors) {
10115
+ defineDataProperty(object, name, value, true);
10116
+ } else {
10117
+ defineDataProperty(object, name, value);
10118
+ }
10119
+ };
10120
+ var defineProperties = function defineProperties(object, map) {
10121
+ var predicates = arguments.length > 2 ? arguments[2] : {};
10122
+ var props = keys(map);
10123
+ if (hasSymbols) {
10124
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
10125
+ }
10126
+ for (var i = 0; i < props.length; i += 1) {
10127
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
10128
+ }
10129
+ };
10130
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
10131
+ module.exports = defineProperties;
10132
+
10133
+ /***/ }),
10134
+
10135
+ /***/ "./node_modules/dunder-proto/get.js":
10136
+ /*!******************************************!*\
10137
+ !*** ./node_modules/dunder-proto/get.js ***!
10138
+ \******************************************/
10139
+ /*! no static exports found */
10140
+ /***/ (function(module, exports, __webpack_require__) {
10141
+
10142
+ "use strict";
10143
+
10144
+
10145
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10146
+ var callBind = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js");
10147
+ var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
10148
+ var hasProtoAccessor;
10149
+ try {
10150
+ // eslint-disable-next-line no-extra-parens, no-proto
10151
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */[].__proto__ === Array.prototype;
10152
+ } catch (e) {
10153
+ if (!e || _typeof(e) !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
10154
+ throw e;
10155
+ }
10156
+ }
10157
+
10158
+ // eslint-disable-next-line no-extra-parens
10159
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */'__proto__');
10160
+ var $Object = Object;
10161
+ var $getPrototypeOf = $Object.getPrototypeOf;
10162
+
10163
+ /** @type {import('./get')} */
10164
+ module.exports = desc && typeof desc.get === 'function' ? callBind([desc.get]) : typeof $getPrototypeOf === 'function' ? /** @type {import('./get')} */function getDunder(value) {
10165
+ // eslint-disable-next-line eqeqeq
10166
+ return $getPrototypeOf(value == null ? value : $Object(value));
10167
+ } : false;
10168
+
10169
+ /***/ }),
10170
+
10171
+ /***/ "./node_modules/es-abstract-get/GetMethod.js":
10172
+ /*!***************************************************!*\
10173
+ !*** ./node_modules/es-abstract-get/GetMethod.js ***!
10174
+ \***************************************************/
10175
+ /*! no static exports found */
10176
+ /***/ (function(module, exports, __webpack_require__) {
10177
+
10178
+ "use strict";
10179
+
10180
+
10181
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10182
+ var isCallable = __webpack_require__(/*! is-callable */ "./node_modules/is-callable/index.js");
10183
+ var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
10184
+ var GetV = __webpack_require__(/*! ./GetV */ "./node_modules/es-abstract-get/GetV.js");
10185
+ var isPropertyKey = __webpack_require__(/*! ./isPropertyKey */ "./node_modules/es-abstract-get/isPropertyKey.js");
10186
+
10187
+ // https://262.ecma-international.org/6.0/#sec-getmethod
10188
+
10189
+ /** @type {import('./GetMethod')} */
10190
+ module.exports = function GetMethod(O, P) {
10191
+ // 7.3.9.1
10192
+ if (!isPropertyKey(P)) {
10193
+ throw new $TypeError('Assertion failed: P is not a Property Key');
10194
+ }
10195
+
10196
+ // 7.3.9.2
10197
+ var func = GetV(O, P);
10198
+
10199
+ // 7.3.9.4
10200
+ if (func == null) {
10201
+ return void 0;
10202
+ }
10203
+
10204
+ // 7.3.9.5
10205
+ if (!isCallable(func)) {
10206
+ throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func));
10207
+ }
10208
+
10209
+ // 7.3.9.6
10210
+ return func;
10211
+ };
10212
+
10213
+ /***/ }),
10214
+
10215
+ /***/ "./node_modules/es-abstract-get/GetV.js":
10216
+ /*!**********************************************!*\
10217
+ !*** ./node_modules/es-abstract-get/GetV.js ***!
10218
+ \**********************************************/
10219
+ /*! no static exports found */
10220
+ /***/ (function(module, exports, __webpack_require__) {
10221
+
10222
+ "use strict";
10223
+
10224
+
10225
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10226
+ var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
10227
+ var isPropertyKey = __webpack_require__(/*! ./isPropertyKey */ "./node_modules/es-abstract-get/isPropertyKey.js");
10228
+
10229
+ // https://262.ecma-international.org/6.0/#sec-getv
10230
+
10231
+ /** @type {import('./GetV')} */
10232
+ module.exports = function GetV(V, P) {
10233
+ // 7.3.2.1
10234
+ if (!isPropertyKey(P)) {
10235
+ throw new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));
10236
+ }
10237
+
10238
+ // 7.3.2.2-3
10239
+ // var O = ToObject(V);
10240
+
10241
+ // 7.3.2.4
10242
+ return (/** @type {Record<typeof P, unknown>} */V[P]
10243
+ ); // O.[[Get]](P, V)
10244
+ };
10245
+
10246
+ /***/ }),
10247
+
10248
+ /***/ "./node_modules/es-abstract-get/isPropertyKey.js":
10249
+ /*!*******************************************************!*\
10250
+ !*** ./node_modules/es-abstract-get/isPropertyKey.js ***!
10251
+ \*******************************************************/
10252
+ /*! no static exports found */
10253
+ /***/ (function(module, exports, __webpack_require__) {
10254
+
10255
+ "use strict";
10256
+
10257
+
10258
+ /** @type {import('./isPropertyKey')} */
10259
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10260
+ module.exports = function isPropertyKey(argument) {
10261
+ return typeof argument === 'string' || _typeof(argument) === 'symbol';
10262
+ };
10263
+
10264
+ /***/ }),
10265
+
10266
+ /***/ "./node_modules/es-abstract/2024/HasOwnProperty.js":
10267
+ /*!*********************************************************!*\
10268
+ !*** ./node_modules/es-abstract/2024/HasOwnProperty.js ***!
10269
+ \*********************************************************/
10270
+ /*! no static exports found */
10271
+ /***/ (function(module, exports, __webpack_require__) {
10272
+
10273
+ "use strict";
10274
+
10275
+
10276
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10277
+ var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
10278
+ var isObject = __webpack_require__(/*! es-object-atoms/isObject */ "./node_modules/es-object-atoms/isObject.js");
10279
+ var isPropertyKey = __webpack_require__(/*! ../helpers/isPropertyKey */ "./node_modules/es-abstract/helpers/isPropertyKey.js");
10280
+
10281
+ // https://262.ecma-international.org/6.0/#sec-hasownproperty
10282
+
10283
+ module.exports = function HasOwnProperty(O, P) {
10284
+ if (!isObject(O)) {
10285
+ throw new $TypeError('Assertion failed: `O` must be an Object');
10286
+ }
10287
+ if (!isPropertyKey(P)) {
10288
+ throw new $TypeError('Assertion failed: `P` must be a Property Key');
10289
+ }
10290
+ return hasOwn(O, P);
10291
+ };
10292
+
10293
+ /***/ }),
10294
+
10295
+ /***/ "./node_modules/es-abstract/2024/ToPrimitive.js":
10296
+ /*!******************************************************!*\
10297
+ !*** ./node_modules/es-abstract/2024/ToPrimitive.js ***!
10298
+ \******************************************************/
10299
+ /*! no static exports found */
10300
+ /***/ (function(module, exports, __webpack_require__) {
10301
+
10302
+ "use strict";
10303
+
10304
+
10305
+ var toPrimitive = __webpack_require__(/*! es-to-primitive/es2015 */ "./node_modules/es-to-primitive/es2015.js");
10306
+
10307
+ // https://262.ecma-international.org/6.0/#sec-toprimitive
10308
+
10309
+ module.exports = function ToPrimitive(input) {
10310
+ if (arguments.length > 1) {
10311
+ return toPrimitive(input, arguments[1]);
10312
+ }
10313
+ return toPrimitive(input);
10314
+ };
10315
+
10316
+ /***/ }),
10317
+
10318
+ /***/ "./node_modules/es-abstract/2024/ToPropertyKey.js":
10319
+ /*!********************************************************!*\
10320
+ !*** ./node_modules/es-abstract/2024/ToPropertyKey.js ***!
10321
+ \********************************************************/
10322
+ /*! no static exports found */
10323
+ /***/ (function(module, exports, __webpack_require__) {
10324
+
10325
+ "use strict";
10326
+
10327
+
10328
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10329
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
10330
+ var $String = GetIntrinsic('%String%');
10331
+ var ToPrimitive = __webpack_require__(/*! ./ToPrimitive */ "./node_modules/es-abstract/2024/ToPrimitive.js");
10332
+ var ToString = __webpack_require__(/*! ./ToString */ "./node_modules/es-abstract/2024/ToString.js");
10333
+
10334
+ // https://262.ecma-international.org/6.0/#sec-topropertykey
10335
+
10336
+ module.exports = function ToPropertyKey(argument) {
10337
+ var key = ToPrimitive(argument, $String);
10338
+ return _typeof(key) === 'symbol' ? key : ToString(key);
10339
+ };
10340
+
10341
+ /***/ }),
10342
+
10343
+ /***/ "./node_modules/es-abstract/2024/ToString.js":
10344
+ /*!***************************************************!*\
10345
+ !*** ./node_modules/es-abstract/2024/ToString.js ***!
10346
+ \***************************************************/
10347
+ /*! no static exports found */
10348
+ /***/ (function(module, exports, __webpack_require__) {
10349
+
10350
+ "use strict";
10351
+
10352
+
10353
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10354
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
10355
+ var $String = GetIntrinsic('%String%');
10356
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10357
+
10358
+ // https://262.ecma-international.org/6.0/#sec-tostring
10359
+
10360
+ module.exports = function ToString(argument) {
10361
+ if (_typeof(argument) === 'symbol') {
10362
+ throw new $TypeError('Cannot convert a Symbol value to a string');
10363
+ }
10364
+ return $String(argument);
10365
+ };
10366
+
10367
+ /***/ }),
10368
+
10369
+ /***/ "./node_modules/es-abstract/helpers/isPropertyKey.js":
10370
+ /*!***********************************************************!*\
10371
+ !*** ./node_modules/es-abstract/helpers/isPropertyKey.js ***!
10372
+ \***********************************************************/
10373
+ /*! no static exports found */
10374
+ /***/ (function(module, exports, __webpack_require__) {
10375
+
10376
+ "use strict";
10377
+
10378
+
10379
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10380
+ module.exports = function isPropertyKey(argument) {
10381
+ return typeof argument === 'string' || _typeof(argument) === 'symbol';
10382
+ };
10383
+
10384
+ /***/ }),
10385
+
10386
+ /***/ "./node_modules/es-define-property/index.js":
10387
+ /*!**************************************************!*\
10388
+ !*** ./node_modules/es-define-property/index.js ***!
10389
+ \**************************************************/
10390
+ /*! no static exports found */
10391
+ /***/ (function(module, exports, __webpack_require__) {
10392
+
10393
+ "use strict";
10394
+
10395
+
10396
+ /** @type {import('.')} */
10397
+ var $defineProperty = Object.defineProperty || false;
10398
+ if ($defineProperty) {
10399
+ try {
10400
+ $defineProperty({}, 'a', {
10401
+ value: 1
10402
+ });
10403
+ } catch (e) {
10404
+ // IE 8 has a broken defineProperty
10405
+ $defineProperty = false;
10406
+ }
10407
+ }
10408
+ module.exports = $defineProperty;
10409
+
10410
+ /***/ }),
10411
+
10412
+ /***/ "./node_modules/es-errors/eval.js":
10413
+ /*!****************************************!*\
10414
+ !*** ./node_modules/es-errors/eval.js ***!
10415
+ \****************************************/
10416
+ /*! no static exports found */
10417
+ /***/ (function(module, exports, __webpack_require__) {
10418
+
10419
+ "use strict";
10420
+
10421
+
10422
+ /** @type {import('./eval')} */
10423
+ module.exports = EvalError;
10424
+
10425
+ /***/ }),
10426
+
10427
+ /***/ "./node_modules/es-errors/index.js":
10428
+ /*!*****************************************!*\
10429
+ !*** ./node_modules/es-errors/index.js ***!
10430
+ \*****************************************/
10431
+ /*! no static exports found */
10432
+ /***/ (function(module, exports, __webpack_require__) {
10433
+
10434
+ "use strict";
10435
+
10436
+
10437
+ /** @type {import('.')} */
10438
+ module.exports = Error;
10439
+
10440
+ /***/ }),
10441
+
10442
+ /***/ "./node_modules/es-errors/range.js":
10443
+ /*!*****************************************!*\
10444
+ !*** ./node_modules/es-errors/range.js ***!
10445
+ \*****************************************/
10446
+ /*! no static exports found */
10447
+ /***/ (function(module, exports, __webpack_require__) {
10448
+
10449
+ "use strict";
10450
+
10451
+
10452
+ /** @type {import('./range')} */
10453
+ module.exports = RangeError;
10454
+
10455
+ /***/ }),
10456
+
10457
+ /***/ "./node_modules/es-errors/ref.js":
10458
+ /*!***************************************!*\
10459
+ !*** ./node_modules/es-errors/ref.js ***!
10460
+ \***************************************/
10461
+ /*! no static exports found */
10462
+ /***/ (function(module, exports, __webpack_require__) {
10463
+
10464
+ "use strict";
10465
+
10466
+
10467
+ /** @type {import('./ref')} */
10468
+ module.exports = ReferenceError;
10469
+
10470
+ /***/ }),
10471
+
10472
+ /***/ "./node_modules/es-errors/syntax.js":
10473
+ /*!******************************************!*\
10474
+ !*** ./node_modules/es-errors/syntax.js ***!
10475
+ \******************************************/
10476
+ /*! no static exports found */
10477
+ /***/ (function(module, exports, __webpack_require__) {
10478
+
10479
+ "use strict";
10480
+
10481
+
10482
+ /** @type {import('./syntax')} */
10483
+ module.exports = SyntaxError;
10484
+
10485
+ /***/ }),
10486
+
10487
+ /***/ "./node_modules/es-errors/type.js":
10488
+ /*!****************************************!*\
10489
+ !*** ./node_modules/es-errors/type.js ***!
10490
+ \****************************************/
10491
+ /*! no static exports found */
10492
+ /***/ (function(module, exports, __webpack_require__) {
10493
+
10494
+ "use strict";
10495
+
10496
+
10497
+ /** @type {import('./type')} */
10498
+ module.exports = TypeError;
10499
+
10500
+ /***/ }),
10501
+
10502
+ /***/ "./node_modules/es-errors/uri.js":
10503
+ /*!***************************************!*\
10504
+ !*** ./node_modules/es-errors/uri.js ***!
10505
+ \***************************************/
10506
+ /*! no static exports found */
10507
+ /***/ (function(module, exports, __webpack_require__) {
10508
+
10509
+ "use strict";
10510
+
10511
+
10512
+ /** @type {import('./uri')} */
10513
+ module.exports = URIError;
10514
+
10515
+ /***/ }),
10516
+
10517
+ /***/ "./node_modules/es-object-atoms/RequireObjectCoercible.js":
10518
+ /*!****************************************************************!*\
10519
+ !*** ./node_modules/es-object-atoms/RequireObjectCoercible.js ***!
10520
+ \****************************************************************/
10521
+ /*! no static exports found */
10522
+ /***/ (function(module, exports, __webpack_require__) {
10523
+
10524
+ "use strict";
10525
+
10526
+
10527
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10528
+
10529
+ /** @type {import('./RequireObjectCoercible')} */
10530
+ module.exports = function RequireObjectCoercible(value) {
10531
+ if (value == null) {
10532
+ throw new $TypeError(arguments.length > 0 && arguments[1] || 'Cannot call method on ' + value);
10533
+ }
10534
+ return value;
10535
+ };
10536
+
10537
+ /***/ }),
10538
+
10539
+ /***/ "./node_modules/es-object-atoms/ToObject.js":
10540
+ /*!**************************************************!*\
10541
+ !*** ./node_modules/es-object-atoms/ToObject.js ***!
10542
+ \**************************************************/
10543
+ /*! no static exports found */
10544
+ /***/ (function(module, exports, __webpack_require__) {
10545
+
10546
+ "use strict";
10547
+
10548
+
10549
+ var $Object = __webpack_require__(/*! ./ */ "./node_modules/es-object-atoms/index.js");
10550
+ var RequireObjectCoercible = __webpack_require__(/*! ./RequireObjectCoercible */ "./node_modules/es-object-atoms/RequireObjectCoercible.js");
10551
+
10552
+ /** @type {import('./ToObject')} */
10553
+ module.exports = function ToObject(value) {
10554
+ RequireObjectCoercible(value);
10555
+ return $Object(value);
10556
+ };
10557
+
10558
+ /***/ }),
10559
+
10560
+ /***/ "./node_modules/es-object-atoms/index.js":
10561
+ /*!***********************************************!*\
10562
+ !*** ./node_modules/es-object-atoms/index.js ***!
10563
+ \***********************************************/
10564
+ /*! no static exports found */
10565
+ /***/ (function(module, exports, __webpack_require__) {
10566
+
10567
+ "use strict";
10568
+
10569
+
10570
+ /** @type {import('.')} */
10571
+ module.exports = Object;
10572
+
10573
+ /***/ }),
10574
+
10575
+ /***/ "./node_modules/es-object-atoms/isObject.js":
10576
+ /*!**************************************************!*\
10577
+ !*** ./node_modules/es-object-atoms/isObject.js ***!
10578
+ \**************************************************/
10579
+ /*! no static exports found */
10580
+ /***/ (function(module, exports, __webpack_require__) {
10581
+
10582
+ "use strict";
10583
+
10584
+
10585
+ /** @type {import('./isObject')} */
10586
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10587
+ module.exports = function isObject(x) {
10588
+ return !!x && (typeof x === 'function' || _typeof(x) === 'object');
10589
+ };
10590
+
10591
+ /***/ }),
10592
+
10593
+ /***/ "./node_modules/es-to-primitive/es2015.js":
10594
+ /*!************************************************!*\
10595
+ !*** ./node_modules/es-to-primitive/es2015.js ***!
10596
+ \************************************************/
10597
+ /*! no static exports found */
10598
+ /***/ (function(module, exports, __webpack_require__) {
10599
+
10600
+ "use strict";
10601
+
10602
+
10603
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10604
+ var hasSymbols = typeof Symbol === 'function' && _typeof(Symbol.iterator) === 'symbol';
10605
+ var isCallable = __webpack_require__(/*! is-callable */ "./node_modules/is-callable/index.js");
10606
+ var isDate = __webpack_require__(/*! is-date-object */ "./node_modules/is-date-object/index.js");
10607
+ var isSymbol = __webpack_require__(/*! is-symbol */ "./node_modules/is-symbol/index.js");
10608
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10609
+ var isPrimitive = __webpack_require__(/*! ./helpers/isPrimitive */ "./node_modules/es-to-primitive/helpers/isPrimitive.js");
10610
+
10611
+ /** @import { primitiveES6 } from './es2015' */
10612
+
10613
+ /** @type {(O: { valueOf?: () => unknown, toString?: () => unknown }, hint: 'number' | 'string') => primitiveES6} */
10614
+ function OrdinaryToPrimitive(O, hint) {
10615
+ if (typeof O === 'undefined' || O === null) {
10616
+ throw new $TypeError('Cannot call method on ' + O);
10617
+ }
10618
+ if (typeof hint !== 'string' || hint !== 'number' && hint !== 'string') {
10619
+ throw new $TypeError('hint must be "string" or "number"');
10620
+ }
10621
+ /** @type {('toString' | 'valueOf')[]} */
10622
+ var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
10623
+ var method, result, i;
10624
+ for (i = 0; i < methodNames.length; ++i) {
10625
+ method = O[methodNames[i]];
10626
+ if (isCallable(method)) {
10627
+ result = method.call(O);
10628
+ if (isPrimitive(result)) {
10629
+ return (/** @type {primitiveES6} */result
10630
+ );
10631
+ }
10632
+ }
10633
+ }
10634
+ throw new $TypeError('No default value');
10635
+ }
10636
+ var GetMethod = __webpack_require__(/*! es-abstract-get/GetMethod */ "./node_modules/es-abstract-get/GetMethod.js");
10637
+
10638
+ /** @type {import('./es2015')} */
10639
+ // http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
10640
+ module.exports = function ToPrimitive(input) {
10641
+ if (isPrimitive(input)) {
10642
+ return (/** @type {primitiveES6} */input
10643
+ );
10644
+ }
10645
+ /** @type {'default' | 'string' | 'number'} */
10646
+ var hint = 'default';
10647
+ if (arguments.length > 1) {
10648
+ if (arguments[1] === String) {
10649
+ hint = 'string';
10650
+ } else if (arguments[1] === Number) {
10651
+ hint = 'number';
10652
+ }
10653
+ }
10654
+ var exoticToPrim;
10655
+ if (hasSymbols) {
10656
+ if (Symbol.toPrimitive) {
10657
+ exoticToPrim = GetMethod( /** @type {{ [k in SymbolConstructor['toPrimitive']]?: Function }} */
10658
+ input, Symbol.toPrimitive);
10659
+ } else if (isSymbol(input)) {
10660
+ exoticToPrim = Symbol.prototype.valueOf;
10661
+ }
10662
+ }
10663
+ if (typeof exoticToPrim !== 'undefined') {
10664
+ var result = exoticToPrim.call(input, hint);
10665
+ if (isPrimitive(result)) {
10666
+ return (/** @type {primitiveES6} */result
10667
+ );
10668
+ }
10669
+ throw new $TypeError('unable to convert exotic object to primitive');
10670
+ }
10671
+ if (hint === 'default' && (isDate(input) || isSymbol(input))) {
10672
+ hint = /** @type {const} */'string';
10673
+ }
10674
+ return OrdinaryToPrimitive(input, hint === 'default' ? 'number' : hint);
10675
+ };
10676
+
10677
+ /***/ }),
10678
+
10679
+ /***/ "./node_modules/es-to-primitive/helpers/isPrimitive.js":
10680
+ /*!*************************************************************!*\
10681
+ !*** ./node_modules/es-to-primitive/helpers/isPrimitive.js ***!
10682
+ \*************************************************************/
10683
+ /*! no static exports found */
10684
+ /***/ (function(module, exports, __webpack_require__) {
10685
+
10686
+ "use strict";
10687
+
10688
+
10689
+ /** @import { primitive } from '../' */
10690
+ /** @import { primitiveES5 } from '../es5' */
10691
+
10692
+ /** @type {<T extends primitive | primitiveES5>(value: unknown) => value is T} */
10693
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10694
+ module.exports = function isPrimitive(value) {
10695
+ return value === null || typeof value !== 'function' && _typeof(value) !== 'object';
10696
+ };
10697
+
10698
+ /***/ }),
10699
+
10700
+ /***/ "./node_modules/function-bind/implementation.js":
10701
+ /*!******************************************************!*\
10702
+ !*** ./node_modules/function-bind/implementation.js ***!
10703
+ \******************************************************/
10704
+ /*! no static exports found */
10705
+ /***/ (function(module, exports, __webpack_require__) {
10706
+
10707
+ "use strict";
10708
+
10709
+
10710
+ /* eslint no-invalid-this: 1 */
10711
+ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
10712
+ var toStr = Object.prototype.toString;
10713
+ var max = Math.max;
10714
+ var funcType = '[object Function]';
10715
+ var concatty = function concatty(a, b) {
10716
+ var arr = [];
10717
+ for (var i = 0; i < a.length; i += 1) {
10718
+ arr[i] = a[i];
10719
+ }
10720
+ for (var j = 0; j < b.length; j += 1) {
10721
+ arr[j + a.length] = b[j];
10722
+ }
10723
+ return arr;
10724
+ };
10725
+ var slicy = function slicy(arrLike, offset) {
10726
+ var arr = [];
10727
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
10728
+ arr[j] = arrLike[i];
10729
+ }
10730
+ return arr;
10731
+ };
10732
+ var joiny = function joiny(arr, joiner) {
10733
+ var str = '';
10734
+ for (var i = 0; i < arr.length; i += 1) {
10735
+ str += arr[i];
10736
+ if (i + 1 < arr.length) {
10737
+ str += joiner;
10738
+ }
10739
+ }
10740
+ return str;
10741
+ };
10742
+ module.exports = function bind(that) {
10743
+ var target = this;
10744
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
10745
+ throw new TypeError(ERROR_MESSAGE + target);
10746
+ }
10747
+ var args = slicy(arguments, 1);
10748
+ var bound;
10749
+ var binder = function binder() {
10750
+ if (this instanceof bound) {
10751
+ var result = target.apply(this, concatty(args, arguments));
10752
+ if (Object(result) === result) {
10753
+ return result;
10754
+ }
10755
+ return this;
10756
+ }
10757
+ return target.apply(that, concatty(args, arguments));
10758
+ };
10759
+ var boundLength = max(0, target.length - args.length);
10760
+ var boundArgs = [];
10761
+ for (var i = 0; i < boundLength; i++) {
10762
+ boundArgs[i] = '$' + i;
10763
+ }
10764
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
10765
+ if (target.prototype) {
10766
+ var Empty = function Empty() {};
10767
+ Empty.prototype = target.prototype;
10768
+ bound.prototype = new Empty();
10769
+ Empty.prototype = null;
10770
+ }
10771
+ return bound;
10772
+ };
10773
+
10774
+ /***/ }),
10775
+
10776
+ /***/ "./node_modules/function-bind/index.js":
10777
+ /*!*********************************************!*\
10778
+ !*** ./node_modules/function-bind/index.js ***!
10779
+ \*********************************************/
10780
+ /*! no static exports found */
10781
+ /***/ (function(module, exports, __webpack_require__) {
10782
+
10783
+ "use strict";
10784
+
10785
+
10786
+ var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
10787
+ module.exports = Function.prototype.bind || implementation;
10788
+
10789
+ /***/ }),
10790
+
10791
+ /***/ "./node_modules/get-intrinsic/index.js":
10792
+ /*!*********************************************!*\
10793
+ !*** ./node_modules/get-intrinsic/index.js ***!
10794
+ \*********************************************/
10795
+ /*! no static exports found */
10796
+ /***/ (function(module, exports, __webpack_require__) {
10797
+
10798
+ "use strict";
10799
+
10800
+
10801
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
10802
+ var undefined;
10803
+ var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/es-object-atoms/index.js");
10804
+ var $Error = __webpack_require__(/*! es-errors */ "./node_modules/es-errors/index.js");
10805
+ var $EvalError = __webpack_require__(/*! es-errors/eval */ "./node_modules/es-errors/eval.js");
10806
+ var $RangeError = __webpack_require__(/*! es-errors/range */ "./node_modules/es-errors/range.js");
10807
+ var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "./node_modules/es-errors/ref.js");
10808
+ var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js");
10809
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
10810
+ var $URIError = __webpack_require__(/*! es-errors/uri */ "./node_modules/es-errors/uri.js");
10811
+ var abs = __webpack_require__(/*! math-intrinsics/abs */ "./node_modules/math-intrinsics/abs.js");
10812
+ var floor = __webpack_require__(/*! math-intrinsics/floor */ "./node_modules/math-intrinsics/floor.js");
10813
+ var max = __webpack_require__(/*! math-intrinsics/max */ "./node_modules/math-intrinsics/max.js");
10814
+ var min = __webpack_require__(/*! math-intrinsics/min */ "./node_modules/math-intrinsics/min.js");
10815
+ var pow = __webpack_require__(/*! math-intrinsics/pow */ "./node_modules/math-intrinsics/pow.js");
10816
+ var round = __webpack_require__(/*! math-intrinsics/round */ "./node_modules/math-intrinsics/round.js");
10817
+ var sign = __webpack_require__(/*! math-intrinsics/sign */ "./node_modules/math-intrinsics/sign.js");
10818
+ var $Function = Function;
10819
+
10820
+ // eslint-disable-next-line consistent-return
10821
+ var getEvalledConstructor = function getEvalledConstructor(expressionSyntax) {
10822
+ try {
10823
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
10824
+ } catch (e) {}
10825
+ };
10826
+ var $gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
10827
+ var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
10828
+ var throwTypeError = function throwTypeError() {
10829
+ throw new $TypeError();
10830
+ };
10831
+ var ThrowTypeError = $gOPD ? function () {
10832
+ try {
10833
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
10834
+ arguments.callee; // IE 8 does not throw here
10835
+ return throwTypeError;
10836
+ } catch (calleeThrows) {
10837
+ try {
10838
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
10839
+ return $gOPD(arguments, 'callee').get;
10840
+ } catch (gOPDthrows) {
10841
+ return throwTypeError;
10842
+ }
10843
+ }
10844
+ }() : throwTypeError;
10845
+ var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
10846
+ var getProto = __webpack_require__(/*! get-proto */ "./node_modules/get-proto/index.js");
10847
+ var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js");
10848
+ var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js");
10849
+ var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js");
10850
+ var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
10851
+ var needsEval = {};
10852
+ var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
10853
+ var INTRINSICS = {
10854
+ __proto__: null,
10855
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
10856
+ '%Array%': Array,
10857
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
10858
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
10859
+ '%AsyncFromSyncIteratorPrototype%': undefined,
10860
+ '%AsyncFunction%': needsEval,
10861
+ '%AsyncGenerator%': needsEval,
10862
+ '%AsyncGeneratorFunction%': needsEval,
10863
+ '%AsyncIteratorPrototype%': needsEval,
10864
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
10865
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
10866
+ '%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
10867
+ '%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
10868
+ '%Boolean%': Boolean,
10869
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
10870
+ '%Date%': Date,
10871
+ '%decodeURI%': decodeURI,
10872
+ '%decodeURIComponent%': decodeURIComponent,
10873
+ '%encodeURI%': encodeURI,
10874
+ '%encodeURIComponent%': encodeURIComponent,
10875
+ '%Error%': $Error,
10876
+ '%eval%': eval,
10877
+ // eslint-disable-line no-eval
10878
+ '%EvalError%': $EvalError,
10879
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
10880
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
10881
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
10882
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
10883
+ '%Function%': $Function,
10884
+ '%GeneratorFunction%': needsEval,
10885
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
10886
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
10887
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
10888
+ '%isFinite%': isFinite,
10889
+ '%isNaN%': isNaN,
10890
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
10891
+ '%JSON%': (typeof JSON === "undefined" ? "undefined" : _typeof(JSON)) === 'object' ? JSON : undefined,
10892
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
10893
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
10894
+ '%Math%': Math,
10895
+ '%Number%': Number,
10896
+ '%Object%': $Object,
10897
+ '%Object.getOwnPropertyDescriptor%': $gOPD,
10898
+ '%parseFloat%': parseFloat,
10899
+ '%parseInt%': parseInt,
10900
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
10901
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
10902
+ '%RangeError%': $RangeError,
10903
+ '%ReferenceError%': $ReferenceError,
10904
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
10905
+ '%RegExp%': RegExp,
10906
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
10907
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
10908
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
10909
+ '%String%': String,
10910
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
10911
+ '%Symbol%': hasSymbols ? Symbol : undefined,
10912
+ '%SyntaxError%': $SyntaxError,
10913
+ '%ThrowTypeError%': ThrowTypeError,
10914
+ '%TypedArray%': TypedArray,
10915
+ '%TypeError%': $TypeError,
10916
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
10917
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
10918
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
10919
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
10920
+ '%URIError%': $URIError,
10921
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
10922
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
10923
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
10924
+ '%Function.prototype.call%': $call,
10925
+ '%Function.prototype.apply%': $apply,
10926
+ '%Object.defineProperty%': $defineProperty,
10927
+ '%Object.getPrototypeOf%': $ObjectGPO,
10928
+ '%Math.abs%': abs,
10929
+ '%Math.floor%': floor,
10930
+ '%Math.max%': max,
10931
+ '%Math.min%': min,
10932
+ '%Math.pow%': pow,
10933
+ '%Math.round%': round,
10934
+ '%Math.sign%': sign,
10935
+ '%Reflect.getPrototypeOf%': $ReflectGPO
10936
+ };
10937
+ if (getProto) {
10938
+ try {
10939
+ null.error; // eslint-disable-line no-unused-expressions
10940
+ } catch (e) {
10941
+ // https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
10942
+ var errorProto = getProto(getProto(e));
10943
+ INTRINSICS['%Error.prototype%'] = errorProto;
10944
+ }
10945
+ }
10946
+ var doEval = function doEval(name) {
10947
+ var value;
10948
+ if (name === '%AsyncFunction%') {
10949
+ value = getEvalledConstructor('async function () {}');
10950
+ } else if (name === '%GeneratorFunction%') {
10951
+ value = getEvalledConstructor('function* () {}');
10952
+ } else if (name === '%AsyncGeneratorFunction%') {
10953
+ value = getEvalledConstructor('async function* () {}');
10954
+ } else if (name === '%AsyncGenerator%') {
10955
+ var fn = doEval('%AsyncGeneratorFunction%');
10956
+ if (fn) {
10957
+ value = fn.prototype;
10958
+ }
10959
+ } else if (name === '%AsyncIteratorPrototype%') {
10960
+ var gen = doEval('%AsyncGenerator%');
10961
+ if (gen && getProto) {
10962
+ value = getProto(gen.prototype);
10963
+ }
10964
+ }
10965
+ INTRINSICS[name] = value;
10966
+ return value;
10967
+ };
10968
+ var LEGACY_ALIASES = {
10969
+ __proto__: null,
10970
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
10971
+ '%ArrayPrototype%': ['Array', 'prototype'],
10972
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
10973
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
10974
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
10975
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
10976
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
10977
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
10978
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
10979
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
10980
+ '%DataViewPrototype%': ['DataView', 'prototype'],
10981
+ '%DatePrototype%': ['Date', 'prototype'],
10982
+ '%ErrorPrototype%': ['Error', 'prototype'],
10983
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
10984
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
10985
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
10986
+ '%FunctionPrototype%': ['Function', 'prototype'],
10987
+ '%Generator%': ['GeneratorFunction', 'prototype'],
10988
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
10989
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
10990
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
10991
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
10992
+ '%JSONParse%': ['JSON', 'parse'],
10993
+ '%JSONStringify%': ['JSON', 'stringify'],
10994
+ '%MapPrototype%': ['Map', 'prototype'],
10995
+ '%NumberPrototype%': ['Number', 'prototype'],
10996
+ '%ObjectPrototype%': ['Object', 'prototype'],
10997
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
10998
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
10999
+ '%PromisePrototype%': ['Promise', 'prototype'],
11000
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
11001
+ '%Promise_all%': ['Promise', 'all'],
11002
+ '%Promise_reject%': ['Promise', 'reject'],
11003
+ '%Promise_resolve%': ['Promise', 'resolve'],
11004
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
11005
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
11006
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
11007
+ '%SetPrototype%': ['Set', 'prototype'],
11008
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
11009
+ '%StringPrototype%': ['String', 'prototype'],
11010
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
11011
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
11012
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
11013
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
11014
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
11015
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
11016
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
11017
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
11018
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
11019
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
11020
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
11021
+ };
11022
+ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
11023
+ var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
11024
+ var $concat = bind.call($call, Array.prototype.concat);
11025
+ var $spliceApply = bind.call($apply, Array.prototype.splice);
11026
+ var $replace = bind.call($call, String.prototype.replace);
11027
+ var $strSlice = bind.call($call, String.prototype.slice);
11028
+ var $exec = bind.call($call, RegExp.prototype.exec);
11029
+
11030
+ /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
11031
+ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
11032
+ var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
11033
+ var stringToPath = function stringToPath(string) {
11034
+ var first = $strSlice(string, 0, 1);
11035
+ var last = $strSlice(string, -1);
11036
+ if (first === '%' && last !== '%') {
11037
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
11038
+ } else if (last === '%' && first !== '%') {
11039
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
11040
+ }
11041
+ var result = [];
11042
+ $replace(string, rePropName, function (match, number, quote, subString) {
11043
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
11044
+ });
11045
+ return result;
11046
+ };
11047
+ /* end adaptation */
11048
+
11049
+ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
11050
+ var intrinsicName = name;
11051
+ var alias;
11052
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
11053
+ alias = LEGACY_ALIASES[intrinsicName];
11054
+ intrinsicName = '%' + alias[0] + '%';
11055
+ }
11056
+ if (hasOwn(INTRINSICS, intrinsicName)) {
11057
+ var value = INTRINSICS[intrinsicName];
11058
+ if (value === needsEval) {
11059
+ value = doEval(intrinsicName);
11060
+ }
11061
+ if (typeof value === 'undefined' && !allowMissing) {
11062
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
11063
+ }
11064
+ return {
11065
+ alias: alias,
11066
+ name: intrinsicName,
11067
+ value: value
11068
+ };
11069
+ }
11070
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
11071
+ };
11072
+ module.exports = function GetIntrinsic(name, allowMissing) {
11073
+ if (typeof name !== 'string' || name.length === 0) {
11074
+ throw new $TypeError('intrinsic name must be a non-empty string');
11075
+ }
11076
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
11077
+ throw new $TypeError('"allowMissing" argument must be a boolean');
11078
+ }
11079
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
11080
+ throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
11081
+ }
11082
+ var parts = stringToPath(name);
11083
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
11084
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
11085
+ var intrinsicRealName = intrinsic.name;
11086
+ var value = intrinsic.value;
11087
+ var skipFurtherCaching = false;
11088
+ var alias = intrinsic.alias;
11089
+ if (alias) {
11090
+ intrinsicBaseName = alias[0];
11091
+ $spliceApply(parts, $concat([0, 1], alias));
11092
+ }
11093
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
11094
+ var part = parts[i];
11095
+ var first = $strSlice(part, 0, 1);
11096
+ var last = $strSlice(part, -1);
11097
+ if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
11098
+ throw new $SyntaxError('property names with quotes must have matching quotes');
11099
+ }
11100
+ if (part === 'constructor' || !isOwn) {
11101
+ skipFurtherCaching = true;
11102
+ }
11103
+ intrinsicBaseName += '.' + part;
11104
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
11105
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
11106
+ value = INTRINSICS[intrinsicRealName];
11107
+ } else if (value != null) {
11108
+ if (!(part in value)) {
11109
+ if (!allowMissing) {
11110
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
11111
+ }
11112
+ return void undefined;
11113
+ }
11114
+ if ($gOPD && i + 1 >= parts.length) {
11115
+ var desc = $gOPD(value, part);
11116
+ isOwn = !!desc;
11117
+
11118
+ // By convention, when a data property is converted to an accessor
11119
+ // property to emulate a data property that does not suffer from
11120
+ // the override mistake, that accessor's getter is marked with
11121
+ // an `originalValue` property. Here, when we detect this, we
11122
+ // uphold the illusion by pretending to see that original data
11123
+ // property, i.e., returning the value rather than the getter
11124
+ // itself.
11125
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
11126
+ value = desc.get;
11127
+ } else {
11128
+ value = value[part];
11129
+ }
11130
+ } else {
11131
+ isOwn = hasOwn(value, part);
11132
+ value = value[part];
11133
+ }
11134
+ if (isOwn && !skipFurtherCaching) {
11135
+ INTRINSICS[intrinsicRealName] = value;
11136
+ }
11137
+ }
11138
+ }
11139
+ return value;
11140
+ };
11141
+
11142
+ /***/ }),
11143
+
11144
+ /***/ "./node_modules/get-proto/Object.getPrototypeOf.js":
11145
+ /*!*********************************************************!*\
11146
+ !*** ./node_modules/get-proto/Object.getPrototypeOf.js ***!
11147
+ \*********************************************************/
11148
+ /*! no static exports found */
11149
+ /***/ (function(module, exports, __webpack_require__) {
11150
+
11151
+ "use strict";
11152
+
11153
+
11154
+ var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/es-object-atoms/index.js");
11155
+
11156
+ /** @type {import('./Object.getPrototypeOf')} */
11157
+ module.exports = $Object.getPrototypeOf || null;
11158
+
11159
+ /***/ }),
11160
+
11161
+ /***/ "./node_modules/get-proto/Reflect.getPrototypeOf.js":
11162
+ /*!**********************************************************!*\
11163
+ !*** ./node_modules/get-proto/Reflect.getPrototypeOf.js ***!
11164
+ \**********************************************************/
11165
+ /*! no static exports found */
11166
+ /***/ (function(module, exports, __webpack_require__) {
11167
+
11168
+ "use strict";
11169
+
11170
+
11171
+ /** @type {import('./Reflect.getPrototypeOf')} */
11172
+ module.exports = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || null;
11173
+
11174
+ /***/ }),
11175
+
11176
+ /***/ "./node_modules/get-proto/index.js":
11177
+ /*!*****************************************!*\
11178
+ !*** ./node_modules/get-proto/index.js ***!
11179
+ \*****************************************/
11180
+ /*! no static exports found */
11181
+ /***/ (function(module, exports, __webpack_require__) {
11182
+
11183
+ "use strict";
11184
+
11185
+
11186
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11187
+ var reflectGetProto = __webpack_require__(/*! ./Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js");
11188
+ var originalGetProto = __webpack_require__(/*! ./Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js");
11189
+ var getDunderProto = __webpack_require__(/*! dunder-proto/get */ "./node_modules/dunder-proto/get.js");
11190
+
11191
+ /** @type {import('.')} */
11192
+ module.exports = reflectGetProto ? function getProto(O) {
11193
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
11194
+ return reflectGetProto(O);
11195
+ } : originalGetProto ? function getProto(O) {
11196
+ if (!O || _typeof(O) !== 'object' && typeof O !== 'function') {
11197
+ throw new TypeError('getProto: not an object');
11198
+ }
11199
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
11200
+ return originalGetProto(O);
11201
+ } : getDunderProto ? function getProto(O) {
11202
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
11203
+ return getDunderProto(O);
11204
+ } : null;
11205
+
11206
+ /***/ }),
11207
+
11208
+ /***/ "./node_modules/gopd/gOPD.js":
11209
+ /*!***********************************!*\
11210
+ !*** ./node_modules/gopd/gOPD.js ***!
11211
+ \***********************************/
11212
+ /*! no static exports found */
11213
+ /***/ (function(module, exports, __webpack_require__) {
11214
+
11215
+ "use strict";
11216
+
11217
+
11218
+ /** @type {import('./gOPD')} */
11219
+ module.exports = Object.getOwnPropertyDescriptor;
11220
+
11221
+ /***/ }),
11222
+
11223
+ /***/ "./node_modules/gopd/index.js":
11224
+ /*!************************************!*\
11225
+ !*** ./node_modules/gopd/index.js ***!
11226
+ \************************************/
11227
+ /*! no static exports found */
11228
+ /***/ (function(module, exports, __webpack_require__) {
11229
+
11230
+ "use strict";
11231
+
11232
+
11233
+ /** @type {import('.')} */
11234
+ var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/gopd/gOPD.js");
11235
+ if ($gOPD) {
11236
+ try {
11237
+ $gOPD([], 'length');
11238
+ } catch (e) {
11239
+ // IE 8 has a broken gOPD
11240
+ $gOPD = null;
11241
+ }
11242
+ }
11243
+ module.exports = $gOPD;
11244
+
11245
+ /***/ }),
11246
+
11247
+ /***/ "./node_modules/has-property-descriptors/index.js":
11248
+ /*!********************************************************!*\
11249
+ !*** ./node_modules/has-property-descriptors/index.js ***!
11250
+ \********************************************************/
11251
+ /*! no static exports found */
11252
+ /***/ (function(module, exports, __webpack_require__) {
11253
+
11254
+ "use strict";
11255
+
11256
+
11257
+ var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
11258
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
11259
+ return !!$defineProperty;
11260
+ };
11261
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
11262
+ // node v0.6 has a bug where array lengths can be Set but not Defined
11263
+ if (!$defineProperty) {
11264
+ return null;
11265
+ }
11266
+ try {
11267
+ return $defineProperty([], 'length', {
11268
+ value: 1
11269
+ }).length !== 1;
11270
+ } catch (e) {
11271
+ // In Firefox 4-22, defining length on an array throws an exception.
11272
+ return true;
11273
+ }
11274
+ };
11275
+ module.exports = hasPropertyDescriptors;
11276
+
11277
+ /***/ }),
11278
+
11279
+ /***/ "./node_modules/has-symbols/index.js":
11280
+ /*!*******************************************!*\
11281
+ !*** ./node_modules/has-symbols/index.js ***!
11282
+ \*******************************************/
11283
+ /*! no static exports found */
11284
+ /***/ (function(module, exports, __webpack_require__) {
11285
+
11286
+ "use strict";
11287
+
11288
+
11289
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11290
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
11291
+ var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
11292
+
11293
+ /** @type {import('.')} */
11294
+ module.exports = function hasNativeSymbols() {
11295
+ if (typeof origSymbol !== 'function') {
11296
+ return false;
11297
+ }
11298
+ if (typeof Symbol !== 'function') {
11299
+ return false;
11300
+ }
11301
+ if (_typeof(origSymbol('foo')) !== 'symbol') {
11302
+ return false;
11303
+ }
11304
+ if (_typeof(Symbol('bar')) !== 'symbol') {
11305
+ return false;
11306
+ }
11307
+ return hasSymbolSham();
11308
+ };
11309
+
11310
+ /***/ }),
11311
+
11312
+ /***/ "./node_modules/has-symbols/shams.js":
11313
+ /*!*******************************************!*\
11314
+ !*** ./node_modules/has-symbols/shams.js ***!
11315
+ \*******************************************/
11316
+ /*! no static exports found */
11317
+ /***/ (function(module, exports, __webpack_require__) {
11318
+
11319
+ "use strict";
11320
+
11321
+
11322
+ /** @type {import('./shams')} */
11323
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
11324
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11325
+ module.exports = function hasSymbols() {
11326
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
11327
+ return false;
11328
+ }
11329
+ if (_typeof(Symbol.iterator) === 'symbol') {
11330
+ return true;
11331
+ }
11332
+
11333
+ /** @type {{ [k in symbol]?: unknown }} */
11334
+ var obj = {};
11335
+ var sym = Symbol('test');
11336
+ var symObj = Object(sym);
11337
+ if (typeof sym === 'string') {
11338
+ return false;
11339
+ }
11340
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
11341
+ return false;
11342
+ }
11343
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
11344
+ return false;
11345
+ }
11346
+
11347
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
11348
+ // if (sym instanceof Symbol) { return false; }
11349
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
11350
+ // if (!(symObj instanceof Symbol)) { return false; }
11351
+
11352
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
11353
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
11354
+
11355
+ var symVal = 42;
11356
+ obj[sym] = symVal;
11357
+ for (var _ in obj) {
11358
+ return false;
11359
+ } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
11360
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
11361
+ return false;
11362
+ }
11363
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {
11364
+ return false;
11365
+ }
11366
+ var syms = Object.getOwnPropertySymbols(obj);
11367
+ if (syms.length !== 1 || syms[0] !== sym) {
11368
+ return false;
11369
+ }
11370
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
11371
+ return false;
11372
+ }
11373
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
11374
+ // eslint-disable-next-line no-extra-parens
11375
+ var descriptor = /** @type {PropertyDescriptor} */Object.getOwnPropertyDescriptor(obj, sym);
11376
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) {
11377
+ return false;
11378
+ }
11379
+ }
11380
+ return true;
11381
+ };
11382
+
11383
+ /***/ }),
11384
+
11385
+ /***/ "./node_modules/has-tostringtag/shams.js":
11386
+ /*!***********************************************!*\
11387
+ !*** ./node_modules/has-tostringtag/shams.js ***!
11388
+ \***********************************************/
11389
+ /*! no static exports found */
11390
+ /***/ (function(module, exports, __webpack_require__) {
11391
+
11392
+ "use strict";
11393
+
11394
+
11395
+ var hasSymbols = __webpack_require__(/*! has-symbols/shams */ "./node_modules/has-symbols/shams.js");
11396
+
11397
+ /** @type {import('.')} */
11398
+ module.exports = function hasToStringTagShams() {
11399
+ return hasSymbols() && !!Symbol.toStringTag;
11400
+ };
11401
+
11402
+ /***/ }),
11403
+
11404
+ /***/ "./node_modules/hasown/index.js":
11405
+ /*!**************************************!*\
11406
+ !*** ./node_modules/hasown/index.js ***!
11407
+ \**************************************/
11408
+ /*! no static exports found */
11409
+ /***/ (function(module, exports, __webpack_require__) {
11410
+
11411
+ "use strict";
11412
+
11413
+
11414
+ var call = Function.prototype.call;
11415
+ var $hasOwn = Object.prototype.hasOwnProperty;
11416
+ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
11417
+
11418
+ /** @type {import('.')} */
11419
+ module.exports = bind.call(call, $hasOwn);
11420
+
11421
+ /***/ }),
11422
+
11423
+ /***/ "./node_modules/is-callable/index.js":
11424
+ /*!*******************************************!*\
11425
+ !*** ./node_modules/is-callable/index.js ***!
11426
+ \*******************************************/
11427
+ /*! no static exports found */
11428
+ /***/ (function(module, exports, __webpack_require__) {
11429
+
11430
+ "use strict";
11431
+
11432
+
11433
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11434
+ var fnToStr = Function.prototype.toString;
11435
+ var reflectApply = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === 'object' && Reflect !== null && Reflect.apply;
11436
+ var badArrayLike;
11437
+ var isCallableMarker;
11438
+ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
11439
+ try {
11440
+ badArrayLike = Object.defineProperty({}, 'length', {
11441
+ get: function get() {
11442
+ throw isCallableMarker;
11443
+ }
11444
+ });
11445
+ isCallableMarker = {};
11446
+ // eslint-disable-next-line no-throw-literal
11447
+ reflectApply(function () {
11448
+ throw 42;
11449
+ }, null, badArrayLike);
11450
+ } catch (_) {
11451
+ if (_ !== isCallableMarker) {
11452
+ reflectApply = null;
11453
+ }
11454
+ }
11455
+ } else {
11456
+ reflectApply = null;
11457
+ }
11458
+ var constructorRegex = /^\s*class\b/;
11459
+ var isES6ClassFn = function isES6ClassFunction(value) {
11460
+ try {
11461
+ var fnStr = fnToStr.call(value);
11462
+ return constructorRegex.test(fnStr);
11463
+ } catch (e) {
11464
+ return false; // not a function
11465
+ }
11466
+ };
11467
+
11468
+ var tryFunctionObject = function tryFunctionToStr(value) {
11469
+ try {
11470
+ if (isES6ClassFn(value)) {
11471
+ return false;
11472
+ }
11473
+ fnToStr.call(value);
11474
+ return true;
11475
+ } catch (e) {
11476
+ return false;
11477
+ }
11478
+ };
11479
+ var toStr = Object.prototype.toString;
11480
+ var objectClass = '[object Object]';
11481
+ var fnClass = '[object Function]';
11482
+ var genClass = '[object GeneratorFunction]';
11483
+ var ddaClass = '[object HTMLAllCollection]'; // IE 11
11484
+ var ddaClass2 = '[object HTML document.all class]';
11485
+ var ddaClass3 = '[object HTMLCollection]'; // IE 9-10
11486
+ var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`
11487
+
11488
+ var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing
11489
+
11490
+ var isDDA = function isDocumentDotAll() {
11491
+ return false;
11492
+ };
11493
+ if ((typeof document === "undefined" ? "undefined" : _typeof(document)) === 'object') {
11494
+ // Firefox 3 canonicalizes DDA to undefined when it's not accessed directly
11495
+ var all = document.all;
11496
+ if (toStr.call(all) === toStr.call(document.all)) {
11497
+ isDDA = function isDocumentDotAll(value) {
11498
+ /* globals document: false */
11499
+ // in IE 6-8, typeof document.all is "object" and it's truthy
11500
+ if ((isIE68 || !value) && (typeof value === 'undefined' || _typeof(value) === 'object')) {
11501
+ try {
11502
+ var str = toStr.call(value);
11503
+ return (str === ddaClass || str === ddaClass2 || str === ddaClass3 // opera 12.16
11504
+ || str === objectClass // IE 6-8
11505
+ ) && value('') == null; // eslint-disable-line eqeqeq
11506
+ } catch (e) {/**/}
11507
+ }
11508
+ return false;
11509
+ };
11510
+ }
11511
+ }
11512
+ module.exports = reflectApply ? function isCallable(value) {
11513
+ if (isDDA(value)) {
11514
+ return true;
11515
+ }
11516
+ if (!value) {
11517
+ return false;
11518
+ }
11519
+ if (typeof value !== 'function' && _typeof(value) !== 'object') {
11520
+ return false;
11521
+ }
11522
+ try {
11523
+ reflectApply(value, null, badArrayLike);
11524
+ } catch (e) {
11525
+ if (e !== isCallableMarker) {
11526
+ return false;
11527
+ }
11528
+ }
11529
+ return !isES6ClassFn(value) && tryFunctionObject(value);
11530
+ } : function isCallable(value) {
11531
+ if (isDDA(value)) {
11532
+ return true;
11533
+ }
11534
+ if (!value) {
11535
+ return false;
11536
+ }
11537
+ if (typeof value !== 'function' && _typeof(value) !== 'object') {
11538
+ return false;
11539
+ }
11540
+ if (hasToStringTag) {
11541
+ return tryFunctionObject(value);
11542
+ }
11543
+ if (isES6ClassFn(value)) {
11544
+ return false;
11545
+ }
11546
+ var strClass = toStr.call(value);
11547
+ if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
11548
+ return false;
11549
+ }
11550
+ return tryFunctionObject(value);
11551
+ };
11552
+
11553
+ /***/ }),
11554
+
11555
+ /***/ "./node_modules/is-date-object/index.js":
11556
+ /*!**********************************************!*\
11557
+ !*** ./node_modules/is-date-object/index.js ***!
11558
+ \**********************************************/
11559
+ /*! no static exports found */
11560
+ /***/ (function(module, exports, __webpack_require__) {
11561
+
11562
+ "use strict";
11563
+
11564
+
11565
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11566
+ var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
11567
+ var getDay = callBound('Date.prototype.getDay');
11568
+ /** @type {import('.')} */
11569
+ var tryDateObject = function tryDateGetDayCall(value) {
11570
+ try {
11571
+ getDay(value);
11572
+ return true;
11573
+ } catch (e) {
11574
+ return false;
11575
+ }
11576
+ };
11577
+
11578
+ /** @type {(value: unknown) => string} */
11579
+ var toStr = callBound('Object.prototype.toString');
11580
+ var dateClass = '[object Date]';
11581
+ var hasToStringTag = __webpack_require__(/*! has-tostringtag/shams */ "./node_modules/has-tostringtag/shams.js")();
11582
+
11583
+ /** @type {import('.')} */
11584
+ module.exports = function isDateObject(value) {
11585
+ if (_typeof(value) !== 'object' || value === null) {
11586
+ return false;
11587
+ }
11588
+ return hasToStringTag ? tryDateObject(value) : toStr(value) === dateClass;
11589
+ };
11590
+
11591
+ /***/ }),
11592
+
11593
+ /***/ "./node_modules/is-regex/index.js":
11594
+ /*!****************************************!*\
11595
+ !*** ./node_modules/is-regex/index.js ***!
11596
+ \****************************************/
11597
+ /*! no static exports found */
11598
+ /***/ (function(module, exports, __webpack_require__) {
11599
+
11600
+ "use strict";
11601
+
11602
+
11603
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11604
+ var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
11605
+ var hasToStringTag = __webpack_require__(/*! has-tostringtag/shams */ "./node_modules/has-tostringtag/shams.js")();
11606
+ var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
11607
+ var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
11608
+
11609
+ /** @type {import('.')} */
11610
+ var fn;
11611
+ if (hasToStringTag) {
11612
+ /** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
11613
+ var $exec = callBound('RegExp.prototype.exec');
11614
+ /** @type {object} */
11615
+ var isRegexMarker = {};
11616
+ var throwRegexMarker = function throwRegexMarker() {
11617
+ throw isRegexMarker;
11618
+ };
11619
+ /** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
11620
+ var badStringifier = {
11621
+ toString: throwRegexMarker,
11622
+ valueOf: throwRegexMarker
11623
+ };
11624
+ if (_typeof(Symbol.toPrimitive) === 'symbol') {
11625
+ badStringifier[Symbol.toPrimitive] = throwRegexMarker;
11626
+ }
11627
+
11628
+ /** @type {import('.')} */
11629
+ // @ts-expect-error TS can't figure out that the $exec call always throws
11630
+ // eslint-disable-next-line consistent-return
11631
+ fn = function isRegex(value) {
11632
+ if (!value || _typeof(value) !== 'object') {
11633
+ return false;
11634
+ }
11635
+
11636
+ // eslint-disable-next-line no-extra-parens
11637
+ var descriptor = /** @type {NonNullable<typeof gOPD>} */gOPD( /** @type {{ lastIndex?: unknown }} */value, 'lastIndex');
11638
+ var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
11639
+ if (!hasLastIndexDataProperty) {
11640
+ return false;
11641
+ }
11642
+ try {
11643
+ // eslint-disable-next-line no-extra-parens
11644
+ $exec(value, /** @type {string} */ /** @type {unknown} */badStringifier);
11645
+ } catch (e) {
11646
+ return e === isRegexMarker;
11647
+ }
11648
+ };
11649
+ } else {
11650
+ /** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
11651
+ var $toString = callBound('Object.prototype.toString');
11652
+ /** @const @type {'[object RegExp]'} */
11653
+ var regexClass = '[object RegExp]';
11654
+
11655
+ /** @type {import('.')} */
11656
+ fn = function isRegex(value) {
11657
+ // In older browsers, typeof regex incorrectly returns 'function'
11658
+ if (!value || _typeof(value) !== 'object' && typeof value !== 'function') {
11659
+ return false;
11660
+ }
11661
+ return $toString(value) === regexClass;
11662
+ };
11663
+ }
11664
+ module.exports = fn;
11665
+
11666
+ /***/ }),
11667
+
11668
+ /***/ "./node_modules/is-symbol/index.js":
11669
+ /*!*****************************************!*\
11670
+ !*** ./node_modules/is-symbol/index.js ***!
11671
+ \*****************************************/
11672
+ /*! no static exports found */
11673
+ /***/ (function(module, exports, __webpack_require__) {
11674
+
11675
+ "use strict";
11676
+
11677
+
11678
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11679
+ var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
11680
+ var $toString = callBound('Object.prototype.toString');
11681
+ var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
11682
+ var safeRegexTest = __webpack_require__(/*! safe-regex-test */ "./node_modules/safe-regex-test/index.js");
11683
+ if (hasSymbols) {
11684
+ var $symToStr = callBound('Symbol.prototype.toString');
11685
+ var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
11686
+
11687
+ /** @type {(value: object) => value is Symbol} */
11688
+ var isSymbolObject = function isRealSymbolObject(value) {
11689
+ if (_typeof(value.valueOf()) !== 'symbol') {
11690
+ return false;
11691
+ }
11692
+ return isSymString($symToStr(value));
11693
+ };
11694
+
11695
+ /** @type {import('.')} */
11696
+ module.exports = function isSymbol(value) {
11697
+ if (_typeof(value) === 'symbol') {
11698
+ return true;
11699
+ }
11700
+ if (!value || _typeof(value) !== 'object' || $toString(value) !== '[object Symbol]') {
11701
+ return false;
11702
+ }
11703
+ try {
11704
+ return isSymbolObject(value);
11705
+ } catch (e) {
11706
+ return false;
11707
+ }
11708
+ };
11709
+ } else {
11710
+ /** @type {import('.')} */
11711
+ module.exports = function isSymbol(value) {
11712
+ // this environment does not support Symbols.
11713
+ return false && false;
11714
+ };
11715
+ }
11716
+
11717
+ /***/ }),
11718
+
11719
+ /***/ "./node_modules/math-intrinsics/abs.js":
11720
+ /*!*********************************************!*\
11721
+ !*** ./node_modules/math-intrinsics/abs.js ***!
11722
+ \*********************************************/
11723
+ /*! no static exports found */
11724
+ /***/ (function(module, exports, __webpack_require__) {
11725
+
11726
+ "use strict";
11727
+
11728
+
11729
+ /** @type {import('./abs')} */
11730
+ module.exports = Math.abs;
11731
+
11732
+ /***/ }),
11733
+
11734
+ /***/ "./node_modules/math-intrinsics/floor.js":
11735
+ /*!***********************************************!*\
11736
+ !*** ./node_modules/math-intrinsics/floor.js ***!
11737
+ \***********************************************/
11738
+ /*! no static exports found */
11739
+ /***/ (function(module, exports, __webpack_require__) {
11740
+
11741
+ "use strict";
11742
+
11743
+
11744
+ /** @type {import('./floor')} */
11745
+ module.exports = Math.floor;
11746
+
11747
+ /***/ }),
11748
+
11749
+ /***/ "./node_modules/math-intrinsics/isNaN.js":
11750
+ /*!***********************************************!*\
11751
+ !*** ./node_modules/math-intrinsics/isNaN.js ***!
11752
+ \***********************************************/
11753
+ /*! no static exports found */
11754
+ /***/ (function(module, exports, __webpack_require__) {
11755
+
11756
+ "use strict";
11757
+
11758
+
11759
+ /** @type {import('./isNaN')} */
11760
+ module.exports = Number.isNaN || function isNaN(a) {
11761
+ return a !== a;
11762
+ };
11763
+
11764
+ /***/ }),
11765
+
11766
+ /***/ "./node_modules/math-intrinsics/max.js":
11767
+ /*!*********************************************!*\
11768
+ !*** ./node_modules/math-intrinsics/max.js ***!
11769
+ \*********************************************/
11770
+ /*! no static exports found */
11771
+ /***/ (function(module, exports, __webpack_require__) {
11772
+
11773
+ "use strict";
11774
+
11775
+
11776
+ /** @type {import('./max')} */
11777
+ module.exports = Math.max;
11778
+
11779
+ /***/ }),
11780
+
11781
+ /***/ "./node_modules/math-intrinsics/min.js":
11782
+ /*!*********************************************!*\
11783
+ !*** ./node_modules/math-intrinsics/min.js ***!
11784
+ \*********************************************/
11785
+ /*! no static exports found */
11786
+ /***/ (function(module, exports, __webpack_require__) {
11787
+
11788
+ "use strict";
11789
+
11790
+
11791
+ /** @type {import('./min')} */
11792
+ module.exports = Math.min;
11793
+
11794
+ /***/ }),
11795
+
11796
+ /***/ "./node_modules/math-intrinsics/pow.js":
11797
+ /*!*********************************************!*\
11798
+ !*** ./node_modules/math-intrinsics/pow.js ***!
11799
+ \*********************************************/
11800
+ /*! no static exports found */
11801
+ /***/ (function(module, exports, __webpack_require__) {
11802
+
11803
+ "use strict";
11804
+
11805
+
11806
+ /** @type {import('./pow')} */
11807
+ module.exports = Math.pow;
11808
+
11809
+ /***/ }),
11810
+
11811
+ /***/ "./node_modules/math-intrinsics/round.js":
11812
+ /*!***********************************************!*\
11813
+ !*** ./node_modules/math-intrinsics/round.js ***!
11814
+ \***********************************************/
11815
+ /*! no static exports found */
11816
+ /***/ (function(module, exports, __webpack_require__) {
11817
+
11818
+ "use strict";
11819
+
11820
+
11821
+ /** @type {import('./round')} */
11822
+ module.exports = Math.round;
11823
+
11824
+ /***/ }),
11825
+
11826
+ /***/ "./node_modules/math-intrinsics/sign.js":
11827
+ /*!**********************************************!*\
11828
+ !*** ./node_modules/math-intrinsics/sign.js ***!
11829
+ \**********************************************/
11830
+ /*! no static exports found */
11831
+ /***/ (function(module, exports, __webpack_require__) {
11832
+
11833
+ "use strict";
11834
+
11835
+
11836
+ var $isNaN = __webpack_require__(/*! ./isNaN */ "./node_modules/math-intrinsics/isNaN.js");
11837
+
11838
+ /** @type {import('./sign')} */
11839
+ module.exports = function sign(number) {
11840
+ if ($isNaN(number) || number === 0) {
11841
+ return number;
11842
+ }
11843
+ return number < 0 ? -1 : +1;
11844
+ };
11845
+
11846
+ /***/ }),
11847
+
11848
+ /***/ "./node_modules/object-inspect/index.js":
11849
+ /*!**********************************************!*\
11850
+ !*** ./node_modules/object-inspect/index.js ***!
11851
+ \**********************************************/
11852
+ /*! no static exports found */
11853
+ /***/ (function(module, exports, __webpack_require__) {
11854
+
11855
+ /* WEBPACK VAR INJECTION */(function(global) {function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11856
+ var hasMap = typeof Map === 'function' && Map.prototype;
11857
+ var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
11858
+ var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
11859
+ var mapForEach = hasMap && Map.prototype.forEach;
11860
+ var hasSet = typeof Set === 'function' && Set.prototype;
11861
+ var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
11862
+ var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
11863
+ var setForEach = hasSet && Set.prototype.forEach;
11864
+ var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
11865
+ var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
11866
+ var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
11867
+ var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
11868
+ var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
11869
+ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
11870
+ var booleanValueOf = Boolean.prototype.valueOf;
11871
+ var objectToString = Object.prototype.toString;
11872
+ var functionToString = Function.prototype.toString;
11873
+ var $match = String.prototype.match;
11874
+ var $slice = String.prototype.slice;
11875
+ var $replace = String.prototype.replace;
11876
+ var $toUpperCase = String.prototype.toUpperCase;
11877
+ var $toLowerCase = String.prototype.toLowerCase;
11878
+ var $test = RegExp.prototype.test;
11879
+ var $concat = Array.prototype.concat;
11880
+ var $join = Array.prototype.join;
11881
+ var $arrSlice = Array.prototype.slice;
11882
+ var $floor = Math.floor;
11883
+ var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
11884
+ var gOPS = Object.getOwnPropertySymbols;
11885
+ var symToString = typeof Symbol === 'function' && _typeof(Symbol.iterator) === 'symbol' ? Symbol.prototype.toString : null;
11886
+ var hasShammedSymbols = typeof Symbol === 'function' && _typeof(Symbol.iterator) === 'object';
11887
+ // ie, `has-tostringtag/shams
11888
+ var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (_typeof(Symbol.toStringTag) === hasShammedSymbols ? 'object' : 'symbol') ? Symbol.toStringTag : null;
11889
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
11890
+ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype // eslint-disable-line no-proto
11891
+ ? function (O) {
11892
+ return O.__proto__; // eslint-disable-line no-proto
11893
+ } : null);
11894
+ function addNumericSeparator(num, str) {
11895
+ if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) {
11896
+ return str;
11897
+ }
11898
+ var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
11899
+ if (typeof num === 'number') {
11900
+ var _int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
11901
+ if (_int !== num) {
11902
+ var intStr = String(_int);
11903
+ var dec = $slice.call(str, intStr.length + 1);
11904
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
11905
+ }
11906
+ }
11907
+ return $replace.call(str, sepRegex, '$&_');
11908
+ }
11909
+ var utilInspect = __webpack_require__(/*! ./util.inspect */ 0);
11910
+ var inspectCustom = utilInspect.custom;
11911
+ var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
11912
+ var quotes = {
11913
+ __proto__: null,
11914
+ 'double': '"',
11915
+ single: "'"
11916
+ };
11917
+ var quoteREs = {
11918
+ __proto__: null,
11919
+ 'double': /(["\\])/g,
11920
+ single: /(['\\])/g
11921
+ };
11922
+ module.exports = function inspect_(obj, options, depth, seen) {
11923
+ var opts = options || {};
11924
+ if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
11925
+ throw new TypeError('option "quoteStyle" must be "single" or "double"');
11926
+ }
11927
+ if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
11928
+ throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
11929
+ }
11930
+ var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
11931
+ if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
11932
+ throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
11933
+ }
11934
+ if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
11935
+ throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
11936
+ }
11937
+ if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
11938
+ throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
11939
+ }
11940
+ var numericSeparator = opts.numericSeparator;
11941
+ if (typeof obj === 'undefined') {
11942
+ return 'undefined';
11943
+ }
11944
+ if (obj === null) {
11945
+ return 'null';
11946
+ }
11947
+ if (typeof obj === 'boolean') {
11948
+ return obj ? 'true' : 'false';
11949
+ }
11950
+ if (typeof obj === 'string') {
11951
+ return inspectString(obj, opts);
11952
+ }
11953
+ if (typeof obj === 'number') {
11954
+ if (obj === 0) {
11955
+ return Infinity / obj > 0 ? '0' : '-0';
11956
+ }
11957
+ var str = String(obj);
11958
+ return numericSeparator ? addNumericSeparator(obj, str) : str;
11959
+ }
11960
+ if (typeof obj === 'bigint') {
11961
+ var bigIntStr = String(obj) + 'n';
11962
+ return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
11963
+ }
11964
+ var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
11965
+ if (typeof depth === 'undefined') {
11966
+ depth = 0;
11967
+ }
11968
+ if (depth >= maxDepth && maxDepth > 0 && _typeof(obj) === 'object') {
11969
+ return isArray(obj) ? '[Array]' : '[Object]';
11970
+ }
11971
+ var indent = getIndent(opts, depth);
11972
+ if (typeof seen === 'undefined') {
11973
+ seen = [];
11974
+ } else if (indexOf(seen, obj) >= 0) {
11975
+ return '[Circular]';
11976
+ }
11977
+ function inspect(value, from, noIndent) {
11978
+ if (from) {
11979
+ seen = $arrSlice.call(seen);
11980
+ seen.push(from);
11981
+ }
11982
+ if (noIndent) {
11983
+ var newOpts = {
11984
+ depth: opts.depth
11985
+ };
11986
+ if (has(opts, 'quoteStyle')) {
11987
+ newOpts.quoteStyle = opts.quoteStyle;
11988
+ }
11989
+ return inspect_(value, newOpts, depth + 1, seen);
11990
+ }
11991
+ return inspect_(value, opts, depth + 1, seen);
11992
+ }
11993
+ if (typeof obj === 'function' && !isRegExp(obj)) {
11994
+ // in older engines, regexes are callable
11995
+ var name = nameOf(obj);
11996
+ var keys = arrObjKeys(obj, inspect);
11997
+ return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
11998
+ }
11999
+ if (isSymbol(obj)) {
12000
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
12001
+ return _typeof(obj) === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
12002
+ }
12003
+ if (isElement(obj)) {
12004
+ var s = '<' + $toLowerCase.call(String(obj.nodeName));
12005
+ var attrs = obj.attributes || [];
12006
+ for (var i = 0; i < attrs.length; i++) {
12007
+ s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
12008
+ }
12009
+ s += '>';
12010
+ if (obj.childNodes && obj.childNodes.length) {
12011
+ s += '...';
12012
+ }
12013
+ s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
12014
+ return s;
12015
+ }
12016
+ if (isArray(obj)) {
12017
+ if (obj.length === 0) {
12018
+ return '[]';
12019
+ }
12020
+ var xs = arrObjKeys(obj, inspect);
12021
+ if (indent && !singleLineValues(xs)) {
12022
+ return '[' + indentedJoin(xs, indent) + ']';
12023
+ }
12024
+ return '[ ' + $join.call(xs, ', ') + ' ]';
12025
+ }
12026
+ if (isError(obj)) {
12027
+ var parts = arrObjKeys(obj, inspect);
12028
+ if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
12029
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
12030
+ }
12031
+ if (parts.length === 0) {
12032
+ return '[' + String(obj) + ']';
12033
+ }
12034
+ return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
12035
+ }
12036
+ if (_typeof(obj) === 'object' && customInspect) {
12037
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
12038
+ return utilInspect(obj, {
12039
+ depth: maxDepth - depth
12040
+ });
12041
+ } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
12042
+ return obj.inspect();
12043
+ }
12044
+ }
12045
+ if (isMap(obj)) {
12046
+ var mapParts = [];
12047
+ if (mapForEach) {
12048
+ mapForEach.call(obj, function (value, key) {
12049
+ mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
12050
+ });
12051
+ }
12052
+ return collectionOf('Map', mapSize.call(obj), mapParts, indent);
12053
+ }
12054
+ if (isSet(obj)) {
12055
+ var setParts = [];
12056
+ if (setForEach) {
12057
+ setForEach.call(obj, function (value) {
12058
+ setParts.push(inspect(value, obj));
12059
+ });
12060
+ }
12061
+ return collectionOf('Set', setSize.call(obj), setParts, indent);
12062
+ }
12063
+ if (isWeakMap(obj)) {
12064
+ return weakCollectionOf('WeakMap');
12065
+ }
12066
+ if (isWeakSet(obj)) {
12067
+ return weakCollectionOf('WeakSet');
12068
+ }
12069
+ if (isWeakRef(obj)) {
12070
+ return weakCollectionOf('WeakRef');
12071
+ }
12072
+ if (isNumber(obj)) {
12073
+ return markBoxed(inspect(Number(obj)));
12074
+ }
12075
+ if (isBigInt(obj)) {
12076
+ return markBoxed(inspect(bigIntValueOf.call(obj)));
12077
+ }
12078
+ if (isBoolean(obj)) {
12079
+ return markBoxed(booleanValueOf.call(obj));
12080
+ }
12081
+ if (isString(obj)) {
12082
+ return markBoxed(inspect(String(obj)));
12083
+ }
12084
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
12085
+ /* eslint-env browser */
12086
+ if (typeof window !== 'undefined' && obj === window) {
12087
+ return '{ [object Window] }';
12088
+ }
12089
+ if (typeof globalThis !== 'undefined' && obj === globalThis || typeof global !== 'undefined' && obj === global) {
12090
+ return '{ [object globalThis] }';
12091
+ }
12092
+ if (!isDate(obj) && !isRegExp(obj)) {
12093
+ var ys = arrObjKeys(obj, inspect);
12094
+ var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
12095
+ var protoTag = obj instanceof Object ? '' : 'null prototype';
12096
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
12097
+ var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
12098
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
12099
+ if (ys.length === 0) {
12100
+ return tag + '{}';
12101
+ }
12102
+ if (indent) {
12103
+ return tag + '{' + indentedJoin(ys, indent) + '}';
12104
+ }
12105
+ return tag + '{ ' + $join.call(ys, ', ') + ' }';
12106
+ }
12107
+ return String(obj);
12108
+ };
12109
+ function wrapQuotes(s, defaultStyle, opts) {
12110
+ var style = opts.quoteStyle || defaultStyle;
12111
+ var quoteChar = quotes[style];
12112
+ return quoteChar + s + quoteChar;
12113
+ }
12114
+ function quote(s) {
12115
+ return $replace.call(String(s), /"/g, '&quot;');
12116
+ }
12117
+ function canTrustToString(obj) {
12118
+ return !toStringTag || !(_typeof(obj) === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
12119
+ }
12120
+ function isArray(obj) {
12121
+ return toStr(obj) === '[object Array]' && canTrustToString(obj);
12122
+ }
12123
+ function isDate(obj) {
12124
+ return toStr(obj) === '[object Date]' && canTrustToString(obj);
12125
+ }
12126
+ function isRegExp(obj) {
12127
+ return toStr(obj) === '[object RegExp]' && canTrustToString(obj);
12128
+ }
12129
+ function isError(obj) {
12130
+ return toStr(obj) === '[object Error]' && canTrustToString(obj);
12131
+ }
12132
+ function isString(obj) {
12133
+ return toStr(obj) === '[object String]' && canTrustToString(obj);
12134
+ }
12135
+ function isNumber(obj) {
12136
+ return toStr(obj) === '[object Number]' && canTrustToString(obj);
12137
+ }
12138
+ function isBoolean(obj) {
12139
+ return toStr(obj) === '[object Boolean]' && canTrustToString(obj);
12140
+ }
12141
+
12142
+ // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
12143
+ function isSymbol(obj) {
12144
+ if (hasShammedSymbols) {
12145
+ return obj && _typeof(obj) === 'object' && obj instanceof Symbol;
12146
+ }
12147
+ if (_typeof(obj) === 'symbol') {
12148
+ return true;
12149
+ }
12150
+ if (!obj || _typeof(obj) !== 'object' || !symToString) {
12151
+ return false;
12152
+ }
12153
+ try {
12154
+ symToString.call(obj);
12155
+ return true;
12156
+ } catch (e) {}
12157
+ return false;
12158
+ }
12159
+ function isBigInt(obj) {
12160
+ if (!obj || _typeof(obj) !== 'object' || !bigIntValueOf) {
12161
+ return false;
12162
+ }
12163
+ try {
12164
+ bigIntValueOf.call(obj);
12165
+ return true;
12166
+ } catch (e) {}
12167
+ return false;
12168
+ }
12169
+ var hasOwn = Object.prototype.hasOwnProperty || function (key) {
12170
+ return key in this;
12171
+ };
12172
+ function has(obj, key) {
12173
+ return hasOwn.call(obj, key);
12174
+ }
12175
+ function toStr(obj) {
12176
+ return objectToString.call(obj);
12177
+ }
12178
+ function nameOf(f) {
12179
+ if (f.name) {
12180
+ return f.name;
12181
+ }
12182
+ var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
12183
+ if (m) {
12184
+ return m[1];
12185
+ }
12186
+ return null;
12187
+ }
12188
+ function indexOf(xs, x) {
12189
+ if (xs.indexOf) {
12190
+ return xs.indexOf(x);
12191
+ }
12192
+ for (var i = 0, l = xs.length; i < l; i++) {
12193
+ if (xs[i] === x) {
12194
+ return i;
12195
+ }
12196
+ }
12197
+ return -1;
12198
+ }
12199
+ function isMap(x) {
12200
+ if (!mapSize || !x || _typeof(x) !== 'object') {
12201
+ return false;
12202
+ }
12203
+ try {
12204
+ mapSize.call(x);
12205
+ try {
12206
+ setSize.call(x);
12207
+ } catch (s) {
12208
+ return true;
12209
+ }
12210
+ return x instanceof Map; // core-js workaround, pre-v2.5.0
12211
+ } catch (e) {}
12212
+ return false;
12213
+ }
12214
+ function isWeakMap(x) {
12215
+ if (!weakMapHas || !x || _typeof(x) !== 'object') {
12216
+ return false;
12217
+ }
12218
+ try {
12219
+ weakMapHas.call(x, weakMapHas);
12220
+ try {
12221
+ weakSetHas.call(x, weakSetHas);
12222
+ } catch (s) {
12223
+ return true;
12224
+ }
12225
+ return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
12226
+ } catch (e) {}
12227
+ return false;
12228
+ }
12229
+ function isWeakRef(x) {
12230
+ if (!weakRefDeref || !x || _typeof(x) !== 'object') {
12231
+ return false;
12232
+ }
12233
+ try {
12234
+ weakRefDeref.call(x);
12235
+ return true;
12236
+ } catch (e) {}
12237
+ return false;
12238
+ }
12239
+ function isSet(x) {
12240
+ if (!setSize || !x || _typeof(x) !== 'object') {
12241
+ return false;
12242
+ }
12243
+ try {
12244
+ setSize.call(x);
12245
+ try {
12246
+ mapSize.call(x);
12247
+ } catch (m) {
12248
+ return true;
12249
+ }
12250
+ return x instanceof Set; // core-js workaround, pre-v2.5.0
12251
+ } catch (e) {}
12252
+ return false;
12253
+ }
12254
+ function isWeakSet(x) {
12255
+ if (!weakSetHas || !x || _typeof(x) !== 'object') {
12256
+ return false;
12257
+ }
12258
+ try {
12259
+ weakSetHas.call(x, weakSetHas);
12260
+ try {
12261
+ weakMapHas.call(x, weakMapHas);
12262
+ } catch (s) {
12263
+ return true;
12264
+ }
12265
+ return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
12266
+ } catch (e) {}
12267
+ return false;
12268
+ }
12269
+ function isElement(x) {
12270
+ if (!x || _typeof(x) !== 'object') {
12271
+ return false;
12272
+ }
12273
+ if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
12274
+ return true;
12275
+ }
12276
+ return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
12277
+ }
12278
+ function inspectString(str, opts) {
12279
+ if (str.length > opts.maxStringLength) {
12280
+ var remaining = str.length - opts.maxStringLength;
12281
+ var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
12282
+ return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
12283
+ }
12284
+ var quoteRE = quoteREs[opts.quoteStyle || 'single'];
12285
+ quoteRE.lastIndex = 0;
12286
+ // eslint-disable-next-line no-control-regex
12287
+ var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
12288
+ return wrapQuotes(s, 'single', opts);
12289
+ }
12290
+ function lowbyte(c) {
12291
+ var n = c.charCodeAt(0);
12292
+ var x = {
12293
+ 8: 'b',
12294
+ 9: 't',
12295
+ 10: 'n',
12296
+ 12: 'f',
12297
+ 13: 'r'
12298
+ }[n];
12299
+ if (x) {
12300
+ return '\\' + x;
12301
+ }
12302
+ return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
12303
+ }
12304
+ function markBoxed(str) {
12305
+ return 'Object(' + str + ')';
12306
+ }
12307
+ function weakCollectionOf(type) {
12308
+ return type + ' { ? }';
12309
+ }
12310
+ function collectionOf(type, size, entries, indent) {
12311
+ var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
12312
+ return type + ' (' + size + ') {' + joinedEntries + '}';
12313
+ }
12314
+ function singleLineValues(xs) {
12315
+ for (var i = 0; i < xs.length; i++) {
12316
+ if (indexOf(xs[i], '\n') >= 0) {
12317
+ return false;
12318
+ }
12319
+ }
12320
+ return true;
12321
+ }
12322
+ function getIndent(opts, depth) {
12323
+ var baseIndent;
12324
+ if (opts.indent === '\t') {
12325
+ baseIndent = '\t';
12326
+ } else if (typeof opts.indent === 'number' && opts.indent > 0) {
12327
+ baseIndent = $join.call(Array(opts.indent + 1), ' ');
12328
+ } else {
12329
+ return null;
12330
+ }
12331
+ return {
12332
+ base: baseIndent,
12333
+ prev: $join.call(Array(depth + 1), baseIndent)
12334
+ };
12335
+ }
12336
+ function indentedJoin(xs, indent) {
12337
+ if (xs.length === 0) {
12338
+ return '';
12339
+ }
12340
+ var lineJoiner = '\n' + indent.prev + indent.base;
12341
+ return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
12342
+ }
12343
+ function arrObjKeys(obj, inspect) {
12344
+ var isArr = isArray(obj);
12345
+ var xs = [];
12346
+ if (isArr) {
12347
+ xs.length = obj.length;
12348
+ for (var i = 0; i < obj.length; i++) {
12349
+ xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
12350
+ }
12351
+ }
12352
+ var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
12353
+ var symMap;
12354
+ if (hasShammedSymbols) {
12355
+ symMap = {};
12356
+ for (var k = 0; k < syms.length; k++) {
12357
+ symMap['$' + syms[k]] = syms[k];
12358
+ }
12359
+ }
12360
+ for (var key in obj) {
12361
+ // eslint-disable-line no-restricted-syntax
12362
+ if (!has(obj, key)) {
12363
+ continue;
12364
+ } // eslint-disable-line no-restricted-syntax, no-continue
12365
+ if (isArr && String(Number(key)) === key && key < obj.length) {
12366
+ continue;
12367
+ } // eslint-disable-line no-restricted-syntax, no-continue
12368
+ if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
12369
+ // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
12370
+ continue; // eslint-disable-line no-restricted-syntax, no-continue
12371
+ } else if ($test.call(/[^\w$]/, key)) {
12372
+ xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
12373
+ } else {
12374
+ xs.push(key + ': ' + inspect(obj[key], obj));
12375
+ }
12376
+ }
12377
+ if (typeof gOPS === 'function') {
12378
+ for (var j = 0; j < syms.length; j++) {
12379
+ if (isEnumerable.call(obj, syms[j])) {
12380
+ xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
12381
+ }
12382
+ }
12383
+ }
12384
+ return xs;
12385
+ }
12386
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
12387
+
12388
+ /***/ }),
12389
+
12390
+ /***/ "./node_modules/object-keys/implementation.js":
12391
+ /*!****************************************************!*\
12392
+ !*** ./node_modules/object-keys/implementation.js ***!
12393
+ \****************************************************/
12394
+ /*! no static exports found */
12395
+ /***/ (function(module, exports, __webpack_require__) {
12396
+
12397
+ "use strict";
12398
+
12399
+
12400
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
12401
+ var keysShim;
12402
+ if (!Object.keys) {
12403
+ // modified from https://github.com/es-shims/es5-shim
12404
+ var has = Object.prototype.hasOwnProperty;
12405
+ var toStr = Object.prototype.toString;
12406
+ var isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/object-keys/isArguments.js"); // eslint-disable-line global-require
12407
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
12408
+ var hasDontEnumBug = !isEnumerable.call({
12409
+ toString: null
12410
+ }, 'toString');
12411
+ var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');
12412
+ var dontEnums = ['toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor'];
12413
+ var equalsConstructorPrototype = function equalsConstructorPrototype(o) {
12414
+ var ctor = o.constructor;
12415
+ return ctor && ctor.prototype === o;
12416
+ };
12417
+ var excludedKeys = {
12418
+ $applicationCache: true,
12419
+ $console: true,
12420
+ $external: true,
12421
+ $frame: true,
12422
+ $frameElement: true,
12423
+ $frames: true,
12424
+ $innerHeight: true,
12425
+ $innerWidth: true,
12426
+ $onmozfullscreenchange: true,
12427
+ $onmozfullscreenerror: true,
12428
+ $outerHeight: true,
12429
+ $outerWidth: true,
12430
+ $pageXOffset: true,
12431
+ $pageYOffset: true,
12432
+ $parent: true,
12433
+ $scrollLeft: true,
12434
+ $scrollTop: true,
12435
+ $scrollX: true,
12436
+ $scrollY: true,
12437
+ $self: true,
12438
+ $webkitIndexedDB: true,
12439
+ $webkitStorageInfo: true,
12440
+ $window: true
12441
+ };
12442
+ var hasAutomationEqualityBug = function () {
12443
+ /* global window */
12444
+ if (typeof window === 'undefined') {
12445
+ return false;
12446
+ }
12447
+ for (var k in window) {
12448
+ try {
12449
+ if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && _typeof(window[k]) === 'object') {
12450
+ try {
12451
+ equalsConstructorPrototype(window[k]);
12452
+ } catch (e) {
12453
+ return true;
12454
+ }
12455
+ }
12456
+ } catch (e) {
12457
+ return true;
12458
+ }
12459
+ }
12460
+ return false;
12461
+ }();
12462
+ var equalsConstructorPrototypeIfNotBuggy = function equalsConstructorPrototypeIfNotBuggy(o) {
12463
+ /* global window */
12464
+ if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
12465
+ return equalsConstructorPrototype(o);
12466
+ }
12467
+ try {
12468
+ return equalsConstructorPrototype(o);
12469
+ } catch (e) {
12470
+ return false;
12471
+ }
12472
+ };
12473
+ keysShim = function keys(object) {
12474
+ var isObject = object !== null && _typeof(object) === 'object';
12475
+ var isFunction = toStr.call(object) === '[object Function]';
12476
+ var isArguments = isArgs(object);
12477
+ var isString = isObject && toStr.call(object) === '[object String]';
12478
+ var theKeys = [];
12479
+ if (!isObject && !isFunction && !isArguments) {
12480
+ throw new TypeError('Object.keys called on a non-object');
12481
+ }
12482
+ var skipProto = hasProtoEnumBug && isFunction;
12483
+ if (isString && object.length > 0 && !has.call(object, 0)) {
12484
+ for (var i = 0; i < object.length; ++i) {
12485
+ theKeys.push(String(i));
12486
+ }
12487
+ }
12488
+ if (isArguments && object.length > 0) {
12489
+ for (var j = 0; j < object.length; ++j) {
12490
+ theKeys.push(String(j));
12491
+ }
12492
+ } else {
12493
+ for (var name in object) {
12494
+ if (!(skipProto && name === 'prototype') && has.call(object, name)) {
12495
+ theKeys.push(String(name));
12496
+ }
12497
+ }
12498
+ }
12499
+ if (hasDontEnumBug) {
12500
+ var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
12501
+ for (var k = 0; k < dontEnums.length; ++k) {
12502
+ if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
12503
+ theKeys.push(dontEnums[k]);
12504
+ }
12505
+ }
12506
+ }
12507
+ return theKeys;
12508
+ };
12509
+ }
12510
+ module.exports = keysShim;
12511
+
12512
+ /***/ }),
12513
+
12514
+ /***/ "./node_modules/object-keys/index.js":
12515
+ /*!*******************************************!*\
12516
+ !*** ./node_modules/object-keys/index.js ***!
12517
+ \*******************************************/
12518
+ /*! no static exports found */
12519
+ /***/ (function(module, exports, __webpack_require__) {
12520
+
12521
+ "use strict";
12522
+
12523
+
12524
+ var slice = Array.prototype.slice;
12525
+ var isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/object-keys/isArguments.js");
12526
+ var origKeys = Object.keys;
12527
+ var keysShim = origKeys ? function keys(o) {
12528
+ return origKeys(o);
12529
+ } : __webpack_require__(/*! ./implementation */ "./node_modules/object-keys/implementation.js");
12530
+ var originalKeys = Object.keys;
12531
+ keysShim.shim = function shimObjectKeys() {
12532
+ if (Object.keys) {
12533
+ var keysWorksWithArguments = function () {
12534
+ // Safari 5.0 bug
12535
+ var args = Object.keys(arguments);
12536
+ return args && args.length === arguments.length;
12537
+ }(1, 2);
12538
+ if (!keysWorksWithArguments) {
12539
+ Object.keys = function keys(object) {
12540
+ // eslint-disable-line func-name-matching
12541
+ if (isArgs(object)) {
12542
+ return originalKeys(slice.call(object));
12543
+ }
12544
+ return originalKeys(object);
12545
+ };
12546
+ }
12547
+ } else {
12548
+ Object.keys = keysShim;
12549
+ }
12550
+ return Object.keys || keysShim;
12551
+ };
12552
+ module.exports = keysShim;
12553
+
12554
+ /***/ }),
12555
+
12556
+ /***/ "./node_modules/object-keys/isArguments.js":
12557
+ /*!*************************************************!*\
12558
+ !*** ./node_modules/object-keys/isArguments.js ***!
12559
+ \*************************************************/
12560
+ /*! no static exports found */
12561
+ /***/ (function(module, exports, __webpack_require__) {
12562
+
12563
+ "use strict";
12564
+
12565
+
12566
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
12567
+ var toStr = Object.prototype.toString;
12568
+ module.exports = function isArguments(value) {
12569
+ var str = toStr.call(value);
12570
+ var isArgs = str === '[object Arguments]';
12571
+ if (!isArgs) {
12572
+ isArgs = str !== '[object Array]' && value !== null && _typeof(value) === 'object' && typeof value.length === 'number' && value.length >= 0 && toStr.call(value.callee) === '[object Function]';
12573
+ }
12574
+ return isArgs;
12575
+ };
12576
+
12577
+ /***/ }),
12578
+
12579
+ /***/ "./node_modules/object.hasown/auto.js":
12580
+ /*!********************************************!*\
12581
+ !*** ./node_modules/object.hasown/auto.js ***!
12582
+ \********************************************/
12583
+ /*! no static exports found */
12584
+ /***/ (function(module, exports, __webpack_require__) {
12585
+
12586
+ "use strict";
12587
+
12588
+
12589
+ __webpack_require__(/*! ./shim */ "./node_modules/object.hasown/shim.js")();
12590
+
12591
+ /***/ }),
12592
+
12593
+ /***/ "./node_modules/object.hasown/implementation.js":
12594
+ /*!******************************************************!*\
12595
+ !*** ./node_modules/object.hasown/implementation.js ***!
12596
+ \******************************************************/
12597
+ /*! no static exports found */
12598
+ /***/ (function(module, exports, __webpack_require__) {
12599
+
12600
+ "use strict";
12601
+
12602
+
12603
+ var ToObject = __webpack_require__(/*! es-object-atoms/ToObject */ "./node_modules/es-object-atoms/ToObject.js");
12604
+ var ToPropertyKey = __webpack_require__(/*! es-abstract/2024/ToPropertyKey */ "./node_modules/es-abstract/2024/ToPropertyKey.js");
12605
+ var HasOwnProperty = __webpack_require__(/*! es-abstract/2024/HasOwnProperty */ "./node_modules/es-abstract/2024/HasOwnProperty.js");
12606
+ module.exports = function hasOwn(O, P) {
12607
+ var obj = ToObject(O);
12608
+ var key = ToPropertyKey(P);
12609
+ return HasOwnProperty(obj, key);
12610
+ };
12611
+
12612
+ /***/ }),
12613
+
12614
+ /***/ "./node_modules/object.hasown/polyfill.js":
12615
+ /*!************************************************!*\
12616
+ !*** ./node_modules/object.hasown/polyfill.js ***!
12617
+ \************************************************/
12618
+ /*! no static exports found */
12619
+ /***/ (function(module, exports, __webpack_require__) {
12620
+
12621
+ "use strict";
12622
+
12623
+
12624
+ var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/object.hasown/implementation.js");
12625
+ module.exports = function getPolyfill() {
12626
+ return Object.hasOwn || implementation;
12627
+ };
12628
+
12629
+ /***/ }),
12630
+
12631
+ /***/ "./node_modules/object.hasown/shim.js":
12632
+ /*!********************************************!*\
12633
+ !*** ./node_modules/object.hasown/shim.js ***!
12634
+ \********************************************/
12635
+ /*! no static exports found */
12636
+ /***/ (function(module, exports, __webpack_require__) {
12637
+
12638
+ "use strict";
12639
+
12640
+
12641
+ var getPolyfill = __webpack_require__(/*! ./polyfill */ "./node_modules/object.hasown/polyfill.js");
12642
+ var define = __webpack_require__(/*! define-properties */ "./node_modules/define-properties/index.js");
12643
+ module.exports = function shimObjectHasOwn() {
12644
+ var polyfill = getPolyfill();
12645
+ define(Object, {
12646
+ hasOwn: polyfill
12647
+ }, {
12648
+ hasOwn: function hasOwn() {
12649
+ return Object.hasOwn !== polyfill;
12650
+ }
12651
+ });
12652
+ return polyfill;
12653
+ };
12654
+
12655
+ /***/ }),
12656
+
12657
+ /***/ "./node_modules/safe-regex-test/index.js":
12658
+ /*!***********************************************!*\
12659
+ !*** ./node_modules/safe-regex-test/index.js ***!
12660
+ \***********************************************/
12661
+ /*! no static exports found */
12662
+ /***/ (function(module, exports, __webpack_require__) {
12663
+
12664
+ "use strict";
12665
+
12666
+
12667
+ var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
12668
+ var isRegex = __webpack_require__(/*! is-regex */ "./node_modules/is-regex/index.js");
12669
+ var $exec = callBound('RegExp.prototype.exec');
12670
+ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
12671
+
12672
+ /** @type {import('.')} */
12673
+ module.exports = function regexTester(regex) {
12674
+ if (!isRegex(regex)) {
12675
+ throw new $TypeError('`regex` must be a RegExp');
12676
+ }
12677
+ return function test(s) {
12678
+ return $exec(regex, s) !== null;
12679
+ };
12680
+ };
12681
+
12682
+ /***/ }),
12683
+
12684
+ /***/ "./node_modules/webpack/buildin/global.js":
12685
+ /*!***********************************!*\
12686
+ !*** (webpack)/buildin/global.js ***!
12687
+ \***********************************/
12688
+ /*! no static exports found */
12689
+ /***/ (function(module, exports) {
12690
+
12691
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
12692
+ var g;
12693
+
12694
+ // This works in non-strict mode
12695
+ g = function () {
12696
+ return this;
12697
+ }();
12698
+ try {
12699
+ // This works if eval is allowed (see CSP)
12700
+ g = g || new Function("return this")();
12701
+ } catch (e) {
12702
+ // This works if the window reference is available
12703
+ if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
12704
+ }
12705
+
12706
+ // g can still be undefined, but nothing to do about it...
12707
+ // We return undefined, instead of nothing here, so it's
12708
+ // easier to handle this case. if(!global) { ...}
12709
+
12710
+ module.exports = g;
12711
+
12712
+ /***/ }),
12713
+
12714
+ /***/ "./src/darkmode.js":
12715
+ /*!*************************!*\
12716
+ !*** ./src/darkmode.js ***!
12717
+ \*************************/
12718
+ /*! exports provided: run, init, convertBg, updateStyle, getContrast, extend */
12719
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
12720
+
12721
+ "use strict";
12722
+ __webpack_require__.r(__webpack_exports__);
12723
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "run", function() { return run; });
12724
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "init", function() { return init; });
12725
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertBg", function() { return convertBg; });
12726
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateStyle", function() { return updateStyle; });
12727
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContrast", function() { return getContrast; });
12728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
12729
+ /* harmony import */ var _modules_constant__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./modules/constant */ "./src/modules/constant.js");
12730
+ /* harmony import */ var _modules_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/config */ "./src/modules/config.js");
12731
+ /* harmony import */ var _modules_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules/global */ "./src/modules/global.js");
12732
+ /* harmony import */ var _modules_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/domUtils */ "./src/modules/domUtils.js");
12733
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12734
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12735
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12736
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12737
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12738
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12739
+ /**
12740
+ * @name Darkmode主入口
12741
+ *
12742
+ * @function run 初始化Dark Mode配置并运行Dark Mode处理
12743
+ * @param {DOM Object Array} nodes 要处理的节点列表
12744
+ * @param {Object} opt Dark Mode配置,详见init配置说明
12745
+ * @return void
12746
+ *
12747
+ * @function init 初始化Dark Mode配置
12748
+ * @param {Function} opt.begin 开始处理时触发的回调
12749
+ * @param {Function} opt.showFirstPage 首屏处理完成时触发的回调
12750
+ * @param {Function} opt.error 发生error时触发的回调
12751
+ * @param {string} opt.mode 强制指定的颜色模式(dark|light), 指定了就不监听系统颜色
12752
+ * @param {Object} opt.whitelist 节点白名单
12753
+ * @param {Array} opt.whitelist.tagName 标签名列表
12754
+ * @param {Array} opt.whitelist.attribute 属性列表
12755
+ * @param {boolean} opt.needJudgeFirstPage 是否需要判断首屏
12756
+ * @param {boolean} opt.delayBgJudge 是否延迟背景判断
12757
+ * @param {DOM Object} opt.container 延迟运行js时使用的容器
12758
+ * @param {string} opt.cssSelectorsPrefix css选择器前缀
12759
+ * @param {string} opt.defaultLightTextColor 非Dark Mode下字体颜色
12760
+ * @param {string} opt.defaultLightBgColor 非Dark Mode下背景颜色
12761
+ * @param {string} opt.defaultDarkTextColor Dark Mode下字体颜色
12762
+ * @param {string} opt.defaultDarkBgColor Dark Mode下背景颜色
12763
+ * @return void
12764
+ *
12765
+ * @function convertBg 处理背景
12766
+ * @param {DOM Object Array} nodes 要处理的节点列表
12767
+ * @return void
12768
+ *
12769
+ * @function updateStyle 更新节点Dark Mode样式
12770
+ * @param {DOM Object} node 要更新的节点
12771
+ * @param {Object} styles 更新的样式键值对对象,如:{ color: '#ddd' }
12772
+ * @return void
12773
+ *
12774
+ * @function getContrast 获取两个颜色的对比度
12775
+ * @param {string} color1 要计算颜色对比度的颜色1,支持css颜色格式
12776
+ * @param {string} color2 要计算颜色对比度的颜色2,支持css颜色格式
12777
+ * @return {number} 颜色对比度,取值范围为`[1, 21]`
12778
+ *
12779
+ * @function extend 挂载插件
12780
+ * @param {Array} pluginList 插件列表
12781
+ * @return void
12782
+ *
12783
+ */
12784
+
12785
+ // 常量
12786
+
12787
+ var classReg = new RegExp("".concat(_modules_constant__WEBPACK_IMPORTED_MODULE_0__["CLASS_PREFIX"], "[^ ]+"), 'g');
12788
+
12789
+ // Darkmode配置
9819
12790
 
9820
12791
 
9821
12792
 
9822
- // Dark Mode切换
9823
- var mql = null;
9824
- var switchToDarkmode = function switchToDarkmode(mqlObj) {
9825
- var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
9826
- type: 'dom'
9827
- };
9828
- opt.force && (_modules_global__WEBPACK_IMPORTED_MODULE_2__["cssUtils"].isFinish = false); // 如果是强制运行Dark Mode处理逻辑,则重置为未运行
12793
+
12794
+ // Dark Mode切换
12795
+ var mql = null;
12796
+ var switchToDarkmode = function switchToDarkmode(mqlObj) {
12797
+ var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
12798
+ type: 'dom'
12799
+ };
12800
+ opt.force && (_modules_global__WEBPACK_IMPORTED_MODULE_2__["cssUtils"].isFinish = false); // 如果是强制运行Dark Mode处理逻辑,则重置为未运行
9829
12801
 
9830
12802
  if (_modules_global__WEBPACK_IMPORTED_MODULE_2__["cssUtils"].isFinish) return; // 已运行过Dark Mode处理逻辑则不再运行
9831
12803
 
@@ -10160,11 +13132,13 @@ __webpack_require__.r(__webpack_exports__);
10160
13132
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixColors", function() { return mixColors; });
10161
13133
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getColorPerceivedBrightness", function() { return getColorPerceivedBrightness; });
10162
13134
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustBrightnessTo", function() { return adjustBrightnessTo; });
10163
- /* harmony import */ var color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! color */ "./node_modules/color/index.js");
10164
- /* harmony import */ var color_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! color-name */ "./node_modules/color-name/index.js");
10165
- /* harmony import */ var color_blend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! color-blend */ "./node_modules/color-blend/dist/index.modern.js");
10166
- /* harmony import */ var colorjs_io__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! colorjs.io */ "./node_modules/colorjs.io/dist/color.js");
10167
- /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./src/modules/constant.js");
13135
+ /* harmony import */ var object_hasown_auto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object.hasown/auto */ "./node_modules/object.hasown/auto.js");
13136
+ /* harmony import */ var object_hasown_auto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(object_hasown_auto__WEBPACK_IMPORTED_MODULE_0__);
13137
+ /* harmony import */ var color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! color */ "./node_modules/color/index.js");
13138
+ /* harmony import */ var color_name__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! color-name */ "./node_modules/color-name/index.js");
13139
+ /* harmony import */ var color_blend__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! color-blend */ "./node_modules/color-blend/dist/index.modern.js");
13140
+ /* harmony import */ var colorjs_io__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! colorjs.io */ "./node_modules/colorjs.io/dist/color.js");
13141
+ /* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant */ "./src/modules/constant.js");
10168
13142
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10169
13143
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10170
13144
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10205,9 +13179,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
10205
13179
 
10206
13180
 
10207
13181
 
13182
+
10208
13183
  // 常量
10209
13184
 
10210
- var COLOR_NAME = _objectSpread(_objectSpread({}, color_name__WEBPACK_IMPORTED_MODULE_1__["default"]), {}, {
13185
+ var COLOR_NAME = _objectSpread(_objectSpread({}, color_name__WEBPACK_IMPORTED_MODULE_2__["default"]), {}, {
10211
13186
  windowtext: [0, 0, 0],
10212
13187
  // 补上这个colorName
10213
13188
  transparent: [255, 255, 255, 0] // 支持透明,暂定用白色透明度0来表示
@@ -10236,10 +13211,10 @@ var colorBlend2Color = function colorBlend2Color(colorBlend) {
10236
13211
  var ColorParser = function ColorParser(color) {
10237
13212
  var res = null;
10238
13213
  try {
10239
- res = color instanceof color__WEBPACK_IMPORTED_MODULE_0__["default"] ? color : Object(color__WEBPACK_IMPORTED_MODULE_0__["default"])(color);
13214
+ res = color instanceof color__WEBPACK_IMPORTED_MODULE_1__["default"] ? color : Object(color__WEBPACK_IMPORTED_MODULE_1__["default"])(color);
10240
13215
  } catch (e) {
10241
13216
  try {
10242
- res = ColorParser(new colorjs_io__WEBPACK_IMPORTED_MODULE_3__["default"](color).to('srgb').toString()); // 对于lch、oklch、lab、oklab、color等色值尝试使用colorjs.io来解析,然后再转成Color对象
13217
+ res = ColorParser(new colorjs_io__WEBPACK_IMPORTED_MODULE_4__["default"](color).to('srgb').toString()); // 对于lch、oklch、lab、oklab、color等色值尝试使用colorjs.io来解析,然后再转成Color对象
10243
13218
  } catch (e) {
10244
13219
  console.log("ignore the invalid color: `".concat(color, "`"));
10245
13220
  }
@@ -10249,7 +13224,7 @@ var ColorParser = function ColorParser(color) {
10249
13224
 
10250
13225
  // 处理颜色,包括清除!important和转换英文定义颜色
10251
13226
  var parseColorName = function parseColorName(color, supportTransparent) {
10252
- return color.replace(_constant__WEBPACK_IMPORTED_MODULE_4__["IMPORTANT_REGEXP"], '').replace(COLOR_NAME_REG, function (match) {
13227
+ return color.replace(_constant__WEBPACK_IMPORTED_MODULE_5__["IMPORTANT_REGEXP"], '').replace(COLOR_NAME_REG, function (match) {
10253
13228
  if (!supportTransparent && match === 'transparent') return match; // 如果不支持转换transparent,直接返回transparent
10254
13229
 
10255
13230
  var color = COLOR_NAME[match.toLowerCase()];
@@ -10260,7 +13235,7 @@ var parseColorName = function parseColorName(color, supportTransparent) {
10260
13235
  // 处理-webkit-fill-color和-webkit-text-stroke-color,返回处理后的色值,无则返回空字符串
10261
13236
  var parseWebkitFillColorAndStrokeColor = function parseWebkitFillColorAndStrokeColor(color) {
10262
13237
  var newValue = parseColorName(color);
10263
- return _constant__WEBPACK_IMPORTED_MODULE_4__["COLOR_REGEXP"].test(newValue) ? newValue : '';
13238
+ return _constant__WEBPACK_IMPORTED_MODULE_5__["COLOR_REGEXP"].test(newValue) ? newValue : '';
10264
13239
  };
10265
13240
 
10266
13241
  // 计算混合颜色
@@ -10280,7 +13255,7 @@ var mixColors = function mixColors(colors) {
10280
13255
  color1 = ColorParser(colors.shift());
10281
13256
  } else if (color1 && color2) {
10282
13257
  // 如果两个色值都合法,执行mix
10283
- color1 = type === 'mix' ? color1.mix(color2, color2.alpha()) : colorBlend2Color(color_blend__WEBPACK_IMPORTED_MODULE_2__[type](color2ColorBlend(color1), color2ColorBlend(color2)));
13258
+ color1 = type === 'mix' ? color1.mix(color2, color2.alpha()) : colorBlend2Color(color_blend__WEBPACK_IMPORTED_MODULE_3__[type](color2ColorBlend(color1), color2ColorBlend(color2)));
10284
13259
  } // 如果当前色值合法,混入色值非法,无需处理
10285
13260
 
10286
13261
  if (colors.length === 0) break;
@@ -10307,7 +13282,7 @@ var adjustBrightnessTo = function adjustBrightnessTo(target, rgb) {
10307
13282
  } else if (newTextB === 0 || newTextG === 255) {
10308
13283
  newTextB = (target * 1000 - newTextR * 299 - newTextG * 587) / 114;
10309
13284
  }
10310
- return color__WEBPACK_IMPORTED_MODULE_0__["default"].rgb(newTextR, newTextG, newTextB);
13285
+ return color__WEBPACK_IMPORTED_MODULE_1__["default"].rgb(newTextR, newTextG, newTextB);
10311
13286
  };
10312
13287
 
10313
13288
  /***/ }),
@@ -11967,6 +14942,17 @@ var TextNodeQueue = /*#__PURE__*/function () {
11967
14942
 
11968
14943
  ;
11969
14944
 
14945
+ /***/ }),
14946
+
14947
+ /***/ 0:
14948
+ /*!********************************!*\
14949
+ !*** ./util.inspect (ignored) ***!
14950
+ \********************************/
14951
+ /*! no static exports found */
14952
+ /***/ (function(module, exports) {
14953
+
14954
+ /* (ignored) */
14955
+
11970
14956
  /***/ })
11971
14957
 
11972
14958
  /******/ });