@letta-ai/letta-code 0.1.17 → 0.1.19
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/letta.js +1312 -1232
- package/package.json +1 -1
package/letta.js
CHANGED
|
@@ -3031,6 +3031,15 @@ var init_letta_client = __esm(() => {
|
|
|
3031
3031
|
});
|
|
3032
3032
|
|
|
3033
3033
|
// src/auth/oauth.ts
|
|
3034
|
+
var exports_oauth = {};
|
|
3035
|
+
__export(exports_oauth, {
|
|
3036
|
+
validateCredentials: () => validateCredentials,
|
|
3037
|
+
revokeToken: () => revokeToken,
|
|
3038
|
+
requestDeviceCode: () => requestDeviceCode,
|
|
3039
|
+
refreshAccessToken: () => refreshAccessToken,
|
|
3040
|
+
pollForToken: () => pollForToken,
|
|
3041
|
+
OAUTH_CONFIG: () => OAUTH_CONFIG
|
|
3042
|
+
});
|
|
3034
3043
|
async function requestDeviceCode() {
|
|
3035
3044
|
const response = await fetch(`${OAUTH_CONFIG.authBaseUrl}/api/oauth/device/code`, {
|
|
3036
3045
|
method: "POST",
|
|
@@ -3096,7 +3105,8 @@ async function refreshAccessToken(refreshToken) {
|
|
|
3096
3105
|
body: JSON.stringify({
|
|
3097
3106
|
grant_type: "refresh_token",
|
|
3098
3107
|
client_id: OAUTH_CONFIG.clientId,
|
|
3099
|
-
refresh_token: refreshToken
|
|
3108
|
+
refresh_token: refreshToken,
|
|
3109
|
+
refresh_token_mode: "new"
|
|
3100
3110
|
})
|
|
3101
3111
|
});
|
|
3102
3112
|
if (!response.ok) {
|
|
@@ -3105,6 +3115,34 @@ async function refreshAccessToken(refreshToken) {
|
|
|
3105
3115
|
}
|
|
3106
3116
|
return await response.json();
|
|
3107
3117
|
}
|
|
3118
|
+
async function revokeToken(refreshToken) {
|
|
3119
|
+
try {
|
|
3120
|
+
const response = await fetch(`${OAUTH_CONFIG.authBaseUrl}/api/oauth/revoke`, {
|
|
3121
|
+
method: "POST",
|
|
3122
|
+
headers: { "Content-Type": "application/json" },
|
|
3123
|
+
body: JSON.stringify({
|
|
3124
|
+
client_id: OAUTH_CONFIG.clientId,
|
|
3125
|
+
token: refreshToken,
|
|
3126
|
+
token_type_hint: "refresh_token"
|
|
3127
|
+
})
|
|
3128
|
+
});
|
|
3129
|
+
if (!response.ok) {
|
|
3130
|
+
const error = await response.json();
|
|
3131
|
+
console.error(`Warning: Failed to revoke token: ${error.error_description || error.error}`);
|
|
3132
|
+
}
|
|
3133
|
+
} catch (error) {
|
|
3134
|
+
console.error("Warning: Failed to revoke token:", error);
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
async function validateCredentials(baseUrl, apiKey) {
|
|
3138
|
+
try {
|
|
3139
|
+
const client = new Letta({ apiKey, baseURL: baseUrl });
|
|
3140
|
+
await client.agents.list({ limit: 1 });
|
|
3141
|
+
return true;
|
|
3142
|
+
} catch {
|
|
3143
|
+
return false;
|
|
3144
|
+
}
|
|
3145
|
+
}
|
|
3108
3146
|
var OAUTH_CONFIG;
|
|
3109
3147
|
var init_oauth = __esm(() => {
|
|
3110
3148
|
init_letta_client();
|
|
@@ -6677,7 +6715,7 @@ var package_default;
|
|
|
6677
6715
|
var init_package = __esm(() => {
|
|
6678
6716
|
package_default = {
|
|
6679
6717
|
name: "@letta-ai/letta-code",
|
|
6680
|
-
version: "0.1.
|
|
6718
|
+
version: "0.1.19",
|
|
6681
6719
|
description: "Letta Code is a CLI tool for interacting with stateful Letta agents from the terminal.",
|
|
6682
6720
|
type: "module",
|
|
6683
6721
|
bin: {
|
|
@@ -31868,9 +31906,10 @@ var init_setup = __esm(async () => {
|
|
|
31868
31906
|
});
|
|
31869
31907
|
|
|
31870
31908
|
// src/auth/oauth.ts
|
|
31871
|
-
var
|
|
31872
|
-
__export(
|
|
31873
|
-
validateCredentials: () =>
|
|
31909
|
+
var exports_oauth2 = {};
|
|
31910
|
+
__export(exports_oauth2, {
|
|
31911
|
+
validateCredentials: () => validateCredentials2,
|
|
31912
|
+
revokeToken: () => revokeToken2,
|
|
31874
31913
|
requestDeviceCode: () => requestDeviceCode2,
|
|
31875
31914
|
refreshAccessToken: () => refreshAccessToken2,
|
|
31876
31915
|
pollForToken: () => pollForToken2,
|
|
@@ -31941,7 +31980,8 @@ async function refreshAccessToken2(refreshToken) {
|
|
|
31941
31980
|
body: JSON.stringify({
|
|
31942
31981
|
grant_type: "refresh_token",
|
|
31943
31982
|
client_id: OAUTH_CONFIG2.clientId,
|
|
31944
|
-
refresh_token: refreshToken
|
|
31983
|
+
refresh_token: refreshToken,
|
|
31984
|
+
refresh_token_mode: "new"
|
|
31945
31985
|
})
|
|
31946
31986
|
});
|
|
31947
31987
|
if (!response.ok) {
|
|
@@ -31950,7 +31990,26 @@ async function refreshAccessToken2(refreshToken) {
|
|
|
31950
31990
|
}
|
|
31951
31991
|
return await response.json();
|
|
31952
31992
|
}
|
|
31953
|
-
async function
|
|
31993
|
+
async function revokeToken2(refreshToken) {
|
|
31994
|
+
try {
|
|
31995
|
+
const response = await fetch(`${OAUTH_CONFIG2.authBaseUrl}/api/oauth/revoke`, {
|
|
31996
|
+
method: "POST",
|
|
31997
|
+
headers: { "Content-Type": "application/json" },
|
|
31998
|
+
body: JSON.stringify({
|
|
31999
|
+
client_id: OAUTH_CONFIG2.clientId,
|
|
32000
|
+
token: refreshToken,
|
|
32001
|
+
token_type_hint: "refresh_token"
|
|
32002
|
+
})
|
|
32003
|
+
});
|
|
32004
|
+
if (!response.ok) {
|
|
32005
|
+
const error = await response.json();
|
|
32006
|
+
console.error(`Warning: Failed to revoke token: ${error.error_description || error.error}`);
|
|
32007
|
+
}
|
|
32008
|
+
} catch (error) {
|
|
32009
|
+
console.error("Warning: Failed to revoke token:", error);
|
|
32010
|
+
}
|
|
32011
|
+
}
|
|
32012
|
+
async function validateCredentials2(baseUrl, apiKey) {
|
|
31954
32013
|
try {
|
|
31955
32014
|
const client = new Letta({ apiKey, baseURL: baseUrl });
|
|
31956
32015
|
await client.agents.list({ limit: 1 });
|
|
@@ -35659,6 +35718,11 @@ async function drainStream(stream, buffers, refresh, abortSignal) {
|
|
|
35659
35718
|
let stopReason = null;
|
|
35660
35719
|
let lastRunId = null;
|
|
35661
35720
|
let lastSeqId = null;
|
|
35721
|
+
const resetToolState = () => {
|
|
35722
|
+
toolCallId = null;
|
|
35723
|
+
toolName = null;
|
|
35724
|
+
toolArgs = null;
|
|
35725
|
+
};
|
|
35662
35726
|
for await (const chunk of stream) {
|
|
35663
35727
|
if (abortSignal?.aborted) {
|
|
35664
35728
|
stopReason = "cancelled";
|
|
@@ -35672,6 +35736,9 @@ async function drainStream(stream, buffers, refresh, abortSignal) {
|
|
|
35672
35736
|
}
|
|
35673
35737
|
if (chunk.message_type === "ping")
|
|
35674
35738
|
continue;
|
|
35739
|
+
if (chunk.message_type === "tool_return_message") {
|
|
35740
|
+
resetToolState();
|
|
35741
|
+
}
|
|
35675
35742
|
if (chunk.message_type === "approval_request_message") {
|
|
35676
35743
|
approvalRequestId = chunk.id;
|
|
35677
35744
|
}
|
|
@@ -35679,8 +35746,7 @@ async function drainStream(stream, buffers, refresh, abortSignal) {
|
|
|
35679
35746
|
const toolCall = chunk.tool_call || (Array.isArray(chunk.tool_calls) && chunk.tool_calls.length > 0 ? chunk.tool_calls[0] : null);
|
|
35680
35747
|
if (toolCall?.tool_call_id) {
|
|
35681
35748
|
if (toolCallId && toolCall.tool_call_id !== toolCallId) {
|
|
35682
|
-
|
|
35683
|
-
toolArgs = null;
|
|
35749
|
+
resetToolState();
|
|
35684
35750
|
}
|
|
35685
35751
|
toolCallId = toolCall.tool_call_id;
|
|
35686
35752
|
}
|
|
@@ -35709,11 +35775,25 @@ async function drainStream(stream, buffers, refresh, abortSignal) {
|
|
|
35709
35775
|
}
|
|
35710
35776
|
markCurrentLineAsFinished(buffers);
|
|
35711
35777
|
queueMicrotask(refresh);
|
|
35712
|
-
|
|
35713
|
-
|
|
35714
|
-
toolName
|
|
35715
|
-
|
|
35716
|
-
|
|
35778
|
+
let approval = null;
|
|
35779
|
+
if (stopReason === "requires_approval") {
|
|
35780
|
+
if (!toolCallId || !toolName || !toolArgs || !approvalRequestId) {
|
|
35781
|
+
console.error("[drainStream] Incomplete approval state at end of turn:", {
|
|
35782
|
+
hasToolCallId: !!toolCallId,
|
|
35783
|
+
hasToolName: !!toolName,
|
|
35784
|
+
hasToolArgs: !!toolArgs,
|
|
35785
|
+
hasApprovalRequestId: !!approvalRequestId
|
|
35786
|
+
});
|
|
35787
|
+
} else {
|
|
35788
|
+
approval = {
|
|
35789
|
+
toolCallId,
|
|
35790
|
+
toolName,
|
|
35791
|
+
toolArgs
|
|
35792
|
+
};
|
|
35793
|
+
}
|
|
35794
|
+
resetToolState();
|
|
35795
|
+
approvalRequestId = null;
|
|
35796
|
+
}
|
|
35717
35797
|
const apiDurationMs = performance.now() - startTime;
|
|
35718
35798
|
return { stopReason, approval, lastRunId, lastSeqId, apiDurationMs };
|
|
35719
35799
|
}
|
|
@@ -39216,1183 +39296,6 @@ var init_ErrorMessageRich = __esm(async () => {
|
|
|
39216
39296
|
ErrorMessage.displayName = "ErrorMessage";
|
|
39217
39297
|
});
|
|
39218
39298
|
|
|
39219
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
39220
|
-
var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
39221
|
-
var React12 = __toESM(require_react(), 1);
|
|
39222
|
-
if (true) {
|
|
39223
|
-
(function() {
|
|
39224
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
39225
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
39226
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
39227
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
39228
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
39229
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
39230
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
39231
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
39232
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
39233
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
39234
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
39235
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
39236
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
39237
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
39238
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
39239
|
-
function getIteratorFn(maybeIterable) {
|
|
39240
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
39241
|
-
return null;
|
|
39242
|
-
}
|
|
39243
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
39244
|
-
if (typeof maybeIterator === "function") {
|
|
39245
|
-
return maybeIterator;
|
|
39246
|
-
}
|
|
39247
|
-
return null;
|
|
39248
|
-
}
|
|
39249
|
-
var ReactSharedInternals = React12.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
39250
|
-
function error(format) {
|
|
39251
|
-
{
|
|
39252
|
-
{
|
|
39253
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
|
|
39254
|
-
args[_key2 - 1] = arguments[_key2];
|
|
39255
|
-
}
|
|
39256
|
-
printWarning("error", format, args);
|
|
39257
|
-
}
|
|
39258
|
-
}
|
|
39259
|
-
}
|
|
39260
|
-
function printWarning(level, format, args) {
|
|
39261
|
-
{
|
|
39262
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
39263
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
39264
|
-
if (stack !== "") {
|
|
39265
|
-
format += "%s";
|
|
39266
|
-
args = args.concat([stack]);
|
|
39267
|
-
}
|
|
39268
|
-
var argsWithFormat = args.map(function(item) {
|
|
39269
|
-
return String(item);
|
|
39270
|
-
});
|
|
39271
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
39272
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
39273
|
-
}
|
|
39274
|
-
}
|
|
39275
|
-
var enableScopeAPI = false;
|
|
39276
|
-
var enableCacheElement = false;
|
|
39277
|
-
var enableTransitionTracing = false;
|
|
39278
|
-
var enableLegacyHidden = false;
|
|
39279
|
-
var enableDebugTracing = false;
|
|
39280
|
-
var REACT_MODULE_REFERENCE;
|
|
39281
|
-
{
|
|
39282
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
39283
|
-
}
|
|
39284
|
-
function isValidElementType(type) {
|
|
39285
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
39286
|
-
return true;
|
|
39287
|
-
}
|
|
39288
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
39289
|
-
return true;
|
|
39290
|
-
}
|
|
39291
|
-
if (typeof type === "object" && type !== null) {
|
|
39292
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
39293
|
-
return true;
|
|
39294
|
-
}
|
|
39295
|
-
}
|
|
39296
|
-
return false;
|
|
39297
|
-
}
|
|
39298
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
39299
|
-
var displayName = outerType.displayName;
|
|
39300
|
-
if (displayName) {
|
|
39301
|
-
return displayName;
|
|
39302
|
-
}
|
|
39303
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
39304
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
39305
|
-
}
|
|
39306
|
-
function getContextName(type) {
|
|
39307
|
-
return type.displayName || "Context";
|
|
39308
|
-
}
|
|
39309
|
-
function getComponentNameFromType(type) {
|
|
39310
|
-
if (type == null) {
|
|
39311
|
-
return null;
|
|
39312
|
-
}
|
|
39313
|
-
{
|
|
39314
|
-
if (typeof type.tag === "number") {
|
|
39315
|
-
error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue.");
|
|
39316
|
-
}
|
|
39317
|
-
}
|
|
39318
|
-
if (typeof type === "function") {
|
|
39319
|
-
return type.displayName || type.name || null;
|
|
39320
|
-
}
|
|
39321
|
-
if (typeof type === "string") {
|
|
39322
|
-
return type;
|
|
39323
|
-
}
|
|
39324
|
-
switch (type) {
|
|
39325
|
-
case REACT_FRAGMENT_TYPE:
|
|
39326
|
-
return "Fragment";
|
|
39327
|
-
case REACT_PORTAL_TYPE:
|
|
39328
|
-
return "Portal";
|
|
39329
|
-
case REACT_PROFILER_TYPE:
|
|
39330
|
-
return "Profiler";
|
|
39331
|
-
case REACT_STRICT_MODE_TYPE:
|
|
39332
|
-
return "StrictMode";
|
|
39333
|
-
case REACT_SUSPENSE_TYPE:
|
|
39334
|
-
return "Suspense";
|
|
39335
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
39336
|
-
return "SuspenseList";
|
|
39337
|
-
}
|
|
39338
|
-
if (typeof type === "object") {
|
|
39339
|
-
switch (type.$$typeof) {
|
|
39340
|
-
case REACT_CONTEXT_TYPE:
|
|
39341
|
-
var context = type;
|
|
39342
|
-
return getContextName(context) + ".Consumer";
|
|
39343
|
-
case REACT_PROVIDER_TYPE:
|
|
39344
|
-
var provider = type;
|
|
39345
|
-
return getContextName(provider._context) + ".Provider";
|
|
39346
|
-
case REACT_FORWARD_REF_TYPE:
|
|
39347
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
39348
|
-
case REACT_MEMO_TYPE:
|
|
39349
|
-
var outerName = type.displayName || null;
|
|
39350
|
-
if (outerName !== null) {
|
|
39351
|
-
return outerName;
|
|
39352
|
-
}
|
|
39353
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
39354
|
-
case REACT_LAZY_TYPE: {
|
|
39355
|
-
var lazyComponent = type;
|
|
39356
|
-
var payload = lazyComponent._payload;
|
|
39357
|
-
var init = lazyComponent._init;
|
|
39358
|
-
try {
|
|
39359
|
-
return getComponentNameFromType(init(payload));
|
|
39360
|
-
} catch (x) {
|
|
39361
|
-
return null;
|
|
39362
|
-
}
|
|
39363
|
-
}
|
|
39364
|
-
}
|
|
39365
|
-
}
|
|
39366
|
-
return null;
|
|
39367
|
-
}
|
|
39368
|
-
var assign = Object.assign;
|
|
39369
|
-
var disabledDepth = 0;
|
|
39370
|
-
var prevLog;
|
|
39371
|
-
var prevInfo;
|
|
39372
|
-
var prevWarn;
|
|
39373
|
-
var prevError;
|
|
39374
|
-
var prevGroup;
|
|
39375
|
-
var prevGroupCollapsed;
|
|
39376
|
-
var prevGroupEnd;
|
|
39377
|
-
function disabledLog() {}
|
|
39378
|
-
disabledLog.__reactDisabledLog = true;
|
|
39379
|
-
function disableLogs() {
|
|
39380
|
-
{
|
|
39381
|
-
if (disabledDepth === 0) {
|
|
39382
|
-
prevLog = console.log;
|
|
39383
|
-
prevInfo = console.info;
|
|
39384
|
-
prevWarn = console.warn;
|
|
39385
|
-
prevError = console.error;
|
|
39386
|
-
prevGroup = console.group;
|
|
39387
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
39388
|
-
prevGroupEnd = console.groupEnd;
|
|
39389
|
-
var props = {
|
|
39390
|
-
configurable: true,
|
|
39391
|
-
enumerable: true,
|
|
39392
|
-
value: disabledLog,
|
|
39393
|
-
writable: true
|
|
39394
|
-
};
|
|
39395
|
-
Object.defineProperties(console, {
|
|
39396
|
-
info: props,
|
|
39397
|
-
log: props,
|
|
39398
|
-
warn: props,
|
|
39399
|
-
error: props,
|
|
39400
|
-
group: props,
|
|
39401
|
-
groupCollapsed: props,
|
|
39402
|
-
groupEnd: props
|
|
39403
|
-
});
|
|
39404
|
-
}
|
|
39405
|
-
disabledDepth++;
|
|
39406
|
-
}
|
|
39407
|
-
}
|
|
39408
|
-
function reenableLogs() {
|
|
39409
|
-
{
|
|
39410
|
-
disabledDepth--;
|
|
39411
|
-
if (disabledDepth === 0) {
|
|
39412
|
-
var props = {
|
|
39413
|
-
configurable: true,
|
|
39414
|
-
enumerable: true,
|
|
39415
|
-
writable: true
|
|
39416
|
-
};
|
|
39417
|
-
Object.defineProperties(console, {
|
|
39418
|
-
log: assign({}, props, {
|
|
39419
|
-
value: prevLog
|
|
39420
|
-
}),
|
|
39421
|
-
info: assign({}, props, {
|
|
39422
|
-
value: prevInfo
|
|
39423
|
-
}),
|
|
39424
|
-
warn: assign({}, props, {
|
|
39425
|
-
value: prevWarn
|
|
39426
|
-
}),
|
|
39427
|
-
error: assign({}, props, {
|
|
39428
|
-
value: prevError
|
|
39429
|
-
}),
|
|
39430
|
-
group: assign({}, props, {
|
|
39431
|
-
value: prevGroup
|
|
39432
|
-
}),
|
|
39433
|
-
groupCollapsed: assign({}, props, {
|
|
39434
|
-
value: prevGroupCollapsed
|
|
39435
|
-
}),
|
|
39436
|
-
groupEnd: assign({}, props, {
|
|
39437
|
-
value: prevGroupEnd
|
|
39438
|
-
})
|
|
39439
|
-
});
|
|
39440
|
-
}
|
|
39441
|
-
if (disabledDepth < 0) {
|
|
39442
|
-
error("disabledDepth fell below zero. " + "This is a bug in React. Please file an issue.");
|
|
39443
|
-
}
|
|
39444
|
-
}
|
|
39445
|
-
}
|
|
39446
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
39447
|
-
var prefix;
|
|
39448
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
39449
|
-
{
|
|
39450
|
-
if (prefix === undefined) {
|
|
39451
|
-
try {
|
|
39452
|
-
throw Error();
|
|
39453
|
-
} catch (x) {
|
|
39454
|
-
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
39455
|
-
prefix = match2 && match2[1] || "";
|
|
39456
|
-
}
|
|
39457
|
-
}
|
|
39458
|
-
return `
|
|
39459
|
-
` + prefix + name;
|
|
39460
|
-
}
|
|
39461
|
-
}
|
|
39462
|
-
var reentry = false;
|
|
39463
|
-
var componentFrameCache;
|
|
39464
|
-
{
|
|
39465
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
39466
|
-
componentFrameCache = new PossiblyWeakMap;
|
|
39467
|
-
}
|
|
39468
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
39469
|
-
if (!fn || reentry) {
|
|
39470
|
-
return "";
|
|
39471
|
-
}
|
|
39472
|
-
{
|
|
39473
|
-
var frame = componentFrameCache.get(fn);
|
|
39474
|
-
if (frame !== undefined) {
|
|
39475
|
-
return frame;
|
|
39476
|
-
}
|
|
39477
|
-
}
|
|
39478
|
-
var control;
|
|
39479
|
-
reentry = true;
|
|
39480
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
39481
|
-
Error.prepareStackTrace = undefined;
|
|
39482
|
-
var previousDispatcher;
|
|
39483
|
-
{
|
|
39484
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
39485
|
-
ReactCurrentDispatcher.current = null;
|
|
39486
|
-
disableLogs();
|
|
39487
|
-
}
|
|
39488
|
-
try {
|
|
39489
|
-
if (construct) {
|
|
39490
|
-
var Fake = function() {
|
|
39491
|
-
throw Error();
|
|
39492
|
-
};
|
|
39493
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
39494
|
-
set: function() {
|
|
39495
|
-
throw Error();
|
|
39496
|
-
}
|
|
39497
|
-
});
|
|
39498
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
39499
|
-
try {
|
|
39500
|
-
Reflect.construct(Fake, []);
|
|
39501
|
-
} catch (x) {
|
|
39502
|
-
control = x;
|
|
39503
|
-
}
|
|
39504
|
-
Reflect.construct(fn, [], Fake);
|
|
39505
|
-
} else {
|
|
39506
|
-
try {
|
|
39507
|
-
Fake.call();
|
|
39508
|
-
} catch (x) {
|
|
39509
|
-
control = x;
|
|
39510
|
-
}
|
|
39511
|
-
fn.call(Fake.prototype);
|
|
39512
|
-
}
|
|
39513
|
-
} else {
|
|
39514
|
-
try {
|
|
39515
|
-
throw Error();
|
|
39516
|
-
} catch (x) {
|
|
39517
|
-
control = x;
|
|
39518
|
-
}
|
|
39519
|
-
fn();
|
|
39520
|
-
}
|
|
39521
|
-
} catch (sample) {
|
|
39522
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
39523
|
-
var sampleLines = sample.stack.split(`
|
|
39524
|
-
`);
|
|
39525
|
-
var controlLines = control.stack.split(`
|
|
39526
|
-
`);
|
|
39527
|
-
var s = sampleLines.length - 1;
|
|
39528
|
-
var c = controlLines.length - 1;
|
|
39529
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
39530
|
-
c--;
|
|
39531
|
-
}
|
|
39532
|
-
for (;s >= 1 && c >= 0; s--, c--) {
|
|
39533
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
39534
|
-
if (s !== 1 || c !== 1) {
|
|
39535
|
-
do {
|
|
39536
|
-
s--;
|
|
39537
|
-
c--;
|
|
39538
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
39539
|
-
var _frame = `
|
|
39540
|
-
` + sampleLines[s].replace(" at new ", " at ");
|
|
39541
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
39542
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
39543
|
-
}
|
|
39544
|
-
{
|
|
39545
|
-
if (typeof fn === "function") {
|
|
39546
|
-
componentFrameCache.set(fn, _frame);
|
|
39547
|
-
}
|
|
39548
|
-
}
|
|
39549
|
-
return _frame;
|
|
39550
|
-
}
|
|
39551
|
-
} while (s >= 1 && c >= 0);
|
|
39552
|
-
}
|
|
39553
|
-
break;
|
|
39554
|
-
}
|
|
39555
|
-
}
|
|
39556
|
-
}
|
|
39557
|
-
} finally {
|
|
39558
|
-
reentry = false;
|
|
39559
|
-
{
|
|
39560
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
39561
|
-
reenableLogs();
|
|
39562
|
-
}
|
|
39563
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
39564
|
-
}
|
|
39565
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
39566
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
39567
|
-
{
|
|
39568
|
-
if (typeof fn === "function") {
|
|
39569
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
39570
|
-
}
|
|
39571
|
-
}
|
|
39572
|
-
return syntheticFrame;
|
|
39573
|
-
}
|
|
39574
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
39575
|
-
{
|
|
39576
|
-
return describeNativeComponentFrame(fn, false);
|
|
39577
|
-
}
|
|
39578
|
-
}
|
|
39579
|
-
function shouldConstruct(Component) {
|
|
39580
|
-
var prototype = Component.prototype;
|
|
39581
|
-
return !!(prototype && prototype.isReactComponent);
|
|
39582
|
-
}
|
|
39583
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
39584
|
-
if (type == null) {
|
|
39585
|
-
return "";
|
|
39586
|
-
}
|
|
39587
|
-
if (typeof type === "function") {
|
|
39588
|
-
{
|
|
39589
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
39590
|
-
}
|
|
39591
|
-
}
|
|
39592
|
-
if (typeof type === "string") {
|
|
39593
|
-
return describeBuiltInComponentFrame(type);
|
|
39594
|
-
}
|
|
39595
|
-
switch (type) {
|
|
39596
|
-
case REACT_SUSPENSE_TYPE:
|
|
39597
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
39598
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
39599
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
39600
|
-
}
|
|
39601
|
-
if (typeof type === "object") {
|
|
39602
|
-
switch (type.$$typeof) {
|
|
39603
|
-
case REACT_FORWARD_REF_TYPE:
|
|
39604
|
-
return describeFunctionComponentFrame(type.render);
|
|
39605
|
-
case REACT_MEMO_TYPE:
|
|
39606
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
39607
|
-
case REACT_LAZY_TYPE: {
|
|
39608
|
-
var lazyComponent = type;
|
|
39609
|
-
var payload = lazyComponent._payload;
|
|
39610
|
-
var init = lazyComponent._init;
|
|
39611
|
-
try {
|
|
39612
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
39613
|
-
} catch (x) {}
|
|
39614
|
-
}
|
|
39615
|
-
}
|
|
39616
|
-
}
|
|
39617
|
-
return "";
|
|
39618
|
-
}
|
|
39619
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
39620
|
-
var loggedTypeFailures = {};
|
|
39621
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
39622
|
-
function setCurrentlyValidatingElement(element) {
|
|
39623
|
-
{
|
|
39624
|
-
if (element) {
|
|
39625
|
-
var owner = element._owner;
|
|
39626
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
39627
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
39628
|
-
} else {
|
|
39629
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
39630
|
-
}
|
|
39631
|
-
}
|
|
39632
|
-
}
|
|
39633
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
39634
|
-
{
|
|
39635
|
-
var has2 = Function.call.bind(hasOwnProperty);
|
|
39636
|
-
for (var typeSpecName in typeSpecs) {
|
|
39637
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
39638
|
-
var error$1 = undefined;
|
|
39639
|
-
try {
|
|
39640
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
39641
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
39642
|
-
err.name = "Invariant Violation";
|
|
39643
|
-
throw err;
|
|
39644
|
-
}
|
|
39645
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
39646
|
-
} catch (ex) {
|
|
39647
|
-
error$1 = ex;
|
|
39648
|
-
}
|
|
39649
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
39650
|
-
setCurrentlyValidatingElement(element);
|
|
39651
|
-
error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
39652
|
-
setCurrentlyValidatingElement(null);
|
|
39653
|
-
}
|
|
39654
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
39655
|
-
loggedTypeFailures[error$1.message] = true;
|
|
39656
|
-
setCurrentlyValidatingElement(element);
|
|
39657
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
39658
|
-
setCurrentlyValidatingElement(null);
|
|
39659
|
-
}
|
|
39660
|
-
}
|
|
39661
|
-
}
|
|
39662
|
-
}
|
|
39663
|
-
}
|
|
39664
|
-
var isArrayImpl = Array.isArray;
|
|
39665
|
-
function isArray2(a) {
|
|
39666
|
-
return isArrayImpl(a);
|
|
39667
|
-
}
|
|
39668
|
-
function typeName(value) {
|
|
39669
|
-
{
|
|
39670
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
39671
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
39672
|
-
return type;
|
|
39673
|
-
}
|
|
39674
|
-
}
|
|
39675
|
-
function willCoercionThrow(value) {
|
|
39676
|
-
{
|
|
39677
|
-
try {
|
|
39678
|
-
testStringCoercion(value);
|
|
39679
|
-
return false;
|
|
39680
|
-
} catch (e) {
|
|
39681
|
-
return true;
|
|
39682
|
-
}
|
|
39683
|
-
}
|
|
39684
|
-
}
|
|
39685
|
-
function testStringCoercion(value) {
|
|
39686
|
-
return "" + value;
|
|
39687
|
-
}
|
|
39688
|
-
function checkKeyStringCoercion(value) {
|
|
39689
|
-
{
|
|
39690
|
-
if (willCoercionThrow(value)) {
|
|
39691
|
-
error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value));
|
|
39692
|
-
return testStringCoercion(value);
|
|
39693
|
-
}
|
|
39694
|
-
}
|
|
39695
|
-
}
|
|
39696
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
39697
|
-
var RESERVED_PROPS = {
|
|
39698
|
-
key: true,
|
|
39699
|
-
ref: true,
|
|
39700
|
-
__self: true,
|
|
39701
|
-
__source: true
|
|
39702
|
-
};
|
|
39703
|
-
var specialPropKeyWarningShown;
|
|
39704
|
-
var specialPropRefWarningShown;
|
|
39705
|
-
var didWarnAboutStringRefs;
|
|
39706
|
-
{
|
|
39707
|
-
didWarnAboutStringRefs = {};
|
|
39708
|
-
}
|
|
39709
|
-
function hasValidRef(config) {
|
|
39710
|
-
{
|
|
39711
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
39712
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
39713
|
-
if (getter && getter.isReactWarning) {
|
|
39714
|
-
return false;
|
|
39715
|
-
}
|
|
39716
|
-
}
|
|
39717
|
-
}
|
|
39718
|
-
return config.ref !== undefined;
|
|
39719
|
-
}
|
|
39720
|
-
function hasValidKey(config) {
|
|
39721
|
-
{
|
|
39722
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
39723
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
39724
|
-
if (getter && getter.isReactWarning) {
|
|
39725
|
-
return false;
|
|
39726
|
-
}
|
|
39727
|
-
}
|
|
39728
|
-
}
|
|
39729
|
-
return config.key !== undefined;
|
|
39730
|
-
}
|
|
39731
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
39732
|
-
{
|
|
39733
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
39734
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
39735
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
39736
|
-
error('Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
39737
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
39738
|
-
}
|
|
39739
|
-
}
|
|
39740
|
-
}
|
|
39741
|
-
}
|
|
39742
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
39743
|
-
{
|
|
39744
|
-
var warnAboutAccessingKey = function() {
|
|
39745
|
-
if (!specialPropKeyWarningShown) {
|
|
39746
|
-
specialPropKeyWarningShown = true;
|
|
39747
|
-
error("%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
|
|
39748
|
-
}
|
|
39749
|
-
};
|
|
39750
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
39751
|
-
Object.defineProperty(props, "key", {
|
|
39752
|
-
get: warnAboutAccessingKey,
|
|
39753
|
-
configurable: true
|
|
39754
|
-
});
|
|
39755
|
-
}
|
|
39756
|
-
}
|
|
39757
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
39758
|
-
{
|
|
39759
|
-
var warnAboutAccessingRef = function() {
|
|
39760
|
-
if (!specialPropRefWarningShown) {
|
|
39761
|
-
specialPropRefWarningShown = true;
|
|
39762
|
-
error("%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
|
|
39763
|
-
}
|
|
39764
|
-
};
|
|
39765
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
39766
|
-
Object.defineProperty(props, "ref", {
|
|
39767
|
-
get: warnAboutAccessingRef,
|
|
39768
|
-
configurable: true
|
|
39769
|
-
});
|
|
39770
|
-
}
|
|
39771
|
-
}
|
|
39772
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
39773
|
-
var element = {
|
|
39774
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
39775
|
-
type,
|
|
39776
|
-
key,
|
|
39777
|
-
ref,
|
|
39778
|
-
props,
|
|
39779
|
-
_owner: owner
|
|
39780
|
-
};
|
|
39781
|
-
{
|
|
39782
|
-
element._store = {};
|
|
39783
|
-
Object.defineProperty(element._store, "validated", {
|
|
39784
|
-
configurable: false,
|
|
39785
|
-
enumerable: false,
|
|
39786
|
-
writable: true,
|
|
39787
|
-
value: false
|
|
39788
|
-
});
|
|
39789
|
-
Object.defineProperty(element, "_self", {
|
|
39790
|
-
configurable: false,
|
|
39791
|
-
enumerable: false,
|
|
39792
|
-
writable: false,
|
|
39793
|
-
value: self
|
|
39794
|
-
});
|
|
39795
|
-
Object.defineProperty(element, "_source", {
|
|
39796
|
-
configurable: false,
|
|
39797
|
-
enumerable: false,
|
|
39798
|
-
writable: false,
|
|
39799
|
-
value: source
|
|
39800
|
-
});
|
|
39801
|
-
if (Object.freeze) {
|
|
39802
|
-
Object.freeze(element.props);
|
|
39803
|
-
Object.freeze(element);
|
|
39804
|
-
}
|
|
39805
|
-
}
|
|
39806
|
-
return element;
|
|
39807
|
-
};
|
|
39808
|
-
function jsxDEV11(type, config, maybeKey, source, self) {
|
|
39809
|
-
{
|
|
39810
|
-
var propName;
|
|
39811
|
-
var props = {};
|
|
39812
|
-
var key = null;
|
|
39813
|
-
var ref = null;
|
|
39814
|
-
if (maybeKey !== undefined) {
|
|
39815
|
-
{
|
|
39816
|
-
checkKeyStringCoercion(maybeKey);
|
|
39817
|
-
}
|
|
39818
|
-
key = "" + maybeKey;
|
|
39819
|
-
}
|
|
39820
|
-
if (hasValidKey(config)) {
|
|
39821
|
-
{
|
|
39822
|
-
checkKeyStringCoercion(config.key);
|
|
39823
|
-
}
|
|
39824
|
-
key = "" + config.key;
|
|
39825
|
-
}
|
|
39826
|
-
if (hasValidRef(config)) {
|
|
39827
|
-
ref = config.ref;
|
|
39828
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
39829
|
-
}
|
|
39830
|
-
for (propName in config) {
|
|
39831
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
39832
|
-
props[propName] = config[propName];
|
|
39833
|
-
}
|
|
39834
|
-
}
|
|
39835
|
-
if (type && type.defaultProps) {
|
|
39836
|
-
var defaultProps = type.defaultProps;
|
|
39837
|
-
for (propName in defaultProps) {
|
|
39838
|
-
if (props[propName] === undefined) {
|
|
39839
|
-
props[propName] = defaultProps[propName];
|
|
39840
|
-
}
|
|
39841
|
-
}
|
|
39842
|
-
}
|
|
39843
|
-
if (key || ref) {
|
|
39844
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
39845
|
-
if (key) {
|
|
39846
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
39847
|
-
}
|
|
39848
|
-
if (ref) {
|
|
39849
|
-
defineRefPropWarningGetter(props, displayName);
|
|
39850
|
-
}
|
|
39851
|
-
}
|
|
39852
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
39853
|
-
}
|
|
39854
|
-
}
|
|
39855
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
39856
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
39857
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
39858
|
-
{
|
|
39859
|
-
if (element) {
|
|
39860
|
-
var owner = element._owner;
|
|
39861
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
39862
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
39863
|
-
} else {
|
|
39864
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
39865
|
-
}
|
|
39866
|
-
}
|
|
39867
|
-
}
|
|
39868
|
-
var propTypesMisspellWarningShown;
|
|
39869
|
-
{
|
|
39870
|
-
propTypesMisspellWarningShown = false;
|
|
39871
|
-
}
|
|
39872
|
-
function isValidElement(object) {
|
|
39873
|
-
{
|
|
39874
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
39875
|
-
}
|
|
39876
|
-
}
|
|
39877
|
-
function getDeclarationErrorAddendum() {
|
|
39878
|
-
{
|
|
39879
|
-
if (ReactCurrentOwner$1.current) {
|
|
39880
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
39881
|
-
if (name) {
|
|
39882
|
-
return `
|
|
39883
|
-
|
|
39884
|
-
Check the render method of \`` + name + "`.";
|
|
39885
|
-
}
|
|
39886
|
-
}
|
|
39887
|
-
return "";
|
|
39888
|
-
}
|
|
39889
|
-
}
|
|
39890
|
-
function getSourceInfoErrorAddendum(source) {
|
|
39891
|
-
{
|
|
39892
|
-
if (source !== undefined) {
|
|
39893
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
39894
|
-
var lineNumber = source.lineNumber;
|
|
39895
|
-
return `
|
|
39896
|
-
|
|
39897
|
-
Check your code at ` + fileName + ":" + lineNumber + ".";
|
|
39898
|
-
}
|
|
39899
|
-
return "";
|
|
39900
|
-
}
|
|
39901
|
-
}
|
|
39902
|
-
var ownerHasKeyUseWarning = {};
|
|
39903
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
39904
|
-
{
|
|
39905
|
-
var info = getDeclarationErrorAddendum();
|
|
39906
|
-
if (!info) {
|
|
39907
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
39908
|
-
if (parentName) {
|
|
39909
|
-
info = `
|
|
39910
|
-
|
|
39911
|
-
Check the top-level render call using <` + parentName + ">.";
|
|
39912
|
-
}
|
|
39913
|
-
}
|
|
39914
|
-
return info;
|
|
39915
|
-
}
|
|
39916
|
-
}
|
|
39917
|
-
function validateExplicitKey(element, parentType) {
|
|
39918
|
-
{
|
|
39919
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
39920
|
-
return;
|
|
39921
|
-
}
|
|
39922
|
-
element._store.validated = true;
|
|
39923
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
39924
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
39925
|
-
return;
|
|
39926
|
-
}
|
|
39927
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
39928
|
-
var childOwner = "";
|
|
39929
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
39930
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
39931
|
-
}
|
|
39932
|
-
setCurrentlyValidatingElement$1(element);
|
|
39933
|
-
error('Each child in a list should have a unique "key" prop.' + "%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
|
|
39934
|
-
setCurrentlyValidatingElement$1(null);
|
|
39935
|
-
}
|
|
39936
|
-
}
|
|
39937
|
-
function validateChildKeys(node, parentType) {
|
|
39938
|
-
{
|
|
39939
|
-
if (typeof node !== "object") {
|
|
39940
|
-
return;
|
|
39941
|
-
}
|
|
39942
|
-
if (isArray2(node)) {
|
|
39943
|
-
for (var i = 0;i < node.length; i++) {
|
|
39944
|
-
var child = node[i];
|
|
39945
|
-
if (isValidElement(child)) {
|
|
39946
|
-
validateExplicitKey(child, parentType);
|
|
39947
|
-
}
|
|
39948
|
-
}
|
|
39949
|
-
} else if (isValidElement(node)) {
|
|
39950
|
-
if (node._store) {
|
|
39951
|
-
node._store.validated = true;
|
|
39952
|
-
}
|
|
39953
|
-
} else if (node) {
|
|
39954
|
-
var iteratorFn = getIteratorFn(node);
|
|
39955
|
-
if (typeof iteratorFn === "function") {
|
|
39956
|
-
if (iteratorFn !== node.entries) {
|
|
39957
|
-
var iterator = iteratorFn.call(node);
|
|
39958
|
-
var step;
|
|
39959
|
-
while (!(step = iterator.next()).done) {
|
|
39960
|
-
if (isValidElement(step.value)) {
|
|
39961
|
-
validateExplicitKey(step.value, parentType);
|
|
39962
|
-
}
|
|
39963
|
-
}
|
|
39964
|
-
}
|
|
39965
|
-
}
|
|
39966
|
-
}
|
|
39967
|
-
}
|
|
39968
|
-
}
|
|
39969
|
-
function validatePropTypes(element) {
|
|
39970
|
-
{
|
|
39971
|
-
var type = element.type;
|
|
39972
|
-
if (type === null || type === undefined || typeof type === "string") {
|
|
39973
|
-
return;
|
|
39974
|
-
}
|
|
39975
|
-
var propTypes;
|
|
39976
|
-
if (typeof type === "function") {
|
|
39977
|
-
propTypes = type.propTypes;
|
|
39978
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
|
|
39979
|
-
propTypes = type.propTypes;
|
|
39980
|
-
} else {
|
|
39981
|
-
return;
|
|
39982
|
-
}
|
|
39983
|
-
if (propTypes) {
|
|
39984
|
-
var name = getComponentNameFromType(type);
|
|
39985
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
39986
|
-
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
39987
|
-
propTypesMisspellWarningShown = true;
|
|
39988
|
-
var _name = getComponentNameFromType(type);
|
|
39989
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
39990
|
-
}
|
|
39991
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
39992
|
-
error("getDefaultProps is only used on classic React.createClass " + "definitions. Use a static property named `defaultProps` instead.");
|
|
39993
|
-
}
|
|
39994
|
-
}
|
|
39995
|
-
}
|
|
39996
|
-
function validateFragmentProps(fragment) {
|
|
39997
|
-
{
|
|
39998
|
-
var keys = Object.keys(fragment.props);
|
|
39999
|
-
for (var i = 0;i < keys.length; i++) {
|
|
40000
|
-
var key = keys[i];
|
|
40001
|
-
if (key !== "children" && key !== "key") {
|
|
40002
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
40003
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. " + "React.Fragment can only have `key` and `children` props.", key);
|
|
40004
|
-
setCurrentlyValidatingElement$1(null);
|
|
40005
|
-
break;
|
|
40006
|
-
}
|
|
40007
|
-
}
|
|
40008
|
-
if (fragment.ref !== null) {
|
|
40009
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
40010
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
40011
|
-
setCurrentlyValidatingElement$1(null);
|
|
40012
|
-
}
|
|
40013
|
-
}
|
|
40014
|
-
}
|
|
40015
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
40016
|
-
{
|
|
40017
|
-
var validType = isValidElementType(type);
|
|
40018
|
-
if (!validType) {
|
|
40019
|
-
var info = "";
|
|
40020
|
-
if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
40021
|
-
info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and named imports.";
|
|
40022
|
-
}
|
|
40023
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
40024
|
-
if (sourceInfo) {
|
|
40025
|
-
info += sourceInfo;
|
|
40026
|
-
} else {
|
|
40027
|
-
info += getDeclarationErrorAddendum();
|
|
40028
|
-
}
|
|
40029
|
-
var typeString;
|
|
40030
|
-
if (type === null) {
|
|
40031
|
-
typeString = "null";
|
|
40032
|
-
} else if (isArray2(type)) {
|
|
40033
|
-
typeString = "array";
|
|
40034
|
-
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
40035
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
40036
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
40037
|
-
} else {
|
|
40038
|
-
typeString = typeof type;
|
|
40039
|
-
}
|
|
40040
|
-
error("React.jsx: type is invalid -- expected a string (for " + "built-in components) or a class/function (for composite " + "components) but got: %s.%s", typeString, info);
|
|
40041
|
-
}
|
|
40042
|
-
var element = jsxDEV11(type, props, key, source, self);
|
|
40043
|
-
if (element == null) {
|
|
40044
|
-
return element;
|
|
40045
|
-
}
|
|
40046
|
-
if (validType) {
|
|
40047
|
-
var children = props.children;
|
|
40048
|
-
if (children !== undefined) {
|
|
40049
|
-
if (isStaticChildren) {
|
|
40050
|
-
if (isArray2(children)) {
|
|
40051
|
-
for (var i = 0;i < children.length; i++) {
|
|
40052
|
-
validateChildKeys(children[i], type);
|
|
40053
|
-
}
|
|
40054
|
-
if (Object.freeze) {
|
|
40055
|
-
Object.freeze(children);
|
|
40056
|
-
}
|
|
40057
|
-
} else {
|
|
40058
|
-
error("React.jsx: Static children should always be an array. " + "You are likely explicitly calling React.jsxs or React.jsxDEV. " + "Use the Babel transform instead.");
|
|
40059
|
-
}
|
|
40060
|
-
} else {
|
|
40061
|
-
validateChildKeys(children, type);
|
|
40062
|
-
}
|
|
40063
|
-
}
|
|
40064
|
-
}
|
|
40065
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
40066
|
-
validateFragmentProps(element);
|
|
40067
|
-
} else {
|
|
40068
|
-
validatePropTypes(element);
|
|
40069
|
-
}
|
|
40070
|
-
return element;
|
|
40071
|
-
}
|
|
40072
|
-
}
|
|
40073
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
40074
|
-
{
|
|
40075
|
-
return jsxWithValidation(type, props, key, true);
|
|
40076
|
-
}
|
|
40077
|
-
}
|
|
40078
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
40079
|
-
{
|
|
40080
|
-
return jsxWithValidation(type, props, key, false);
|
|
40081
|
-
}
|
|
40082
|
-
}
|
|
40083
|
-
var jsx = jsxWithValidationDynamic;
|
|
40084
|
-
var jsxs = jsxWithValidationStatic;
|
|
40085
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
40086
|
-
exports.jsx = jsx;
|
|
40087
|
-
exports.jsxs = jsxs;
|
|
40088
|
-
})();
|
|
40089
|
-
}
|
|
40090
|
-
});
|
|
40091
|
-
|
|
40092
|
-
// node_modules/react/jsx-runtime.js
|
|
40093
|
-
var require_jsx_runtime = __commonJS((exports, module) => {
|
|
40094
|
-
var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development(), 1);
|
|
40095
|
-
if (false) {} else {
|
|
40096
|
-
module.exports = react_jsx_runtime_development;
|
|
40097
|
-
}
|
|
40098
|
-
});
|
|
40099
|
-
|
|
40100
|
-
// node_modules/supports-color/index.js
|
|
40101
|
-
import process19 from "node:process";
|
|
40102
|
-
import os3 from "node:os";
|
|
40103
|
-
import tty2 from "node:tty";
|
|
40104
|
-
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process19.argv) {
|
|
40105
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
40106
|
-
const position = argv.indexOf(prefix + flag);
|
|
40107
|
-
const terminatorPosition = argv.indexOf("--");
|
|
40108
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
40109
|
-
}
|
|
40110
|
-
function envForceColor2() {
|
|
40111
|
-
if (!("FORCE_COLOR" in env3)) {
|
|
40112
|
-
return;
|
|
40113
|
-
}
|
|
40114
|
-
if (env3.FORCE_COLOR === "true") {
|
|
40115
|
-
return 1;
|
|
40116
|
-
}
|
|
40117
|
-
if (env3.FORCE_COLOR === "false") {
|
|
40118
|
-
return 0;
|
|
40119
|
-
}
|
|
40120
|
-
if (env3.FORCE_COLOR.length === 0) {
|
|
40121
|
-
return 1;
|
|
40122
|
-
}
|
|
40123
|
-
const level = Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
40124
|
-
if (![0, 1, 2, 3].includes(level)) {
|
|
40125
|
-
return;
|
|
40126
|
-
}
|
|
40127
|
-
return level;
|
|
40128
|
-
}
|
|
40129
|
-
function translateLevel2(level) {
|
|
40130
|
-
if (level === 0) {
|
|
40131
|
-
return false;
|
|
40132
|
-
}
|
|
40133
|
-
return {
|
|
40134
|
-
level,
|
|
40135
|
-
hasBasic: true,
|
|
40136
|
-
has256: level >= 2,
|
|
40137
|
-
has16m: level >= 3
|
|
40138
|
-
};
|
|
40139
|
-
}
|
|
40140
|
-
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
40141
|
-
const noFlagForceColor = envForceColor2();
|
|
40142
|
-
if (noFlagForceColor !== undefined) {
|
|
40143
|
-
flagForceColor2 = noFlagForceColor;
|
|
40144
|
-
}
|
|
40145
|
-
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
40146
|
-
if (forceColor === 0) {
|
|
40147
|
-
return 0;
|
|
40148
|
-
}
|
|
40149
|
-
if (sniffFlags) {
|
|
40150
|
-
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
40151
|
-
return 3;
|
|
40152
|
-
}
|
|
40153
|
-
if (hasFlag2("color=256")) {
|
|
40154
|
-
return 2;
|
|
40155
|
-
}
|
|
40156
|
-
}
|
|
40157
|
-
if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
|
|
40158
|
-
return 1;
|
|
40159
|
-
}
|
|
40160
|
-
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
40161
|
-
return 0;
|
|
40162
|
-
}
|
|
40163
|
-
const min = forceColor || 0;
|
|
40164
|
-
if (env3.TERM === "dumb") {
|
|
40165
|
-
return min;
|
|
40166
|
-
}
|
|
40167
|
-
if (process19.platform === "win32") {
|
|
40168
|
-
const osRelease = os3.release().split(".");
|
|
40169
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
40170
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
40171
|
-
}
|
|
40172
|
-
return 1;
|
|
40173
|
-
}
|
|
40174
|
-
if ("CI" in env3) {
|
|
40175
|
-
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env3))) {
|
|
40176
|
-
return 3;
|
|
40177
|
-
}
|
|
40178
|
-
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env3)) || env3.CI_NAME === "codeship") {
|
|
40179
|
-
return 1;
|
|
40180
|
-
}
|
|
40181
|
-
return min;
|
|
40182
|
-
}
|
|
40183
|
-
if ("TEAMCITY_VERSION" in env3) {
|
|
40184
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
40185
|
-
}
|
|
40186
|
-
if (env3.COLORTERM === "truecolor") {
|
|
40187
|
-
return 3;
|
|
40188
|
-
}
|
|
40189
|
-
if (env3.TERM === "xterm-kitty") {
|
|
40190
|
-
return 3;
|
|
40191
|
-
}
|
|
40192
|
-
if (env3.TERM === "xterm-ghostty") {
|
|
40193
|
-
return 3;
|
|
40194
|
-
}
|
|
40195
|
-
if (env3.TERM === "wezterm") {
|
|
40196
|
-
return 3;
|
|
40197
|
-
}
|
|
40198
|
-
if ("TERM_PROGRAM" in env3) {
|
|
40199
|
-
const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
40200
|
-
switch (env3.TERM_PROGRAM) {
|
|
40201
|
-
case "iTerm.app": {
|
|
40202
|
-
return version >= 3 ? 3 : 2;
|
|
40203
|
-
}
|
|
40204
|
-
case "Apple_Terminal": {
|
|
40205
|
-
return 2;
|
|
40206
|
-
}
|
|
40207
|
-
}
|
|
40208
|
-
}
|
|
40209
|
-
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
40210
|
-
return 2;
|
|
40211
|
-
}
|
|
40212
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
40213
|
-
return 1;
|
|
40214
|
-
}
|
|
40215
|
-
if ("COLORTERM" in env3) {
|
|
40216
|
-
return 1;
|
|
40217
|
-
}
|
|
40218
|
-
return min;
|
|
40219
|
-
}
|
|
40220
|
-
function createSupportsColor2(stream, options = {}) {
|
|
40221
|
-
const level = _supportsColor2(stream, {
|
|
40222
|
-
streamIsTTY: stream && stream.isTTY,
|
|
40223
|
-
...options
|
|
40224
|
-
});
|
|
40225
|
-
return translateLevel2(level);
|
|
40226
|
-
}
|
|
40227
|
-
var env3, flagForceColor2, supportsColor2;
|
|
40228
|
-
var init_supports_color2 = __esm(() => {
|
|
40229
|
-
({ env: env3 } = process19);
|
|
40230
|
-
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
40231
|
-
flagForceColor2 = 0;
|
|
40232
|
-
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
40233
|
-
flagForceColor2 = 1;
|
|
40234
|
-
}
|
|
40235
|
-
supportsColor2 = {
|
|
40236
|
-
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
40237
|
-
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
40238
|
-
};
|
|
40239
|
-
});
|
|
40240
|
-
|
|
40241
|
-
// node_modules/has-flag/index.js
|
|
40242
|
-
import process20 from "process";
|
|
40243
|
-
function hasFlag3(flag, argv = process20.argv) {
|
|
40244
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
40245
|
-
const position = argv.indexOf(prefix + flag);
|
|
40246
|
-
const terminatorPosition = argv.indexOf("--");
|
|
40247
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
40248
|
-
}
|
|
40249
|
-
var init_has_flag = () => {};
|
|
40250
|
-
|
|
40251
|
-
// node_modules/supports-hyperlinks/index.js
|
|
40252
|
-
import process21 from "node:process";
|
|
40253
|
-
function parseVersion(versionString = "") {
|
|
40254
|
-
if (/^\d{3,4}$/.test(versionString)) {
|
|
40255
|
-
const match2 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
|
|
40256
|
-
return {
|
|
40257
|
-
major: 0,
|
|
40258
|
-
minor: Number.parseInt(match2[1], 10),
|
|
40259
|
-
patch: Number.parseInt(match2[2], 10)
|
|
40260
|
-
};
|
|
40261
|
-
}
|
|
40262
|
-
const versions = (versionString ?? "").split(".").map((n) => Number.parseInt(n, 10));
|
|
40263
|
-
return {
|
|
40264
|
-
major: versions[0],
|
|
40265
|
-
minor: versions[1],
|
|
40266
|
-
patch: versions[2]
|
|
40267
|
-
};
|
|
40268
|
-
}
|
|
40269
|
-
function createSupportsHyperlinks(stream) {
|
|
40270
|
-
const {
|
|
40271
|
-
CI,
|
|
40272
|
-
CURSOR_TRACE_ID,
|
|
40273
|
-
FORCE_HYPERLINK,
|
|
40274
|
-
NETLIFY,
|
|
40275
|
-
TEAMCITY_VERSION,
|
|
40276
|
-
TERM_PROGRAM,
|
|
40277
|
-
TERM_PROGRAM_VERSION,
|
|
40278
|
-
VTE_VERSION,
|
|
40279
|
-
TERM
|
|
40280
|
-
} = process21.env;
|
|
40281
|
-
if (FORCE_HYPERLINK) {
|
|
40282
|
-
return !(FORCE_HYPERLINK.length > 0 && Number.parseInt(FORCE_HYPERLINK, 10) === 0);
|
|
40283
|
-
}
|
|
40284
|
-
if (hasFlag3("no-hyperlink") || hasFlag3("no-hyperlinks") || hasFlag3("hyperlink=false") || hasFlag3("hyperlink=never")) {
|
|
40285
|
-
return false;
|
|
40286
|
-
}
|
|
40287
|
-
if (hasFlag3("hyperlink=true") || hasFlag3("hyperlink=always")) {
|
|
40288
|
-
return true;
|
|
40289
|
-
}
|
|
40290
|
-
if (NETLIFY) {
|
|
40291
|
-
return true;
|
|
40292
|
-
}
|
|
40293
|
-
if (!createSupportsColor2(stream)) {
|
|
40294
|
-
return false;
|
|
40295
|
-
}
|
|
40296
|
-
if (stream && !stream.isTTY) {
|
|
40297
|
-
return false;
|
|
40298
|
-
}
|
|
40299
|
-
if ("WT_SESSION" in process21.env) {
|
|
40300
|
-
return true;
|
|
40301
|
-
}
|
|
40302
|
-
if (process21.platform === "win32") {
|
|
40303
|
-
return false;
|
|
40304
|
-
}
|
|
40305
|
-
if (CI) {
|
|
40306
|
-
return false;
|
|
40307
|
-
}
|
|
40308
|
-
if (TEAMCITY_VERSION) {
|
|
40309
|
-
return false;
|
|
40310
|
-
}
|
|
40311
|
-
if (TERM_PROGRAM) {
|
|
40312
|
-
const version = parseVersion(TERM_PROGRAM_VERSION);
|
|
40313
|
-
switch (TERM_PROGRAM) {
|
|
40314
|
-
case "iTerm.app": {
|
|
40315
|
-
if (version.major === 3) {
|
|
40316
|
-
return version.minor >= 1;
|
|
40317
|
-
}
|
|
40318
|
-
return version.major > 3;
|
|
40319
|
-
}
|
|
40320
|
-
case "WezTerm": {
|
|
40321
|
-
if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
|
|
40322
|
-
const date = TERM_PROGRAM_VERSION.slice("0-unstable-".length);
|
|
40323
|
-
return date >= "2020-06-20";
|
|
40324
|
-
}
|
|
40325
|
-
return version.major >= 20200620;
|
|
40326
|
-
}
|
|
40327
|
-
case "vscode": {
|
|
40328
|
-
if (CURSOR_TRACE_ID) {
|
|
40329
|
-
return true;
|
|
40330
|
-
}
|
|
40331
|
-
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
40332
|
-
}
|
|
40333
|
-
case "ghostty": {
|
|
40334
|
-
return true;
|
|
40335
|
-
}
|
|
40336
|
-
}
|
|
40337
|
-
}
|
|
40338
|
-
if (VTE_VERSION) {
|
|
40339
|
-
if (VTE_VERSION === "0.50.0") {
|
|
40340
|
-
return false;
|
|
40341
|
-
}
|
|
40342
|
-
const version = parseVersion(VTE_VERSION);
|
|
40343
|
-
return version.major > 0 || version.minor >= 50;
|
|
40344
|
-
}
|
|
40345
|
-
switch (TERM) {
|
|
40346
|
-
case "alacritty": {
|
|
40347
|
-
return true;
|
|
40348
|
-
}
|
|
40349
|
-
case "xterm-kitty": {
|
|
40350
|
-
return true;
|
|
40351
|
-
}
|
|
40352
|
-
}
|
|
40353
|
-
return false;
|
|
40354
|
-
}
|
|
40355
|
-
var supportsHyperlinks, supports_hyperlinks_default;
|
|
40356
|
-
var init_supports_hyperlinks = __esm(() => {
|
|
40357
|
-
init_supports_color2();
|
|
40358
|
-
init_has_flag();
|
|
40359
|
-
supportsHyperlinks = {
|
|
40360
|
-
stdout: createSupportsHyperlinks(process21.stdout),
|
|
40361
|
-
stderr: createSupportsHyperlinks(process21.stderr)
|
|
40362
|
-
};
|
|
40363
|
-
supports_hyperlinks_default = supportsHyperlinks;
|
|
40364
|
-
});
|
|
40365
|
-
|
|
40366
|
-
// node_modules/terminal-link/index.js
|
|
40367
|
-
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
|
40368
|
-
if (!supports_hyperlinks_default[target]) {
|
|
40369
|
-
if (options.fallback === false) {
|
|
40370
|
-
return text;
|
|
40371
|
-
}
|
|
40372
|
-
if (typeof options.fallback === "function") {
|
|
40373
|
-
return options.fallback(text, url);
|
|
40374
|
-
}
|
|
40375
|
-
return `${text} ${url}`;
|
|
40376
|
-
}
|
|
40377
|
-
return exports_base.link(text, url);
|
|
40378
|
-
}
|
|
40379
|
-
var init_terminal_link = __esm(() => {
|
|
40380
|
-
init_ansi_escapes();
|
|
40381
|
-
init_supports_hyperlinks();
|
|
40382
|
-
terminalLink.isSupported = supports_hyperlinks_default.stdout;
|
|
40383
|
-
terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
|
|
40384
|
-
terminalLink.stderr.isSupported = supports_hyperlinks_default.stderr;
|
|
40385
|
-
});
|
|
40386
|
-
|
|
40387
|
-
// node_modules/ink-link/dist/index.js
|
|
40388
|
-
var import_jsx_runtime, Link = ({ children, url, fallback = true }) => import_jsx_runtime.jsx(Transform, { transform: (children2) => terminalLink(children2, url, { fallback }), children: import_jsx_runtime.jsx(Text, { children }) }), dist_default4;
|
|
40389
|
-
var init_dist4 = __esm(async () => {
|
|
40390
|
-
init_terminal_link();
|
|
40391
|
-
await init_build2();
|
|
40392
|
-
import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
40393
|
-
dist_default4 = Link;
|
|
40394
|
-
});
|
|
40395
|
-
|
|
40396
39299
|
// node_modules/cli-spinners/spinners.json
|
|
40397
39300
|
var require_spinners = __commonJS((exports, module) => {
|
|
40398
39301
|
module.exports = {
|
|
@@ -42019,43 +40922,1220 @@ var require_spinners = __commonJS((exports, module) => {
|
|
|
42019
40922
|
};
|
|
42020
40923
|
});
|
|
42021
40924
|
|
|
42022
|
-
// node_modules/cli-spinners/index.js
|
|
42023
|
-
var require_cli_spinners = __commonJS((exports, module) => {
|
|
42024
|
-
var spinners = Object.assign({}, require_spinners());
|
|
42025
|
-
var spinnersList = Object.keys(spinners);
|
|
42026
|
-
Object.defineProperty(spinners, "random", {
|
|
42027
|
-
get() {
|
|
42028
|
-
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
|
42029
|
-
const spinnerName = spinnersList[randomIndex];
|
|
42030
|
-
return spinners[spinnerName];
|
|
40925
|
+
// node_modules/cli-spinners/index.js
|
|
40926
|
+
var require_cli_spinners = __commonJS((exports, module) => {
|
|
40927
|
+
var spinners = Object.assign({}, require_spinners());
|
|
40928
|
+
var spinnersList = Object.keys(spinners);
|
|
40929
|
+
Object.defineProperty(spinners, "random", {
|
|
40930
|
+
get() {
|
|
40931
|
+
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
|
40932
|
+
const spinnerName = spinnersList[randomIndex];
|
|
40933
|
+
return spinners[spinnerName];
|
|
40934
|
+
}
|
|
40935
|
+
});
|
|
40936
|
+
module.exports = spinners;
|
|
40937
|
+
});
|
|
40938
|
+
|
|
40939
|
+
// node_modules/ink-spinner/build/index.js
|
|
40940
|
+
function Spinner({ type = "dots" }) {
|
|
40941
|
+
const [frame, setFrame] = import_react32.useState(0);
|
|
40942
|
+
const spinner = import_cli_spinners.default[type];
|
|
40943
|
+
import_react32.useEffect(() => {
|
|
40944
|
+
const timer = setInterval(() => {
|
|
40945
|
+
setFrame((previousFrame) => {
|
|
40946
|
+
const isLastFrame = previousFrame === spinner.frames.length - 1;
|
|
40947
|
+
return isLastFrame ? 0 : previousFrame + 1;
|
|
40948
|
+
});
|
|
40949
|
+
}, spinner.interval);
|
|
40950
|
+
return () => {
|
|
40951
|
+
clearInterval(timer);
|
|
40952
|
+
};
|
|
40953
|
+
}, [spinner]);
|
|
40954
|
+
return import_react32.default.createElement(Text, null, spinner.frames[frame]);
|
|
40955
|
+
}
|
|
40956
|
+
var import_react32, import_cli_spinners, build_default2;
|
|
40957
|
+
var init_build5 = __esm(async () => {
|
|
40958
|
+
await init_build2();
|
|
40959
|
+
import_react32 = __toESM(require_react(), 1);
|
|
40960
|
+
import_cli_spinners = __toESM(require_cli_spinners(), 1);
|
|
40961
|
+
build_default2 = Spinner;
|
|
40962
|
+
});
|
|
40963
|
+
|
|
40964
|
+
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
40965
|
+
var require_react_jsx_runtime_development = __commonJS((exports) => {
|
|
40966
|
+
var React13 = __toESM(require_react(), 1);
|
|
40967
|
+
if (true) {
|
|
40968
|
+
(function() {
|
|
40969
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
40970
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
40971
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
40972
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
40973
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
40974
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
40975
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
40976
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
40977
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
40978
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
40979
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
40980
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
40981
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
40982
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
40983
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
40984
|
+
function getIteratorFn(maybeIterable) {
|
|
40985
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
40986
|
+
return null;
|
|
40987
|
+
}
|
|
40988
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
40989
|
+
if (typeof maybeIterator === "function") {
|
|
40990
|
+
return maybeIterator;
|
|
40991
|
+
}
|
|
40992
|
+
return null;
|
|
40993
|
+
}
|
|
40994
|
+
var ReactSharedInternals = React13.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
40995
|
+
function error(format) {
|
|
40996
|
+
{
|
|
40997
|
+
{
|
|
40998
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1;_key2 < _len2; _key2++) {
|
|
40999
|
+
args[_key2 - 1] = arguments[_key2];
|
|
41000
|
+
}
|
|
41001
|
+
printWarning("error", format, args);
|
|
41002
|
+
}
|
|
41003
|
+
}
|
|
41004
|
+
}
|
|
41005
|
+
function printWarning(level, format, args) {
|
|
41006
|
+
{
|
|
41007
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
41008
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
41009
|
+
if (stack !== "") {
|
|
41010
|
+
format += "%s";
|
|
41011
|
+
args = args.concat([stack]);
|
|
41012
|
+
}
|
|
41013
|
+
var argsWithFormat = args.map(function(item) {
|
|
41014
|
+
return String(item);
|
|
41015
|
+
});
|
|
41016
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
41017
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
41018
|
+
}
|
|
41019
|
+
}
|
|
41020
|
+
var enableScopeAPI = false;
|
|
41021
|
+
var enableCacheElement = false;
|
|
41022
|
+
var enableTransitionTracing = false;
|
|
41023
|
+
var enableLegacyHidden = false;
|
|
41024
|
+
var enableDebugTracing = false;
|
|
41025
|
+
var REACT_MODULE_REFERENCE;
|
|
41026
|
+
{
|
|
41027
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
41028
|
+
}
|
|
41029
|
+
function isValidElementType(type) {
|
|
41030
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
41031
|
+
return true;
|
|
41032
|
+
}
|
|
41033
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
41034
|
+
return true;
|
|
41035
|
+
}
|
|
41036
|
+
if (typeof type === "object" && type !== null) {
|
|
41037
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
41038
|
+
return true;
|
|
41039
|
+
}
|
|
41040
|
+
}
|
|
41041
|
+
return false;
|
|
41042
|
+
}
|
|
41043
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
41044
|
+
var displayName = outerType.displayName;
|
|
41045
|
+
if (displayName) {
|
|
41046
|
+
return displayName;
|
|
41047
|
+
}
|
|
41048
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
41049
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
41050
|
+
}
|
|
41051
|
+
function getContextName(type) {
|
|
41052
|
+
return type.displayName || "Context";
|
|
41053
|
+
}
|
|
41054
|
+
function getComponentNameFromType(type) {
|
|
41055
|
+
if (type == null) {
|
|
41056
|
+
return null;
|
|
41057
|
+
}
|
|
41058
|
+
{
|
|
41059
|
+
if (typeof type.tag === "number") {
|
|
41060
|
+
error("Received an unexpected object in getComponentNameFromType(). " + "This is likely a bug in React. Please file an issue.");
|
|
41061
|
+
}
|
|
41062
|
+
}
|
|
41063
|
+
if (typeof type === "function") {
|
|
41064
|
+
return type.displayName || type.name || null;
|
|
41065
|
+
}
|
|
41066
|
+
if (typeof type === "string") {
|
|
41067
|
+
return type;
|
|
41068
|
+
}
|
|
41069
|
+
switch (type) {
|
|
41070
|
+
case REACT_FRAGMENT_TYPE:
|
|
41071
|
+
return "Fragment";
|
|
41072
|
+
case REACT_PORTAL_TYPE:
|
|
41073
|
+
return "Portal";
|
|
41074
|
+
case REACT_PROFILER_TYPE:
|
|
41075
|
+
return "Profiler";
|
|
41076
|
+
case REACT_STRICT_MODE_TYPE:
|
|
41077
|
+
return "StrictMode";
|
|
41078
|
+
case REACT_SUSPENSE_TYPE:
|
|
41079
|
+
return "Suspense";
|
|
41080
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
41081
|
+
return "SuspenseList";
|
|
41082
|
+
}
|
|
41083
|
+
if (typeof type === "object") {
|
|
41084
|
+
switch (type.$$typeof) {
|
|
41085
|
+
case REACT_CONTEXT_TYPE:
|
|
41086
|
+
var context = type;
|
|
41087
|
+
return getContextName(context) + ".Consumer";
|
|
41088
|
+
case REACT_PROVIDER_TYPE:
|
|
41089
|
+
var provider = type;
|
|
41090
|
+
return getContextName(provider._context) + ".Provider";
|
|
41091
|
+
case REACT_FORWARD_REF_TYPE:
|
|
41092
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
41093
|
+
case REACT_MEMO_TYPE:
|
|
41094
|
+
var outerName = type.displayName || null;
|
|
41095
|
+
if (outerName !== null) {
|
|
41096
|
+
return outerName;
|
|
41097
|
+
}
|
|
41098
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
41099
|
+
case REACT_LAZY_TYPE: {
|
|
41100
|
+
var lazyComponent = type;
|
|
41101
|
+
var payload = lazyComponent._payload;
|
|
41102
|
+
var init = lazyComponent._init;
|
|
41103
|
+
try {
|
|
41104
|
+
return getComponentNameFromType(init(payload));
|
|
41105
|
+
} catch (x) {
|
|
41106
|
+
return null;
|
|
41107
|
+
}
|
|
41108
|
+
}
|
|
41109
|
+
}
|
|
41110
|
+
}
|
|
41111
|
+
return null;
|
|
41112
|
+
}
|
|
41113
|
+
var assign = Object.assign;
|
|
41114
|
+
var disabledDepth = 0;
|
|
41115
|
+
var prevLog;
|
|
41116
|
+
var prevInfo;
|
|
41117
|
+
var prevWarn;
|
|
41118
|
+
var prevError;
|
|
41119
|
+
var prevGroup;
|
|
41120
|
+
var prevGroupCollapsed;
|
|
41121
|
+
var prevGroupEnd;
|
|
41122
|
+
function disabledLog() {}
|
|
41123
|
+
disabledLog.__reactDisabledLog = true;
|
|
41124
|
+
function disableLogs() {
|
|
41125
|
+
{
|
|
41126
|
+
if (disabledDepth === 0) {
|
|
41127
|
+
prevLog = console.log;
|
|
41128
|
+
prevInfo = console.info;
|
|
41129
|
+
prevWarn = console.warn;
|
|
41130
|
+
prevError = console.error;
|
|
41131
|
+
prevGroup = console.group;
|
|
41132
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
41133
|
+
prevGroupEnd = console.groupEnd;
|
|
41134
|
+
var props = {
|
|
41135
|
+
configurable: true,
|
|
41136
|
+
enumerable: true,
|
|
41137
|
+
value: disabledLog,
|
|
41138
|
+
writable: true
|
|
41139
|
+
};
|
|
41140
|
+
Object.defineProperties(console, {
|
|
41141
|
+
info: props,
|
|
41142
|
+
log: props,
|
|
41143
|
+
warn: props,
|
|
41144
|
+
error: props,
|
|
41145
|
+
group: props,
|
|
41146
|
+
groupCollapsed: props,
|
|
41147
|
+
groupEnd: props
|
|
41148
|
+
});
|
|
41149
|
+
}
|
|
41150
|
+
disabledDepth++;
|
|
41151
|
+
}
|
|
41152
|
+
}
|
|
41153
|
+
function reenableLogs() {
|
|
41154
|
+
{
|
|
41155
|
+
disabledDepth--;
|
|
41156
|
+
if (disabledDepth === 0) {
|
|
41157
|
+
var props = {
|
|
41158
|
+
configurable: true,
|
|
41159
|
+
enumerable: true,
|
|
41160
|
+
writable: true
|
|
41161
|
+
};
|
|
41162
|
+
Object.defineProperties(console, {
|
|
41163
|
+
log: assign({}, props, {
|
|
41164
|
+
value: prevLog
|
|
41165
|
+
}),
|
|
41166
|
+
info: assign({}, props, {
|
|
41167
|
+
value: prevInfo
|
|
41168
|
+
}),
|
|
41169
|
+
warn: assign({}, props, {
|
|
41170
|
+
value: prevWarn
|
|
41171
|
+
}),
|
|
41172
|
+
error: assign({}, props, {
|
|
41173
|
+
value: prevError
|
|
41174
|
+
}),
|
|
41175
|
+
group: assign({}, props, {
|
|
41176
|
+
value: prevGroup
|
|
41177
|
+
}),
|
|
41178
|
+
groupCollapsed: assign({}, props, {
|
|
41179
|
+
value: prevGroupCollapsed
|
|
41180
|
+
}),
|
|
41181
|
+
groupEnd: assign({}, props, {
|
|
41182
|
+
value: prevGroupEnd
|
|
41183
|
+
})
|
|
41184
|
+
});
|
|
41185
|
+
}
|
|
41186
|
+
if (disabledDepth < 0) {
|
|
41187
|
+
error("disabledDepth fell below zero. " + "This is a bug in React. Please file an issue.");
|
|
41188
|
+
}
|
|
41189
|
+
}
|
|
41190
|
+
}
|
|
41191
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
41192
|
+
var prefix;
|
|
41193
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
41194
|
+
{
|
|
41195
|
+
if (prefix === undefined) {
|
|
41196
|
+
try {
|
|
41197
|
+
throw Error();
|
|
41198
|
+
} catch (x) {
|
|
41199
|
+
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
41200
|
+
prefix = match2 && match2[1] || "";
|
|
41201
|
+
}
|
|
41202
|
+
}
|
|
41203
|
+
return `
|
|
41204
|
+
` + prefix + name;
|
|
41205
|
+
}
|
|
41206
|
+
}
|
|
41207
|
+
var reentry = false;
|
|
41208
|
+
var componentFrameCache;
|
|
41209
|
+
{
|
|
41210
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
41211
|
+
componentFrameCache = new PossiblyWeakMap;
|
|
41212
|
+
}
|
|
41213
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
41214
|
+
if (!fn || reentry) {
|
|
41215
|
+
return "";
|
|
41216
|
+
}
|
|
41217
|
+
{
|
|
41218
|
+
var frame = componentFrameCache.get(fn);
|
|
41219
|
+
if (frame !== undefined) {
|
|
41220
|
+
return frame;
|
|
41221
|
+
}
|
|
41222
|
+
}
|
|
41223
|
+
var control;
|
|
41224
|
+
reentry = true;
|
|
41225
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
41226
|
+
Error.prepareStackTrace = undefined;
|
|
41227
|
+
var previousDispatcher;
|
|
41228
|
+
{
|
|
41229
|
+
previousDispatcher = ReactCurrentDispatcher.current;
|
|
41230
|
+
ReactCurrentDispatcher.current = null;
|
|
41231
|
+
disableLogs();
|
|
41232
|
+
}
|
|
41233
|
+
try {
|
|
41234
|
+
if (construct) {
|
|
41235
|
+
var Fake = function() {
|
|
41236
|
+
throw Error();
|
|
41237
|
+
};
|
|
41238
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
41239
|
+
set: function() {
|
|
41240
|
+
throw Error();
|
|
41241
|
+
}
|
|
41242
|
+
});
|
|
41243
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
41244
|
+
try {
|
|
41245
|
+
Reflect.construct(Fake, []);
|
|
41246
|
+
} catch (x) {
|
|
41247
|
+
control = x;
|
|
41248
|
+
}
|
|
41249
|
+
Reflect.construct(fn, [], Fake);
|
|
41250
|
+
} else {
|
|
41251
|
+
try {
|
|
41252
|
+
Fake.call();
|
|
41253
|
+
} catch (x) {
|
|
41254
|
+
control = x;
|
|
41255
|
+
}
|
|
41256
|
+
fn.call(Fake.prototype);
|
|
41257
|
+
}
|
|
41258
|
+
} else {
|
|
41259
|
+
try {
|
|
41260
|
+
throw Error();
|
|
41261
|
+
} catch (x) {
|
|
41262
|
+
control = x;
|
|
41263
|
+
}
|
|
41264
|
+
fn();
|
|
41265
|
+
}
|
|
41266
|
+
} catch (sample) {
|
|
41267
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
41268
|
+
var sampleLines = sample.stack.split(`
|
|
41269
|
+
`);
|
|
41270
|
+
var controlLines = control.stack.split(`
|
|
41271
|
+
`);
|
|
41272
|
+
var s = sampleLines.length - 1;
|
|
41273
|
+
var c = controlLines.length - 1;
|
|
41274
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
41275
|
+
c--;
|
|
41276
|
+
}
|
|
41277
|
+
for (;s >= 1 && c >= 0; s--, c--) {
|
|
41278
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
41279
|
+
if (s !== 1 || c !== 1) {
|
|
41280
|
+
do {
|
|
41281
|
+
s--;
|
|
41282
|
+
c--;
|
|
41283
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
41284
|
+
var _frame = `
|
|
41285
|
+
` + sampleLines[s].replace(" at new ", " at ");
|
|
41286
|
+
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
41287
|
+
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
41288
|
+
}
|
|
41289
|
+
{
|
|
41290
|
+
if (typeof fn === "function") {
|
|
41291
|
+
componentFrameCache.set(fn, _frame);
|
|
41292
|
+
}
|
|
41293
|
+
}
|
|
41294
|
+
return _frame;
|
|
41295
|
+
}
|
|
41296
|
+
} while (s >= 1 && c >= 0);
|
|
41297
|
+
}
|
|
41298
|
+
break;
|
|
41299
|
+
}
|
|
41300
|
+
}
|
|
41301
|
+
}
|
|
41302
|
+
} finally {
|
|
41303
|
+
reentry = false;
|
|
41304
|
+
{
|
|
41305
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
|
41306
|
+
reenableLogs();
|
|
41307
|
+
}
|
|
41308
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
41309
|
+
}
|
|
41310
|
+
var name = fn ? fn.displayName || fn.name : "";
|
|
41311
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
41312
|
+
{
|
|
41313
|
+
if (typeof fn === "function") {
|
|
41314
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
41315
|
+
}
|
|
41316
|
+
}
|
|
41317
|
+
return syntheticFrame;
|
|
41318
|
+
}
|
|
41319
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
41320
|
+
{
|
|
41321
|
+
return describeNativeComponentFrame(fn, false);
|
|
41322
|
+
}
|
|
41323
|
+
}
|
|
41324
|
+
function shouldConstruct(Component) {
|
|
41325
|
+
var prototype = Component.prototype;
|
|
41326
|
+
return !!(prototype && prototype.isReactComponent);
|
|
41327
|
+
}
|
|
41328
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
41329
|
+
if (type == null) {
|
|
41330
|
+
return "";
|
|
41331
|
+
}
|
|
41332
|
+
if (typeof type === "function") {
|
|
41333
|
+
{
|
|
41334
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
41335
|
+
}
|
|
41336
|
+
}
|
|
41337
|
+
if (typeof type === "string") {
|
|
41338
|
+
return describeBuiltInComponentFrame(type);
|
|
41339
|
+
}
|
|
41340
|
+
switch (type) {
|
|
41341
|
+
case REACT_SUSPENSE_TYPE:
|
|
41342
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
41343
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
41344
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
41345
|
+
}
|
|
41346
|
+
if (typeof type === "object") {
|
|
41347
|
+
switch (type.$$typeof) {
|
|
41348
|
+
case REACT_FORWARD_REF_TYPE:
|
|
41349
|
+
return describeFunctionComponentFrame(type.render);
|
|
41350
|
+
case REACT_MEMO_TYPE:
|
|
41351
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
41352
|
+
case REACT_LAZY_TYPE: {
|
|
41353
|
+
var lazyComponent = type;
|
|
41354
|
+
var payload = lazyComponent._payload;
|
|
41355
|
+
var init = lazyComponent._init;
|
|
41356
|
+
try {
|
|
41357
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
41358
|
+
} catch (x) {}
|
|
41359
|
+
}
|
|
41360
|
+
}
|
|
41361
|
+
}
|
|
41362
|
+
return "";
|
|
41363
|
+
}
|
|
41364
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
41365
|
+
var loggedTypeFailures = {};
|
|
41366
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
41367
|
+
function setCurrentlyValidatingElement(element) {
|
|
41368
|
+
{
|
|
41369
|
+
if (element) {
|
|
41370
|
+
var owner = element._owner;
|
|
41371
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
41372
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
41373
|
+
} else {
|
|
41374
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
41375
|
+
}
|
|
41376
|
+
}
|
|
41377
|
+
}
|
|
41378
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
41379
|
+
{
|
|
41380
|
+
var has2 = Function.call.bind(hasOwnProperty);
|
|
41381
|
+
for (var typeSpecName in typeSpecs) {
|
|
41382
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
41383
|
+
var error$1 = undefined;
|
|
41384
|
+
try {
|
|
41385
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
41386
|
+
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; " + "it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`." + "This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
41387
|
+
err.name = "Invariant Violation";
|
|
41388
|
+
throw err;
|
|
41389
|
+
}
|
|
41390
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
41391
|
+
} catch (ex) {
|
|
41392
|
+
error$1 = ex;
|
|
41393
|
+
}
|
|
41394
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
41395
|
+
setCurrentlyValidatingElement(element);
|
|
41396
|
+
error("%s: type specification of %s" + " `%s` is invalid; the type checker " + "function must return `null` or an `Error` but returned a %s. " + "You may have forgotten to pass an argument to the type checker " + "creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and " + "shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
41397
|
+
setCurrentlyValidatingElement(null);
|
|
41398
|
+
}
|
|
41399
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
41400
|
+
loggedTypeFailures[error$1.message] = true;
|
|
41401
|
+
setCurrentlyValidatingElement(element);
|
|
41402
|
+
error("Failed %s type: %s", location, error$1.message);
|
|
41403
|
+
setCurrentlyValidatingElement(null);
|
|
41404
|
+
}
|
|
41405
|
+
}
|
|
41406
|
+
}
|
|
41407
|
+
}
|
|
41408
|
+
}
|
|
41409
|
+
var isArrayImpl = Array.isArray;
|
|
41410
|
+
function isArray2(a) {
|
|
41411
|
+
return isArrayImpl(a);
|
|
41412
|
+
}
|
|
41413
|
+
function typeName(value) {
|
|
41414
|
+
{
|
|
41415
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
41416
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
41417
|
+
return type;
|
|
41418
|
+
}
|
|
41419
|
+
}
|
|
41420
|
+
function willCoercionThrow(value) {
|
|
41421
|
+
{
|
|
41422
|
+
try {
|
|
41423
|
+
testStringCoercion(value);
|
|
41424
|
+
return false;
|
|
41425
|
+
} catch (e) {
|
|
41426
|
+
return true;
|
|
41427
|
+
}
|
|
41428
|
+
}
|
|
41429
|
+
}
|
|
41430
|
+
function testStringCoercion(value) {
|
|
41431
|
+
return "" + value;
|
|
41432
|
+
}
|
|
41433
|
+
function checkKeyStringCoercion(value) {
|
|
41434
|
+
{
|
|
41435
|
+
if (willCoercionThrow(value)) {
|
|
41436
|
+
error("The provided key is an unsupported type %s." + " This value must be coerced to a string before before using it here.", typeName(value));
|
|
41437
|
+
return testStringCoercion(value);
|
|
41438
|
+
}
|
|
41439
|
+
}
|
|
41440
|
+
}
|
|
41441
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
41442
|
+
var RESERVED_PROPS = {
|
|
41443
|
+
key: true,
|
|
41444
|
+
ref: true,
|
|
41445
|
+
__self: true,
|
|
41446
|
+
__source: true
|
|
41447
|
+
};
|
|
41448
|
+
var specialPropKeyWarningShown;
|
|
41449
|
+
var specialPropRefWarningShown;
|
|
41450
|
+
var didWarnAboutStringRefs;
|
|
41451
|
+
{
|
|
41452
|
+
didWarnAboutStringRefs = {};
|
|
41453
|
+
}
|
|
41454
|
+
function hasValidRef(config) {
|
|
41455
|
+
{
|
|
41456
|
+
if (hasOwnProperty.call(config, "ref")) {
|
|
41457
|
+
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
41458
|
+
if (getter && getter.isReactWarning) {
|
|
41459
|
+
return false;
|
|
41460
|
+
}
|
|
41461
|
+
}
|
|
41462
|
+
}
|
|
41463
|
+
return config.ref !== undefined;
|
|
41464
|
+
}
|
|
41465
|
+
function hasValidKey(config) {
|
|
41466
|
+
{
|
|
41467
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
41468
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
41469
|
+
if (getter && getter.isReactWarning) {
|
|
41470
|
+
return false;
|
|
41471
|
+
}
|
|
41472
|
+
}
|
|
41473
|
+
}
|
|
41474
|
+
return config.key !== undefined;
|
|
41475
|
+
}
|
|
41476
|
+
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
41477
|
+
{
|
|
41478
|
+
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
41479
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
41480
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
41481
|
+
error('Component "%s" contains the string ref "%s". ' + "Support for string refs will be removed in a future major release. " + "This case cannot be automatically converted to an arrow function. " + "We ask you to manually fix this case by using useRef() or createRef() instead. " + "Learn more about using refs safely here: " + "https://reactjs.org/link/strict-mode-string-ref", getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
41482
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
41483
|
+
}
|
|
41484
|
+
}
|
|
41485
|
+
}
|
|
41486
|
+
}
|
|
41487
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
41488
|
+
{
|
|
41489
|
+
var warnAboutAccessingKey = function() {
|
|
41490
|
+
if (!specialPropKeyWarningShown) {
|
|
41491
|
+
specialPropKeyWarningShown = true;
|
|
41492
|
+
error("%s: `key` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
|
|
41493
|
+
}
|
|
41494
|
+
};
|
|
41495
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
41496
|
+
Object.defineProperty(props, "key", {
|
|
41497
|
+
get: warnAboutAccessingKey,
|
|
41498
|
+
configurable: true
|
|
41499
|
+
});
|
|
41500
|
+
}
|
|
41501
|
+
}
|
|
41502
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
41503
|
+
{
|
|
41504
|
+
var warnAboutAccessingRef = function() {
|
|
41505
|
+
if (!specialPropRefWarningShown) {
|
|
41506
|
+
specialPropRefWarningShown = true;
|
|
41507
|
+
error("%s: `ref` is not a prop. Trying to access it will result " + "in `undefined` being returned. If you need to access the same " + "value within the child component, you should pass it as a different " + "prop. (https://reactjs.org/link/special-props)", displayName);
|
|
41508
|
+
}
|
|
41509
|
+
};
|
|
41510
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
41511
|
+
Object.defineProperty(props, "ref", {
|
|
41512
|
+
get: warnAboutAccessingRef,
|
|
41513
|
+
configurable: true
|
|
41514
|
+
});
|
|
41515
|
+
}
|
|
41516
|
+
}
|
|
41517
|
+
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
41518
|
+
var element = {
|
|
41519
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
41520
|
+
type,
|
|
41521
|
+
key,
|
|
41522
|
+
ref,
|
|
41523
|
+
props,
|
|
41524
|
+
_owner: owner
|
|
41525
|
+
};
|
|
41526
|
+
{
|
|
41527
|
+
element._store = {};
|
|
41528
|
+
Object.defineProperty(element._store, "validated", {
|
|
41529
|
+
configurable: false,
|
|
41530
|
+
enumerable: false,
|
|
41531
|
+
writable: true,
|
|
41532
|
+
value: false
|
|
41533
|
+
});
|
|
41534
|
+
Object.defineProperty(element, "_self", {
|
|
41535
|
+
configurable: false,
|
|
41536
|
+
enumerable: false,
|
|
41537
|
+
writable: false,
|
|
41538
|
+
value: self
|
|
41539
|
+
});
|
|
41540
|
+
Object.defineProperty(element, "_source", {
|
|
41541
|
+
configurable: false,
|
|
41542
|
+
enumerable: false,
|
|
41543
|
+
writable: false,
|
|
41544
|
+
value: source
|
|
41545
|
+
});
|
|
41546
|
+
if (Object.freeze) {
|
|
41547
|
+
Object.freeze(element.props);
|
|
41548
|
+
Object.freeze(element);
|
|
41549
|
+
}
|
|
41550
|
+
}
|
|
41551
|
+
return element;
|
|
41552
|
+
};
|
|
41553
|
+
function jsxDEV11(type, config, maybeKey, source, self) {
|
|
41554
|
+
{
|
|
41555
|
+
var propName;
|
|
41556
|
+
var props = {};
|
|
41557
|
+
var key = null;
|
|
41558
|
+
var ref = null;
|
|
41559
|
+
if (maybeKey !== undefined) {
|
|
41560
|
+
{
|
|
41561
|
+
checkKeyStringCoercion(maybeKey);
|
|
41562
|
+
}
|
|
41563
|
+
key = "" + maybeKey;
|
|
41564
|
+
}
|
|
41565
|
+
if (hasValidKey(config)) {
|
|
41566
|
+
{
|
|
41567
|
+
checkKeyStringCoercion(config.key);
|
|
41568
|
+
}
|
|
41569
|
+
key = "" + config.key;
|
|
41570
|
+
}
|
|
41571
|
+
if (hasValidRef(config)) {
|
|
41572
|
+
ref = config.ref;
|
|
41573
|
+
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
41574
|
+
}
|
|
41575
|
+
for (propName in config) {
|
|
41576
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
41577
|
+
props[propName] = config[propName];
|
|
41578
|
+
}
|
|
41579
|
+
}
|
|
41580
|
+
if (type && type.defaultProps) {
|
|
41581
|
+
var defaultProps = type.defaultProps;
|
|
41582
|
+
for (propName in defaultProps) {
|
|
41583
|
+
if (props[propName] === undefined) {
|
|
41584
|
+
props[propName] = defaultProps[propName];
|
|
41585
|
+
}
|
|
41586
|
+
}
|
|
41587
|
+
}
|
|
41588
|
+
if (key || ref) {
|
|
41589
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
41590
|
+
if (key) {
|
|
41591
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
41592
|
+
}
|
|
41593
|
+
if (ref) {
|
|
41594
|
+
defineRefPropWarningGetter(props, displayName);
|
|
41595
|
+
}
|
|
41596
|
+
}
|
|
41597
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
41598
|
+
}
|
|
41599
|
+
}
|
|
41600
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
41601
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
41602
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
41603
|
+
{
|
|
41604
|
+
if (element) {
|
|
41605
|
+
var owner = element._owner;
|
|
41606
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
41607
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
41608
|
+
} else {
|
|
41609
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
41610
|
+
}
|
|
41611
|
+
}
|
|
41612
|
+
}
|
|
41613
|
+
var propTypesMisspellWarningShown;
|
|
41614
|
+
{
|
|
41615
|
+
propTypesMisspellWarningShown = false;
|
|
41616
|
+
}
|
|
41617
|
+
function isValidElement(object) {
|
|
41618
|
+
{
|
|
41619
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
41620
|
+
}
|
|
41621
|
+
}
|
|
41622
|
+
function getDeclarationErrorAddendum() {
|
|
41623
|
+
{
|
|
41624
|
+
if (ReactCurrentOwner$1.current) {
|
|
41625
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
41626
|
+
if (name) {
|
|
41627
|
+
return `
|
|
41628
|
+
|
|
41629
|
+
Check the render method of \`` + name + "`.";
|
|
41630
|
+
}
|
|
41631
|
+
}
|
|
41632
|
+
return "";
|
|
41633
|
+
}
|
|
41634
|
+
}
|
|
41635
|
+
function getSourceInfoErrorAddendum(source) {
|
|
41636
|
+
{
|
|
41637
|
+
if (source !== undefined) {
|
|
41638
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
41639
|
+
var lineNumber = source.lineNumber;
|
|
41640
|
+
return `
|
|
41641
|
+
|
|
41642
|
+
Check your code at ` + fileName + ":" + lineNumber + ".";
|
|
41643
|
+
}
|
|
41644
|
+
return "";
|
|
41645
|
+
}
|
|
41646
|
+
}
|
|
41647
|
+
var ownerHasKeyUseWarning = {};
|
|
41648
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
41649
|
+
{
|
|
41650
|
+
var info = getDeclarationErrorAddendum();
|
|
41651
|
+
if (!info) {
|
|
41652
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
41653
|
+
if (parentName) {
|
|
41654
|
+
info = `
|
|
41655
|
+
|
|
41656
|
+
Check the top-level render call using <` + parentName + ">.";
|
|
41657
|
+
}
|
|
41658
|
+
}
|
|
41659
|
+
return info;
|
|
41660
|
+
}
|
|
41661
|
+
}
|
|
41662
|
+
function validateExplicitKey(element, parentType) {
|
|
41663
|
+
{
|
|
41664
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
41665
|
+
return;
|
|
41666
|
+
}
|
|
41667
|
+
element._store.validated = true;
|
|
41668
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
41669
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
41670
|
+
return;
|
|
41671
|
+
}
|
|
41672
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
41673
|
+
var childOwner = "";
|
|
41674
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
41675
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
41676
|
+
}
|
|
41677
|
+
setCurrentlyValidatingElement$1(element);
|
|
41678
|
+
error('Each child in a list should have a unique "key" prop.' + "%s%s See https://reactjs.org/link/warning-keys for more information.", currentComponentErrorInfo, childOwner);
|
|
41679
|
+
setCurrentlyValidatingElement$1(null);
|
|
41680
|
+
}
|
|
41681
|
+
}
|
|
41682
|
+
function validateChildKeys(node, parentType) {
|
|
41683
|
+
{
|
|
41684
|
+
if (typeof node !== "object") {
|
|
41685
|
+
return;
|
|
41686
|
+
}
|
|
41687
|
+
if (isArray2(node)) {
|
|
41688
|
+
for (var i = 0;i < node.length; i++) {
|
|
41689
|
+
var child = node[i];
|
|
41690
|
+
if (isValidElement(child)) {
|
|
41691
|
+
validateExplicitKey(child, parentType);
|
|
41692
|
+
}
|
|
41693
|
+
}
|
|
41694
|
+
} else if (isValidElement(node)) {
|
|
41695
|
+
if (node._store) {
|
|
41696
|
+
node._store.validated = true;
|
|
41697
|
+
}
|
|
41698
|
+
} else if (node) {
|
|
41699
|
+
var iteratorFn = getIteratorFn(node);
|
|
41700
|
+
if (typeof iteratorFn === "function") {
|
|
41701
|
+
if (iteratorFn !== node.entries) {
|
|
41702
|
+
var iterator = iteratorFn.call(node);
|
|
41703
|
+
var step;
|
|
41704
|
+
while (!(step = iterator.next()).done) {
|
|
41705
|
+
if (isValidElement(step.value)) {
|
|
41706
|
+
validateExplicitKey(step.value, parentType);
|
|
41707
|
+
}
|
|
41708
|
+
}
|
|
41709
|
+
}
|
|
41710
|
+
}
|
|
41711
|
+
}
|
|
41712
|
+
}
|
|
41713
|
+
}
|
|
41714
|
+
function validatePropTypes(element) {
|
|
41715
|
+
{
|
|
41716
|
+
var type = element.type;
|
|
41717
|
+
if (type === null || type === undefined || typeof type === "string") {
|
|
41718
|
+
return;
|
|
41719
|
+
}
|
|
41720
|
+
var propTypes;
|
|
41721
|
+
if (typeof type === "function") {
|
|
41722
|
+
propTypes = type.propTypes;
|
|
41723
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
|
|
41724
|
+
propTypes = type.propTypes;
|
|
41725
|
+
} else {
|
|
41726
|
+
return;
|
|
41727
|
+
}
|
|
41728
|
+
if (propTypes) {
|
|
41729
|
+
var name = getComponentNameFromType(type);
|
|
41730
|
+
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
41731
|
+
} else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
|
|
41732
|
+
propTypesMisspellWarningShown = true;
|
|
41733
|
+
var _name = getComponentNameFromType(type);
|
|
41734
|
+
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
41735
|
+
}
|
|
41736
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
41737
|
+
error("getDefaultProps is only used on classic React.createClass " + "definitions. Use a static property named `defaultProps` instead.");
|
|
41738
|
+
}
|
|
41739
|
+
}
|
|
41740
|
+
}
|
|
41741
|
+
function validateFragmentProps(fragment) {
|
|
41742
|
+
{
|
|
41743
|
+
var keys = Object.keys(fragment.props);
|
|
41744
|
+
for (var i = 0;i < keys.length; i++) {
|
|
41745
|
+
var key = keys[i];
|
|
41746
|
+
if (key !== "children" && key !== "key") {
|
|
41747
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
41748
|
+
error("Invalid prop `%s` supplied to `React.Fragment`. " + "React.Fragment can only have `key` and `children` props.", key);
|
|
41749
|
+
setCurrentlyValidatingElement$1(null);
|
|
41750
|
+
break;
|
|
41751
|
+
}
|
|
41752
|
+
}
|
|
41753
|
+
if (fragment.ref !== null) {
|
|
41754
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
41755
|
+
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
41756
|
+
setCurrentlyValidatingElement$1(null);
|
|
41757
|
+
}
|
|
41758
|
+
}
|
|
41759
|
+
}
|
|
41760
|
+
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
41761
|
+
{
|
|
41762
|
+
var validType = isValidElementType(type);
|
|
41763
|
+
if (!validType) {
|
|
41764
|
+
var info = "";
|
|
41765
|
+
if (type === undefined || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
41766
|
+
info += " You likely forgot to export your component from the file " + "it's defined in, or you might have mixed up default and named imports.";
|
|
41767
|
+
}
|
|
41768
|
+
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
41769
|
+
if (sourceInfo) {
|
|
41770
|
+
info += sourceInfo;
|
|
41771
|
+
} else {
|
|
41772
|
+
info += getDeclarationErrorAddendum();
|
|
41773
|
+
}
|
|
41774
|
+
var typeString;
|
|
41775
|
+
if (type === null) {
|
|
41776
|
+
typeString = "null";
|
|
41777
|
+
} else if (isArray2(type)) {
|
|
41778
|
+
typeString = "array";
|
|
41779
|
+
} else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
41780
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
41781
|
+
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
41782
|
+
} else {
|
|
41783
|
+
typeString = typeof type;
|
|
41784
|
+
}
|
|
41785
|
+
error("React.jsx: type is invalid -- expected a string (for " + "built-in components) or a class/function (for composite " + "components) but got: %s.%s", typeString, info);
|
|
41786
|
+
}
|
|
41787
|
+
var element = jsxDEV11(type, props, key, source, self);
|
|
41788
|
+
if (element == null) {
|
|
41789
|
+
return element;
|
|
41790
|
+
}
|
|
41791
|
+
if (validType) {
|
|
41792
|
+
var children = props.children;
|
|
41793
|
+
if (children !== undefined) {
|
|
41794
|
+
if (isStaticChildren) {
|
|
41795
|
+
if (isArray2(children)) {
|
|
41796
|
+
for (var i = 0;i < children.length; i++) {
|
|
41797
|
+
validateChildKeys(children[i], type);
|
|
41798
|
+
}
|
|
41799
|
+
if (Object.freeze) {
|
|
41800
|
+
Object.freeze(children);
|
|
41801
|
+
}
|
|
41802
|
+
} else {
|
|
41803
|
+
error("React.jsx: Static children should always be an array. " + "You are likely explicitly calling React.jsxs or React.jsxDEV. " + "Use the Babel transform instead.");
|
|
41804
|
+
}
|
|
41805
|
+
} else {
|
|
41806
|
+
validateChildKeys(children, type);
|
|
41807
|
+
}
|
|
41808
|
+
}
|
|
41809
|
+
}
|
|
41810
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
41811
|
+
validateFragmentProps(element);
|
|
41812
|
+
} else {
|
|
41813
|
+
validatePropTypes(element);
|
|
41814
|
+
}
|
|
41815
|
+
return element;
|
|
41816
|
+
}
|
|
41817
|
+
}
|
|
41818
|
+
function jsxWithValidationStatic(type, props, key) {
|
|
41819
|
+
{
|
|
41820
|
+
return jsxWithValidation(type, props, key, true);
|
|
41821
|
+
}
|
|
41822
|
+
}
|
|
41823
|
+
function jsxWithValidationDynamic(type, props, key) {
|
|
41824
|
+
{
|
|
41825
|
+
return jsxWithValidation(type, props, key, false);
|
|
41826
|
+
}
|
|
41827
|
+
}
|
|
41828
|
+
var jsx = jsxWithValidationDynamic;
|
|
41829
|
+
var jsxs = jsxWithValidationStatic;
|
|
41830
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
41831
|
+
exports.jsx = jsx;
|
|
41832
|
+
exports.jsxs = jsxs;
|
|
41833
|
+
})();
|
|
41834
|
+
}
|
|
41835
|
+
});
|
|
41836
|
+
|
|
41837
|
+
// node_modules/react/jsx-runtime.js
|
|
41838
|
+
var require_jsx_runtime = __commonJS((exports, module) => {
|
|
41839
|
+
var react_jsx_runtime_development = __toESM(require_react_jsx_runtime_development(), 1);
|
|
41840
|
+
if (false) {} else {
|
|
41841
|
+
module.exports = react_jsx_runtime_development;
|
|
41842
|
+
}
|
|
41843
|
+
});
|
|
41844
|
+
|
|
41845
|
+
// node_modules/supports-color/index.js
|
|
41846
|
+
import process19 from "node:process";
|
|
41847
|
+
import os3 from "node:os";
|
|
41848
|
+
import tty2 from "node:tty";
|
|
41849
|
+
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process19.argv) {
|
|
41850
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
41851
|
+
const position = argv.indexOf(prefix + flag);
|
|
41852
|
+
const terminatorPosition = argv.indexOf("--");
|
|
41853
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
41854
|
+
}
|
|
41855
|
+
function envForceColor2() {
|
|
41856
|
+
if (!("FORCE_COLOR" in env3)) {
|
|
41857
|
+
return;
|
|
41858
|
+
}
|
|
41859
|
+
if (env3.FORCE_COLOR === "true") {
|
|
41860
|
+
return 1;
|
|
41861
|
+
}
|
|
41862
|
+
if (env3.FORCE_COLOR === "false") {
|
|
41863
|
+
return 0;
|
|
41864
|
+
}
|
|
41865
|
+
if (env3.FORCE_COLOR.length === 0) {
|
|
41866
|
+
return 1;
|
|
41867
|
+
}
|
|
41868
|
+
const level = Math.min(Number.parseInt(env3.FORCE_COLOR, 10), 3);
|
|
41869
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
41870
|
+
return;
|
|
41871
|
+
}
|
|
41872
|
+
return level;
|
|
41873
|
+
}
|
|
41874
|
+
function translateLevel2(level) {
|
|
41875
|
+
if (level === 0) {
|
|
41876
|
+
return false;
|
|
41877
|
+
}
|
|
41878
|
+
return {
|
|
41879
|
+
level,
|
|
41880
|
+
hasBasic: true,
|
|
41881
|
+
has256: level >= 2,
|
|
41882
|
+
has16m: level >= 3
|
|
41883
|
+
};
|
|
41884
|
+
}
|
|
41885
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
41886
|
+
const noFlagForceColor = envForceColor2();
|
|
41887
|
+
if (noFlagForceColor !== undefined) {
|
|
41888
|
+
flagForceColor2 = noFlagForceColor;
|
|
41889
|
+
}
|
|
41890
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
41891
|
+
if (forceColor === 0) {
|
|
41892
|
+
return 0;
|
|
41893
|
+
}
|
|
41894
|
+
if (sniffFlags) {
|
|
41895
|
+
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
41896
|
+
return 3;
|
|
41897
|
+
}
|
|
41898
|
+
if (hasFlag2("color=256")) {
|
|
41899
|
+
return 2;
|
|
41900
|
+
}
|
|
41901
|
+
}
|
|
41902
|
+
if ("TF_BUILD" in env3 && "AGENT_NAME" in env3) {
|
|
41903
|
+
return 1;
|
|
41904
|
+
}
|
|
41905
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
41906
|
+
return 0;
|
|
41907
|
+
}
|
|
41908
|
+
const min = forceColor || 0;
|
|
41909
|
+
if (env3.TERM === "dumb") {
|
|
41910
|
+
return min;
|
|
41911
|
+
}
|
|
41912
|
+
if (process19.platform === "win32") {
|
|
41913
|
+
const osRelease = os3.release().split(".");
|
|
41914
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
41915
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
41916
|
+
}
|
|
41917
|
+
return 1;
|
|
41918
|
+
}
|
|
41919
|
+
if ("CI" in env3) {
|
|
41920
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => (key in env3))) {
|
|
41921
|
+
return 3;
|
|
41922
|
+
}
|
|
41923
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env3)) || env3.CI_NAME === "codeship") {
|
|
41924
|
+
return 1;
|
|
41925
|
+
}
|
|
41926
|
+
return min;
|
|
41927
|
+
}
|
|
41928
|
+
if ("TEAMCITY_VERSION" in env3) {
|
|
41929
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
41930
|
+
}
|
|
41931
|
+
if (env3.COLORTERM === "truecolor") {
|
|
41932
|
+
return 3;
|
|
41933
|
+
}
|
|
41934
|
+
if (env3.TERM === "xterm-kitty") {
|
|
41935
|
+
return 3;
|
|
41936
|
+
}
|
|
41937
|
+
if (env3.TERM === "xterm-ghostty") {
|
|
41938
|
+
return 3;
|
|
41939
|
+
}
|
|
41940
|
+
if (env3.TERM === "wezterm") {
|
|
41941
|
+
return 3;
|
|
41942
|
+
}
|
|
41943
|
+
if ("TERM_PROGRAM" in env3) {
|
|
41944
|
+
const version = Number.parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
41945
|
+
switch (env3.TERM_PROGRAM) {
|
|
41946
|
+
case "iTerm.app": {
|
|
41947
|
+
return version >= 3 ? 3 : 2;
|
|
41948
|
+
}
|
|
41949
|
+
case "Apple_Terminal": {
|
|
41950
|
+
return 2;
|
|
41951
|
+
}
|
|
42031
41952
|
}
|
|
41953
|
+
}
|
|
41954
|
+
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
41955
|
+
return 2;
|
|
41956
|
+
}
|
|
41957
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
41958
|
+
return 1;
|
|
41959
|
+
}
|
|
41960
|
+
if ("COLORTERM" in env3) {
|
|
41961
|
+
return 1;
|
|
41962
|
+
}
|
|
41963
|
+
return min;
|
|
41964
|
+
}
|
|
41965
|
+
function createSupportsColor2(stream, options = {}) {
|
|
41966
|
+
const level = _supportsColor2(stream, {
|
|
41967
|
+
streamIsTTY: stream && stream.isTTY,
|
|
41968
|
+
...options
|
|
42032
41969
|
});
|
|
42033
|
-
|
|
41970
|
+
return translateLevel2(level);
|
|
41971
|
+
}
|
|
41972
|
+
var env3, flagForceColor2, supportsColor2;
|
|
41973
|
+
var init_supports_color2 = __esm(() => {
|
|
41974
|
+
({ env: env3 } = process19);
|
|
41975
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
41976
|
+
flagForceColor2 = 0;
|
|
41977
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
41978
|
+
flagForceColor2 = 1;
|
|
41979
|
+
}
|
|
41980
|
+
supportsColor2 = {
|
|
41981
|
+
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
41982
|
+
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
41983
|
+
};
|
|
42034
41984
|
});
|
|
42035
41985
|
|
|
42036
|
-
// node_modules/
|
|
42037
|
-
|
|
42038
|
-
|
|
42039
|
-
const
|
|
42040
|
-
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
|
|
42047
|
-
|
|
42048
|
-
|
|
41986
|
+
// node_modules/has-flag/index.js
|
|
41987
|
+
import process20 from "process";
|
|
41988
|
+
function hasFlag3(flag, argv = process20.argv) {
|
|
41989
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
41990
|
+
const position = argv.indexOf(prefix + flag);
|
|
41991
|
+
const terminatorPosition = argv.indexOf("--");
|
|
41992
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
41993
|
+
}
|
|
41994
|
+
var init_has_flag = () => {};
|
|
41995
|
+
|
|
41996
|
+
// node_modules/supports-hyperlinks/index.js
|
|
41997
|
+
import process21 from "node:process";
|
|
41998
|
+
function parseVersion(versionString = "") {
|
|
41999
|
+
if (/^\d{3,4}$/.test(versionString)) {
|
|
42000
|
+
const match2 = /(\d{1,2})(\d{2})/.exec(versionString) ?? [];
|
|
42001
|
+
return {
|
|
42002
|
+
major: 0,
|
|
42003
|
+
minor: Number.parseInt(match2[1], 10),
|
|
42004
|
+
patch: Number.parseInt(match2[2], 10)
|
|
42049
42005
|
};
|
|
42050
|
-
}
|
|
42051
|
-
|
|
42006
|
+
}
|
|
42007
|
+
const versions = (versionString ?? "").split(".").map((n) => Number.parseInt(n, 10));
|
|
42008
|
+
return {
|
|
42009
|
+
major: versions[0],
|
|
42010
|
+
minor: versions[1],
|
|
42011
|
+
patch: versions[2]
|
|
42012
|
+
};
|
|
42052
42013
|
}
|
|
42053
|
-
|
|
42054
|
-
|
|
42014
|
+
function createSupportsHyperlinks(stream) {
|
|
42015
|
+
const {
|
|
42016
|
+
CI,
|
|
42017
|
+
CURSOR_TRACE_ID,
|
|
42018
|
+
FORCE_HYPERLINK,
|
|
42019
|
+
NETLIFY,
|
|
42020
|
+
TEAMCITY_VERSION,
|
|
42021
|
+
TERM_PROGRAM,
|
|
42022
|
+
TERM_PROGRAM_VERSION,
|
|
42023
|
+
VTE_VERSION,
|
|
42024
|
+
TERM
|
|
42025
|
+
} = process21.env;
|
|
42026
|
+
if (FORCE_HYPERLINK) {
|
|
42027
|
+
return !(FORCE_HYPERLINK.length > 0 && Number.parseInt(FORCE_HYPERLINK, 10) === 0);
|
|
42028
|
+
}
|
|
42029
|
+
if (hasFlag3("no-hyperlink") || hasFlag3("no-hyperlinks") || hasFlag3("hyperlink=false") || hasFlag3("hyperlink=never")) {
|
|
42030
|
+
return false;
|
|
42031
|
+
}
|
|
42032
|
+
if (hasFlag3("hyperlink=true") || hasFlag3("hyperlink=always")) {
|
|
42033
|
+
return true;
|
|
42034
|
+
}
|
|
42035
|
+
if (NETLIFY) {
|
|
42036
|
+
return true;
|
|
42037
|
+
}
|
|
42038
|
+
if (!createSupportsColor2(stream)) {
|
|
42039
|
+
return false;
|
|
42040
|
+
}
|
|
42041
|
+
if (stream && !stream.isTTY) {
|
|
42042
|
+
return false;
|
|
42043
|
+
}
|
|
42044
|
+
if ("WT_SESSION" in process21.env) {
|
|
42045
|
+
return true;
|
|
42046
|
+
}
|
|
42047
|
+
if (process21.platform === "win32") {
|
|
42048
|
+
return false;
|
|
42049
|
+
}
|
|
42050
|
+
if (CI) {
|
|
42051
|
+
return false;
|
|
42052
|
+
}
|
|
42053
|
+
if (TEAMCITY_VERSION) {
|
|
42054
|
+
return false;
|
|
42055
|
+
}
|
|
42056
|
+
if (TERM_PROGRAM) {
|
|
42057
|
+
const version = parseVersion(TERM_PROGRAM_VERSION);
|
|
42058
|
+
switch (TERM_PROGRAM) {
|
|
42059
|
+
case "iTerm.app": {
|
|
42060
|
+
if (version.major === 3) {
|
|
42061
|
+
return version.minor >= 1;
|
|
42062
|
+
}
|
|
42063
|
+
return version.major > 3;
|
|
42064
|
+
}
|
|
42065
|
+
case "WezTerm": {
|
|
42066
|
+
if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
|
|
42067
|
+
const date = TERM_PROGRAM_VERSION.slice("0-unstable-".length);
|
|
42068
|
+
return date >= "2020-06-20";
|
|
42069
|
+
}
|
|
42070
|
+
return version.major >= 20200620;
|
|
42071
|
+
}
|
|
42072
|
+
case "vscode": {
|
|
42073
|
+
if (CURSOR_TRACE_ID) {
|
|
42074
|
+
return true;
|
|
42075
|
+
}
|
|
42076
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
|
42077
|
+
}
|
|
42078
|
+
case "ghostty": {
|
|
42079
|
+
return true;
|
|
42080
|
+
}
|
|
42081
|
+
}
|
|
42082
|
+
}
|
|
42083
|
+
if (VTE_VERSION) {
|
|
42084
|
+
if (VTE_VERSION === "0.50.0") {
|
|
42085
|
+
return false;
|
|
42086
|
+
}
|
|
42087
|
+
const version = parseVersion(VTE_VERSION);
|
|
42088
|
+
return version.major > 0 || version.minor >= 50;
|
|
42089
|
+
}
|
|
42090
|
+
switch (TERM) {
|
|
42091
|
+
case "alacritty": {
|
|
42092
|
+
return true;
|
|
42093
|
+
}
|
|
42094
|
+
case "xterm-kitty": {
|
|
42095
|
+
return true;
|
|
42096
|
+
}
|
|
42097
|
+
}
|
|
42098
|
+
return false;
|
|
42099
|
+
}
|
|
42100
|
+
var supportsHyperlinks, supports_hyperlinks_default;
|
|
42101
|
+
var init_supports_hyperlinks = __esm(() => {
|
|
42102
|
+
init_supports_color2();
|
|
42103
|
+
init_has_flag();
|
|
42104
|
+
supportsHyperlinks = {
|
|
42105
|
+
stdout: createSupportsHyperlinks(process21.stdout),
|
|
42106
|
+
stderr: createSupportsHyperlinks(process21.stderr)
|
|
42107
|
+
};
|
|
42108
|
+
supports_hyperlinks_default = supportsHyperlinks;
|
|
42109
|
+
});
|
|
42110
|
+
|
|
42111
|
+
// node_modules/terminal-link/index.js
|
|
42112
|
+
function terminalLink(text, url, { target = "stdout", ...options } = {}) {
|
|
42113
|
+
if (!supports_hyperlinks_default[target]) {
|
|
42114
|
+
if (options.fallback === false) {
|
|
42115
|
+
return text;
|
|
42116
|
+
}
|
|
42117
|
+
if (typeof options.fallback === "function") {
|
|
42118
|
+
return options.fallback(text, url);
|
|
42119
|
+
}
|
|
42120
|
+
return `${text} ${url}`;
|
|
42121
|
+
}
|
|
42122
|
+
return exports_base.link(text, url);
|
|
42123
|
+
}
|
|
42124
|
+
var init_terminal_link = __esm(() => {
|
|
42125
|
+
init_ansi_escapes();
|
|
42126
|
+
init_supports_hyperlinks();
|
|
42127
|
+
terminalLink.isSupported = supports_hyperlinks_default.stdout;
|
|
42128
|
+
terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
|
|
42129
|
+
terminalLink.stderr.isSupported = supports_hyperlinks_default.stderr;
|
|
42130
|
+
});
|
|
42131
|
+
|
|
42132
|
+
// node_modules/ink-link/dist/index.js
|
|
42133
|
+
var import_jsx_runtime, Link = ({ children, url, fallback = true }) => import_jsx_runtime.jsx(Transform, { transform: (children2) => terminalLink(children2, url, { fallback }), children: import_jsx_runtime.jsx(Text, { children }) }), dist_default4;
|
|
42134
|
+
var init_dist4 = __esm(async () => {
|
|
42135
|
+
init_terminal_link();
|
|
42055
42136
|
await init_build2();
|
|
42056
|
-
|
|
42057
|
-
|
|
42058
|
-
build_default2 = Spinner;
|
|
42137
|
+
import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
42138
|
+
dist_default4 = Link;
|
|
42059
42139
|
});
|
|
42060
42140
|
|
|
42061
42141
|
// src/cli/commands/registry.ts
|
|
@@ -42923,12 +43003,9 @@ function Input({
|
|
|
42923
43003
|
dimColor: true,
|
|
42924
43004
|
children: "Press / for commands or @ for files"
|
|
42925
43005
|
}, undefined, false, undefined, this),
|
|
42926
|
-
/* @__PURE__ */ jsx_dev_runtime15.jsxDEV(
|
|
42927
|
-
|
|
42928
|
-
children:
|
|
42929
|
-
dimColor: true,
|
|
42930
|
-
children: "Discord"
|
|
42931
|
-
}, undefined, false, undefined, this)
|
|
43006
|
+
/* @__PURE__ */ jsx_dev_runtime15.jsxDEV(Text, {
|
|
43007
|
+
dimColor: true,
|
|
43008
|
+
children: "https://discord.gg/letta"
|
|
42932
43009
|
}, undefined, false, undefined, this)
|
|
42933
43010
|
]
|
|
42934
43011
|
}, undefined, true, undefined, this)
|
|
@@ -42945,7 +43022,6 @@ var init_InputRich = __esm(async () => {
|
|
|
42945
43022
|
init_colors();
|
|
42946
43023
|
await __promiseAll([
|
|
42947
43024
|
init_build2(),
|
|
42948
|
-
init_dist4(),
|
|
42949
43025
|
init_build5(),
|
|
42950
43026
|
init_InputAssist(),
|
|
42951
43027
|
init_PasteAwareTextInput(),
|
|
@@ -44394,7 +44470,7 @@ ${detail}` : "";
|
|
|
44394
44470
|
kind: "command",
|
|
44395
44471
|
id: cmdId2,
|
|
44396
44472
|
input: msg,
|
|
44397
|
-
output: "
|
|
44473
|
+
output: "Logging out...",
|
|
44398
44474
|
phase: "running"
|
|
44399
44475
|
});
|
|
44400
44476
|
buffersRef.current.order.push(cmdId2);
|
|
@@ -44403,6 +44479,10 @@ ${detail}` : "";
|
|
|
44403
44479
|
try {
|
|
44404
44480
|
const { settingsManager: settingsManager3 } = await Promise.resolve().then(() => (init_settings_manager(), exports_settings_manager));
|
|
44405
44481
|
const currentSettings = settingsManager3.getSettings();
|
|
44482
|
+
if (currentSettings.refreshToken) {
|
|
44483
|
+
const { revokeToken: revokeToken3 } = await Promise.resolve().then(() => (init_oauth(), exports_oauth));
|
|
44484
|
+
await revokeToken3(currentSettings.refreshToken);
|
|
44485
|
+
}
|
|
44406
44486
|
const newEnv = { ...currentSettings.env };
|
|
44407
44487
|
delete newEnv.LETTA_API_KEY;
|
|
44408
44488
|
settingsManager3.updateSettings({
|
|
@@ -45824,8 +45904,8 @@ Note: Flags should use double dashes for full names (e.g., --yolo, not -yolo)`);
|
|
|
45824
45904
|
await runSetup2();
|
|
45825
45905
|
return main();
|
|
45826
45906
|
}
|
|
45827
|
-
const { validateCredentials:
|
|
45828
|
-
const isValid = await
|
|
45907
|
+
const { validateCredentials: validateCredentials3 } = await Promise.resolve().then(() => (init_oauth2(), exports_oauth2));
|
|
45908
|
+
const isValid = await validateCredentials3(baseURL, apiKey ?? "");
|
|
45829
45909
|
if (!isValid) {
|
|
45830
45910
|
if (isHeadless) {
|
|
45831
45911
|
console.error("Failed to connect to Letta server");
|
|
@@ -45999,4 +46079,4 @@ Note: Flags should use double dashes for full names (e.g., --yolo, not -yolo)`);
|
|
|
45999
46079
|
}
|
|
46000
46080
|
main();
|
|
46001
46081
|
|
|
46002
|
-
//# debugId=
|
|
46082
|
+
//# debugId=2DFAA80260F695BF64756E2164756E21
|