@solar-taro/ui-vant 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/cascader/index.scss +7 -2
  3. package/cascader/index.vue.d.ts +102 -0
  4. package/cascader-picker/index.vue.d.ts +6 -6
  5. package/date-range-picker/index.vue.d.ts +3 -3
  6. package/index.d.ts +1 -0
  7. package/index.js +24 -22
  8. package/index10.js +50 -243
  9. package/index100.js +5 -4
  10. package/index101.js +7 -4
  11. package/index102.js +17 -5
  12. package/index103.js +10 -6
  13. package/index104.js +6 -10
  14. package/index105.js +4 -6
  15. package/index106.js +4 -6
  16. package/index107.js +5 -17
  17. package/index108.js +6 -4
  18. package/index109.js +10 -5
  19. package/index11.js +247 -38
  20. package/index110.js +31 -3
  21. package/index111.js +6 -3
  22. package/index112.js +16 -13
  23. package/index113.js +5 -8
  24. package/index114.js +4 -5
  25. package/index115.js +3 -5
  26. package/index116.js +3 -5
  27. package/index117.js +14 -5
  28. package/index118.js +8 -6
  29. package/index119.js +6 -3
  30. package/index12.js +44 -17
  31. package/index120.js +4 -16
  32. package/index121.js +5 -5
  33. package/index122.js +5 -3
  34. package/index123.js +5 -3
  35. package/index124.js +3 -10
  36. package/index125.js +17 -5
  37. package/index126.js +5 -4
  38. package/index127.js +3 -5
  39. package/index128.js +4 -3
  40. package/index129.js +9 -4
  41. package/index13.js +15 -25
  42. package/index130.js +5 -4
  43. package/index131.js +4 -10
  44. package/index132.js +5 -6
  45. package/index133.js +3 -7
  46. package/index134.js +3 -3
  47. package/index135.js +4 -7
  48. package/index136.js +11 -3
  49. package/index137.js +9 -0
  50. package/index138.js +9 -0
  51. package/index139.js +7 -0
  52. package/index14.js +28 -4
  53. package/index140.js +10 -0
  54. package/index141.js +5 -0
  55. package/index15.js +5 -64
  56. package/index16.js +64 -2
  57. package/index17.js +1 -1
  58. package/index18.js +1 -1
  59. package/index19.js +1 -1
  60. package/index2.js +1 -1
  61. package/index20.js +1 -1
  62. package/index21.js +1 -1
  63. package/index22.js +1 -1
  64. package/index23.js +1 -1
  65. package/index24.js +1 -1
  66. package/index25.js +2 -10
  67. package/index26.js +2 -9
  68. package/index27.js +5 -3
  69. package/index28.js +13 -5
  70. package/index29.js +9 -62
  71. package/index3.js +165 -118
  72. package/index30.js +8 -3
  73. package/index31.js +4 -8
  74. package/index32.js +62 -6
  75. package/index33.js +3 -3
  76. package/index34.js +8 -2
  77. package/index35.js +6 -5
  78. package/index36.js +3 -9
  79. package/index37.js +1 -4
  80. package/index38.js +6 -4
  81. package/index39.js +10 -3
  82. package/index4.js +113 -157
  83. package/index40.js +4 -3
  84. package/index41.js +4 -8
  85. package/index42.js +3 -5
  86. package/index43.js +4 -5
  87. package/index44.js +7 -6
  88. package/index45.js +4 -5
  89. package/index46.js +5 -9
  90. package/index47.js +7 -5
  91. package/index48.js +5 -6
  92. package/index49.js +9 -5
  93. package/index5.js +166 -27
  94. package/index50.js +5 -10
  95. package/index51.js +6 -6
  96. package/index52.js +5 -18
  97. package/index53.js +9 -11
  98. package/index54.js +6 -6
  99. package/index55.js +17 -12
  100. package/index56.js +11 -3
  101. package/index57.js +6 -11
  102. package/index58.js +12 -7
  103. package/index59.js +3 -9
  104. package/index6.js +29 -95
  105. package/index60.js +6 -5
  106. package/index61.js +793 -5
  107. package/index62.js +11 -8
  108. package/index63.js +7 -15
  109. package/index64.js +9 -5
  110. package/index65.js +5 -5
  111. package/index66.js +5 -8
  112. package/index67.js +9 -7
  113. package/index68.js +15 -5
  114. package/index69.js +5 -5
  115. package/index7.js +93 -39
  116. package/index70.js +5 -6
  117. package/index71.js +8 -6
  118. package/index72.js +7 -26
  119. package/index73.js +5 -5
  120. package/index74.js +5 -39
  121. package/index75.js +6 -6
  122. package/index76.js +6 -5
  123. package/index77.js +26 -15
  124. package/index78.js +5 -7
  125. package/index79.js +40 -2
  126. package/index8.js +40 -263
  127. package/index80.js +7 -3
  128. package/index81.js +5 -12
  129. package/index82.js +15 -5
  130. package/index83.js +8 -3
  131. package/index84.js +2 -4
  132. package/index85.js +3 -4
  133. package/index86.js +13 -4
  134. package/index87.js +5 -4
  135. package/index88.js +3 -4
  136. package/index89.js +3 -14
  137. package/index9.js +262 -54
  138. package/index90.js +4 -14
  139. package/index91.js +4 -9
  140. package/index92.js +4 -3
  141. package/index93.js +3 -5
  142. package/index94.js +14 -5
  143. package/index95.js +13 -5
  144. package/index96.js +7 -6
  145. package/index97.js +3 -18
  146. package/index98.js +4 -9
  147. package/index99.js +4 -4
  148. package/opper-controller/index.scss +12 -0
  149. package/package.json +1 -1
  150. package/select-picker/index.vue.d.ts +4 -4
  151. package/selector/index.vue.d.ts +10 -10
