@wix/cli 1.1.72 → 1.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{DevCommand-5SGSYRVV.js → DevCommand-GVSKRXS5.js} +14 -13
- package/build/{DevCommand-5SGSYRVV.js.map → DevCommand-GVSKRXS5.js.map} +1 -1
- package/build/{DevCommand-KV7LS2G3.js → DevCommand-VAGCMC3U.js} +15 -14
- package/build/{DevCommand-KV7LS2G3.js.map → DevCommand-VAGCMC3U.js.map} +1 -1
- package/build/{InstallCommand-7UJAWHRQ.js → InstallCommand-5MQIBFBL.js} +13 -12
- package/build/{InstallCommand-7UJAWHRQ.js.map → InstallCommand-5MQIBFBL.js.map} +1 -1
- package/build/{LoginCommand-MOCKRK5T.js → LoginCommand-W4U3DVIR.js} +10 -9
- package/build/{LoginCommand-MOCKRK5T.js.map → LoginCommand-W4U3DVIR.js.map} +1 -1
- package/build/{LogoutCommand-7XEBZVR5.js → LogoutCommand-3K3ZIYOU.js} +8 -7
- package/build/{LogoutCommand-7XEBZVR5.js.map → LogoutCommand-3K3ZIYOU.js.map} +1 -1
- package/build/PreviewCommand-ANA5Z3MW.js +179 -0
- package/build/PreviewCommand-ANA5Z3MW.js.map +1 -0
- package/build/{PreviewCommand-767M35FK.js → PreviewCommand-NKC7KYL6.js} +20 -17
- package/build/PreviewCommand-NKC7KYL6.js.map +1 -0
- package/build/{PublishCommand-YOCH4N4C.js → PublishCommand-CZPHZISV.js} +18 -15
- package/build/{PublishCommand-YOCH4N4C.js.map → PublishCommand-CZPHZISV.js.map} +1 -1
- package/build/{UninstallCommand-QU3FB54O.js → UninstallCommand-6EXXSJ2T.js} +13 -12
- package/build/{UninstallCommand-QU3FB54O.js.map → UninstallCommand-6EXXSJ2T.js.map} +1 -1
- package/build/{WhoamiCommand-W3KYZCLQ.js → WhoamiCommand-HKOFLBTT.js} +5 -4
- package/build/{WhoamiCommand-W3KYZCLQ.js.map → WhoamiCommand-HKOFLBTT.js.map} +1 -1
- package/build/{chunk-HA5QZSIC.js → chunk-2ZHLGYRS.js} +9 -9
- package/build/{chunk-EJO5WRC2.js → chunk-5R4V3KU4.js} +2 -2
- package/build/{chunk-U66SAJ6H.js → chunk-67M5PWNU.js} +2 -2
- package/build/{chunk-DK7B62H5.js → chunk-BIABL47I.js} +3 -3
- package/build/{chunk-NYV3AL2A.js → chunk-C2IFONC3.js} +3 -3
- package/build/{chunk-XP2YHRIC.js → chunk-CIEBMSKA.js} +1493 -534
- package/build/chunk-CIEBMSKA.js.map +1 -0
- package/build/chunk-ETFPUCHJ.js +48 -0
- package/build/chunk-ETFPUCHJ.js.map +1 -0
- package/build/{chunk-QCFSXYK7.js → chunk-EW7MBB2Y.js} +2 -2
- package/build/{chunk-MXPPSPSE.js → chunk-F6YVVDBI.js} +4 -4
- package/build/chunk-FKASFLTW.js +202 -0
- package/build/chunk-FKASFLTW.js.map +1 -0
- package/build/chunk-GJA3CCOU.js +23 -0
- package/build/chunk-GJA3CCOU.js.map +1 -0
- package/build/{chunk-BZHTHESR.js → chunk-HCJQQACZ.js} +3 -20
- package/build/chunk-HCJQQACZ.js.map +1 -0
- package/build/{chunk-JMICKQ4L.js → chunk-HQI4RWIV.js} +2 -2
- package/build/{chunk-B2GZBO6N.js → chunk-IWF7TGCL.js} +2 -2
- package/build/{chunk-FLESSZ7K.js → chunk-J52GOW74.js} +11 -6
- package/build/chunk-J52GOW74.js.map +1 -0
- package/build/{chunk-WN3D6AOY.js → chunk-KUAMU72Z.js} +2 -2
- package/build/{chunk-W423UTD3.js → chunk-LXW2RB2I.js} +302 -1
- package/build/chunk-LXW2RB2I.js.map +1 -0
- package/build/chunk-MIQZ3GCS.js +170 -0
- package/build/chunk-MIQZ3GCS.js.map +1 -0
- package/build/{chunk-IYTRLTO5.js → chunk-MMXT2FIP.js} +2 -2
- package/build/{chunk-HO45MN5W.js → chunk-ODYEJHVS.js} +4 -4
- package/build/{chunk-HO45MN5W.js.map → chunk-ODYEJHVS.js.map} +1 -1
- package/build/{chunk-JV4Z24YW.js → chunk-PWJKLQOW.js} +28 -207
- package/build/chunk-PWJKLQOW.js.map +1 -0
- package/build/{chunk-WPFEAMY6.js → chunk-QOEQJQBF.js} +3 -3
- package/build/{chunk-SC7ALIWN.js → chunk-R7NPZQEJ.js} +15 -15
- package/build/chunk-R7NPZQEJ.js.map +1 -0
- package/build/{chunk-WJEIELZZ.js → chunk-RDGRAVZS.js} +24 -4
- package/build/chunk-RDGRAVZS.js.map +1 -0
- package/build/{run-command-JTMBJFNO.js → chunk-SM4Z46WM.js} +4 -11
- package/build/{run-command-JTMBJFNO.js.map → chunk-SM4Z46WM.js.map} +1 -1
- package/build/{chunk-3WNB53UP.js → chunk-SPLYGGVU.js} +2 -41
- package/build/chunk-SPLYGGVU.js.map +1 -0
- package/build/{chunk-GXHXHE4T.js → chunk-YEB7C5JP.js} +3 -3
- package/build/{chunk-YKAGNJY6.js → chunk-YFNFTDZT.js} +39 -8
- package/build/chunk-YFNFTDZT.js.map +1 -0
- package/build/{chunk-M2UM7UOC.js → chunk-YZH5SGYL.js} +4 -4
- package/build/{chunk-M2UM7UOC.js.map → chunk-YZH5SGYL.js.map} +1 -1
- package/build/{dev-IYIRKVZS.js → dev-HEX7ZENY.js} +32 -28
- package/build/{dev-IYIRKVZS.js.map → dev-HEX7ZENY.js.map} +1 -1
- package/build/{devtools-YPSDP32D.js → devtools-JB2HYTEA.js} +101 -100
- package/build/devtools-JB2HYTEA.js.map +1 -0
- package/build/index.js +21 -20
- package/build/index.js.map +1 -1
- package/build/{install-K6QB66H5.js → install-GAPNVOEL.js} +16 -14
- package/build/{install-K6QB66H5.js.map → install-GAPNVOEL.js.map} +1 -1
- package/build/{chunk-4T2ZRNF7.js → publish-H5LVDV5T.js} +310 -125
- package/build/publish-H5LVDV5T.js.map +1 -0
- package/build/render-command-BHONB352.js +62 -0
- package/build/render-command-BHONB352.js.map +1 -0
- package/build/{render-command-WVDH3UP5.js → render-command-NHF4NH22.js} +10 -9
- package/build/{render-command-WVDH3UP5.js.map → render-command-NHF4NH22.js.map} +1 -1
- package/build/{render-command-U4JBQ5VU.js → render-command-TA7SSDDK.js} +10 -9
- package/build/{render-command-U4JBQ5VU.js.map → render-command-TA7SSDDK.js.map} +1 -1
- package/build/{render-command-BNEVGFB3.js → render-command-X4JGYGDQ.js} +9 -8
- package/build/{render-command-BNEVGFB3.js.map → render-command-X4JGYGDQ.js.map} +1 -1
- package/build/run-command-IBRPX7P2.js +20 -0
- package/build/{src-47F5YAXV.js → src-2ACRXM6P.js} +7 -6
- package/build/{src-47F5YAXV.js.map → src-2ACRXM6P.js.map} +1 -1
- package/build/{src-HYVRUANU.js → src-4YNE4AHQ.js} +15 -14
- package/build/{src-HYVRUANU.js.map → src-4YNE4AHQ.js.map} +1 -1
- package/build/{src-GZEU2SLH.js → src-KHRPRAN2.js} +23 -19
- package/build/src-KHRPRAN2.js.map +1 -0
- package/build/{src-KQAMIMTX.js → src-ZJBGAL5R.js} +6 -6
- package/build/{sync-types-HTC3Y77F.js → sync-types-M7RS6ZZJ.js} +10 -10
- package/build/sync-types-M7RS6ZZJ.js.map +1 -0
- package/build/{uninstall-YCWGZ5F2.js → uninstall-RPIU3BOK.js} +16 -14
- package/build/{uninstall-YCWGZ5F2.js.map → uninstall-RPIU3BOK.js.map} +1 -1
- package/package.json +2 -2
- package/build/PreviewCommand-767M35FK.js.map +0 -1
- package/build/chunk-3WNB53UP.js.map +0 -1
- package/build/chunk-4T2ZRNF7.js.map +0 -1
- package/build/chunk-BZHTHESR.js.map +0 -1
- package/build/chunk-FLESSZ7K.js.map +0 -1
- package/build/chunk-JV4Z24YW.js.map +0 -1
- package/build/chunk-SC7ALIWN.js.map +0 -1
- package/build/chunk-W423UTD3.js.map +0 -1
- package/build/chunk-WJEIELZZ.js.map +0 -1
- package/build/chunk-XP2YHRIC.js.map +0 -1
- package/build/chunk-YKAGNJY6.js.map +0 -1
- package/build/devtools-YPSDP32D.js.map +0 -1
- package/build/preview-RVQWLNGC.js +0 -130
- package/build/preview-RVQWLNGC.js.map +0 -1
- package/build/publish-T4HAYBKH.js +0 -349
- package/build/publish-T4HAYBKH.js.map +0 -1
- package/build/src-GZEU2SLH.js.map +0 -1
- /package/build/{chunk-HA5QZSIC.js.map → chunk-2ZHLGYRS.js.map} +0 -0
- /package/build/{chunk-EJO5WRC2.js.map → chunk-5R4V3KU4.js.map} +0 -0
- /package/build/{chunk-U66SAJ6H.js.map → chunk-67M5PWNU.js.map} +0 -0
- /package/build/{chunk-DK7B62H5.js.map → chunk-BIABL47I.js.map} +0 -0
- /package/build/{chunk-NYV3AL2A.js.map → chunk-C2IFONC3.js.map} +0 -0
- /package/build/{chunk-QCFSXYK7.js.map → chunk-EW7MBB2Y.js.map} +0 -0
- /package/build/{chunk-MXPPSPSE.js.map → chunk-F6YVVDBI.js.map} +0 -0
- /package/build/{chunk-JMICKQ4L.js.map → chunk-HQI4RWIV.js.map} +0 -0
- /package/build/{chunk-B2GZBO6N.js.map → chunk-IWF7TGCL.js.map} +0 -0
- /package/build/{chunk-WN3D6AOY.js.map → chunk-KUAMU72Z.js.map} +0 -0
- /package/build/{chunk-IYTRLTO5.js.map → chunk-MMXT2FIP.js.map} +0 -0
- /package/build/{chunk-WPFEAMY6.js.map → chunk-QOEQJQBF.js.map} +0 -0
- /package/build/{chunk-GXHXHE4T.js.map → chunk-YEB7C5JP.js.map} +0 -0
- /package/build/{src-KQAMIMTX.js.map → run-command-IBRPX7P2.js.map} +0 -0
- /package/build/{sync-types-HTC3Y77F.js.map → src-ZJBGAL5R.js.map} +0 -0
|
@@ -8,8 +8,9 @@ import {
|
|
|
8
8
|
init_tslib_es6,
|
|
9
9
|
require_has_flag,
|
|
10
10
|
require_is_ci,
|
|
11
|
+
require_react,
|
|
11
12
|
require_supports_color
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LXW2RB2I.js";
|
|
13
14
|
import {
|
|
14
15
|
isUnicodeSupported,
|
|
15
16
|
require_cli_spinners,
|
|
@@ -31,293 +32,6 @@ import {
|
|
|
31
32
|
init_esm_shims
|
|
32
33
|
} from "./chunk-PYIAC2GK.js";
|
|
33
34
|
|
|
34
|
-
// ../../node_modules/react/cjs/react.production.min.js
|
|
35
|
-
var require_react_production_min = __commonJS({
|
|
36
|
-
"../../node_modules/react/cjs/react.production.min.js"(exports) {
|
|
37
|
-
"use strict";
|
|
38
|
-
init_esm_shims();
|
|
39
|
-
var l = Symbol.for("react.element");
|
|
40
|
-
var n2 = Symbol.for("react.portal");
|
|
41
|
-
var p = Symbol.for("react.fragment");
|
|
42
|
-
var q = Symbol.for("react.strict_mode");
|
|
43
|
-
var r2 = Symbol.for("react.profiler");
|
|
44
|
-
var t3 = Symbol.for("react.provider");
|
|
45
|
-
var u = Symbol.for("react.context");
|
|
46
|
-
var v = Symbol.for("react.forward_ref");
|
|
47
|
-
var w = Symbol.for("react.suspense");
|
|
48
|
-
var x = Symbol.for("react.memo");
|
|
49
|
-
var y = Symbol.for("react.lazy");
|
|
50
|
-
var z = Symbol.iterator;
|
|
51
|
-
function A(a2) {
|
|
52
|
-
if (null === a2 || "object" !== typeof a2) return null;
|
|
53
|
-
a2 = z && a2[z] || a2["@@iterator"];
|
|
54
|
-
return "function" === typeof a2 ? a2 : null;
|
|
55
|
-
}
|
|
56
|
-
var B = { isMounted: function() {
|
|
57
|
-
return false;
|
|
58
|
-
}, enqueueForceUpdate: function() {
|
|
59
|
-
}, enqueueReplaceState: function() {
|
|
60
|
-
}, enqueueSetState: function() {
|
|
61
|
-
} };
|
|
62
|
-
var C = Object.assign;
|
|
63
|
-
var D = {};
|
|
64
|
-
function E2(a2, b, e2) {
|
|
65
|
-
this.props = a2;
|
|
66
|
-
this.context = b;
|
|
67
|
-
this.refs = D;
|
|
68
|
-
this.updater = e2 || B;
|
|
69
|
-
}
|
|
70
|
-
E2.prototype.isReactComponent = {};
|
|
71
|
-
E2.prototype.setState = function(a2, b) {
|
|
72
|
-
if ("object" !== typeof a2 && "function" !== typeof a2 && null != a2) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
73
|
-
this.updater.enqueueSetState(this, a2, b, "setState");
|
|
74
|
-
};
|
|
75
|
-
E2.prototype.forceUpdate = function(a2) {
|
|
76
|
-
this.updater.enqueueForceUpdate(this, a2, "forceUpdate");
|
|
77
|
-
};
|
|
78
|
-
function F() {
|
|
79
|
-
}
|
|
80
|
-
F.prototype = E2.prototype;
|
|
81
|
-
function G(a2, b, e2) {
|
|
82
|
-
this.props = a2;
|
|
83
|
-
this.context = b;
|
|
84
|
-
this.refs = D;
|
|
85
|
-
this.updater = e2 || B;
|
|
86
|
-
}
|
|
87
|
-
var H = G.prototype = new F();
|
|
88
|
-
H.constructor = G;
|
|
89
|
-
C(H, E2.prototype);
|
|
90
|
-
H.isPureReactComponent = true;
|
|
91
|
-
var I = Array.isArray;
|
|
92
|
-
var J = Object.prototype.hasOwnProperty;
|
|
93
|
-
var K = { current: null };
|
|
94
|
-
var L = { key: true, ref: true, __self: true, __source: true };
|
|
95
|
-
function M(a2, b, e2) {
|
|
96
|
-
var d, c2 = {}, k = null, h = null;
|
|
97
|
-
if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c2[d] = b[d]);
|
|
98
|
-
var g = arguments.length - 2;
|
|
99
|
-
if (1 === g) c2.children = e2;
|
|
100
|
-
else if (1 < g) {
|
|
101
|
-
for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
|
|
102
|
-
c2.children = f;
|
|
103
|
-
}
|
|
104
|
-
if (a2 && a2.defaultProps) for (d in g = a2.defaultProps, g) void 0 === c2[d] && (c2[d] = g[d]);
|
|
105
|
-
return { $$typeof: l, type: a2, key: k, ref: h, props: c2, _owner: K.current };
|
|
106
|
-
}
|
|
107
|
-
function N(a2, b) {
|
|
108
|
-
return { $$typeof: l, type: a2.type, key: b, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
|
109
|
-
}
|
|
110
|
-
function O(a2) {
|
|
111
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === l;
|
|
112
|
-
}
|
|
113
|
-
function escape3(a2) {
|
|
114
|
-
var b = { "=": "=0", ":": "=2" };
|
|
115
|
-
return "$" + a2.replace(/[=:]/g, function(a3) {
|
|
116
|
-
return b[a3];
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
var P = /\/+/g;
|
|
120
|
-
function Q(a2, b) {
|
|
121
|
-
return "object" === typeof a2 && null !== a2 && null != a2.key ? escape3("" + a2.key) : b.toString(36);
|
|
122
|
-
}
|
|
123
|
-
function R(a2, b, e2, d, c2) {
|
|
124
|
-
var k = typeof a2;
|
|
125
|
-
if ("undefined" === k || "boolean" === k) a2 = null;
|
|
126
|
-
var h = false;
|
|
127
|
-
if (null === a2) h = true;
|
|
128
|
-
else switch (k) {
|
|
129
|
-
case "string":
|
|
130
|
-
case "number":
|
|
131
|
-
h = true;
|
|
132
|
-
break;
|
|
133
|
-
case "object":
|
|
134
|
-
switch (a2.$$typeof) {
|
|
135
|
-
case l:
|
|
136
|
-
case n2:
|
|
137
|
-
h = true;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (h) return h = a2, c2 = c2(h), a2 = "" === d ? "." + Q(h, 0) : d, I(c2) ? (e2 = "", null != a2 && (e2 = a2.replace(P, "$&/") + "/"), R(c2, b, e2, "", function(a3) {
|
|
141
|
-
return a3;
|
|
142
|
-
})) : null != c2 && (O(c2) && (c2 = N(c2, e2 + (!c2.key || h && h.key === c2.key ? "" : ("" + c2.key).replace(P, "$&/") + "/") + a2)), b.push(c2)), 1;
|
|
143
|
-
h = 0;
|
|
144
|
-
d = "" === d ? "." : d + ":";
|
|
145
|
-
if (I(a2)) for (var g = 0; g < a2.length; g++) {
|
|
146
|
-
k = a2[g];
|
|
147
|
-
var f = d + Q(k, g);
|
|
148
|
-
h += R(k, b, e2, f, c2);
|
|
149
|
-
}
|
|
150
|
-
else if (f = A(a2), "function" === typeof f) for (a2 = f.call(a2), g = 0; !(k = a2.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e2, f, c2);
|
|
151
|
-
else if ("object" === k) throw b = String(a2), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a2).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
|
|
152
|
-
return h;
|
|
153
|
-
}
|
|
154
|
-
function S(a2, b, e2) {
|
|
155
|
-
if (null == a2) return a2;
|
|
156
|
-
var d = [], c2 = 0;
|
|
157
|
-
R(a2, d, "", "", function(a3) {
|
|
158
|
-
return b.call(e2, a3, c2++);
|
|
159
|
-
});
|
|
160
|
-
return d;
|
|
161
|
-
}
|
|
162
|
-
function T(a2) {
|
|
163
|
-
if (-1 === a2._status) {
|
|
164
|
-
var b = a2._result;
|
|
165
|
-
b = b();
|
|
166
|
-
b.then(function(b2) {
|
|
167
|
-
if (0 === a2._status || -1 === a2._status) a2._status = 1, a2._result = b2;
|
|
168
|
-
}, function(b2) {
|
|
169
|
-
if (0 === a2._status || -1 === a2._status) a2._status = 2, a2._result = b2;
|
|
170
|
-
});
|
|
171
|
-
-1 === a2._status && (a2._status = 0, a2._result = b);
|
|
172
|
-
}
|
|
173
|
-
if (1 === a2._status) return a2._result.default;
|
|
174
|
-
throw a2._result;
|
|
175
|
-
}
|
|
176
|
-
var U = { current: null };
|
|
177
|
-
var V = { transition: null };
|
|
178
|
-
var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
|
|
179
|
-
function X() {
|
|
180
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
181
|
-
}
|
|
182
|
-
exports.Children = { map: S, forEach: function(a2, b, e2) {
|
|
183
|
-
S(a2, function() {
|
|
184
|
-
b.apply(this, arguments);
|
|
185
|
-
}, e2);
|
|
186
|
-
}, count: function(a2) {
|
|
187
|
-
var b = 0;
|
|
188
|
-
S(a2, function() {
|
|
189
|
-
b++;
|
|
190
|
-
});
|
|
191
|
-
return b;
|
|
192
|
-
}, toArray: function(a2) {
|
|
193
|
-
return S(a2, function(a3) {
|
|
194
|
-
return a3;
|
|
195
|
-
}) || [];
|
|
196
|
-
}, only: function(a2) {
|
|
197
|
-
if (!O(a2)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
198
|
-
return a2;
|
|
199
|
-
} };
|
|
200
|
-
exports.Component = E2;
|
|
201
|
-
exports.Fragment = p;
|
|
202
|
-
exports.Profiler = r2;
|
|
203
|
-
exports.PureComponent = G;
|
|
204
|
-
exports.StrictMode = q;
|
|
205
|
-
exports.Suspense = w;
|
|
206
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
|
|
207
|
-
exports.act = X;
|
|
208
|
-
exports.cloneElement = function(a2, b, e2) {
|
|
209
|
-
if (null === a2 || void 0 === a2) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a2 + ".");
|
|
210
|
-
var d = C({}, a2.props), c2 = a2.key, k = a2.ref, h = a2._owner;
|
|
211
|
-
if (null != b) {
|
|
212
|
-
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
213
|
-
void 0 !== b.key && (c2 = "" + b.key);
|
|
214
|
-
if (a2.type && a2.type.defaultProps) var g = a2.type.defaultProps;
|
|
215
|
-
for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
216
|
-
}
|
|
217
|
-
var f = arguments.length - 2;
|
|
218
|
-
if (1 === f) d.children = e2;
|
|
219
|
-
else if (1 < f) {
|
|
220
|
-
g = Array(f);
|
|
221
|
-
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
|
|
222
|
-
d.children = g;
|
|
223
|
-
}
|
|
224
|
-
return { $$typeof: l, type: a2.type, key: c2, ref: k, props: d, _owner: h };
|
|
225
|
-
};
|
|
226
|
-
exports.createContext = function(a2) {
|
|
227
|
-
a2 = { $$typeof: u, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
228
|
-
a2.Provider = { $$typeof: t3, _context: a2 };
|
|
229
|
-
return a2.Consumer = a2;
|
|
230
|
-
};
|
|
231
|
-
exports.createElement = M;
|
|
232
|
-
exports.createFactory = function(a2) {
|
|
233
|
-
var b = M.bind(null, a2);
|
|
234
|
-
b.type = a2;
|
|
235
|
-
return b;
|
|
236
|
-
};
|
|
237
|
-
exports.createRef = function() {
|
|
238
|
-
return { current: null };
|
|
239
|
-
};
|
|
240
|
-
exports.forwardRef = function(a2) {
|
|
241
|
-
return { $$typeof: v, render: a2 };
|
|
242
|
-
};
|
|
243
|
-
exports.isValidElement = O;
|
|
244
|
-
exports.lazy = function(a2) {
|
|
245
|
-
return { $$typeof: y, _payload: { _status: -1, _result: a2 }, _init: T };
|
|
246
|
-
};
|
|
247
|
-
exports.memo = function(a2, b) {
|
|
248
|
-
return { $$typeof: x, type: a2, compare: void 0 === b ? null : b };
|
|
249
|
-
};
|
|
250
|
-
exports.startTransition = function(a2) {
|
|
251
|
-
var b = V.transition;
|
|
252
|
-
V.transition = {};
|
|
253
|
-
try {
|
|
254
|
-
a2();
|
|
255
|
-
} finally {
|
|
256
|
-
V.transition = b;
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
exports.unstable_act = X;
|
|
260
|
-
exports.useCallback = function(a2, b) {
|
|
261
|
-
return U.current.useCallback(a2, b);
|
|
262
|
-
};
|
|
263
|
-
exports.useContext = function(a2) {
|
|
264
|
-
return U.current.useContext(a2);
|
|
265
|
-
};
|
|
266
|
-
exports.useDebugValue = function() {
|
|
267
|
-
};
|
|
268
|
-
exports.useDeferredValue = function(a2) {
|
|
269
|
-
return U.current.useDeferredValue(a2);
|
|
270
|
-
};
|
|
271
|
-
exports.useEffect = function(a2, b) {
|
|
272
|
-
return U.current.useEffect(a2, b);
|
|
273
|
-
};
|
|
274
|
-
exports.useId = function() {
|
|
275
|
-
return U.current.useId();
|
|
276
|
-
};
|
|
277
|
-
exports.useImperativeHandle = function(a2, b, e2) {
|
|
278
|
-
return U.current.useImperativeHandle(a2, b, e2);
|
|
279
|
-
};
|
|
280
|
-
exports.useInsertionEffect = function(a2, b) {
|
|
281
|
-
return U.current.useInsertionEffect(a2, b);
|
|
282
|
-
};
|
|
283
|
-
exports.useLayoutEffect = function(a2, b) {
|
|
284
|
-
return U.current.useLayoutEffect(a2, b);
|
|
285
|
-
};
|
|
286
|
-
exports.useMemo = function(a2, b) {
|
|
287
|
-
return U.current.useMemo(a2, b);
|
|
288
|
-
};
|
|
289
|
-
exports.useReducer = function(a2, b, e2) {
|
|
290
|
-
return U.current.useReducer(a2, b, e2);
|
|
291
|
-
};
|
|
292
|
-
exports.useRef = function(a2) {
|
|
293
|
-
return U.current.useRef(a2);
|
|
294
|
-
};
|
|
295
|
-
exports.useState = function(a2) {
|
|
296
|
-
return U.current.useState(a2);
|
|
297
|
-
};
|
|
298
|
-
exports.useSyncExternalStore = function(a2, b, e2) {
|
|
299
|
-
return U.current.useSyncExternalStore(a2, b, e2);
|
|
300
|
-
};
|
|
301
|
-
exports.useTransition = function() {
|
|
302
|
-
return U.current.useTransition();
|
|
303
|
-
};
|
|
304
|
-
exports.version = "18.3.1";
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
// ../../node_modules/react/index.js
|
|
309
|
-
var require_react = __commonJS({
|
|
310
|
-
"../../node_modules/react/index.js"(exports, module) {
|
|
311
|
-
"use strict";
|
|
312
|
-
init_esm_shims();
|
|
313
|
-
if (true) {
|
|
314
|
-
module.exports = require_react_production_min();
|
|
315
|
-
} else {
|
|
316
|
-
module.exports = null;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
|
|
321
35
|
// ../../node_modules/lodash/isObject.js
|
|
322
36
|
var require_isObject = __commonJS({
|
|
323
37
|
"../../node_modules/lodash/isObject.js"(exports, module) {
|
|
@@ -702,11 +416,11 @@ var require_signal_exit = __commonJS({
|
|
|
702
416
|
"../../node_modules/signal-exit/index.js"(exports, module) {
|
|
703
417
|
"use strict";
|
|
704
418
|
init_esm_shims();
|
|
705
|
-
var
|
|
706
|
-
var processOk = function(
|
|
707
|
-
return
|
|
419
|
+
var process14 = global.process;
|
|
420
|
+
var processOk = function(process15) {
|
|
421
|
+
return process15 && typeof process15 === "object" && typeof process15.removeListener === "function" && typeof process15.emit === "function" && typeof process15.reallyExit === "function" && typeof process15.listeners === "function" && typeof process15.kill === "function" && typeof process15.pid === "number" && typeof process15.on === "function";
|
|
708
422
|
};
|
|
709
|
-
if (!processOk(
|
|
423
|
+
if (!processOk(process14)) {
|
|
710
424
|
module.exports = function() {
|
|
711
425
|
return function() {
|
|
712
426
|
};
|
|
@@ -714,15 +428,15 @@ var require_signal_exit = __commonJS({
|
|
|
714
428
|
} else {
|
|
715
429
|
assert = __require("assert");
|
|
716
430
|
signals = require_signals();
|
|
717
|
-
isWin = /^win/i.test(
|
|
431
|
+
isWin = /^win/i.test(process14.platform);
|
|
718
432
|
EE = __require("events");
|
|
719
433
|
if (typeof EE !== "function") {
|
|
720
434
|
EE = EE.EventEmitter;
|
|
721
435
|
}
|
|
722
|
-
if (
|
|
723
|
-
emitter =
|
|
436
|
+
if (process14.__signal_exit_emitter__) {
|
|
437
|
+
emitter = process14.__signal_exit_emitter__;
|
|
724
438
|
} else {
|
|
725
|
-
emitter =
|
|
439
|
+
emitter = process14.__signal_exit_emitter__ = new EE();
|
|
726
440
|
emitter.count = 0;
|
|
727
441
|
emitter.emitted = {};
|
|
728
442
|
}
|
|
@@ -759,12 +473,12 @@ var require_signal_exit = __commonJS({
|
|
|
759
473
|
loaded = false;
|
|
760
474
|
signals.forEach(function(sig) {
|
|
761
475
|
try {
|
|
762
|
-
|
|
476
|
+
process14.removeListener(sig, sigListeners[sig]);
|
|
763
477
|
} catch (er) {
|
|
764
478
|
}
|
|
765
479
|
});
|
|
766
|
-
|
|
767
|
-
|
|
480
|
+
process14.emit = originalProcessEmit;
|
|
481
|
+
process14.reallyExit = originalProcessReallyExit;
|
|
768
482
|
emitter.count -= 1;
|
|
769
483
|
};
|
|
770
484
|
module.exports.unload = unload;
|
|
@@ -781,7 +495,7 @@ var require_signal_exit = __commonJS({
|
|
|
781
495
|
if (!processOk(global.process)) {
|
|
782
496
|
return;
|
|
783
497
|
}
|
|
784
|
-
var listeners =
|
|
498
|
+
var listeners = process14.listeners(sig);
|
|
785
499
|
if (listeners.length === emitter.count) {
|
|
786
500
|
unload();
|
|
787
501
|
emit("exit", null, sig);
|
|
@@ -789,7 +503,7 @@ var require_signal_exit = __commonJS({
|
|
|
789
503
|
if (isWin && sig === "SIGHUP") {
|
|
790
504
|
sig = "SIGINT";
|
|
791
505
|
}
|
|
792
|
-
|
|
506
|
+
process14.kill(process14.pid, sig);
|
|
793
507
|
}
|
|
794
508
|
};
|
|
795
509
|
});
|
|
@@ -805,36 +519,36 @@ var require_signal_exit = __commonJS({
|
|
|
805
519
|
emitter.count += 1;
|
|
806
520
|
signals = signals.filter(function(sig) {
|
|
807
521
|
try {
|
|
808
|
-
|
|
522
|
+
process14.on(sig, sigListeners[sig]);
|
|
809
523
|
return true;
|
|
810
524
|
} catch (er) {
|
|
811
525
|
return false;
|
|
812
526
|
}
|
|
813
527
|
});
|
|
814
|
-
|
|
815
|
-
|
|
528
|
+
process14.emit = processEmit;
|
|
529
|
+
process14.reallyExit = processReallyExit;
|
|
816
530
|
};
|
|
817
531
|
module.exports.load = load;
|
|
818
|
-
originalProcessReallyExit =
|
|
532
|
+
originalProcessReallyExit = process14.reallyExit;
|
|
819
533
|
processReallyExit = function processReallyExit2(code) {
|
|
820
534
|
if (!processOk(global.process)) {
|
|
821
535
|
return;
|
|
822
536
|
}
|
|
823
|
-
|
|
537
|
+
process14.exitCode = code || /* istanbul ignore next */
|
|
824
538
|
0;
|
|
825
|
-
emit("exit",
|
|
826
|
-
emit("afterexit",
|
|
827
|
-
originalProcessReallyExit.call(
|
|
539
|
+
emit("exit", process14.exitCode, null);
|
|
540
|
+
emit("afterexit", process14.exitCode, null);
|
|
541
|
+
originalProcessReallyExit.call(process14, process14.exitCode);
|
|
828
542
|
};
|
|
829
|
-
originalProcessEmit =
|
|
543
|
+
originalProcessEmit = process14.emit;
|
|
830
544
|
processEmit = function processEmit2(ev, arg) {
|
|
831
545
|
if (ev === "exit" && processOk(global.process)) {
|
|
832
546
|
if (arg !== void 0) {
|
|
833
|
-
|
|
547
|
+
process14.exitCode = arg;
|
|
834
548
|
}
|
|
835
549
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
836
|
-
emit("exit",
|
|
837
|
-
emit("afterexit",
|
|
550
|
+
emit("exit", process14.exitCode, null);
|
|
551
|
+
emit("afterexit", process14.exitCode, null);
|
|
838
552
|
return ret;
|
|
839
553
|
} else {
|
|
840
554
|
return originalProcessEmit.apply(this, arguments);
|
|
@@ -6201,7 +5915,7 @@ var require_stack_utils = __commonJS({
|
|
|
6201
5915
|
"../../node_modules/stack-utils/index.js"(exports, module) {
|
|
6202
5916
|
"use strict";
|
|
6203
5917
|
init_esm_shims();
|
|
6204
|
-
var
|
|
5918
|
+
var escapeStringRegexp2 = require_escape_string_regexp();
|
|
6205
5919
|
var cwd2 = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
|
|
6206
5920
|
var natives = [].concat(
|
|
6207
5921
|
__require("module").builtinModules,
|
|
@@ -6354,21 +6068,21 @@ var require_stack_utils = __commonJS({
|
|
|
6354
6068
|
return res;
|
|
6355
6069
|
}
|
|
6356
6070
|
parseLine(line) {
|
|
6357
|
-
const
|
|
6358
|
-
if (!
|
|
6071
|
+
const match6 = line && line.match(re);
|
|
6072
|
+
if (!match6) {
|
|
6359
6073
|
return null;
|
|
6360
6074
|
}
|
|
6361
|
-
const ctor =
|
|
6362
|
-
let fname =
|
|
6363
|
-
const evalOrigin =
|
|
6364
|
-
const evalFile =
|
|
6365
|
-
const evalLine = Number(
|
|
6366
|
-
const evalCol = Number(
|
|
6367
|
-
let file =
|
|
6368
|
-
const lnum =
|
|
6369
|
-
const col =
|
|
6370
|
-
const native =
|
|
6371
|
-
const closeParen =
|
|
6075
|
+
const ctor = match6[1] === "new";
|
|
6076
|
+
let fname = match6[2];
|
|
6077
|
+
const evalOrigin = match6[3];
|
|
6078
|
+
const evalFile = match6[4];
|
|
6079
|
+
const evalLine = Number(match6[5]);
|
|
6080
|
+
const evalCol = Number(match6[6]);
|
|
6081
|
+
let file = match6[7];
|
|
6082
|
+
const lnum = match6[8];
|
|
6083
|
+
const col = match6[9];
|
|
6084
|
+
const native = match6[10] === "native";
|
|
6085
|
+
const closeParen = match6[11] === ")";
|
|
6372
6086
|
let method;
|
|
6373
6087
|
const res = {};
|
|
6374
6088
|
if (lnum) {
|
|
@@ -6439,7 +6153,7 @@ var require_stack_utils = __commonJS({
|
|
|
6439
6153
|
if (ignoredPackages.length === 0) {
|
|
6440
6154
|
return [];
|
|
6441
6155
|
}
|
|
6442
|
-
const packages = ignoredPackages.map((mod) =>
|
|
6156
|
+
const packages = ignoredPackages.map((mod) => escapeStringRegexp2(mod));
|
|
6443
6157
|
return new RegExp(`[/\\\\]node_modules[/\\\\](?:${packages.join("|")})[/\\\\][^:]+:\\d+:\\d+`);
|
|
6444
6158
|
}
|
|
6445
6159
|
var re = new RegExp(
|
|
@@ -6533,6 +6247,725 @@ var require_supports_hyperlinks = __commonJS({
|
|
|
6533
6247
|
}
|
|
6534
6248
|
});
|
|
6535
6249
|
|
|
6250
|
+
// ../../node_modules/lodash.isequal/index.js
|
|
6251
|
+
var require_lodash = __commonJS({
|
|
6252
|
+
"../../node_modules/lodash.isequal/index.js"(exports, module) {
|
|
6253
|
+
"use strict";
|
|
6254
|
+
init_esm_shims();
|
|
6255
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
6256
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
6257
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
6258
|
+
var COMPARE_UNORDERED_FLAG = 2;
|
|
6259
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
6260
|
+
var argsTag = "[object Arguments]";
|
|
6261
|
+
var arrayTag = "[object Array]";
|
|
6262
|
+
var asyncTag = "[object AsyncFunction]";
|
|
6263
|
+
var boolTag = "[object Boolean]";
|
|
6264
|
+
var dateTag = "[object Date]";
|
|
6265
|
+
var errorTag = "[object Error]";
|
|
6266
|
+
var funcTag = "[object Function]";
|
|
6267
|
+
var genTag = "[object GeneratorFunction]";
|
|
6268
|
+
var mapTag = "[object Map]";
|
|
6269
|
+
var numberTag = "[object Number]";
|
|
6270
|
+
var nullTag = "[object Null]";
|
|
6271
|
+
var objectTag = "[object Object]";
|
|
6272
|
+
var promiseTag = "[object Promise]";
|
|
6273
|
+
var proxyTag = "[object Proxy]";
|
|
6274
|
+
var regexpTag = "[object RegExp]";
|
|
6275
|
+
var setTag = "[object Set]";
|
|
6276
|
+
var stringTag = "[object String]";
|
|
6277
|
+
var symbolTag = "[object Symbol]";
|
|
6278
|
+
var undefinedTag = "[object Undefined]";
|
|
6279
|
+
var weakMapTag = "[object WeakMap]";
|
|
6280
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
6281
|
+
var dataViewTag = "[object DataView]";
|
|
6282
|
+
var float32Tag = "[object Float32Array]";
|
|
6283
|
+
var float64Tag = "[object Float64Array]";
|
|
6284
|
+
var int8Tag = "[object Int8Array]";
|
|
6285
|
+
var int16Tag = "[object Int16Array]";
|
|
6286
|
+
var int32Tag = "[object Int32Array]";
|
|
6287
|
+
var uint8Tag = "[object Uint8Array]";
|
|
6288
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
6289
|
+
var uint16Tag = "[object Uint16Array]";
|
|
6290
|
+
var uint32Tag = "[object Uint32Array]";
|
|
6291
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
6292
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
6293
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
6294
|
+
var typedArrayTags = {};
|
|
6295
|
+
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
6296
|
+
typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
|
|
6297
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
6298
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
6299
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
6300
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
6301
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
6302
|
+
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
6303
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
6304
|
+
var nodeUtil = function() {
|
|
6305
|
+
try {
|
|
6306
|
+
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
6307
|
+
} catch (e2) {
|
|
6308
|
+
}
|
|
6309
|
+
}();
|
|
6310
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
6311
|
+
function arrayFilter(array, predicate) {
|
|
6312
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
6313
|
+
while (++index < length) {
|
|
6314
|
+
var value2 = array[index];
|
|
6315
|
+
if (predicate(value2, index, array)) {
|
|
6316
|
+
result[resIndex++] = value2;
|
|
6317
|
+
}
|
|
6318
|
+
}
|
|
6319
|
+
return result;
|
|
6320
|
+
}
|
|
6321
|
+
function arrayPush(array, values) {
|
|
6322
|
+
var index = -1, length = values.length, offset = array.length;
|
|
6323
|
+
while (++index < length) {
|
|
6324
|
+
array[offset + index] = values[index];
|
|
6325
|
+
}
|
|
6326
|
+
return array;
|
|
6327
|
+
}
|
|
6328
|
+
function arraySome(array, predicate) {
|
|
6329
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
6330
|
+
while (++index < length) {
|
|
6331
|
+
if (predicate(array[index], index, array)) {
|
|
6332
|
+
return true;
|
|
6333
|
+
}
|
|
6334
|
+
}
|
|
6335
|
+
return false;
|
|
6336
|
+
}
|
|
6337
|
+
function baseTimes(n2, iteratee) {
|
|
6338
|
+
var index = -1, result = Array(n2);
|
|
6339
|
+
while (++index < n2) {
|
|
6340
|
+
result[index] = iteratee(index);
|
|
6341
|
+
}
|
|
6342
|
+
return result;
|
|
6343
|
+
}
|
|
6344
|
+
function baseUnary(func) {
|
|
6345
|
+
return function(value2) {
|
|
6346
|
+
return func(value2);
|
|
6347
|
+
};
|
|
6348
|
+
}
|
|
6349
|
+
function cacheHas(cache3, key) {
|
|
6350
|
+
return cache3.has(key);
|
|
6351
|
+
}
|
|
6352
|
+
function getValue(object, key) {
|
|
6353
|
+
return object == null ? void 0 : object[key];
|
|
6354
|
+
}
|
|
6355
|
+
function mapToArray(map) {
|
|
6356
|
+
var index = -1, result = Array(map.size);
|
|
6357
|
+
map.forEach(function(value2, key) {
|
|
6358
|
+
result[++index] = [key, value2];
|
|
6359
|
+
});
|
|
6360
|
+
return result;
|
|
6361
|
+
}
|
|
6362
|
+
function overArg(func, transform) {
|
|
6363
|
+
return function(arg) {
|
|
6364
|
+
return func(transform(arg));
|
|
6365
|
+
};
|
|
6366
|
+
}
|
|
6367
|
+
function setToArray(set) {
|
|
6368
|
+
var index = -1, result = Array(set.size);
|
|
6369
|
+
set.forEach(function(value2) {
|
|
6370
|
+
result[++index] = value2;
|
|
6371
|
+
});
|
|
6372
|
+
return result;
|
|
6373
|
+
}
|
|
6374
|
+
var arrayProto = Array.prototype;
|
|
6375
|
+
var funcProto = Function.prototype;
|
|
6376
|
+
var objectProto = Object.prototype;
|
|
6377
|
+
var coreJsData = root["__core-js_shared__"];
|
|
6378
|
+
var funcToString = funcProto.toString;
|
|
6379
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
6380
|
+
var maskSrcKey = function() {
|
|
6381
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
6382
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
6383
|
+
}();
|
|
6384
|
+
var nativeObjectToString = objectProto.toString;
|
|
6385
|
+
var reIsNative = RegExp(
|
|
6386
|
+
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
6387
|
+
);
|
|
6388
|
+
var Buffer2 = moduleExports ? root.Buffer : void 0;
|
|
6389
|
+
var Symbol2 = root.Symbol;
|
|
6390
|
+
var Uint8Array2 = root.Uint8Array;
|
|
6391
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
6392
|
+
var splice = arrayProto.splice;
|
|
6393
|
+
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
|
6394
|
+
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
6395
|
+
var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
|
|
6396
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
6397
|
+
var DataView = getNative(root, "DataView");
|
|
6398
|
+
var Map2 = getNative(root, "Map");
|
|
6399
|
+
var Promise2 = getNative(root, "Promise");
|
|
6400
|
+
var Set2 = getNative(root, "Set");
|
|
6401
|
+
var WeakMap2 = getNative(root, "WeakMap");
|
|
6402
|
+
var nativeCreate = getNative(Object, "create");
|
|
6403
|
+
var dataViewCtorString = toSource(DataView);
|
|
6404
|
+
var mapCtorString = toSource(Map2);
|
|
6405
|
+
var promiseCtorString = toSource(Promise2);
|
|
6406
|
+
var setCtorString = toSource(Set2);
|
|
6407
|
+
var weakMapCtorString = toSource(WeakMap2);
|
|
6408
|
+
var symbolProto = Symbol2 ? Symbol2.prototype : void 0;
|
|
6409
|
+
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
|
6410
|
+
function Hash(entries) {
|
|
6411
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
6412
|
+
this.clear();
|
|
6413
|
+
while (++index < length) {
|
|
6414
|
+
var entry = entries[index];
|
|
6415
|
+
this.set(entry[0], entry[1]);
|
|
6416
|
+
}
|
|
6417
|
+
}
|
|
6418
|
+
function hashClear() {
|
|
6419
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
6420
|
+
this.size = 0;
|
|
6421
|
+
}
|
|
6422
|
+
function hashDelete(key) {
|
|
6423
|
+
var result = this.has(key) && delete this.__data__[key];
|
|
6424
|
+
this.size -= result ? 1 : 0;
|
|
6425
|
+
return result;
|
|
6426
|
+
}
|
|
6427
|
+
function hashGet(key) {
|
|
6428
|
+
var data = this.__data__;
|
|
6429
|
+
if (nativeCreate) {
|
|
6430
|
+
var result = data[key];
|
|
6431
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
6432
|
+
}
|
|
6433
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
6434
|
+
}
|
|
6435
|
+
function hashHas(key) {
|
|
6436
|
+
var data = this.__data__;
|
|
6437
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
6438
|
+
}
|
|
6439
|
+
function hashSet(key, value2) {
|
|
6440
|
+
var data = this.__data__;
|
|
6441
|
+
this.size += this.has(key) ? 0 : 1;
|
|
6442
|
+
data[key] = nativeCreate && value2 === void 0 ? HASH_UNDEFINED : value2;
|
|
6443
|
+
return this;
|
|
6444
|
+
}
|
|
6445
|
+
Hash.prototype.clear = hashClear;
|
|
6446
|
+
Hash.prototype["delete"] = hashDelete;
|
|
6447
|
+
Hash.prototype.get = hashGet;
|
|
6448
|
+
Hash.prototype.has = hashHas;
|
|
6449
|
+
Hash.prototype.set = hashSet;
|
|
6450
|
+
function ListCache(entries) {
|
|
6451
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
6452
|
+
this.clear();
|
|
6453
|
+
while (++index < length) {
|
|
6454
|
+
var entry = entries[index];
|
|
6455
|
+
this.set(entry[0], entry[1]);
|
|
6456
|
+
}
|
|
6457
|
+
}
|
|
6458
|
+
function listCacheClear() {
|
|
6459
|
+
this.__data__ = [];
|
|
6460
|
+
this.size = 0;
|
|
6461
|
+
}
|
|
6462
|
+
function listCacheDelete(key) {
|
|
6463
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
6464
|
+
if (index < 0) {
|
|
6465
|
+
return false;
|
|
6466
|
+
}
|
|
6467
|
+
var lastIndex = data.length - 1;
|
|
6468
|
+
if (index == lastIndex) {
|
|
6469
|
+
data.pop();
|
|
6470
|
+
} else {
|
|
6471
|
+
splice.call(data, index, 1);
|
|
6472
|
+
}
|
|
6473
|
+
--this.size;
|
|
6474
|
+
return true;
|
|
6475
|
+
}
|
|
6476
|
+
function listCacheGet(key) {
|
|
6477
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
6478
|
+
return index < 0 ? void 0 : data[index][1];
|
|
6479
|
+
}
|
|
6480
|
+
function listCacheHas(key) {
|
|
6481
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
6482
|
+
}
|
|
6483
|
+
function listCacheSet(key, value2) {
|
|
6484
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
6485
|
+
if (index < 0) {
|
|
6486
|
+
++this.size;
|
|
6487
|
+
data.push([key, value2]);
|
|
6488
|
+
} else {
|
|
6489
|
+
data[index][1] = value2;
|
|
6490
|
+
}
|
|
6491
|
+
return this;
|
|
6492
|
+
}
|
|
6493
|
+
ListCache.prototype.clear = listCacheClear;
|
|
6494
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
6495
|
+
ListCache.prototype.get = listCacheGet;
|
|
6496
|
+
ListCache.prototype.has = listCacheHas;
|
|
6497
|
+
ListCache.prototype.set = listCacheSet;
|
|
6498
|
+
function MapCache(entries) {
|
|
6499
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
6500
|
+
this.clear();
|
|
6501
|
+
while (++index < length) {
|
|
6502
|
+
var entry = entries[index];
|
|
6503
|
+
this.set(entry[0], entry[1]);
|
|
6504
|
+
}
|
|
6505
|
+
}
|
|
6506
|
+
function mapCacheClear() {
|
|
6507
|
+
this.size = 0;
|
|
6508
|
+
this.__data__ = {
|
|
6509
|
+
"hash": new Hash(),
|
|
6510
|
+
"map": new (Map2 || ListCache)(),
|
|
6511
|
+
"string": new Hash()
|
|
6512
|
+
};
|
|
6513
|
+
}
|
|
6514
|
+
function mapCacheDelete(key) {
|
|
6515
|
+
var result = getMapData(this, key)["delete"](key);
|
|
6516
|
+
this.size -= result ? 1 : 0;
|
|
6517
|
+
return result;
|
|
6518
|
+
}
|
|
6519
|
+
function mapCacheGet(key) {
|
|
6520
|
+
return getMapData(this, key).get(key);
|
|
6521
|
+
}
|
|
6522
|
+
function mapCacheHas(key) {
|
|
6523
|
+
return getMapData(this, key).has(key);
|
|
6524
|
+
}
|
|
6525
|
+
function mapCacheSet(key, value2) {
|
|
6526
|
+
var data = getMapData(this, key), size = data.size;
|
|
6527
|
+
data.set(key, value2);
|
|
6528
|
+
this.size += data.size == size ? 0 : 1;
|
|
6529
|
+
return this;
|
|
6530
|
+
}
|
|
6531
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
6532
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
6533
|
+
MapCache.prototype.get = mapCacheGet;
|
|
6534
|
+
MapCache.prototype.has = mapCacheHas;
|
|
6535
|
+
MapCache.prototype.set = mapCacheSet;
|
|
6536
|
+
function SetCache(values) {
|
|
6537
|
+
var index = -1, length = values == null ? 0 : values.length;
|
|
6538
|
+
this.__data__ = new MapCache();
|
|
6539
|
+
while (++index < length) {
|
|
6540
|
+
this.add(values[index]);
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
function setCacheAdd(value2) {
|
|
6544
|
+
this.__data__.set(value2, HASH_UNDEFINED);
|
|
6545
|
+
return this;
|
|
6546
|
+
}
|
|
6547
|
+
function setCacheHas(value2) {
|
|
6548
|
+
return this.__data__.has(value2);
|
|
6549
|
+
}
|
|
6550
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
6551
|
+
SetCache.prototype.has = setCacheHas;
|
|
6552
|
+
function Stack(entries) {
|
|
6553
|
+
var data = this.__data__ = new ListCache(entries);
|
|
6554
|
+
this.size = data.size;
|
|
6555
|
+
}
|
|
6556
|
+
function stackClear() {
|
|
6557
|
+
this.__data__ = new ListCache();
|
|
6558
|
+
this.size = 0;
|
|
6559
|
+
}
|
|
6560
|
+
function stackDelete(key) {
|
|
6561
|
+
var data = this.__data__, result = data["delete"](key);
|
|
6562
|
+
this.size = data.size;
|
|
6563
|
+
return result;
|
|
6564
|
+
}
|
|
6565
|
+
function stackGet(key) {
|
|
6566
|
+
return this.__data__.get(key);
|
|
6567
|
+
}
|
|
6568
|
+
function stackHas(key) {
|
|
6569
|
+
return this.__data__.has(key);
|
|
6570
|
+
}
|
|
6571
|
+
function stackSet(key, value2) {
|
|
6572
|
+
var data = this.__data__;
|
|
6573
|
+
if (data instanceof ListCache) {
|
|
6574
|
+
var pairs = data.__data__;
|
|
6575
|
+
if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
6576
|
+
pairs.push([key, value2]);
|
|
6577
|
+
this.size = ++data.size;
|
|
6578
|
+
return this;
|
|
6579
|
+
}
|
|
6580
|
+
data = this.__data__ = new MapCache(pairs);
|
|
6581
|
+
}
|
|
6582
|
+
data.set(key, value2);
|
|
6583
|
+
this.size = data.size;
|
|
6584
|
+
return this;
|
|
6585
|
+
}
|
|
6586
|
+
Stack.prototype.clear = stackClear;
|
|
6587
|
+
Stack.prototype["delete"] = stackDelete;
|
|
6588
|
+
Stack.prototype.get = stackGet;
|
|
6589
|
+
Stack.prototype.has = stackHas;
|
|
6590
|
+
Stack.prototype.set = stackSet;
|
|
6591
|
+
function arrayLikeKeys(value2, inherited) {
|
|
6592
|
+
var isArr = isArray(value2), isArg = !isArr && isArguments(value2), isBuff = !isArr && !isArg && isBuffer(value2), isType5 = !isArr && !isArg && !isBuff && isTypedArray(value2), skipIndexes = isArr || isArg || isBuff || isType5, result = skipIndexes ? baseTimes(value2.length, String) : [], length = result.length;
|
|
6593
|
+
for (var key in value2) {
|
|
6594
|
+
if ((inherited || hasOwnProperty.call(value2, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
6595
|
+
(key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
6596
|
+
isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
6597
|
+
isType5 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
|
|
6598
|
+
isIndex(key, length)))) {
|
|
6599
|
+
result.push(key);
|
|
6600
|
+
}
|
|
6601
|
+
}
|
|
6602
|
+
return result;
|
|
6603
|
+
}
|
|
6604
|
+
function assocIndexOf(array, key) {
|
|
6605
|
+
var length = array.length;
|
|
6606
|
+
while (length--) {
|
|
6607
|
+
if (eq(array[length][0], key)) {
|
|
6608
|
+
return length;
|
|
6609
|
+
}
|
|
6610
|
+
}
|
|
6611
|
+
return -1;
|
|
6612
|
+
}
|
|
6613
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
6614
|
+
var result = keysFunc(object);
|
|
6615
|
+
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
6616
|
+
}
|
|
6617
|
+
function baseGetTag(value2) {
|
|
6618
|
+
if (value2 == null) {
|
|
6619
|
+
return value2 === void 0 ? undefinedTag : nullTag;
|
|
6620
|
+
}
|
|
6621
|
+
return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
|
|
6622
|
+
}
|
|
6623
|
+
function baseIsArguments(value2) {
|
|
6624
|
+
return isObjectLike(value2) && baseGetTag(value2) == argsTag;
|
|
6625
|
+
}
|
|
6626
|
+
function baseIsEqual(value2, other, bitmask, customizer, stack) {
|
|
6627
|
+
if (value2 === other) {
|
|
6628
|
+
return true;
|
|
6629
|
+
}
|
|
6630
|
+
if (value2 == null || other == null || !isObjectLike(value2) && !isObjectLike(other)) {
|
|
6631
|
+
return value2 !== value2 && other !== other;
|
|
6632
|
+
}
|
|
6633
|
+
return baseIsEqualDeep(value2, other, bitmask, customizer, baseIsEqual, stack);
|
|
6634
|
+
}
|
|
6635
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
6636
|
+
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
|
6637
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
6638
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
6639
|
+
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
|
6640
|
+
if (isSameTag && isBuffer(object)) {
|
|
6641
|
+
if (!isBuffer(other)) {
|
|
6642
|
+
return false;
|
|
6643
|
+
}
|
|
6644
|
+
objIsArr = true;
|
|
6645
|
+
objIsObj = false;
|
|
6646
|
+
}
|
|
6647
|
+
if (isSameTag && !objIsObj) {
|
|
6648
|
+
stack || (stack = new Stack());
|
|
6649
|
+
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
6650
|
+
}
|
|
6651
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
6652
|
+
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
|
6653
|
+
if (objIsWrapped || othIsWrapped) {
|
|
6654
|
+
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
6655
|
+
stack || (stack = new Stack());
|
|
6656
|
+
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
6657
|
+
}
|
|
6658
|
+
}
|
|
6659
|
+
if (!isSameTag) {
|
|
6660
|
+
return false;
|
|
6661
|
+
}
|
|
6662
|
+
stack || (stack = new Stack());
|
|
6663
|
+
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
6664
|
+
}
|
|
6665
|
+
function baseIsNative(value2) {
|
|
6666
|
+
if (!isObject2(value2) || isMasked(value2)) {
|
|
6667
|
+
return false;
|
|
6668
|
+
}
|
|
6669
|
+
var pattern = isFunction(value2) ? reIsNative : reIsHostCtor;
|
|
6670
|
+
return pattern.test(toSource(value2));
|
|
6671
|
+
}
|
|
6672
|
+
function baseIsTypedArray(value2) {
|
|
6673
|
+
return isObjectLike(value2) && isLength(value2.length) && !!typedArrayTags[baseGetTag(value2)];
|
|
6674
|
+
}
|
|
6675
|
+
function baseKeys(object) {
|
|
6676
|
+
if (!isPrototype(object)) {
|
|
6677
|
+
return nativeKeys(object);
|
|
6678
|
+
}
|
|
6679
|
+
var result = [];
|
|
6680
|
+
for (var key in Object(object)) {
|
|
6681
|
+
if (hasOwnProperty.call(object, key) && key != "constructor") {
|
|
6682
|
+
result.push(key);
|
|
6683
|
+
}
|
|
6684
|
+
}
|
|
6685
|
+
return result;
|
|
6686
|
+
}
|
|
6687
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
6688
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
|
6689
|
+
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
|
6690
|
+
return false;
|
|
6691
|
+
}
|
|
6692
|
+
var stacked = stack.get(array);
|
|
6693
|
+
if (stacked && stack.get(other)) {
|
|
6694
|
+
return stacked == other;
|
|
6695
|
+
}
|
|
6696
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
|
6697
|
+
stack.set(array, other);
|
|
6698
|
+
stack.set(other, array);
|
|
6699
|
+
while (++index < arrLength) {
|
|
6700
|
+
var arrValue = array[index], othValue = other[index];
|
|
6701
|
+
if (customizer) {
|
|
6702
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
6703
|
+
}
|
|
6704
|
+
if (compared !== void 0) {
|
|
6705
|
+
if (compared) {
|
|
6706
|
+
continue;
|
|
6707
|
+
}
|
|
6708
|
+
result = false;
|
|
6709
|
+
break;
|
|
6710
|
+
}
|
|
6711
|
+
if (seen) {
|
|
6712
|
+
if (!arraySome(other, function(othValue2, othIndex) {
|
|
6713
|
+
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
|
6714
|
+
return seen.push(othIndex);
|
|
6715
|
+
}
|
|
6716
|
+
})) {
|
|
6717
|
+
result = false;
|
|
6718
|
+
break;
|
|
6719
|
+
}
|
|
6720
|
+
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
|
6721
|
+
result = false;
|
|
6722
|
+
break;
|
|
6723
|
+
}
|
|
6724
|
+
}
|
|
6725
|
+
stack["delete"](array);
|
|
6726
|
+
stack["delete"](other);
|
|
6727
|
+
return result;
|
|
6728
|
+
}
|
|
6729
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
6730
|
+
switch (tag) {
|
|
6731
|
+
case dataViewTag:
|
|
6732
|
+
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
|
6733
|
+
return false;
|
|
6734
|
+
}
|
|
6735
|
+
object = object.buffer;
|
|
6736
|
+
other = other.buffer;
|
|
6737
|
+
case arrayBufferTag:
|
|
6738
|
+
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) {
|
|
6739
|
+
return false;
|
|
6740
|
+
}
|
|
6741
|
+
return true;
|
|
6742
|
+
case boolTag:
|
|
6743
|
+
case dateTag:
|
|
6744
|
+
case numberTag:
|
|
6745
|
+
return eq(+object, +other);
|
|
6746
|
+
case errorTag:
|
|
6747
|
+
return object.name == other.name && object.message == other.message;
|
|
6748
|
+
case regexpTag:
|
|
6749
|
+
case stringTag:
|
|
6750
|
+
return object == other + "";
|
|
6751
|
+
case mapTag:
|
|
6752
|
+
var convert = mapToArray;
|
|
6753
|
+
case setTag:
|
|
6754
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
|
6755
|
+
convert || (convert = setToArray);
|
|
6756
|
+
if (object.size != other.size && !isPartial) {
|
|
6757
|
+
return false;
|
|
6758
|
+
}
|
|
6759
|
+
var stacked = stack.get(object);
|
|
6760
|
+
if (stacked) {
|
|
6761
|
+
return stacked == other;
|
|
6762
|
+
}
|
|
6763
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
6764
|
+
stack.set(object, other);
|
|
6765
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
6766
|
+
stack["delete"](object);
|
|
6767
|
+
return result;
|
|
6768
|
+
case symbolTag:
|
|
6769
|
+
if (symbolValueOf) {
|
|
6770
|
+
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
|
6771
|
+
}
|
|
6772
|
+
}
|
|
6773
|
+
return false;
|
|
6774
|
+
}
|
|
6775
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
6776
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
|
6777
|
+
if (objLength != othLength && !isPartial) {
|
|
6778
|
+
return false;
|
|
6779
|
+
}
|
|
6780
|
+
var index = objLength;
|
|
6781
|
+
while (index--) {
|
|
6782
|
+
var key = objProps[index];
|
|
6783
|
+
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
|
6784
|
+
return false;
|
|
6785
|
+
}
|
|
6786
|
+
}
|
|
6787
|
+
var stacked = stack.get(object);
|
|
6788
|
+
if (stacked && stack.get(other)) {
|
|
6789
|
+
return stacked == other;
|
|
6790
|
+
}
|
|
6791
|
+
var result = true;
|
|
6792
|
+
stack.set(object, other);
|
|
6793
|
+
stack.set(other, object);
|
|
6794
|
+
var skipCtor = isPartial;
|
|
6795
|
+
while (++index < objLength) {
|
|
6796
|
+
key = objProps[index];
|
|
6797
|
+
var objValue = object[key], othValue = other[key];
|
|
6798
|
+
if (customizer) {
|
|
6799
|
+
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
6800
|
+
}
|
|
6801
|
+
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
|
6802
|
+
result = false;
|
|
6803
|
+
break;
|
|
6804
|
+
}
|
|
6805
|
+
skipCtor || (skipCtor = key == "constructor");
|
|
6806
|
+
}
|
|
6807
|
+
if (result && !skipCtor) {
|
|
6808
|
+
var objCtor = object.constructor, othCtor = other.constructor;
|
|
6809
|
+
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
|
6810
|
+
result = false;
|
|
6811
|
+
}
|
|
6812
|
+
}
|
|
6813
|
+
stack["delete"](object);
|
|
6814
|
+
stack["delete"](other);
|
|
6815
|
+
return result;
|
|
6816
|
+
}
|
|
6817
|
+
function getAllKeys(object) {
|
|
6818
|
+
return baseGetAllKeys(object, keys, getSymbols);
|
|
6819
|
+
}
|
|
6820
|
+
function getMapData(map, key) {
|
|
6821
|
+
var data = map.__data__;
|
|
6822
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
6823
|
+
}
|
|
6824
|
+
function getNative(object, key) {
|
|
6825
|
+
var value2 = getValue(object, key);
|
|
6826
|
+
return baseIsNative(value2) ? value2 : void 0;
|
|
6827
|
+
}
|
|
6828
|
+
function getRawTag(value2) {
|
|
6829
|
+
var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag];
|
|
6830
|
+
try {
|
|
6831
|
+
value2[symToStringTag] = void 0;
|
|
6832
|
+
var unmasked = true;
|
|
6833
|
+
} catch (e2) {
|
|
6834
|
+
}
|
|
6835
|
+
var result = nativeObjectToString.call(value2);
|
|
6836
|
+
if (unmasked) {
|
|
6837
|
+
if (isOwn) {
|
|
6838
|
+
value2[symToStringTag] = tag;
|
|
6839
|
+
} else {
|
|
6840
|
+
delete value2[symToStringTag];
|
|
6841
|
+
}
|
|
6842
|
+
}
|
|
6843
|
+
return result;
|
|
6844
|
+
}
|
|
6845
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
6846
|
+
if (object == null) {
|
|
6847
|
+
return [];
|
|
6848
|
+
}
|
|
6849
|
+
object = Object(object);
|
|
6850
|
+
return arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
6851
|
+
return propertyIsEnumerable.call(object, symbol);
|
|
6852
|
+
});
|
|
6853
|
+
};
|
|
6854
|
+
var getTag = baseGetTag;
|
|
6855
|
+
if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap2 && getTag(new WeakMap2()) != weakMapTag) {
|
|
6856
|
+
getTag = function(value2) {
|
|
6857
|
+
var result = baseGetTag(value2), Ctor = result == objectTag ? value2.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
|
6858
|
+
if (ctorString) {
|
|
6859
|
+
switch (ctorString) {
|
|
6860
|
+
case dataViewCtorString:
|
|
6861
|
+
return dataViewTag;
|
|
6862
|
+
case mapCtorString:
|
|
6863
|
+
return mapTag;
|
|
6864
|
+
case promiseCtorString:
|
|
6865
|
+
return promiseTag;
|
|
6866
|
+
case setCtorString:
|
|
6867
|
+
return setTag;
|
|
6868
|
+
case weakMapCtorString:
|
|
6869
|
+
return weakMapTag;
|
|
6870
|
+
}
|
|
6871
|
+
}
|
|
6872
|
+
return result;
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
function isIndex(value2, length) {
|
|
6876
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
6877
|
+
return !!length && (typeof value2 == "number" || reIsUint.test(value2)) && (value2 > -1 && value2 % 1 == 0 && value2 < length);
|
|
6878
|
+
}
|
|
6879
|
+
function isKeyable(value2) {
|
|
6880
|
+
var type = typeof value2;
|
|
6881
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value2 !== "__proto__" : value2 === null;
|
|
6882
|
+
}
|
|
6883
|
+
function isMasked(func) {
|
|
6884
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
6885
|
+
}
|
|
6886
|
+
function isPrototype(value2) {
|
|
6887
|
+
var Ctor = value2 && value2.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto;
|
|
6888
|
+
return value2 === proto;
|
|
6889
|
+
}
|
|
6890
|
+
function objectToString(value2) {
|
|
6891
|
+
return nativeObjectToString.call(value2);
|
|
6892
|
+
}
|
|
6893
|
+
function toSource(func) {
|
|
6894
|
+
if (func != null) {
|
|
6895
|
+
try {
|
|
6896
|
+
return funcToString.call(func);
|
|
6897
|
+
} catch (e2) {
|
|
6898
|
+
}
|
|
6899
|
+
try {
|
|
6900
|
+
return func + "";
|
|
6901
|
+
} catch (e2) {
|
|
6902
|
+
}
|
|
6903
|
+
}
|
|
6904
|
+
return "";
|
|
6905
|
+
}
|
|
6906
|
+
function eq(value2, other) {
|
|
6907
|
+
return value2 === other || value2 !== value2 && other !== other;
|
|
6908
|
+
}
|
|
6909
|
+
var isArguments = baseIsArguments(/* @__PURE__ */ function() {
|
|
6910
|
+
return arguments;
|
|
6911
|
+
}()) ? baseIsArguments : function(value2) {
|
|
6912
|
+
return isObjectLike(value2) && hasOwnProperty.call(value2, "callee") && !propertyIsEnumerable.call(value2, "callee");
|
|
6913
|
+
};
|
|
6914
|
+
var isArray = Array.isArray;
|
|
6915
|
+
function isArrayLike(value2) {
|
|
6916
|
+
return value2 != null && isLength(value2.length) && !isFunction(value2);
|
|
6917
|
+
}
|
|
6918
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
6919
|
+
function isEqual2(value2, other) {
|
|
6920
|
+
return baseIsEqual(value2, other);
|
|
6921
|
+
}
|
|
6922
|
+
function isFunction(value2) {
|
|
6923
|
+
if (!isObject2(value2)) {
|
|
6924
|
+
return false;
|
|
6925
|
+
}
|
|
6926
|
+
var tag = baseGetTag(value2);
|
|
6927
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
6928
|
+
}
|
|
6929
|
+
function isLength(value2) {
|
|
6930
|
+
return typeof value2 == "number" && value2 > -1 && value2 % 1 == 0 && value2 <= MAX_SAFE_INTEGER;
|
|
6931
|
+
}
|
|
6932
|
+
function isObject2(value2) {
|
|
6933
|
+
var type = typeof value2;
|
|
6934
|
+
return value2 != null && (type == "object" || type == "function");
|
|
6935
|
+
}
|
|
6936
|
+
function isObjectLike(value2) {
|
|
6937
|
+
return value2 != null && typeof value2 == "object";
|
|
6938
|
+
}
|
|
6939
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
6940
|
+
function keys(object) {
|
|
6941
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
6942
|
+
}
|
|
6943
|
+
function stubArray() {
|
|
6944
|
+
return [];
|
|
6945
|
+
}
|
|
6946
|
+
function stubFalse() {
|
|
6947
|
+
return false;
|
|
6948
|
+
}
|
|
6949
|
+
module.exports = isEqual2;
|
|
6950
|
+
}
|
|
6951
|
+
});
|
|
6952
|
+
|
|
6953
|
+
// ../../node_modules/arr-rotate/index.js
|
|
6954
|
+
var require_arr_rotate = __commonJS({
|
|
6955
|
+
"../../node_modules/arr-rotate/index.js"(exports, module) {
|
|
6956
|
+
"use strict";
|
|
6957
|
+
init_esm_shims();
|
|
6958
|
+
module.exports = (input, n2) => {
|
|
6959
|
+
if (!Array.isArray(input)) {
|
|
6960
|
+
throw new TypeError(`Expected an array, got ${typeof input}`);
|
|
6961
|
+
}
|
|
6962
|
+
const x = input.slice();
|
|
6963
|
+
const num = typeof n2 === "number" ? n2 : 0;
|
|
6964
|
+
return x.splice(-num % x.length).concat(x);
|
|
6965
|
+
};
|
|
6966
|
+
}
|
|
6967
|
+
});
|
|
6968
|
+
|
|
6536
6969
|
// ../../node_modules/void-elements/index.js
|
|
6537
6970
|
var require_void_elements = __commonJS({
|
|
6538
6971
|
"../../node_modules/void-elements/index.js"(exports, module) {
|
|
@@ -6729,12 +7162,12 @@ var getAllProperties = (object) => {
|
|
|
6729
7162
|
};
|
|
6730
7163
|
function autoBind(self2, { include, exclude } = {}) {
|
|
6731
7164
|
const filter = (key) => {
|
|
6732
|
-
const
|
|
7165
|
+
const match6 = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
6733
7166
|
if (include) {
|
|
6734
|
-
return include.some(
|
|
7167
|
+
return include.some(match6);
|
|
6735
7168
|
}
|
|
6736
7169
|
if (exclude) {
|
|
6737
|
-
return !exclude.some(
|
|
7170
|
+
return !exclude.some(match6);
|
|
6738
7171
|
}
|
|
6739
7172
|
return true;
|
|
6740
7173
|
};
|
|
@@ -8777,7 +9210,7 @@ var styles_default = styles2;
|
|
|
8777
9210
|
// ../../node_modules/ink/build/reconciler.js
|
|
8778
9211
|
if (process3.env["DEV"] === "true") {
|
|
8779
9212
|
try {
|
|
8780
|
-
await import("./devtools-
|
|
9213
|
+
await import("./devtools-JB2HYTEA.js");
|
|
8781
9214
|
} catch (error) {
|
|
8782
9215
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
8783
9216
|
console.warn(`
|
|
@@ -10881,7 +11314,7 @@ var Text2 = ({
|
|
|
10881
11314
|
|
|
10882
11315
|
// ../cli-ui-kit/src/components/ConfirmInput/ConfirmInput.tsx
|
|
10883
11316
|
init_esm_shims();
|
|
10884
|
-
var
|
|
11317
|
+
var import_react34 = __toESM(require_react(), 1);
|
|
10885
11318
|
var import_variant3 = __toESM(require_lib(), 1);
|
|
10886
11319
|
|
|
10887
11320
|
// ../cli-ui-kit/src/input-state.ts
|
|
@@ -10896,7 +11329,7 @@ var InputState = (0, import_variant.variant)(
|
|
|
10896
11329
|
|
|
10897
11330
|
// ../cli-ui-kit/src/components/InputLabel.tsx
|
|
10898
11331
|
init_esm_shims();
|
|
10899
|
-
var
|
|
11332
|
+
var import_react30 = __toESM(require_react(), 1);
|
|
10900
11333
|
|
|
10901
11334
|
// ../cli-ui-kit/src/icons/index.ts
|
|
10902
11335
|
init_esm_shims();
|
|
@@ -10929,57 +11362,68 @@ var QuestionMarkIcon = () => {
|
|
|
10929
11362
|
return /* @__PURE__ */ import_react25.default.createElement(Text2, null, "?");
|
|
10930
11363
|
};
|
|
10931
11364
|
|
|
10932
|
-
// ../cli-ui-kit/src/icons/
|
|
11365
|
+
// ../cli-ui-kit/src/icons/Radio.tsx
|
|
10933
11366
|
init_esm_shims();
|
|
10934
11367
|
var import_react26 = __toESM(require_react(), 1);
|
|
11368
|
+
var RadioIcon = ({ selected }) => {
|
|
11369
|
+
let content = isUnicodeSupported() ? "\u25CB" : "o";
|
|
11370
|
+
if (selected) {
|
|
11371
|
+
content = isUnicodeSupported() ? "\u25CF" : "\u2022";
|
|
11372
|
+
}
|
|
11373
|
+
return /* @__PURE__ */ import_react26.default.createElement(Text2, null, content);
|
|
11374
|
+
};
|
|
11375
|
+
|
|
11376
|
+
// ../cli-ui-kit/src/icons/Success.tsx
|
|
11377
|
+
init_esm_shims();
|
|
11378
|
+
var import_react27 = __toESM(require_react(), 1);
|
|
10935
11379
|
var SuccessIcon = () => {
|
|
10936
|
-
return /* @__PURE__ */
|
|
11380
|
+
return /* @__PURE__ */ import_react27.default.createElement(Text2, null, isUnicodeSupported() ? "\u2714" : "\u221A");
|
|
10937
11381
|
};
|
|
10938
11382
|
|
|
10939
11383
|
// ../cli-ui-kit/src/icons/Warning.tsx
|
|
10940
11384
|
init_esm_shims();
|
|
10941
|
-
var
|
|
11385
|
+
var import_react28 = __toESM(require_react(), 1);
|
|
10942
11386
|
var WarningIcon = () => {
|
|
10943
|
-
return /* @__PURE__ */
|
|
11387
|
+
return /* @__PURE__ */ import_react28.default.createElement(Text2, null, isUnicodeSupported() ? "\u26A0" : "\u203C");
|
|
10944
11388
|
};
|
|
10945
11389
|
|
|
10946
11390
|
// ../cli-ui-kit/src/icons/Insight.tsx
|
|
10947
11391
|
init_esm_shims();
|
|
10948
|
-
var
|
|
11392
|
+
var import_react29 = __toESM(require_react(), 1);
|
|
10949
11393
|
var InsightIcon = () => {
|
|
10950
|
-
return /* @__PURE__ */
|
|
11394
|
+
return /* @__PURE__ */ import_react29.default.createElement(Text2, null, isUnicodeSupported() ? "\u{1F4A1}" : "!");
|
|
10951
11395
|
};
|
|
10952
11396
|
|
|
10953
11397
|
// ../cli-ui-kit/src/components/InputLabel.tsx
|
|
10954
11398
|
var InputLabel = ({ children, icon }) => {
|
|
10955
|
-
return /* @__PURE__ */
|
|
11399
|
+
return /* @__PURE__ */ import_react30.default.createElement(Text2, null, icon ?? /* @__PURE__ */ import_react30.default.createElement(Text2, { skin: "question", bold: true }, /* @__PURE__ */ import_react30.default.createElement(QuestionMarkIcon, null)), " ", /* @__PURE__ */ import_react30.default.createElement(Text2, { skin: "question", bold: true }, children));
|
|
10956
11400
|
};
|
|
10957
11401
|
|
|
10958
11402
|
// ../cli-ui-kit/src/components/ConfirmInput/Placeholder.tsx
|
|
10959
11403
|
init_esm_shims();
|
|
10960
|
-
var
|
|
11404
|
+
var import_react31 = __toESM(require_react(), 1);
|
|
10961
11405
|
var import_variant2 = __toESM(require_lib(), 1);
|
|
10962
11406
|
var Placeholder = ({ inputState }) => {
|
|
10963
11407
|
return (0, import_variant2.match)(inputState, {
|
|
10964
|
-
NotSubmitted: ({ value: value2 }) => /* @__PURE__ */
|
|
10965
|
-
Submitted: ({ value: value2 }) => /* @__PURE__ */
|
|
11408
|
+
NotSubmitted: ({ value: value2 }) => /* @__PURE__ */ import_react31.default.createElement(Text2, { skin: "secondary" }, "(", value2 ? "Y/n" : "y/N", ")"),
|
|
11409
|
+
Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react31.default.createElement(Text2, null, value2 ? "Yes" : "No")
|
|
10966
11410
|
});
|
|
10967
11411
|
};
|
|
10968
11412
|
|
|
10969
11413
|
// ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
|
|
10970
11414
|
init_esm_shims();
|
|
10971
|
-
var
|
|
11415
|
+
var import_react33 = __toESM(require_react(), 1);
|
|
10972
11416
|
|
|
10973
11417
|
// ../../node_modules/ink-text-input/build/index.js
|
|
10974
11418
|
init_esm_shims();
|
|
10975
|
-
var
|
|
11419
|
+
var import_react32 = __toESM(require_react(), 1);
|
|
10976
11420
|
function TextInput({ value: originalValue, placeholder = "", focus = true, mask, highlightPastedText = false, showCursor = true, onChange, onSubmit }) {
|
|
10977
|
-
const [state, setState] = (0,
|
|
11421
|
+
const [state, setState] = (0, import_react32.useState)({
|
|
10978
11422
|
cursorOffset: (originalValue || "").length,
|
|
10979
11423
|
cursorWidth: 0
|
|
10980
11424
|
});
|
|
10981
11425
|
const { cursorOffset, cursorWidth } = state;
|
|
10982
|
-
(0,
|
|
11426
|
+
(0, import_react32.useEffect)(() => {
|
|
10983
11427
|
setState((previousState) => {
|
|
10984
11428
|
if (!focus || !showCursor) {
|
|
10985
11429
|
return previousState;
|
|
@@ -11057,13 +11501,13 @@ function TextInput({ value: originalValue, placeholder = "", focus = true, mask,
|
|
|
11057
11501
|
onChange(nextValue);
|
|
11058
11502
|
}
|
|
11059
11503
|
}, { isActive: focus });
|
|
11060
|
-
return
|
|
11504
|
+
return import_react32.default.createElement(Text, null, placeholder ? value2.length > 0 ? renderedValue : renderedPlaceholder : renderedValue);
|
|
11061
11505
|
}
|
|
11062
11506
|
var build_default = TextInput;
|
|
11063
11507
|
|
|
11064
11508
|
// ../cli-ui-kit/src/components/ConfirmInput/Input.tsx
|
|
11065
11509
|
var Input = ({ initialValue, onSubmit }) => {
|
|
11066
|
-
const handleChange = (0,
|
|
11510
|
+
const handleChange = (0, import_react33.useCallback)(
|
|
11067
11511
|
(rawKey) => {
|
|
11068
11512
|
const key = rawKey.toLowerCase();
|
|
11069
11513
|
if (["y", "n"].includes(key)) {
|
|
@@ -11072,7 +11516,7 @@ var Input = ({ initialValue, onSubmit }) => {
|
|
|
11072
11516
|
},
|
|
11073
11517
|
[onSubmit]
|
|
11074
11518
|
);
|
|
11075
|
-
return /* @__PURE__ */
|
|
11519
|
+
return /* @__PURE__ */ import_react33.default.createElement(
|
|
11076
11520
|
build_default,
|
|
11077
11521
|
{
|
|
11078
11522
|
value: "",
|
|
@@ -11090,17 +11534,17 @@ var ConfirmInput = ({
|
|
|
11090
11534
|
initialValue = true,
|
|
11091
11535
|
onSubmit
|
|
11092
11536
|
}) => {
|
|
11093
|
-
const [inputState, setInputState] = (0,
|
|
11537
|
+
const [inputState, setInputState] = (0, import_react34.useState)(
|
|
11094
11538
|
() => InputState.NotSubmitted(initialValue)
|
|
11095
11539
|
);
|
|
11096
|
-
const handleSubmit = (0,
|
|
11540
|
+
const handleSubmit = (0, import_react34.useCallback)(
|
|
11097
11541
|
(value2) => {
|
|
11098
11542
|
setInputState(InputState.Submitted(value2));
|
|
11099
11543
|
onSubmit(value2);
|
|
11100
11544
|
},
|
|
11101
11545
|
[onSubmit]
|
|
11102
11546
|
);
|
|
11103
|
-
return /* @__PURE__ */
|
|
11547
|
+
return /* @__PURE__ */ import_react34.default.createElement(Text2, null, /* @__PURE__ */ import_react34.default.createElement(InputLabel, null, label), " ", info && (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react34.default.createElement(Text2, { skin: "secondary" }, info, " "), /* @__PURE__ */ import_react34.default.createElement(Placeholder, { inputState }), (0, import_variant3.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react34.default.createElement(Input, { initialValue, onSubmit: handleSubmit }));
|
|
11104
11548
|
};
|
|
11105
11549
|
|
|
11106
11550
|
// ../cli-ui-kit/src/components/ConfirmInput/index.ts
|
|
@@ -11108,37 +11552,37 @@ init_esm_shims();
|
|
|
11108
11552
|
|
|
11109
11553
|
// ../cli-ui-kit/src/components/Alert.tsx
|
|
11110
11554
|
init_esm_shims();
|
|
11111
|
-
var
|
|
11555
|
+
var import_react35 = __toESM(require_react(), 1);
|
|
11112
11556
|
var import_variant4 = __toESM(require_lib(), 1);
|
|
11113
11557
|
var Alert = ({ type, children }) => {
|
|
11114
11558
|
const icon = (0, import_variant4.match)(type, {
|
|
11115
11559
|
error: (0, import_variant4.constant)(
|
|
11116
|
-
/* @__PURE__ */
|
|
11560
|
+
/* @__PURE__ */ import_react35.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react35.default.createElement(ErrorIcon, null))
|
|
11117
11561
|
),
|
|
11118
11562
|
warning: (0, import_variant4.constant)(
|
|
11119
|
-
/* @__PURE__ */
|
|
11563
|
+
/* @__PURE__ */ import_react35.default.createElement(Text2, { skin: "warning" }, /* @__PURE__ */ import_react35.default.createElement(WarningIcon, null))
|
|
11120
11564
|
),
|
|
11121
11565
|
success: (0, import_variant4.constant)(
|
|
11122
|
-
/* @__PURE__ */
|
|
11566
|
+
/* @__PURE__ */ import_react35.default.createElement(Text2, { skin: "success" }, /* @__PURE__ */ import_react35.default.createElement(SuccessIcon, null))
|
|
11123
11567
|
),
|
|
11124
|
-
insight: (0, import_variant4.constant)(/* @__PURE__ */
|
|
11568
|
+
insight: (0, import_variant4.constant)(/* @__PURE__ */ import_react35.default.createElement(InsightIcon, null))
|
|
11125
11569
|
});
|
|
11126
|
-
return /* @__PURE__ */
|
|
11570
|
+
return /* @__PURE__ */ import_react35.default.createElement(Text2, null, icon, " ", children);
|
|
11127
11571
|
};
|
|
11128
11572
|
|
|
11129
11573
|
// ../cli-ui-kit/src/components/Badge.tsx
|
|
11130
11574
|
init_esm_shims();
|
|
11131
|
-
var
|
|
11575
|
+
var import_react36 = __toESM(require_react(), 1);
|
|
11132
11576
|
var skins2 = {
|
|
11133
11577
|
success: { backgroundColor: "green" }
|
|
11134
11578
|
};
|
|
11135
11579
|
var Badge = ({ children, skin }) => {
|
|
11136
|
-
return /* @__PURE__ */
|
|
11580
|
+
return /* @__PURE__ */ import_react36.default.createElement(Text, { ...skins2[skin] }, " ", children, " ");
|
|
11137
11581
|
};
|
|
11138
11582
|
|
|
11139
11583
|
// ../cli-ui-kit/src/components/Link.tsx
|
|
11140
11584
|
init_esm_shims();
|
|
11141
|
-
var
|
|
11585
|
+
var import_react37 = __toESM(require_react(), 1);
|
|
11142
11586
|
|
|
11143
11587
|
// ../../node_modules/terminal-link/index.js
|
|
11144
11588
|
init_esm_shims();
|
|
@@ -11285,31 +11729,31 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
|
|
|
11285
11729
|
var Link = ({ skin, children, url }) => {
|
|
11286
11730
|
if (children) {
|
|
11287
11731
|
if (terminalLink.isSupported) {
|
|
11288
|
-
return /* @__PURE__ */
|
|
11732
|
+
return /* @__PURE__ */ import_react37.default.createElement(
|
|
11289
11733
|
Transform,
|
|
11290
11734
|
{
|
|
11291
11735
|
transform: (childrenAsString) => terminalLink(childrenAsString, url, { fallback: false })
|
|
11292
11736
|
},
|
|
11293
|
-
/* @__PURE__ */
|
|
11737
|
+
/* @__PURE__ */ import_react37.default.createElement(Text2, { skin }, children)
|
|
11294
11738
|
);
|
|
11295
11739
|
}
|
|
11296
|
-
return /* @__PURE__ */
|
|
11740
|
+
return /* @__PURE__ */ import_react37.default.createElement(Text2, null, /* @__PURE__ */ import_react37.default.createElement(Text2, { skin }, children), " (", url, ")");
|
|
11297
11741
|
}
|
|
11298
|
-
return /* @__PURE__ */
|
|
11742
|
+
return /* @__PURE__ */ import_react37.default.createElement(Text2, { skin: "info" }, url);
|
|
11299
11743
|
};
|
|
11300
11744
|
|
|
11301
11745
|
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
11302
11746
|
init_esm_shims();
|
|
11303
|
-
var
|
|
11747
|
+
var import_react39 = __toESM(require_react(), 1);
|
|
11304
11748
|
|
|
11305
11749
|
// ../../node_modules/ink-spinner/build/index.js
|
|
11306
11750
|
init_esm_shims();
|
|
11307
|
-
var
|
|
11751
|
+
var import_react38 = __toESM(require_react(), 1);
|
|
11308
11752
|
var import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
11309
11753
|
function Spinner({ type = "dots" }) {
|
|
11310
|
-
const [frame, setFrame] = (0,
|
|
11754
|
+
const [frame, setFrame] = (0, import_react38.useState)(0);
|
|
11311
11755
|
const spinner = import_cli_spinners.default[type];
|
|
11312
|
-
(0,
|
|
11756
|
+
(0, import_react38.useEffect)(() => {
|
|
11313
11757
|
const timer = setInterval(() => {
|
|
11314
11758
|
setFrame((previousFrame) => {
|
|
11315
11759
|
const isLastFrame = previousFrame === spinner.frames.length - 1;
|
|
@@ -11320,15 +11764,15 @@ function Spinner({ type = "dots" }) {
|
|
|
11320
11764
|
clearInterval(timer);
|
|
11321
11765
|
};
|
|
11322
11766
|
}, [spinner]);
|
|
11323
|
-
return
|
|
11767
|
+
return import_react38.default.createElement(Text, null, spinner.frames[frame]);
|
|
11324
11768
|
}
|
|
11325
11769
|
var build_default2 = Spinner;
|
|
11326
11770
|
|
|
11327
11771
|
// ../cli-ui-kit/src/components/Spinner.tsx
|
|
11328
11772
|
var Spinner2 = ({ text }) => {
|
|
11329
|
-
const spinnerNode = /* @__PURE__ */
|
|
11773
|
+
const spinnerNode = /* @__PURE__ */ import_react39.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react39.default.createElement(build_default2, { type: "dots" }));
|
|
11330
11774
|
if (text) {
|
|
11331
|
-
return /* @__PURE__ */
|
|
11775
|
+
return /* @__PURE__ */ import_react39.default.createElement(Box_default, { gap: 1 }, spinnerNode, typeof text === "string" ? /* @__PURE__ */ import_react39.default.createElement(Text2, null, text) : text);
|
|
11332
11776
|
}
|
|
11333
11777
|
return spinnerNode;
|
|
11334
11778
|
};
|
|
@@ -11339,7 +11783,7 @@ var import_variant5 = __toESM(require_lib(), 1);
|
|
|
11339
11783
|
|
|
11340
11784
|
// ../../node_modules/react-async-hook/dist/react-async-hook.esm.js
|
|
11341
11785
|
init_esm_shims();
|
|
11342
|
-
var
|
|
11786
|
+
var import_react40 = __toESM(require_react());
|
|
11343
11787
|
function _extends() {
|
|
11344
11788
|
_extends = Object.assign || function(target) {
|
|
11345
11789
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
@@ -11356,13 +11800,13 @@ function _extends() {
|
|
|
11356
11800
|
}
|
|
11357
11801
|
var _iteratorSymbol = typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
11358
11802
|
var _asyncIteratorSymbol = typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
11359
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ?
|
|
11803
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? import_react40.useLayoutEffect : import_react40.useEffect;
|
|
11360
11804
|
var useGetter = function useGetter2(t3) {
|
|
11361
|
-
var ref = (0,
|
|
11805
|
+
var ref = (0, import_react40.useRef)(t3);
|
|
11362
11806
|
useIsomorphicLayoutEffect(function() {
|
|
11363
11807
|
ref.current = t3;
|
|
11364
11808
|
});
|
|
11365
|
-
return (0,
|
|
11809
|
+
return (0, import_react40.useCallback)(function() {
|
|
11366
11810
|
return ref.current;
|
|
11367
11811
|
}, [ref]);
|
|
11368
11812
|
};
|
|
@@ -11415,22 +11859,22 @@ var normalizeOptions = function normalizeOptions2(options) {
|
|
|
11415
11859
|
return _extends({}, DefaultOptions, {}, options);
|
|
11416
11860
|
};
|
|
11417
11861
|
var useAsyncState = function useAsyncState2(options) {
|
|
11418
|
-
var _useState = (0,
|
|
11862
|
+
var _useState = (0, import_react40.useState)(function() {
|
|
11419
11863
|
return options.initialState(options);
|
|
11420
11864
|
}), value2 = _useState[0], setValue = _useState[1];
|
|
11421
|
-
var reset = (0,
|
|
11865
|
+
var reset = (0, import_react40.useCallback)(function() {
|
|
11422
11866
|
return setValue(options.initialState(options));
|
|
11423
11867
|
}, [setValue, options]);
|
|
11424
|
-
var setLoading = (0,
|
|
11868
|
+
var setLoading = (0, import_react40.useCallback)(function() {
|
|
11425
11869
|
return setValue(options.setLoading(value2));
|
|
11426
11870
|
}, [value2, setValue]);
|
|
11427
|
-
var setResult = (0,
|
|
11871
|
+
var setResult = (0, import_react40.useCallback)(function(result) {
|
|
11428
11872
|
return setValue(options.setResult(result, value2));
|
|
11429
11873
|
}, [value2, setValue]);
|
|
11430
|
-
var setError = (0,
|
|
11874
|
+
var setError = (0, import_react40.useCallback)(function(error) {
|
|
11431
11875
|
return setValue(options.setError(error, value2));
|
|
11432
11876
|
}, [value2, setValue]);
|
|
11433
|
-
var merge = (0,
|
|
11877
|
+
var merge = (0, import_react40.useCallback)(function(state) {
|
|
11434
11878
|
return setValue(_extends({}, value2, {}, state));
|
|
11435
11879
|
}, [value2, setValue]);
|
|
11436
11880
|
return {
|
|
@@ -11444,8 +11888,8 @@ var useAsyncState = function useAsyncState2(options) {
|
|
|
11444
11888
|
};
|
|
11445
11889
|
};
|
|
11446
11890
|
var useIsMounted = function useIsMounted2() {
|
|
11447
|
-
var ref = (0,
|
|
11448
|
-
(0,
|
|
11891
|
+
var ref = (0, import_react40.useRef)(false);
|
|
11892
|
+
(0, import_react40.useEffect)(function() {
|
|
11449
11893
|
ref.current = true;
|
|
11450
11894
|
return function() {
|
|
11451
11895
|
ref.current = false;
|
|
@@ -11456,7 +11900,7 @@ var useIsMounted = function useIsMounted2() {
|
|
|
11456
11900
|
};
|
|
11457
11901
|
};
|
|
11458
11902
|
var useCurrentPromise = function useCurrentPromise2() {
|
|
11459
|
-
var ref = (0,
|
|
11903
|
+
var ref = (0, import_react40.useRef)(null);
|
|
11460
11904
|
return {
|
|
11461
11905
|
set: function set(promise) {
|
|
11462
11906
|
return ref.current = promise;
|
|
@@ -11472,7 +11916,7 @@ var useCurrentPromise = function useCurrentPromise2() {
|
|
|
11472
11916
|
var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options) {
|
|
11473
11917
|
!params && (params = []);
|
|
11474
11918
|
var normalizedOptions = normalizeOptions(options);
|
|
11475
|
-
var _useState2 = (0,
|
|
11919
|
+
var _useState2 = (0, import_react40.useState)(null), currentParams = _useState2[0], setCurrentParams = _useState2[1];
|
|
11476
11920
|
var AsyncState = useAsyncState(normalizedOptions);
|
|
11477
11921
|
var isMounted = useIsMounted();
|
|
11478
11922
|
var CurrentPromise = useCurrentPromise();
|
|
@@ -11515,11 +11959,11 @@ var useAsyncInternal = function useAsyncInternal2(asyncFunction, params, options
|
|
|
11515
11959
|
return promise;
|
|
11516
11960
|
};
|
|
11517
11961
|
var getLatestExecuteAsyncOperation = useGetter(executeAsyncOperation);
|
|
11518
|
-
var executeAsyncOperationMemo = (0,
|
|
11962
|
+
var executeAsyncOperationMemo = (0, import_react40.useCallback)(function() {
|
|
11519
11963
|
return getLatestExecuteAsyncOperation().apply(void 0, arguments);
|
|
11520
11964
|
}, [getLatestExecuteAsyncOperation]);
|
|
11521
11965
|
var isMounting = !isMounted();
|
|
11522
|
-
(0,
|
|
11966
|
+
(0, import_react40.useEffect)(function() {
|
|
11523
11967
|
var execute = function execute2() {
|
|
11524
11968
|
return getLatestExecuteAsyncOperation().apply(void 0, params);
|
|
11525
11969
|
};
|
|
@@ -11552,14 +11996,14 @@ var useAsyncCallback = function useAsyncCallback2(asyncFunction, options) {
|
|
|
11552
11996
|
};
|
|
11553
11997
|
|
|
11554
11998
|
// ../cli-ui-kit/src/hooks/use-async.ts
|
|
11555
|
-
var
|
|
11999
|
+
var import_react42 = __toESM(require_react(), 1);
|
|
11556
12000
|
|
|
11557
12001
|
// ../cli-ui-kit/src/hooks/use-exit.ts
|
|
11558
12002
|
init_esm_shims();
|
|
11559
|
-
var
|
|
12003
|
+
var import_react41 = __toESM(require_react(), 1);
|
|
11560
12004
|
function useExit() {
|
|
11561
12005
|
const { exit } = use_app_default();
|
|
11562
|
-
return (0,
|
|
12006
|
+
return (0, import_react41.useCallback)(
|
|
11563
12007
|
(error) => {
|
|
11564
12008
|
if (error instanceof Error) {
|
|
11565
12009
|
exit(error);
|
|
@@ -11591,7 +12035,7 @@ var AsyncCallbackStatus = (0, import_variant5.variant)(
|
|
|
11591
12035
|
);
|
|
11592
12036
|
var useAsync2 = (fn, args, options) => {
|
|
11593
12037
|
const exit = useExit();
|
|
11594
|
-
const abortController = (0,
|
|
12038
|
+
const abortController = (0, import_react42.useMemo)(() => new AbortController(), []);
|
|
11595
12039
|
const { result, error, status, merge } = useAsync(
|
|
11596
12040
|
fn.bind(null, { signal: abortController.signal }),
|
|
11597
12041
|
args,
|
|
@@ -11600,7 +12044,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
11600
12044
|
...options ?? {}
|
|
11601
12045
|
}
|
|
11602
12046
|
);
|
|
11603
|
-
(0,
|
|
12047
|
+
(0, import_react42.useEffect)(() => {
|
|
11604
12048
|
return () => {
|
|
11605
12049
|
abortController.abort();
|
|
11606
12050
|
};
|
|
@@ -11620,7 +12064,7 @@ var useAsync2 = (fn, args, options) => {
|
|
|
11620
12064
|
};
|
|
11621
12065
|
var useAsyncCallback3 = (fn, options) => {
|
|
11622
12066
|
const exit = useExit();
|
|
11623
|
-
const abortController = (0,
|
|
12067
|
+
const abortController = (0, import_react42.useMemo)(() => new AbortController(), []);
|
|
11624
12068
|
const { result, error, status, merge, execute } = useAsyncCallback(
|
|
11625
12069
|
fn.bind(null, { signal: abortController.signal }),
|
|
11626
12070
|
{
|
|
@@ -11628,7 +12072,7 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
11628
12072
|
...options ?? {}
|
|
11629
12073
|
}
|
|
11630
12074
|
);
|
|
11631
|
-
(0,
|
|
12075
|
+
(0, import_react42.useEffect)(() => {
|
|
11632
12076
|
return () => {
|
|
11633
12077
|
abortController.abort();
|
|
11634
12078
|
};
|
|
@@ -11658,8 +12102,8 @@ var useAsyncCallback3 = (fn, options) => {
|
|
|
11658
12102
|
|
|
11659
12103
|
// ../cli-ui-kit/src/renderer.tsx
|
|
11660
12104
|
init_esm_shims();
|
|
11661
|
-
var
|
|
11662
|
-
var ErrorBoundary = class extends
|
|
12105
|
+
var import_react43 = __toESM(require_react(), 1);
|
|
12106
|
+
var ErrorBoundary = class extends import_react43.Component {
|
|
11663
12107
|
state = { hasError: false };
|
|
11664
12108
|
static getDerivedStateFromError(_error) {
|
|
11665
12109
|
return { hasError: true };
|
|
@@ -11685,18 +12129,18 @@ var ErrorBoundary = class extends import_react42.Component {
|
|
|
11685
12129
|
};
|
|
11686
12130
|
var ErrorBoundaryWrapper = ({ children }) => {
|
|
11687
12131
|
const exit = useExit();
|
|
11688
|
-
return /* @__PURE__ */
|
|
12132
|
+
return /* @__PURE__ */ import_react43.default.createElement(ErrorBoundary, { onExit: exit }, children);
|
|
11689
12133
|
};
|
|
11690
12134
|
var FrameWrapper = ({
|
|
11691
12135
|
children,
|
|
11692
12136
|
wrap
|
|
11693
12137
|
}) => {
|
|
11694
|
-
return /* @__PURE__ */
|
|
12138
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, wrap && /* @__PURE__ */ import_react43.default.createElement(Text, null, "----RENDER-FRAME-START----"), children, wrap && /* @__PURE__ */ import_react43.default.createElement(Text, null, "----RENDER-FRAME-END----"));
|
|
11695
12139
|
};
|
|
11696
12140
|
async function render2(tree) {
|
|
11697
12141
|
const debug = !!getTestOverrides().inkDebug;
|
|
11698
12142
|
const { waitUntilExit, unmount } = render_default(
|
|
11699
|
-
/* @__PURE__ */
|
|
12143
|
+
/* @__PURE__ */ import_react43.default.createElement(FrameWrapper, { wrap: debug }, /* @__PURE__ */ import_react43.default.createElement(ErrorBoundaryWrapper, null, tree)),
|
|
11700
12144
|
{ exitOnCtrlC: true, debug }
|
|
11701
12145
|
);
|
|
11702
12146
|
process.once("beforeExit", () => {
|
|
@@ -11710,7 +12154,7 @@ async function render2(tree) {
|
|
|
11710
12154
|
function renderSyncInternal(tree, renderOptions) {
|
|
11711
12155
|
const debug = !!getTestOverrides().inkDebug;
|
|
11712
12156
|
const { unmount } = render_default(
|
|
11713
|
-
/* @__PURE__ */
|
|
12157
|
+
/* @__PURE__ */ import_react43.default.createElement(FrameWrapper, { wrap: debug }, tree),
|
|
11714
12158
|
{
|
|
11715
12159
|
debug,
|
|
11716
12160
|
...renderOptions
|
|
@@ -11735,22 +12179,22 @@ init_esm_shims();
|
|
|
11735
12179
|
|
|
11736
12180
|
// ../cli-ui-kit/src/components/UnorderedList/UnorderedList.tsx
|
|
11737
12181
|
init_esm_shims();
|
|
11738
|
-
var
|
|
12182
|
+
var import_react47 = __toESM(require_react(), 1);
|
|
11739
12183
|
|
|
11740
12184
|
// ../cli-ui-kit/src/components/UnorderedList/UnorderedListItem.tsx
|
|
11741
12185
|
init_esm_shims();
|
|
11742
|
-
var
|
|
12186
|
+
var import_react45 = __toESM(require_react(), 1);
|
|
11743
12187
|
|
|
11744
12188
|
// ../cli-ui-kit/src/components/UnorderedList/UnorderedListItemContext.ts
|
|
11745
12189
|
init_esm_shims();
|
|
11746
|
-
var
|
|
12190
|
+
var import_react44 = __toESM(require_react(), 1);
|
|
11747
12191
|
|
|
11748
12192
|
// ../cli-ui-kit/src/components/UnorderedList/DefaultMarker.ts
|
|
11749
12193
|
init_esm_shims();
|
|
11750
12194
|
var defaultMarker = isUnicodeSupported() ? "\u25CF" : "*";
|
|
11751
12195
|
|
|
11752
12196
|
// ../cli-ui-kit/src/components/UnorderedList/UnorderedListItemContext.ts
|
|
11753
|
-
var UnorderedListItemContext = (0,
|
|
12197
|
+
var UnorderedListItemContext = (0, import_react44.createContext)({
|
|
11754
12198
|
marker: defaultMarker
|
|
11755
12199
|
});
|
|
11756
12200
|
|
|
@@ -11760,17 +12204,17 @@ function UnorderedListItem({
|
|
|
11760
12204
|
marker: markerOverride,
|
|
11761
12205
|
...style
|
|
11762
12206
|
}) {
|
|
11763
|
-
let { marker } = (0,
|
|
12207
|
+
let { marker } = (0, import_react45.useContext)(UnorderedListItemContext);
|
|
11764
12208
|
if (markerOverride !== void 0) {
|
|
11765
12209
|
marker = markerOverride;
|
|
11766
12210
|
}
|
|
11767
|
-
return /* @__PURE__ */
|
|
12211
|
+
return /* @__PURE__ */ import_react45.default.createElement(Box_default, { gap: 1 }, marker && /* @__PURE__ */ import_react45.default.createElement(Text, null, marker), /* @__PURE__ */ import_react45.default.createElement(Box_default, { flexDirection: "column", ...style }, children));
|
|
11768
12212
|
}
|
|
11769
12213
|
|
|
11770
12214
|
// ../cli-ui-kit/src/components/UnorderedList/UnorderedListContext.ts
|
|
11771
12215
|
init_esm_shims();
|
|
11772
|
-
var
|
|
11773
|
-
var UnorderedListContext = (0,
|
|
12216
|
+
var import_react46 = __toESM(require_react(), 1);
|
|
12217
|
+
var UnorderedListContext = (0, import_react46.createContext)({
|
|
11774
12218
|
depth: 0
|
|
11775
12219
|
});
|
|
11776
12220
|
|
|
@@ -11780,15 +12224,15 @@ function UnorderedList({
|
|
|
11780
12224
|
marker: markerOverride,
|
|
11781
12225
|
...style
|
|
11782
12226
|
}) {
|
|
11783
|
-
const { depth } = (0,
|
|
11784
|
-
const { marker } = (0,
|
|
11785
|
-
const listContext = (0,
|
|
12227
|
+
const { depth } = (0, import_react47.useContext)(UnorderedListContext);
|
|
12228
|
+
const { marker } = (0, import_react47.useContext)(UnorderedListItemContext);
|
|
12229
|
+
const listContext = (0, import_react47.useMemo)(
|
|
11786
12230
|
() => ({
|
|
11787
12231
|
depth: depth + 1
|
|
11788
12232
|
}),
|
|
11789
12233
|
[depth]
|
|
11790
12234
|
);
|
|
11791
|
-
const listItemContext = (0,
|
|
12235
|
+
const listItemContext = (0, import_react47.useMemo)(() => {
|
|
11792
12236
|
if (typeof markerOverride === "string") {
|
|
11793
12237
|
return { marker: markerOverride };
|
|
11794
12238
|
}
|
|
@@ -11797,21 +12241,531 @@ function UnorderedList({
|
|
|
11797
12241
|
}
|
|
11798
12242
|
return { marker: defaultMarker };
|
|
11799
12243
|
}, [marker, markerOverride]);
|
|
11800
|
-
return /* @__PURE__ */
|
|
12244
|
+
return /* @__PURE__ */ import_react47.default.createElement(UnorderedListContext.Provider, { value: listContext }, /* @__PURE__ */ import_react47.default.createElement(UnorderedListItemContext.Provider, { value: listItemContext }, /* @__PURE__ */ import_react47.default.createElement(Box_default, { ...style, flexDirection: "column", marginLeft: depth * 2 }, children)));
|
|
11801
12245
|
}
|
|
11802
12246
|
UnorderedList.Item = UnorderedListItem;
|
|
11803
12247
|
|
|
12248
|
+
// ../cli-ui-kit/src/components/SelectInput/index.ts
|
|
12249
|
+
init_esm_shims();
|
|
12250
|
+
|
|
12251
|
+
// ../cli-ui-kit/src/components/SelectInput/SelectInput.tsx
|
|
12252
|
+
init_esm_shims();
|
|
12253
|
+
var import_react54 = __toESM(require_react(), 1);
|
|
12254
|
+
var import_variant9 = __toESM(require_lib(), 1);
|
|
12255
|
+
|
|
12256
|
+
// ../../node_modules/ink-select-input/build/index.js
|
|
12257
|
+
init_esm_shims();
|
|
12258
|
+
|
|
12259
|
+
// ../../node_modules/ink-select-input/build/Indicator.js
|
|
12260
|
+
init_esm_shims();
|
|
12261
|
+
var import_react48 = __toESM(require_react(), 1);
|
|
12262
|
+
|
|
12263
|
+
// ../../node_modules/figures/index.js
|
|
12264
|
+
init_esm_shims();
|
|
12265
|
+
import process13 from "node:process";
|
|
12266
|
+
|
|
12267
|
+
// ../../node_modules/figures/node_modules/escape-string-regexp/index.js
|
|
12268
|
+
init_esm_shims();
|
|
12269
|
+
|
|
12270
|
+
// ../../node_modules/figures/node_modules/is-unicode-supported/index.js
|
|
12271
|
+
init_esm_shims();
|
|
12272
|
+
import process12 from "node:process";
|
|
12273
|
+
function isUnicodeSupported2() {
|
|
12274
|
+
if (process12.platform !== "win32") {
|
|
12275
|
+
return process12.env.TERM !== "linux";
|
|
12276
|
+
}
|
|
12277
|
+
return Boolean(process12.env.CI) || Boolean(process12.env.WT_SESSION) || Boolean(process12.env.TERMINUS_SUBLIME) || process12.env.ConEmuTask === "{cmd::Cmder}" || process12.env.TERM_PROGRAM === "Terminus-Sublime" || process12.env.TERM_PROGRAM === "vscode" || process12.env.TERM === "xterm-256color" || process12.env.TERM === "alacritty" || process12.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
12278
|
+
}
|
|
12279
|
+
|
|
12280
|
+
// ../../node_modules/figures/index.js
|
|
12281
|
+
var { platform } = process13;
|
|
12282
|
+
var common = {
|
|
12283
|
+
square: "\u2588",
|
|
12284
|
+
squareDarkShade: "\u2593",
|
|
12285
|
+
squareMediumShade: "\u2592",
|
|
12286
|
+
squareLightShade: "\u2591",
|
|
12287
|
+
squareTop: "\u2580",
|
|
12288
|
+
squareBottom: "\u2584",
|
|
12289
|
+
squareLeft: "\u258C",
|
|
12290
|
+
squareRight: "\u2590",
|
|
12291
|
+
squareCenter: "\u25A0",
|
|
12292
|
+
bullet: "\u25CF",
|
|
12293
|
+
dot: "\u2024",
|
|
12294
|
+
ellipsis: "\u2026",
|
|
12295
|
+
pointerSmall: "\u203A",
|
|
12296
|
+
triangleUp: "\u25B2",
|
|
12297
|
+
triangleUpSmall: "\u25B4",
|
|
12298
|
+
triangleDown: "\u25BC",
|
|
12299
|
+
triangleDownSmall: "\u25BE",
|
|
12300
|
+
triangleLeftSmall: "\u25C2",
|
|
12301
|
+
triangleRightSmall: "\u25B8",
|
|
12302
|
+
home: "\u2302",
|
|
12303
|
+
heart: "\u2665",
|
|
12304
|
+
musicNote: "\u266A",
|
|
12305
|
+
musicNoteBeamed: "\u266B",
|
|
12306
|
+
arrowUp: "\u2191",
|
|
12307
|
+
arrowDown: "\u2193",
|
|
12308
|
+
arrowLeft: "\u2190",
|
|
12309
|
+
arrowRight: "\u2192",
|
|
12310
|
+
arrowLeftRight: "\u2194",
|
|
12311
|
+
arrowUpDown: "\u2195",
|
|
12312
|
+
almostEqual: "\u2248",
|
|
12313
|
+
notEqual: "\u2260",
|
|
12314
|
+
lessOrEqual: "\u2264",
|
|
12315
|
+
greaterOrEqual: "\u2265",
|
|
12316
|
+
identical: "\u2261",
|
|
12317
|
+
infinity: "\u221E",
|
|
12318
|
+
subscriptZero: "\u2080",
|
|
12319
|
+
subscriptOne: "\u2081",
|
|
12320
|
+
subscriptTwo: "\u2082",
|
|
12321
|
+
subscriptThree: "\u2083",
|
|
12322
|
+
subscriptFour: "\u2084",
|
|
12323
|
+
subscriptFive: "\u2085",
|
|
12324
|
+
subscriptSix: "\u2086",
|
|
12325
|
+
subscriptSeven: "\u2087",
|
|
12326
|
+
subscriptEight: "\u2088",
|
|
12327
|
+
subscriptNine: "\u2089",
|
|
12328
|
+
oneHalf: "\xBD",
|
|
12329
|
+
oneThird: "\u2153",
|
|
12330
|
+
oneQuarter: "\xBC",
|
|
12331
|
+
oneFifth: "\u2155",
|
|
12332
|
+
oneSixth: "\u2159",
|
|
12333
|
+
oneEighth: "\u215B",
|
|
12334
|
+
twoThirds: "\u2154",
|
|
12335
|
+
twoFifths: "\u2156",
|
|
12336
|
+
threeQuarters: "\xBE",
|
|
12337
|
+
threeFifths: "\u2157",
|
|
12338
|
+
threeEighths: "\u215C",
|
|
12339
|
+
fourFifths: "\u2158",
|
|
12340
|
+
fiveSixths: "\u215A",
|
|
12341
|
+
fiveEighths: "\u215D",
|
|
12342
|
+
sevenEighths: "\u215E",
|
|
12343
|
+
line: "\u2500",
|
|
12344
|
+
lineBold: "\u2501",
|
|
12345
|
+
lineDouble: "\u2550",
|
|
12346
|
+
lineDashed0: "\u2504",
|
|
12347
|
+
lineDashed1: "\u2505",
|
|
12348
|
+
lineDashed2: "\u2508",
|
|
12349
|
+
lineDashed3: "\u2509",
|
|
12350
|
+
lineDashed4: "\u254C",
|
|
12351
|
+
lineDashed5: "\u254D",
|
|
12352
|
+
lineDashed6: "\u2574",
|
|
12353
|
+
lineDashed7: "\u2576",
|
|
12354
|
+
lineDashed8: "\u2578",
|
|
12355
|
+
lineDashed9: "\u257A",
|
|
12356
|
+
lineDashed10: "\u257C",
|
|
12357
|
+
lineDashed11: "\u257E",
|
|
12358
|
+
lineDashed12: "\u2212",
|
|
12359
|
+
lineDashed13: "\u2013",
|
|
12360
|
+
lineDashed14: "\u2010",
|
|
12361
|
+
lineDashed15: "\u2043",
|
|
12362
|
+
lineVertical: "\u2502",
|
|
12363
|
+
lineVerticalBold: "\u2503",
|
|
12364
|
+
lineVerticalDouble: "\u2551",
|
|
12365
|
+
lineVerticalDashed0: "\u2506",
|
|
12366
|
+
lineVerticalDashed1: "\u2507",
|
|
12367
|
+
lineVerticalDashed2: "\u250A",
|
|
12368
|
+
lineVerticalDashed3: "\u250B",
|
|
12369
|
+
lineVerticalDashed4: "\u254E",
|
|
12370
|
+
lineVerticalDashed5: "\u254F",
|
|
12371
|
+
lineVerticalDashed6: "\u2575",
|
|
12372
|
+
lineVerticalDashed7: "\u2577",
|
|
12373
|
+
lineVerticalDashed8: "\u2579",
|
|
12374
|
+
lineVerticalDashed9: "\u257B",
|
|
12375
|
+
lineVerticalDashed10: "\u257D",
|
|
12376
|
+
lineVerticalDashed11: "\u257F",
|
|
12377
|
+
lineDownLeft: "\u2510",
|
|
12378
|
+
lineDownLeftArc: "\u256E",
|
|
12379
|
+
lineDownBoldLeftBold: "\u2513",
|
|
12380
|
+
lineDownBoldLeft: "\u2512",
|
|
12381
|
+
lineDownLeftBold: "\u2511",
|
|
12382
|
+
lineDownDoubleLeftDouble: "\u2557",
|
|
12383
|
+
lineDownDoubleLeft: "\u2556",
|
|
12384
|
+
lineDownLeftDouble: "\u2555",
|
|
12385
|
+
lineDownRight: "\u250C",
|
|
12386
|
+
lineDownRightArc: "\u256D",
|
|
12387
|
+
lineDownBoldRightBold: "\u250F",
|
|
12388
|
+
lineDownBoldRight: "\u250E",
|
|
12389
|
+
lineDownRightBold: "\u250D",
|
|
12390
|
+
lineDownDoubleRightDouble: "\u2554",
|
|
12391
|
+
lineDownDoubleRight: "\u2553",
|
|
12392
|
+
lineDownRightDouble: "\u2552",
|
|
12393
|
+
lineUpLeft: "\u2518",
|
|
12394
|
+
lineUpLeftArc: "\u256F",
|
|
12395
|
+
lineUpBoldLeftBold: "\u251B",
|
|
12396
|
+
lineUpBoldLeft: "\u251A",
|
|
12397
|
+
lineUpLeftBold: "\u2519",
|
|
12398
|
+
lineUpDoubleLeftDouble: "\u255D",
|
|
12399
|
+
lineUpDoubleLeft: "\u255C",
|
|
12400
|
+
lineUpLeftDouble: "\u255B",
|
|
12401
|
+
lineUpRight: "\u2514",
|
|
12402
|
+
lineUpRightArc: "\u2570",
|
|
12403
|
+
lineUpBoldRightBold: "\u2517",
|
|
12404
|
+
lineUpBoldRight: "\u2516",
|
|
12405
|
+
lineUpRightBold: "\u2515",
|
|
12406
|
+
lineUpDoubleRightDouble: "\u255A",
|
|
12407
|
+
lineUpDoubleRight: "\u2559",
|
|
12408
|
+
lineUpRightDouble: "\u2558",
|
|
12409
|
+
lineUpDownLeft: "\u2524",
|
|
12410
|
+
lineUpBoldDownBoldLeftBold: "\u252B",
|
|
12411
|
+
lineUpBoldDownBoldLeft: "\u2528",
|
|
12412
|
+
lineUpDownLeftBold: "\u2525",
|
|
12413
|
+
lineUpBoldDownLeftBold: "\u2529",
|
|
12414
|
+
lineUpDownBoldLeftBold: "\u252A",
|
|
12415
|
+
lineUpDownBoldLeft: "\u2527",
|
|
12416
|
+
lineUpBoldDownLeft: "\u2526",
|
|
12417
|
+
lineUpDoubleDownDoubleLeftDouble: "\u2563",
|
|
12418
|
+
lineUpDoubleDownDoubleLeft: "\u2562",
|
|
12419
|
+
lineUpDownLeftDouble: "\u2561",
|
|
12420
|
+
lineUpDownRight: "\u251C",
|
|
12421
|
+
lineUpBoldDownBoldRightBold: "\u2523",
|
|
12422
|
+
lineUpBoldDownBoldRight: "\u2520",
|
|
12423
|
+
lineUpDownRightBold: "\u251D",
|
|
12424
|
+
lineUpBoldDownRightBold: "\u2521",
|
|
12425
|
+
lineUpDownBoldRightBold: "\u2522",
|
|
12426
|
+
lineUpDownBoldRight: "\u251F",
|
|
12427
|
+
lineUpBoldDownRight: "\u251E",
|
|
12428
|
+
lineUpDoubleDownDoubleRightDouble: "\u2560",
|
|
12429
|
+
lineUpDoubleDownDoubleRight: "\u255F",
|
|
12430
|
+
lineUpDownRightDouble: "\u255E",
|
|
12431
|
+
lineDownLeftRight: "\u252C",
|
|
12432
|
+
lineDownBoldLeftBoldRightBold: "\u2533",
|
|
12433
|
+
lineDownLeftBoldRightBold: "\u252F",
|
|
12434
|
+
lineDownBoldLeftRight: "\u2530",
|
|
12435
|
+
lineDownBoldLeftBoldRight: "\u2531",
|
|
12436
|
+
lineDownBoldLeftRightBold: "\u2532",
|
|
12437
|
+
lineDownLeftRightBold: "\u252E",
|
|
12438
|
+
lineDownLeftBoldRight: "\u252D",
|
|
12439
|
+
lineDownDoubleLeftDoubleRightDouble: "\u2566",
|
|
12440
|
+
lineDownDoubleLeftRight: "\u2565",
|
|
12441
|
+
lineDownLeftDoubleRightDouble: "\u2564",
|
|
12442
|
+
lineUpLeftRight: "\u2534",
|
|
12443
|
+
lineUpBoldLeftBoldRightBold: "\u253B",
|
|
12444
|
+
lineUpLeftBoldRightBold: "\u2537",
|
|
12445
|
+
lineUpBoldLeftRight: "\u2538",
|
|
12446
|
+
lineUpBoldLeftBoldRight: "\u2539",
|
|
12447
|
+
lineUpBoldLeftRightBold: "\u253A",
|
|
12448
|
+
lineUpLeftRightBold: "\u2536",
|
|
12449
|
+
lineUpLeftBoldRight: "\u2535",
|
|
12450
|
+
lineUpDoubleLeftDoubleRightDouble: "\u2569",
|
|
12451
|
+
lineUpDoubleLeftRight: "\u2568",
|
|
12452
|
+
lineUpLeftDoubleRightDouble: "\u2567",
|
|
12453
|
+
lineUpDownLeftRight: "\u253C",
|
|
12454
|
+
lineUpBoldDownBoldLeftBoldRightBold: "\u254B",
|
|
12455
|
+
lineUpDownBoldLeftBoldRightBold: "\u2548",
|
|
12456
|
+
lineUpBoldDownLeftBoldRightBold: "\u2547",
|
|
12457
|
+
lineUpBoldDownBoldLeftRightBold: "\u254A",
|
|
12458
|
+
lineUpBoldDownBoldLeftBoldRight: "\u2549",
|
|
12459
|
+
lineUpBoldDownLeftRight: "\u2540",
|
|
12460
|
+
lineUpDownBoldLeftRight: "\u2541",
|
|
12461
|
+
lineUpDownLeftBoldRight: "\u253D",
|
|
12462
|
+
lineUpDownLeftRightBold: "\u253E",
|
|
12463
|
+
lineUpBoldDownBoldLeftRight: "\u2542",
|
|
12464
|
+
lineUpDownLeftBoldRightBold: "\u253F",
|
|
12465
|
+
lineUpBoldDownLeftBoldRight: "\u2543",
|
|
12466
|
+
lineUpBoldDownLeftRightBold: "\u2544",
|
|
12467
|
+
lineUpDownBoldLeftBoldRight: "\u2545",
|
|
12468
|
+
lineUpDownBoldLeftRightBold: "\u2546",
|
|
12469
|
+
lineUpDoubleDownDoubleLeftDoubleRightDouble: "\u256C",
|
|
12470
|
+
lineUpDoubleDownDoubleLeftRight: "\u256B",
|
|
12471
|
+
lineUpDownLeftDoubleRightDouble: "\u256A",
|
|
12472
|
+
lineCross: "\u2573",
|
|
12473
|
+
lineBackslash: "\u2572",
|
|
12474
|
+
lineSlash: "\u2571"
|
|
12475
|
+
};
|
|
12476
|
+
var mainSymbols = {
|
|
12477
|
+
...common,
|
|
12478
|
+
// The main symbols for those do not look that good on Ubuntu.
|
|
12479
|
+
...platform === "linux" ? {
|
|
12480
|
+
circleQuestionMark: "?\u20DD",
|
|
12481
|
+
questionMarkPrefix: "?\u20DD"
|
|
12482
|
+
} : {
|
|
12483
|
+
circleQuestionMark: "?",
|
|
12484
|
+
questionMarkPrefix: "?"
|
|
12485
|
+
},
|
|
12486
|
+
tick: "\u2714",
|
|
12487
|
+
info: "\u2139",
|
|
12488
|
+
warning: "\u26A0",
|
|
12489
|
+
cross: "\u2718",
|
|
12490
|
+
squareSmall: "\u25FB",
|
|
12491
|
+
squareSmallFilled: "\u25FC",
|
|
12492
|
+
circle: "\u25EF",
|
|
12493
|
+
circleFilled: "\u25C9",
|
|
12494
|
+
circleDotted: "\u25CC",
|
|
12495
|
+
circleDouble: "\u25CE",
|
|
12496
|
+
circleCircle: "\u24DE",
|
|
12497
|
+
circleCross: "\u24E7",
|
|
12498
|
+
circlePipe: "\u24BE",
|
|
12499
|
+
radioOn: "\u25C9",
|
|
12500
|
+
radioOff: "\u25EF",
|
|
12501
|
+
checkboxOn: "\u2612",
|
|
12502
|
+
checkboxOff: "\u2610",
|
|
12503
|
+
checkboxCircleOn: "\u24E7",
|
|
12504
|
+
checkboxCircleOff: "\u24BE",
|
|
12505
|
+
pointer: "\u276F",
|
|
12506
|
+
triangleUpOutline: "\u25B3",
|
|
12507
|
+
triangleLeft: "\u25C0",
|
|
12508
|
+
triangleRight: "\u25B6",
|
|
12509
|
+
lozenge: "\u25C6",
|
|
12510
|
+
lozengeOutline: "\u25C7",
|
|
12511
|
+
hamburger: "\u2630",
|
|
12512
|
+
smiley: "\u32E1",
|
|
12513
|
+
mustache: "\u0DF4",
|
|
12514
|
+
star: "\u2605",
|
|
12515
|
+
play: "\u25B6",
|
|
12516
|
+
nodejs: "\u2B22",
|
|
12517
|
+
oneSeventh: "\u2150",
|
|
12518
|
+
oneNinth: "\u2151",
|
|
12519
|
+
oneTenth: "\u2152"
|
|
12520
|
+
};
|
|
12521
|
+
var fallbackSymbols = {
|
|
12522
|
+
...common,
|
|
12523
|
+
tick: "\u221A",
|
|
12524
|
+
info: "i",
|
|
12525
|
+
warning: "\u203C",
|
|
12526
|
+
cross: "\xD7",
|
|
12527
|
+
squareSmall: "\u25A1",
|
|
12528
|
+
squareSmallFilled: "\u25A0",
|
|
12529
|
+
circle: "( )",
|
|
12530
|
+
circleFilled: "(*)",
|
|
12531
|
+
circleDotted: "( )",
|
|
12532
|
+
circleDouble: "( )",
|
|
12533
|
+
circleCircle: "(\u25CB)",
|
|
12534
|
+
circleCross: "(\xD7)",
|
|
12535
|
+
circlePipe: "(\u2502)",
|
|
12536
|
+
circleQuestionMark: "(?)",
|
|
12537
|
+
radioOn: "(*)",
|
|
12538
|
+
radioOff: "( )",
|
|
12539
|
+
checkboxOn: "[\xD7]",
|
|
12540
|
+
checkboxOff: "[ ]",
|
|
12541
|
+
checkboxCircleOn: "(\xD7)",
|
|
12542
|
+
checkboxCircleOff: "( )",
|
|
12543
|
+
questionMarkPrefix: "\uFF1F",
|
|
12544
|
+
pointer: ">",
|
|
12545
|
+
triangleUpOutline: "\u2206",
|
|
12546
|
+
triangleLeft: "\u25C4",
|
|
12547
|
+
triangleRight: "\u25BA",
|
|
12548
|
+
lozenge: "\u2666",
|
|
12549
|
+
lozengeOutline: "\u25CA",
|
|
12550
|
+
hamburger: "\u2261",
|
|
12551
|
+
smiley: "\u263A",
|
|
12552
|
+
mustache: "\u250C\u2500\u2510",
|
|
12553
|
+
star: "\u2736",
|
|
12554
|
+
play: "\u25BA",
|
|
12555
|
+
nodejs: "\u2666",
|
|
12556
|
+
oneSeventh: "1/7",
|
|
12557
|
+
oneNinth: "1/9",
|
|
12558
|
+
oneTenth: "1/10"
|
|
12559
|
+
};
|
|
12560
|
+
var shouldUseMain = isUnicodeSupported2();
|
|
12561
|
+
var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
12562
|
+
var figures_default = figures;
|
|
12563
|
+
|
|
12564
|
+
// ../../node_modules/ink-select-input/build/Indicator.js
|
|
12565
|
+
function Indicator({ isSelected = false }) {
|
|
12566
|
+
return import_react48.default.createElement(Box_default, { marginRight: 1 }, isSelected ? import_react48.default.createElement(Text, { color: "blue" }, figures_default.pointer) : import_react48.default.createElement(Text, null, " "));
|
|
12567
|
+
}
|
|
12568
|
+
var Indicator_default = Indicator;
|
|
12569
|
+
|
|
12570
|
+
// ../../node_modules/ink-select-input/build/Item.js
|
|
12571
|
+
init_esm_shims();
|
|
12572
|
+
var React32 = __toESM(require_react(), 1);
|
|
12573
|
+
function Item({ isSelected = false, label }) {
|
|
12574
|
+
return React32.createElement(Text, { color: isSelected ? "blue" : void 0 }, label);
|
|
12575
|
+
}
|
|
12576
|
+
var Item_default = Item;
|
|
12577
|
+
|
|
12578
|
+
// ../../node_modules/ink-select-input/build/SelectInput.js
|
|
12579
|
+
init_esm_shims();
|
|
12580
|
+
var import_react49 = __toESM(require_react(), 1);
|
|
12581
|
+
var import_react50 = __toESM(require_react(), 1);
|
|
12582
|
+
var import_lodash = __toESM(require_lodash(), 1);
|
|
12583
|
+
var import_arr_rotate = __toESM(require_arr_rotate(), 1);
|
|
12584
|
+
function SelectInput({ items = [], isFocused = true, initialIndex = 0, indicatorComponent = Indicator_default, itemComponent = Item_default, limit: customLimit, onSelect, onHighlight }) {
|
|
12585
|
+
const hasLimit = typeof customLimit === "number" && items.length > customLimit;
|
|
12586
|
+
const limit = hasLimit ? Math.min(customLimit, items.length) : items.length;
|
|
12587
|
+
const lastIndex = limit - 1;
|
|
12588
|
+
const [rotateIndex, setRotateIndex] = (0, import_react50.useState)(initialIndex > lastIndex ? lastIndex - initialIndex : 0);
|
|
12589
|
+
const [selectedIndex, setSelectedIndex] = (0, import_react50.useState)(initialIndex ? initialIndex > lastIndex ? lastIndex : initialIndex : 0);
|
|
12590
|
+
const previousItems = (0, import_react50.useRef)(items);
|
|
12591
|
+
(0, import_react50.useEffect)(() => {
|
|
12592
|
+
if (!(0, import_lodash.default)(previousItems.current.map((item) => item.value), items.map((item) => item.value))) {
|
|
12593
|
+
setRotateIndex(0);
|
|
12594
|
+
setSelectedIndex(0);
|
|
12595
|
+
}
|
|
12596
|
+
previousItems.current = items;
|
|
12597
|
+
}, [items]);
|
|
12598
|
+
use_input_default((0, import_react50.useCallback)((input, key) => {
|
|
12599
|
+
if (input === "k" || key.upArrow) {
|
|
12600
|
+
const lastIndex2 = (hasLimit ? limit : items.length) - 1;
|
|
12601
|
+
const atFirstIndex = selectedIndex === 0;
|
|
12602
|
+
const nextIndex = hasLimit ? selectedIndex : lastIndex2;
|
|
12603
|
+
const nextRotateIndex = atFirstIndex ? rotateIndex + 1 : rotateIndex;
|
|
12604
|
+
const nextSelectedIndex = atFirstIndex ? nextIndex : selectedIndex - 1;
|
|
12605
|
+
setRotateIndex(nextRotateIndex);
|
|
12606
|
+
setSelectedIndex(nextSelectedIndex);
|
|
12607
|
+
const slicedItems2 = hasLimit ? (0, import_arr_rotate.default)(items, nextRotateIndex).slice(0, limit) : items;
|
|
12608
|
+
if (typeof onHighlight === "function") {
|
|
12609
|
+
onHighlight(slicedItems2[nextSelectedIndex]);
|
|
12610
|
+
}
|
|
12611
|
+
}
|
|
12612
|
+
if (input === "j" || key.downArrow) {
|
|
12613
|
+
const atLastIndex = selectedIndex === (hasLimit ? limit : items.length) - 1;
|
|
12614
|
+
const nextIndex = hasLimit ? selectedIndex : 0;
|
|
12615
|
+
const nextRotateIndex = atLastIndex ? rotateIndex - 1 : rotateIndex;
|
|
12616
|
+
const nextSelectedIndex = atLastIndex ? nextIndex : selectedIndex + 1;
|
|
12617
|
+
setRotateIndex(nextRotateIndex);
|
|
12618
|
+
setSelectedIndex(nextSelectedIndex);
|
|
12619
|
+
const slicedItems2 = hasLimit ? (0, import_arr_rotate.default)(items, nextRotateIndex).slice(0, limit) : items;
|
|
12620
|
+
if (typeof onHighlight === "function") {
|
|
12621
|
+
onHighlight(slicedItems2[nextSelectedIndex]);
|
|
12622
|
+
}
|
|
12623
|
+
}
|
|
12624
|
+
if (key.return) {
|
|
12625
|
+
const slicedItems2 = hasLimit ? (0, import_arr_rotate.default)(items, rotateIndex).slice(0, limit) : items;
|
|
12626
|
+
if (typeof onSelect === "function") {
|
|
12627
|
+
onSelect(slicedItems2[selectedIndex]);
|
|
12628
|
+
}
|
|
12629
|
+
}
|
|
12630
|
+
}, [
|
|
12631
|
+
hasLimit,
|
|
12632
|
+
limit,
|
|
12633
|
+
rotateIndex,
|
|
12634
|
+
selectedIndex,
|
|
12635
|
+
items,
|
|
12636
|
+
onSelect,
|
|
12637
|
+
onHighlight
|
|
12638
|
+
]), { isActive: isFocused });
|
|
12639
|
+
const slicedItems = hasLimit ? (0, import_arr_rotate.default)(items, rotateIndex).slice(0, limit) : items;
|
|
12640
|
+
return import_react49.default.createElement(Box_default, { flexDirection: "column" }, slicedItems.map((item, index) => {
|
|
12641
|
+
const isSelected = index === selectedIndex;
|
|
12642
|
+
return (
|
|
12643
|
+
// @ts-expect-error - `key` can't be optional but `item.value` is generic T
|
|
12644
|
+
import_react49.default.createElement(
|
|
12645
|
+
Box_default,
|
|
12646
|
+
{ key: item.key ?? item.value },
|
|
12647
|
+
import_react49.default.createElement(indicatorComponent, { isSelected }),
|
|
12648
|
+
import_react49.default.createElement(itemComponent, { ...item, isSelected })
|
|
12649
|
+
)
|
|
12650
|
+
);
|
|
12651
|
+
}));
|
|
12652
|
+
}
|
|
12653
|
+
var SelectInput_default = SelectInput;
|
|
12654
|
+
|
|
12655
|
+
// ../cli-ui-kit/src/components/SelectInput/Indicator.tsx
|
|
12656
|
+
init_esm_shims();
|
|
12657
|
+
var import_react51 = __toESM(require_react(), 1);
|
|
12658
|
+
var Indicator2 = ({ isSelected }) => {
|
|
12659
|
+
return /* @__PURE__ */ import_react51.default.createElement(Box_default, { width: 2 }, /* @__PURE__ */ import_react51.default.createElement(Text2, { skin: "info" }, /* @__PURE__ */ import_react51.default.createElement(RadioIcon, { selected: isSelected })));
|
|
12660
|
+
};
|
|
12661
|
+
|
|
12662
|
+
// ../cli-ui-kit/src/components/SelectInput/Item.tsx
|
|
12663
|
+
init_esm_shims();
|
|
12664
|
+
var import_react52 = __toESM(require_react(), 1);
|
|
12665
|
+
var import_variant7 = __toESM(require_lib(), 1);
|
|
12666
|
+
|
|
12667
|
+
// ../cli-ui-kit/src/components/SelectInput/types.ts
|
|
12668
|
+
init_esm_shims();
|
|
12669
|
+
var import_variant6 = __toESM(require_lib(), 1);
|
|
12670
|
+
var SelectOptionAvailability = (0, import_variant6.variant)({
|
|
12671
|
+
Enabled: {},
|
|
12672
|
+
Disabled: (0, import_variant6.fields)()
|
|
12673
|
+
});
|
|
12674
|
+
|
|
12675
|
+
// ../cli-ui-kit/src/components/SelectInput/Item.tsx
|
|
12676
|
+
function Item2({
|
|
12677
|
+
isSelected,
|
|
12678
|
+
label,
|
|
12679
|
+
value: { description, availability = SelectOptionAvailability.Enabled() }
|
|
12680
|
+
}) {
|
|
12681
|
+
const isDisabled = (0, import_variant7.isType)(availability, SelectOptionAvailability.Disabled);
|
|
12682
|
+
return /* @__PURE__ */ import_react52.default.createElement(Box_default, null, /* @__PURE__ */ import_react52.default.createElement(
|
|
12683
|
+
Text2,
|
|
12684
|
+
{
|
|
12685
|
+
skin: isDisabled ? "secondary" : isSelected ? "info" : "standard",
|
|
12686
|
+
strikethrough: !isSelected && isDisabled
|
|
12687
|
+
},
|
|
12688
|
+
label
|
|
12689
|
+
), isSelected && (0, import_variant7.match)(availability, {
|
|
12690
|
+
Disabled: ({ reason }) => /* @__PURE__ */ import_react52.default.createElement(Box_default, { marginLeft: 1 }, reason ? /* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "warning" }, "- disabled (", reason, ")") : /* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "warning" }, "- disabled")),
|
|
12691
|
+
Enabled: () => description && /* @__PURE__ */ import_react52.default.createElement(Box_default, { marginLeft: 1 }, /* @__PURE__ */ import_react52.default.createElement(Text2, { skin: "secondary" }, "- ", description))
|
|
12692
|
+
}));
|
|
12693
|
+
}
|
|
12694
|
+
|
|
12695
|
+
// ../cli-ui-kit/src/components/SelectInput/Placeholder.tsx
|
|
12696
|
+
init_esm_shims();
|
|
12697
|
+
var import_react53 = __toESM(require_react(), 1);
|
|
12698
|
+
var import_variant8 = __toESM(require_lib(), 1);
|
|
12699
|
+
function Placeholder2({ inputState }) {
|
|
12700
|
+
return (0, import_variant8.match)(inputState, {
|
|
12701
|
+
NotSubmitted: () => null,
|
|
12702
|
+
Submitted: ({ value: value2 }) => /* @__PURE__ */ import_react53.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react53.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react53.default.createElement(SuccessIcon, null), " ", value2.title))
|
|
12703
|
+
});
|
|
12704
|
+
}
|
|
12705
|
+
|
|
12706
|
+
// ../cli-ui-kit/src/components/SelectInput/SelectInput.tsx
|
|
12707
|
+
function SelectInput2({
|
|
12708
|
+
label,
|
|
12709
|
+
info,
|
|
12710
|
+
options,
|
|
12711
|
+
onSubmit,
|
|
12712
|
+
limit = 10,
|
|
12713
|
+
initialIndex
|
|
12714
|
+
}) {
|
|
12715
|
+
if (!options.length) {
|
|
12716
|
+
throw new Error("SelectInput: options cannot be empty");
|
|
12717
|
+
}
|
|
12718
|
+
const [inputState, setInputState] = (0, import_react54.useState)(
|
|
12719
|
+
() => InputState.NotSubmitted()
|
|
12720
|
+
);
|
|
12721
|
+
const handleHighlight = (0, import_react54.useCallback)(
|
|
12722
|
+
({ value: value2 }) => {
|
|
12723
|
+
setInputState(InputState.NotSubmitted(value2));
|
|
12724
|
+
},
|
|
12725
|
+
[]
|
|
12726
|
+
);
|
|
12727
|
+
const handleSelect = (0, import_react54.useCallback)(
|
|
12728
|
+
({ value: value2 }) => {
|
|
12729
|
+
if (!(0, import_variant9.isType)(value2.availability, SelectOptionAvailability.Disabled)) {
|
|
12730
|
+
setInputState(InputState.Submitted(value2));
|
|
12731
|
+
onSubmit(value2);
|
|
12732
|
+
}
|
|
12733
|
+
},
|
|
12734
|
+
[onSubmit]
|
|
12735
|
+
);
|
|
12736
|
+
const items = (0, import_react54.useMemo)(
|
|
12737
|
+
() => options.map((option) => ({
|
|
12738
|
+
key: typeof option.value === "string" ? option.value : option.key,
|
|
12739
|
+
label: option.title,
|
|
12740
|
+
value: option
|
|
12741
|
+
})),
|
|
12742
|
+
[options]
|
|
12743
|
+
);
|
|
12744
|
+
return /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, /* @__PURE__ */ import_react54.default.createElement(Box_default, { marginLeft: -2, marginBottom: 1 }, /* @__PURE__ */ import_react54.default.createElement(Text2, null, /* @__PURE__ */ import_react54.default.createElement(InputLabel, null, label), " ", info && (0, import_variant9.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react54.default.createElement(Text2, { skin: "secondary" }, info))), /* @__PURE__ */ import_react54.default.createElement(Placeholder2, { inputState }), (0, import_variant9.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react54.default.createElement(Box_default, null, /* @__PURE__ */ import_react54.default.createElement(
|
|
12745
|
+
SelectInput_default,
|
|
12746
|
+
{
|
|
12747
|
+
items,
|
|
12748
|
+
limit,
|
|
12749
|
+
itemComponent: Item2,
|
|
12750
|
+
indicatorComponent: Indicator2,
|
|
12751
|
+
onSelect: handleSelect,
|
|
12752
|
+
onHighlight: handleHighlight,
|
|
12753
|
+
initialIndex
|
|
12754
|
+
}
|
|
12755
|
+
)));
|
|
12756
|
+
}
|
|
12757
|
+
|
|
11804
12758
|
// ../cli-ui-kit/src/components/TextInput/Input.tsx
|
|
11805
12759
|
init_esm_shims();
|
|
11806
|
-
var
|
|
12760
|
+
var import_react55 = __toESM(require_react(), 1);
|
|
11807
12761
|
var Input2 = ({
|
|
11808
12762
|
onSubmit,
|
|
11809
12763
|
onChange,
|
|
11810
12764
|
placeholder,
|
|
11811
12765
|
showCursor
|
|
11812
12766
|
}) => {
|
|
11813
|
-
const [currentValue, setCurrentValue] = (0,
|
|
11814
|
-
return /* @__PURE__ */
|
|
12767
|
+
const [currentValue, setCurrentValue] = (0, import_react55.useState)("");
|
|
12768
|
+
return /* @__PURE__ */ import_react55.default.createElement(
|
|
11815
12769
|
build_default,
|
|
11816
12770
|
{
|
|
11817
12771
|
showCursor,
|
|
@@ -11837,8 +12791,8 @@ init_esm_shims();
|
|
|
11837
12791
|
|
|
11838
12792
|
// ../cli-ui-kit/src/components/TextInput/TextInput.tsx
|
|
11839
12793
|
init_esm_shims();
|
|
11840
|
-
var
|
|
11841
|
-
var
|
|
12794
|
+
var import_react56 = __toESM(require_react(), 1);
|
|
12795
|
+
var import_variant10 = __toESM(require_lib(), 1);
|
|
11842
12796
|
var TextInput2 = ({
|
|
11843
12797
|
label,
|
|
11844
12798
|
placeholder,
|
|
@@ -11846,12 +12800,12 @@ var TextInput2 = ({
|
|
|
11846
12800
|
validate = () => true,
|
|
11847
12801
|
inCreateFlow = false
|
|
11848
12802
|
}) => {
|
|
11849
|
-
const [inputState, setInputState] = (0,
|
|
12803
|
+
const [inputState, setInputState] = (0, import_react56.useState)(
|
|
11850
12804
|
() => InputState.NotSubmitted(placeholder)
|
|
11851
12805
|
);
|
|
11852
|
-
const [isDirty, setIsDirty] = (0,
|
|
11853
|
-
const [validationError, setValidationError] = (0,
|
|
11854
|
-
const handleSubmit = (0,
|
|
12806
|
+
const [isDirty, setIsDirty] = (0, import_react56.useState)(false);
|
|
12807
|
+
const [validationError, setValidationError] = (0, import_react56.useState)();
|
|
12808
|
+
const handleSubmit = (0, import_react56.useCallback)(
|
|
11855
12809
|
async (value2) => {
|
|
11856
12810
|
setIsDirty(false);
|
|
11857
12811
|
const validationResult = await validate(value2);
|
|
@@ -11866,13 +12820,13 @@ var TextInput2 = ({
|
|
|
11866
12820
|
[onSubmit, validate]
|
|
11867
12821
|
);
|
|
11868
12822
|
const afterValidationError = Boolean(validationError && !isDirty);
|
|
11869
|
-
return /* @__PURE__ */
|
|
12823
|
+
return /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginBottom: 1, marginLeft: inCreateFlow ? -2 : 0 }, /* @__PURE__ */ import_react56.default.createElement(Text2, null, /* @__PURE__ */ import_react56.default.createElement(
|
|
11870
12824
|
InputLabel,
|
|
11871
12825
|
{
|
|
11872
|
-
icon: /* @__PURE__ */
|
|
12826
|
+
icon: /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "question" }, /* @__PURE__ */ import_react56.default.createElement(PointerIcon, { appearance: "triangle" }))
|
|
11873
12827
|
},
|
|
11874
12828
|
label
|
|
11875
|
-
), (0,
|
|
12829
|
+
), (0, import_variant10.isType)(inputState, InputState.NotSubmitted) && /* @__PURE__ */ import_react56.default.createElement(import_react56.default.Fragment, null, " ", /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: afterValidationError ? "error" : "standard" }, /* @__PURE__ */ import_react56.default.createElement(
|
|
11876
12830
|
Input2,
|
|
11877
12831
|
{
|
|
11878
12832
|
placeholder: inputState.value,
|
|
@@ -11880,33 +12834,33 @@ var TextInput2 = ({
|
|
|
11880
12834
|
onChange: () => setIsDirty(true),
|
|
11881
12835
|
showCursor: afterValidationError
|
|
11882
12836
|
}
|
|
11883
|
-
))))), (0,
|
|
12837
|
+
))))), (0, import_variant10.isType)(inputState, InputState.Submitted) && /* @__PURE__ */ import_react56.default.createElement(Box_default, { marginBottom: 1 }, /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "secondary" }, /* @__PURE__ */ import_react56.default.createElement(SuccessIcon, null), " ", inputState.value)), validationError && /* @__PURE__ */ import_react56.default.createElement(Box_default, { columnGap: 1 }, /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "error" }, /* @__PURE__ */ import_react56.default.createElement(PointerIcon, { appearance: "exclamation" })), /* @__PURE__ */ import_react56.default.createElement(Text2, { skin: "error" }, validationError)));
|
|
11884
12838
|
};
|
|
11885
12839
|
|
|
11886
12840
|
// ../cli-ui-kit/src/components/Key.tsx
|
|
11887
12841
|
init_esm_shims();
|
|
11888
|
-
var
|
|
12842
|
+
var import_react57 = __toESM(require_react(), 1);
|
|
11889
12843
|
var Key = ({ value: value2, skin }) => {
|
|
11890
12844
|
if (skin === "secondary") {
|
|
11891
|
-
return /* @__PURE__ */
|
|
12845
|
+
return /* @__PURE__ */ import_react57.default.createElement(Text, null, /* @__PURE__ */ import_react57.default.createElement(Text, { inverse: true }, " ", value2, " "), /* @__PURE__ */ import_react57.default.createElement(Text, null, "\u2591"));
|
|
11892
12846
|
}
|
|
11893
|
-
return /* @__PURE__ */
|
|
12847
|
+
return /* @__PURE__ */ import_react57.default.createElement(Text, null, /* @__PURE__ */ import_react57.default.createElement(Text, { backgroundColor: "blueBright" }, " ", value2, " "), /* @__PURE__ */ import_react57.default.createElement(Text, { color: "blueBright" }, "\u2591"));
|
|
11894
12848
|
};
|
|
11895
12849
|
|
|
11896
12850
|
// ../cli-ui-kit/src/components/ErrorDetails.tsx
|
|
11897
12851
|
init_esm_shims();
|
|
11898
|
-
var
|
|
12852
|
+
var import_react58 = __toESM(require_react(), 1);
|
|
11899
12853
|
var ErrorDetails = ({
|
|
11900
12854
|
message,
|
|
11901
12855
|
explanation,
|
|
11902
12856
|
hint
|
|
11903
|
-
}) => /* @__PURE__ */
|
|
12857
|
+
}) => /* @__PURE__ */ import_react58.default.createElement(Box_default, { flexDirection: "column" }, /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "error" }, message), explanation && /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "warning" }, explanation), hint && /* @__PURE__ */ import_react58.default.createElement(Box_default, { paddingTop: 1 }, /* @__PURE__ */ import_react58.default.createElement(Alert, { type: "insight" }, hint)));
|
|
11904
12858
|
|
|
11905
12859
|
// ../cli-ui-kit/src/components/Notification.tsx
|
|
11906
12860
|
init_esm_shims();
|
|
11907
|
-
var
|
|
12861
|
+
var import_react59 = __toESM(require_react(), 1);
|
|
11908
12862
|
var Notification = ({ children }) => {
|
|
11909
|
-
return /* @__PURE__ */
|
|
12863
|
+
return /* @__PURE__ */ import_react59.default.createElement(Box_default, null, /* @__PURE__ */ import_react59.default.createElement(
|
|
11910
12864
|
Box_default,
|
|
11911
12865
|
{
|
|
11912
12866
|
padding: 1,
|
|
@@ -11921,11 +12875,11 @@ var Notification = ({ children }) => {
|
|
|
11921
12875
|
|
|
11922
12876
|
// ../../node_modules/react-i18next/dist/es/Trans.js
|
|
11923
12877
|
init_esm_shims();
|
|
11924
|
-
var
|
|
12878
|
+
var import_react62 = __toESM(require_react(), 1);
|
|
11925
12879
|
|
|
11926
12880
|
// ../../node_modules/react-i18next/dist/es/TransWithoutContext.js
|
|
11927
12881
|
init_esm_shims();
|
|
11928
|
-
var
|
|
12882
|
+
var import_react60 = __toESM(require_react(), 1);
|
|
11929
12883
|
|
|
11930
12884
|
// ../../node_modules/html-parse-stringify/dist/html-parse-stringify.module.js
|
|
11931
12885
|
init_esm_shims();
|
|
@@ -12124,7 +13078,7 @@ var getChildren = (node) => {
|
|
|
12124
13078
|
const children = node.props?.children ?? node.children;
|
|
12125
13079
|
return node.props?.i18nIsDynamicList ? getAsArray(children) : children;
|
|
12126
13080
|
};
|
|
12127
|
-
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(
|
|
13081
|
+
var hasValidReactChildren = (children) => Array.isArray(children) && children.every(import_react60.isValidElement);
|
|
12128
13082
|
var getAsArray = (data) => Array.isArray(data) ? data : [data];
|
|
12129
13083
|
var mergeProps = (source, target) => {
|
|
12130
13084
|
const newTarget = {
|
|
@@ -12143,7 +13097,7 @@ var nodesToString = (children, i18nOptions, i18n, i18nKey) => {
|
|
|
12143
13097
|
stringNode += `${child}`;
|
|
12144
13098
|
return;
|
|
12145
13099
|
}
|
|
12146
|
-
if ((0,
|
|
13100
|
+
if ((0, import_react60.isValidElement)(child)) {
|
|
12147
13101
|
const {
|
|
12148
13102
|
props,
|
|
12149
13103
|
type
|
|
@@ -12208,7 +13162,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12208
13162
|
childrenArray.forEach((child) => {
|
|
12209
13163
|
if (isString(child)) return;
|
|
12210
13164
|
if (hasChildren(child)) getData(getChildren(child));
|
|
12211
|
-
else if (isObject(child) && !(0,
|
|
13165
|
+
else if (isObject(child) && !(0, import_react60.isValidElement)(child)) Object.assign(data, child);
|
|
12212
13166
|
});
|
|
12213
13167
|
};
|
|
12214
13168
|
getData(children);
|
|
@@ -12225,16 +13179,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12225
13179
|
const pushTranslatedJSX = (child, inner, mem, i2, isVoid) => {
|
|
12226
13180
|
if (child.dummy) {
|
|
12227
13181
|
child.children = inner;
|
|
12228
|
-
mem.push((0,
|
|
13182
|
+
mem.push((0, import_react60.cloneElement)(child, {
|
|
12229
13183
|
key: i2
|
|
12230
13184
|
}, isVoid ? void 0 : inner));
|
|
12231
13185
|
} else {
|
|
12232
|
-
mem.push(...
|
|
13186
|
+
mem.push(...import_react60.Children.map([child], (c2) => {
|
|
12233
13187
|
const props = {
|
|
12234
13188
|
...c2.props
|
|
12235
13189
|
};
|
|
12236
13190
|
delete props.i18nIsDynamicList;
|
|
12237
|
-
return (0,
|
|
13191
|
+
return (0, import_react60.createElement)(c2.type, {
|
|
12238
13192
|
...props,
|
|
12239
13193
|
key: i2,
|
|
12240
13194
|
ref: c2.ref
|
|
@@ -12254,7 +13208,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12254
13208
|
const child = Object.keys(node.attrs).length !== 0 ? mergeProps({
|
|
12255
13209
|
props: node.attrs
|
|
12256
13210
|
}, tmp) : tmp;
|
|
12257
|
-
const isElement = (0,
|
|
13211
|
+
const isElement = (0, import_react60.isValidElement)(child);
|
|
12258
13212
|
const isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
|
12259
13213
|
const isEmptyTransWithHTML = emptyChildrenButNeedsHandling && isObject(child) && child.dummy && !isElement;
|
|
12260
13214
|
const isKnownComponent = isObject(children) && Object.hasOwnProperty.call(children, node.name);
|
|
@@ -12273,12 +13227,12 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12273
13227
|
pushTranslatedJSX(child, inner, mem, i2, node.voidElement);
|
|
12274
13228
|
} else if (i18nOptions.transSupportBasicHtmlNodes && keepArray.indexOf(node.name) > -1) {
|
|
12275
13229
|
if (node.voidElement) {
|
|
12276
|
-
mem.push((0,
|
|
13230
|
+
mem.push((0, import_react60.createElement)(node.name, {
|
|
12277
13231
|
key: `${node.name}-${i2}`
|
|
12278
13232
|
}));
|
|
12279
13233
|
} else {
|
|
12280
13234
|
const inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
12281
|
-
mem.push((0,
|
|
13235
|
+
mem.push((0, import_react60.createElement)(node.name, {
|
|
12282
13236
|
key: `${node.name}-${i2}`
|
|
12283
13237
|
}, inner));
|
|
12284
13238
|
}
|
|
@@ -12298,7 +13252,7 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12298
13252
|
const wrapTextNodes = i18nOptions.transWrapTextNodes;
|
|
12299
13253
|
const content = shouldUnescape ? i18nOptions.unescape(i18n.services.interpolator.interpolate(node.content, opts, i18n.language)) : i18n.services.interpolator.interpolate(node.content, opts, i18n.language);
|
|
12300
13254
|
if (wrapTextNodes) {
|
|
12301
|
-
mem.push((0,
|
|
13255
|
+
mem.push((0, import_react60.createElement)(wrapTextNodes, {
|
|
12302
13256
|
key: `${node.name}-${i2}`
|
|
12303
13257
|
}, content));
|
|
12304
13258
|
} else {
|
|
@@ -12316,16 +13270,16 @@ var renderNodes = (children, targetString, i18n, i18nOptions, combinedTOpts, sho
|
|
|
12316
13270
|
};
|
|
12317
13271
|
var fixComponentProps = (component, index, translation) => {
|
|
12318
13272
|
const componentKey = component.key || index;
|
|
12319
|
-
const comp = (0,
|
|
13273
|
+
const comp = (0, import_react60.cloneElement)(component, {
|
|
12320
13274
|
key: componentKey
|
|
12321
13275
|
});
|
|
12322
13276
|
if (!comp.props || !comp.props.children || translation.indexOf(`${index}/>`) < 0 && translation.indexOf(`${index} />`) < 0) {
|
|
12323
13277
|
return comp;
|
|
12324
13278
|
}
|
|
12325
13279
|
function Componentized() {
|
|
12326
|
-
return (0,
|
|
13280
|
+
return (0, import_react60.createElement)(import_react60.Fragment, null, comp);
|
|
12327
13281
|
}
|
|
12328
|
-
return (0,
|
|
13282
|
+
return (0, import_react60.createElement)(Componentized);
|
|
12329
13283
|
};
|
|
12330
13284
|
var generateArrayComponents = (components, translation) => components.map((c2, index) => fixComponentProps(c2, index, translation));
|
|
12331
13285
|
var generateObjectComponents = (components, translation) => {
|
|
@@ -12414,12 +13368,12 @@ function Trans({
|
|
|
12414
13368
|
const generatedComponents = generateComponents(components, translation, i18n, i18nKey);
|
|
12415
13369
|
const content = renderNodes(generatedComponents || children, translation, i18n, reactI18nextOptions, combinedTOpts, shouldUnescape);
|
|
12416
13370
|
const useAsParent = parent ?? reactI18nextOptions.defaultTransParent;
|
|
12417
|
-
return useAsParent ? (0,
|
|
13371
|
+
return useAsParent ? (0, import_react60.createElement)(useAsParent, additionalProps, content) : content;
|
|
12418
13372
|
}
|
|
12419
13373
|
|
|
12420
13374
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
12421
13375
|
init_esm_shims();
|
|
12422
|
-
var
|
|
13376
|
+
var import_react61 = __toESM(require_react(), 1);
|
|
12423
13377
|
|
|
12424
13378
|
// ../../node_modules/react-i18next/dist/es/initReactI18next.js
|
|
12425
13379
|
init_esm_shims();
|
|
@@ -12432,7 +13386,7 @@ var initReactI18next = {
|
|
|
12432
13386
|
};
|
|
12433
13387
|
|
|
12434
13388
|
// ../../node_modules/react-i18next/dist/es/context.js
|
|
12435
|
-
var I18nContext = (0,
|
|
13389
|
+
var I18nContext = (0, import_react61.createContext)();
|
|
12436
13390
|
var ReportNamespaces = class {
|
|
12437
13391
|
constructor() {
|
|
12438
13392
|
this.usedNamespaces = {};
|
|
@@ -12467,7 +13421,7 @@ function Trans2({
|
|
|
12467
13421
|
const {
|
|
12468
13422
|
i18n: i18nFromContext,
|
|
12469
13423
|
defaultNS: defaultNSFromContext
|
|
12470
|
-
} = (0,
|
|
13424
|
+
} = (0, import_react62.useContext)(I18nContext) || {};
|
|
12471
13425
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
12472
13426
|
const t3 = tFromProps || i18n?.t.bind(i18n);
|
|
12473
13427
|
return Trans({
|
|
@@ -12490,16 +13444,16 @@ function Trans2({
|
|
|
12490
13444
|
|
|
12491
13445
|
// ../../node_modules/react-i18next/dist/es/useTranslation.js
|
|
12492
13446
|
init_esm_shims();
|
|
12493
|
-
var
|
|
13447
|
+
var import_react63 = __toESM(require_react(), 1);
|
|
12494
13448
|
var usePrevious = (value2, ignore) => {
|
|
12495
|
-
const ref = (0,
|
|
12496
|
-
(0,
|
|
13449
|
+
const ref = (0, import_react63.useRef)();
|
|
13450
|
+
(0, import_react63.useEffect)(() => {
|
|
12497
13451
|
ref.current = ignore ? ref.current : value2;
|
|
12498
13452
|
}, [value2, ignore]);
|
|
12499
13453
|
return ref.current;
|
|
12500
13454
|
};
|
|
12501
13455
|
var alwaysNewT = (i18n, language, namespace, keyPrefix) => i18n.getFixedT(language, namespace, keyPrefix);
|
|
12502
|
-
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0,
|
|
13456
|
+
var useMemoizedT = (i18n, language, namespace, keyPrefix) => (0, import_react63.useCallback)(alwaysNewT(i18n, language, namespace, keyPrefix), [i18n, language, namespace, keyPrefix]);
|
|
12503
13457
|
var useTranslation = (ns, props = {}) => {
|
|
12504
13458
|
const {
|
|
12505
13459
|
i18n: i18nFromProps
|
|
@@ -12507,7 +13461,7 @@ var useTranslation = (ns, props = {}) => {
|
|
|
12507
13461
|
const {
|
|
12508
13462
|
i18n: i18nFromContext,
|
|
12509
13463
|
defaultNS: defaultNSFromContext
|
|
12510
|
-
} = (0,
|
|
13464
|
+
} = (0, import_react63.useContext)(I18nContext) || {};
|
|
12511
13465
|
const i18n = i18nFromProps || i18nFromContext || getI18n();
|
|
12512
13466
|
if (i18n && !i18n.reportNamespaces) i18n.reportNamespaces = new ReportNamespaces();
|
|
12513
13467
|
if (!i18n) {
|
|
@@ -12540,12 +13494,12 @@ var useTranslation = (ns, props = {}) => {
|
|
|
12540
13494
|
const memoGetT = useMemoizedT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
12541
13495
|
const getT = () => memoGetT;
|
|
12542
13496
|
const getNewT = () => alwaysNewT(i18n, props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
|
|
12543
|
-
const [t3, setT] = (0,
|
|
13497
|
+
const [t3, setT] = (0, import_react63.useState)(getT);
|
|
12544
13498
|
let joinedNS = namespaces.join();
|
|
12545
13499
|
if (props.lng) joinedNS = `${props.lng}${joinedNS}`;
|
|
12546
13500
|
const previousJoinedNS = usePrevious(joinedNS);
|
|
12547
|
-
const isMounted = (0,
|
|
12548
|
-
(0,
|
|
13501
|
+
const isMounted = (0, import_react63.useRef)(true);
|
|
13502
|
+
(0, import_react63.useEffect)(() => {
|
|
12549
13503
|
const {
|
|
12550
13504
|
bindI18n,
|
|
12551
13505
|
bindI18nStore
|
|
@@ -12576,7 +13530,7 @@ var useTranslation = (ns, props = {}) => {
|
|
|
12576
13530
|
if (bindI18nStore && i18n) bindI18nStore.split(" ").forEach((e2) => i18n.store.off(e2, boundReset));
|
|
12577
13531
|
};
|
|
12578
13532
|
}, [i18n, joinedNS]);
|
|
12579
|
-
(0,
|
|
13533
|
+
(0, import_react63.useEffect)(() => {
|
|
12580
13534
|
if (isMounted.current && ready) {
|
|
12581
13535
|
setT(getT);
|
|
12582
13536
|
}
|
|
@@ -12601,39 +13555,39 @@ init_esm_shims();
|
|
|
12601
13555
|
|
|
12602
13556
|
// ../../node_modules/react-i18next/dist/es/withTranslation.js
|
|
12603
13557
|
init_esm_shims();
|
|
12604
|
-
var
|
|
13558
|
+
var import_react64 = __toESM(require_react(), 1);
|
|
12605
13559
|
|
|
12606
13560
|
// ../../node_modules/react-i18next/dist/es/Translation.js
|
|
12607
13561
|
init_esm_shims();
|
|
12608
13562
|
|
|
12609
13563
|
// ../../node_modules/react-i18next/dist/es/I18nextProvider.js
|
|
12610
13564
|
init_esm_shims();
|
|
12611
|
-
var
|
|
13565
|
+
var import_react65 = __toESM(require_react(), 1);
|
|
12612
13566
|
function I18nextProvider({
|
|
12613
13567
|
i18n,
|
|
12614
13568
|
defaultNS,
|
|
12615
13569
|
children
|
|
12616
13570
|
}) {
|
|
12617
|
-
const value2 = (0,
|
|
13571
|
+
const value2 = (0, import_react65.useMemo)(() => ({
|
|
12618
13572
|
i18n,
|
|
12619
13573
|
defaultNS
|
|
12620
13574
|
}), [i18n, defaultNS]);
|
|
12621
|
-
return (0,
|
|
13575
|
+
return (0, import_react65.createElement)(I18nContext.Provider, {
|
|
12622
13576
|
value: value2
|
|
12623
13577
|
}, children);
|
|
12624
13578
|
}
|
|
12625
13579
|
|
|
12626
13580
|
// ../../node_modules/react-i18next/dist/es/withSSR.js
|
|
12627
13581
|
init_esm_shims();
|
|
12628
|
-
var
|
|
13582
|
+
var import_react67 = __toESM(require_react(), 1);
|
|
12629
13583
|
|
|
12630
13584
|
// ../../node_modules/react-i18next/dist/es/useSSR.js
|
|
12631
13585
|
init_esm_shims();
|
|
12632
|
-
var
|
|
13586
|
+
var import_react66 = __toESM(require_react(), 1);
|
|
12633
13587
|
|
|
12634
13588
|
// ../cli-i18n/src/I18nProvider.tsx
|
|
12635
13589
|
init_esm_shims();
|
|
12636
|
-
var
|
|
13590
|
+
var import_react68 = __toESM(require_react(), 1);
|
|
12637
13591
|
|
|
12638
13592
|
// ../cli-i18n/src/create-i18n.ts
|
|
12639
13593
|
init_esm_shims();
|
|
@@ -12872,9 +13826,9 @@ init_esm_shims();
|
|
|
12872
13826
|
var DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
12873
13827
|
function parseDateTimeSkeleton(skeleton) {
|
|
12874
13828
|
var result = {};
|
|
12875
|
-
skeleton.replace(DATE_TIME_REGEX, function(
|
|
12876
|
-
var len =
|
|
12877
|
-
switch (
|
|
13829
|
+
skeleton.replace(DATE_TIME_REGEX, function(match6) {
|
|
13830
|
+
var len = match6.length;
|
|
13831
|
+
switch (match6[0]) {
|
|
12878
13832
|
case "G":
|
|
12879
13833
|
result.era = len === 4 ? "long" : len === 5 ? "narrow" : "short";
|
|
12880
13834
|
break;
|
|
@@ -14865,21 +15819,21 @@ if (REGEX_SUPPORTS_U_AND_Y) {
|
|
|
14865
15819
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
14866
15820
|
var _a2;
|
|
14867
15821
|
IDENTIFIER_PREFIX_RE_1.lastIndex = index;
|
|
14868
|
-
var
|
|
14869
|
-
return (_a2 =
|
|
15822
|
+
var match6 = IDENTIFIER_PREFIX_RE_1.exec(s2);
|
|
15823
|
+
return (_a2 = match6[1]) !== null && _a2 !== void 0 ? _a2 : "";
|
|
14870
15824
|
};
|
|
14871
15825
|
} else {
|
|
14872
15826
|
matchIdentifierAtIndex = function matchIdentifierAtIndex2(s2, index) {
|
|
14873
|
-
var
|
|
15827
|
+
var match6 = [];
|
|
14874
15828
|
while (true) {
|
|
14875
15829
|
var c2 = codePointAt(s2, index);
|
|
14876
15830
|
if (c2 === void 0 || _isWhiteSpace(c2) || _isPatternSyntax(c2)) {
|
|
14877
15831
|
break;
|
|
14878
15832
|
}
|
|
14879
|
-
|
|
15833
|
+
match6.push(c2);
|
|
14880
15834
|
index += c2 >= 65536 ? 2 : 1;
|
|
14881
15835
|
}
|
|
14882
|
-
return fromCodePoint.apply(void 0,
|
|
15836
|
+
return fromCodePoint.apply(void 0, match6);
|
|
14883
15837
|
};
|
|
14884
15838
|
}
|
|
14885
15839
|
var IDENTIFIER_PREFIX_RE_1;
|
|
@@ -16617,6 +17571,7 @@ var postProcessor = {
|
|
|
16617
17571
|
}
|
|
16618
17572
|
};
|
|
16619
17573
|
var checkedLoadedFor = {};
|
|
17574
|
+
var shouldHandleAsObject = (res) => !isString2(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
16620
17575
|
var Translator = class _Translator extends EventEmitter {
|
|
16621
17576
|
constructor(services) {
|
|
16622
17577
|
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -16715,17 +17670,29 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
16715
17670
|
let res = resolved?.res;
|
|
16716
17671
|
const resUsedKey = resolved?.usedKey || key;
|
|
16717
17672
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
16718
|
-
const resType = Object.prototype.toString.apply(res);
|
|
16719
17673
|
const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
|
|
16720
17674
|
const joinArrays = options.joinArrays !== void 0 ? options.joinArrays : this.options.joinArrays;
|
|
16721
17675
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
16722
|
-
const
|
|
16723
|
-
|
|
17676
|
+
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
17677
|
+
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
17678
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
17679
|
+
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
17680
|
+
ordinal: false
|
|
17681
|
+
}) : "";
|
|
17682
|
+
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
17683
|
+
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
17684
|
+
let resForObjHndl = res;
|
|
17685
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
17686
|
+
resForObjHndl = defaultValue;
|
|
17687
|
+
}
|
|
17688
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
17689
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
17690
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString2(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
16724
17691
|
if (!options.returnObjects && !this.options.returnObjects) {
|
|
16725
17692
|
if (!this.options.returnedObjectHandler) {
|
|
16726
17693
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
16727
17694
|
}
|
|
16728
|
-
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
17695
|
+
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
16729
17696
|
...options,
|
|
16730
17697
|
ns: namespaces
|
|
16731
17698
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
@@ -16737,20 +17704,31 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
16737
17704
|
return r2;
|
|
16738
17705
|
}
|
|
16739
17706
|
if (keySeparator) {
|
|
16740
|
-
const resTypeIsArray = Array.isArray(
|
|
17707
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
16741
17708
|
const copy2 = resTypeIsArray ? [] : {};
|
|
16742
17709
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
16743
|
-
for (const m in
|
|
16744
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
17710
|
+
for (const m in resForObjHndl) {
|
|
17711
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
16745
17712
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
16746
|
-
|
|
16747
|
-
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16752
|
-
|
|
16753
|
-
|
|
17713
|
+
if (hasDefaultValue && !res) {
|
|
17714
|
+
copy2[m] = this.translate(deepKey, {
|
|
17715
|
+
...options,
|
|
17716
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : void 0,
|
|
17717
|
+
...{
|
|
17718
|
+
joinArrays: false,
|
|
17719
|
+
ns: namespaces
|
|
17720
|
+
}
|
|
17721
|
+
});
|
|
17722
|
+
} else {
|
|
17723
|
+
copy2[m] = this.translate(deepKey, {
|
|
17724
|
+
...options,
|
|
17725
|
+
...{
|
|
17726
|
+
joinArrays: false,
|
|
17727
|
+
ns: namespaces
|
|
17728
|
+
}
|
|
17729
|
+
});
|
|
17730
|
+
}
|
|
17731
|
+
if (copy2[m] === deepKey) copy2[m] = resForObjHndl[m];
|
|
16754
17732
|
}
|
|
16755
17733
|
}
|
|
16756
17734
|
res = copy2;
|
|
@@ -16761,14 +17739,6 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
16761
17739
|
} else {
|
|
16762
17740
|
let usedDefault = false;
|
|
16763
17741
|
let usedKey = false;
|
|
16764
|
-
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
16765
|
-
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
16766
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
16767
|
-
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
16768
|
-
ordinal: false
|
|
16769
|
-
}) : "";
|
|
16770
|
-
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
16771
|
-
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
16772
17742
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
16773
17743
|
usedDefault = true;
|
|
16774
17744
|
res = defaultValue;
|
|
@@ -17283,7 +18253,7 @@ var Interpolator = class {
|
|
|
17283
18253
|
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
17284
18254
|
}
|
|
17285
18255
|
interpolate(str, data, lng, options) {
|
|
17286
|
-
let
|
|
18256
|
+
let match6;
|
|
17287
18257
|
let value2;
|
|
17288
18258
|
let replaces;
|
|
17289
18259
|
const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
@@ -17317,17 +18287,17 @@ var Interpolator = class {
|
|
|
17317
18287
|
}];
|
|
17318
18288
|
todos.forEach((todo) => {
|
|
17319
18289
|
replaces = 0;
|
|
17320
|
-
while (
|
|
17321
|
-
const matchedVar =
|
|
18290
|
+
while (match6 = todo.regex.exec(str)) {
|
|
18291
|
+
const matchedVar = match6[1].trim();
|
|
17322
18292
|
value2 = handleFormat(matchedVar);
|
|
17323
18293
|
if (value2 === void 0) {
|
|
17324
18294
|
if (typeof missingInterpolationHandler === "function") {
|
|
17325
|
-
const temp = missingInterpolationHandler(str,
|
|
18295
|
+
const temp = missingInterpolationHandler(str, match6, options);
|
|
17326
18296
|
value2 = isString2(temp) ? temp : "";
|
|
17327
18297
|
} else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
|
|
17328
18298
|
value2 = "";
|
|
17329
18299
|
} else if (skipOnVariables) {
|
|
17330
|
-
value2 =
|
|
18300
|
+
value2 = match6[0];
|
|
17331
18301
|
continue;
|
|
17332
18302
|
} else {
|
|
17333
18303
|
this.logger.warn(`missed to pass in variable ${matchedVar} for interpolating ${str}`);
|
|
@@ -17337,10 +18307,10 @@ var Interpolator = class {
|
|
|
17337
18307
|
value2 = makeString(value2);
|
|
17338
18308
|
}
|
|
17339
18309
|
const safeValue = todo.safeValue(value2);
|
|
17340
|
-
str = str.replace(
|
|
18310
|
+
str = str.replace(match6[0], safeValue);
|
|
17341
18311
|
if (skipOnVariables) {
|
|
17342
18312
|
todo.regex.lastIndex += value2.length;
|
|
17343
|
-
todo.regex.lastIndex -=
|
|
18313
|
+
todo.regex.lastIndex -= match6[0].length;
|
|
17344
18314
|
} else {
|
|
17345
18315
|
todo.regex.lastIndex = 0;
|
|
17346
18316
|
}
|
|
@@ -17354,7 +18324,7 @@ var Interpolator = class {
|
|
|
17354
18324
|
}
|
|
17355
18325
|
nest(str, fc) {
|
|
17356
18326
|
let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
17357
|
-
let
|
|
18327
|
+
let match6;
|
|
17358
18328
|
let value2;
|
|
17359
18329
|
let clonedOptions;
|
|
17360
18330
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
@@ -17382,7 +18352,7 @@ var Interpolator = class {
|
|
|
17382
18352
|
if (clonedOptions.defaultValue && clonedOptions.defaultValue.indexOf(this.prefix) > -1) delete clonedOptions.defaultValue;
|
|
17383
18353
|
return key;
|
|
17384
18354
|
};
|
|
17385
|
-
while (
|
|
18355
|
+
while (match6 = this.nestingRegexp.exec(str)) {
|
|
17386
18356
|
let formatters = [];
|
|
17387
18357
|
clonedOptions = {
|
|
17388
18358
|
...options
|
|
@@ -17391,26 +18361,26 @@ var Interpolator = class {
|
|
|
17391
18361
|
clonedOptions.applyPostProcessor = false;
|
|
17392
18362
|
delete clonedOptions.defaultValue;
|
|
17393
18363
|
let doReduce = false;
|
|
17394
|
-
if (
|
|
17395
|
-
const r2 =
|
|
17396
|
-
|
|
18364
|
+
if (match6[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(match6[1])) {
|
|
18365
|
+
const r2 = match6[1].split(this.formatSeparator).map((elem) => elem.trim());
|
|
18366
|
+
match6[1] = r2.shift();
|
|
17397
18367
|
formatters = r2;
|
|
17398
18368
|
doReduce = true;
|
|
17399
18369
|
}
|
|
17400
|
-
value2 = fc(handleHasOptions.call(this,
|
|
17401
|
-
if (value2 &&
|
|
18370
|
+
value2 = fc(handleHasOptions.call(this, match6[1].trim(), clonedOptions), clonedOptions);
|
|
18371
|
+
if (value2 && match6[0] === str && !isString2(value2)) return value2;
|
|
17402
18372
|
if (!isString2(value2)) value2 = makeString(value2);
|
|
17403
18373
|
if (!value2) {
|
|
17404
|
-
this.logger.warn(`missed to resolve ${
|
|
18374
|
+
this.logger.warn(`missed to resolve ${match6[1]} for nesting ${str}`);
|
|
17405
18375
|
value2 = "";
|
|
17406
18376
|
}
|
|
17407
18377
|
if (doReduce) {
|
|
17408
18378
|
value2 = formatters.reduce((v, f) => this.format(v, f, options.lng, {
|
|
17409
18379
|
...options,
|
|
17410
|
-
interpolationkey:
|
|
18380
|
+
interpolationkey: match6[1].trim()
|
|
17411
18381
|
}), value2.trim());
|
|
17412
18382
|
}
|
|
17413
|
-
str = str.replace(
|
|
18383
|
+
str = str.replace(match6[0], value2);
|
|
17414
18384
|
this.regexp.lastIndex = 0;
|
|
17415
18385
|
}
|
|
17416
18386
|
return str;
|
|
@@ -18390,21 +19360,21 @@ var I18nProvider = ({
|
|
|
18390
19360
|
messages,
|
|
18391
19361
|
i18n: initialI18n
|
|
18392
19362
|
}) => {
|
|
18393
|
-
const [i18n] = (0,
|
|
18394
|
-
return /* @__PURE__ */
|
|
19363
|
+
const [i18n] = (0, import_react68.useState)(() => initialI18n ?? createI18n(messages));
|
|
19364
|
+
return /* @__PURE__ */ import_react68.default.createElement(I18nextProvider, { i18n }, children);
|
|
18395
19365
|
};
|
|
18396
19366
|
|
|
18397
19367
|
// ../cli-i18n/src/index.ts
|
|
18398
19368
|
init_esm_shims();
|
|
18399
19369
|
|
|
18400
19370
|
export {
|
|
18401
|
-
require_react,
|
|
18402
19371
|
Box_default,
|
|
18403
19372
|
Newline,
|
|
18404
19373
|
use_input_default,
|
|
18405
19374
|
UnorderedList,
|
|
18406
19375
|
Text2 as Text,
|
|
18407
19376
|
ConfirmInput,
|
|
19377
|
+
SelectInput2 as SelectInput,
|
|
18408
19378
|
TextInput2 as TextInput,
|
|
18409
19379
|
Alert,
|
|
18410
19380
|
Badge,
|
|
@@ -18427,17 +19397,6 @@ export {
|
|
|
18427
19397
|
};
|
|
18428
19398
|
/*! Bundled license information:
|
|
18429
19399
|
|
|
18430
|
-
react/cjs/react.production.min.js:
|
|
18431
|
-
(**
|
|
18432
|
-
* @license React
|
|
18433
|
-
* react.production.min.js
|
|
18434
|
-
*
|
|
18435
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18436
|
-
*
|
|
18437
|
-
* This source code is licensed under the MIT license found in the
|
|
18438
|
-
* LICENSE file in the root directory of this source tree.
|
|
18439
|
-
*)
|
|
18440
|
-
|
|
18441
19400
|
scheduler/cjs/scheduler.production.min.js:
|
|
18442
19401
|
(**
|
|
18443
19402
|
* @license React
|
|
@@ -18471,4 +19430,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
18471
19430
|
* LICENSE file in the root directory of this source tree.
|
|
18472
19431
|
*)
|
|
18473
19432
|
*/
|
|
18474
|
-
//# sourceMappingURL=chunk-
|
|
19433
|
+
//# sourceMappingURL=chunk-CIEBMSKA.js.map
|