@wix/cli
Version:
CLI tool for building Wix sites and applications
1,542 lines (1,522 loc) • 499 kB
JavaScript
import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import {
require_has_flag,
require_is_ci,
require_react,
require_supports_color
} from "./chunk-5A5B2WR4.js";
import {
isUnicodeSupported,
require_cli_spinners,
source_default,
stripAnsi
} from "./chunk-SQ3KPTIH.js";
import {
getTestOverrides
} from "./chunk-WYHHEOWO.js";
import {
CliError,
CliErrorCode,
require_lib
} from "./chunk-D5VYILRO.js";
import {
__commonJS,
__require,
__toESM,
init_esm_shims
} from "./chunk-4EFJZ3GQ.js";
// ../../node_modules/lodash/isObject.js
var require_isObject = __commonJS({
"../../node_modules/lodash/isObject.js"(exports, module) {
"use strict";
init_esm_shims();
function isObject(value2) {
var type = typeof value2;
return value2 != null && (type == "object" || type == "function");
}
module.exports = isObject;
}
});
// ../../node_modules/lodash/_freeGlobal.js
var require_freeGlobal = __commonJS({
"../../node_modules/lodash/_freeGlobal.js"(exports, module) {
"use strict";
init_esm_shims();
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
module.exports = freeGlobal;
}
});
// ../../node_modules/lodash/_root.js
var require_root = __commonJS({
"../../node_modules/lodash/_root.js"(exports, module) {
"use strict";
init_esm_shims();
var freeGlobal = require_freeGlobal();
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
var root = freeGlobal || freeSelf || Function("return this")();
module.exports = root;
}
});
// ../../node_modules/lodash/now.js
var require_now = __commonJS({
"../../node_modules/lodash/now.js"(exports, module) {
"use strict";
init_esm_shims();
var root = require_root();
var now = function() {
return root.Date.now();
};
module.exports = now;
}
});
// ../../node_modules/lodash/_trimmedEndIndex.js
var require_trimmedEndIndex = __commonJS({
"../../node_modules/lodash/_trimmedEndIndex.js"(exports, module) {
"use strict";
init_esm_shims();
var reWhitespace = /\s/;
function trimmedEndIndex(string) {
var index = string.length;
while (index-- && reWhitespace.test(string.charAt(index))) {
}
return index;
}
module.exports = trimmedEndIndex;
}
});
// ../../node_modules/lodash/_baseTrim.js
var require_baseTrim = __commonJS({
"../../node_modules/lodash/_baseTrim.js"(exports, module) {
"use strict";
init_esm_shims();
var trimmedEndIndex = require_trimmedEndIndex();
var reTrimStart = /^\s+/;
function baseTrim(string) {
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
}
module.exports = baseTrim;
}
});
// ../../node_modules/lodash/_Symbol.js
var require_Symbol = __commonJS({
"../../node_modules/lodash/_Symbol.js"(exports, module) {
"use strict";
init_esm_shims();
var root = require_root();
var Symbol2 = root.Symbol;
module.exports = Symbol2;
}
});
// ../../node_modules/lodash/_getRawTag.js
var require_getRawTag = __commonJS({
"../../node_modules/lodash/_getRawTag.js"(exports, module) {
"use strict";
init_esm_shims();
var Symbol2 = require_Symbol();
var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
var nativeObjectToString = objectProto.toString;
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
function getRawTag(value2) {
var isOwn = hasOwnProperty.call(value2, symToStringTag), tag = value2[symToStringTag];
try {
value2[symToStringTag] = void 0;
var unmasked = true;
} catch (e) {
}
var result = nativeObjectToString.call(value2);
if (unmasked) {
if (isOwn) {
value2[symToStringTag] = tag;
} else {
delete value2[symToStringTag];
}
}
return result;
}
module.exports = getRawTag;
}
});
// ../../node_modules/lodash/_objectToString.js
var require_objectToString = __commonJS({
"../../node_modules/lodash/_objectToString.js"(exports, module) {
"use strict";
init_esm_shims();
var objectProto = Object.prototype;
var nativeObjectToString = objectProto.toString;
function objectToString(value2) {
return nativeObjectToString.call(value2);
}
module.exports = objectToString;
}
});
// ../../node_modules/lodash/_baseGetTag.js
var require_baseGetTag = __commonJS({
"../../node_modules/lodash/_baseGetTag.js"(exports, module) {
"use strict";
init_esm_shims();
var Symbol2 = require_Symbol();
var getRawTag = require_getRawTag();
var objectToString = require_objectToString();
var nullTag = "[object Null]";
var undefinedTag = "[object Undefined]";
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
function baseGetTag(value2) {
if (value2 == null) {
return value2 === void 0 ? undefinedTag : nullTag;
}
return symToStringTag && symToStringTag in Object(value2) ? getRawTag(value2) : objectToString(value2);
}
module.exports = baseGetTag;
}
});
// ../../node_modules/lodash/isObjectLike.js
var require_isObjectLike = __commonJS({
"../../node_modules/lodash/isObjectLike.js"(exports, module) {
"use strict";
init_esm_shims();
function isObjectLike(value2) {
return value2 != null && typeof value2 == "object";
}
module.exports = isObjectLike;
}
});
// ../../node_modules/lodash/isSymbol.js
var require_isSymbol = __commonJS({
"../../node_modules/lodash/isSymbol.js"(exports, module) {
"use strict";
init_esm_shims();
var baseGetTag = require_baseGetTag();
var isObjectLike = require_isObjectLike();
var symbolTag = "[object Symbol]";
function isSymbol(value2) {
return typeof value2 == "symbol" || isObjectLike(value2) && baseGetTag(value2) == symbolTag;
}
module.exports = isSymbol;
}
});
// ../../node_modules/lodash/toNumber.js
var require_toNumber = __commonJS({
"../../node_modules/lodash/toNumber.js"(exports, module) {
"use strict";
init_esm_shims();
var baseTrim = require_baseTrim();
var isObject = require_isObject();
var isSymbol = require_isSymbol();
var NAN = 0 / 0;
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
var reIsBinary = /^0b[01]+$/i;
var reIsOctal = /^0o[0-7]+$/i;
var freeParseInt = parseInt;
function toNumber(value2) {
if (typeof value2 == "number") {
return value2;
}
if (isSymbol(value2)) {
return NAN;
}
if (isObject(value2)) {
var other = typeof value2.valueOf == "function" ? value2.valueOf() : value2;
value2 = isObject(other) ? other + "" : other;
}
if (typeof value2 != "string") {
return value2 === 0 ? value2 : +value2;
}
value2 = baseTrim(value2);
var isBinary = reIsBinary.test(value2);
return isBinary || reIsOctal.test(value2) ? freeParseInt(value2.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value2) ? NAN : +value2;
}
module.exports = toNumber;
}
});
// ../../node_modules/lodash/debounce.js
var require_debounce = __commonJS({
"../../node_modules/lodash/debounce.js"(exports, module) {
"use strict";
init_esm_shims();
var isObject = require_isObject();
var now = require_now();
var toNumber = require_toNumber();
var FUNC_ERROR_TEXT = "Expected a function";
var nativeMax = Math.max;
var nativeMin = Math.min;
function debounce(func, wait, options) {
var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
if (typeof func != "function") {
throw new TypeError(FUNC_ERROR_TEXT);
}
wait = toNumber(wait) || 0;
if (isObject(options)) {
leading = !!options.leading;
maxing = "maxWait" in options;
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
trailing = "trailing" in options ? !!options.trailing : trailing;
}
function invokeFunc(time) {
var args = lastArgs, thisArg = lastThis;
lastArgs = lastThis = void 0;
lastInvokeTime = time;
result = func.apply(thisArg, args);
return result;
}
function leadingEdge(time) {
lastInvokeTime = time;
timerId = setTimeout(timerExpired, wait);
return leading ? invokeFunc(time) : result;
}
function remainingWait(time) {
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
}
function shouldInvoke(time) {
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
}
function timerExpired() {
var time = now();
if (shouldInvoke(time)) {
return trailingEdge(time);
}
timerId = setTimeout(timerExpired, remainingWait(time));
}
function trailingEdge(time) {
timerId = void 0;
if (trailing && lastArgs) {
return invokeFunc(time);
}
lastArgs = lastThis = void 0;
return result;
}
function cancel() {
if (timerId !== void 0) {
clearTimeout(timerId);
}
lastInvokeTime = 0;
lastArgs = lastCallTime = lastThis = timerId = void 0;
}
function flush() {
return timerId === void 0 ? result : trailingEdge(now());
}
function debounced() {
var time = now(), isInvoking = shouldInvoke(time);
lastArgs = arguments;
lastThis = this;
lastCallTime = time;
if (isInvoking) {
if (timerId === void 0) {
return leadingEdge(lastCallTime);
}
if (maxing) {
clearTimeout(timerId);
timerId = setTimeout(timerExpired, wait);
return invokeFunc(lastCallTime);
}
}
if (timerId === void 0) {
timerId = setTimeout(timerExpired, wait);
}
return result;
}
debounced.cancel = cancel;
debounced.flush = flush;
return debounced;
}
module.exports = debounce;
}
});
// ../../node_modules/lodash/throttle.js
var require_throttle = __commonJS({
"../../node_modules/lodash/throttle.js"(exports, module) {
"use strict";
init_esm_shims();
var debounce = require_debounce();
var isObject = require_isObject();
var FUNC_ERROR_TEXT = "Expected a function";
function throttle2(func, wait, options) {
var leading = true, trailing = true;
if (typeof func != "function") {
throw new TypeError(FUNC_ERROR_TEXT);
}
if (isObject(options)) {
leading = "leading" in options ? !!options.leading : leading;
trailing = "trailing" in options ? !!options.trailing : trailing;
}
return debounce(func, wait, {
"leading": leading,
"maxWait": wait,
"trailing": trailing
});
}
module.exports = throttle2;
}
});
// ../../node_modules/signal-exit/signals.js
var require_signals = __commonJS({
"../../node_modules/signal-exit/signals.js"(exports, module) {
"use strict";
init_esm_shims();
module.exports = [
"SIGABRT",
"SIGALRM",
"SIGHUP",
"SIGINT",
"SIGTERM"
];
if (process.platform !== "win32") {
module.exports.push(
"SIGVTALRM",
"SIGXCPU",
"SIGXFSZ",
"SIGUSR2",
"SIGTRAP",
"SIGSYS",
"SIGQUIT",
"SIGIOT"
// should detect profiler and enable/disable accordingly.
// see #21
// 'SIGPROF'
);
}
if (process.platform === "linux") {
module.exports.push(
"SIGIO",
"SIGPOLL",
"SIGPWR",
"SIGSTKFLT",
"SIGUNUSED"
);
}
}
});
// ../../node_modules/signal-exit/index.js
var require_signal_exit = __commonJS({
"../../node_modules/signal-exit/index.js"(exports, module) {
"use strict";
init_esm_shims();
var process14 = global.process;
var processOk = function(process15) {
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";
};
if (!processOk(process14)) {
module.exports = function() {
return function() {
};
};
} else {
assert = __require("assert");
signals = require_signals();
isWin = /^win/i.test(process14.platform);
EE = __require("events");
if (typeof EE !== "function") {
EE = EE.EventEmitter;
}
if (process14.__signal_exit_emitter__) {
emitter = process14.__signal_exit_emitter__;
} else {
emitter = process14.__signal_exit_emitter__ = new EE();
emitter.count = 0;
emitter.emitted = {};
}
if (!emitter.infinite) {
emitter.setMaxListeners(Infinity);
emitter.infinite = true;
}
module.exports = function(cb, opts) {
if (!processOk(global.process)) {
return function() {
};
}
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
if (loaded === false) {
load();
}
var ev = "exit";
if (opts && opts.alwaysLast) {
ev = "afterexit";
}
var remove = function() {
emitter.removeListener(ev, cb);
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
unload();
}
};
emitter.on(ev, cb);
return remove;
};
unload = function unload2() {
if (!loaded || !processOk(global.process)) {
return;
}
loaded = false;
signals.forEach(function(sig) {
try {
process14.removeListener(sig, sigListeners[sig]);
} catch (er) {
}
});
process14.emit = originalProcessEmit;
process14.reallyExit = originalProcessReallyExit;
emitter.count -= 1;
};
module.exports.unload = unload;
emit = function emit2(event, code, signal) {
if (emitter.emitted[event]) {
return;
}
emitter.emitted[event] = true;
emitter.emit(event, code, signal);
};
sigListeners = {};
signals.forEach(function(sig) {
sigListeners[sig] = function listener() {
if (!processOk(global.process)) {
return;
}
var listeners = process14.listeners(sig);
if (listeners.length === emitter.count) {
unload();
emit("exit", null, sig);
emit("afterexit", null, sig);
if (isWin && sig === "SIGHUP") {
sig = "SIGINT";
}
process14.kill(process14.pid, sig);
}
};
});
module.exports.signals = function() {
return signals;
};
loaded = false;
load = function load2() {
if (loaded || !processOk(global.process)) {
return;
}
loaded = true;
emitter.count += 1;
signals = signals.filter(function(sig) {
try {
process14.on(sig, sigListeners[sig]);
return true;
} catch (er) {
return false;
}
});
process14.emit = processEmit;
process14.reallyExit = processReallyExit;
};
module.exports.load = load;
originalProcessReallyExit = process14.reallyExit;
processReallyExit = function processReallyExit2(code) {
if (!processOk(global.process)) {
return;
}
process14.exitCode = code || /* istanbul ignore next */
0;
emit("exit", process14.exitCode, null);
emit("afterexit", process14.exitCode, null);
originalProcessReallyExit.call(process14, process14.exitCode);
};
originalProcessEmit = process14.emit;
processEmit = function processEmit2(ev, arg) {
if (ev === "exit" && processOk(global.process)) {
if (arg !== void 0) {
process14.exitCode = arg;
}
var ret = originalProcessEmit.apply(this, arguments);
emit("exit", process14.exitCode, null);
emit("afterexit", process14.exitCode, null);
return ret;
} else {
return originalProcessEmit.apply(this, arguments);
}
};
}
var assert;
var signals;
var isWin;
var EE;
var emitter;
var unload;
var emit;
var sigListeners;
var loaded;
var load;
var originalProcessReallyExit;
var processReallyExit;
var originalProcessEmit;
var processEmit;
}
});
// ../../node_modules/scheduler/cjs/scheduler.production.min.js
var require_scheduler_production_min = __commonJS({
"../../node_modules/scheduler/cjs/scheduler.production.min.js"(exports) {
"use strict";
init_esm_shims();
function f(a, b) {
var c = a.length;
a.push(b);
a: for (; 0 < c; ) {
var d = c - 1 >>> 1, e = a[d];
if (0 < g(e, b)) a[d] = b, a[c] = e, c = d;
else break a;
}
}
function h(a) {
return 0 === a.length ? null : a[0];
}
function k(a) {
if (0 === a.length) return null;
var b = a[0], c = a.pop();
if (c !== b) {
a[0] = c;
a: for (var d = 0, e = a.length, w = e >>> 1; d < w; ) {
var m = 2 * (d + 1) - 1, C = a[m], n = m + 1, x = a[n];
if (0 > g(C, c)) n < e && 0 > g(x, C) ? (a[d] = x, a[n] = c, d = n) : (a[d] = C, a[m] = c, d = m);
else if (n < e && 0 > g(x, c)) a[d] = x, a[n] = c, d = n;
else break a;
}
}
return b;
}
function g(a, b) {
var c = a.sortIndex - b.sortIndex;
return 0 !== c ? c : a.id - b.id;
}
if ("object" === typeof performance && "function" === typeof performance.now) {
l = performance;
exports.unstable_now = function() {
return l.now();
};
} else {
p = Date, q = p.now();
exports.unstable_now = function() {
return p.now() - q;
};
}
var l;
var p;
var q;
var r = [];
var t = [];
var u = 1;
var v = null;
var y = 3;
var z = false;
var A = false;
var B = false;
var D = "function" === typeof setTimeout ? setTimeout : null;
var E2 = "function" === typeof clearTimeout ? clearTimeout : null;
var F = "undefined" !== typeof setImmediate ? setImmediate : null;
"undefined" !== typeof navigator && void 0 !== navigator.scheduling && void 0 !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
function G(a) {
for (var b = h(t); null !== b; ) {
if (null === b.callback) k(t);
else if (b.startTime <= a) k(t), b.sortIndex = b.expirationTime, f(r, b);
else break;
b = h(t);
}
}
function H(a) {
B = false;
G(a);
if (!A) if (null !== h(r)) A = true, I(J);
else {
var b = h(t);
null !== b && K(H, b.startTime - a);
}
}
function J(a, b) {
A = false;
B && (B = false, E2(L), L = -1);
z = true;
var c = y;
try {
G(b);
for (v = h(r); null !== v && (!(v.expirationTime > b) || a && !M()); ) {
var d = v.callback;
if ("function" === typeof d) {
v.callback = null;
y = v.priorityLevel;
var e = d(v.expirationTime <= b);
b = exports.unstable_now();
"function" === typeof e ? v.callback = e : v === h(r) && k(r);
G(b);
} else k(r);
v = h(r);
}
if (null !== v) var w = true;
else {
var m = h(t);
null !== m && K(H, m.startTime - b);
w = false;
}
return w;
} finally {
v = null, y = c, z = false;
}
}
var N = false;
var O = null;
var L = -1;
var P = 5;
var Q = -1;
function M() {
return exports.unstable_now() - Q < P ? false : true;
}
function R() {
if (null !== O) {
var a = exports.unstable_now();
Q = a;
var b = true;
try {
b = O(true, a);
} finally {
b ? S() : (N = false, O = null);
}
} else N = false;
}
var S;
if ("function" === typeof F) S = function() {
F(R);
};
else if ("undefined" !== typeof MessageChannel) {
T = new MessageChannel(), U = T.port2;
T.port1.onmessage = R;
S = function() {
U.postMessage(null);
};
} else S = function() {
D(R, 0);
};
var T;
var U;
function I(a) {
O = a;
N || (N = true, S());
}
function K(a, b) {
L = D(function() {
a(exports.unstable_now());
}, b);
}
exports.unstable_IdlePriority = 5;
exports.unstable_ImmediatePriority = 1;
exports.unstable_LowPriority = 4;
exports.unstable_NormalPriority = 3;
exports.unstable_Profiling = null;
exports.unstable_UserBlockingPriority = 2;
exports.unstable_cancelCallback = function(a) {
a.callback = null;
};
exports.unstable_continueExecution = function() {
A || z || (A = true, I(J));
};
exports.unstable_forceFrameRate = function(a) {
0 > a || 125 < a ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : P = 0 < a ? Math.floor(1e3 / a) : 5;
};
exports.unstable_getCurrentPriorityLevel = function() {
return y;
};
exports.unstable_getFirstCallbackNode = function() {
return h(r);
};
exports.unstable_next = function(a) {
switch (y) {
case 1:
case 2:
case 3:
var b = 3;
break;
default:
b = y;
}
var c = y;
y = b;
try {
return a();
} finally {
y = c;
}
};
exports.unstable_pauseExecution = function() {
};
exports.unstable_requestPaint = function() {
};
exports.unstable_runWithPriority = function(a, b) {
switch (a) {
case 1:
case 2:
case 3:
case 4:
case 5:
break;
default:
a = 3;
}
var c = y;
y = a;
try {
return b();
} finally {
y = c;
}
};
exports.unstable_scheduleCallback = function(a, b, c) {
var d = exports.unstable_now();
"object" === typeof c && null !== c ? (c = c.delay, c = "number" === typeof c && 0 < c ? d + c : d) : c = d;
switch (a) {
case 1:
var e = -1;
break;
case 2:
e = 250;
break;
case 5:
e = 1073741823;
break;
case 4:
e = 1e4;
break;
default:
e = 5e3;
}
e = c + e;
a = { id: u++, callback: b, priorityLevel: a, startTime: c, expirationTime: e, sortIndex: -1 };
c > d ? (a.sortIndex = c, f(t, a), null === h(r) && a === h(t) && (B ? (E2(L), L = -1) : B = true, K(H, c - d))) : (a.sortIndex = e, f(r, a), A || z || (A = true, I(J)));
return a;
};
exports.unstable_shouldYield = M;
exports.unstable_wrapCallback = function(a) {
var b = y;
return function() {
var c = y;
y = b;
try {
return a.apply(this, arguments);
} finally {
y = c;
}
};
};
}
});
// ../../node_modules/scheduler/index.js
var require_scheduler = __commonJS({
"../../node_modules/scheduler/index.js"(exports, module) {
"use strict";
init_esm_shims();
if (true) {
module.exports = require_scheduler_production_min();
} else {
module.exports = null;
}
}
});
// ../../node_modules/react-reconciler/cjs/react-reconciler.production.min.js
var require_react_reconciler_production_min = __commonJS({
"../../node_modules/react-reconciler/cjs/react-reconciler.production.min.js"(exports, module) {
"use strict";
init_esm_shims();
module.exports = function $$$reconciler($$$hostConfig) {
var exports2 = {};
"use strict";
var aa = require_react(), ba = require_scheduler(), ca = Object.assign;
function m(a) {
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
}
var da = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ea = Symbol.for("react.element"), fa = Symbol.for("react.portal"), ha = Symbol.for("react.fragment"), ia = Symbol.for("react.strict_mode"), ja = Symbol.for("react.profiler"), ka = Symbol.for("react.provider"), la = Symbol.for("react.context"), ma = Symbol.for("react.forward_ref"), na = Symbol.for("react.suspense"), oa = Symbol.for("react.suspense_list"), pa = Symbol.for("react.memo"), qa = Symbol.for("react.lazy");
Symbol.for("react.scope");
Symbol.for("react.debug_trace_mode");
var ra = Symbol.for("react.offscreen");
Symbol.for("react.legacy_hidden");
Symbol.for("react.cache");
Symbol.for("react.tracing_marker");
var sa = Symbol.iterator;
function ta(a) {
if (null === a || "object" !== typeof a) return null;
a = sa && a[sa] || a["@@iterator"];
return "function" === typeof a ? a : null;
}
function ua(a) {
if (null == a) return null;
if ("function" === typeof a) return a.displayName || a.name || null;
if ("string" === typeof a) return a;
switch (a) {
case ha:
return "Fragment";
case fa:
return "Portal";
case ja:
return "Profiler";
case ia:
return "StrictMode";
case na:
return "Suspense";
case oa:
return "SuspenseList";
}
if ("object" === typeof a) switch (a.$$typeof) {
case la:
return (a.displayName || "Context") + ".Consumer";
case ka:
return (a._context.displayName || "Context") + ".Provider";
case ma:
var b = a.render;
a = a.displayName;
a || (a = b.displayName || b.name || "", a = "" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
return a;
case pa:
return b = a.displayName || null, null !== b ? b : ua(a.type) || "Memo";
case qa:
b = a._payload;
a = a._init;
try {
return ua(a(b));
} catch (c) {
}
}
return null;
}
function va(a) {
var b = a.type;
switch (a.tag) {
case 24:
return "Cache";
case 9:
return (b.displayName || "Context") + ".Consumer";
case 10:
return (b._context.displayName || "Context") + ".Provider";
case 18:
return "DehydratedFragment";
case 11:
return a = b.render, a = a.displayName || a.name || "", b.displayName || ("" !== a ? "ForwardRef(" + a + ")" : "ForwardRef");
case 7:
return "Fragment";
case 5:
return b;
case 4:
return "Portal";
case 3:
return "Root";
case 6:
return "Text";
case 16:
return ua(b);
case 8:
return b === ia ? "StrictMode" : "Mode";
case 22:
return "Offscreen";
case 12:
return "Profiler";
case 21:
return "Scope";
case 13:
return "Suspense";
case 19:
return "SuspenseList";
case 25:
return "TracingMarker";
case 1:
case 0:
case 17:
case 2:
case 14:
case 15:
if ("function" === typeof b) return b.displayName || b.name || null;
if ("string" === typeof b) return b;
}
return null;
}
function wa(a) {
var b = a, c = a;
if (a.alternate) for (; b.return; ) b = b.return;
else {
a = b;
do
b = a, 0 !== (b.flags & 4098) && (c = b.return), a = b.return;
while (a);
}
return 3 === b.tag ? c : null;
}
function xa(a) {
if (wa(a) !== a) throw Error(m(188));
}
function ya(a) {
var b = a.alternate;
if (!b) {
b = wa(a);
if (null === b) throw Error(m(188));
return b !== a ? null : a;
}
for (var c = a, d = b; ; ) {
var e = c.return;
if (null === e) break;
var f = e.alternate;
if (null === f) {
d = e.return;
if (null !== d) {
c = d;
continue;
}
break;
}
if (e.child === f.child) {
for (f = e.child; f; ) {
if (f === c) return xa(e), a;
if (f === d) return xa(e), b;
f = f.sibling;
}
throw Error(m(188));
}
if (c.return !== d.return) c = e, d = f;
else {
for (var g = false, h = e.child; h; ) {
if (h === c) {
g = true;
c = e;
d = f;
break;
}
if (h === d) {
g = true;
d = e;
c = f;
break;
}
h = h.sibling;
}
if (!g) {
for (h = f.child; h; ) {
if (h === c) {
g = true;
c = f;
d = e;
break;
}
if (h === d) {
g = true;
d = f;
c = e;
break;
}
h = h.sibling;
}
if (!g) throw Error(m(189));
}
}
if (c.alternate !== d) throw Error(m(190));
}
if (3 !== c.tag) throw Error(m(188));
return c.stateNode.current === c ? a : b;
}
function Aa(a) {
a = ya(a);
return null !== a ? Ba(a) : null;
}
function Ba(a) {
if (5 === a.tag || 6 === a.tag) return a;
for (a = a.child; null !== a; ) {
var b = Ba(a);
if (null !== b) return b;
a = a.sibling;
}
return null;
}
function Ca(a) {
if (5 === a.tag || 6 === a.tag) return a;
for (a = a.child; null !== a; ) {
if (4 !== a.tag) {
var b = Ca(a);
if (null !== b) return b;
}
a = a.sibling;
}
return null;
}
var Da = Array.isArray, Ea = $$$hostConfig.getPublicInstance, Fa = $$$hostConfig.getRootHostContext, Ga = $$$hostConfig.getChildHostContext, Ha = $$$hostConfig.prepareForCommit, Ia = $$$hostConfig.resetAfterCommit, Ja = $$$hostConfig.createInstance, Ka = $$$hostConfig.appendInitialChild, La = $$$hostConfig.finalizeInitialChildren, Ma = $$$hostConfig.prepareUpdate, Na = $$$hostConfig.shouldSetTextContent, Oa = $$$hostConfig.createTextInstance, Pa = $$$hostConfig.scheduleTimeout, Qa = $$$hostConfig.cancelTimeout, Ra = $$$hostConfig.noTimeout, Sa = $$$hostConfig.isPrimaryRenderer, Ta = $$$hostConfig.supportsMutation, Ua = $$$hostConfig.supportsPersistence, Va = $$$hostConfig.supportsHydration, Wa = $$$hostConfig.getInstanceFromNode, Xa = $$$hostConfig.preparePortalMount, Ya = $$$hostConfig.getCurrentEventPriority, Za = $$$hostConfig.detachDeletedInstance, $a = $$$hostConfig.supportsMicrotasks, ab = $$$hostConfig.scheduleMicrotask, bb = $$$hostConfig.supportsTestSelectors, cb = $$$hostConfig.findFiberRoot, db = $$$hostConfig.getBoundingRect, eb = $$$hostConfig.getTextContent, fb = $$$hostConfig.isHiddenSubtree, gb = $$$hostConfig.matchAccessibilityRole, hb = $$$hostConfig.setFocusIfFocusable, ib = $$$hostConfig.setupIntersectionObserver, jb = $$$hostConfig.appendChild, kb = $$$hostConfig.appendChildToContainer, lb = $$$hostConfig.commitTextUpdate, mb = $$$hostConfig.commitMount, nb = $$$hostConfig.commitUpdate, ob = $$$hostConfig.insertBefore, pb = $$$hostConfig.insertInContainerBefore, qb = $$$hostConfig.removeChild, rb = $$$hostConfig.removeChildFromContainer, sb = $$$hostConfig.resetTextContent, tb = $$$hostConfig.hideInstance, ub = $$$hostConfig.hideTextInstance, vb = $$$hostConfig.unhideInstance, wb = $$$hostConfig.unhideTextInstance, xb = $$$hostConfig.clearContainer, yb = $$$hostConfig.cloneInstance, zb = $$$hostConfig.createContainerChildSet, Ab = $$$hostConfig.appendChildToContainerChildSet, Bb = $$$hostConfig.finalizeContainerChildren, Cb = $$$hostConfig.replaceContainerChildren, Eb = $$$hostConfig.cloneHiddenInstance, Fb = $$$hostConfig.cloneHiddenTextInstance, Gb = $$$hostConfig.canHydrateInstance, Hb = $$$hostConfig.canHydrateTextInstance, Ib = $$$hostConfig.canHydrateSuspenseInstance, Jb = $$$hostConfig.isSuspenseInstancePending, Kb = $$$hostConfig.isSuspenseInstanceFallback, Lb = $$$hostConfig.getSuspenseInstanceFallbackErrorDetails, Mb = $$$hostConfig.registerSuspenseInstanceRetry, Nb = $$$hostConfig.getNextHydratableSibling, Ob = $$$hostConfig.getFirstHydratableChild, Pb = $$$hostConfig.getFirstHydratableChildWithinContainer, Qb = $$$hostConfig.getFirstHydratableChildWithinSuspenseInstance, Rb = $$$hostConfig.hydrateInstance, Sb = $$$hostConfig.hydrateTextInstance, Tb = $$$hostConfig.hydrateSuspenseInstance, Ub = $$$hostConfig.getNextHydratableInstanceAfterSuspenseInstance, Vb = $$$hostConfig.commitHydratedContainer, Wb = $$$hostConfig.commitHydratedSuspenseInstance, Xb = $$$hostConfig.clearSuspenseBoundary, Yb = $$$hostConfig.clearSuspenseBoundaryFromContainer, Zb = $$$hostConfig.shouldDeleteUnhydratedTailInstances, $b = $$$hostConfig.didNotMatchHydratedContainerTextInstance, ac = $$$hostConfig.didNotMatchHydratedTextInstance, bc;
function cc(a) {
if (void 0 === bc) try {
throw Error();
} catch (c) {
var b = c.stack.trim().match(/\n( *(at )?)/);
bc = b && b[1] || "";
}
return "\n" + bc + a;
}
var dc = false;
function ec(a, b) {
if (!a || dc) return "";
dc = true;
var c = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
try {
if (b) if (b = function() {
throw Error();
}, Object.defineProperty(b.prototype, "props", { set: function() {
throw Error();
} }), "object" === typeof Reflect && Reflect.construct) {
try {
Reflect.construct(b, []);
} catch (l) {
var d = l;
}
Reflect.construct(a, [], b);
} else {
try {
b.call();
} catch (l) {
d = l;
}
a.call(b.prototype);
}
else {
try {
throw Error();
} catch (l) {
d = l;
}
a();
}
} catch (l) {
if (l && d && "string" === typeof l.stack) {
for (var e = l.stack.split("\n"), f = d.stack.split("\n"), g = e.length - 1, h = f.length - 1; 1 <= g && 0 <= h && e[g] !== f[h]; ) h--;
for (; 1 <= g && 0 <= h; g--, h--) if (e[g] !== f[h]) {
if (1 !== g || 1 !== h) {
do
if (g--, h--, 0 > h || e[g] !== f[h]) {
var k = "\n" + e[g].replace(" at new ", " at ");
a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName));
return k;
}
while (1 <= g && 0 <= h);
}
break;
}
}
} finally {
dc = false, Error.prepareStackTrace = c;
}
return (a = a ? a.displayName || a.name : "") ? cc(a) : "";
}
var fc = Object.prototype.hasOwnProperty, gc = [], hc = -1;
function ic(a) {
return { current: a };
}
function q(a) {
0 > hc || (a.current = gc[hc], gc[hc] = null, hc--);
}
function v(a, b) {
hc++;
gc[hc] = a.current;
a.current = b;
}
var jc = {}, x = ic(jc), z = ic(false), kc = jc;
function lc(a, b) {
var c = a.type.contextTypes;
if (!c) return jc;
var d = a.stateNode;
if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
var e = {}, f;
for (f in c) e[f] = b[f];
d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);
return e;
}
function A(a) {
a = a.childContextTypes;
return null !== a && void 0 !== a;
}
function mc() {
q(z);
q(x);
}
function nc(a, b, c) {
if (x.current !== jc) throw Error(m(168));
v(x, b);
v(z, c);
}
function oc(a, b, c) {
var d = a.stateNode;
b = b.childContextTypes;
if ("function" !== typeof d.getChildContext) return c;
d = d.getChildContext();
for (var e in d) if (!(e in b)) throw Error(m(108, va(a) || "Unknown", e));
return ca({}, c, d);
}
function pc(a) {
a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || jc;
kc = x.current;
v(x, a);
v(z, z.current);
return true;
}
function rc(a, b, c) {
var d = a.stateNode;
if (!d) throw Error(m(169));
c ? (a = oc(a, b, kc), d.__reactInternalMemoizedMergedChildContext = a, q(z), q(x), v(x, a)) : q(z);
v(z, c);
}
var tc = Math.clz32 ? Math.clz32 : sc, uc = Math.log, vc = Math.LN2;
function sc(a) {
a >>>= 0;
return 0 === a ? 32 : 31 - (uc(a) / vc | 0) | 0;
}
var wc = 64, xc = 4194304;
function yc(a) {
switch (a & -a) {
case 1:
return 1;
case 2:
return 2;
case 4:
return 4;
case 8:
return 8;
case 16:
return 16;
case 32:
return 32;
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return a & 4194240;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return a & 130023424;
case 134217728:
return 134217728;
case 268435456:
return 268435456;
case 536870912:
return 536870912;
case 1073741824:
return 1073741824;
default:
return a;
}
}
function zc(a, b) {
var c = a.pendingLanes;
if (0 === c) return 0;
var d = 0, e = a.suspendedLanes, f = a.pingedLanes, g = c & 268435455;
if (0 !== g) {
var h = g & ~e;
0 !== h ? d = yc(h) : (f &= g, 0 !== f && (d = yc(f)));
} else g = c & ~e, 0 !== g ? d = yc(g) : 0 !== f && (d = yc(f));
if (0 === d) return 0;
if (0 !== b && b !== d && 0 === (b & e) && (e = d & -d, f = b & -b, e >= f || 16 === e && 0 !== (f & 4194240))) return b;
0 !== (d & 4) && (d |= c & 16);
b = a.entangledLanes;
if (0 !== b) for (a = a.entanglements, b &= d; 0 < b; ) c = 31 - tc(b), e = 1 << c, d |= a[c], b &= ~e;
return d;
}
function Ac(a, b) {
switch (a) {
case 1:
case 2:
case 4:
return b + 250;
case 8:
case 16:
case 32:
case 64:
case 128:
case 256:
case 512:
case 1024:
case 2048:
case 4096:
case 8192:
case 16384:
case 32768:
case 65536:
case 131072:
case 262144:
case 524288:
case 1048576:
case 2097152:
return b + 5e3;
case 4194304:
case 8388608:
case 16777216:
case 33554432:
case 67108864:
return -1;
case 134217728:
case 268435456:
case 536870912:
case 1073741824:
return -1;
default:
return -1;
}
}
function Bc(a, b) {
for (var c = a.suspendedLanes, d = a.pingedLanes, e = a.expirationTimes, f = a.pendingLanes; 0 < f; ) {
var g = 31 - tc(f), h = 1 << g, k = e[g];
if (-1 === k) {
if (0 === (h & c) || 0 !== (h & d)) e[g] = Ac(h, b);
} else k <= b && (a.expiredLanes |= h);
f &= ~h;
}
}
function Cc(a) {
a = a.pendingLanes & -1073741825;
return 0 !== a ? a : a & 1073741824 ? 1073741824 : 0;
}
function Dc() {
var a = wc;
wc <<= 1;
0 === (wc & 4194240) && (wc = 64);
return a;
}
function Ec(a) {
for (var b = [], c = 0; 31 > c; c++) b.push(a);
return b;
}
function Fc(a, b, c) {
a.pendingLanes |= b;
536870912 !== b && (a.suspendedLanes = 0, a.pingedLanes = 0);
a = a.eventTimes;
b = 31 - tc(b);
a[b] = c;
}
function Gc(a, b) {
var c = a.pendingLanes & ~b;
a.pendingLanes = b;
a.suspendedLanes = 0;
a.pingedLanes = 0;
a.expiredLanes &= b;
a.mutableReadLanes &= b;
a.entangledLanes &= b;
b = a.entanglements;
var d = a.eventTimes;
for (a = a.expirationTimes; 0 < c; ) {
var e = 31 - tc(c), f = 1 << e;
b[e] = 0;
d[e] = -1;
a[e] = -1;
c &= ~f;
}
}
function Hc(a, b) {
var c = a.entangledLanes |= b;
for (a = a.entanglements; c; ) {
var d = 31 - tc(c), e = 1 << d;
e & b | a[d] & b && (a[d] |= b);
c &= ~e;
}
}
var C = 0;
function Ic(a) {
a &= -a;
return 1 < a ? 4 < a ? 0 !== (a & 268435455) ? 16 : 536870912 : 4 : 1;
}
var Jc = ba.unstable_scheduleCallback, Kc = ba.unstable_cancelCallback, Lc = ba.unstable_shouldYield, Mc = ba.unstable_requestPaint, D = ba.unstable_now, Nc = ba.unstable_ImmediatePriority, Oc = ba.unstable_UserBlockingPriority, Pc = ba.unstable_NormalPriority, Qc = ba.unstable_IdlePriority, Rc = null, Sc = null;
function Tc(a) {
if (Sc && "function" === typeof Sc.onCommitFiberRoot) try {
Sc.onCommitFiberRoot(Rc, a, void 0, 128 === (a.current.flags & 128));
} catch (b) {
}
}
function Uc(a, b) {
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
}
var Vc = "function" === typeof Object.is ? Object.is : Uc, Wc = null, Xc = false, Yc = false;
function Zc(a) {
null === Wc ? Wc = [a] : Wc.push(a);
}
function $c(a) {
Xc = true;
Zc(a);
}
function ad() {
if (!Yc && null !== Wc) {
Yc = true;
var a = 0, b = C;
try {
var c = Wc;
for (C = 1; a < c.length; a++) {
var d = c[a];
do
d = d(true);
while (null !== d);
}
Wc = null;
Xc = false;
} catch (e) {
throw null !== Wc && (Wc = Wc.slice(a + 1)), Jc(Nc, ad), e;
} finally {
C = b, Yc = false;
}
}
return null;
}
var bd = [], cd = 0, dd = null, ed = 0, fd = [], gd = 0, hd = null, id = 1, jd = "";
function kd(a, b) {
bd[cd++] = ed;
bd[cd++] = dd;
dd = a;
ed = b;
}
function ld(a, b, c) {
fd[gd++] = id;
fd[gd++] = jd;
fd[gd++] = hd;
hd = a;
var d = id;
a = jd;
var e = 32 - tc(d) - 1;
d &= ~(1 << e);
c += 1;
var f = 32 - tc(b) + e;
if (30 < f) {
var g = e - e % 5;
f = (d & (1 << g) - 1).toString(32);
d >>= g;
e -= g;
id = 1 << 32 - tc(b) + e | c << e | d;
jd = f + a;
} else id = 1 << f | c << e | d, jd = a;
}
function md(a) {
null !== a.return && (kd(a, 1), ld(a, 1, 0));
}
function nd(a) {
for (; a === dd; ) dd = bd[--cd], bd[cd] = null, ed = bd[--cd], bd[cd] = null;
for (; a === hd; ) hd = fd[--gd], fd[gd] = null, jd = fd[--gd], fd[gd] = null, id = fd[--gd], fd[gd] = null;
}
var od = null, pd = null, F = false, qd = false, rd = null;
function sd(a, b) {
var c = td(5, null, null, 0);
c.elementType = "DELETED";
c.stateNode = b;
c.return = a;
b = a.deletions;
null === b ? (a.deletions = [c], a.flags |= 16) : b.push(c);
}
function ud(a, b) {
switch (a.tag) {
case 5:
return b = Gb(b, a.type, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = Ob(b), true) : false;
case 6:
return b = Hb(b, a.pendingProps), null !== b ? (a.stateNode = b, od = a, pd = null, true) : false;
case 13:
b = Ib(b);
if (null !== b) {
var c = null !== hd ? { id, overflow: jd } : null;
a.memoizedState = { dehydrated: b, treeContext: c, retryLane: 1073741824 };
c = td(18, null, null, 0);
c.stateNode = b;
c.return = a;
a.child = c;
od = a;
pd = null;
return true;
}
return false;
default:
return false;
}
}
function vd(a) {
return 0 !== (a.mode & 1) && 0 === (a.flags & 128);
}
function wd(a) {
if (F) {
var b = pd;
if (b) {
var c = b;
if (!ud(a, b)) {
if (vd(a)) throw Error(m(418));
b = Nb(c);
var d = od;
b && ud(a, b) ? sd(d, c) : (a.flags = a.flags & -4097 | 2, F = false, od = a);
}
} else {
if (vd(a)) throw Error(m(418));
a.flags = a.flags & -4097 | 2;
F = false;
od = a;
}
}
}
function xd(a) {
for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag; ) a = a.return;
od = a;
}
function yd(a) {
if (!Va || a !== od) return false;
if (!F) return xd(a), F = true, false;
if (3 !== a.tag && (5 !== a.tag || Zb(a.type) && !Na(a.type, a.memoizedProps))) {
var b = pd;
if (b) {
if (vd(a)) throw zd(), Error(m(418));
for (; b; ) sd(a, b), b = Nb(b);
}
}
xd(a);
if (13 === a.tag) {
if (!Va) throw Error(m(316));
a = a.memoizedState;
a = null !== a ? a.dehydrated : null;
if (!a) throw Error(m(317));
pd = Ub(a);
} else pd = od ? Nb(a.stateNode) : null;
return true;
}
function zd() {
for (var a = pd; a; ) a = Nb(a);
}
function Ad() {
Va && (pd = od = null, qd = F = false);
}
function Bd(a) {
null === rd ? rd = [a] : rd.push(a);
}
var Cd = da.ReactCurrentBatchConfig;
function Dd(a, b) {
if (Vc(a, b)) return true;
if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return false;
var c = Object.keys(a), d = Object.keys(b);
if (c.length !== d.length) return false;
for (d = 0; d < c.length; d++) {
var e = c[d];
if (!fc.call(b, e) || !Vc(a[e], b[e])) return false;
}
return true;
}
function Ed(a) {
switch (a.tag) {
case 5:
return cc(a.type);
case 16:
return cc("Lazy");
case 13:
return cc("Suspense");
case 19:
return cc("SuspenseList");
case 0:
case 2:
case 15:
return a = ec(a.type, false), a;
case 11:
return a = ec(a.type.render, fal