package/index62.js CHANGED
@@ -1,11 +1,14 @@
1
- import r from "./index106.js";
2
- var o = function() {
3
- try {
4
- var e = r(Object, "defineProperty");
5
- return e({}, "", {}), e;
6
- } catch {
1
+ import m from "./index63.js";
2
+ import t from "./index64.js";
3
+ function v(a, f, i, u) {
4
+ var d = !i;
5
+ i || (i = {});
6
+ for (var s = -1, e = f.length; ++s < e; ) {
7
+ var n = f[s], r = void 0;
8
+ r === void 0 && (r = a[n]), d ? t(i, n, r) : m(i, n, r);
7
9
  }
8
- }();
10
+ return i;
11
+ }
9
12
  export {
10
- o as default
13
+ v as default
11
14
  };
package/index63.js CHANGED
@@ -1,18 +1,10 @@
1
- import r from "./index107.js";
2
- import a from "./index108.js";
3
- import p from "./index109.js";
4
- import s from "./index110.js";
5
- import i from "./index111.js";
6
- import m from "./index112.js";
7
- function t(o) {
8
- var e = this.__data__ = new r(o);
9
- this.size = e.size;
1
+ import t from "./index64.js";
2
+ import i from "./index33.js";
3
+ var s = Object.prototype, p = s.hasOwnProperty;
4
+ function l(r, a, o) {
5
+ var n = r[a];
6
+ (!(p.call(r, a) && i(n, o)) || o === void 0 && !(a in r)) && t(r, a, o);
10
7
  }
11
- t.prototype.clear = a;
12
- t.prototype.delete = p;
13
- t.prototype.get = s;
14
- t.prototype.has = i;
15
- t.prototype.set = m;
16
8
  export {
17
- t as default
9
+ l as default
18
10
  };
package/index64.js CHANGED
@@ -1,8 +1,12 @@
1
- import o from "./index57.js";
2
- import e from "./index51.js";
3
- function m(r, t) {
4
- return r && o(t, e(t), r);
1
+ import u from "./index67.js";
2
+ function i(r, e, t) {
3
+ e == "__proto__" && u ? u(r, e, {
4
+ configurable: !0,
5
+ enumerable: !0,
6
+ value: t,
7
+ writable: !0
8
+ }) : r[e] = t;
5
9
  }
6
10
  export {
7
- m as default
11
+ i as default
8
12
  };
package/index65.js CHANGED
@@ -1,8 +1,8 @@
1
- import t from "./index57.js";
2
- import o from "./index54.js";
3
- function i(n, r) {
4
- return n && t(r, o(r), n);
1
+ var p = Object.prototype;
2
+ function e(t) {
3
+ var o = t && t.constructor, r = typeof o == "function" && o.prototype || p;
4
+ return t === r;
5
5
  }
6
6
  export {
7
- i as default
7
+ e as default
8
8
  };
package/index66.js CHANGED
@@ -1,11 +1,8 @@
1
- import d from "./index39.js";
2
- var p = typeof exports == "object" && exports && !exports.nodeType && exports, t = p && typeof module == "object" && module && !module.nodeType && module, s = t && t.exports === p, n = s ? d.Buffer : void 0, l = n ? n.allocUnsafe : void 0;
3
- function a(e, u) {
4
- if (u)
5
- return e.slice();
6
- var o = e.length, r = l ? l(o) : new e.constructor(o);
7
- return e.copy(r), r;
1
+ function f(e, n) {
2
+ for (var l = -1, t = e == null ? 0 : e.length; ++l < t && n(e[l], l, e) !== !1; )
3
+ ;
4
+ return e;
8
5
  }
9
6
  export {
10
- a as default
7
+ f as default
11
8
  };
package/index67.js CHANGED
@@ -1,9 +1,11 @@
1
- function h(t, e) {
2
- var n = -1, l = t.length;
3
- for (e || (e = Array(l)); ++n < l; )
4
- e[n] = t[n];
5
- return e;
6
- }
1
+ import r from "./index111.js";
2
+ var o = function() {
3
+ try {
4
+ var e = r(Object, "defineProperty");
5
+ return e({}, "", {}), e;
6
+ } catch {
7
+ }
8
+ }();
7
9
  export {
8
- h as default
10
+ o as default
9
11
  };
package/index68.js CHANGED
@@ -1,8 +1,18 @@
1
- import m from "./index57.js";
2
- import r from "./index113.js";
3
- function f(o, t) {
4
- return m(o, r(o), t);
1
+ import r from "./index112.js";
2
+ import a from "./index113.js";
3
+ import p from "./index114.js";
4
+ import s from "./index115.js";
5
+ import i from "./index116.js";
6
+ import m from "./index117.js";
7
+ function t(o) {
8
+ var e = this.__data__ = new r(o);
9
+ this.size = e.size;
5
10
  }
11
+ t.prototype.clear = a;
12
+ t.prototype.delete = p;
13
+ t.prototype.get = s;
14
+ t.prototype.has = i;
15
+ t.prototype.set = m;
6
16
  export {
7
- f as default
17
+ t as default
8
18
  };
package/index69.js CHANGED
@@ -1,8 +1,8 @@
1
- import m from "./index57.js";
2
- import r from "./index104.js";
3
- function e(o, t) {
4
- return m(o, r(o), t);
1
+ import o from "./index62.js";
2
+ import e from "./index54.js";
3
+ function m(r, t) {
4
+ return r && o(t, e(t), r);
5
5
  }
6
6
  export {
7
- e as default
7
+ m as default
8
8
  };
package/index7.js CHANGED
@@ -1,48 +1,102 @@
1
- import { defineComponent as m, ref as u, computed as p, onUnmounted as f, renderSlot as h, toDisplayString as b, createElementVNode as y, openBlock as v, createElementBlock as g, createCommentVNode as k, mergeProps as w } from "vue";
2
- import { onKeyboardHeightChange as B, offKeyboardHeightChange as _ } from "@tarojs/taro";
3
- const r = h, C = b, $ = y, l = v, a = g, D = k, E = w, N = ["show", "title", "close-on-click-overlay"], S = {
4
- key: 0,
5
- class: "van-button-container van-button-group"
6
- }, V = ["disabled"], T = /* @__PURE__ */ m({
1
+ import { defineComponent as u, renderSlot as c, toDisplayString as m, createTextVNode as y, unref as p, withCtx as w, openBlock as x, createBlock as v, createElementVNode as S, vShow as B, withDirectives as k, createVNode as b, mergeProps as T, createElementBlock as N } from "vue";
2
+ import { vibrator as V } from "@solar-taro/core";
3
+ import { SunSpinner as a } from "@solar-taro/ui-sun";
4
+ const l = c, $ = m, D = y, o = p, E = w, s = x, C = v, n = S, d = B, f = k, P = b, j = T, z = N, A = ["enable-flex", "refresher-enabled", "refresher-triggered", "refresher-background"], L = {
5
+ class: "sun-list-placeholder",
6
+ style: { display: "flex", "justify-content": "center", "align-items": "center", height: "85%" }
7
+ }, R = ["image", "description"], q = {
8
+ class: "sun-list-loading-wrapper",
9
+ style: { "text-align": "center", padding: "6px" }
10
+ }, I = /* @__PURE__ */ u({
7
11
  __name: "index",
8
12
  props: {
9
- show: { type: Boolean },
10
- title: {},
11
- showButtons: { type: Boolean, default: !0 },
12
- confirmText: { default: "确认" },
13
- confirmDisabled: { type: Boolean }
14
- },
15
- emits: ["update:show", "close", "confirm"],
16
- setup(H, { emit: i }) {
17
- const t = i, n = u(0), c = p(() => n.value === 0);
18
- function s(e) {
19
- n.value = e.height;
13
+ refreshing: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ flex: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ loading: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ loadingText: {
26
+ type: String,
27
+ default: "Loading"
28
+ },
29
+ data: {
30
+ type: Array,
31
+ default: []
32
+ },
33
+ refresher: {
34
+ type: Boolean,
35
+ default: !0
36
+ },
37
+ refresherBg: {
38
+ type: String,
39
+ default: "transparent"
40
+ },
41
+ emptyType: {
42
+ type: String,
43
+ default: "default"
44
+ },
45
+ emptyText: {
46
+ type: String,
47
+ default: "暂无数据"
20
48
  }
21
- return B(s), f(() => {
22
- _(s);
23
- }), (e, o) => (l(), a("van-action-sheet", E(e.$attrs, {
24
- show: e.show,
25
- title: e.title,
26
- "close-on-click-overlay": c.value,
27
- onClose: o[1] || (o[1] = (d) => {
28
- t("update:show", !1), t("close");
29
- })
49
+ },
50
+ emits: ["refresh", "lower"],
51
+ setup(e, { emit: g }) {
52
+ const i = g;
53
+ return (r, t) => (s(), z("scroll-view", j(r.$attrs, {
54
+ class: "sun-list",
55
+ enhanced: !0,
56
+ "scroll-y": !0,
57
+ "lower-threshold": 300,
58
+ "enable-flex": e.flex,
59
+ "refresher-enabled": e.refresher,
60
+ "refresher-triggered": e.refreshing,
61
+ "refresher-background": e.refresherBg,
62
+ onRefresherrefresh: t[0] || (t[0] = (h) => {
63
+ o(V).short("light"), i("refresh");
64
+ }),
65
+ onScrolltolower: t[1] || (t[1] = (h) => i("lower"))
30
66
  }), [
31
- r(e.$slots, "default"),
32
- e.showButtons ? (l(), a("view", S, [
33
- r(e.$slots, "buttons", {}, () => [
34
- $("van-button", {
35
- type: "primary",
36
- round: "true",
37
- block: "true",
38
- disabled: e.confirmDisabled,
39
- onClick: o[0] || (o[0] = (d) => t("confirm"))
40
- }, C(e.confirmText), 9, V)
67
+ l(r.$slots, "default"),
68
+ f(n("view", L, [
69
+ e.loading ? (s(), C(o(a), {
70
+ key: 0,
71
+ spinning: !0
72
+ }, {
73
+ default: E(() => [
74
+ D($(e.loadingText), 1)
75
+ ]),
76
+ _: 1
77
+ })) : l(r.$slots, "empty", { key: 1 }, () => [
78
+ n("van-empty", {
79
+ image: e.emptyType,
80
+ description: e.emptyText
81
+ }, [
82
+ l(r.$slots, "empty-content")
83
+ ], 8, R)
41
84
  ])
42
- ])) : D("", !0)
43
- ], 16, N));
85
+ ], 512), [
86
+ [d, !e.data.length]
87
+ ]),
88
+ f(n("view", q, [
89
+ P(o(a), {
90
+ spinning: !0,
91
+ size: "small"
92
+ })
93
+ ], 512), [
94
+ [d, e.data.length && e.loading && !e.refreshing]
95
+ ]),
96
+ t[2] || (t[2] = n("view", { style: { position: "absolute", height: "1px", width: "1px", overflow: "hidden" } }, null, -1))
97
+ ], 16, A));
44
98
  }
45
99
  });
46
100
  export {
47
- T as default
101
+ I as default
48
102
  };
package/index70.js CHANGED
@@ -1,9 +1,8 @@
1
- import t from "./index103.js";
2
- import o from "./index113.js";
3
- import r from "./index51.js";
4
- function f(e) {
5
- return t(e, r, o);
1
+ import t from "./index62.js";
2
+ import o from "./index57.js";
3
+ function i(n, r) {
4
+ return n && t(r, o(r), n);
6
5
  }
7
6
  export {
8
- f as default
7
+ i as default
9
8
  };
package/index71.js CHANGED
@@ -1,9 +1,11 @@
1
- import t from "./index103.js";
2
- import o from "./index104.js";
3
- import r from "./index54.js";
4
- function s(e) {
5
- return t(e, r, o);
1
+ import d from "./index42.js";
2
+ var p = typeof exports == "object" && exports && !exports.nodeType && exports, t = p && typeof module == "object" && module && !module.nodeType && module, s = t && t.exports === p, n = s ? d.Buffer : void 0, l = n ? n.allocUnsafe : void 0;
3
+ function a(e, u) {
4
+ if (u)
5
+ return e.slice();
6
+ var o = e.length, r = l ? l(o) : new e.constructor(o);
7
+ return e.copy(r), r;
6
8
  }
7
9
  export {
8
- s as default
10
+ a as default
9
11
  };
package/index72.js CHANGED
@@ -1,28 +1,9 @@
1
- import e from "./index84.js";
2
- import a from "./index85.js";
3
- import o from "./index86.js";
4
- import i from "./index87.js";
5
- import n from "./index88.js";
6
- import S from "./index41.js";
7
- import t from "./index89.js";
8
- var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
9
- (e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
10
- var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
11
- if (s)
12
- switch (s) {
13
- case T:
14
- return b;
15
- case C:
16
- return g;
17
- case M:
18
- return f;
19
- case d:
20
- return u;
21
- case v:
22
- return w;
23
- }
24
- return c;
25
- });
1
+ function h(t, e) {
2
+ var n = -1, l = t.length;
3
+ for (e || (e = Array(l)); ++n < l; )
4
+ e[n] = t[n];
5
+ return e;
6
+ }
26
7
  export {
27
- r as default
8
+ h as default
28
9
  };
package/index73.js CHANGED
@@ -1,8 +1,8 @@
1
- var o = Object.prototype, i = o.hasOwnProperty;
2
- function p(t) {
3
- var n = t.length, e = new t.constructor(n);
4
- return n && typeof t[0] == "string" && i.call(t, "index") && (e.index = t.index, e.input = t.input), e;
1
+ import m from "./index62.js";
2
+ import r from "./index118.js";
3
+ function f(o, t) {
4
+ return m(o, r(o), t);
5
5
  }
6
6
  export {
7
- p as default
7
+ f as default
8
8
  };
package/index74.js CHANGED
@@ -1,42 +1,8 @@
1
- import o from "./index114.js";
2
- import n from "./index115.js";
3
- import c from "./index116.js";
4
- import g from "./index117.js";
5
- import i from "./index118.js";
6
- var s = "[object Boolean]", u = "[object Date]", T = "[object Map]", b = "[object Number]", l = "[object RegExp]", m = "[object Set]", y = "[object String]", f = "[object Symbol]", p = "[object ArrayBuffer]", j = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", d = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", C = "[object Uint8Array]", S = "[object Uint8ClampedArray]", U = "[object Uint16Array]", v = "[object Uint32Array]";
7
- function R(a, t, r) {
8
- var e = a.constructor;
9
- switch (t) {
10
- case p:
11
- return o(a);
12
- case s:
13
- case u:
14
- return new e(+a);
15
- case j:
16
- return n(a, r);
17
- case A:
18
- case w:
19
- case d:
20
- case B:
21
- case x:
22
- case C:
23
- case S:
24
- case U:
25
- case v:
26
- return i(a, r);
27
- case T:
28
- return new e();
29
- case b:
30
- case y:
31
- return new e(a);
32
- case l:
33
- return c(a);
34
- case m:
35
- return new e();
36
- case f:
37
- return g(a);
38
- }
1
+ import m from "./index62.js";
2
+ import r from "./index109.js";
3
+ function e(o, t) {
4
+ return m(o, r(o), t);
39
5
  }
40
6
  export {
41
- R as default
7
+ e as default
42
8
  };
package/index75.js CHANGED
@@ -1,9 +1,9 @@
1
- import o from "./index77.js";
2
- import r from "./index92.js";
3
- import e from "./index60.js";
4
- function p(t) {
5
- return typeof t.constructor == "function" && !e(t) ? o(r(t)) : {};
1
+ import t from "./index108.js";
2
+ import o from "./index118.js";
3
+ import r from "./index54.js";
4
+ function f(e) {
5
+ return t(e, r, o);
6
6
  }
7
7
  export {
8
- p as default
8
+ f as default
9
9
  };
package/index76.js CHANGED
@@ -1,8 +1,9 @@
1
- function l(e, n) {
2
- for (var t = -1, h = n.length, f = e.length; ++t < h; )
3
- e[f + t] = n[t];
4
- return e;
1
+ import t from "./index108.js";
2
+ import o from "./index109.js";
3
+ import r from "./index57.js";
4
+ function s(e) {
5
+ return t(e, r, o);
5
6
  }
6
7
  export {
7
- l as default
8
+ s as default
8
9
  };
package/index77.js CHANGED
@@ -1,17 +1,28 @@
1
- import u from "./index42.js";
2
- var r = Object.create, c = /* @__PURE__ */ function() {
3
- function e() {
4
- }
5
- return function(t) {
6
- if (!u(t))
7
- return {};
8
- if (r)
9
- return r(t);
10
- e.prototype = t;
11
- var n = new e();
12
- return e.prototype = void 0, n;
13
- };
14
- }();
1
+ import e from "./index89.js";
2
+ import a from "./index90.js";
3
+ import o from "./index91.js";
4
+ import i from "./index92.js";
5
+ import n from "./index93.js";
6
+ import S from "./index44.js";
7
+ import t from "./index94.js";
8
+ var g = "[object Map]", j = "[object Object]", f = "[object Promise]", u = "[object Set]", w = "[object WeakMap]", b = "[object DataView]", T = t(e), C = t(a), M = t(o), d = t(i), v = t(n), r = S;
9
+ (e && r(new e(new ArrayBuffer(1))) != b || a && r(new a()) != g || o && r(o.resolve()) != f || i && r(new i()) != u || n && r(new n()) != w) && (r = function(m) {
10
+ var c = S(m), p = c == j ? m.constructor : void 0, s = p ? t(p) : "";
11
+ if (s)
12
+ switch (s) {
13
+ case T:
14
+ return b;
15
+ case C:
16
+ return g;
17
+ case M:
18
+ return f;
19
+ case d:
20
+ return u;
21
+ case v:
22
+ return w;
23
+ }
24
+ return c;
25
+ });
15
26
  export {
16
- c as default
27
+ r as default
17
28
  };
package/index78.js CHANGED
@@ -1,10 +1,8 @@
1
- function d(e, i) {
2
- for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
- var l = e[n];
4
- i(l, n, e) && (t[u++] = l);
5
- }
6
- return t;
1
+ var o = Object.prototype, i = o.hasOwnProperty;
2
+ function p(t) {
3
+ var n = t.length, e = new t.constructor(n);
4
+ return n && typeof t[0] == "string" && i.call(t, "index") && (e.index = t.index, e.input = t.input), e;
7
5
  }
8
6
  export {
9
- d as default
7
+ p as default
10
8
  };
package/index79.js CHANGED
@@ -1,4 +1,42 @@
1
- var l = typeof global == "object" && global && global.Object === Object && global;
1
+ import o from "./index119.js";
2
+ import n from "./index120.js";
3
+ import c from "./index121.js";
4
+ import g from "./index122.js";
5
+ import i from "./index123.js";
6
+ var s = "[object Boolean]", u = "[object Date]", T = "[object Map]", b = "[object Number]", l = "[object RegExp]", m = "[object Set]", y = "[object String]", f = "[object Symbol]", p = "[object ArrayBuffer]", j = "[object DataView]", A = "[object Float32Array]", w = "[object Float64Array]", d = "[object Int8Array]", B = "[object Int16Array]", x = "[object Int32Array]", C = "[object Uint8Array]", S = "[object Uint8ClampedArray]", U = "[object Uint16Array]", v = "[object Uint32Array]";
7
+ function R(a, t, r) {
8
+ var e = a.constructor;
9
+ switch (t) {
10
+ case p:
11
+ return o(a);
12
+ case s:
13
+ case u:
14
+ return new e(+a);
15
+ case j:
16
+ return n(a, r);
17
+ case A:
18
+ case w:
19
+ case d:
20
+ case B:
21
+ case x:
22
+ case C:
23
+ case S:
24
+ case U:
25
+ case v:
26
+ return i(a, r);
27
+ case T:
28
+ return new e();
29
+ case b:
30
+ case y:
31
+ return new e(a);
32
+ case l:
33
+ return c(a);
34
+ case m:
35
+ return new e();
36
+ case f:
37
+ return g(a);
38
+ }
39
+ }
2
40
  export {
3
- l as default
41
+ R as default
4
42
  };