@nutui/nutui-react-taro 1.3.11 → 1.3.12-beta.1

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.
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v1.3.11 Wed Nov 16 2022 13:53:31 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v1.3.12-beta.1 Fri Nov 18 2022 20:36:03 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- (function(global2, factory) {
7
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.ReactDOM));
6
+ (function(global, factory) {
7
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "react-dom"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory((global.nutui = global.nutui || {}, global.nutui.react = {}), global.React, global.Taro, global.ReactDOM));
8
8
  })(this, function(exports2, React, Taro, ReactDOM) {
9
9
  "use strict";
10
10
  function _interopDefaultLegacy(e2) {
@@ -13,37 +13,37 @@
13
13
  function _interopNamespace(e2) {
14
14
  if (e2 && e2.__esModule)
15
15
  return e2;
16
- var n2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
16
+ var n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
17
17
  if (e2) {
18
- Object.keys(e2).forEach(function(k2) {
19
- if (k2 !== "default") {
20
- var d2 = Object.getOwnPropertyDescriptor(e2, k2);
21
- Object.defineProperty(n2, k2, d2.get ? d2 : {
18
+ Object.keys(e2).forEach(function(k) {
19
+ if (k !== "default") {
20
+ var d = Object.getOwnPropertyDescriptor(e2, k);
21
+ Object.defineProperty(n, k, d.get ? d : {
22
22
  enumerable: true,
23
23
  get: function() {
24
- return e2[k2];
24
+ return e2[k];
25
25
  }
26
26
  });
27
27
  }
28
28
  });
29
29
  }
30
- n2["default"] = e2;
31
- return Object.freeze(n2);
30
+ n["default"] = e2;
31
+ return Object.freeze(n);
32
32
  }
33
33
  var React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
34
34
  var React__namespace = /* @__PURE__ */ _interopNamespace(React);
35
35
  var Taro__default = /* @__PURE__ */ _interopDefaultLegacy(Taro);
36
36
  var ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
37
- function getAugmentedNamespace(n2) {
38
- if (n2.__esModule)
39
- return n2;
37
+ function getAugmentedNamespace(n) {
38
+ if (n.__esModule)
39
+ return n;
40
40
  var a = Object.defineProperty({}, "__esModule", { value: true });
41
- Object.keys(n2).forEach(function(k2) {
42
- var d2 = Object.getOwnPropertyDescriptor(n2, k2);
43
- Object.defineProperty(a, k2, d2.get ? d2 : {
41
+ Object.keys(n).forEach(function(k) {
42
+ var d = Object.getOwnPropertyDescriptor(n, k);
43
+ Object.defineProperty(a, k, d.get ? d : {
44
44
  enumerable: true,
45
45
  get: function() {
46
- return n2[k2];
46
+ return n[k];
47
47
  }
48
48
  });
49
49
  });
@@ -51,38 +51,38 @@
51
51
  }
52
52
  var classname = { exports: {} };
53
53
  var classname_production_min = {};
54
- function r$1(r2) {
54
+ function r(r2) {
55
55
  function e2(e3, i, a, o) {
56
- var f2 = i ? t2 + e3 + r2.e + i : t2 + e3, v2 = f2;
56
+ var f = i ? t + e3 + r2.e + i : t + e3, v = f;
57
57
  if (a) {
58
- var u = " " + v2 + r2.m;
58
+ var u = " " + v + r2.m;
59
59
  for (var s in a)
60
60
  if (a.hasOwnProperty(s)) {
61
- var p2 = a[s];
62
- true === p2 ? v2 += u + s : p2 && (v2 += u + s + n2 + p2);
61
+ var p = a[s];
62
+ true === p ? v += u + s : p && (v += u + s + n + p);
63
63
  }
64
64
  }
65
65
  if (void 0 !== o)
66
- for (var c6 = 0, l2 = o.length; c6 < l2; c6++) {
67
- var y2 = o[c6];
68
- if (y2 && "string" == typeof y2.valueOf())
69
- for (var g2 = y2.valueOf().split(" "), d2 = 0; d2 < g2.length; d2++) {
70
- var h2 = g2[d2];
71
- h2 !== f2 && (v2 += " " + h2);
66
+ for (var c = 0, l = o.length; c < l; c++) {
67
+ var y = o[c];
68
+ if (y && "string" == typeof y.valueOf())
69
+ for (var g = y.valueOf().split(" "), d = 0; d < g.length; d++) {
70
+ var h = g[d];
71
+ h !== f && (v += " " + h);
72
72
  }
73
73
  }
74
- return v2;
74
+ return v;
75
75
  }
76
- var t2 = r2.n || "", n2 = r2.v || r2.m;
77
- return function(r3, t3) {
78
- return function(n3, i, a) {
79
- return "string" == typeof n3 ? Array.isArray(i) ? e2(r3, n3, void 0, i) : e2(r3, n3, i, a) : e2(r3, t3, n3, i);
76
+ var t = r2.n || "", n = r2.v || r2.m;
77
+ return function(r3, t2) {
78
+ return function(n2, i, a) {
79
+ return "string" == typeof n2 ? Array.isArray(i) ? e2(r3, n2, void 0, i) : e2(r3, n2, i, a) : e2(r3, t2, n2, i);
80
80
  };
81
81
  };
82
82
  }
83
83
  Object.defineProperty(classname_production_min, "__esModule", { value: true });
84
- var e$1 = r$1({ e: "-", m: "_" });
85
- classname_production_min.cn = e$1, classname_production_min.withNaming = r$1;
84
+ var e = r({ e: "-", m: "_" });
85
+ classname_production_min.cn = e, classname_production_min.withNaming = r;
86
86
  {
87
87
  classname.exports = classname_production_min;
88
88
  }
@@ -272,1229 +272,6 @@
272
272
  };
273
273
  Button.defaultProps = defaultProps$1n;
274
274
  Button.displayName = "NutButton";
275
- function _setPrototypeOf(o, p2) {
276
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p3) {
277
- o2.__proto__ = p3;
278
- return o2;
279
- };
280
- return _setPrototypeOf(o, p2);
281
- }
282
- function _inheritsLoose(subClass, superClass) {
283
- subClass.prototype = Object.create(superClass.prototype);
284
- subClass.prototype.constructor = subClass;
285
- _setPrototypeOf(subClass, superClass);
286
- }
287
- var propTypes = { exports: {} };
288
- var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
289
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
290
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
291
- function emptyFunction() {
292
- }
293
- function emptyFunctionWithReset() {
294
- }
295
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
296
- var factoryWithThrowingShims = function() {
297
- function shim(props, propName, componentName, location, propFullName, secret) {
298
- if (secret === ReactPropTypesSecret) {
299
- return;
300
- }
301
- var err = new Error(
302
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
303
- );
304
- err.name = "Invariant Violation";
305
- throw err;
306
- }
307
- shim.isRequired = shim;
308
- function getShim() {
309
- return shim;
310
- }
311
- var ReactPropTypes = {
312
- array: shim,
313
- bigint: shim,
314
- bool: shim,
315
- func: shim,
316
- number: shim,
317
- object: shim,
318
- string: shim,
319
- symbol: shim,
320
- any: shim,
321
- arrayOf: getShim,
322
- element: shim,
323
- elementType: shim,
324
- instanceOf: getShim,
325
- node: shim,
326
- objectOf: getShim,
327
- oneOf: getShim,
328
- oneOfType: getShim,
329
- shape: getShim,
330
- exact: getShim,
331
- checkPropTypes: emptyFunctionWithReset,
332
- resetWarningCache: emptyFunction
333
- };
334
- ReactPropTypes.PropTypes = ReactPropTypes;
335
- return ReactPropTypes;
336
- };
337
- {
338
- propTypes.exports = factoryWithThrowingShims();
339
- }
340
- var PropTypes = propTypes.exports;
341
- function _extends$3() {
342
- _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
343
- for (var i = 1; i < arguments.length; i++) {
344
- var source = arguments[i];
345
- for (var key in source) {
346
- if (Object.prototype.hasOwnProperty.call(source, key)) {
347
- target[key] = source[key];
348
- }
349
- }
350
- }
351
- return target;
352
- };
353
- return _extends$3.apply(this, arguments);
354
- }
355
- function isAbsolute(pathname) {
356
- return pathname.charAt(0) === "/";
357
- }
358
- function spliceOne(list, index) {
359
- for (var i = index, k2 = i + 1, n2 = list.length; k2 < n2; i += 1, k2 += 1) {
360
- list[i] = list[k2];
361
- }
362
- list.pop();
363
- }
364
- function resolvePathname(to2, from) {
365
- if (from === void 0)
366
- from = "";
367
- var toParts = to2 && to2.split("/") || [];
368
- var fromParts = from && from.split("/") || [];
369
- var isToAbs = to2 && isAbsolute(to2);
370
- var isFromAbs = from && isAbsolute(from);
371
- var mustEndAbs = isToAbs || isFromAbs;
372
- if (to2 && isAbsolute(to2)) {
373
- fromParts = toParts;
374
- } else if (toParts.length) {
375
- fromParts.pop();
376
- fromParts = fromParts.concat(toParts);
377
- }
378
- if (!fromParts.length)
379
- return "/";
380
- var hasTrailingSlash;
381
- if (fromParts.length) {
382
- var last = fromParts[fromParts.length - 1];
383
- hasTrailingSlash = last === "." || last === ".." || last === "";
384
- } else {
385
- hasTrailingSlash = false;
386
- }
387
- var up = 0;
388
- for (var i = fromParts.length; i >= 0; i--) {
389
- var part = fromParts[i];
390
- if (part === ".") {
391
- spliceOne(fromParts, i);
392
- } else if (part === "..") {
393
- spliceOne(fromParts, i);
394
- up++;
395
- } else if (up) {
396
- spliceOne(fromParts, i);
397
- up--;
398
- }
399
- }
400
- if (!mustEndAbs)
401
- for (; up--; up)
402
- fromParts.unshift("..");
403
- if (mustEndAbs && fromParts[0] !== "" && (!fromParts[0] || !isAbsolute(fromParts[0])))
404
- fromParts.unshift("");
405
- var result = fromParts.join("/");
406
- if (hasTrailingSlash && result.substr(-1) !== "/")
407
- result += "/";
408
- return result;
409
- }
410
- var isProduction = true;
411
- var prefix$1 = "Invariant failed";
412
- function invariant(condition, message) {
413
- if (condition) {
414
- return;
415
- }
416
- if (isProduction) {
417
- throw new Error(prefix$1);
418
- }
419
- var provided = typeof message === "function" ? message() : message;
420
- var value = provided ? "".concat(prefix$1, ": ").concat(provided) : prefix$1;
421
- throw new Error(value);
422
- }
423
- function parsePath(path) {
424
- var pathname = path || "/";
425
- var search = "";
426
- var hash = "";
427
- var hashIndex = pathname.indexOf("#");
428
- if (hashIndex !== -1) {
429
- hash = pathname.substr(hashIndex);
430
- pathname = pathname.substr(0, hashIndex);
431
- }
432
- var searchIndex = pathname.indexOf("?");
433
- if (searchIndex !== -1) {
434
- search = pathname.substr(searchIndex);
435
- pathname = pathname.substr(0, searchIndex);
436
- }
437
- return {
438
- pathname,
439
- search: search === "?" ? "" : search,
440
- hash: hash === "#" ? "" : hash
441
- };
442
- }
443
- function createPath(location) {
444
- var pathname = location.pathname, search = location.search, hash = location.hash;
445
- var path = pathname || "/";
446
- if (search && search !== "?")
447
- path += search.charAt(0) === "?" ? search : "?" + search;
448
- if (hash && hash !== "#")
449
- path += hash.charAt(0) === "#" ? hash : "#" + hash;
450
- return path;
451
- }
452
- function createLocation(path, state, key, currentLocation) {
453
- var location;
454
- if (typeof path === "string") {
455
- location = parsePath(path);
456
- location.state = state;
457
- } else {
458
- location = _extends$3({}, path);
459
- if (location.pathname === void 0)
460
- location.pathname = "";
461
- if (location.search) {
462
- if (location.search.charAt(0) !== "?")
463
- location.search = "?" + location.search;
464
- } else {
465
- location.search = "";
466
- }
467
- if (location.hash) {
468
- if (location.hash.charAt(0) !== "#")
469
- location.hash = "#" + location.hash;
470
- } else {
471
- location.hash = "";
472
- }
473
- if (state !== void 0 && location.state === void 0)
474
- location.state = state;
475
- }
476
- try {
477
- location.pathname = decodeURI(location.pathname);
478
- } catch (e2) {
479
- if (e2 instanceof URIError) {
480
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
481
- } else {
482
- throw e2;
483
- }
484
- }
485
- if (key)
486
- location.key = key;
487
- if (currentLocation) {
488
- if (!location.pathname) {
489
- location.pathname = currentLocation.pathname;
490
- } else if (location.pathname.charAt(0) !== "/") {
491
- location.pathname = resolvePathname(location.pathname, currentLocation.pathname);
492
- }
493
- } else {
494
- if (!location.pathname) {
495
- location.pathname = "/";
496
- }
497
- }
498
- return location;
499
- }
500
- function createTransitionManager() {
501
- var prompt = null;
502
- function setPrompt(nextPrompt) {
503
- prompt = nextPrompt;
504
- return function() {
505
- if (prompt === nextPrompt)
506
- prompt = null;
507
- };
508
- }
509
- function confirmTransitionTo(location, action, getUserConfirmation, callback) {
510
- if (prompt != null) {
511
- var result = typeof prompt === "function" ? prompt(location, action) : prompt;
512
- if (typeof result === "string") {
513
- if (typeof getUserConfirmation === "function") {
514
- getUserConfirmation(result, callback);
515
- } else {
516
- callback(true);
517
- }
518
- } else {
519
- callback(result !== false);
520
- }
521
- } else {
522
- callback(true);
523
- }
524
- }
525
- var listeners = [];
526
- function appendListener(fn) {
527
- var isActive = true;
528
- function listener() {
529
- if (isActive)
530
- fn.apply(void 0, arguments);
531
- }
532
- listeners.push(listener);
533
- return function() {
534
- isActive = false;
535
- listeners = listeners.filter(function(item) {
536
- return item !== listener;
537
- });
538
- };
539
- }
540
- function notifyListeners() {
541
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
542
- args[_key] = arguments[_key];
543
- }
544
- listeners.forEach(function(listener) {
545
- return listener.apply(void 0, args);
546
- });
547
- }
548
- return {
549
- setPrompt,
550
- confirmTransitionTo,
551
- appendListener,
552
- notifyListeners
553
- };
554
- }
555
- function clamp$1(n2, lowerBound, upperBound) {
556
- return Math.min(Math.max(n2, lowerBound), upperBound);
557
- }
558
- function createMemoryHistory(props) {
559
- if (props === void 0) {
560
- props = {};
561
- }
562
- var _props = props, getUserConfirmation = _props.getUserConfirmation, _props$initialEntries = _props.initialEntries, initialEntries = _props$initialEntries === void 0 ? ["/"] : _props$initialEntries, _props$initialIndex = _props.initialIndex, initialIndex = _props$initialIndex === void 0 ? 0 : _props$initialIndex, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
563
- var transitionManager = createTransitionManager();
564
- function setState(nextState) {
565
- _extends$3(history, nextState);
566
- history.length = history.entries.length;
567
- transitionManager.notifyListeners(history.location, history.action);
568
- }
569
- function createKey() {
570
- return Math.random().toString(36).substr(2, keyLength);
571
- }
572
- var index = clamp$1(initialIndex, 0, initialEntries.length - 1);
573
- var entries = initialEntries.map(function(entry) {
574
- return typeof entry === "string" ? createLocation(entry, void 0, createKey()) : createLocation(entry, void 0, entry.key || createKey());
575
- });
576
- var createHref = createPath;
577
- function push(path, state) {
578
- var action = "PUSH";
579
- var location = createLocation(path, state, createKey(), history.location);
580
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
581
- if (!ok)
582
- return;
583
- var prevIndex = history.index;
584
- var nextIndex = prevIndex + 1;
585
- var nextEntries = history.entries.slice(0);
586
- if (nextEntries.length > nextIndex) {
587
- nextEntries.splice(nextIndex, nextEntries.length - nextIndex, location);
588
- } else {
589
- nextEntries.push(location);
590
- }
591
- setState({
592
- action,
593
- location,
594
- index: nextIndex,
595
- entries: nextEntries
596
- });
597
- });
598
- }
599
- function replace(path, state) {
600
- var action = "REPLACE";
601
- var location = createLocation(path, state, createKey(), history.location);
602
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
603
- if (!ok)
604
- return;
605
- history.entries[history.index] = location;
606
- setState({
607
- action,
608
- location
609
- });
610
- });
611
- }
612
- function go(n2) {
613
- var nextIndex = clamp$1(history.index + n2, 0, history.entries.length - 1);
614
- var action = "POP";
615
- var location = history.entries[nextIndex];
616
- transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function(ok) {
617
- if (ok) {
618
- setState({
619
- action,
620
- location,
621
- index: nextIndex
622
- });
623
- } else {
624
- setState();
625
- }
626
- });
627
- }
628
- function goBack() {
629
- go(-1);
630
- }
631
- function goForward() {
632
- go(1);
633
- }
634
- function canGo(n2) {
635
- var nextIndex = history.index + n2;
636
- return nextIndex >= 0 && nextIndex < history.entries.length;
637
- }
638
- function block(prompt) {
639
- if (prompt === void 0) {
640
- prompt = false;
641
- }
642
- return transitionManager.setPrompt(prompt);
643
- }
644
- function listen(listener) {
645
- return transitionManager.appendListener(listener);
646
- }
647
- var history = {
648
- length: entries.length,
649
- action: "POP",
650
- location: entries[index],
651
- index,
652
- entries,
653
- createHref,
654
- push,
655
- replace,
656
- go,
657
- goBack,
658
- goForward,
659
- canGo,
660
- block,
661
- listen
662
- };
663
- return history;
664
- }
665
- var pathToRegexp$2 = { exports: {} };
666
- var isarray$1 = Array.isArray || function(arr) {
667
- return Object.prototype.toString.call(arr) == "[object Array]";
668
- };
669
- var isarray = isarray$1;
670
- pathToRegexp$2.exports = pathToRegexp;
671
- pathToRegexp$2.exports.parse = parse$1;
672
- pathToRegexp$2.exports.compile = compile;
673
- pathToRegexp$2.exports.tokensToFunction = tokensToFunction;
674
- pathToRegexp$2.exports.tokensToRegExp = tokensToRegExp;
675
- var PATH_REGEXP = new RegExp([
676
- "(\\\\.)",
677
- "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"
678
- ].join("|"), "g");
679
- function parse$1(str, options) {
680
- var tokens = [];
681
- var key = 0;
682
- var index = 0;
683
- var path = "";
684
- var defaultDelimiter = options && options.delimiter || "/";
685
- var res;
686
- while ((res = PATH_REGEXP.exec(str)) != null) {
687
- var m2 = res[0];
688
- var escaped = res[1];
689
- var offset = res.index;
690
- path += str.slice(index, offset);
691
- index = offset + m2.length;
692
- if (escaped) {
693
- path += escaped[1];
694
- continue;
695
- }
696
- var next = str[index];
697
- var prefix2 = res[2];
698
- var name = res[3];
699
- var capture = res[4];
700
- var group = res[5];
701
- var modifier = res[6];
702
- var asterisk = res[7];
703
- if (path) {
704
- tokens.push(path);
705
- path = "";
706
- }
707
- var partial = prefix2 != null && next != null && next !== prefix2;
708
- var repeat = modifier === "+" || modifier === "*";
709
- var optional = modifier === "?" || modifier === "*";
710
- var delimiter = res[2] || defaultDelimiter;
711
- var pattern = capture || group;
712
- tokens.push({
713
- name: name || key++,
714
- prefix: prefix2 || "",
715
- delimiter,
716
- optional,
717
- repeat,
718
- partial,
719
- asterisk: !!asterisk,
720
- pattern: pattern ? escapeGroup(pattern) : asterisk ? ".*" : "[^" + escapeString(delimiter) + "]+?"
721
- });
722
- }
723
- if (index < str.length) {
724
- path += str.substr(index);
725
- }
726
- if (path) {
727
- tokens.push(path);
728
- }
729
- return tokens;
730
- }
731
- function compile(str, options) {
732
- return tokensToFunction(parse$1(str, options), options);
733
- }
734
- function encodeURIComponentPretty(str) {
735
- return encodeURI(str).replace(/[\/?#]/g, function(c6) {
736
- return "%" + c6.charCodeAt(0).toString(16).toUpperCase();
737
- });
738
- }
739
- function encodeAsterisk(str) {
740
- return encodeURI(str).replace(/[?#]/g, function(c6) {
741
- return "%" + c6.charCodeAt(0).toString(16).toUpperCase();
742
- });
743
- }
744
- function tokensToFunction(tokens, options) {
745
- var matches = new Array(tokens.length);
746
- for (var i = 0; i < tokens.length; i++) {
747
- if (typeof tokens[i] === "object") {
748
- matches[i] = new RegExp("^(?:" + tokens[i].pattern + ")$", flags(options));
749
- }
750
- }
751
- return function(obj, opts) {
752
- var path = "";
753
- var data = obj || {};
754
- var options2 = opts || {};
755
- var encode = options2.pretty ? encodeURIComponentPretty : encodeURIComponent;
756
- for (var i2 = 0; i2 < tokens.length; i2++) {
757
- var token = tokens[i2];
758
- if (typeof token === "string") {
759
- path += token;
760
- continue;
761
- }
762
- var value = data[token.name];
763
- var segment;
764
- if (value == null) {
765
- if (token.optional) {
766
- if (token.partial) {
767
- path += token.prefix;
768
- }
769
- continue;
770
- } else {
771
- throw new TypeError('Expected "' + token.name + '" to be defined');
772
- }
773
- }
774
- if (isarray(value)) {
775
- if (!token.repeat) {
776
- throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + "`");
777
- }
778
- if (value.length === 0) {
779
- if (token.optional) {
780
- continue;
781
- } else {
782
- throw new TypeError('Expected "' + token.name + '" to not be empty');
783
- }
784
- }
785
- for (var j = 0; j < value.length; j++) {
786
- segment = encode(value[j]);
787
- if (!matches[i2].test(segment)) {
788
- throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + "`");
789
- }
790
- path += (j === 0 ? token.prefix : token.delimiter) + segment;
791
- }
792
- continue;
793
- }
794
- segment = token.asterisk ? encodeAsterisk(value) : encode(value);
795
- if (!matches[i2].test(segment)) {
796
- throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"');
797
- }
798
- path += token.prefix + segment;
799
- }
800
- return path;
801
- };
802
- }
803
- function escapeString(str) {
804
- return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1");
805
- }
806
- function escapeGroup(group) {
807
- return group.replace(/([=!:$\/()])/g, "\\$1");
808
- }
809
- function attachKeys(re, keys) {
810
- re.keys = keys;
811
- return re;
812
- }
813
- function flags(options) {
814
- return options && options.sensitive ? "" : "i";
815
- }
816
- function regexpToRegexp(path, keys) {
817
- var groups = path.source.match(/\((?!\?)/g);
818
- if (groups) {
819
- for (var i = 0; i < groups.length; i++) {
820
- keys.push({
821
- name: i,
822
- prefix: null,
823
- delimiter: null,
824
- optional: false,
825
- repeat: false,
826
- partial: false,
827
- asterisk: false,
828
- pattern: null
829
- });
830
- }
831
- }
832
- return attachKeys(path, keys);
833
- }
834
- function arrayToRegexp(path, keys, options) {
835
- var parts = [];
836
- for (var i = 0; i < path.length; i++) {
837
- parts.push(pathToRegexp(path[i], keys, options).source);
838
- }
839
- var regexp = new RegExp("(?:" + parts.join("|") + ")", flags(options));
840
- return attachKeys(regexp, keys);
841
- }
842
- function stringToRegexp(path, keys, options) {
843
- return tokensToRegExp(parse$1(path, options), keys, options);
844
- }
845
- function tokensToRegExp(tokens, keys, options) {
846
- if (!isarray(keys)) {
847
- options = keys || options;
848
- keys = [];
849
- }
850
- options = options || {};
851
- var strict = options.strict;
852
- var end = options.end !== false;
853
- var route = "";
854
- for (var i = 0; i < tokens.length; i++) {
855
- var token = tokens[i];
856
- if (typeof token === "string") {
857
- route += escapeString(token);
858
- } else {
859
- var prefix2 = escapeString(token.prefix);
860
- var capture = "(?:" + token.pattern + ")";
861
- keys.push(token);
862
- if (token.repeat) {
863
- capture += "(?:" + prefix2 + capture + ")*";
864
- }
865
- if (token.optional) {
866
- if (!token.partial) {
867
- capture = "(?:" + prefix2 + "(" + capture + "))?";
868
- } else {
869
- capture = prefix2 + "(" + capture + ")?";
870
- }
871
- } else {
872
- capture = prefix2 + "(" + capture + ")";
873
- }
874
- route += capture;
875
- }
876
- }
877
- var delimiter = escapeString(options.delimiter || "/");
878
- var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;
879
- if (!strict) {
880
- route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + "(?:" + delimiter + "(?=$))?";
881
- }
882
- if (end) {
883
- route += "$";
884
- } else {
885
- route += strict && endsWithDelimiter ? "" : "(?=" + delimiter + "|$)";
886
- }
887
- return attachKeys(new RegExp("^" + route, flags(options)), keys);
888
- }
889
- function pathToRegexp(path, keys, options) {
890
- if (!isarray(keys)) {
891
- options = keys || options;
892
- keys = [];
893
- }
894
- options = options || {};
895
- if (path instanceof RegExp) {
896
- return regexpToRegexp(path, keys);
897
- }
898
- if (isarray(path)) {
899
- return arrayToRegexp(path, keys, options);
900
- }
901
- return stringToRegexp(path, keys, options);
902
- }
903
- var pathToRegexp$1 = pathToRegexp$2.exports;
904
- var reactIs$1 = { exports: {} };
905
- var reactIs_production_min = {};
906
- /** @license React v16.13.1
907
- * react-is.production.min.js
908
- *
909
- * Copyright (c) Facebook, Inc. and its affiliates.
910
- *
911
- * This source code is licensed under the MIT license found in the
912
- * LICENSE file in the root directory of this source tree.
913
- */
914
- var b$1 = "function" === typeof Symbol && Symbol.for, c = b$1 ? Symbol.for("react.element") : 60103, d = b$1 ? Symbol.for("react.portal") : 60106, e = b$1 ? Symbol.for("react.fragment") : 60107, f = b$1 ? Symbol.for("react.strict_mode") : 60108, g = b$1 ? Symbol.for("react.profiler") : 60114, h = b$1 ? Symbol.for("react.provider") : 60109, k = b$1 ? Symbol.for("react.context") : 60110, l = b$1 ? Symbol.for("react.async_mode") : 60111, m = b$1 ? Symbol.for("react.concurrent_mode") : 60111, n = b$1 ? Symbol.for("react.forward_ref") : 60112, p = b$1 ? Symbol.for("react.suspense") : 60113, q = b$1 ? Symbol.for("react.suspense_list") : 60120, r = b$1 ? Symbol.for("react.memo") : 60115, t = b$1 ? Symbol.for("react.lazy") : 60116, v = b$1 ? Symbol.for("react.block") : 60121, w = b$1 ? Symbol.for("react.fundamental") : 60117, x = b$1 ? Symbol.for("react.responder") : 60118, y = b$1 ? Symbol.for("react.scope") : 60119;
915
- function z(a) {
916
- if ("object" === typeof a && null !== a) {
917
- var u = a.$$typeof;
918
- switch (u) {
919
- case c:
920
- switch (a = a.type, a) {
921
- case l:
922
- case m:
923
- case e:
924
- case g:
925
- case f:
926
- case p:
927
- return a;
928
- default:
929
- switch (a = a && a.$$typeof, a) {
930
- case k:
931
- case n:
932
- case t:
933
- case r:
934
- case h:
935
- return a;
936
- default:
937
- return u;
938
- }
939
- }
940
- case d:
941
- return u;
942
- }
943
- }
944
- }
945
- function A(a) {
946
- return z(a) === m;
947
- }
948
- reactIs_production_min.AsyncMode = l;
949
- reactIs_production_min.ConcurrentMode = m;
950
- reactIs_production_min.ContextConsumer = k;
951
- reactIs_production_min.ContextProvider = h;
952
- reactIs_production_min.Element = c;
953
- reactIs_production_min.ForwardRef = n;
954
- reactIs_production_min.Fragment = e;
955
- reactIs_production_min.Lazy = t;
956
- reactIs_production_min.Memo = r;
957
- reactIs_production_min.Portal = d;
958
- reactIs_production_min.Profiler = g;
959
- reactIs_production_min.StrictMode = f;
960
- reactIs_production_min.Suspense = p;
961
- reactIs_production_min.isAsyncMode = function(a) {
962
- return A(a) || z(a) === l;
963
- };
964
- reactIs_production_min.isConcurrentMode = A;
965
- reactIs_production_min.isContextConsumer = function(a) {
966
- return z(a) === k;
967
- };
968
- reactIs_production_min.isContextProvider = function(a) {
969
- return z(a) === h;
970
- };
971
- reactIs_production_min.isElement = function(a) {
972
- return "object" === typeof a && null !== a && a.$$typeof === c;
973
- };
974
- reactIs_production_min.isForwardRef = function(a) {
975
- return z(a) === n;
976
- };
977
- reactIs_production_min.isFragment = function(a) {
978
- return z(a) === e;
979
- };
980
- reactIs_production_min.isLazy = function(a) {
981
- return z(a) === t;
982
- };
983
- reactIs_production_min.isMemo = function(a) {
984
- return z(a) === r;
985
- };
986
- reactIs_production_min.isPortal = function(a) {
987
- return z(a) === d;
988
- };
989
- reactIs_production_min.isProfiler = function(a) {
990
- return z(a) === g;
991
- };
992
- reactIs_production_min.isStrictMode = function(a) {
993
- return z(a) === f;
994
- };
995
- reactIs_production_min.isSuspense = function(a) {
996
- return z(a) === p;
997
- };
998
- reactIs_production_min.isValidElementType = function(a) {
999
- return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
1000
- };
1001
- reactIs_production_min.typeOf = z;
1002
- {
1003
- reactIs$1.exports = reactIs_production_min;
1004
- }
1005
- function _objectWithoutPropertiesLoose$3(source, excluded) {
1006
- if (source == null)
1007
- return {};
1008
- var target = {};
1009
- var sourceKeys = Object.keys(source);
1010
- var key, i;
1011
- for (i = 0; i < sourceKeys.length; i++) {
1012
- key = sourceKeys[i];
1013
- if (excluded.indexOf(key) >= 0)
1014
- continue;
1015
- target[key] = source[key];
1016
- }
1017
- return target;
1018
- }
1019
- var reactIs = reactIs$1.exports;
1020
- var FORWARD_REF_STATICS = {
1021
- "$$typeof": true,
1022
- render: true,
1023
- defaultProps: true,
1024
- displayName: true,
1025
- propTypes: true
1026
- };
1027
- var MEMO_STATICS = {
1028
- "$$typeof": true,
1029
- compare: true,
1030
- defaultProps: true,
1031
- displayName: true,
1032
- propTypes: true,
1033
- type: true
1034
- };
1035
- var TYPE_STATICS = {};
1036
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1037
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1038
- var MAX_SIGNED_31_BIT_INT = 1073741823;
1039
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {};
1040
- function getUniqueId() {
1041
- var key = "__global_unique_id__";
1042
- return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
1043
- }
1044
- function objectIs(x2, y2) {
1045
- if (x2 === y2) {
1046
- return x2 !== 0 || 1 / x2 === 1 / y2;
1047
- } else {
1048
- return x2 !== x2 && y2 !== y2;
1049
- }
1050
- }
1051
- function createEventEmitter(value) {
1052
- var handlers = [];
1053
- return {
1054
- on: function on(handler) {
1055
- handlers.push(handler);
1056
- },
1057
- off: function off(handler) {
1058
- handlers = handlers.filter(function(h2) {
1059
- return h2 !== handler;
1060
- });
1061
- },
1062
- get: function get() {
1063
- return value;
1064
- },
1065
- set: function set(newValue, changedBits) {
1066
- value = newValue;
1067
- handlers.forEach(function(handler) {
1068
- return handler(value, changedBits);
1069
- });
1070
- }
1071
- };
1072
- }
1073
- function onlyChild(children) {
1074
- return Array.isArray(children) ? children[0] : children;
1075
- }
1076
- function createReactContext(defaultValue, calculateChangedBits) {
1077
- var _Provider$childContex, _Consumer$contextType;
1078
- var contextProp = "__create-react-context-" + getUniqueId() + "__";
1079
- var Provider = /* @__PURE__ */ function(_React$Component) {
1080
- _inheritsLoose(Provider2, _React$Component);
1081
- function Provider2() {
1082
- var _this;
1083
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1084
- args[_key] = arguments[_key];
1085
- }
1086
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1087
- _this.emitter = createEventEmitter(_this.props.value);
1088
- return _this;
1089
- }
1090
- var _proto = Provider2.prototype;
1091
- _proto.getChildContext = function getChildContext() {
1092
- var _ref;
1093
- return _ref = {}, _ref[contextProp] = this.emitter, _ref;
1094
- };
1095
- _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1096
- if (this.props.value !== nextProps.value) {
1097
- var oldValue = this.props.value;
1098
- var newValue = nextProps.value;
1099
- var changedBits;
1100
- if (objectIs(oldValue, newValue)) {
1101
- changedBits = 0;
1102
- } else {
1103
- changedBits = typeof calculateChangedBits === "function" ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
1104
- changedBits |= 0;
1105
- if (changedBits !== 0) {
1106
- this.emitter.set(nextProps.value, changedBits);
1107
- }
1108
- }
1109
- }
1110
- };
1111
- _proto.render = function render() {
1112
- return this.props.children;
1113
- };
1114
- return Provider2;
1115
- }(React__default["default"].Component);
1116
- Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);
1117
- var Consumer = /* @__PURE__ */ function(_React$Component2) {
1118
- _inheritsLoose(Consumer2, _React$Component2);
1119
- function Consumer2() {
1120
- var _this2;
1121
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1122
- args[_key2] = arguments[_key2];
1123
- }
1124
- _this2 = _React$Component2.call.apply(_React$Component2, [this].concat(args)) || this;
1125
- _this2.observedBits = void 0;
1126
- _this2.state = {
1127
- value: _this2.getValue()
1128
- };
1129
- _this2.onUpdate = function(newValue, changedBits) {
1130
- var observedBits = _this2.observedBits | 0;
1131
- if ((observedBits & changedBits) !== 0) {
1132
- _this2.setState({
1133
- value: _this2.getValue()
1134
- });
1135
- }
1136
- };
1137
- return _this2;
1138
- }
1139
- var _proto2 = Consumer2.prototype;
1140
- _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
1141
- var observedBits = nextProps.observedBits;
1142
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1143
- };
1144
- _proto2.componentDidMount = function componentDidMount() {
1145
- if (this.context[contextProp]) {
1146
- this.context[contextProp].on(this.onUpdate);
1147
- }
1148
- var observedBits = this.props.observedBits;
1149
- this.observedBits = observedBits === void 0 || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
1150
- };
1151
- _proto2.componentWillUnmount = function componentWillUnmount() {
1152
- if (this.context[contextProp]) {
1153
- this.context[contextProp].off(this.onUpdate);
1154
- }
1155
- };
1156
- _proto2.getValue = function getValue() {
1157
- if (this.context[contextProp]) {
1158
- return this.context[contextProp].get();
1159
- } else {
1160
- return defaultValue;
1161
- }
1162
- };
1163
- _proto2.render = function render() {
1164
- return onlyChild(this.props.children)(this.state.value);
1165
- };
1166
- return Consumer2;
1167
- }(React__default["default"].Component);
1168
- Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);
1169
- return {
1170
- Provider,
1171
- Consumer
1172
- };
1173
- }
1174
- var createContext = React__default["default"].createContext || createReactContext;
1175
- var createNamedContext = function createNamedContext2(name) {
1176
- var context2 = createContext();
1177
- context2.displayName = name;
1178
- return context2;
1179
- };
1180
- var historyContext = /* @__PURE__ */ createNamedContext("Router-History");
1181
- var context = /* @__PURE__ */ createNamedContext("Router");
1182
- var Router = /* @__PURE__ */ function(_React$Component) {
1183
- _inheritsLoose(Router2, _React$Component);
1184
- Router2.computeRootMatch = function computeRootMatch(pathname) {
1185
- return {
1186
- path: "/",
1187
- url: "/",
1188
- params: {},
1189
- isExact: pathname === "/"
1190
- };
1191
- };
1192
- function Router2(props) {
1193
- var _this;
1194
- _this = _React$Component.call(this, props) || this;
1195
- _this.state = {
1196
- location: props.history.location
1197
- };
1198
- _this._isMounted = false;
1199
- _this._pendingLocation = null;
1200
- if (!props.staticContext) {
1201
- _this.unlisten = props.history.listen(function(location) {
1202
- _this._pendingLocation = location;
1203
- });
1204
- }
1205
- return _this;
1206
- }
1207
- var _proto = Router2.prototype;
1208
- _proto.componentDidMount = function componentDidMount() {
1209
- var _this2 = this;
1210
- this._isMounted = true;
1211
- if (this.unlisten) {
1212
- this.unlisten();
1213
- }
1214
- if (!this.props.staticContext) {
1215
- this.unlisten = this.props.history.listen(function(location) {
1216
- if (_this2._isMounted) {
1217
- _this2.setState({
1218
- location
1219
- });
1220
- }
1221
- });
1222
- }
1223
- if (this._pendingLocation) {
1224
- this.setState({
1225
- location: this._pendingLocation
1226
- });
1227
- }
1228
- };
1229
- _proto.componentWillUnmount = function componentWillUnmount() {
1230
- if (this.unlisten) {
1231
- this.unlisten();
1232
- this._isMounted = false;
1233
- this._pendingLocation = null;
1234
- }
1235
- };
1236
- _proto.render = function render() {
1237
- return /* @__PURE__ */ React__default["default"].createElement(context.Provider, {
1238
- value: {
1239
- history: this.props.history,
1240
- location: this.state.location,
1241
- match: Router2.computeRootMatch(this.state.location.pathname),
1242
- staticContext: this.props.staticContext
1243
- }
1244
- }, /* @__PURE__ */ React__default["default"].createElement(historyContext.Provider, {
1245
- children: this.props.children || null,
1246
- value: this.props.history
1247
- }));
1248
- };
1249
- return Router2;
1250
- }(React__default["default"].Component);
1251
- /* @__PURE__ */ (function(_React$Component) {
1252
- _inheritsLoose(MemoryRouter, _React$Component);
1253
- function MemoryRouter() {
1254
- var _this;
1255
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1256
- args[_key] = arguments[_key];
1257
- }
1258
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1259
- _this.history = createMemoryHistory(_this.props);
1260
- return _this;
1261
- }
1262
- var _proto = MemoryRouter.prototype;
1263
- _proto.render = function render() {
1264
- return /* @__PURE__ */ React__default["default"].createElement(Router, {
1265
- history: this.history,
1266
- children: this.props.children
1267
- });
1268
- };
1269
- return MemoryRouter;
1270
- })(React__default["default"].Component);
1271
- /* @__PURE__ */ (function(_React$Component) {
1272
- _inheritsLoose(Lifecycle, _React$Component);
1273
- function Lifecycle() {
1274
- return _React$Component.apply(this, arguments) || this;
1275
- }
1276
- var _proto = Lifecycle.prototype;
1277
- _proto.componentDidMount = function componentDidMount() {
1278
- if (this.props.onMount)
1279
- this.props.onMount.call(this, this);
1280
- };
1281
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
1282
- if (this.props.onUpdate)
1283
- this.props.onUpdate.call(this, this, prevProps);
1284
- };
1285
- _proto.componentWillUnmount = function componentWillUnmount() {
1286
- if (this.props.onUnmount)
1287
- this.props.onUnmount.call(this, this);
1288
- };
1289
- _proto.render = function render() {
1290
- return null;
1291
- };
1292
- return Lifecycle;
1293
- })(React__default["default"].Component);
1294
- var cache$1 = {};
1295
- var cacheLimit$1 = 1e4;
1296
- var cacheCount$1 = 0;
1297
- function compilePath$1(path, options) {
1298
- var cacheKey2 = "" + options.end + options.strict + options.sensitive;
1299
- var pathCache = cache$1[cacheKey2] || (cache$1[cacheKey2] = {});
1300
- if (pathCache[path])
1301
- return pathCache[path];
1302
- var keys = [];
1303
- var regexp = pathToRegexp$1(path, keys, options);
1304
- var result = {
1305
- regexp,
1306
- keys
1307
- };
1308
- if (cacheCount$1 < cacheLimit$1) {
1309
- pathCache[path] = result;
1310
- cacheCount$1++;
1311
- }
1312
- return result;
1313
- }
1314
- function matchPath(pathname, options) {
1315
- if (options === void 0) {
1316
- options = {};
1317
- }
1318
- if (typeof options === "string" || Array.isArray(options)) {
1319
- options = {
1320
- path: options
1321
- };
1322
- }
1323
- var _options = options, path = _options.path, _options$exact = _options.exact, exact = _options$exact === void 0 ? false : _options$exact, _options$strict = _options.strict, strict = _options$strict === void 0 ? false : _options$strict, _options$sensitive = _options.sensitive, sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
1324
- var paths = [].concat(path);
1325
- return paths.reduce(function(matched, path2) {
1326
- if (!path2 && path2 !== "")
1327
- return null;
1328
- if (matched)
1329
- return matched;
1330
- var _compilePath = compilePath$1(path2, {
1331
- end: exact,
1332
- strict,
1333
- sensitive
1334
- }), regexp = _compilePath.regexp, keys = _compilePath.keys;
1335
- var match = regexp.exec(pathname);
1336
- if (!match)
1337
- return null;
1338
- var url = match[0], values = match.slice(1);
1339
- var isExact = pathname === url;
1340
- if (exact && !isExact)
1341
- return null;
1342
- return {
1343
- path: path2,
1344
- url: path2 === "/" && url === "" ? "/" : url,
1345
- isExact,
1346
- params: keys.reduce(function(memo, key, index) {
1347
- memo[key.name] = values[index];
1348
- return memo;
1349
- }, {})
1350
- };
1351
- }, null);
1352
- }
1353
- function isEmptyChildren(children) {
1354
- return React__default["default"].Children.count(children) === 0;
1355
- }
1356
- /* @__PURE__ */ (function(_React$Component) {
1357
- _inheritsLoose(Route, _React$Component);
1358
- function Route() {
1359
- return _React$Component.apply(this, arguments) || this;
1360
- }
1361
- var _proto = Route.prototype;
1362
- _proto.render = function render() {
1363
- var _this = this;
1364
- return /* @__PURE__ */ React__default["default"].createElement(context.Consumer, null, function(context$1) {
1365
- !context$1 ? invariant(false) : void 0;
1366
- var location = _this.props.location || context$1.location;
1367
- var match = _this.props.computedMatch ? _this.props.computedMatch : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
1368
- var props = _extends$3({}, context$1, {
1369
- location,
1370
- match
1371
- });
1372
- var _this$props = _this.props, children = _this$props.children, component = _this$props.component, render2 = _this$props.render;
1373
- if (Array.isArray(children) && isEmptyChildren(children)) {
1374
- children = null;
1375
- }
1376
- return /* @__PURE__ */ React__default["default"].createElement(context.Provider, {
1377
- value: props
1378
- }, props.match ? children ? typeof children === "function" ? children(props) : children : component ? /* @__PURE__ */ React__default["default"].createElement(component, props) : render2 ? render2(props) : null : typeof children === "function" ? children(props) : null);
1379
- });
1380
- };
1381
- return Route;
1382
- })(React__default["default"].Component);
1383
- function addLeadingSlash(path) {
1384
- return path.charAt(0) === "/" ? path : "/" + path;
1385
- }
1386
- function addBasename(basename, location) {
1387
- if (!basename)
1388
- return location;
1389
- return _extends$3({}, location, {
1390
- pathname: addLeadingSlash(basename) + location.pathname
1391
- });
1392
- }
1393
- function stripBasename(basename, location) {
1394
- if (!basename)
1395
- return location;
1396
- var base = addLeadingSlash(basename);
1397
- if (location.pathname.indexOf(base) !== 0)
1398
- return location;
1399
- return _extends$3({}, location, {
1400
- pathname: location.pathname.substr(base.length)
1401
- });
1402
- }
1403
- function createURL(location) {
1404
- return typeof location === "string" ? location : createPath(location);
1405
- }
1406
- function staticHandler(methodName) {
1407
- return function() {
1408
- invariant(false);
1409
- };
1410
- }
1411
- function noop$3() {
1412
- }
1413
- /* @__PURE__ */ (function(_React$Component) {
1414
- _inheritsLoose(StaticRouter, _React$Component);
1415
- function StaticRouter() {
1416
- var _this;
1417
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1418
- args[_key] = arguments[_key];
1419
- }
1420
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1421
- _this.handlePush = function(location) {
1422
- return _this.navigateTo(location, "PUSH");
1423
- };
1424
- _this.handleReplace = function(location) {
1425
- return _this.navigateTo(location, "REPLACE");
1426
- };
1427
- _this.handleListen = function() {
1428
- return noop$3;
1429
- };
1430
- _this.handleBlock = function() {
1431
- return noop$3;
1432
- };
1433
- return _this;
1434
- }
1435
- var _proto = StaticRouter.prototype;
1436
- _proto.navigateTo = function navigateTo(location, action) {
1437
- var _this$props = this.props, _this$props$basename = _this$props.basename, basename = _this$props$basename === void 0 ? "" : _this$props$basename, _this$props$context = _this$props.context, context2 = _this$props$context === void 0 ? {} : _this$props$context;
1438
- context2.action = action;
1439
- context2.location = addBasename(basename, createLocation(location));
1440
- context2.url = createURL(context2.location);
1441
- };
1442
- _proto.render = function render() {
1443
- var _this$props2 = this.props, _this$props2$basename = _this$props2.basename, basename = _this$props2$basename === void 0 ? "" : _this$props2$basename, _this$props2$context = _this$props2.context, context2 = _this$props2$context === void 0 ? {} : _this$props2$context, _this$props2$location = _this$props2.location, location = _this$props2$location === void 0 ? "/" : _this$props2$location, rest = _objectWithoutPropertiesLoose$3(_this$props2, ["basename", "context", "location"]);
1444
- var history = {
1445
- createHref: function createHref(path) {
1446
- return addLeadingSlash(basename + createURL(path));
1447
- },
1448
- action: "POP",
1449
- location: stripBasename(basename, createLocation(location)),
1450
- push: this.handlePush,
1451
- replace: this.handleReplace,
1452
- go: staticHandler(),
1453
- goBack: staticHandler(),
1454
- goForward: staticHandler(),
1455
- listen: this.handleListen,
1456
- block: this.handleBlock
1457
- };
1458
- return /* @__PURE__ */ React__default["default"].createElement(Router, _extends$3({}, rest, {
1459
- history,
1460
- staticContext: context2
1461
- }));
1462
- };
1463
- return StaticRouter;
1464
- })(React__default["default"].Component);
1465
- /* @__PURE__ */ (function(_React$Component) {
1466
- _inheritsLoose(Switch2, _React$Component);
1467
- function Switch2() {
1468
- return _React$Component.apply(this, arguments) || this;
1469
- }
1470
- var _proto = Switch2.prototype;
1471
- _proto.render = function render() {
1472
- var _this = this;
1473
- return /* @__PURE__ */ React__default["default"].createElement(context.Consumer, null, function(context2) {
1474
- !context2 ? invariant(false) : void 0;
1475
- var location = _this.props.location || context2.location;
1476
- var element, match;
1477
- React__default["default"].Children.forEach(_this.props.children, function(child) {
1478
- if (match == null && /* @__PURE__ */ React__default["default"].isValidElement(child)) {
1479
- element = child;
1480
- var path = child.props.path || child.props.from;
1481
- match = path ? matchPath(location.pathname, _extends$3({}, child.props, {
1482
- path
1483
- })) : context2.match;
1484
- }
1485
- });
1486
- return match ? /* @__PURE__ */ React__default["default"].cloneElement(element, {
1487
- location,
1488
- computedMatch: match
1489
- }) : null;
1490
- });
1491
- };
1492
- return Switch2;
1493
- })(React__default["default"].Component);
1494
- var useContext = React__default["default"].useContext;
1495
- function useHistory() {
1496
- return useContext(historyContext);
1497
- }
1498
275
  const defaultProps$1m = {
1499
276
  ...ComponentDefaults,
1500
277
  title: null,
@@ -1545,19 +322,10 @@
1545
322
  ...props
1546
323
  };
1547
324
  const b2 = cn("cell");
1548
- const history = useHistory();
1549
325
  const handleClick2 = (event) => {
1550
- click(event);
1551
326
  onClick(event);
1552
- if (to2 && history) {
1553
- history[replace ? "replace" : "push"](to2);
1554
- } else if (url) {
1555
- if (url.startsWith("https://") || url.startsWith("http://") || url.startsWith("//")) {
1556
- replace ? window.location.replace(url) : window.location.href = url;
1557
- } else {
1558
- Taro__default["default"].navigateTo({ url });
1559
- }
1560
- }
327
+ const link = to2 || url;
328
+ replace ? Taro__default["default"].redirectTo({ url: link }) : Taro__default["default"].navigateTo({ url: link });
1561
329
  };
1562
330
  const baseStyle = {
1563
331
  borderRadius: Number.isNaN(Number(roundRadius)) ? String(roundRadius) : `${roundRadius}px`
@@ -1628,9 +396,9 @@
1628
396
  CellGroup.displayName = "NutCellGroup";
1629
397
  var classnames = { exports: {} };
1630
398
  /*!
1631
- Copyright (c) 2018 Jed Watson.
1632
- Licensed under the MIT License (MIT), see
1633
- http://jedwatson.github.io/classnames
399
+ Copyright (c) 2018 Jed Watson.
400
+ Licensed under the MIT License (MIT), see
401
+ http://jedwatson.github.io/classnames
1634
402
  */
1635
403
  (function(module2) {
1636
404
  (function() {
@@ -1652,14 +420,14 @@
1652
420
  }
1653
421
  }
1654
422
  } else if (argType === "object") {
1655
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
1656
- classes.push(arg.toString());
1657
- continue;
1658
- }
1659
- for (var key in arg) {
1660
- if (hasOwn.call(arg, key) && arg[key]) {
1661
- classes.push(key);
423
+ if (arg.toString === Object.prototype.toString) {
424
+ for (var key in arg) {
425
+ if (hasOwn.call(arg, key) && arg[key]) {
426
+ classes.push(key);
427
+ }
1662
428
  }
429
+ } else {
430
+ classes.push(arg.toString());
1663
431
  }
1664
432
  }
1665
433
  }
@@ -1753,6 +521,46 @@
1753
521
  };
1754
522
  Overlay.defaultProps = defaultOverlayProps;
1755
523
  Overlay.displayName = "NutOverlay";
524
+ function _extends$3() {
525
+ _extends$3 = Object.assign ? Object.assign.bind() : function(target) {
526
+ for (var i = 1; i < arguments.length; i++) {
527
+ var source = arguments[i];
528
+ for (var key in source) {
529
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
530
+ target[key] = source[key];
531
+ }
532
+ }
533
+ }
534
+ return target;
535
+ };
536
+ return _extends$3.apply(this, arguments);
537
+ }
538
+ function _objectWithoutPropertiesLoose$3(source, excluded) {
539
+ if (source == null)
540
+ return {};
541
+ var target = {};
542
+ var sourceKeys = Object.keys(source);
543
+ var key, i;
544
+ for (i = 0; i < sourceKeys.length; i++) {
545
+ key = sourceKeys[i];
546
+ if (excluded.indexOf(key) >= 0)
547
+ continue;
548
+ target[key] = source[key];
549
+ }
550
+ return target;
551
+ }
552
+ function _setPrototypeOf(o, p) {
553
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
554
+ o2.__proto__ = p2;
555
+ return o2;
556
+ };
557
+ return _setPrototypeOf(o, p);
558
+ }
559
+ function _inheritsLoose(subClass, superClass) {
560
+ subClass.prototype = Object.create(superClass.prototype);
561
+ subClass.prototype.constructor = subClass;
562
+ _setPrototypeOf(subClass, superClass);
563
+ }
1756
564
  function hasClass(element, className) {
1757
565
  if (element.classList)
1758
566
  return !!className && element.classList.contains(className);
@@ -1793,10 +601,10 @@
1793
601
  var EXITING = "exiting";
1794
602
  var Transition = /* @__PURE__ */ function(_React$Component) {
1795
603
  _inheritsLoose(Transition2, _React$Component);
1796
- function Transition2(props, context2) {
604
+ function Transition2(props, context) {
1797
605
  var _this;
1798
- _this = _React$Component.call(this, props, context2) || this;
1799
- var parentGroup = context2;
606
+ _this = _React$Component.call(this, props, context) || this;
607
+ var parentGroup = context;
1800
608
  var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
1801
609
  var initialStatus;
1802
610
  _this.appearStatus = null;
@@ -2039,13 +847,13 @@
2039
847
  Transition.EXITING = EXITING;
2040
848
  var Transition$1 = Transition;
2041
849
  var _addClass = function addClass$1(node, classes) {
2042
- return node && classes && classes.split(" ").forEach(function(c6) {
2043
- return addClass(node, c6);
850
+ return node && classes && classes.split(" ").forEach(function(c) {
851
+ return addClass(node, c);
2044
852
  });
2045
853
  };
2046
854
  var removeClass = function removeClass2(node, classes) {
2047
- return node && classes && classes.split(" ").forEach(function(c6) {
2048
- return removeClass$1(node, c6);
855
+ return node && classes && classes.split(" ").forEach(function(c) {
856
+ return removeClass$1(node, c);
2049
857
  });
2050
858
  };
2051
859
  var CSSTransition = /* @__PURE__ */ function(_React$Component) {
@@ -3649,7 +2457,7 @@
3649
2457
  color: type === "smile" ? color : "",
3650
2458
  background: type === "line" ? color : ""
3651
2459
  };
3652
- const index = titles.current.findIndex((t2) => t2.paneKey === value);
2460
+ const index = titles.current.findIndex((t) => t.paneKey === value);
3653
2461
  const contentStyle = {
3654
2462
  transform: direction === "horizontal" ? `translate3d(-${index * 100}%, 0, 0)` : `translate3d( 0,-${index * 100}%, 0)`,
3655
2463
  transitionDuration: `${animatedTime}ms`
@@ -4133,8 +2941,8 @@
4133
2941
  });
4134
2942
  const getParentOffset = () => {
4135
2943
  setTimeout(async () => {
4136
- const p2 = parent.parent().current;
4137
- const rect = await p2.getBoundingClientRect();
2944
+ const p = parent.parent().current;
2945
+ const rect = await p.getBoundingClientRect();
4138
2946
  setPosition({
4139
2947
  height: rect.height,
4140
2948
  top: rect.top
@@ -4219,11 +3027,11 @@
4219
3027
  MenuItem.defaultProps = defaultProps$$;
4220
3028
  MenuItem.displayName = "NutMenuItem";
4221
3029
  const MIN_DISTANCE = 10;
4222
- function getDirection(x2, y2) {
4223
- if (x2 > y2 && x2 > MIN_DISTANCE) {
3030
+ function getDirection(x, y) {
3031
+ if (x > y && x > MIN_DISTANCE) {
4224
3032
  return "horizontal";
4225
3033
  }
4226
- if (y2 > x2 && y2 > MIN_DISTANCE) {
3034
+ if (y > x && y > MIN_DISTANCE) {
4227
3035
  return "vertical";
4228
3036
  }
4229
3037
  return "";
@@ -4876,8 +3684,8 @@
4876
3684
  Range.defaultProps = defaultProps$Y;
4877
3685
  Range.displayName = "NutRange";
4878
3686
  const Utils = {
4879
- isLeapYear(y2) {
4880
- return y2 % 4 == 0 && y2 % 100 != 0 || y2 % 400 == 0;
3687
+ isLeapYear(y) {
3688
+ return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
4881
3689
  },
4882
3690
  getWhatDay(year, month, day) {
4883
3691
  const date = new Date(`${year}/${month}/${day}`);
@@ -4921,16 +3729,16 @@
4921
3729
  31
4922
3730
  ][month];
4923
3731
  },
4924
- getNumTwoBit(n2) {
4925
- n2 = Number(n2);
4926
- return (n2 > 9 ? "" : "0") + n2;
3732
+ getNumTwoBit(n) {
3733
+ n = Number(n);
3734
+ return (n > 9 ? "" : "0") + n;
4927
3735
  },
4928
3736
  date2Str(date, split) {
4929
3737
  split = split || "-";
4930
- const y2 = date.getFullYear();
4931
- const m2 = this.getNumTwoBit(date.getMonth() + 1);
4932
- const d2 = this.getNumTwoBit(date.getDate());
4933
- return [y2, m2, d2].join(split);
3738
+ const y = date.getFullYear();
3739
+ const m = this.getNumTwoBit(date.getMonth() + 1);
3740
+ const d = this.getNumTwoBit(date.getDate());
3741
+ return [y, m, d].join(split);
4934
3742
  },
4935
3743
  getDay(i) {
4936
3744
  i = i || 0;
@@ -5157,9 +3965,9 @@
5157
3965
  if (type2 === "prev" && days >= 7) {
5158
3966
  days -= 7;
5159
3967
  }
5160
- return Array.from(Array(days), (v2, k2) => {
3968
+ return Array.from(Array(days), (v, k) => {
5161
3969
  return {
5162
- day: k2 + 1,
3970
+ day: k + 1,
5163
3971
  type: type2
5164
3972
  };
5165
3973
  });
@@ -5232,16 +4040,16 @@
5232
4040
  const setMove = (move, type2, time) => {
5233
4041
  var _a, _b;
5234
4042
  let updateMove = move + state.transformY;
5235
- const h2 = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
4043
+ const h = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
5236
4044
  const offsetHeight = ((_b = monthsPanel.current) == null ? void 0 : _b.offsetHeight) || 0;
5237
4045
  if (type2 === "end") {
5238
4046
  if (updateMove > 0) {
5239
4047
  updateMove = 0;
5240
4048
  }
5241
- if (updateMove < 0 && updateMove < -offsetHeight + h2) {
5242
- updateMove = -offsetHeight + h2;
4049
+ if (updateMove < 0 && updateMove < -offsetHeight + h) {
4050
+ updateMove = -offsetHeight + h;
5243
4051
  }
5244
- if (offsetHeight <= h2 && state.monthsData.length === 1) {
4052
+ if (offsetHeight <= h && state.monthsData.length === 1) {
5245
4053
  updateMove = 0;
5246
4054
  }
5247
4055
  setTransform(updateMove, type2, time);
@@ -5249,8 +4057,8 @@
5249
4057
  if (updateMove > 0 && updateMove > 100) {
5250
4058
  updateMove = 100;
5251
4059
  }
5252
- if (updateMove < -offsetHeight + h2 - 100 && state.monthsData.length > 1) {
5253
- updateMove = -offsetHeight + h2 - 100;
4060
+ if (updateMove < -offsetHeight + h - 100 && state.monthsData.length > 1) {
4061
+ updateMove = -offsetHeight + h - 100;
5254
4062
  }
5255
4063
  if (updateMove < 0 && updateMove < -100 && state.monthsData.length === 1) {
5256
4064
  updateMove = -100;
@@ -5287,11 +4095,11 @@
5287
4095
  return false;
5288
4096
  }
5289
4097
  const updateMove = move + state.transformY;
5290
- const h2 = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
4098
+ const h = ((_a = months.current) == null ? void 0 : _a.offsetHeight) || 0;
5291
4099
  const offsetHeight = ((_b = monthsPanel.current) == null ? void 0 : _b.offsetHeight) || 0;
5292
4100
  if (updateMove > 0) {
5293
4101
  getMonth(getCurrData("prev"), "prev");
5294
- } else if (updateMove < 0 && updateMove < -offsetHeight + (Math.abs(move) > h2 ? Math.abs(move) : h2) * 5) {
4102
+ } else if (updateMove < 0 && updateMove < -offsetHeight + (Math.abs(move) > h ? Math.abs(move) : h) * 5) {
5295
4103
  getMonth(getCurrData("next"), "next");
5296
4104
  if (Math.abs(move) >= 300) {
5297
4105
  getMonth(getCurrData("next"), "next");
@@ -5538,7 +4346,7 @@
5538
4346
  childrenLabel.push(childProps.label || child.children);
5539
4347
  });
5540
4348
  const reverse = childrenLabel.filter(
5541
- (c6) => (innerValue == null ? void 0 : innerValue.findIndex((v2) => v2 === c6)) === -1
4349
+ (c) => (innerValue == null ? void 0 : innerValue.findIndex((v) => v === c)) === -1
5542
4350
  );
5543
4351
  setInnerValue(reverse);
5544
4352
  }
@@ -6398,21 +5206,21 @@
6398
5206
  const getDateIndex = (type2) => {
6399
5207
  if (!currentDate)
6400
5208
  return 0;
6401
- let d2 = 0;
5209
+ let d = 0;
6402
5210
  if (type2 === "year") {
6403
- d2 = currentDate.getFullYear();
5211
+ d = currentDate.getFullYear();
6404
5212
  } else if (type2 === "month") {
6405
- d2 = currentDate.getMonth() + 1;
5213
+ d = currentDate.getMonth() + 1;
6406
5214
  } else if (type2 === "day") {
6407
- d2 = currentDate.getDate();
5215
+ d = currentDate.getDate();
6408
5216
  } else if (type2 === "hour") {
6409
- d2 = currentDate.getHours();
5217
+ d = currentDate.getHours();
6410
5218
  } else if (type2 === "minute") {
6411
- d2 = currentDate.getMinutes();
5219
+ d = currentDate.getMinutes();
6412
5220
  } else if (type2 === "seconds") {
6413
- d2 = currentDate.getSeconds();
5221
+ d = currentDate.getSeconds();
6414
5222
  }
6415
- return d2;
5223
+ return d;
6416
5224
  };
6417
5225
  const columns = (date) => {
6418
5226
  const val = ranges(date).map((res, columnIndex) => {
@@ -6535,8 +5343,8 @@
6535
5343
  const iconAddClasses = classNames("nut-inputnumber__icon", {
6536
5344
  "nut-inputnumber__icon--disabled": !addAllow()
6537
5345
  });
6538
- const fixedDecimalPlaces = (v2) => {
6539
- return Number(v2).toFixed(Number(decimalPlaces));
5346
+ const fixedDecimalPlaces = (v) => {
5347
+ return Number(v).toFixed(Number(decimalPlaces));
6540
5348
  };
6541
5349
  const emitChange = (value, e2) => {
6542
5350
  const outputValue = fixedDecimalPlaces(value);
@@ -7115,7 +5923,7 @@
7115
5923
  const [checkedStatement, setCheckedStatement] = React.useState(checked);
7116
5924
  const [valueStatement, setValueStatement] = React.useState(value);
7117
5925
  const [disabledStatement, setDisabledStatement] = React.useState(disabled);
7118
- const context2 = React.useContext(RadioContext);
5926
+ const context = React.useContext(RadioContext);
7119
5927
  React.useEffect(() => {
7120
5928
  setDisabledStatement(disabled);
7121
5929
  setValueStatement(value);
@@ -7164,7 +5972,7 @@
7164
5972
  return;
7165
5973
  setCheckedStatement(!checkedStatement);
7166
5974
  onChange && onChange(e2);
7167
- context2 && context2.onChange(valueStatement);
5975
+ context && context.onChange(valueStatement);
7168
5976
  };
7169
5977
  const reverseState = textPosition === "left";
7170
5978
  return /* @__PURE__ */ React__default["default"].createElement("div", {
@@ -7245,35 +6053,35 @@
7245
6053
  setScore(value);
7246
6054
  onChange && onChange(value);
7247
6055
  };
7248
- const onHalfClick = (event, n2) => {
6056
+ const onHalfClick = (event, n) => {
7249
6057
  event.preventDefault();
7250
6058
  event.stopPropagation();
7251
- const value = Math.max(Number(minimizeValue), n2 - 0.5);
6059
+ const value = Math.max(Number(minimizeValue), n - 0.5);
7252
6060
  setScore(value);
7253
6061
  onChange && onChange(value);
7254
6062
  };
7255
6063
  return /* @__PURE__ */ React__default["default"].createElement("div", {
7256
6064
  className: `${b2()} ${className}`,
7257
6065
  style
7258
- }, countArray.map((n2) => {
6066
+ }, countArray.map((n) => {
7259
6067
  return /* @__PURE__ */ React__default["default"].createElement("div", {
7260
6068
  className: bi(),
7261
- key: n2,
7262
- onClick: (event) => onClick(event, n2),
6069
+ key: n,
6070
+ onClick: (event) => onClick(event, n),
7263
6071
  style: { marginRight: pxCheck2(spacing) }
7264
6072
  }, /* @__PURE__ */ React__default["default"].createElement(Icon, {
7265
6073
  classPrefix: iconClassPrefix,
7266
6074
  fontClassName: iconFontClassName,
7267
6075
  size: iconSize,
7268
- className: `${bi("icon")} ${disabled || n2 > score ? bi("icon--disabled") : ""}`,
7269
- name: n2 <= score ? checkedIcon : uncheckedIcon,
7270
- color: n2 <= score ? activeColor : voidColor
7271
- }), allowHalf && score > n2 - 1 && /* @__PURE__ */ React__default["default"].createElement(Icon, {
6076
+ className: `${bi("icon")} ${disabled || n > score ? bi("icon--disabled") : ""}`,
6077
+ name: n <= score ? checkedIcon : uncheckedIcon,
6078
+ color: n <= score ? activeColor : voidColor
6079
+ }), allowHalf && score > n - 1 && /* @__PURE__ */ React__default["default"].createElement(Icon, {
7272
6080
  classPrefix: iconClassPrefix,
7273
6081
  fontClassName: iconFontClassName,
7274
- onClick: (event) => onHalfClick(event, n2),
6082
+ onClick: (event) => onHalfClick(event, n),
7275
6083
  className: `${bi("icon")} ${bi("icon--half")}`,
7276
- color: n2 <= score ? activeColor : voidColor,
6084
+ color: n <= score ? activeColor : voidColor,
7277
6085
  size: iconSize,
7278
6086
  name: checkedIcon
7279
6087
  }));
@@ -7483,17 +6291,15 @@
7483
6291
  const textareaBem = cn("textarea");
7484
6292
  const [inputValue, SetInputValue] = React.useState("");
7485
6293
  React.useEffect(() => {
7486
- if (defaultValue) {
7487
- let initValue = defaultValue;
7488
- if (maxlength && initValue.length > Number(maxlength)) {
7489
- initValue = initValue.substring(0, Number(maxlength));
7490
- }
7491
- SetInputValue(initValue);
6294
+ let initValue = defaultValue;
6295
+ if (initValue && maxlength && [...initValue].length > Number(maxlength)) {
6296
+ initValue = initValue.substring(0, Number(maxlength));
7492
6297
  }
6298
+ SetInputValue(initValue);
7493
6299
  }, [defaultValue]);
7494
6300
  const textChange = (event) => {
7495
6301
  const text = event.detail;
7496
- if (maxlength && text.value.length > Number(maxlength)) {
6302
+ if (maxlength && [...text.value].length > Number(maxlength)) {
7497
6303
  text.value = text.value.substring(0, Number(maxlength));
7498
6304
  }
7499
6305
  SetInputValue(text.value);
@@ -7544,7 +6350,7 @@
7544
6350
  placeholder: placeholder || locale.placeholder
7545
6351
  }), limitshow ? /* @__PURE__ */ React__default["default"].createElement("div", {
7546
6352
  className: textareaBem("limit")
7547
- }, inputValue.length, "/", maxlength < 0 ? 0 : maxlength) : null);
6353
+ }, [...inputValue].length, "/", maxlength < 0 ? 0 : maxlength) : null);
7548
6354
  };
7549
6355
  TextArea.defaultProps = defaultProps$M;
7550
6356
  TextArea.displayName = "NutTextArea";
@@ -8029,8 +6835,8 @@
8029
6835
  const onChangeFn = (res) => {
8030
6836
  const { tempFiles } = res;
8031
6837
  if (onBeforeUpload) {
8032
- onBeforeUpload(tempFiles).then((f2) => {
8033
- const _files = filterFiles(f2);
6838
+ onBeforeUpload(tempFiles).then((f) => {
6839
+ const _files = filterFiles(f);
8034
6840
  readFile(_files);
8035
6841
  });
8036
6842
  } else {
@@ -8461,9 +7267,9 @@
8461
7267
  if (parent) {
8462
7268
  needToSync = [parent.value];
8463
7269
  state.initLoading = true;
8464
- const last = await currentValue2.slice(1).reduce(async (p2, value2) => {
7270
+ const last = await currentValue2.slice(1).reduce(async (p, value2) => {
8465
7271
  var _a;
8466
- const parent2 = await p2;
7272
+ const parent2 = await p;
8467
7273
  await invokeLazyLoad(parent2);
8468
7274
  const node = (_a = parent2 == null ? void 0 : parent2.children) == null ? void 0 : _a.find(
8469
7275
  (item) => item.value === value2
@@ -9229,10 +8035,10 @@
9229
8035
  e2.preventDefault();
9230
8036
  if (e2.touches.length === 1 && dragRef.current) {
9231
8037
  const touch = e2.touches[0];
9232
- const x2 = touch.clientX - axisCache.current.x;
9233
- const y2 = touch.clientY - axisCache.current.y;
9234
- translateX.current = x2 + transformCache.current.x;
9235
- translateY.current = y2 + transformCache.current.y;
8038
+ const x = touch.clientX - axisCache.current.x;
8039
+ const y = touch.clientY - axisCache.current.y;
8040
+ translateX.current = x + transformCache.current.x;
8041
+ translateY.current = y + transformCache.current.y;
9236
8042
  if (translateX.current < boundaryState.left) {
9237
8043
  translateX.current = boundaryState.left;
9238
8044
  } else if (translateX.current > boundaryState.right) {
@@ -9503,7 +8309,7 @@
9503
8309
  const scrollTop = React.useRef(0);
9504
8310
  const direction = React.useRef("down");
9505
8311
  const isTouching = React.useRef(false);
9506
- const y2 = React.useRef(0);
8312
+ const y = React.useRef(0);
9507
8313
  const refreshMaxH = React.useRef(0);
9508
8314
  const distance = React.useRef(0);
9509
8315
  const b2 = cn("infiniteloading");
@@ -9562,12 +8368,12 @@
9562
8368
  };
9563
8369
  const touchStart = (event) => {
9564
8370
  if (scrollTop.current == 0 && !isTouching.current && isOpenRefresh) {
9565
- y2.current = event.touches[0].pageY;
8371
+ y.current = event.touches[0].pageY;
9566
8372
  isTouching.current = true;
9567
8373
  }
9568
8374
  };
9569
8375
  const touchMove = (event) => {
9570
- distance.current = event.touches[0].pageY - y2.current;
8376
+ distance.current = event.touches[0].pageY - y.current;
9571
8377
  if (distance.current > 0 && isTouching.current) {
9572
8378
  event.preventDefault();
9573
8379
  setTopDisScoll(distance.current);
@@ -9836,11 +8642,11 @@
9836
8642
  const onTouchStart = async (event) => {
9837
8643
  if (leftWrapper.current) {
9838
8644
  const leftRect = await getRectByTaro(leftWrapper.current);
9839
- setActionWidth((v2) => ({ ...v2, left: leftRect.width }));
8645
+ setActionWidth((v) => ({ ...v, left: leftRect.width }));
9840
8646
  }
9841
8647
  if (rightWrapper.current) {
9842
8648
  const rightRect = await getRectByTaro(rightWrapper.current);
9843
- setActionWidth((v2) => ({ ...v2, right: rightRect.width }));
8649
+ setActionWidth((v) => ({ ...v, right: rightRect.width }));
9844
8650
  }
9845
8651
  if (!props.disabled) {
9846
8652
  startOffset.current = state.offset;
@@ -9869,7 +8675,7 @@
9869
8675
  };
9870
8676
  const onTouchEnd = () => {
9871
8677
  if (state.dragging) {
9872
- setState((v2) => ({ ...v2, dragging: false }));
8678
+ setState((v) => ({ ...v, dragging: false }));
9873
8679
  toggle(state.offset > 0 ? "left" : "right");
9874
8680
  setTimeout(() => {
9875
8681
  lockClick.current = false;
@@ -9893,7 +8699,7 @@
9893
8699
  const offset = side === "left" ? leftWidth : -rightWidth;
9894
8700
  const name = props.name;
9895
8701
  (_a = props.onOpen) == null ? void 0 : _a.call(props, { name, position: side });
9896
- setState((v2) => ({ ...v2, offset: Number(offset) || 0 }));
8702
+ setState((v) => ({ ...v, offset: Number(offset) || 0 }));
9897
8703
  };
9898
8704
  const close = (position) => {
9899
8705
  var _a;
@@ -9904,7 +8710,7 @@
9904
8710
  position: position || "left"
9905
8711
  });
9906
8712
  }
9907
- setState((v2) => ({ ...v2, offset: 0 }));
8713
+ setState((v) => ({ ...v, offset: 0 }));
9908
8714
  };
9909
8715
  const rangeCalculation = (num, min, max) => {
9910
8716
  return Math.min(Math.max(Number(num), Number(min)), Number(max));
@@ -9963,14 +8769,14 @@
9963
8769
  });
9964
8770
  Swipe.defaultProps = defaultProps$y;
9965
8771
  Swipe.displayName = "NutSwipe";
9966
- function clamp(v2, min, max) {
9967
- return Math.max(min, Math.min(v2, max));
8772
+ function clamp(v, min, max) {
8773
+ return Math.max(min, Math.min(v, max));
9968
8774
  }
9969
8775
  const V = {
9970
- toVector(v2, fallback) {
9971
- if (v2 === void 0)
9972
- v2 = fallback;
9973
- return Array.isArray(v2) ? v2 : [v2, v2];
8776
+ toVector(v, fallback) {
8777
+ if (v === void 0)
8778
+ v = fallback;
8779
+ return Array.isArray(v) ? v : [v, v];
9974
8780
  },
9975
8781
  add(v1, v2) {
9976
8782
  return [v1[0] + v2[0], v1[1] + v2[1]];
@@ -10149,11 +8955,11 @@
10149
8955
  }
10150
8956
  return payload;
10151
8957
  }
10152
- function call$1(v2, ...args) {
10153
- if (typeof v2 === "function") {
10154
- return v2(...args);
8958
+ function call$1(v, ...args) {
8959
+ if (typeof v === "function") {
8960
+ return v(...args);
10155
8961
  } else {
10156
- return v2;
8962
+ return v;
10157
8963
  }
10158
8964
  }
10159
8965
  function noop$1() {
@@ -10418,20 +9224,20 @@
10418
9224
  }
10419
9225
  state._blocked = (config2.lockDirection || !!config2.axis) && !state.axis || !!config2.axis && config2.axis !== state.axis;
10420
9226
  }
10421
- restrictToAxis(v2) {
9227
+ restrictToAxis(v) {
10422
9228
  if (this.config.axis || this.config.lockDirection) {
10423
9229
  switch (this.state.axis) {
10424
9230
  case "x":
10425
- v2[1] = 0;
9231
+ v[1] = 0;
10426
9232
  break;
10427
9233
  case "y":
10428
- v2[0] = 0;
9234
+ v[0] = 0;
10429
9235
  break;
10430
9236
  }
10431
9237
  }
10432
9238
  }
10433
9239
  }
10434
- const identity = (v2) => v2;
9240
+ const identity = (v) => v;
10435
9241
  const DEFAULT_RUBBERBAND = 0.15;
10436
9242
  const commonConfigResolver = {
10437
9243
  enabled(value = true) {
@@ -10915,11 +9721,11 @@
10915
9721
  return [D.min, D.max];
10916
9722
  };
10917
9723
  const _angleBounds = (state) => {
10918
- const A2 = assignDefault(call$1(angleBounds, state), {
9724
+ const A = assignDefault(call$1(angleBounds, state), {
10919
9725
  min: -Infinity,
10920
9726
  max: Infinity
10921
9727
  });
10922
- return [A2.min, A2.max];
9728
+ return [A.min, A.max];
10923
9729
  };
10924
9730
  if (typeof scaleBounds !== "function" && typeof angleBounds !== "function")
10925
9731
  return [_scaleBounds(), _angleBounds()];
@@ -11272,7 +10078,7 @@
11272
10078
  raf.setTimeout = (handler, ms) => {
11273
10079
  let time = raf.now() + ms;
11274
10080
  let cancel = () => {
11275
- let i = timeouts.findIndex((t2) => t2.cancel == cancel);
10081
+ let i = timeouts.findIndex((t) => t.cancel == cancel);
11276
10082
  if (~i)
11277
10083
  timeouts.splice(i, 1);
11278
10084
  pendingCount -= ~i ? 1 : 0;
@@ -11287,7 +10093,7 @@
11287
10093
  start();
11288
10094
  return timeout;
11289
10095
  };
11290
- let findTimeout = (time) => ~(~timeouts.findIndex((t2) => t2.time > time) || ~timeouts.length);
10096
+ let findTimeout = (time) => ~(~timeouts.findIndex((t) => t.time > time) || ~timeouts.length);
11291
10097
  raf.cancel = (fn) => {
11292
10098
  onStartQueue.delete(fn);
11293
10099
  onFrameQueue.delete(fn);
@@ -11368,7 +10174,7 @@
11368
10174
  ts = raf.now();
11369
10175
  let count = findTimeout(ts);
11370
10176
  if (count) {
11371
- eachSafely(timeouts.splice(0, count), (t2) => t2.handler());
10177
+ eachSafely(timeouts.splice(0, count), (t) => t.handler());
11372
10178
  pendingCount -= count;
11373
10179
  }
11374
10180
  if (!pendingCount) {
@@ -11774,26 +10580,26 @@
11774
10580
  }
11775
10581
  return null;
11776
10582
  }
11777
- function hue2rgb(p2, q2, t2) {
11778
- if (t2 < 0)
11779
- t2 += 1;
11780
- if (t2 > 1)
11781
- t2 -= 1;
11782
- if (t2 < 1 / 6)
11783
- return p2 + (q2 - p2) * 6 * t2;
11784
- if (t2 < 1 / 2)
11785
- return q2;
11786
- if (t2 < 2 / 3)
11787
- return p2 + (q2 - p2) * (2 / 3 - t2) * 6;
11788
- return p2;
10583
+ function hue2rgb(p, q, t) {
10584
+ if (t < 0)
10585
+ t += 1;
10586
+ if (t > 1)
10587
+ t -= 1;
10588
+ if (t < 1 / 6)
10589
+ return p + (q - p) * 6 * t;
10590
+ if (t < 1 / 2)
10591
+ return q;
10592
+ if (t < 2 / 3)
10593
+ return p + (q - p) * (2 / 3 - t) * 6;
10594
+ return p;
11789
10595
  }
11790
- function hslToRgb(h2, s, l2) {
11791
- const q2 = l2 < 0.5 ? l2 * (1 + s) : l2 + s - l2 * s;
11792
- const p2 = 2 * l2 - q2;
11793
- const r2 = hue2rgb(p2, q2, h2 + 1 / 3);
11794
- const g2 = hue2rgb(p2, q2, h2);
11795
- const b2 = hue2rgb(p2, q2, h2 - 1 / 3);
11796
- return Math.round(r2 * 255) << 24 | Math.round(g2 * 255) << 16 | Math.round(b2 * 255) << 8;
10596
+ function hslToRgb(h, s, l) {
10597
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
10598
+ const p = 2 * l - q;
10599
+ const r2 = hue2rgb(p, q, h + 1 / 3);
10600
+ const g = hue2rgb(p, q, h);
10601
+ const b2 = hue2rgb(p, q, h - 1 / 3);
10602
+ return Math.round(r2 * 255) << 24 | Math.round(g * 255) << 16 | Math.round(b2 * 255) << 8;
11797
10603
  }
11798
10604
  function parse255(str) {
11799
10605
  const int = parseInt(str, 10);
@@ -11829,10 +10635,10 @@
11829
10635
  return input;
11830
10636
  int32Color = int32Color || 0;
11831
10637
  let r2 = (int32Color & 4278190080) >>> 24;
11832
- let g2 = (int32Color & 16711680) >>> 16;
10638
+ let g = (int32Color & 16711680) >>> 16;
11833
10639
  let b2 = (int32Color & 65280) >>> 8;
11834
10640
  let a = (int32Color & 255) / 255;
11835
- return `rgba(${r2}, ${g2}, ${b2}, ${a})`;
10641
+ return `rgba(${r2}, ${g}, ${b2}, ${a})`;
11836
10642
  }
11837
10643
  const createInterpolator = (range, output, extrapolate) => {
11838
10644
  if (is.fun(range)) {
@@ -11853,7 +10659,7 @@
11853
10659
  const inputRange = config2.range || [0, 1];
11854
10660
  const extrapolateLeft = config2.extrapolateLeft || config2.extrapolate || "extend";
11855
10661
  const extrapolateRight = config2.extrapolateRight || config2.extrapolate || "extend";
11856
- const easing = config2.easing || ((t2) => t2);
10662
+ const easing = config2.easing || ((t) => t);
11857
10663
  return (input) => {
11858
10664
  const range2 = findRange(input, inputRange);
11859
10665
  return interpolate(input, inputRange[range2], inputRange[range2 + 1], outputRange[range2], outputRange[range2 + 1], easing, extrapolateLeft, extrapolateRight, config2.map);
@@ -11899,7 +10705,7 @@
11899
10705
  return i - 1;
11900
10706
  }
11901
10707
  function _extends$2() {
11902
- _extends$2 = Object.assign ? Object.assign.bind() : function(target) {
10708
+ _extends$2 = Object.assign || function(target) {
11903
10709
  for (var i = 1; i < arguments.length; i++) {
11904
10710
  var source = arguments[i];
11905
10711
  for (var key in source) {
@@ -12312,7 +11118,7 @@
12312
11118
  return parentNode ? parentNode.constructor : is.arr(value) ? AnimatedArray : isAnimatedString(value) ? AnimatedString : AnimatedValue;
12313
11119
  }
12314
11120
  function _extends$1() {
12315
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
11121
+ _extends$1 = Object.assign || function(target) {
12316
11122
  for (var i = 1; i < arguments.length; i++) {
12317
11123
  var source = arguments[i];
12318
11124
  for (var key in source) {
@@ -12431,7 +11237,7 @@
12431
11237
  };
12432
11238
  const getDisplayName = (arg) => is.str(arg) ? arg : arg && is.str(arg.displayName) ? arg.displayName : is.fun(arg) && arg.name || null;
12433
11239
  function _extends() {
12434
- _extends = Object.assign ? Object.assign.bind() : function(target) {
11240
+ _extends = Object.assign || function(target) {
12435
11241
  for (var i = 1; i < arguments.length; i++) {
12436
11242
  var source = arguments[i];
12437
11243
  for (var key in source) {
@@ -12584,51 +11390,51 @@
12584
11390
  const c3 = c1 + 1;
12585
11391
  const c4 = 2 * Math.PI / 3;
12586
11392
  const c5 = 2 * Math.PI / 4.5;
12587
- const bounceOut = (x2) => {
11393
+ const bounceOut = (x) => {
12588
11394
  const n1 = 7.5625;
12589
11395
  const d1 = 2.75;
12590
- if (x2 < 1 / d1) {
12591
- return n1 * x2 * x2;
12592
- } else if (x2 < 2 / d1) {
12593
- return n1 * (x2 -= 1.5 / d1) * x2 + 0.75;
12594
- } else if (x2 < 2.5 / d1) {
12595
- return n1 * (x2 -= 2.25 / d1) * x2 + 0.9375;
11396
+ if (x < 1 / d1) {
11397
+ return n1 * x * x;
11398
+ } else if (x < 2 / d1) {
11399
+ return n1 * (x -= 1.5 / d1) * x + 0.75;
11400
+ } else if (x < 2.5 / d1) {
11401
+ return n1 * (x -= 2.25 / d1) * x + 0.9375;
12596
11402
  } else {
12597
- return n1 * (x2 -= 2.625 / d1) * x2 + 0.984375;
11403
+ return n1 * (x -= 2.625 / d1) * x + 0.984375;
12598
11404
  }
12599
11405
  };
12600
11406
  const easings = {
12601
- linear: (x2) => x2,
12602
- easeInQuad: (x2) => x2 * x2,
12603
- easeOutQuad: (x2) => 1 - (1 - x2) * (1 - x2),
12604
- easeInOutQuad: (x2) => x2 < 0.5 ? 2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 2) / 2,
12605
- easeInCubic: (x2) => x2 * x2 * x2,
12606
- easeOutCubic: (x2) => 1 - Math.pow(1 - x2, 3),
12607
- easeInOutCubic: (x2) => x2 < 0.5 ? 4 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 3) / 2,
12608
- easeInQuart: (x2) => x2 * x2 * x2 * x2,
12609
- easeOutQuart: (x2) => 1 - Math.pow(1 - x2, 4),
12610
- easeInOutQuart: (x2) => x2 < 0.5 ? 8 * x2 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 4) / 2,
12611
- easeInQuint: (x2) => x2 * x2 * x2 * x2 * x2,
12612
- easeOutQuint: (x2) => 1 - Math.pow(1 - x2, 5),
12613
- easeInOutQuint: (x2) => x2 < 0.5 ? 16 * x2 * x2 * x2 * x2 * x2 : 1 - Math.pow(-2 * x2 + 2, 5) / 2,
12614
- easeInSine: (x2) => 1 - Math.cos(x2 * Math.PI / 2),
12615
- easeOutSine: (x2) => Math.sin(x2 * Math.PI / 2),
12616
- easeInOutSine: (x2) => -(Math.cos(Math.PI * x2) - 1) / 2,
12617
- easeInExpo: (x2) => x2 === 0 ? 0 : Math.pow(2, 10 * x2 - 10),
12618
- easeOutExpo: (x2) => x2 === 1 ? 1 : 1 - Math.pow(2, -10 * x2),
12619
- easeInOutExpo: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : x2 < 0.5 ? Math.pow(2, 20 * x2 - 10) / 2 : (2 - Math.pow(2, -20 * x2 + 10)) / 2,
12620
- easeInCirc: (x2) => 1 - Math.sqrt(1 - Math.pow(x2, 2)),
12621
- easeOutCirc: (x2) => Math.sqrt(1 - Math.pow(x2 - 1, 2)),
12622
- easeInOutCirc: (x2) => x2 < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x2, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x2 + 2, 2)) + 1) / 2,
12623
- easeInBack: (x2) => c3 * x2 * x2 * x2 - c1 * x2 * x2,
12624
- easeOutBack: (x2) => 1 + c3 * Math.pow(x2 - 1, 3) + c1 * Math.pow(x2 - 1, 2),
12625
- easeInOutBack: (x2) => x2 < 0.5 ? Math.pow(2 * x2, 2) * ((c2 + 1) * 2 * x2 - c2) / 2 : (Math.pow(2 * x2 - 2, 2) * ((c2 + 1) * (x2 * 2 - 2) + c2) + 2) / 2,
12626
- easeInElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : -Math.pow(2, 10 * x2 - 10) * Math.sin((x2 * 10 - 10.75) * c4),
12627
- easeOutElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : Math.pow(2, -10 * x2) * Math.sin((x2 * 10 - 0.75) * c4) + 1,
12628
- easeInOutElastic: (x2) => x2 === 0 ? 0 : x2 === 1 ? 1 : x2 < 0.5 ? -(Math.pow(2, 20 * x2 - 10) * Math.sin((20 * x2 - 11.125) * c5)) / 2 : Math.pow(2, -20 * x2 + 10) * Math.sin((20 * x2 - 11.125) * c5) / 2 + 1,
12629
- easeInBounce: (x2) => 1 - bounceOut(1 - x2),
11407
+ linear: (x) => x,
11408
+ easeInQuad: (x) => x * x,
11409
+ easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
11410
+ easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
11411
+ easeInCubic: (x) => x * x * x,
11412
+ easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
11413
+ easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
11414
+ easeInQuart: (x) => x * x * x * x,
11415
+ easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
11416
+ easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
11417
+ easeInQuint: (x) => x * x * x * x * x,
11418
+ easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
11419
+ easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
11420
+ easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
11421
+ easeOutSine: (x) => Math.sin(x * Math.PI / 2),
11422
+ easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
11423
+ easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
11424
+ easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
11425
+ easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
11426
+ easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
11427
+ easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
11428
+ easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
11429
+ easeInBack: (x) => c3 * x * x * x - c1 * x * x,
11430
+ easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
11431
+ easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
11432
+ easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
11433
+ easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
11434
+ easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
11435
+ easeInBounce: (x) => 1 - bounceOut(1 - x),
12630
11436
  easeOutBounce: bounceOut,
12631
- easeInOutBounce: (x2) => x2 < 0.5 ? (1 - bounceOut(1 - 2 * x2)) / 2 : (1 + bounceOut(2 * x2 - 1)) / 2
11437
+ easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2
12632
11438
  };
12633
11439
  const defaults = _extends({}, config.default, {
12634
11440
  mass: 1,
@@ -12895,7 +11701,7 @@
12895
11701
  })();
12896
11702
  }
12897
11703
  function stopAsync(state, cancelId) {
12898
- flush(state.timeouts, (t2) => t2.cancel());
11704
+ flush(state.timeouts, (t) => t.cancel());
12899
11705
  state.pauseQueue.clear();
12900
11706
  state.resumeQueue.clear();
12901
11707
  state.asyncId = state.asyncTo = state.promise = void 0;
@@ -13064,9 +11870,8 @@
13064
11870
  const from = anim.fromValues[i];
13065
11871
  const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i] : config2.velocity;
13066
11872
  let velocity;
13067
- const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
13068
11873
  if (!is.und(config2.duration)) {
13069
- let p2 = 1;
11874
+ let p = 1;
13070
11875
  if (config2.duration > 0) {
13071
11876
  if (this._memoizedDuration !== config2.duration) {
13072
11877
  this._memoizedDuration = config2.duration;
@@ -13075,21 +11880,22 @@
13075
11880
  elapsed = node2.elapsedTime += dt;
13076
11881
  }
13077
11882
  }
13078
- p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
13079
- p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
13080
- node2.durationProgress = p2;
11883
+ p = (config2.progress || 0) + elapsed / this._memoizedDuration;
11884
+ p = p > 1 ? 1 : p < 0 ? 0 : p;
11885
+ node2.durationProgress = p;
13081
11886
  }
13082
- position = from + config2.easing(p2) * (to2 - from);
11887
+ position = from + config2.easing(p) * (to2 - from);
13083
11888
  velocity = (position - node2.lastPosition) / dt;
13084
- finished = p2 == 1;
11889
+ finished = p == 1;
13085
11890
  } else if (config2.decay) {
13086
11891
  const decay = config2.decay === true ? 0.998 : config2.decay;
13087
11892
  const e2 = Math.exp(-(1 - decay) * elapsed);
13088
11893
  position = from + v0 / (1 - decay) * (1 - e2);
13089
- finished = Math.abs(node2.lastPosition - position) <= precision;
11894
+ finished = Math.abs(node2.lastPosition - position) < 0.1;
13090
11895
  velocity = v0 * e2;
13091
11896
  } else {
13092
11897
  velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
11898
+ const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
13093
11899
  const restVelocity = config2.restVelocity || precision / 10;
13094
11900
  const bounceFactor = config2.clamp ? 0 : config2.bounce;
13095
11901
  const canBounce = !is.und(bounceFactor);
@@ -13098,7 +11904,7 @@
13098
11904
  let isBouncing = false;
13099
11905
  const step = 1;
13100
11906
  const numSteps = Math.ceil(dt / step);
13101
- for (let n2 = 0; n2 < numSteps; ++n2) {
11907
+ for (let n = 0; n < numSteps; ++n) {
13102
11908
  isMoving = Math.abs(velocity) > restVelocity;
13103
11909
  if (!isMoving) {
13104
11910
  finished = Math.abs(to2 - position) <= precision;
@@ -14079,9 +12885,9 @@
14079
12885
  }
14080
12886
  }
14081
12887
  const springs = ctrls.current.map((ctrl, i) => getSprings(ctrl, updates[i]));
14082
- const context2 = React.useContext(SpringContext);
14083
- const prevContext = usePrev(context2);
14084
- const hasContext = context2 !== prevContext && hasProps(context2);
12888
+ const context = React.useContext(SpringContext);
12889
+ const prevContext = usePrev(context);
12890
+ const hasContext = context !== prevContext && hasProps(context);
14085
12891
  useIsomorphicLayoutEffect(() => {
14086
12892
  layoutId.current++;
14087
12893
  state.ctrls = ctrls.current;
@@ -14096,7 +12902,7 @@
14096
12902
  ref == null ? void 0 : ref.add(ctrl);
14097
12903
  if (hasContext) {
14098
12904
  ctrl.start({
14099
- default: context2
12905
+ default: context
14100
12906
  });
14101
12907
  }
14102
12908
  const update2 = updates[i];
@@ -14113,7 +12919,7 @@
14113
12919
  useOnce(() => () => {
14114
12920
  each(state.ctrls, (ctrl) => ctrl.stop(true));
14115
12921
  });
14116
- const values = springs.map((x2) => _extends({}, x2));
12922
+ const values = springs.map((x) => _extends({}, x));
14117
12923
  return ref ? [values, ref] : values;
14118
12924
  }
14119
12925
  function useSpring(props, deps) {
@@ -14268,7 +13074,7 @@
14268
13074
  scrollLeft
14269
13075
  } = _ref, attributes = _objectWithoutPropertiesLoose(_ref, _excluded$2);
14270
13076
  const values = Object.values(attributes);
14271
- const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n2) => "-" + n2.toLowerCase())));
13077
+ const names = Object.keys(attributes).map((name) => isFilterElement || instance.hasAttribute(name) ? name : attributeCache[name] || (attributeCache[name] = name.replace(/([A-Z])/g, (n) => "-" + n.toLowerCase())));
14272
13078
  if (children !== void 0) {
14273
13079
  instance.textContent = children;
14274
13080
  }
@@ -14346,19 +13152,19 @@
14346
13152
  const pxTransforms = /^(translate)/;
14347
13153
  const degTransforms = /^(rotate|skew)/;
14348
13154
  const addUnit = (value, unit) => is.num(value) && value !== 0 ? value + unit : value;
14349
- const isValueIdentity = (value, id) => is.arr(value) ? value.every((v2) => isValueIdentity(v2, id)) : is.num(value) ? value === id : parseFloat(value) === id;
13155
+ const isValueIdentity = (value, id) => is.arr(value) ? value.every((v) => isValueIdentity(v, id)) : is.num(value) ? value === id : parseFloat(value) === id;
14350
13156
  class AnimatedStyle extends AnimatedObject {
14351
13157
  constructor(_ref) {
14352
13158
  let {
14353
- x: x2,
14354
- y: y2,
14355
- z: z2
13159
+ x,
13160
+ y,
13161
+ z
14356
13162
  } = _ref, style = _objectWithoutPropertiesLoose(_ref, _excluded$1);
14357
13163
  const inputs = [];
14358
13164
  const transforms = [];
14359
- if (x2 || y2 || z2) {
14360
- inputs.push([x2 || 0, y2 || 0, z2 || 0]);
14361
- transforms.push((xyz) => [`translate3d(${xyz.map((v2) => addUnit(v2, "px")).join(",")})`, isValueIdentity(xyz, 0)]);
13165
+ if (x || y || z) {
13166
+ inputs.push([x || 0, y || 0, z || 0]);
13167
+ transforms.push((xyz) => [`translate3d(${xyz.map((v) => addUnit(v, "px")).join(",")})`, isValueIdentity(xyz, 0)]);
14362
13168
  }
14363
13169
  eachProp(style, (value, key) => {
14364
13170
  if (key === "transform") {
@@ -14370,7 +13176,7 @@
14370
13176
  return;
14371
13177
  const unit = pxTransforms.test(key) ? "px" : degTransforms.test(key) ? "deg" : "";
14372
13178
  inputs.push(toArray(value));
14373
- transforms.push(key === "rotate3d" ? ([x3, y3, z3, deg]) => [`rotate3d(${x3},${y3},${z3},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v2) => addUnit(v2, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
13179
+ transforms.push(key === "rotate3d" ? ([x2, y2, z2, deg]) => [`rotate3d(${x2},${y2},${z2},${addUnit(deg, unit)})`, isValueIdentity(deg, 0)] : (input) => [`${key}(${input.map((v) => addUnit(v, unit)).join(",")})`, isValueIdentity(input, key.startsWith("scale") ? 1 : 0)]);
14374
13180
  }
14375
13181
  });
14376
13182
  if (inputs.length) {
@@ -14394,8 +13200,8 @@
14394
13200
  let identity2 = true;
14395
13201
  each(this.inputs, (input, i) => {
14396
13202
  const arg1 = getFluidValue(input[0]);
14397
- const [t2, id] = this.transforms[i](is.arr(arg1) ? arg1 : input.map(getFluidValue));
14398
- transform += " " + t2;
13203
+ const [t, id] = this.transforms[i](is.arr(arg1) ? arg1 : input.map(getFluidValue));
13204
+ transform += " " + t;
14399
13205
  identity2 = identity2 && id;
14400
13206
  });
14401
13207
  return identity2 ? "none" : transform;
@@ -14500,16 +13306,16 @@
14500
13306
  onRefresh: () => {
14501
13307
  }
14502
13308
  };
14503
- const PullToRefresh = (p2) => {
13309
+ const PullToRefresh = (p) => {
14504
13310
  const { locale } = useConfig$1();
14505
13311
  const props = {
14506
13312
  ...defaultProps$x,
14507
- ...p2,
13313
+ ...p,
14508
13314
  ...{
14509
- pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
14510
- canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
14511
- refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
14512
- completeText: p2.completeText || locale.pullToRefresh.completeText
13315
+ pullingText: p.pullingText || locale.pullToRefresh.pullingText,
13316
+ canReleaseText: p.canReleaseText || locale.pullToRefresh.canReleaseText,
13317
+ refreshingText: p.refreshingText || locale.pullToRefresh.refreshingText,
13318
+ completeText: p.completeText || locale.pullToRefresh.completeText
14513
13319
  }
14514
13320
  };
14515
13321
  const headHeight = props.headHeight;
@@ -14572,8 +13378,8 @@
14572
13378
  function getScrollTop(element) {
14573
13379
  return "scrollTop" in element ? element.scrollTop : element.scrollY;
14574
13380
  }
14575
- const [, y2] = state.movement;
14576
- if (state.first && y2 > 0) {
13381
+ const [, y] = state.movement;
13382
+ if (state.first && y > 0) {
14577
13383
  const target = state.event.target;
14578
13384
  if (!target || !(target instanceof Element))
14579
13385
  return;
@@ -14599,7 +13405,7 @@
14599
13405
  }
14600
13406
  event.stopPropagation();
14601
13407
  const height = Math.max(
14602
- rubberbandIfOutOfBounds(y2, 0, 0, headHeight * 5, 0.5),
13408
+ rubberbandIfOutOfBounds(y, 0, 0, headHeight * 5, 0.5),
14603
13409
  0
14604
13410
  );
14605
13411
  api.start({ height });
@@ -14754,12 +13560,12 @@
14754
13560
  const offset = perimeter * Number(format(parseFloat(progress2.toFixed(1)))) / 100;
14755
13561
  const isWise = props.clockwise ? 1 : 0;
14756
13562
  const color = isObject(circleColor) ? `url(%23${refRandomId})` : transColor(circleColor);
14757
- const d2 = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
13563
+ const d = `M 50 50 m 0 -45 a 45 45 0 1 ${isWise} 0 90 a 45 45 0 1, ${isWise} 0 -90`;
14758
13564
  const pa = `%3Cdefs%3E%3ClinearGradient id='${refRandomId}' x1='100%25' y1='0%25' x2='0%25' y2='0%25'%3E${stopDom}%3C/linearGradient%3E%3C/defs%3E`;
14759
- const path = `%3Cpath d='${d2}' stroke-width='${strokeWidth}' stroke='${transColor(
13565
+ const path = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke='${transColor(
14760
13566
  props.pathColor
14761
13567
  )}' fill='none'/%3E`;
14762
- const path1 = `%3Cpath d='${d2}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
13568
+ const path1 = `%3Cpath d='${d}' stroke-width='${strokeWidth}' stroke-dasharray='${offset},${perimeter}' stroke-linecap='round' stroke='${transColor(
14763
13569
  color
14764
13570
  )}' fill='none'/%3E`;
14765
13571
  return {
@@ -14948,7 +13754,7 @@
14948
13754
  }, Number(standTime) + 100 * speed);
14949
13755
  SetTimer(timerCurr);
14950
13756
  };
14951
- const scroll = (n2, last) => {
13757
+ const scroll = (n, last) => {
14952
13758
  SetAnimate(true);
14953
13759
  setTimeout(() => {
14954
13760
  let long = distance;
@@ -14960,7 +13766,7 @@
14960
13766
  SetDistance(0);
14961
13767
  SetAnimate(false);
14962
13768
  }
14963
- }, n2 * speed);
13769
+ }, n * speed);
14964
13770
  };
14965
13771
  const handleClickIcon = (event) => {
14966
13772
  event.stopPropagation();
@@ -15421,10 +14227,10 @@
15421
14227
  const range = (num, min, max) => {
15422
14228
  return Math.min(Math.max(num, min), max);
15423
14229
  };
15424
- const getDirection2 = (x2, y2) => {
15425
- if (x2 > y2 && x2 > DISTANCE)
14230
+ const getDirection2 = (x, y) => {
14231
+ if (x > y && x > DISTANCE)
15426
14232
  return "horizontal";
15427
- if (y2 > x2 && y2 > DISTANCE)
14233
+ if (y > x && y > DISTANCE)
15428
14234
  return "vertical";
15429
14235
  return "";
15430
14236
  };
@@ -16204,7 +15010,7 @@
16204
15010
  };
16205
15011
  const filter = () => {
16206
15012
  const ms = ["top", "bottom", "left", "right"];
16207
- return ms.filter((m2) => location.includes(m2))[0];
15013
+ return ms.filter((m) => location.includes(m))[0];
16208
15014
  };
16209
15015
  const popoverArrowSelf = () => {
16210
15016
  const prefixCls = "popover-arrow";
@@ -16298,7 +15104,7 @@
16298
15104
  [`avatarClass--${avatarShape}`]: avatarShape
16299
15105
  });
16300
15106
  const repeatLines = (num) => {
16301
- return Array.from({ length: num }, (v2, i) => i);
15107
+ return Array.from({ length: num }, (v, i) => i);
16302
15108
  };
16303
15109
  const getStyle = () => {
16304
15110
  if (avatarSize) {
@@ -16385,9 +15191,9 @@
16385
15191
  const getTimeStamp = (timeStr) => {
16386
15192
  if (!timeStr)
16387
15193
  return Date.now();
16388
- let t2 = timeStr;
16389
- t2 = t2 > 0 ? +t2 : t2.toString().replace(/-/g, "/");
16390
- return new Date(t2).getTime();
15194
+ let t = timeStr;
15195
+ t = t > 0 ? +t : t.toString().replace(/-/g, "/");
15196
+ return new Date(t).getTime();
16391
15197
  };
16392
15198
  const initTime = () => {
16393
15199
  stateRef.current.handleEndTime = endTime;
@@ -16417,8 +15223,8 @@
16417
15223
  }
16418
15224
  });
16419
15225
  };
16420
- const formatRemainTime = (t2, type) => {
16421
- const ts2 = t2;
15226
+ const formatRemainTime = (t, type) => {
15227
+ const ts2 = t;
16422
15228
  const rest2 = {
16423
15229
  d: 0,
16424
15230
  h: 0,
@@ -16440,23 +15246,23 @@
16440
15246
  return type === "custom" ? rest2 : parseFormat({ ...rest2 });
16441
15247
  };
16442
15248
  const parseFormat = (time2) => {
16443
- const { d: d2 } = time2;
16444
- let { h: h2, m: m2, s, ms } = time2;
15249
+ const { d } = time2;
15250
+ let { h, m, s, ms } = time2;
16445
15251
  let formatCache = format;
16446
15252
  if (formatCache.includes("DD")) {
16447
- formatCache = formatCache.replace("DD", padZero(d2));
15253
+ formatCache = formatCache.replace("DD", padZero(d));
16448
15254
  } else {
16449
- h2 += Number(d2) * 24;
15255
+ h += Number(d) * 24;
16450
15256
  }
16451
15257
  if (formatCache.includes("HH")) {
16452
- formatCache = formatCache.replace("HH", padZero(h2));
15258
+ formatCache = formatCache.replace("HH", padZero(h));
16453
15259
  } else {
16454
- m2 += Number(h2) * 60;
15260
+ m += Number(h) * 60;
16455
15261
  }
16456
15262
  if (formatCache.includes("mm")) {
16457
- formatCache = formatCache.replace("mm", padZero(m2));
15263
+ formatCache = formatCache.replace("mm", padZero(m));
16458
15264
  } else {
16459
- s += Number(m2) * 60;
15265
+ s += Number(m) * 60;
16460
15266
  }
16461
15267
  if (formatCache.includes("ss")) {
16462
15268
  formatCache = formatCache.replace("ss", padZero(s));
@@ -16796,7 +15602,7 @@
16796
15602
  const b2 = cn("countup");
16797
15603
  const countupRef = React.useRef(null);
16798
15604
  const timerRef = React.useRef(0);
16799
- const numbers = Array.from({ length: 10 }, (v2, i) => i);
15605
+ const numbers = Array.from({ length: 10 }, (v, i) => i);
16800
15606
  const getShowNumber = () => {
16801
15607
  const splitArr = endNumber.split(".");
16802
15608
  const intNumber = maxLen && splitArr[0].length < maxLen ? (Array(maxLen).join("0") + splitArr[0]).slice(-maxLen) : splitArr[0];
@@ -17039,16 +15845,16 @@
17039
15845
  if (sizeKey === "width") {
17040
15846
  newPos[index].right -= dValue;
17041
15847
  newPos[index][sizeKey] = nowSize;
17042
- for (let k2 = index + 1; k2 < positions.length; k2++) {
17043
- newPos[k2].left = positions[k2 - 1].right;
17044
- newPos[k2].right -= dValue;
15848
+ for (let k = index + 1; k < positions.length; k++) {
15849
+ newPos[k].left = positions[k - 1].right;
15850
+ newPos[k].right -= dValue;
17045
15851
  }
17046
15852
  } else if (sizeKey === "height") {
17047
15853
  newPos[index].bottom -= dValue;
17048
15854
  newPos[index][sizeKey] = nowSize;
17049
- for (let k2 = index + 1; k2 < positions.length; k2++) {
17050
- newPos[k2].top = positions[k2 - 1].bottom;
17051
- newPos[k2].bottom -= dValue;
15855
+ for (let k = index + 1; k < positions.length; k++) {
15856
+ newPos[k].top = positions[k - 1].bottom;
15857
+ newPos[k].bottom -= dValue;
17052
15858
  }
17053
15859
  }
17054
15860
  }