@rtc-agent/component 0.2.9-rc.0 → 0.2.9-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/input-area/rtc-input-area.d.ts.map +1 -1
- package/dist/components/input-area/rtc-input-area.styles.d.ts.map +1 -1
- package/dist/{en-US-CpXp6drY.js → en-US-DUdx4QEY.js} +1 -1
- package/dist/{highlight-languages-DwYGpLW6.js → highlight-languages-BVzldaaL.js} +1 -1
- package/dist/{index-DJBmvsa_.js → index-BOwm7U7f.js} +440 -388
- package/dist/index.js +1 -1
- package/dist/index.umd.js +55 -3
- package/dist/stats.html +1 -1
- package/package.json +5 -5
|
@@ -289,7 +289,7 @@ zc.elementStyles = [], zc.shadowRootOptions = { mode: "open" }, zc[qd("elementPr
|
|
|
289
289
|
*/
|
|
290
290
|
const $d = globalThis, E_ = (t) => t, em = $d.trustedTypes, A_ = em ? em.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, IA = "$lit$", Ga = `lit$${Math.random().toFixed(9).slice(2)}$`, OA = "?" + Ga, m3 = `<${OA}>`, Zl = document, Kd = () => Zl.createComment(""), Gd = (t) => t === null || typeof t != "object" && typeof t != "function", Mv = Array.isArray, y3 = (t) => Mv(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Dg = `[
|
|
291
291
|
\f\r]`, Qu = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, P_ = /-->/g, C_ = />/g, Sl = RegExp(`>|${Dg}(?:([^\\s"'>=/]+)(${Dg}*=${Dg}*(?:[^
|
|
292
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), k_ = /'/g, I_ = /"/g, NA = /^(?:script|style|textarea|title)$/i, DA = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }),
|
|
292
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), k_ = /'/g, I_ = /"/g, NA = /^(?:script|style|textarea|title)$/i, DA = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), at = DA(1), MA = DA(2), Aa = Symbol.for("lit-noChange"), Kt = Symbol.for("lit-nothing"), O_ = /* @__PURE__ */ new WeakMap(), Vl = Zl.createTreeWalker(Zl, 129);
|
|
293
293
|
function LA(t, e) {
|
|
294
294
|
if (!Mv(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
295
295
|
return A_ !== void 0 ? A_.createHTML(e) : e;
|
|
@@ -8428,7 +8428,7 @@ rm.exports;
|
|
|
8428
8428
|
ot === 1 / 0 && Ne.inRange && Ne.range !== 1 / 0 && (yt = !1), Ne.target && !(yt ? Ne.inRange && ot !== 1 / 0 ? ht / ot < Ne.distance / Ne.range : ot === 1 / 0 && Ne.range !== 1 / 0 || ht < Ne.distance : !Ne.inRange && ht < Ne.distance) || (Ne.target = mt, Ne.distance = ht, Ne.range = ot, Ne.inRange = yt, Ne.delta.x = st, Ne.delta.y = ft);
|
|
8429
8429
|
}
|
|
8430
8430
|
return Ne.inRange && (I.x = Ne.target.x, I.y = Ne.target.y), W.closest = Ne, Ne;
|
|
8431
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } },
|
|
8431
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, lt = In(Ye, "snap"), At = { start: function(w) {
|
|
8432
8432
|
var x = w.state, I = w.edges, W = x.options;
|
|
8433
8433
|
if (!I) return null;
|
|
8434
8434
|
w.state = { options: { targets: null, relativePoints: [{ x: I.left ? 0 : 1, y: I.top ? 0 : 1 }], offset: W.offset || "self", origin: { x: 0, y: 0 }, range: W.range } }, x.targetFields = x.targetFields || [["width", "height"], ["x", "y"]], Ye.start(w), x.offsets = w.state.offsets, w.state = x;
|
|
@@ -8453,7 +8453,7 @@ rm.exports;
|
|
|
8453
8453
|
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, Bt = In(At, "snapSize"), $t = { aspectRatio: Ms, restrictEdges: d, restrict: Ls, restrictRect: D, restrictSize: $e, snapEdges: In({ start: function(w) {
|
|
8454
8454
|
var x = w.edges;
|
|
8455
8455
|
return x ? (w.state.targetFields = w.state.targetFields || [[x.left ? "left" : "right", x.top ? "top" : "bottom"]], At.start(w)) : null;
|
|
8456
|
-
}, set: At.set, defaults: Le(Rn(At.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap:
|
|
8456
|
+
}, set: At.set, defaults: Le(Rn(At.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: lt, snapSize: Bt, spring: on, avoid: on, transform: on, rubberband: on }, Jt = { id: "modifiers", install: function(w) {
|
|
8457
8457
|
var x = w.interactStatic;
|
|
8458
8458
|
for (var I in w.usePlugin(ai), w.usePlugin(_i), x.modifiers = $t, $t) {
|
|
8459
8459
|
var W = $t[I], ne = W._defaults, fe = W._methods;
|
|
@@ -11267,7 +11267,7 @@ var oP = { exports: {} };
|
|
|
11267
11267
|
b.queries.query[it] = mt;
|
|
11268
11268
|
}
|
|
11269
11269
|
}
|
|
11270
|
-
function
|
|
11270
|
+
function lt(b) {
|
|
11271
11271
|
var T = b._state, L = b._deps.indexedDB;
|
|
11272
11272
|
if (T.isBeingOpened || b.idbdb) return T.dbReadyPromise.then(function() {
|
|
11273
11273
|
return T.dbOpenError ? Xr(T.dbOpenError) : b;
|
|
@@ -11835,7 +11835,7 @@ var oP = { exports: {} };
|
|
|
11835
11835
|
}, w.prototype.open = function() {
|
|
11836
11836
|
var b = this;
|
|
11837
11837
|
return ln(Ze, function() {
|
|
11838
|
-
return
|
|
11838
|
+
return lt(b);
|
|
11839
11839
|
});
|
|
11840
11840
|
}, w.prototype._close = function() {
|
|
11841
11841
|
this.on.close.fire(new CustomEvent("close"));
|
|
@@ -12940,7 +12940,7 @@ function Yn() {
|
|
|
12940
12940
|
if (K_) return Ve;
|
|
12941
12941
|
K_ = 1, Object.defineProperty(Ve, "__esModule", {
|
|
12942
12942
|
value: !0
|
|
12943
|
-
}), Ve.isAccessor = pg, Ve.isAnyTypeAnnotation = _n, Ve.isArgumentPlaceholder = Li, Ve.isArrayExpression = r, Ve.isArrayPattern = nt, Ve.isArrayTypeAnnotation = Yr, Ve.isArrowFunctionExpression = et, Ve.isAssignmentExpression = n, Ve.isAssignmentPattern = Ge, Ve.isAwaitExpression = Ie, Ve.isBigIntLiteral = Nt, Ve.isBinary = Ft, Ve.isBinaryExpression = i, Ve.isBindExpression = Qs, Ve.isBlock = xr, Ve.isBlockParent = mr, Ve.isBlockStatement = c, Ve.isBooleanLiteral = pe, Ve.isBooleanLiteralTypeAnnotation = ns, Ve.isBooleanTypeAnnotation = er, Ve.isBreakStatement = p, Ve.isCallExpression = f, Ve.isCatchClause = m, Ve.isClass = cg, Ve.isClassAccessorProperty = Er, Ve.isClassBody = Dt, Ve.isClassDeclaration = je, Ve.isClassExpression = Ot, Ve.isClassImplements = pn, Ve.isClassMethod = tt, Ve.isClassPrivateMethod = yn, Ve.isClassPrivateProperty = zr, Ve.isClassProperty = yr, Ve.isCompletionStatement = $, Ve.isConditional = H, Ve.isConditionalExpression = y, Ve.isContinueStatement = _, Ve.isDebuggerStatement = N, Ve.isDecimalLiteral = Ms, Ve.isDeclaration = Jy, Ve.isDeclareClass = sr, Ve.isDeclareExportAllDeclaration = ii, Ve.isDeclareExportDeclaration = Xr, Ve.isDeclareFunction = Tn, Ve.isDeclareInterface = Ai, Ve.isDeclareModule = Ln, Ve.isDeclareModuleExports = Ui, Ve.isDeclareOpaqueType = ni, Ve.isDeclareTypeAlias = ln, Ve.isDeclareVariable = is, Ve.isDeclaredPredicate = Xn, Ve.isDecorator = xo, Ve.isDirective = o, Ve.isDirectiveLiteral = l, Ve.isDoExpression = _i, Ve.isDoWhileStatement = A, Ve.isEmptyStatement = C, Ve.isEmptyTypeAnnotation = os, Ve.isEnumBody = vg, Ve.isEnumBooleanBody = wn, Ve.isEnumBooleanMember = jn, Ve.isEnumDeclaration = sn, Ve.isEnumDefaultedMember = ds, Ve.isEnumMember = _g, Ve.isEnumNumberBody = Fn, Ve.isEnumNumberMember = vo, Ve.isEnumStringBody = Mi, Ve.isEnumStringMember = En, Ve.isEnumSymbolBody = us, Ve.isExistsTypeAnnotation = fi, Ve.isExportAllDeclaration = Me, Ve.isExportDeclaration = ug, Ve.isExportDefaultDeclaration = me, Ve.isExportDefaultSpecifier = Yi, Ve.isExportNamedDeclaration = ue, Ve.isExportNamespaceSpecifier = Mt, Ve.isExportSpecifier = be, Ve.isExpression = nr, Ve.isExpressionStatement = O, Ve.isExpressionWrapper = wt, Ve.isFile = S, Ve.isFlow = hg, Ve.isFlowBaseAnnotation = yg, Ve.isFlowDeclaration = gg, Ve.isFlowPredicate = bg, Ve.isFlowType = mg, Ve.isFor = Xt, Ve.isForInStatement = P, Ve.isForOfStatement = re, Ve.isForStatement = E, Ve.isForXStatement = Zr, Ve.isFunction = Un, Ve.isFunctionDeclaration = j, Ve.isFunctionExpression = F, Ve.isFunctionParameter = Xy, Ve.isFunctionParent = io, Ve.isFunctionTypeAnnotation = kn, Ve.isFunctionTypeParam = si, Ve.isGenericTypeAnnotation = Ni, Ve.isIdentifier = k, Ve.isIfStatement = q, Ve.isImmutable = rg, Ve.isImport = xt, Ve.isImportAttribute = dn, Ve.isImportDeclaration = Se, Ve.isImportDefaultSpecifier = Je, Ve.isImportExpression = R, Ve.isImportNamespaceSpecifier = X, Ve.isImportOrExportDeclaration = $p, Ve.isImportSpecifier = M, Ve.isIndexedAccessType = ks, Ve.isInferredPredicate = hi, Ve.isInterfaceDeclaration = Vi, Ve.isInterfaceExtends = ss, Ve.isInterfaceTypeAnnotation = zi, Ve.isInterpreterDirective = s, Ve.isIntersectionTypeAnnotation = Tr, Ve.isJSX = xg, Ve.isJSXAttribute = bi, Ve.isJSXClosingElement = ps, Ve.isJSXClosingFragment = Ns, Ve.isJSXElement = fs, Ve.isJSXEmptyExpression = Xs, Ve.isJSXExpressionContainer = Hi, Ve.isJSXFragment = Zs, Ve.isJSXIdentifier = Os, Ve.isJSXMemberExpression = Ki, Ve.isJSXNamespacedName = Ci, Ve.isJSXOpeningElement = hs, Ve.isJSXOpeningFragment = ms, Ve.isJSXSpreadAttribute = _o, Ve.isJSXSpreadChild = Is, Ve.isJSXText = vi, Ve.isLVal = Qy, Ve.isLabeledStatement = ae, Ve.isLiteral = tg, Ve.isLogicalExpression = qe, Ve.isLoop = ye, Ve.isMemberExpression = Fe, Ve.isMetaProperty = ke, Ve.isMethod = ig, Ve.isMiscellaneous = wg, Ve.isMixedTypeAnnotation = Es, Ve.isModuleDeclaration = Og, Ve.isModuleExpression = bs, Ve.isModuleSpecifier = dg, Ve.isNewExpression = ve, Ve.isNoop = ys, Ve.isNullLiteral = K, Ve.isNullLiteralTypeAnnotation = Cn, Ve.isNullableTypeAnnotation = mi, Ve.isNumberLiteral = Pg, Ve.isNumberLiteralTypeAnnotation = gn, Ve.isNumberTypeAnnotation = Ks, Ve.isNumericLiteral = B, Ve.isObjectExpression = Z, Ve.isObjectMember = sg, Ve.isObjectMethod = J, Ve.isObjectPattern = Ze, Ve.isObjectProperty = ge, Ve.isObjectTypeAnnotation = as, Ve.isObjectTypeCallProperty = Ur, Ve.isObjectTypeIndexer = Bn, Ve.isObjectTypeInternalSlot = Gs, Ve.isObjectTypeProperty = Rn, Ve.isObjectTypeSpreadProperty = yi, Ve.isOpaqueType = Di, Ve.isOptionalCallExpression = or, Ve.isOptionalIndexedAccessType = Gt, Ve.isOptionalMemberExpression = Qt, Ve.isParenthesizedExpression = te, Ve.isPattern = lg, Ve.isPatternLike = Zy, Ve.isPipelineBareFunction = On, Ve.isPipelinePrimaryTopicReference = Ls, Ve.isPipelineTopicExpression = qn, Ve.isPlaceholder = Gi, Ve.isPrivate = fg, Ve.isPrivateName = Sr, Ve.isProgram = _e, Ve.isProperty = og, Ve.isPureish = Yy, Ve.isQualifiedTypeIdentifier = In, Ve.isRecordExpression = Ds, Ve.isRegExpLiteral = Ae, Ve.isRegexLiteral = Cg, Ve.isRestElement = de, Ve.isRestProperty = kg, Ve.isReturnStatement = Y, Ve.isScopable = hr, Ve.isSequenceExpression = V, Ve.isSpreadElement = dt, Ve.isSpreadProperty = Ig, Ve.isStandardized = zt, Ve.isStatement = Or, Ve.isStaticBlock = Lr, Ve.isStringLiteral = se, Ve.isStringLiteralTypeAnnotation = oi, Ve.isStringTypeAnnotation = As, Ve.isSuper = oe, Ve.isSwitchCase = Pe, Ve.isSwitchStatement = Ue, Ve.isSymbolTypeAnnotation = ai, Ve.isTSAnyKeyword = Ye, Ve.isTSArrayType = Xi, Ve.isTSAsExpression = Ne, Ve.isTSBaseType = Ag, Ve.isTSBigIntKeyword = At, Ve.isTSBooleanKeyword =
|
|
12943
|
+
}), Ve.isAccessor = pg, Ve.isAnyTypeAnnotation = _n, Ve.isArgumentPlaceholder = Li, Ve.isArrayExpression = r, Ve.isArrayPattern = nt, Ve.isArrayTypeAnnotation = Yr, Ve.isArrowFunctionExpression = et, Ve.isAssignmentExpression = n, Ve.isAssignmentPattern = Ge, Ve.isAwaitExpression = Ie, Ve.isBigIntLiteral = Nt, Ve.isBinary = Ft, Ve.isBinaryExpression = i, Ve.isBindExpression = Qs, Ve.isBlock = xr, Ve.isBlockParent = mr, Ve.isBlockStatement = c, Ve.isBooleanLiteral = pe, Ve.isBooleanLiteralTypeAnnotation = ns, Ve.isBooleanTypeAnnotation = er, Ve.isBreakStatement = p, Ve.isCallExpression = f, Ve.isCatchClause = m, Ve.isClass = cg, Ve.isClassAccessorProperty = Er, Ve.isClassBody = Dt, Ve.isClassDeclaration = je, Ve.isClassExpression = Ot, Ve.isClassImplements = pn, Ve.isClassMethod = tt, Ve.isClassPrivateMethod = yn, Ve.isClassPrivateProperty = zr, Ve.isClassProperty = yr, Ve.isCompletionStatement = $, Ve.isConditional = H, Ve.isConditionalExpression = y, Ve.isContinueStatement = _, Ve.isDebuggerStatement = N, Ve.isDecimalLiteral = Ms, Ve.isDeclaration = Jy, Ve.isDeclareClass = sr, Ve.isDeclareExportAllDeclaration = ii, Ve.isDeclareExportDeclaration = Xr, Ve.isDeclareFunction = Tn, Ve.isDeclareInterface = Ai, Ve.isDeclareModule = Ln, Ve.isDeclareModuleExports = Ui, Ve.isDeclareOpaqueType = ni, Ve.isDeclareTypeAlias = ln, Ve.isDeclareVariable = is, Ve.isDeclaredPredicate = Xn, Ve.isDecorator = xo, Ve.isDirective = o, Ve.isDirectiveLiteral = l, Ve.isDoExpression = _i, Ve.isDoWhileStatement = A, Ve.isEmptyStatement = C, Ve.isEmptyTypeAnnotation = os, Ve.isEnumBody = vg, Ve.isEnumBooleanBody = wn, Ve.isEnumBooleanMember = jn, Ve.isEnumDeclaration = sn, Ve.isEnumDefaultedMember = ds, Ve.isEnumMember = _g, Ve.isEnumNumberBody = Fn, Ve.isEnumNumberMember = vo, Ve.isEnumStringBody = Mi, Ve.isEnumStringMember = En, Ve.isEnumSymbolBody = us, Ve.isExistsTypeAnnotation = fi, Ve.isExportAllDeclaration = Me, Ve.isExportDeclaration = ug, Ve.isExportDefaultDeclaration = me, Ve.isExportDefaultSpecifier = Yi, Ve.isExportNamedDeclaration = ue, Ve.isExportNamespaceSpecifier = Mt, Ve.isExportSpecifier = be, Ve.isExpression = nr, Ve.isExpressionStatement = O, Ve.isExpressionWrapper = wt, Ve.isFile = S, Ve.isFlow = hg, Ve.isFlowBaseAnnotation = yg, Ve.isFlowDeclaration = gg, Ve.isFlowPredicate = bg, Ve.isFlowType = mg, Ve.isFor = Xt, Ve.isForInStatement = P, Ve.isForOfStatement = re, Ve.isForStatement = E, Ve.isForXStatement = Zr, Ve.isFunction = Un, Ve.isFunctionDeclaration = j, Ve.isFunctionExpression = F, Ve.isFunctionParameter = Xy, Ve.isFunctionParent = io, Ve.isFunctionTypeAnnotation = kn, Ve.isFunctionTypeParam = si, Ve.isGenericTypeAnnotation = Ni, Ve.isIdentifier = k, Ve.isIfStatement = q, Ve.isImmutable = rg, Ve.isImport = xt, Ve.isImportAttribute = dn, Ve.isImportDeclaration = Se, Ve.isImportDefaultSpecifier = Je, Ve.isImportExpression = R, Ve.isImportNamespaceSpecifier = X, Ve.isImportOrExportDeclaration = $p, Ve.isImportSpecifier = M, Ve.isIndexedAccessType = ks, Ve.isInferredPredicate = hi, Ve.isInterfaceDeclaration = Vi, Ve.isInterfaceExtends = ss, Ve.isInterfaceTypeAnnotation = zi, Ve.isInterpreterDirective = s, Ve.isIntersectionTypeAnnotation = Tr, Ve.isJSX = xg, Ve.isJSXAttribute = bi, Ve.isJSXClosingElement = ps, Ve.isJSXClosingFragment = Ns, Ve.isJSXElement = fs, Ve.isJSXEmptyExpression = Xs, Ve.isJSXExpressionContainer = Hi, Ve.isJSXFragment = Zs, Ve.isJSXIdentifier = Os, Ve.isJSXMemberExpression = Ki, Ve.isJSXNamespacedName = Ci, Ve.isJSXOpeningElement = hs, Ve.isJSXOpeningFragment = ms, Ve.isJSXSpreadAttribute = _o, Ve.isJSXSpreadChild = Is, Ve.isJSXText = vi, Ve.isLVal = Qy, Ve.isLabeledStatement = ae, Ve.isLiteral = tg, Ve.isLogicalExpression = qe, Ve.isLoop = ye, Ve.isMemberExpression = Fe, Ve.isMetaProperty = ke, Ve.isMethod = ig, Ve.isMiscellaneous = wg, Ve.isMixedTypeAnnotation = Es, Ve.isModuleDeclaration = Og, Ve.isModuleExpression = bs, Ve.isModuleSpecifier = dg, Ve.isNewExpression = ve, Ve.isNoop = ys, Ve.isNullLiteral = K, Ve.isNullLiteralTypeAnnotation = Cn, Ve.isNullableTypeAnnotation = mi, Ve.isNumberLiteral = Pg, Ve.isNumberLiteralTypeAnnotation = gn, Ve.isNumberTypeAnnotation = Ks, Ve.isNumericLiteral = B, Ve.isObjectExpression = Z, Ve.isObjectMember = sg, Ve.isObjectMethod = J, Ve.isObjectPattern = Ze, Ve.isObjectProperty = ge, Ve.isObjectTypeAnnotation = as, Ve.isObjectTypeCallProperty = Ur, Ve.isObjectTypeIndexer = Bn, Ve.isObjectTypeInternalSlot = Gs, Ve.isObjectTypeProperty = Rn, Ve.isObjectTypeSpreadProperty = yi, Ve.isOpaqueType = Di, Ve.isOptionalCallExpression = or, Ve.isOptionalIndexedAccessType = Gt, Ve.isOptionalMemberExpression = Qt, Ve.isParenthesizedExpression = te, Ve.isPattern = lg, Ve.isPatternLike = Zy, Ve.isPipelineBareFunction = On, Ve.isPipelinePrimaryTopicReference = Ls, Ve.isPipelineTopicExpression = qn, Ve.isPlaceholder = Gi, Ve.isPrivate = fg, Ve.isPrivateName = Sr, Ve.isProgram = _e, Ve.isProperty = og, Ve.isPureish = Yy, Ve.isQualifiedTypeIdentifier = In, Ve.isRecordExpression = Ds, Ve.isRegExpLiteral = Ae, Ve.isRegexLiteral = Cg, Ve.isRestElement = de, Ve.isRestProperty = kg, Ve.isReturnStatement = Y, Ve.isScopable = hr, Ve.isSequenceExpression = V, Ve.isSpreadElement = dt, Ve.isSpreadProperty = Ig, Ve.isStandardized = zt, Ve.isStatement = Or, Ve.isStaticBlock = Lr, Ve.isStringLiteral = se, Ve.isStringLiteralTypeAnnotation = oi, Ve.isStringTypeAnnotation = As, Ve.isSuper = oe, Ve.isSwitchCase = Pe, Ve.isSwitchStatement = Ue, Ve.isSymbolTypeAnnotation = ai, Ve.isTSAnyKeyword = Ye, Ve.isTSArrayType = Xi, Ve.isTSAsExpression = Ne, Ve.isTSBaseType = Ag, Ve.isTSBigIntKeyword = At, Ve.isTSBooleanKeyword = lt, Ve.isTSCallSignatureDeclaration = g, Ve.isTSConditionalType = fe, Ve.isTSConstructSignatureDeclaration = D, Ve.isTSConstructorType = Rs, Ve.isTSDeclareFunction = u, Ve.isTSDeclareMethod = a, Ve.isTSEntityName = eg, Ve.isTSEnumBody = ot, Ve.isTSEnumDeclaration = st, Ve.isTSEnumMember = ft, Ve.isTSExportAssignment = It, Ve.isTSExpressionWithTypeArguments = L, Ve.isTSExternalModuleReference = Et, Ve.isTSFunctionType = vs, Ve.isTSImportEqualsDeclaration = vt, Ve.isTSImportType = gt, Ve.isTSIndexSignature = $e, Ve.isTSIndexedAccessType = ct, Ve.isTSInferType = Ee, Ve.isTSInstantiationExpression = Te, Ve.isTSInterfaceBody = ee, Ve.isTSInterfaceDeclaration = U, Ve.isTSIntersectionType = ne, Ve.isTSIntrinsicKeyword = Bt, Ve.isTSLiteralType = T, Ve.isTSMappedType = Xe, Ve.isTSMethodSignature = we, Ve.isTSModuleBlock = yt, Ve.isTSModuleDeclaration = ht, Ve.isTSNamedTupleMember = I, Ve.isTSNamespaceExportDeclaration = Rt, Ve.isTSNeverKeyword = $t, Ve.isTSNonNullExpression = Tt, Ve.isTSNullKeyword = Jt, Ve.isTSNumberKeyword = Ar, Ve.isTSObjectKeyword = Wr, Ve.isTSOptionalType = w, Ve.isTSParameterProperty = ie, Ve.isTSParenthesizedType = De, Ve.isTSPropertySignature = le, Ve.isTSQualifiedName = d, Ve.isTSRestType = x, Ve.isTSSatisfiesExpression = it, Ve.isTSStringKeyword = dr, Ve.isTSSymbolKeyword = kr, Ve.isTSTemplateLiteralType = b, Ve.isTSThisType = Bs, Ve.isTSTupleType = Qn, Ve.isTSType = Eg, Ve.isTSTypeAliasDeclaration = he, Ve.isTSTypeAnnotation = jt, Ve.isTSTypeAssertion = mt, Ve.isTSTypeElement = Tg, Ve.isTSTypeLiteral = no, Ve.isTSTypeOperator = We, Ve.isTSTypeParameter = tr, Ve.isTSTypeParameterDeclaration = Ut, Ve.isTSTypeParameterInstantiation = Wt, Ve.isTSTypePredicate = to, Ve.isTSTypeQuery = ro, Ve.isTSTypeReference = Fs, Ve.isTSUndefinedKeyword = li, Ve.isTSUnionType = W, Ve.isTSUnknownKeyword = $n, Ve.isTSVoidKeyword = eo, Ve.isTaggedTemplateExpression = xe, Ve.isTemplateElement = Q, Ve.isTemplateLiteral = Ce, Ve.isTerminatorless = z, Ve.isThisExpression = Re, Ve.isThisTypeAnnotation = Ps, Ve.isThrowStatement = Le, Ve.isTopicReference = on, Ve.isTryStatement = Qe, Ve.isTupleExpression = gs, Ve.isTupleTypeAnnotation = Zn, Ve.isTypeAlias = Ys, Ve.isTypeAnnotation = Js, Ve.isTypeCastExpression = ls, Ve.isTypeParameter = xn, Ve.isTypeParameterDeclaration = Pi, Ve.isTypeParameterInstantiation = Wi, Ve.isTypeScript = Sg, Ve.isTypeofTypeAnnotation = Ir, Ve.isUnaryExpression = ut, Ve.isUnaryLike = ag, Ve.isUnionTypeAnnotation = gi, Ve.isUpdateExpression = _t, Ve.isUserWhitespacable = ng, Ve.isV8IntrinsicIdentifier = an, Ve.isVariableDeclaration = Pt, Ve.isVariableDeclarator = St, Ve.isVariance = cs, Ve.isVoidPattern = Ji, Ve.isVoidTypeAnnotation = Cs, Ve.isWhile = Ke, Ve.isWhileStatement = kt, Ve.isWithStatement = rt, Ve.isYieldExpression = pt;
|
|
12944
12944
|
var t = $v(), e = wp();
|
|
12945
12945
|
function r(v, h) {
|
|
12946
12946
|
return !v || v.type !== "ArrayExpression" ? !1 : h == null || (0, t.default)(v, h);
|
|
@@ -13530,7 +13530,7 @@ function Yn() {
|
|
|
13530
13530
|
function Ye(v, h) {
|
|
13531
13531
|
return !v || v.type !== "TSAnyKeyword" ? !1 : h == null || (0, t.default)(v, h);
|
|
13532
13532
|
}
|
|
13533
|
-
function
|
|
13533
|
+
function lt(v, h) {
|
|
13534
13534
|
return !v || v.type !== "TSBooleanKeyword" ? !1 : h == null || (0, t.default)(v, h);
|
|
13535
13535
|
}
|
|
13536
13536
|
function At(v, h) {
|
|
@@ -18497,7 +18497,7 @@ function bP() {
|
|
|
18497
18497
|
if (_x) return Be;
|
|
18498
18498
|
_x = 1, Object.defineProperty(Be, "__esModule", {
|
|
18499
18499
|
value: !0
|
|
18500
|
-
}), Be.anyTypeAnnotation = ns, Be.argumentPlaceholder = _i, Be.arrayExpression = o, Be.arrayPattern = je, Be.arrayTypeAnnotation = Cn, Be.arrowFunctionExpression = Me, Be.assignmentExpression = l, Be.assignmentPattern = Ot, Be.awaitExpression = Qt, Be.bigIntLiteral = s, Be.binaryExpression = c, Be.bindExpression = Yi, Be.blockStatement = y, Be.booleanLiteral = ve, Be.booleanLiteralTypeAnnotation = sr, Be.booleanTypeAnnotation = pn, Be.breakStatement = _, Be.callExpression = N, Be.catchClause = A, Be.classAccessorProperty = Sr, Be.classBody = me, Be.classDeclaration = be, Be.classExpression = ue, Be.classImplements = Ai, Be.classMethod = xe, Be.classPrivateMethod = dn, Be.classPrivateProperty = Lr, Be.classProperty = yn, Be.conditionalExpression = C, Be.continueStatement = O, Be.debuggerStatement = S, Be.decimalLiteral = qn, Be.declareClass = Ln, Be.declareExportAllDeclaration = kn, Be.declareExportDeclaration = fi, Be.declareFunction = Ui, Be.declareInterface = ln, Be.declareModule = ni, Be.declareModuleExports = is, Be.declareOpaqueType = ii, Be.declareTypeAlias = Xr, Be.declareVariable = Xn, Be.declaredPredicate = si, Be.decorator = Ds, Be.directive = f, Be.directiveLiteral = m, Be.doExpression = gs, Be.doWhileStatement = P, Be.emptyStatement = E, Be.emptyTypeAnnotation = Ks, Be.enumBooleanBody = us, Be.enumBooleanMember = ds, Be.enumDeclaration = Mi, Be.enumDefaultedMember = bi, Be.enumNumberBody = jn, Be.enumNumberMember = ks, Be.enumStringBody = vo, Be.enumStringMember = Gt, Be.enumSymbolBody = En, Be.existsTypeAnnotation = Ni, Be.exportAllDeclaration = re, Be.exportDefaultDeclaration = Se, Be.exportDefaultSpecifier = Ms, Be.exportNamedDeclaration = Je, Be.exportNamespaceSpecifier = yr, Be.exportSpecifier = X, Be.expressionStatement = j, Be.file = F, Be.forInStatement = k, Be.forOfStatement = M, Be.forStatement = q, Be.functionDeclaration = ae, Be.functionExpression = se, Be.functionTypeAnnotation = hi, Be.functionTypeParam = ss, Be.genericTypeAnnotation = Vi, Be.identifier = B, Be.ifStatement = K, Be.import = or, Be.importAttribute = er, Be.importDeclaration = R, Be.importDefaultSpecifier = ke, Be.importExpression = dt, Be.importNamespaceSpecifier = tt, Be.importSpecifier = Ze, Be.indexedAccessType = ps, Be.inferredPredicate = zi, Be.interfaceDeclaration = Es, Be.interfaceExtends = Tr, Be.interfaceTypeAnnotation = os, Be.interpreterDirective = p, Be.intersectionTypeAnnotation = mi, Be.jSXAttribute = Be.jsxAttribute = Xs, Be.jSXClosingElement = Be.jsxClosingElement = Hi, Be.jSXClosingFragment = Be.jsxClosingFragment = an, Be.jSXElement = Be.jsxElement = Is, Be.jSXEmptyExpression = Be.jsxEmptyExpression = Os, Be.jSXExpressionContainer = Be.jsxExpressionContainer = Ki, Be.jSXFragment = Be.jsxFragment = ys, Be.jSXIdentifier = Be.jsxIdentifier = hs, Be.jSXMemberExpression = Be.jsxMemberExpression = _o, Be.jSXNamespacedName = Be.jsxNamespacedName = vi, Be.jSXOpeningElement = Be.jsxOpeningElement = Zs, Be.jSXOpeningFragment = Be.jsxOpeningFragment = Gi, Be.jSXSpreadAttribute = Be.jsxSpreadAttribute = ms, Be.jSXSpreadChild = Be.jsxSpreadChild = Ci, Be.jSXText = Be.jsxText = Ns, Be.labeledStatement = pe, Be.logicalExpression = Z, Be.memberExpression = J, Be.metaProperty = oe, Be.mixedTypeAnnotation = gn, Be.moduleExpression = On, Be.newExpression = ge, Be.noop = Li, Be.nullLiteral = Fe, Be.nullLiteralTypeAnnotation = Tn, Be.nullableTypeAnnotation = as, Be.numberLiteral = hr, Be.numberLiteralTypeAnnotation = Gs, Be.numberTypeAnnotation = Ur, Be.numericLiteral = qe, Be.objectExpression = Y, Be.objectMethod = V, Be.objectPattern = Q, Be.objectProperty = te, Be.objectTypeAnnotation = Bn, Be.objectTypeCallProperty = yi, Be.objectTypeIndexer = Di, Be.objectTypeInternalSlot = Rn, Be.objectTypeProperty = In, Be.objectTypeSpreadProperty = oi, Be.opaqueType = As, Be.optionalCallExpression = zr, Be.optionalIndexedAccessType = fs, Be.optionalMemberExpression = Er, Be.parenthesizedExpression = Le, Be.pipelineBareFunction = ie, Be.pipelinePrimaryTopicReference = u, Be.pipelineTopicExpression = Ji, Be.placeholder = Qs, Be.privateName = _n, Be.program = de, Be.qualifiedTypeIdentifier = ai, Be.recordExpression = bs, Be.regExpLiteral = _e, Be.regexLiteral = mr, Be.restElement = Pe, Be.restProperty = xr, Be.returnStatement = Ue, Be.sequenceExpression = Re, Be.spreadElement = Ce, Be.spreadProperty = Or, Be.staticBlock = Yr, Be.stringLiteral = Ae, Be.stringLiteralTypeAnnotation = Ps, Be.stringTypeAnnotation = Zn, Be.super = pt, Be.switchCase = Qe, Be.switchStatement = ut, Be.symbolTypeAnnotation = Ir, Be.taggedTemplateExpression = Ie, Be.templateElement = xt, Be.templateLiteral = Nt, Be.thisExpression = _t, Be.thisTypeAnnotation = Ys, Be.throwStatement = Pt, Be.topicReference = Ls, Be.tryStatement = St, Be.tSAnyKeyword = Be.tsAnyKeyword = Bt, Be.tSArrayType = Be.tsArrayType = x, Be.tSAsExpression = Be.tsAsExpression = ot, Be.tSBigIntKeyword = Be.tsBigIntKeyword = Jt, Be.tSBooleanKeyword = Be.tsBooleanKeyword = $t, Be.tSCallSignatureDeclaration = Be.tsCallSignatureDeclaration = we, Be.tSConditionalType = Be.tsConditionalType = We, Be.tSConstructSignatureDeclaration = Be.tsConstructSignatureDeclaration = $e, Be.tSConstructorType = Be.tsConstructorType = ro, Be.tSDeclareFunction = Be.tsDeclareFunction = g, Be.tSDeclareMethod = Be.tsDeclareMethod = D, Be.tSEnumBody = Be.tsEnumBody = ht, Be.tSEnumDeclaration = Be.tsEnumDeclaration = yt, Be.tSEnumMember = Be.tsEnumMember = gt, Be.tSExportAssignment = Be.tsExportAssignment = Wt, Be.tSExpressionWithTypeArguments = Be.tsExpressionWithTypeArguments = he, Be.tSExternalModuleReference = Be.tsExternalModuleReference = Rt, Be.tSFunctionType = Be.tsFunctionType = to, Be.tSImportEqualsDeclaration = Be.tsImportEqualsDeclaration = It, Be.tSImportType = Be.tsImportType = Tt, Be.tSIndexSignature = Be.tsIndexSignature = At, Be.tSIndexedAccessType = Be.tsIndexedAccessType = T, Be.tSInferType = Be.tsInferType = ct, Be.tSInstantiationExpression = Be.tsInstantiationExpression = mt, Be.tSInterfaceBody = Be.tsInterfaceBody = Ne, Be.tSInterfaceDeclaration = Be.tsInterfaceDeclaration = Te, Be.tSIntersectionType = Be.tsIntersectionType = De, Be.tSIntrinsicKeyword = Be.tsIntrinsicKeyword = Ar, Be.tSLiteralType = Be.tsLiteralType = ee, Be.tSMappedType = Be.tsMappedType = L, Be.tSMethodSignature = Be.tsMethodSignature =
|
|
18500
|
+
}), Be.anyTypeAnnotation = ns, Be.argumentPlaceholder = _i, Be.arrayExpression = o, Be.arrayPattern = je, Be.arrayTypeAnnotation = Cn, Be.arrowFunctionExpression = Me, Be.assignmentExpression = l, Be.assignmentPattern = Ot, Be.awaitExpression = Qt, Be.bigIntLiteral = s, Be.binaryExpression = c, Be.bindExpression = Yi, Be.blockStatement = y, Be.booleanLiteral = ve, Be.booleanLiteralTypeAnnotation = sr, Be.booleanTypeAnnotation = pn, Be.breakStatement = _, Be.callExpression = N, Be.catchClause = A, Be.classAccessorProperty = Sr, Be.classBody = me, Be.classDeclaration = be, Be.classExpression = ue, Be.classImplements = Ai, Be.classMethod = xe, Be.classPrivateMethod = dn, Be.classPrivateProperty = Lr, Be.classProperty = yn, Be.conditionalExpression = C, Be.continueStatement = O, Be.debuggerStatement = S, Be.decimalLiteral = qn, Be.declareClass = Ln, Be.declareExportAllDeclaration = kn, Be.declareExportDeclaration = fi, Be.declareFunction = Ui, Be.declareInterface = ln, Be.declareModule = ni, Be.declareModuleExports = is, Be.declareOpaqueType = ii, Be.declareTypeAlias = Xr, Be.declareVariable = Xn, Be.declaredPredicate = si, Be.decorator = Ds, Be.directive = f, Be.directiveLiteral = m, Be.doExpression = gs, Be.doWhileStatement = P, Be.emptyStatement = E, Be.emptyTypeAnnotation = Ks, Be.enumBooleanBody = us, Be.enumBooleanMember = ds, Be.enumDeclaration = Mi, Be.enumDefaultedMember = bi, Be.enumNumberBody = jn, Be.enumNumberMember = ks, Be.enumStringBody = vo, Be.enumStringMember = Gt, Be.enumSymbolBody = En, Be.existsTypeAnnotation = Ni, Be.exportAllDeclaration = re, Be.exportDefaultDeclaration = Se, Be.exportDefaultSpecifier = Ms, Be.exportNamedDeclaration = Je, Be.exportNamespaceSpecifier = yr, Be.exportSpecifier = X, Be.expressionStatement = j, Be.file = F, Be.forInStatement = k, Be.forOfStatement = M, Be.forStatement = q, Be.functionDeclaration = ae, Be.functionExpression = se, Be.functionTypeAnnotation = hi, Be.functionTypeParam = ss, Be.genericTypeAnnotation = Vi, Be.identifier = B, Be.ifStatement = K, Be.import = or, Be.importAttribute = er, Be.importDeclaration = R, Be.importDefaultSpecifier = ke, Be.importExpression = dt, Be.importNamespaceSpecifier = tt, Be.importSpecifier = Ze, Be.indexedAccessType = ps, Be.inferredPredicate = zi, Be.interfaceDeclaration = Es, Be.interfaceExtends = Tr, Be.interfaceTypeAnnotation = os, Be.interpreterDirective = p, Be.intersectionTypeAnnotation = mi, Be.jSXAttribute = Be.jsxAttribute = Xs, Be.jSXClosingElement = Be.jsxClosingElement = Hi, Be.jSXClosingFragment = Be.jsxClosingFragment = an, Be.jSXElement = Be.jsxElement = Is, Be.jSXEmptyExpression = Be.jsxEmptyExpression = Os, Be.jSXExpressionContainer = Be.jsxExpressionContainer = Ki, Be.jSXFragment = Be.jsxFragment = ys, Be.jSXIdentifier = Be.jsxIdentifier = hs, Be.jSXMemberExpression = Be.jsxMemberExpression = _o, Be.jSXNamespacedName = Be.jsxNamespacedName = vi, Be.jSXOpeningElement = Be.jsxOpeningElement = Zs, Be.jSXOpeningFragment = Be.jsxOpeningFragment = Gi, Be.jSXSpreadAttribute = Be.jsxSpreadAttribute = ms, Be.jSXSpreadChild = Be.jsxSpreadChild = Ci, Be.jSXText = Be.jsxText = Ns, Be.labeledStatement = pe, Be.logicalExpression = Z, Be.memberExpression = J, Be.metaProperty = oe, Be.mixedTypeAnnotation = gn, Be.moduleExpression = On, Be.newExpression = ge, Be.noop = Li, Be.nullLiteral = Fe, Be.nullLiteralTypeAnnotation = Tn, Be.nullableTypeAnnotation = as, Be.numberLiteral = hr, Be.numberLiteralTypeAnnotation = Gs, Be.numberTypeAnnotation = Ur, Be.numericLiteral = qe, Be.objectExpression = Y, Be.objectMethod = V, Be.objectPattern = Q, Be.objectProperty = te, Be.objectTypeAnnotation = Bn, Be.objectTypeCallProperty = yi, Be.objectTypeIndexer = Di, Be.objectTypeInternalSlot = Rn, Be.objectTypeProperty = In, Be.objectTypeSpreadProperty = oi, Be.opaqueType = As, Be.optionalCallExpression = zr, Be.optionalIndexedAccessType = fs, Be.optionalMemberExpression = Er, Be.parenthesizedExpression = Le, Be.pipelineBareFunction = ie, Be.pipelinePrimaryTopicReference = u, Be.pipelineTopicExpression = Ji, Be.placeholder = Qs, Be.privateName = _n, Be.program = de, Be.qualifiedTypeIdentifier = ai, Be.recordExpression = bs, Be.regExpLiteral = _e, Be.regexLiteral = mr, Be.restElement = Pe, Be.restProperty = xr, Be.returnStatement = Ue, Be.sequenceExpression = Re, Be.spreadElement = Ce, Be.spreadProperty = Or, Be.staticBlock = Yr, Be.stringLiteral = Ae, Be.stringLiteralTypeAnnotation = Ps, Be.stringTypeAnnotation = Zn, Be.super = pt, Be.switchCase = Qe, Be.switchStatement = ut, Be.symbolTypeAnnotation = Ir, Be.taggedTemplateExpression = Ie, Be.templateElement = xt, Be.templateLiteral = Nt, Be.thisExpression = _t, Be.thisTypeAnnotation = Ys, Be.throwStatement = Pt, Be.topicReference = Ls, Be.tryStatement = St, Be.tSAnyKeyword = Be.tsAnyKeyword = Bt, Be.tSArrayType = Be.tsArrayType = x, Be.tSAsExpression = Be.tsAsExpression = ot, Be.tSBigIntKeyword = Be.tsBigIntKeyword = Jt, Be.tSBooleanKeyword = Be.tsBooleanKeyword = $t, Be.tSCallSignatureDeclaration = Be.tsCallSignatureDeclaration = we, Be.tSConditionalType = Be.tsConditionalType = We, Be.tSConstructSignatureDeclaration = Be.tsConstructSignatureDeclaration = $e, Be.tSConstructorType = Be.tsConstructorType = ro, Be.tSDeclareFunction = Be.tsDeclareFunction = g, Be.tSDeclareMethod = Be.tsDeclareMethod = D, Be.tSEnumBody = Be.tsEnumBody = ht, Be.tSEnumDeclaration = Be.tsEnumDeclaration = yt, Be.tSEnumMember = Be.tsEnumMember = gt, Be.tSExportAssignment = Be.tsExportAssignment = Wt, Be.tSExpressionWithTypeArguments = Be.tsExpressionWithTypeArguments = he, Be.tSExternalModuleReference = Be.tsExternalModuleReference = Rt, Be.tSFunctionType = Be.tsFunctionType = to, Be.tSImportEqualsDeclaration = Be.tsImportEqualsDeclaration = It, Be.tSImportType = Be.tsImportType = Tt, Be.tSIndexSignature = Be.tsIndexSignature = At, Be.tSIndexedAccessType = Be.tsIndexedAccessType = T, Be.tSInferType = Be.tsInferType = ct, Be.tSInstantiationExpression = Be.tsInstantiationExpression = mt, Be.tSInterfaceBody = Be.tsInterfaceBody = Ne, Be.tSInterfaceDeclaration = Be.tsInterfaceDeclaration = Te, Be.tSIntersectionType = Be.tsIntersectionType = De, Be.tSIntrinsicKeyword = Be.tsIntrinsicKeyword = Ar, Be.tSLiteralType = Be.tsLiteralType = ee, Be.tSMappedType = Be.tsMappedType = L, Be.tSMethodSignature = Be.tsMethodSignature = lt, Be.tSModuleBlock = Be.tsModuleBlock = Et, Be.tSModuleDeclaration = Be.tsModuleDeclaration = vt, Be.tSNamedTupleMember = Be.tsNamedTupleMember = fe, Be.tSNamespaceExportDeclaration = Be.tsNamespaceExportDeclaration = Ut, Be.tSNeverKeyword = Be.tsNeverKeyword = Wr, Be.tSNonNullExpression = Be.tsNonNullExpression = jt, Be.tSNullKeyword = Be.tsNullKeyword = dr, Be.tSNumberKeyword = Be.tsNumberKeyword = kr, Be.tSObjectKeyword = Be.tsObjectKeyword = li, Be.tSOptionalType = Be.tsOptionalType = W, Be.tSParameterProperty = Be.tsParameterProperty = d, Be.tSParenthesizedType = Be.tsParenthesizedType = Xe, Be.tSPropertySignature = Be.tsPropertySignature = Ye, Be.tSQualifiedName = Be.tsQualifiedName = le, Be.tSRestType = Be.tsRestType = ne, Be.tSSatisfiesExpression = Be.tsSatisfiesExpression = st, Be.tSStringKeyword = Be.tsStringKeyword = $n, Be.tSSymbolKeyword = Be.tsSymbolKeyword = eo, Be.tSTemplateLiteralType = Be.tsTemplateLiteralType = U, Be.tSThisType = Be.tsThisType = Fs, Be.tSTupleType = Be.tsTupleType = I, Be.tSTypeAliasDeclaration = Be.tsTypeAliasDeclaration = it, Be.tSTypeAnnotation = Be.tsTypeAnnotation = tr, Be.tSTypeAssertion = Be.tsTypeAssertion = ft, Be.tSTypeLiteral = Be.tsTypeLiteral = w, Be.tSTypeOperator = Be.tsTypeOperator = b, Be.tSTypeParameter = Be.tsTypeParameter = Ft, Be.tSTypeParameterDeclaration = Be.tsTypeParameterDeclaration = nr, Be.tSTypeParameterInstantiation = Be.tsTypeParameterInstantiation = zt, Be.tSTypePredicate = Be.tsTypePredicate = Xi, Be.tSTypeQuery = Be.tsTypeQuery = Qn, Be.tSTypeReference = Be.tsTypeReference = no, Be.tSUndefinedKeyword = Be.tsUndefinedKeyword = Bs, Be.tSUnionType = Be.tsUnionType = Ee, Be.tSUnknownKeyword = Be.tsUnknownKeyword = vs, Be.tSVoidKeyword = Be.tsVoidKeyword = Rs, Be.tupleExpression = on, Be.tupleTypeAnnotation = Js, Be.typeAlias = xn, Be.typeAnnotation = Pi, Be.typeCastExpression = Wi, Be.typeParameter = gi, Be.typeParameterDeclaration = cs, Be.typeParameterInstantiation = Cs, Be.typeofTypeAnnotation = ls, Be.unaryExpression = kt, Be.unionTypeAnnotation = sn, Be.updateExpression = rt, Be.v8IntrinsicIdentifier = xo, Be.variableDeclaration = Ge, Be.variableDeclarator = nt, Be.variance = wn, Be.voidPattern = a, Be.voidTypeAnnotation = Fn, Be.whileStatement = et, Be.withStatement = Dt, Be.yieldExpression = Mt;
|
|
18501
18501
|
var t = Wv(), e = wp(), r = Na();
|
|
18502
18502
|
const {
|
|
18503
18503
|
validateInternal: n
|
|
@@ -20019,7 +20019,7 @@ function bP() {
|
|
|
20019
20019
|
}, ye = i.TSPropertySignature;
|
|
20020
20020
|
return n(ye.key, H, "key", z, 1), n(ye.typeAnnotation, H, "typeAnnotation", $, 1), H;
|
|
20021
20021
|
}
|
|
20022
|
-
function
|
|
20022
|
+
function lt(z, $ = null, H, ye = null) {
|
|
20023
20023
|
const Ke = {
|
|
20024
20024
|
type: "TSMethodSignature",
|
|
20025
20025
|
key: z,
|
|
@@ -20583,7 +20583,7 @@ function h5() {
|
|
|
20583
20583
|
if (Px) return ze;
|
|
20584
20584
|
Px = 1, Object.defineProperty(ze, "__esModule", {
|
|
20585
20585
|
value: !0
|
|
20586
|
-
}), ze.assertAccessor = fg, ze.assertAnyTypeAnnotation = Yr, ze.assertArgumentPlaceholder = Qs, ze.assertArrayExpression = n, ze.assertArrayPattern = et, ze.assertArrayTypeAnnotation = er, ze.assertArrowFunctionExpression = Dt, ze.assertAssignmentExpression = i, ze.assertAssignmentPattern = nt, ze.assertAwaitExpression = xt, ze.assertBigIntLiteral = Mt, ze.assertBinary = hr, ze.assertBinaryExpression = s, ze.assertBindExpression = xo, ze.assertBlock = Or, ze.assertBlockParent = xr, ze.assertBlockStatement = p, ze.assertBooleanLiteral = Ae, ze.assertBooleanLiteralTypeAnnotation = Cn, ze.assertBooleanTypeAnnotation = ns, ze.assertBreakStatement = f, ze.assertCallExpression = m, ze.assertCatchClause = y, ze.assertClass = $p, ze.assertClassAccessorProperty = zr, ze.assertClassBody = Ot, ze.assertClassDeclaration = Me, ze.assertClassExpression = je, ze.assertClassImplements = sr, ze.assertClassMethod = Ze, ze.assertClassPrivateMethod = Sr, ze.assertClassPrivateProperty = yn, ze.assertClassProperty = Er, ze.assertCompletionStatement = H, ze.assertConditional = ye, ze.assertConditionalExpression = _, ze.assertContinueStatement = N, ze.assertDebuggerStatement = A, ze.assertDecimalLiteral = bs, ze.assertDeclaration = Xy, ze.assertDeclareClass = Tn, ze.assertDeclareExportAllDeclaration = Xn, ze.assertDeclareExportDeclaration = ii, ze.assertDeclareFunction = Ai, ze.assertDeclareInterface = Ln, ze.assertDeclareModule = Ui, ze.assertDeclareModuleExports = ln, ze.assertDeclareOpaqueType = is, ze.assertDeclareTypeAlias = ni, ze.assertDeclareVariable = Xr, ze.assertDeclaredPredicate = fi, ze.assertDecorator = _i, ze.assertDirective = l, ze.assertDirectiveLiteral = c, ze.assertDoExpression = Yi, ze.assertDoWhileStatement = C, ze.assertEmptyStatement = O, ze.assertEmptyTypeAnnotation = mi, ze.assertEnumBody = _g, ze.assertEnumBooleanBody = Fn, ze.assertEnumBooleanMember = vo, ze.assertEnumDeclaration = wn, ze.assertEnumDefaultedMember = ks, ze.assertEnumMember = xg, ze.assertEnumNumberBody = Mi, ze.assertEnumNumberMember = En, ze.assertEnumStringBody = us, ze.assertEnumStringMember = ds, ze.assertEnumSymbolBody = jn, ze.assertExistsTypeAnnotation = kn, ze.assertExportAllDeclaration = me, ze.assertExportDeclaration = dg, ze.assertExportDefaultDeclaration = ue, ze.assertExportDefaultSpecifier = Ds, ze.assertExportNamedDeclaration = be, ze.assertExportNamespaceSpecifier = Qt, ze.assertExportSpecifier = re, ze.assertExpression = Ft, ze.assertExpressionStatement = S, ze.assertExpressionWrapper = Xt, ze.assertFile = P, ze.assertFlow = mg, ze.assertFlowBaseAnnotation = gg, ze.assertFlowDeclaration = bg, ze.assertFlowPredicate = vg, ze.assertFlowType = yg, ze.assertFor = Zr, ze.assertForInStatement = E, ze.assertForOfStatement = Se, ze.assertForStatement = j, ze.assertForXStatement = Un, ze.assertFunction = io, ze.assertFunctionDeclaration = F, ze.assertFunctionExpression = k, ze.assertFunctionParameter = Zy, ze.assertFunctionParent = Yy, ze.assertFunctionTypeAnnotation = si, ze.assertFunctionTypeParam = Ni, ze.assertGenericTypeAnnotation = hi, ze.assertIdentifier = q, ze.assertIfStatement = ae, ze.assertImmutable = ng, ze.assertImport = Nt, ze.assertImportAttribute = _n, ze.assertImportDeclaration = Je, ze.assertImportDefaultSpecifier = X, ze.assertImportExpression = ke, ze.assertImportNamespaceSpecifier = M, ze.assertImportOrExportDeclaration = ug, ze.assertImportSpecifier = R, ze.assertIndexedAccessType = Gt, ze.assertInferredPredicate = ss, ze.assertInterfaceDeclaration = zi, ze.assertInterfaceExtends = Vi, ze.assertInterfaceTypeAnnotation = Tr, ze.assertInterpreterDirective = o, ze.assertIntersectionTypeAnnotation = Es, ze.assertJSX = wg, ze.assertJSXAttribute = ps, ze.assertJSXClosingElement = fs, ze.assertJSXClosingFragment = ys, ze.assertJSXElement = Xs, ze.assertJSXEmptyExpression = Hi, ze.assertJSXExpressionContainer = Is, ze.assertJSXFragment = ms, ze.assertJSXIdentifier = Ki, ze.assertJSXMemberExpression = Ci, ze.assertJSXNamespacedName = hs, ze.assertJSXOpeningElement = _o, ze.assertJSXOpeningFragment = Ns, ze.assertJSXSpreadAttribute = vi, ze.assertJSXSpreadChild = Os, ze.assertJSXText = Zs, ze.assertLVal = eg, ze.assertLabeledStatement = se, ze.assertLiteral = rg, ze.assertLogicalExpression = Fe, ze.assertLoop = Ke, ze.assertMemberExpression = ve, ze.assertMetaProperty = tt, ze.assertMethod = sg, ze.assertMiscellaneous = Sg, ze.assertMixedTypeAnnotation = os, ze.assertModuleDeclaration = v, ze.assertModuleExpression = on, ze.assertModuleSpecifier = pg, ze.assertNewExpression = _e, ze.assertNoop = Gi, ze.assertNullLiteral = pe, ze.assertNullLiteralTypeAnnotation = pn, ze.assertNullableTypeAnnotation = gn, ze.assertNumberLiteral = Cg, ze.assertNumberLiteralTypeAnnotation = Ks, ze.assertNumberTypeAnnotation = as, ze.assertNumericLiteral = K, ze.assertObjectExpression = J, ze.assertObjectMember = og, ze.assertObjectMethod = ge, ze.assertObjectPattern = dt, ze.assertObjectProperty = de, ze.assertObjectTypeAnnotation = Gs, ze.assertObjectTypeCallProperty = Bn, ze.assertObjectTypeIndexer = Rn, ze.assertObjectTypeInternalSlot = Ur, ze.assertObjectTypeProperty = yi, ze.assertObjectTypeSpreadProperty = Di, ze.assertOpaqueType = In, ze.assertOptionalCallExpression = yr, ze.assertOptionalIndexedAccessType = bi, ze.assertOptionalMemberExpression = or, ze.assertParenthesizedExpression = Pe, ze.assertPattern = cg, ze.assertPatternLike = Qy, ze.assertPipelineBareFunction = Ls, ze.assertPipelinePrimaryTopicReference = Ji, ze.assertPipelineTopicExpression = On, ze.assertPlaceholder = an, ze.assertPrivate = hg, ze.assertPrivateName = Lr, ze.assertProgram = Z, ze.assertProperty = ag, ze.assertPureish = Jy, ze.assertQualifiedTypeIdentifier = oi, ze.assertRecordExpression = gs, ze.assertRegExpLiteral = qe, ze.assertRegexLiteral = kg, ze.assertRestElement = Y, ze.assertRestProperty = Ig, ze.assertReturnStatement = V, ze.assertScopable = mr, ze.assertSequenceExpression = te, ze.assertSpreadElement = oe, ze.assertSpreadProperty = Og, ze.assertStandardized = nr, ze.assertStatement = z, ze.assertStaticBlock = dn, ze.assertStringLiteral = B, ze.assertStringLiteralTypeAnnotation = As, ze.assertStringTypeAnnotation = ai, ze.assertSuper = xe, ze.assertSwitchCase = Ue, ze.assertSwitchStatement = Re, ze.assertSymbolTypeAnnotation = Ps, ze.assertTSAnyKeyword =
|
|
20586
|
+
}), ze.assertAccessor = fg, ze.assertAnyTypeAnnotation = Yr, ze.assertArgumentPlaceholder = Qs, ze.assertArrayExpression = n, ze.assertArrayPattern = et, ze.assertArrayTypeAnnotation = er, ze.assertArrowFunctionExpression = Dt, ze.assertAssignmentExpression = i, ze.assertAssignmentPattern = nt, ze.assertAwaitExpression = xt, ze.assertBigIntLiteral = Mt, ze.assertBinary = hr, ze.assertBinaryExpression = s, ze.assertBindExpression = xo, ze.assertBlock = Or, ze.assertBlockParent = xr, ze.assertBlockStatement = p, ze.assertBooleanLiteral = Ae, ze.assertBooleanLiteralTypeAnnotation = Cn, ze.assertBooleanTypeAnnotation = ns, ze.assertBreakStatement = f, ze.assertCallExpression = m, ze.assertCatchClause = y, ze.assertClass = $p, ze.assertClassAccessorProperty = zr, ze.assertClassBody = Ot, ze.assertClassDeclaration = Me, ze.assertClassExpression = je, ze.assertClassImplements = sr, ze.assertClassMethod = Ze, ze.assertClassPrivateMethod = Sr, ze.assertClassPrivateProperty = yn, ze.assertClassProperty = Er, ze.assertCompletionStatement = H, ze.assertConditional = ye, ze.assertConditionalExpression = _, ze.assertContinueStatement = N, ze.assertDebuggerStatement = A, ze.assertDecimalLiteral = bs, ze.assertDeclaration = Xy, ze.assertDeclareClass = Tn, ze.assertDeclareExportAllDeclaration = Xn, ze.assertDeclareExportDeclaration = ii, ze.assertDeclareFunction = Ai, ze.assertDeclareInterface = Ln, ze.assertDeclareModule = Ui, ze.assertDeclareModuleExports = ln, ze.assertDeclareOpaqueType = is, ze.assertDeclareTypeAlias = ni, ze.assertDeclareVariable = Xr, ze.assertDeclaredPredicate = fi, ze.assertDecorator = _i, ze.assertDirective = l, ze.assertDirectiveLiteral = c, ze.assertDoExpression = Yi, ze.assertDoWhileStatement = C, ze.assertEmptyStatement = O, ze.assertEmptyTypeAnnotation = mi, ze.assertEnumBody = _g, ze.assertEnumBooleanBody = Fn, ze.assertEnumBooleanMember = vo, ze.assertEnumDeclaration = wn, ze.assertEnumDefaultedMember = ks, ze.assertEnumMember = xg, ze.assertEnumNumberBody = Mi, ze.assertEnumNumberMember = En, ze.assertEnumStringBody = us, ze.assertEnumStringMember = ds, ze.assertEnumSymbolBody = jn, ze.assertExistsTypeAnnotation = kn, ze.assertExportAllDeclaration = me, ze.assertExportDeclaration = dg, ze.assertExportDefaultDeclaration = ue, ze.assertExportDefaultSpecifier = Ds, ze.assertExportNamedDeclaration = be, ze.assertExportNamespaceSpecifier = Qt, ze.assertExportSpecifier = re, ze.assertExpression = Ft, ze.assertExpressionStatement = S, ze.assertExpressionWrapper = Xt, ze.assertFile = P, ze.assertFlow = mg, ze.assertFlowBaseAnnotation = gg, ze.assertFlowDeclaration = bg, ze.assertFlowPredicate = vg, ze.assertFlowType = yg, ze.assertFor = Zr, ze.assertForInStatement = E, ze.assertForOfStatement = Se, ze.assertForStatement = j, ze.assertForXStatement = Un, ze.assertFunction = io, ze.assertFunctionDeclaration = F, ze.assertFunctionExpression = k, ze.assertFunctionParameter = Zy, ze.assertFunctionParent = Yy, ze.assertFunctionTypeAnnotation = si, ze.assertFunctionTypeParam = Ni, ze.assertGenericTypeAnnotation = hi, ze.assertIdentifier = q, ze.assertIfStatement = ae, ze.assertImmutable = ng, ze.assertImport = Nt, ze.assertImportAttribute = _n, ze.assertImportDeclaration = Je, ze.assertImportDefaultSpecifier = X, ze.assertImportExpression = ke, ze.assertImportNamespaceSpecifier = M, ze.assertImportOrExportDeclaration = ug, ze.assertImportSpecifier = R, ze.assertIndexedAccessType = Gt, ze.assertInferredPredicate = ss, ze.assertInterfaceDeclaration = zi, ze.assertInterfaceExtends = Vi, ze.assertInterfaceTypeAnnotation = Tr, ze.assertInterpreterDirective = o, ze.assertIntersectionTypeAnnotation = Es, ze.assertJSX = wg, ze.assertJSXAttribute = ps, ze.assertJSXClosingElement = fs, ze.assertJSXClosingFragment = ys, ze.assertJSXElement = Xs, ze.assertJSXEmptyExpression = Hi, ze.assertJSXExpressionContainer = Is, ze.assertJSXFragment = ms, ze.assertJSXIdentifier = Ki, ze.assertJSXMemberExpression = Ci, ze.assertJSXNamespacedName = hs, ze.assertJSXOpeningElement = _o, ze.assertJSXOpeningFragment = Ns, ze.assertJSXSpreadAttribute = vi, ze.assertJSXSpreadChild = Os, ze.assertJSXText = Zs, ze.assertLVal = eg, ze.assertLabeledStatement = se, ze.assertLiteral = rg, ze.assertLogicalExpression = Fe, ze.assertLoop = Ke, ze.assertMemberExpression = ve, ze.assertMetaProperty = tt, ze.assertMethod = sg, ze.assertMiscellaneous = Sg, ze.assertMixedTypeAnnotation = os, ze.assertModuleDeclaration = v, ze.assertModuleExpression = on, ze.assertModuleSpecifier = pg, ze.assertNewExpression = _e, ze.assertNoop = Gi, ze.assertNullLiteral = pe, ze.assertNullLiteralTypeAnnotation = pn, ze.assertNullableTypeAnnotation = gn, ze.assertNumberLiteral = Cg, ze.assertNumberLiteralTypeAnnotation = Ks, ze.assertNumberTypeAnnotation = as, ze.assertNumericLiteral = K, ze.assertObjectExpression = J, ze.assertObjectMember = og, ze.assertObjectMethod = ge, ze.assertObjectPattern = dt, ze.assertObjectProperty = de, ze.assertObjectTypeAnnotation = Gs, ze.assertObjectTypeCallProperty = Bn, ze.assertObjectTypeIndexer = Rn, ze.assertObjectTypeInternalSlot = Ur, ze.assertObjectTypeProperty = yi, ze.assertObjectTypeSpreadProperty = Di, ze.assertOpaqueType = In, ze.assertOptionalCallExpression = yr, ze.assertOptionalIndexedAccessType = bi, ze.assertOptionalMemberExpression = or, ze.assertParenthesizedExpression = Pe, ze.assertPattern = cg, ze.assertPatternLike = Qy, ze.assertPipelineBareFunction = Ls, ze.assertPipelinePrimaryTopicReference = Ji, ze.assertPipelineTopicExpression = On, ze.assertPlaceholder = an, ze.assertPrivate = hg, ze.assertPrivateName = Lr, ze.assertProgram = Z, ze.assertProperty = ag, ze.assertPureish = Jy, ze.assertQualifiedTypeIdentifier = oi, ze.assertRecordExpression = gs, ze.assertRegExpLiteral = qe, ze.assertRegexLiteral = kg, ze.assertRestElement = Y, ze.assertRestProperty = Ig, ze.assertReturnStatement = V, ze.assertScopable = mr, ze.assertSequenceExpression = te, ze.assertSpreadElement = oe, ze.assertSpreadProperty = Og, ze.assertStandardized = nr, ze.assertStatement = z, ze.assertStaticBlock = dn, ze.assertStringLiteral = B, ze.assertStringLiteralTypeAnnotation = As, ze.assertStringTypeAnnotation = ai, ze.assertSuper = xe, ze.assertSwitchCase = Ue, ze.assertSwitchStatement = Re, ze.assertSymbolTypeAnnotation = Ps, ze.assertTSAnyKeyword = lt, ze.assertTSArrayType = Qn, ze.assertTSAsExpression = it, ze.assertTSBaseType = Pg, ze.assertTSBigIntKeyword = Bt, ze.assertTSBooleanKeyword = At, ze.assertTSCallSignatureDeclaration = D, ze.assertTSConditionalType = Ee, ze.assertTSConstructSignatureDeclaration = le, ze.assertTSConstructorType = Fs, ze.assertTSDeclareFunction = a, ze.assertTSDeclareMethod = d, ze.assertTSEntityName = tg, ze.assertTSEnumBody = st, ze.assertTSEnumDeclaration = ft, ze.assertTSEnumMember = ht, ze.assertTSExportAssignment = Rt, ze.assertTSExpressionWithTypeArguments = U, ze.assertTSExternalModuleReference = Tt, ze.assertTSFunctionType = Rs, ze.assertTSImportEqualsDeclaration = Et, ze.assertTSImportType = vt, ze.assertTSIndexSignature = Ye, ze.assertTSIndexedAccessType = Xe, ze.assertTSInferType = De, ze.assertTSInstantiationExpression = Ne, ze.assertTSInterfaceBody = he, ze.assertTSInterfaceDeclaration = ee, ze.assertTSIntersectionType = fe, ze.assertTSIntrinsicKeyword = $t, ze.assertTSLiteralType = L, ze.assertTSMappedType = b, ze.assertTSMethodSignature = $e, ze.assertTSModuleBlock = gt, ze.assertTSModuleDeclaration = yt, ze.assertTSNamedTupleMember = W, ze.assertTSNamespaceExportDeclaration = jt, ze.assertTSNeverKeyword = Jt, ze.assertTSNonNullExpression = It, ze.assertTSNullKeyword = Ar, ze.assertTSNumberKeyword = Wr, ze.assertTSObjectKeyword = dr, ze.assertTSOptionalType = x, ze.assertTSParameterProperty = u, ze.assertTSParenthesizedType = We, ze.assertTSPropertySignature = we, ze.assertTSQualifiedName = g, ze.assertTSRestType = I, ze.assertTSSatisfiesExpression = mt, ze.assertTSStringKeyword = kr, ze.assertTSSymbolKeyword = li, ze.assertTSTemplateLiteralType = T, ze.assertTSThisType = vs, ze.assertTSTupleType = w, ze.assertTSType = Ag, ze.assertTSTypeAliasDeclaration = Te, ze.assertTSTypeAnnotation = Wt, ze.assertTSTypeAssertion = ot, ze.assertTSTypeElement = Eg, ze.assertTSTypeLiteral = Xi, ze.assertTSTypeOperator = ct, ze.assertTSTypeParameter = zt, ze.assertTSTypeParameterDeclaration = tr, ze.assertTSTypeParameterInstantiation = Ut, ze.assertTSTypePredicate = ro, ze.assertTSTypeQuery = no, ze.assertTSTypeReference = to, ze.assertTSUndefinedKeyword = $n, ze.assertTSUnionType = ne, ze.assertTSUnknownKeyword = eo, ze.assertTSVoidKeyword = Bs, ze.assertTaggedTemplateExpression = Q, ze.assertTemplateElement = Ce, ze.assertTemplateLiteral = pt, ze.assertTerminatorless = $, ze.assertThisExpression = Le, ze.assertThisTypeAnnotation = Zn, ze.assertThrowStatement = Qe, ze.assertTopicReference = qn, ze.assertTryStatement = ut, ze.assertTupleExpression = Ms, ze.assertTupleTypeAnnotation = Ir, ze.assertTypeAlias = Js, ze.assertTypeAnnotation = ls, ze.assertTypeCastExpression = xn, ze.assertTypeParameter = Pi, ze.assertTypeParameterDeclaration = Wi, ze.assertTypeParameterInstantiation = gi, ze.assertTypeScript = Tg, ze.assertTypeofTypeAnnotation = Ys, ze.assertUnaryExpression = _t, ze.assertUnaryLike = lg, ze.assertUnionTypeAnnotation = cs, ze.assertUpdateExpression = Pt, ze.assertUserWhitespacable = ig, ze.assertV8IntrinsicIdentifier = Li, ze.assertVariableDeclaration = St, ze.assertVariableDeclarator = kt, ze.assertVariance = Cs, ze.assertVoidPattern = ie, ze.assertVoidTypeAnnotation = sn, ze.assertWhile = wt, ze.assertWhileStatement = rt, ze.assertWithStatement = Ge, ze.assertYieldExpression = Ie;
|
|
20587
20587
|
var t = Sp(), e = wp();
|
|
20588
20588
|
function r(h, G, __) {
|
|
20589
20589
|
if (!(0, t.default)(h, G, __))
|
|
@@ -21174,7 +21174,7 @@ function h5() {
|
|
|
21174
21174
|
function Ye(h, G) {
|
|
21175
21175
|
r("TSIndexSignature", h, G);
|
|
21176
21176
|
}
|
|
21177
|
-
function
|
|
21177
|
+
function lt(h, G) {
|
|
21178
21178
|
r("TSAnyKeyword", h, G);
|
|
21179
21179
|
}
|
|
21180
21180
|
function At(h, G) {
|
|
@@ -23618,12 +23618,12 @@ function $m() {
|
|
|
23618
23618
|
}), A(Ye, "details", $e), Object.defineProperty(Ye, "message", {
|
|
23619
23619
|
configurable: !0,
|
|
23620
23620
|
get() {
|
|
23621
|
-
const
|
|
23622
|
-
return this.message =
|
|
23621
|
+
const lt = `${ie($e)} (${we.line}:${we.column})`;
|
|
23622
|
+
return this.message = lt, lt;
|
|
23623
23623
|
},
|
|
23624
|
-
set(
|
|
23624
|
+
set(lt) {
|
|
23625
23625
|
Object.defineProperty(this, "message", {
|
|
23626
|
-
value:
|
|
23626
|
+
value: lt,
|
|
23627
23627
|
writable: !0
|
|
23628
23628
|
});
|
|
23629
23629
|
}
|
|
@@ -23826,9 +23826,9 @@ function $m() {
|
|
|
23826
23826
|
let Ye = this.startNode();
|
|
23827
23827
|
Ye.kind = a.kind, Ye = super.parseMethod(Ye, d, g, D, le, we, $e), delete Ye.kind;
|
|
23828
23828
|
const {
|
|
23829
|
-
typeParameters:
|
|
23829
|
+
typeParameters: lt
|
|
23830
23830
|
} = a;
|
|
23831
|
-
|
|
23831
|
+
lt && (delete a.typeParameters, Ye.typeParameters = lt, this.resetStartLocationFromNode(Ye, lt));
|
|
23832
23832
|
const At = this.castNodeTo(Ye, "FunctionExpression");
|
|
23833
23833
|
return a.value = At, we === "ClassPrivateMethod" && (a.computed = !1), we === "ObjectMethod" ? (a.kind === "method" && (a.kind = "init"), a.shorthand = !1, this.finishNode(a, "Property")) : this.finishNode(a, "MethodDefinition");
|
|
23834
23834
|
}
|
|
@@ -25021,8 +25021,8 @@ function $m() {
|
|
|
25021
25021
|
this.state.inType = !0;
|
|
25022
25022
|
const $e = this.startNode();
|
|
25023
25023
|
$e.callProperties = [], $e.properties = [], $e.indexers = [], $e.internalSlots = [];
|
|
25024
|
-
let Ye,
|
|
25025
|
-
for (d && this.match(6) ? (this.expect(6), Ye = 9,
|
|
25024
|
+
let Ye, lt, At = !1;
|
|
25025
|
+
for (d && this.match(6) ? (this.expect(6), Ye = 9, lt = !0) : (this.expect(5), Ye = 8, lt = !1), $e.exact = lt; !this.match(Ye); ) {
|
|
25026
25026
|
let $t = !1, Jt = null, Ar = null;
|
|
25027
25027
|
const Wr = this.startNode();
|
|
25028
25028
|
if (D && this.isContextual(118)) {
|
|
@@ -25044,7 +25044,7 @@ function $m() {
|
|
|
25044
25044
|
const $n = this.lookahead();
|
|
25045
25045
|
St($n.type) && (kr = this.state.value, this.next());
|
|
25046
25046
|
}
|
|
25047
|
-
const li = this.flowParseObjectTypeProperty(Wr, $t, Jt, dr, kr, g, le ?? !
|
|
25047
|
+
const li = this.flowParseObjectTypeProperty(Wr, $t, Jt, dr, kr, g, le ?? !lt);
|
|
25048
25048
|
li === null ? (At = !0, Ar = this.state.lastTokStartLoc) : $e.properties.push(li);
|
|
25049
25049
|
}
|
|
25050
25050
|
this.flowObjectTypeSemicolon(), Ar && !this.match(8) && !this.match(9) && this.raise(er.UnexpectedExplicitInexactInObject, Ar);
|
|
@@ -25351,7 +25351,7 @@ function $m() {
|
|
|
25351
25351
|
let {
|
|
25352
25352
|
consequent: $e,
|
|
25353
25353
|
failed: Ye
|
|
25354
|
-
} = this.tryParseConditionalConsequent(), [
|
|
25354
|
+
} = this.tryParseConditionalConsequent(), [lt, At] = this.getArrowLikeExpressions($e);
|
|
25355
25355
|
if (Ye || At.length > 0) {
|
|
25356
25356
|
const Bt = [...le];
|
|
25357
25357
|
if (At.length > 0) {
|
|
@@ -25361,9 +25361,9 @@ function $m() {
|
|
|
25361
25361
|
({
|
|
25362
25362
|
consequent: $e,
|
|
25363
25363
|
failed: Ye
|
|
25364
|
-
} = this.tryParseConditionalConsequent()), [
|
|
25364
|
+
} = this.tryParseConditionalConsequent()), [lt, At] = this.getArrowLikeExpressions($e);
|
|
25365
25365
|
}
|
|
25366
|
-
Ye &&
|
|
25366
|
+
Ye && lt.length > 1 && this.raise(er.AmbiguousConditionalArrow, D.startLoc), Ye && lt.length === 1 && (this.state = D, Bt.push(lt[0].start), this.state.noArrowAt = Bt, {
|
|
25367
25367
|
consequent: $e,
|
|
25368
25368
|
failed: Ye
|
|
25369
25369
|
} = this.tryParseConditionalConsequent());
|
|
@@ -25541,8 +25541,8 @@ function $m() {
|
|
|
25541
25541
|
a.variance && this.unexpected(a.variance.loc.start), delete a.variance;
|
|
25542
25542
|
let Ye;
|
|
25543
25543
|
this.match(47) && !we && (Ye = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected());
|
|
25544
|
-
const
|
|
25545
|
-
return Ye && ((
|
|
25544
|
+
const lt = super.parseObjPropValue(a, d, g, D, le, we, $e);
|
|
25545
|
+
return Ye && ((lt.value || lt).typeParameters = Ye), lt;
|
|
25546
25546
|
}
|
|
25547
25547
|
parseFunctionParamType(a) {
|
|
25548
25548
|
return this.eat(17) && (a.type !== "Identifier" && this.raise(er.PatternIsOptional, a), this.isThisParam(a) && this.raise(er.ThisParamMayNotBeOptional, a), a.optional = !0), this.match(14) ? a.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(a) && this.raise(er.ThisParamAnnotationRequired, a), this.match(29) && this.isThisParam(a) && this.raise(er.ThisParamNoDefault, a), this.resetEndLocation(a), a;
|
|
@@ -25594,8 +25594,8 @@ function $m() {
|
|
|
25594
25594
|
}
|
|
25595
25595
|
this.eatContextual(93) ? a.local = this.parseIdentifier() : (Ye = !0, a.local = this.cloneIdentifier(a.imported));
|
|
25596
25596
|
}
|
|
25597
|
-
const
|
|
25598
|
-
return g &&
|
|
25597
|
+
const lt = Cn(a);
|
|
25598
|
+
return g && lt && this.raise(er.ImportTypeShorthandOnlyInPureImport, a), (g || lt) && this.checkReservedType(a.local.name, a.local.loc.start, !0), Ye && !g && !lt && this.checkReservedWord(a.local.name, a.loc.start, !0, !0), this.finishImportSpecifier(a, "ImportSpecifier");
|
|
25599
25599
|
}
|
|
25600
25600
|
parseBindingAtom() {
|
|
25601
25601
|
switch (this.state.type) {
|
|
@@ -25629,14 +25629,14 @@ function $m() {
|
|
|
25629
25629
|
if (D = this.state.clone(), le = this.tryParse(() => super.parseMaybeAssign(a, d), D), !le.error) return le.node;
|
|
25630
25630
|
const {
|
|
25631
25631
|
context: Ye
|
|
25632
|
-
} = this.state,
|
|
25633
|
-
(
|
|
25632
|
+
} = this.state, lt = Ye[Ye.length - 1];
|
|
25633
|
+
(lt === se.j_oTag || lt === se.j_expr) && Ye.pop();
|
|
25634
25634
|
}
|
|
25635
25635
|
if ((g = le) != null && g.error || this.match(47)) {
|
|
25636
25636
|
var we, $e;
|
|
25637
25637
|
D = D || this.state.clone();
|
|
25638
25638
|
let Ye;
|
|
25639
|
-
const
|
|
25639
|
+
const lt = this.tryParse((Bt) => {
|
|
25640
25640
|
var $t;
|
|
25641
25641
|
Ye = this.flowParseTypeParameterDeclaration();
|
|
25642
25642
|
const Jt = this.forwardNoArrowParamsConversionAt(Ye, () => {
|
|
@@ -25648,16 +25648,16 @@ function $m() {
|
|
|
25648
25648
|
return Ar.type !== "ArrowFunctionExpression" && Bt(), Ar.typeParameters = Ye, this.resetStartLocationFromNode(Ar, Ye), Jt;
|
|
25649
25649
|
}, D);
|
|
25650
25650
|
let At = null;
|
|
25651
|
-
if (
|
|
25652
|
-
if (!
|
|
25653
|
-
return
|
|
25654
|
-
At =
|
|
25651
|
+
if (lt.node && this.maybeUnwrapTypeCastExpression(lt.node).type === "ArrowFunctionExpression") {
|
|
25652
|
+
if (!lt.error && !lt.aborted)
|
|
25653
|
+
return lt.node.async && this.raise(er.UnexpectedTypeParameterBeforeAsyncArrowFunction, Ye), lt.node;
|
|
25654
|
+
At = lt.node;
|
|
25655
25655
|
}
|
|
25656
25656
|
if ((we = le) != null && we.node)
|
|
25657
25657
|
return this.state = le.failState, le.node;
|
|
25658
25658
|
if (At)
|
|
25659
|
-
return this.state =
|
|
25660
|
-
throw ($e = le) != null && $e.thrown ? le.error :
|
|
25659
|
+
return this.state = lt.failState, At;
|
|
25660
|
+
throw ($e = le) != null && $e.thrown ? le.error : lt.thrown ? lt.error : this.raise(er.UnexpectedTokenAfterTypeParameter, Ye);
|
|
25661
25661
|
}
|
|
25662
25662
|
return super.parseMaybeAssign(a, d);
|
|
25663
25663
|
}
|
|
@@ -25876,21 +25876,21 @@ function $m() {
|
|
|
25876
25876
|
const we = this.startNode(), {
|
|
25877
25877
|
id: $e,
|
|
25878
25878
|
init: Ye
|
|
25879
|
-
} = this.flowEnumMemberRaw(),
|
|
25880
|
-
if (
|
|
25879
|
+
} = this.flowEnumMemberRaw(), lt = $e.name;
|
|
25880
|
+
if (lt === "")
|
|
25881
25881
|
continue;
|
|
25882
|
-
/^[a-z]/.test(
|
|
25883
|
-
memberName:
|
|
25884
|
-
suggestion:
|
|
25882
|
+
/^[a-z]/.test(lt) && this.raise(er.EnumInvalidMemberName, $e, {
|
|
25883
|
+
memberName: lt,
|
|
25884
|
+
suggestion: lt[0].toUpperCase() + lt.slice(1),
|
|
25885
25885
|
enumName: a
|
|
25886
|
-
}), g.has(
|
|
25887
|
-
memberName:
|
|
25886
|
+
}), g.has(lt) && this.raise(er.EnumDuplicateMemberName, $e, {
|
|
25887
|
+
memberName: lt,
|
|
25888
25888
|
enumName: a
|
|
25889
|
-
}), g.add(
|
|
25889
|
+
}), g.add(lt);
|
|
25890
25890
|
const At = {
|
|
25891
25891
|
enumName: a,
|
|
25892
25892
|
explicitType: d,
|
|
25893
|
-
memberName:
|
|
25893
|
+
memberName: lt
|
|
25894
25894
|
};
|
|
25895
25895
|
switch (we.id = $e, Ye.type) {
|
|
25896
25896
|
case "boolean": {
|
|
@@ -25989,21 +25989,21 @@ function $m() {
|
|
|
25989
25989
|
default: {
|
|
25990
25990
|
const Ye = () => (a.members = [], this.expect(8), this.finishNode(a, "EnumStringBody"));
|
|
25991
25991
|
a.explicitType = !1;
|
|
25992
|
-
const
|
|
25993
|
-
if (!
|
|
25992
|
+
const lt = we.booleanMembers.length, At = we.numberMembers.length, Bt = we.stringMembers.length, $t = we.defaultedMembers.length;
|
|
25993
|
+
if (!lt && !At && !Bt && !$t)
|
|
25994
25994
|
return Ye();
|
|
25995
|
-
if (!
|
|
25995
|
+
if (!lt && !At)
|
|
25996
25996
|
return a.members = this.flowEnumStringMembers(we.stringMembers, we.defaultedMembers, {
|
|
25997
25997
|
enumName: g
|
|
25998
25998
|
}), this.expect(8), this.finishNode(a, "EnumStringBody");
|
|
25999
|
-
if (!At && !Bt &&
|
|
25999
|
+
if (!At && !Bt && lt >= $t) {
|
|
26000
26000
|
for (const Jt of we.defaultedMembers)
|
|
26001
26001
|
this.flowEnumErrorBooleanMemberNotInitialized(Jt.loc.start, {
|
|
26002
26002
|
enumName: g,
|
|
26003
26003
|
memberName: Jt.id.name
|
|
26004
26004
|
});
|
|
26005
26005
|
return a.members = we.booleanMembers, this.expect(8), this.finishNode(a, "EnumBooleanBody");
|
|
26006
|
-
} else if (!
|
|
26006
|
+
} else if (!lt && !Bt && At >= $t) {
|
|
26007
26007
|
for (const Jt of we.defaultedMembers)
|
|
26008
26008
|
this.flowEnumErrorNumberMemberNotInitialized(Jt.loc.start, {
|
|
26009
26009
|
enumName: g,
|
|
@@ -26996,7 +26996,7 @@ function $m() {
|
|
|
26996
26996
|
};
|
|
26997
26997
|
function Rn(ie, u, a, d, g, D) {
|
|
26998
26998
|
const le = a, we = d, $e = g;
|
|
26999
|
-
let Ye = "",
|
|
26999
|
+
let Ye = "", lt = null, At = a;
|
|
27000
27000
|
const {
|
|
27001
27001
|
length: Bt
|
|
27002
27002
|
} = u;
|
|
@@ -27013,7 +27013,7 @@ function $m() {
|
|
|
27013
27013
|
if ($t === 92) {
|
|
27014
27014
|
Ye += u.slice(At, a);
|
|
27015
27015
|
const Jt = Di(u, a, d, g, ie === "template", D);
|
|
27016
|
-
Jt.ch === null && !
|
|
27016
|
+
Jt.ch === null && !lt ? lt = {
|
|
27017
27017
|
pos: a,
|
|
27018
27018
|
lineStart: d,
|
|
27019
27019
|
curLine: g
|
|
@@ -27028,10 +27028,10 @@ function $m() {
|
|
|
27028
27028
|
return {
|
|
27029
27029
|
pos: a,
|
|
27030
27030
|
str: Ye,
|
|
27031
|
-
firstInvalidLoc:
|
|
27031
|
+
firstInvalidLoc: lt,
|
|
27032
27032
|
lineStart: d,
|
|
27033
27033
|
curLine: g,
|
|
27034
|
-
containsInvalid: !!
|
|
27034
|
+
containsInvalid: !!lt
|
|
27035
27035
|
};
|
|
27036
27036
|
}
|
|
27037
27037
|
function yi(ie, u, a, d) {
|
|
@@ -27114,7 +27114,7 @@ function $m() {
|
|
|
27114
27114
|
};
|
|
27115
27115
|
}
|
|
27116
27116
|
function oi(ie, u, a, d, g, D, le, we, $e, Ye) {
|
|
27117
|
-
const
|
|
27117
|
+
const lt = u, At = g === 16 ? Ur.hex : Ur.decBinOct, Bt = g === 16 ? Bn.hex : g === 10 ? Bn.dec : g === 8 ? Bn.oct : Bn.bin;
|
|
27118
27118
|
let $t = !1, Jt = 0;
|
|
27119
27119
|
for (let Ar = 0, Wr = D ?? 1 / 0; Ar < Wr; ++Ar) {
|
|
27120
27120
|
const dr = ie.charCodeAt(u);
|
|
@@ -27154,7 +27154,7 @@ function $m() {
|
|
|
27154
27154
|
}
|
|
27155
27155
|
++u, Jt = Jt * g + kr;
|
|
27156
27156
|
}
|
|
27157
|
-
return u ===
|
|
27157
|
+
return u === lt || D != null && u - lt !== D || $t ? {
|
|
27158
27158
|
n: null,
|
|
27159
27159
|
pos: u
|
|
27160
27160
|
} : {
|
|
@@ -27709,14 +27709,14 @@ function $m() {
|
|
|
27709
27709
|
let we = "";
|
|
27710
27710
|
const $e = () => n(u, D + 2 - a);
|
|
27711
27711
|
for (; D < this.length; ) {
|
|
27712
|
-
const Ye = this.codePointAtPos(D),
|
|
27712
|
+
const Ye = this.codePointAtPos(D), lt = String.fromCharCode(Ye);
|
|
27713
27713
|
if (Ps.has(Ye))
|
|
27714
|
-
Ye === 118 ? we.includes("u") && this.raise(S.IncompatibleRegExpUVFlags, $e()) : Ye === 117 && we.includes("v") && this.raise(S.IncompatibleRegExpUVFlags, $e()), we.includes(
|
|
27714
|
+
Ye === 118 ? we.includes("u") && this.raise(S.IncompatibleRegExpUVFlags, $e()) : Ye === 117 && we.includes("v") && this.raise(S.IncompatibleRegExpUVFlags, $e()), we.includes(lt) && this.raise(S.DuplicateRegExpFlags, $e());
|
|
27715
27715
|
else if (Q(Ye) || Ye === 92)
|
|
27716
27716
|
this.raise(S.MalformedRegExpFlags, $e());
|
|
27717
27717
|
else
|
|
27718
27718
|
break;
|
|
27719
|
-
++D, we +=
|
|
27719
|
+
++D, we += lt;
|
|
27720
27720
|
}
|
|
27721
27721
|
this.state.pos = D, this.finishToken(138, {
|
|
27722
27722
|
pattern: le,
|
|
@@ -27768,7 +27768,7 @@ function $m() {
|
|
|
27768
27768
|
let Ye = this.input.charCodeAt(this.state.pos);
|
|
27769
27769
|
if (Ye === 46 && !we && (++this.state.pos, this.readInt(10), g = !0, Ye = this.input.charCodeAt(this.state.pos)), (Ye === 69 || Ye === 101) && !we && (Ye = this.input.charCodeAt(++this.state.pos), (Ye === 43 || Ye === 45) && ++this.state.pos, this.readInt(10) === null && this.raise(S.InvalidOrMissingExponent, d), g = !0, le = !0, Ye = this.input.charCodeAt(this.state.pos)), Ye === 110 && ((g || $e) && this.raise(S.InvalidBigIntLiteral, d), ++this.state.pos, D = !0), Ye === 109) {
|
|
27770
27770
|
this.expectPlugin("decimal", this.state.curPosition()), (le || $e) && this.raise(S.InvalidDecimal, d), ++this.state.pos;
|
|
27771
|
-
var
|
|
27771
|
+
var lt = !0;
|
|
27772
27772
|
}
|
|
27773
27773
|
if (xe(this.codePointAtPos(this.state.pos)))
|
|
27774
27774
|
throw this.raise(S.NumberIdentifier, this.state.curPosition());
|
|
@@ -27777,7 +27777,7 @@ function $m() {
|
|
|
27777
27777
|
this.finishToken(136, At);
|
|
27778
27778
|
return;
|
|
27779
27779
|
}
|
|
27780
|
-
if (
|
|
27780
|
+
if (lt) {
|
|
27781
27781
|
this.finishToken(137, At);
|
|
27782
27782
|
return;
|
|
27783
27783
|
}
|
|
@@ -27926,8 +27926,8 @@ function $m() {
|
|
|
27926
27926
|
if (a & 3) {
|
|
27927
27927
|
const $e = we && D.get(u);
|
|
27928
27928
|
if ($e) {
|
|
27929
|
-
const Ye = $e & 4,
|
|
27930
|
-
we = At === Bt || Ye !==
|
|
27929
|
+
const Ye = $e & 4, lt = a & 4, At = $e & 3, Bt = a & 3;
|
|
27930
|
+
we = At === Bt || Ye !== lt, we || D.delete(u);
|
|
27931
27931
|
} else we || D.set(u, a);
|
|
27932
27932
|
}
|
|
27933
27933
|
we && this.parser.raise(S.PrivateNameRedeclaration, d, {
|
|
@@ -28287,8 +28287,8 @@ function $m() {
|
|
|
28287
28287
|
this.castNodeTo(u, "ObjectPattern");
|
|
28288
28288
|
for (let we = 0, $e = u.properties.length, Ye = $e - 1; we < $e; we++) {
|
|
28289
28289
|
var le;
|
|
28290
|
-
const
|
|
28291
|
-
this.toAssignableObjectExpressionProp(
|
|
28290
|
+
const lt = u.properties[we], At = we === Ye;
|
|
28291
|
+
this.toAssignableObjectExpressionProp(lt, At, a), At && lt.type === "RestElement" && (le = u.extra) != null && le.trailingCommaLoc && this.raise(S.RestTrailingComma, u.extra.trailingCommaLoc);
|
|
28292
28292
|
}
|
|
28293
28293
|
break;
|
|
28294
28294
|
case "ObjectProperty": {
|
|
@@ -28478,9 +28478,9 @@ function $m() {
|
|
|
28478
28478
|
var $e;
|
|
28479
28479
|
const Ye = u.type;
|
|
28480
28480
|
if (this.isObjectMethod(u)) return;
|
|
28481
|
-
const
|
|
28482
|
-
if (
|
|
28483
|
-
|
|
28481
|
+
const lt = this.isOptionalMemberExpression(u);
|
|
28482
|
+
if (lt || Ye === "MemberExpression") {
|
|
28483
|
+
lt && (this.expectPlugin("optionalChainingAssign", u.loc.start), a.type !== "AssignmentExpression" && this.raise(S.InvalidLhsOptionalChaining, u, {
|
|
28484
28484
|
ancestor: a
|
|
28485
28485
|
})), d !== 64 && this.raise(S.InvalidPropertyBindingPattern, u);
|
|
28486
28486
|
return;
|
|
@@ -28732,28 +28732,28 @@ function $m() {
|
|
|
28732
28732
|
stopOnStartOfClassStaticBlock: g,
|
|
28733
28733
|
errorTemplate: D = Gt.InvalidModifierOnTypeMember
|
|
28734
28734
|
}, le) {
|
|
28735
|
-
const we = (Ye,
|
|
28736
|
-
|
|
28735
|
+
const we = (Ye, lt, At, Bt) => {
|
|
28736
|
+
lt === At && le[Bt] && this.raise(Gt.InvalidModifiersOrder, Ye, {
|
|
28737
28737
|
orderedModifiers: [At, Bt]
|
|
28738
28738
|
});
|
|
28739
|
-
}, $e = (Ye,
|
|
28740
|
-
(le[At] &&
|
|
28739
|
+
}, $e = (Ye, lt, At, Bt) => {
|
|
28740
|
+
(le[At] && lt === Bt || le[Bt] && lt === At) && this.raise(Gt.IncompatibleModifiers, Ye, {
|
|
28741
28741
|
modifiers: [At, Bt]
|
|
28742
28742
|
});
|
|
28743
28743
|
};
|
|
28744
28744
|
for (; ; ) {
|
|
28745
28745
|
const {
|
|
28746
28746
|
startLoc: Ye
|
|
28747
|
-
} = this.state,
|
|
28748
|
-
if (!
|
|
28749
|
-
ps(
|
|
28750
|
-
modifier:
|
|
28751
|
-
}) : (we(Ye,
|
|
28752
|
-
modifier:
|
|
28753
|
-
}), le[
|
|
28754
|
-
modifier:
|
|
28755
|
-
}) : (we(Ye,
|
|
28756
|
-
modifier:
|
|
28747
|
+
} = this.state, lt = this.tsParseModifier(a.concat(d ?? []), g, le.static);
|
|
28748
|
+
if (!lt) break;
|
|
28749
|
+
ps(lt) ? le.accessibility ? this.raise(Gt.DuplicateAccessibilityModifier, Ye, {
|
|
28750
|
+
modifier: lt
|
|
28751
|
+
}) : (we(Ye, lt, lt, "override"), we(Ye, lt, lt, "static"), we(Ye, lt, lt, "readonly"), le.accessibility = lt) : fs(lt) ? (le[lt] && this.raise(Gt.DuplicateModifier, Ye, {
|
|
28752
|
+
modifier: lt
|
|
28753
|
+
}), le[lt] = !0, we(Ye, lt, "in", "out")) : (hasOwnProperty.call(le, lt) ? this.raise(Gt.DuplicateModifier, Ye, {
|
|
28754
|
+
modifier: lt
|
|
28755
|
+
}) : (we(Ye, lt, "static", "readonly"), we(Ye, lt, "static", "override"), we(Ye, lt, "override", "readonly"), we(Ye, lt, "abstract", "override"), $e(Ye, lt, "declare", "override"), $e(Ye, lt, "static", "abstract")), le[lt] = !0), d != null && d.includes(lt) && this.raise(D, Ye, {
|
|
28756
|
+
modifier: lt
|
|
28757
28757
|
});
|
|
28758
28758
|
}
|
|
28759
28759
|
}
|
|
@@ -28980,10 +28980,10 @@ function $m() {
|
|
|
28980
28980
|
startLoc: g
|
|
28981
28981
|
} = this.state;
|
|
28982
28982
|
let D, le, we, $e;
|
|
28983
|
-
const
|
|
28984
|
-
if (
|
|
28983
|
+
const lt = Pt(this.state.type) ? this.lookaheadCharCode() : null;
|
|
28984
|
+
if (lt === 58)
|
|
28985
28985
|
D = !0, we = !1, le = this.parseIdentifier(!0), this.expect(14), $e = this.tsParseType();
|
|
28986
|
-
else if (
|
|
28986
|
+
else if (lt === 63) {
|
|
28987
28987
|
we = !0;
|
|
28988
28988
|
const At = this.state.value, Bt = this.tsParseNonArrayType();
|
|
28989
28989
|
this.lookaheadCharCode() === 58 ? (D = !0, le = this.createIdentifier(this.startNodeAt(g), At), this.expect(17), this.expect(14), $e = this.tsParseType()) : (D = !1, $e = Bt, this.expect(17));
|
|
@@ -29472,12 +29472,12 @@ function $m() {
|
|
|
29472
29472
|
!(a & 4) && (le || $e || we) && this.raise(Gt.UnexpectedParameterModifier, g);
|
|
29473
29473
|
const Ye = this.parseMaybeDefault();
|
|
29474
29474
|
a & 2 && this.parseFunctionParamType(Ye);
|
|
29475
|
-
const
|
|
29475
|
+
const lt = this.parseMaybeDefault(Ye.loc.start, Ye);
|
|
29476
29476
|
if (le || $e || we) {
|
|
29477
29477
|
const At = this.startNodeAt(g);
|
|
29478
|
-
return d.length && (At.decorators = d), le && (At.accessibility = le), $e && (At.readonly = $e), we && (At.override = we),
|
|
29478
|
+
return d.length && (At.decorators = d), le && (At.accessibility = le), $e && (At.readonly = $e), we && (At.override = we), lt.type !== "Identifier" && lt.type !== "AssignmentPattern" && this.raise(Gt.UnsupportedParameterPropertyKind, At), At.parameter = lt, this.finishNode(At, "TSParameterProperty");
|
|
29479
29479
|
}
|
|
29480
|
-
return d.length && (Ye.decorators = d),
|
|
29480
|
+
return d.length && (Ye.decorators = d), lt;
|
|
29481
29481
|
}
|
|
29482
29482
|
isSimpleParameter(a) {
|
|
29483
29483
|
return a.type === "TSParameterProperty" && super.isSimpleParameter(a.parameter) || super.isSimpleParameter(a);
|
|
@@ -29543,8 +29543,8 @@ function $m() {
|
|
|
29543
29543
|
const Bt = this.startNodeAt(d);
|
|
29544
29544
|
return Bt.callee = a, Bt.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(Bt.arguments), Bt.typeParameters = Ye, D.optionalChainMember && (Bt.optional = le), this.finishCallExpression(Bt, D.optionalChainMember);
|
|
29545
29545
|
}
|
|
29546
|
-
const
|
|
29547
|
-
if (
|
|
29546
|
+
const lt = this.state.type;
|
|
29547
|
+
if (lt === 48 || lt === 52 || lt !== 10 && lt !== 93 && lt !== 120 && rt(lt) && !this.hasPrecedingLineBreak())
|
|
29548
29548
|
return;
|
|
29549
29549
|
const At = this.startNodeAt(d);
|
|
29550
29550
|
return At.expression = a, At.typeParameters = Ye, this.finishNode(At, "TSInstantiationExpression");
|
|
@@ -29809,10 +29809,10 @@ function $m() {
|
|
|
29809
29809
|
$e && le && this.raise(Gt.ConstructorHasTypeParameters, $e);
|
|
29810
29810
|
const {
|
|
29811
29811
|
declare: Ye = !1,
|
|
29812
|
-
kind:
|
|
29812
|
+
kind: lt
|
|
29813
29813
|
} = d;
|
|
29814
|
-
Ye && (
|
|
29815
|
-
kind:
|
|
29814
|
+
Ye && (lt === "get" || lt === "set") && this.raise(Gt.DeclareAccessor, d, {
|
|
29815
|
+
kind: lt
|
|
29816
29816
|
}), $e && (d.typeParameters = $e), super.pushClassMethod(a, d, g, D, le, we);
|
|
29817
29817
|
}
|
|
29818
29818
|
pushClassPrivateMethod(a, d, g, D) {
|
|
@@ -29850,15 +29850,15 @@ function $m() {
|
|
|
29850
29850
|
}
|
|
29851
29851
|
parseMaybeAssign(a, d) {
|
|
29852
29852
|
var g, D, le, we, $e;
|
|
29853
|
-
let Ye,
|
|
29853
|
+
let Ye, lt, At;
|
|
29854
29854
|
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
|
|
29855
|
-
if (Ye = this.state.clone(),
|
|
29855
|
+
if (Ye = this.state.clone(), lt = this.tryParse(() => super.parseMaybeAssign(a, d), Ye), !lt.error) return lt.node;
|
|
29856
29856
|
const {
|
|
29857
29857
|
context: Jt
|
|
29858
29858
|
} = this.state, Ar = Jt[Jt.length - 1];
|
|
29859
29859
|
(Ar === se.j_oTag || Ar === se.j_expr) && Jt.pop();
|
|
29860
29860
|
}
|
|
29861
|
-
if (!((g =
|
|
29861
|
+
if (!((g = lt) != null && g.error) && !this.match(47))
|
|
29862
29862
|
return super.parseMaybeAssign(a, d);
|
|
29863
29863
|
(!Ye || Ye === this.state) && (Ye = this.state.clone());
|
|
29864
29864
|
let Bt;
|
|
@@ -29870,15 +29870,15 @@ function $m() {
|
|
|
29870
29870
|
}, Ye);
|
|
29871
29871
|
if (!$t.error && !$t.aborted)
|
|
29872
29872
|
return Bt && this.reportReservedArrowTypeParam(Bt), $t.node;
|
|
29873
|
-
if (!
|
|
29873
|
+
if (!lt && (ks(!this.hasPlugin("jsx")), At = this.tryParse(() => super.parseMaybeAssign(a, d), Ye), !At.error))
|
|
29874
29874
|
return At.node;
|
|
29875
|
-
if ((D =
|
|
29876
|
-
return this.state =
|
|
29875
|
+
if ((D = lt) != null && D.node)
|
|
29876
|
+
return this.state = lt.failState, lt.node;
|
|
29877
29877
|
if ($t.node)
|
|
29878
29878
|
return this.state = $t.failState, Bt && this.reportReservedArrowTypeParam(Bt), $t.node;
|
|
29879
29879
|
if ((le = At) != null && le.node)
|
|
29880
29880
|
return this.state = At.failState, At.node;
|
|
29881
|
-
throw ((we =
|
|
29881
|
+
throw ((we = lt) == null ? void 0 : we.error) || $t.error || (($e = At) == null ? void 0 : $e.error);
|
|
29882
29882
|
}
|
|
29883
29883
|
reportReservedArrowTypeParam(a) {
|
|
29884
29884
|
var d;
|
|
@@ -30114,21 +30114,21 @@ function $m() {
|
|
|
30114
30114
|
}
|
|
30115
30115
|
parseTypeOnlyImportExportSpecifier(a, d, g) {
|
|
30116
30116
|
const D = d ? "imported" : "local", le = d ? "local" : "exported";
|
|
30117
|
-
let we = a[D], $e, Ye = !1,
|
|
30117
|
+
let we = a[D], $e, Ye = !1, lt = !0;
|
|
30118
30118
|
const At = we.loc.start;
|
|
30119
30119
|
if (this.isContextual(93)) {
|
|
30120
30120
|
const $t = this.parseIdentifier();
|
|
30121
30121
|
if (this.isContextual(93)) {
|
|
30122
30122
|
const Jt = this.parseIdentifier();
|
|
30123
|
-
Pt(this.state.type) ? (Ye = !0, we = $t, $e = d ? this.parseIdentifier() : this.parseModuleExportName(),
|
|
30124
|
-
} else Pt(this.state.type) ? (
|
|
30123
|
+
Pt(this.state.type) ? (Ye = !0, we = $t, $e = d ? this.parseIdentifier() : this.parseModuleExportName(), lt = !1) : ($e = Jt, lt = !1);
|
|
30124
|
+
} else Pt(this.state.type) ? (lt = !1, $e = d ? this.parseIdentifier() : this.parseModuleExportName()) : (Ye = !0, we = $t);
|
|
30125
30125
|
} else Pt(this.state.type) && (Ye = !0, d ? (we = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(we.name, we.loc.start, !0, !0)) : we = this.parseModuleExportName());
|
|
30126
30126
|
Ye && g && this.raise(d ? Gt.TypeModifierIsUsedInTypeImports : Gt.TypeModifierIsUsedInTypeExports, At), a[D] = we, a[le] = $e;
|
|
30127
30127
|
const Bt = d ? "importKind" : "exportKind";
|
|
30128
|
-
a[Bt] = Ye ? "type" : "value",
|
|
30128
|
+
a[Bt] = Ye ? "type" : "value", lt && this.eatContextual(93) && (a[le] = d ? this.parseIdentifier() : this.parseModuleExportName()), a[le] || (a[le] = this.cloneIdentifier(a[D])), d && this.checkIdentifier(a[le], Ye ? 4098 : 4096);
|
|
30129
30129
|
}
|
|
30130
30130
|
fillOptionalPropertiesForTSESLint(a) {
|
|
30131
|
-
var d, g, D, le, we, $e, Ye,
|
|
30131
|
+
var d, g, D, le, we, $e, Ye, lt, At, Bt, $t, Jt, Ar, Wr, dr, kr, li, $n, eo, Bs, vs, Rs, Fs, to, ro, no, Xi, Qn, w, x, I, W, ne, fe, Ee, De, We, ct, Xe, b, T, L, U, ee, he, Te, Ne, it;
|
|
30132
30132
|
switch (a.type) {
|
|
30133
30133
|
case "ExpressionStatement":
|
|
30134
30134
|
(d = a.directive) != null || (a.directive = void 0);
|
|
@@ -30142,7 +30142,7 @@ function $m() {
|
|
|
30142
30142
|
(g = a.decorators) != null || (a.decorators = []), (D = a.optional) != null || (a.optional = !1), (le = a.typeAnnotation) != null || (a.typeAnnotation = void 0);
|
|
30143
30143
|
return;
|
|
30144
30144
|
case "TSParameterProperty":
|
|
30145
|
-
(we = a.accessibility) != null || (a.accessibility = void 0), ($e = a.decorators) != null || (a.decorators = []), (Ye = a.override) != null || (a.override = !1), (
|
|
30145
|
+
(we = a.accessibility) != null || (a.accessibility = void 0), ($e = a.decorators) != null || (a.decorators = []), (Ye = a.override) != null || (a.override = !1), (lt = a.readonly) != null || (a.readonly = !1), (At = a.static) != null || (a.static = !1);
|
|
30146
30146
|
return;
|
|
30147
30147
|
case "TSEmptyBodyFunctionExpression":
|
|
30148
30148
|
a.body = null;
|
|
@@ -30546,8 +30546,8 @@ function $m() {
|
|
|
30546
30546
|
const $e = this.startNodeAt(d), Ye = this.state.value;
|
|
30547
30547
|
if ($e.operator = Ye, this.match(29)) {
|
|
30548
30548
|
this.toAssignable(we, !0), $e.left = we;
|
|
30549
|
-
const
|
|
30550
|
-
u.doubleProtoLoc != null && u.doubleProtoLoc.index >=
|
|
30549
|
+
const lt = d.index;
|
|
30550
|
+
u.doubleProtoLoc != null && u.doubleProtoLoc.index >= lt && (u.doubleProtoLoc = null), u.shorthandAssignLoc != null && u.shorthandAssignLoc.index >= lt && (u.shorthandAssignLoc = null), u.privateKeyLoc != null && u.privateKeyLoc.index >= lt && (this.checkDestructuringPrivate(u), u.privateKeyLoc = null), u.voidPatternLoc != null && u.voidPatternLoc.index >= lt && (u.voidPatternLoc = null);
|
|
30551
30551
|
} else
|
|
30552
30552
|
$e.left = we;
|
|
30553
30553
|
return this.next(), $e.right = this.parseMaybeAssign(), this.checkLVal(we, this.finishNode($e, "AssignmentExpression"), void 0, void 0, void 0, void 0, Ye === "||=" || Ye === "&&=" || Ye === "??="), $e;
|
|
@@ -30603,8 +30603,8 @@ function $m() {
|
|
|
30603
30603
|
}]) && this.state.type === 96 && this.prodParam.hasAwait)
|
|
30604
30604
|
throw this.raise(S.UnexpectedAwaitAfterPipelineBody, this.state.startLoc);
|
|
30605
30605
|
le.right = this.parseExprOpRightExpr(g, D);
|
|
30606
|
-
const Ye = this.finishNode(le, we || $e ? "LogicalExpression" : "BinaryExpression"),
|
|
30607
|
-
if ($e && (
|
|
30606
|
+
const Ye = this.finishNode(le, we || $e ? "LogicalExpression" : "BinaryExpression"), lt = this.state.type;
|
|
30607
|
+
if ($e && (lt === 41 || lt === 42) || we && lt === 40)
|
|
30608
30608
|
throw this.raise(S.MixingCoalesceWithLogical, this.state.startLoc);
|
|
30609
30609
|
return this.parseExprOp(Ye, a, d);
|
|
30610
30610
|
}
|
|
@@ -30751,8 +30751,8 @@ function $m() {
|
|
|
30751
30751
|
optionalChainMember: Ye
|
|
30752
30752
|
} = d;
|
|
30753
30753
|
$e && (this.expressionScope.enter(cs()), le = new wn()), Ye && (we.optional = g), g ? we.arguments = this.parseCallExpressionArguments() : we.arguments = this.parseCallExpressionArguments(u.type !== "Super", we, le);
|
|
30754
|
-
let
|
|
30755
|
-
return $e && this.shouldParseAsyncArrow() && !g ? (d.stop = !0, this.checkDestructuringPrivate(le), this.expressionScope.validateAsPattern(), this.expressionScope.exit(),
|
|
30754
|
+
let lt = this.finishCallExpression(we, Ye);
|
|
30755
|
+
return $e && this.shouldParseAsyncArrow() && !g ? (d.stop = !0, this.checkDestructuringPrivate(le), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), lt = this.parseAsyncArrowFromCallExpression(this.startNodeAt(a), lt)) : ($e && (this.checkExpressionErrors(le, !0), this.expressionScope.exit()), this.toReferencedArguments(lt)), this.state.maybeInArrowParameters = D, lt;
|
|
30756
30756
|
}
|
|
30757
30757
|
toReferencedArguments(u, a) {
|
|
30758
30758
|
this.toReferencedListDeep(u.arguments, a);
|
|
@@ -31014,7 +31014,7 @@ function $m() {
|
|
|
31014
31014
|
const g = this.state.maybeInArrowParameters, D = this.state.inFSharpPipelineDirectBody;
|
|
31015
31015
|
this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1;
|
|
31016
31016
|
const le = this.state.startLoc, we = [], $e = new wn();
|
|
31017
|
-
let Ye = !0,
|
|
31017
|
+
let Ye = !0, lt, At;
|
|
31018
31018
|
for (; !this.match(11); ) {
|
|
31019
31019
|
if (Ye)
|
|
31020
31020
|
Ye = !1;
|
|
@@ -31024,7 +31024,7 @@ function $m() {
|
|
|
31024
31024
|
}
|
|
31025
31025
|
if (this.match(21)) {
|
|
31026
31026
|
const Jt = this.state.startLoc;
|
|
31027
|
-
if (
|
|
31027
|
+
if (lt = this.state.startLoc, we.push(this.parseParenItem(this.parseRestBinding(), Jt)), !this.checkCommaAfterRest(41))
|
|
31028
31028
|
break;
|
|
31029
31029
|
} else
|
|
31030
31030
|
we.push(this.parseMaybeAssignAllowInOrVoidPattern(11, $e, this.parseParenItem));
|
|
@@ -31032,7 +31032,7 @@ function $m() {
|
|
|
31032
31032
|
const Bt = this.state.lastTokEndLoc;
|
|
31033
31033
|
this.expect(11), this.state.maybeInArrowParameters = g, this.state.inFSharpPipelineDirectBody = D;
|
|
31034
31034
|
let $t = this.startNodeAt(a);
|
|
31035
|
-
return u && this.shouldParseArrow(we) && ($t = this.parseArrow($t)) ? (this.checkDestructuringPrivate($e), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression($t, we, !1), $t) : (this.expressionScope.exit(), we.length || this.unexpected(this.state.lastTokStartLoc), At && this.unexpected(At),
|
|
31035
|
+
return u && this.shouldParseArrow(we) && ($t = this.parseArrow($t)) ? (this.checkDestructuringPrivate($e), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression($t, we, !1), $t) : (this.expressionScope.exit(), we.length || this.unexpected(this.state.lastTokStartLoc), At && this.unexpected(At), lt && this.unexpected(lt), this.checkExpressionErrors($e, !0), this.toReferencedListDeep(we, !0), we.length > 1 ? (d = this.startNodeAt(le), d.expressions = we, this.finishNode(d, "SequenceExpression"), this.resetEndLocation(d, Bt)) : d = we[0], this.wrapParenthesis(a, d));
|
|
31036
31036
|
}
|
|
31037
31037
|
wrapParenthesis(u, a) {
|
|
31038
31038
|
if (!(this.optionFlags & 1024))
|
|
@@ -31080,9 +31080,9 @@ function $m() {
|
|
|
31080
31080
|
value: D
|
|
31081
31081
|
} = this.state, le = a + 1, we = this.startNodeAt(n(d, 1));
|
|
31082
31082
|
D === null && (u || this.raise(S.InvalidEscapeSequenceTemplate, n(this.state.firstInvalidTemplateEscapePos, 1)));
|
|
31083
|
-
const $e = this.match(24), Ye = $e ? -1 : -2,
|
|
31083
|
+
const $e = this.match(24), Ye = $e ? -1 : -2, lt = g + Ye;
|
|
31084
31084
|
we.value = {
|
|
31085
|
-
raw: this.input.slice(le,
|
|
31085
|
+
raw: this.input.slice(le, lt).replace(/\r\n?/g, `
|
|
31086
31086
|
`),
|
|
31087
31087
|
cooked: D === null ? null : D.slice(1, Ye)
|
|
31088
31088
|
}, we.tail = $e, this.next();
|
|
@@ -31113,8 +31113,8 @@ function $m() {
|
|
|
31113
31113
|
this.addTrailingCommaExtraToNode($e);
|
|
31114
31114
|
break;
|
|
31115
31115
|
}
|
|
31116
|
-
let
|
|
31117
|
-
a ?
|
|
31116
|
+
let lt;
|
|
31117
|
+
a ? lt = this.parseBindingProperty() : (lt = this.parsePropertyDefinition(g), le = this.checkProto(lt, d, le, g)), d && !this.isObjectProperty(lt) && lt.type !== "SpreadElement" && this.raise(S.InvalidRecordProperty, lt), lt.shorthand && this.addExtra(lt, "shorthand", !0), $e.properties.push(lt);
|
|
31118
31118
|
}
|
|
31119
31119
|
this.next(), this.state.inFSharpPipelineDirectBody = D;
|
|
31120
31120
|
let Ye = "ObjectExpression";
|
|
@@ -31142,9 +31142,9 @@ function $m() {
|
|
|
31142
31142
|
if (this.parsePropertyName(d, u), !we && !$e && this.maybeAsyncOrAccessorProp(d)) {
|
|
31143
31143
|
const {
|
|
31144
31144
|
key: Ye
|
|
31145
|
-
} = d,
|
|
31146
|
-
|
|
31147
|
-
kind:
|
|
31145
|
+
} = d, lt = Ye.name;
|
|
31146
|
+
lt === "async" && !this.hasPrecedingLineBreak() && (g = !0, this.resetPreviousNodeTrailingComments(Ye), we = this.eat(55), this.parsePropertyName(d)), (lt === "get" || lt === "set") && (D = !0, this.resetPreviousNodeTrailingComments(Ye), d.kind = lt, this.match(55) && (we = !0, this.raise(S.AccessorIsGenerator, this.state.curPosition(), {
|
|
31147
|
+
kind: lt
|
|
31148
31148
|
}), this.next()), this.parsePropertyName(d));
|
|
31149
31149
|
}
|
|
31150
31150
|
return this.parseObjPropValue(d, le, we, g, !1, D, u);
|
|
@@ -31573,18 +31573,18 @@ function $m() {
|
|
|
31573
31573
|
start: we,
|
|
31574
31574
|
value: $e,
|
|
31575
31575
|
end: Ye
|
|
31576
|
-
} = g,
|
|
31576
|
+
} = g, lt = we + 1, At = n(le.start, 1);
|
|
31577
31577
|
ie.splice(d, 1, new Zn({
|
|
31578
31578
|
type: X(27),
|
|
31579
31579
|
value: "#",
|
|
31580
31580
|
start: we,
|
|
31581
|
-
end:
|
|
31581
|
+
end: lt,
|
|
31582
31582
|
startLoc: le.start,
|
|
31583
31583
|
endLoc: At
|
|
31584
31584
|
}), new Zn({
|
|
31585
31585
|
type: X(132),
|
|
31586
31586
|
value: $e,
|
|
31587
|
-
start:
|
|
31587
|
+
start: lt,
|
|
31588
31588
|
end: Ye,
|
|
31589
31589
|
startLoc: At,
|
|
31590
31590
|
endLoc: le.end
|
|
@@ -31597,20 +31597,20 @@ function $m() {
|
|
|
31597
31597
|
start: we,
|
|
31598
31598
|
value: $e,
|
|
31599
31599
|
end: Ye
|
|
31600
|
-
} = g,
|
|
31600
|
+
} = g, lt = we + 1, At = n(le.start, 1);
|
|
31601
31601
|
let Bt;
|
|
31602
31602
|
u.charCodeAt(we - a) === 96 ? Bt = new Zn({
|
|
31603
31603
|
type: X(22),
|
|
31604
31604
|
value: "`",
|
|
31605
31605
|
start: we,
|
|
31606
|
-
end:
|
|
31606
|
+
end: lt,
|
|
31607
31607
|
startLoc: le.start,
|
|
31608
31608
|
endLoc: At
|
|
31609
31609
|
}) : Bt = new Zn({
|
|
31610
31610
|
type: X(8),
|
|
31611
31611
|
value: "}",
|
|
31612
31612
|
start: we,
|
|
31613
|
-
end:
|
|
31613
|
+
end: lt,
|
|
31614
31614
|
startLoc: le.start,
|
|
31615
31615
|
endLoc: At
|
|
31616
31616
|
});
|
|
@@ -31632,7 +31632,7 @@ function $m() {
|
|
|
31632
31632
|
})), ie.splice(d, 1, Bt, new Zn({
|
|
31633
31633
|
type: X(20),
|
|
31634
31634
|
value: $t,
|
|
31635
|
-
start:
|
|
31635
|
+
start: lt,
|
|
31636
31636
|
end: Jt,
|
|
31637
31637
|
startLoc: At,
|
|
31638
31638
|
endLoc: Ar
|
|
@@ -31783,15 +31783,15 @@ function $m() {
|
|
|
31783
31783
|
case 100: {
|
|
31784
31784
|
if (this.state.containsEsc)
|
|
31785
31785
|
break;
|
|
31786
|
-
const
|
|
31787
|
-
if (At !== 91 && (!D && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(At,
|
|
31786
|
+
const lt = this.nextTokenStart(), At = this.codePointAtPos(lt);
|
|
31787
|
+
if (At !== 91 && (!D && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(At, lt) && At !== 123))
|
|
31788
31788
|
break;
|
|
31789
31789
|
}
|
|
31790
31790
|
case 75:
|
|
31791
31791
|
D || this.raise(S.UnexpectedLexicalDeclaration, this.state.startLoc);
|
|
31792
31792
|
case 74: {
|
|
31793
|
-
const
|
|
31794
|
-
return this.parseVarStatement(g,
|
|
31793
|
+
const lt = this.state.value;
|
|
31794
|
+
return this.parseVarStatement(g, lt);
|
|
31795
31795
|
}
|
|
31796
31796
|
case 92:
|
|
31797
31797
|
return this.parseWhileStatement(g);
|
|
@@ -31802,14 +31802,14 @@ function $m() {
|
|
|
31802
31802
|
case 13:
|
|
31803
31803
|
return this.parseEmptyStatement(g);
|
|
31804
31804
|
case 83: {
|
|
31805
|
-
const
|
|
31806
|
-
if (
|
|
31805
|
+
const lt = this.lookaheadCharCode();
|
|
31806
|
+
if (lt === 40 || lt === 46)
|
|
31807
31807
|
break;
|
|
31808
31808
|
}
|
|
31809
31809
|
case 82: {
|
|
31810
31810
|
!(this.optionFlags & 8) && !we && this.raise(S.UnexpectedImportExport, this.state.startLoc), this.next();
|
|
31811
|
-
let
|
|
31812
|
-
return d === 83 ?
|
|
31811
|
+
let lt;
|
|
31812
|
+
return d === 83 ? lt = this.parseImport(g) : lt = this.parseExport(g, a), this.assertModuleNodeAllowed(lt), lt;
|
|
31813
31813
|
}
|
|
31814
31814
|
default:
|
|
31815
31815
|
if (this.isAsyncFunction())
|
|
@@ -31909,8 +31909,8 @@ function $m() {
|
|
|
31909
31909
|
return a !== null && this.unexpected(a), this.parseFor(u, null);
|
|
31910
31910
|
const d = this.isContextual(100);
|
|
31911
31911
|
{
|
|
31912
|
-
const $e = this.isAwaitUsing(), Ye = $e || this.isForUsing(),
|
|
31913
|
-
if (this.match(74) || this.match(75) ||
|
|
31912
|
+
const $e = this.isAwaitUsing(), Ye = $e || this.isForUsing(), lt = d && this.hasFollowingBindingAtom() || Ye;
|
|
31913
|
+
if (this.match(74) || this.match(75) || lt) {
|
|
31914
31914
|
const At = this.startNode();
|
|
31915
31915
|
let Bt;
|
|
31916
31916
|
$e ? (Bt = "await using", this.recordAwaitIfAllowed() || this.raise(S.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : Bt = this.state.value, this.next(), this.parseVar(At, !0, Bt);
|
|
@@ -32019,8 +32019,8 @@ function $m() {
|
|
|
32019
32019
|
const Ye = d ? this.parseModuleItem() : this.parseStatementListItem();
|
|
32020
32020
|
if (a && !$e) {
|
|
32021
32021
|
if (this.isValidDirective(Ye)) {
|
|
32022
|
-
const
|
|
32023
|
-
a.push(
|
|
32022
|
+
const lt = this.stmtToDirective(Ye);
|
|
32023
|
+
a.push(lt), !we && lt.value.value === "use strict" && (we = !0, this.setStrict(!0));
|
|
32024
32024
|
continue;
|
|
32025
32025
|
}
|
|
32026
32026
|
$e = !0, this.state.strictErrors.clear();
|
|
@@ -32147,11 +32147,11 @@ function $m() {
|
|
|
32147
32147
|
this.parseClassMemberWithIsStatic(u, a, d, g);
|
|
32148
32148
|
}
|
|
32149
32149
|
parseClassMemberWithIsStatic(u, a, d, g) {
|
|
32150
|
-
const D = a, le = a, we = a, $e = a, Ye = a,
|
|
32150
|
+
const D = a, le = a, we = a, $e = a, Ye = a, lt = D, At = D;
|
|
32151
32151
|
if (a.static = g, this.parsePropertyNamePrefixOperator(a), this.eat(55)) {
|
|
32152
|
-
|
|
32152
|
+
lt.kind = "method";
|
|
32153
32153
|
const dr = this.match(139);
|
|
32154
|
-
if (this.parseClassElementName(
|
|
32154
|
+
if (this.parseClassElementName(lt), this.parsePostMemberNameModifiers(lt), dr) {
|
|
32155
32155
|
this.pushClassPrivateMethod(u, le, !0, !1);
|
|
32156
32156
|
return;
|
|
32157
32157
|
}
|
|
@@ -32160,7 +32160,7 @@ function $m() {
|
|
|
32160
32160
|
}
|
|
32161
32161
|
const Bt = !this.state.containsEsc && ut(this.state.type), $t = this.parseClassElementName(a), Jt = Bt ? $t.name : null, Ar = this.isPrivateName($t), Wr = this.state.startLoc;
|
|
32162
32162
|
if (this.parsePostMemberNameModifiers(At), this.isClassMethod()) {
|
|
32163
|
-
if (
|
|
32163
|
+
if (lt.kind = "method", Ar) {
|
|
32164
32164
|
this.pushClassPrivateMethod(u, le, !1, !1);
|
|
32165
32165
|
return;
|
|
32166
32166
|
}
|
|
@@ -32172,11 +32172,11 @@ function $m() {
|
|
|
32172
32172
|
else if (Jt === "async" && !this.isLineTerminator()) {
|
|
32173
32173
|
this.resetPreviousNodeTrailingComments($t);
|
|
32174
32174
|
const dr = this.eat(55);
|
|
32175
|
-
At.optional && this.unexpected(Wr),
|
|
32175
|
+
At.optional && this.unexpected(Wr), lt.kind = "method";
|
|
32176
32176
|
const kr = this.match(139);
|
|
32177
|
-
this.parseClassElementName(
|
|
32177
|
+
this.parseClassElementName(lt), this.parsePostMemberNameModifiers(At), kr ? this.pushClassPrivateMethod(u, le, dr, !0) : (this.isNonstaticConstructor(D) && this.raise(S.ConstructorIsAsync, D.key), this.pushClassMethod(u, D, dr, !0, !1, !1));
|
|
32178
32178
|
} else if ((Jt === "get" || Jt === "set") && !(this.match(55) && this.isLineTerminator())) {
|
|
32179
|
-
this.resetPreviousNodeTrailingComments($t),
|
|
32179
|
+
this.resetPreviousNodeTrailingComments($t), lt.kind = Jt;
|
|
32180
32180
|
const dr = this.match(139);
|
|
32181
32181
|
this.parseClassElementName(D), dr ? this.pushClassPrivateMethod(u, le, !1, !1) : (this.isNonstaticConstructor(D) && this.raise(S.ConstructorIsAccessor, D.key), this.pushClassMethod(u, D, !1, !1, !1, !1)), this.checkGetterSetterParams(D);
|
|
32182
32182
|
} else if (Jt === "accessor" && !this.isLineTerminator()) {
|
|
@@ -32261,16 +32261,16 @@ function $m() {
|
|
|
32261
32261
|
throw this.raise(S.UnsupportedDecoratorExport, u);
|
|
32262
32262
|
return this.parseExportFrom(u, !0), this.sawUnambiguousESM = !0, this.finishNode(u, "ExportAllDeclaration");
|
|
32263
32263
|
}
|
|
32264
|
-
const
|
|
32265
|
-
g && D && !le && !
|
|
32264
|
+
const lt = this.maybeParseExportNamedSpecifiers(u);
|
|
32265
|
+
g && D && !le && !lt && this.unexpected(null, 5), we && $e && this.unexpected(null, 98);
|
|
32266
32266
|
let At;
|
|
32267
|
-
if (Ye ||
|
|
32267
|
+
if (Ye || lt) {
|
|
32268
32268
|
if (At = !1, a)
|
|
32269
32269
|
throw this.raise(S.UnsupportedDecoratorExport, u);
|
|
32270
32270
|
this.parseExportFrom(u, Ye);
|
|
32271
32271
|
} else
|
|
32272
32272
|
At = this.maybeParseExportDeclaration(u);
|
|
32273
|
-
if (Ye ||
|
|
32273
|
+
if (Ye || lt || At) {
|
|
32274
32274
|
var Bt;
|
|
32275
32275
|
const $t = u;
|
|
32276
32276
|
if (this.checkExport($t, !0, !1, !!$t.source), ((Bt = $t.declaration) == null ? void 0 : Bt.type) === "ClassDeclaration")
|
|
@@ -32392,12 +32392,12 @@ function $m() {
|
|
|
32392
32392
|
} = we, Ye = $e.type === "Identifier" ? $e.name : $e.value;
|
|
32393
32393
|
if (this.checkDuplicateExports(we, Ye), !g && we.local) {
|
|
32394
32394
|
const {
|
|
32395
|
-
local:
|
|
32395
|
+
local: lt
|
|
32396
32396
|
} = we;
|
|
32397
|
-
|
|
32398
|
-
localName:
|
|
32397
|
+
lt.type !== "Identifier" ? this.raise(S.ExportBindingIsString, we, {
|
|
32398
|
+
localName: lt.value,
|
|
32399
32399
|
exportName: Ye
|
|
32400
|
-
}) : (this.checkReservedWord(
|
|
32400
|
+
}) : (this.checkReservedWord(lt.name, lt.loc.start, !0, !1), this.scope.checkLocalExport(lt));
|
|
32401
32401
|
}
|
|
32402
32402
|
}
|
|
32403
32403
|
else if (u.declaration) {
|
|
@@ -68562,7 +68562,7 @@ class cF {
|
|
|
68562
68562
|
}
|
|
68563
68563
|
}
|
|
68564
68564
|
const oI = Yt("I18n"), Ht = "zh-CN", Cr = ["en-US"], UE = {
|
|
68565
|
-
"en-US": async () => (await import("./en-US-
|
|
68565
|
+
"en-US": async () => (await import("./en-US-DUdx4QEY.js")).default
|
|
68566
68566
|
}, { getLocale: bv, setLocale: aI } = Z9({
|
|
68567
68567
|
sourceLocale: Ht,
|
|
68568
68568
|
targetLocales: Cr,
|
|
@@ -73832,7 +73832,7 @@ let fp = class extends pr {
|
|
|
73832
73832
|
}
|
|
73833
73833
|
}
|
|
73834
73834
|
render() {
|
|
73835
|
-
return this._localeCtx.locale,
|
|
73835
|
+
return this._localeCtx.locale, at`
|
|
73836
73836
|
<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>
|
|
73837
73837
|
<div class="dialog" part="dialog" role="dialog" aria-modal="true">
|
|
73838
73838
|
<div class="dialog-title">${Oe("是否允许此次工具调用?")}</div>
|
|
@@ -74350,9 +74350,9 @@ let Ca = class extends pr {
|
|
|
74350
74350
|
this._localeCtx.locale;
|
|
74351
74351
|
const t = this._questions;
|
|
74352
74352
|
if (t.length === 0)
|
|
74353
|
-
return
|
|
74353
|
+
return at`<div class="backdrop" @click=${this._dismiss}></div>`;
|
|
74354
74354
|
const e = this._isMulti, r = Oe(e ? vn`回答 ${t.length} 个问题` : "回答问题");
|
|
74355
|
-
return
|
|
74355
|
+
return at`
|
|
74356
74356
|
<div class="backdrop" @click=${this._dismiss}></div>
|
|
74357
74357
|
<div
|
|
74358
74358
|
class="dialog ${e ? "multi" : ""}"
|
|
@@ -74364,13 +74364,13 @@ let Ca = class extends pr {
|
|
|
74364
74364
|
${this._renderHeader(r)}
|
|
74365
74365
|
${e ? this._renderTabBar() : Kt}
|
|
74366
74366
|
${e ? this._renderTabContent() : this._renderQuestion(0)}
|
|
74367
|
-
${e ?
|
|
74367
|
+
${e ? at`<div class="progress">${Oe(vn`第 ${this._currentTab + 1} / ${t.length} 题`)}</div>` : Kt}
|
|
74368
74368
|
${this._renderActions()}
|
|
74369
74369
|
</div>
|
|
74370
74370
|
`;
|
|
74371
74371
|
}
|
|
74372
74372
|
_renderHeader(t) {
|
|
74373
|
-
return
|
|
74373
|
+
return at`
|
|
74374
74374
|
<div class="dialog-header">
|
|
74375
74375
|
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
74376
74376
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
|
|
@@ -74380,9 +74380,9 @@ let Ca = class extends pr {
|
|
|
74380
74380
|
`;
|
|
74381
74381
|
}
|
|
74382
74382
|
_renderTabBar() {
|
|
74383
|
-
return
|
|
74383
|
+
return at`
|
|
74384
74384
|
<div class="tab-bar" role="tablist">
|
|
74385
|
-
${this._questions.map((t, e) =>
|
|
74385
|
+
${this._questions.map((t, e) => at`
|
|
74386
74386
|
<button
|
|
74387
74387
|
class="tab-chip"
|
|
74388
74388
|
role="tab"
|
|
@@ -74394,9 +74394,9 @@ let Ca = class extends pr {
|
|
|
74394
74394
|
`;
|
|
74395
74395
|
}
|
|
74396
74396
|
_renderTabContent() {
|
|
74397
|
-
return
|
|
74397
|
+
return at`
|
|
74398
74398
|
<div class="tab-content">
|
|
74399
|
-
${this._questions.map((t, e) =>
|
|
74399
|
+
${this._questions.map((t, e) => at`
|
|
74400
74400
|
<div class="tab-pane" ?hidden=${e !== this._currentTab}>
|
|
74401
74401
|
${this._renderQuestion(e)}
|
|
74402
74402
|
</div>
|
|
@@ -74408,7 +74408,7 @@ let Ca = class extends pr {
|
|
|
74408
74408
|
const e = this._questions[t];
|
|
74409
74409
|
if (!e) return Kt;
|
|
74410
74410
|
const r = new Set(this._selections[t] || []), n = !!e.multiSelect, i = n ? "checkbox" : "radio", s = n ? "checkbox" : "radio", l = (this._selections[t] || []).filter((c) => c !== qc).map((c) => e.options[c]).filter(Boolean).find((c) => c.preview);
|
|
74411
|
-
return
|
|
74411
|
+
return at`
|
|
74412
74412
|
<div class="question">
|
|
74413
74413
|
<div class="question-head">
|
|
74414
74414
|
<span class="chip">${e.header}</span>
|
|
@@ -74418,7 +74418,7 @@ let Ca = class extends pr {
|
|
|
74418
74418
|
${e.options.map((c, p) => this._renderOption(t, p, c, i, s, r.has(p)))}
|
|
74419
74419
|
${this._renderOther(t, i, s, r.has(qc))}
|
|
74420
74420
|
</div>
|
|
74421
|
-
${l != null && l.preview ?
|
|
74421
|
+
${l != null && l.preview ? at`
|
|
74422
74422
|
<div class="preview-label">${Oe("预览")}${l.label ? Oe(vn` · ${l.label}`) : ""}</div>
|
|
74423
74423
|
<div class="preview-panel">${l.preview}</div>
|
|
74424
74424
|
` : Kt}
|
|
@@ -74427,7 +74427,7 @@ let Ca = class extends pr {
|
|
|
74427
74427
|
}
|
|
74428
74428
|
_renderOption(t, e, r, n, i, s) {
|
|
74429
74429
|
const o = r.description.match(/\(Recommended\)\s*/i), l = o ? r.description.replace(o[0], "").trim() : r.description;
|
|
74430
|
-
return
|
|
74430
|
+
return at`
|
|
74431
74431
|
<label
|
|
74432
74432
|
class="option ${i} ${s ? "selected" : ""}"
|
|
74433
74433
|
@click=${(c) => this._selectOption(t, e, c)}
|
|
@@ -74437,7 +74437,7 @@ let Ca = class extends pr {
|
|
|
74437
74437
|
<div class="option-body">
|
|
74438
74438
|
<div class="option-label">
|
|
74439
74439
|
${r.label}
|
|
74440
|
-
${o ?
|
|
74440
|
+
${o ? at`<span class="rec">${Oe("(推荐)")}</span>` : Kt}
|
|
74441
74441
|
</div>
|
|
74442
74442
|
<div class="option-desc">${l}</div>
|
|
74443
74443
|
</div>
|
|
@@ -74445,7 +74445,7 @@ let Ca = class extends pr {
|
|
|
74445
74445
|
`;
|
|
74446
74446
|
}
|
|
74447
74447
|
_renderOther(t, e, r, n) {
|
|
74448
|
-
return
|
|
74448
|
+
return at`
|
|
74449
74449
|
<div class="option-wrapper ${n ? "selected" : ""}">
|
|
74450
74450
|
<label
|
|
74451
74451
|
class="option ${r} other ${n ? "selected" : ""}"
|
|
@@ -74457,7 +74457,7 @@ let Ca = class extends pr {
|
|
|
74457
74457
|
<div class="option-label">${Oe("其他")}</div>
|
|
74458
74458
|
</div>
|
|
74459
74459
|
</label>
|
|
74460
|
-
${n ?
|
|
74460
|
+
${n ? at`
|
|
74461
74461
|
<input
|
|
74462
74462
|
class="other-input"
|
|
74463
74463
|
type="text"
|
|
@@ -74471,7 +74471,7 @@ let Ca = class extends pr {
|
|
|
74471
74471
|
}
|
|
74472
74472
|
_renderActions() {
|
|
74473
74473
|
const t = this._isMulti, e = this._currentTab === 0, r = this._currentTab >= this._questions.length - 1;
|
|
74474
|
-
return t ?
|
|
74474
|
+
return t ? at`
|
|
74475
74475
|
<div class="actions">
|
|
74476
74476
|
<button
|
|
74477
74477
|
class="action-btn ghost"
|
|
@@ -74489,7 +74489,7 @@ let Ca = class extends pr {
|
|
|
74489
74489
|
@click=${this._submit}
|
|
74490
74490
|
>${Oe("提交")}</button>
|
|
74491
74491
|
</div>
|
|
74492
|
-
` :
|
|
74492
|
+
` : at`
|
|
74493
74493
|
<div class="actions">
|
|
74494
74494
|
<button class="action-btn ghost" @click=${this._dismiss}>${Oe("取消")}</button>
|
|
74495
74495
|
<button
|
|
@@ -74656,7 +74656,7 @@ let hp = class extends pr {
|
|
|
74656
74656
|
t.target.classList.contains("backdrop") && this._cancel();
|
|
74657
74657
|
}
|
|
74658
74658
|
render() {
|
|
74659
|
-
return this._localeCtx.locale,
|
|
74659
|
+
return this._localeCtx.locale, at`
|
|
74660
74660
|
<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>
|
|
74661
74661
|
<div class="dialog" part="dialog" role="alertdialog" aria-modal="true" aria-labelledby="dialog-title" aria-describedby="dialog-desc">
|
|
74662
74662
|
<div class="dialog-title" id="dialog-title">${Oe("恢复默认内容")}</div>
|
|
@@ -74961,7 +74961,7 @@ let sl = class extends pr {
|
|
|
74961
74961
|
render() {
|
|
74962
74962
|
this._localeCtx.locale;
|
|
74963
74963
|
const t = this._limit >= this._sliderMax ? Oe("全部") : String(this._limit);
|
|
74964
|
-
return
|
|
74964
|
+
return at`
|
|
74965
74965
|
<div class="backdrop" part="backdrop" @click=${this._onBackdropClick}></div>
|
|
74966
74966
|
<div class="dialog" part="dialog" role="dialog" aria-modal="true" aria-labelledby="dialog-title">
|
|
74967
74967
|
<div class="dialog-title" id="dialog-title">${Oe("导出选项")}</div>
|
|
@@ -75216,7 +75216,7 @@ const bq = fr`
|
|
|
75216
75216
|
`, t$ = `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.5 4v2h7A1.5 1.5 0 0 1 14 7.5v6a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5v-6A1.5 1.5 0 0 1 3.499 6H4V4a4 4 0 0 1 7.371-2.154.75.75 0 0 1-1.264.808A2.5 2.5 0 0 0 5.5 4Zm-2 3.5v6h9v-6h-9Z"/></svg>
|
|
75217
75217
|
`;
|
|
75218
75218
|
function jr(t) {
|
|
75219
|
-
return
|
|
75219
|
+
return at`${n_(t)}`;
|
|
75220
75220
|
}
|
|
75221
75221
|
const r$ = jr(vq), n$ = jr(_q), i$ = jr(xq), s$ = jr(wq), EI = jr(Sq), AI = jr(Tq), o$ = jr(Eq), a$ = jr(Aq), Iy = jr(Pq), l$ = jr(Cq), c$ = jr(kq), Oy = jr(Iq), PI = jr(Oq), u$ = jr(Nq), d$ = jr(Dq), p$ = jr(Mq), f$ = jr(Lq), h$ = jr(Bq), o_ = jr(Rq), CI = jr(SI), a_ = jr(Fq), kI = jr(SI), II = jr(jq), l_ = jr(qq), OI = jr($q), NI = jr(Uq), mp = jr(TI), m$ = jr(TI), DI = jr(Vq), y$ = jr(zq), g$ = jr(Wq), MI = jr(Hq), Im = jr(Kq), c_ = jr(Gq), b$ = jr(Yq), v$ = jr(Jq), _$ = jr(Xq), x$ = jr(Zq), w$ = jr(Qq);
|
|
75222
75222
|
jr(e$);
|
|
@@ -75271,7 +75271,7 @@ let No = class extends pr {
|
|
|
75271
75271
|
render() {
|
|
75272
75272
|
this._localeCtx.locale;
|
|
75273
75273
|
const t = this.windowMode === "maximized", e = this.connectionFailed ? `${Oe("连接失败")}: ${this.connectionError || Oe("点击重试")}` : this._getStatusText();
|
|
75274
|
-
return
|
|
75274
|
+
return at`
|
|
75275
75275
|
<div class="title-bar" part="bar" tabindex="0" role="toolbar" aria-label="Window controls">
|
|
75276
75276
|
<span class="app-label" part="label">
|
|
75277
75277
|
<span
|
|
@@ -75283,7 +75283,7 @@ let No = class extends pr {
|
|
|
75283
75283
|
${this.appLabel}
|
|
75284
75284
|
</span>
|
|
75285
75285
|
<div class="window-controls" part="controls">
|
|
75286
|
-
${this.connectionFailed ?
|
|
75286
|
+
${this.connectionFailed ? at`
|
|
75287
75287
|
<button
|
|
75288
75288
|
class="window-btn retry-btn"
|
|
75289
75289
|
part="retry-btn"
|
|
@@ -75293,7 +75293,7 @@ let No = class extends pr {
|
|
|
75293
75293
|
@click=${this._handleRetry}
|
|
75294
75294
|
>${m$}</button>
|
|
75295
75295
|
` : Kt}
|
|
75296
|
-
${this.showMinimize ?
|
|
75296
|
+
${this.showMinimize ? at`
|
|
75297
75297
|
<button
|
|
75298
75298
|
class="window-btn"
|
|
75299
75299
|
data-action="minimize"
|
|
@@ -75301,7 +75301,7 @@ let No = class extends pr {
|
|
|
75301
75301
|
@click=${this._handleMinimize}
|
|
75302
75302
|
>${r$}</button>
|
|
75303
75303
|
` : Kt}
|
|
75304
|
-
${this.showMaximize ?
|
|
75304
|
+
${this.showMaximize ? at`
|
|
75305
75305
|
<button
|
|
75306
75306
|
class="window-btn"
|
|
75307
75307
|
data-action=${t ? "restore" : "maximize"}
|
|
@@ -75479,7 +75479,7 @@ let yu = class extends pr {
|
|
|
75479
75479
|
}
|
|
75480
75480
|
render() {
|
|
75481
75481
|
const t = this._isDark, e = t ? this._logoCtx.dark : this._logoCtx.light;
|
|
75482
|
-
return e ?
|
|
75482
|
+
return e ? at`<span part="logo" .innerHTML=${e}></span>` : at`<span part="logo">${Jj(t)}</span>`;
|
|
75483
75483
|
}
|
|
75484
75484
|
};
|
|
75485
75485
|
yu.styles = fr`
|
|
@@ -75580,24 +75580,24 @@ let Go = class extends pr {
|
|
|
75580
75580
|
);
|
|
75581
75581
|
}
|
|
75582
75582
|
render() {
|
|
75583
|
-
return this._localeCtx.locale,
|
|
75583
|
+
return this._localeCtx.locale, at`
|
|
75584
75584
|
<div class="login-container" part="container">
|
|
75585
75585
|
<div class="logo" part="logo"><rtc-logo theme=${this.theme}></rtc-logo></div>
|
|
75586
75586
|
<div class="app-name" part="app-name">${this.appName}</div>
|
|
75587
75587
|
<div class="app-desc">${Oe("登录以继续")}</div>
|
|
75588
|
-
${this.errorMessage ?
|
|
75589
|
-
${this.loading ?
|
|
75588
|
+
${this.errorMessage ? at`<div class="error-text">${this.errorMessage}</div>` : Kt}
|
|
75589
|
+
${this.loading ? at`<div class="loading-text">${Oe("授权中...")}</div>` : this._renderProviders()}
|
|
75590
75590
|
</div>
|
|
75591
75591
|
`;
|
|
75592
75592
|
}
|
|
75593
75593
|
_renderProviders() {
|
|
75594
75594
|
if (this._loadingProviders)
|
|
75595
|
-
return
|
|
75595
|
+
return at`<div class="loading-text">${Oe("加载中...")}</div>`;
|
|
75596
75596
|
if (this._providers.length === 0)
|
|
75597
|
-
return
|
|
75597
|
+
return at`<div class="error-text">${Oe("暂无可用的登录方式")}</div>`;
|
|
75598
75598
|
if (this._providers.length === 1) {
|
|
75599
75599
|
const t = this._providers[0];
|
|
75600
|
-
return
|
|
75600
|
+
return at`
|
|
75601
75601
|
<button
|
|
75602
75602
|
class="provider-btn provider-btn-primary"
|
|
75603
75603
|
part="provider-btn"
|
|
@@ -75609,9 +75609,9 @@ let Go = class extends pr {
|
|
|
75609
75609
|
</button>
|
|
75610
75610
|
`;
|
|
75611
75611
|
}
|
|
75612
|
-
return
|
|
75612
|
+
return at`
|
|
75613
75613
|
<div class="providers" part="providers">
|
|
75614
|
-
${this._providers.map((t) =>
|
|
75614
|
+
${this._providers.map((t) => at`
|
|
75615
75615
|
<button
|
|
75616
75616
|
class="provider-btn"
|
|
75617
75617
|
part="provider-btn"
|
|
@@ -75852,7 +75852,7 @@ let ol = class extends pr {
|
|
|
75852
75852
|
});
|
|
75853
75853
|
}
|
|
75854
75854
|
render() {
|
|
75855
|
-
return this._localeCtx.locale,
|
|
75855
|
+
return this._localeCtx.locale, at`
|
|
75856
75856
|
<div
|
|
75857
75857
|
class="overlay"
|
|
75858
75858
|
role="dialog"
|
|
@@ -75867,7 +75867,7 @@ let ol = class extends pr {
|
|
|
75867
75867
|
</div>
|
|
75868
75868
|
<div class="status">${this._getStatusMessage()}</div>
|
|
75869
75869
|
${this._renderContent()}
|
|
75870
|
-
${this._errorMessage ?
|
|
75870
|
+
${this._errorMessage ? at`<div class="error">${this._errorMessage}</div>` : null}
|
|
75871
75871
|
</div>
|
|
75872
75872
|
</div>
|
|
75873
75873
|
`;
|
|
@@ -75900,11 +75900,11 @@ let ol = class extends pr {
|
|
|
75900
75900
|
}
|
|
75901
75901
|
_renderContent() {
|
|
75902
75902
|
const t = this._status === "error", e = this._status === "success", r = this._status === "opening" || this._status === "exchanging";
|
|
75903
|
-
return t ?
|
|
75903
|
+
return t ? at`
|
|
75904
75904
|
<button class="button button-primary" @click=${this._startLogin}>
|
|
75905
75905
|
${Oe("重试")}
|
|
75906
75906
|
</button>
|
|
75907
|
-
` : e ?
|
|
75907
|
+
` : e ? at`<div class="button-row"><span class="spinner"></span></div>` : r ? at`<div class="button-row"><span class="spinner"></span></div>` : this._status === "waiting" ? at`
|
|
75908
75908
|
<div class="waiting-container">
|
|
75909
75909
|
<p>${Oe("请在弹出的窗口中完成授权")}</p>
|
|
75910
75910
|
<button class="button button-secondary" @click=${this._reopenPopup}>
|
|
@@ -76153,7 +76153,7 @@ let yp = class extends pr {
|
|
|
76153
76153
|
return this._localeCtx.locale, this.toasts.length === 0 ? Kt : LI(
|
|
76154
76154
|
this.toasts,
|
|
76155
76155
|
(t) => t.id,
|
|
76156
|
-
(t) =>
|
|
76156
|
+
(t) => at`
|
|
76157
76157
|
<div
|
|
76158
76158
|
class="toast-item"
|
|
76159
76159
|
part="item"
|
|
@@ -76166,7 +76166,7 @@ let yp = class extends pr {
|
|
|
76166
76166
|
${t.type === "success" ? "✓" : t.type === "error" ? "✗" : "ℹ"}
|
|
76167
76167
|
</span>
|
|
76168
76168
|
<span class="toast-message" part="message">${t.message}</span>
|
|
76169
|
-
${t.action ?
|
|
76169
|
+
${t.action ? at`<button
|
|
76170
76170
|
class="toast-action"
|
|
76171
76171
|
part="action"
|
|
76172
76172
|
@click=${(e) => {
|
|
@@ -76500,7 +76500,7 @@ let al = class extends pr {
|
|
|
76500
76500
|
return t === this.active ? 0 : -1;
|
|
76501
76501
|
}
|
|
76502
76502
|
render() {
|
|
76503
|
-
return this._localeCtx.locale,
|
|
76503
|
+
return this._localeCtx.locale, at`
|
|
76504
76504
|
<!-- Top activity -->
|
|
76505
76505
|
<div
|
|
76506
76506
|
class="activity-icon ${this.active === "chat" ? "active" : ""}"
|
|
@@ -76513,7 +76513,7 @@ let al = class extends pr {
|
|
|
76513
76513
|
@click=${() => this._handleClick("chat")}
|
|
76514
76514
|
@keydown=${(t) => this._handleKeydown(t, "chat")}
|
|
76515
76515
|
>${a_}</div>
|
|
76516
|
-
${this.showFiles ?
|
|
76516
|
+
${this.showFiles ? at`
|
|
76517
76517
|
<div
|
|
76518
76518
|
class="activity-icon ${this.active === "files" ? "active" : ""}"
|
|
76519
76519
|
data-activity="files"
|
|
@@ -76526,7 +76526,7 @@ let al = class extends pr {
|
|
|
76526
76526
|
@keydown=${(t) => this._handleKeydown(t, "files")}
|
|
76527
76527
|
>${CI}</div>
|
|
76528
76528
|
` : Kt}
|
|
76529
|
-
${this.showFunctions ?
|
|
76529
|
+
${this.showFunctions ? at`
|
|
76530
76530
|
<div
|
|
76531
76531
|
class="activity-icon ${this.active === "functions" ? "active" : ""}"
|
|
76532
76532
|
data-activity="functions"
|
|
@@ -76544,7 +76544,7 @@ let al = class extends pr {
|
|
|
76544
76544
|
<div class="activity-spacer"></div>
|
|
76545
76545
|
|
|
76546
76546
|
<!-- Bottom activity -->
|
|
76547
|
-
${this.showSettings ?
|
|
76547
|
+
${this.showSettings ? at`
|
|
76548
76548
|
<div
|
|
76549
76549
|
class="activity-icon ${this.active === "settings" ? "active" : ""}"
|
|
76550
76550
|
data-activity="settings"
|
|
@@ -76887,7 +76887,7 @@ var J$ = Object.defineProperty, X$ = Object.getOwnPropertyDescriptor, Hu = (t, e
|
|
|
76887
76887
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
76888
76888
|
return n && i && J$(e, r, i), i;
|
|
76889
76889
|
};
|
|
76890
|
-
const Z$ = Yt("FileTreeItem"), Q$ =
|
|
76890
|
+
const Z$ = Yt("FileTreeItem"), Q$ = at`
|
|
76891
76891
|
<svg width="12" height="12" viewBox="0 0 12 12" fill="currentColor">
|
|
76892
76892
|
<path d="M4.5 2l4 4-4 4V2z"/>
|
|
76893
76893
|
</svg>
|
|
@@ -76997,7 +76997,7 @@ let ll = class extends pr {
|
|
|
76997
76997
|
* Render chevron (folders only)
|
|
76998
76998
|
*/
|
|
76999
76999
|
_renderChevron() {
|
|
77000
|
-
return
|
|
77000
|
+
return at`
|
|
77001
77001
|
<span
|
|
77002
77002
|
class="chevron ${this._isExpanded ? "expanded" : ""}"
|
|
77003
77003
|
@click=${this._handleToggle}
|
|
@@ -77010,13 +77010,13 @@ let ll = class extends pr {
|
|
|
77010
77010
|
* Render loading indicator
|
|
77011
77011
|
*/
|
|
77012
77012
|
_renderSpinner() {
|
|
77013
|
-
return this._isLoading ?
|
|
77013
|
+
return this._isLoading ? at`<span class="spinner"></span>` : Kt;
|
|
77014
77014
|
}
|
|
77015
77015
|
/* ── Main Render ── */
|
|
77016
77016
|
render() {
|
|
77017
77017
|
this._localeCtx.locale;
|
|
77018
77018
|
const t = `${this.depth * 16 + 8}px`, e = this._isFolder ? String(this._isExpanded) : null;
|
|
77019
|
-
return
|
|
77019
|
+
return at`
|
|
77020
77020
|
<div class="tree-item">
|
|
77021
77021
|
<div
|
|
77022
77022
|
class="tree-item-content ${this._isSelected ? "selected" : ""}"
|
|
@@ -77027,7 +77027,7 @@ let ll = class extends pr {
|
|
|
77027
77027
|
aria-selected=${this._isSelected ? "true" : "false"}
|
|
77028
77028
|
@click=${this._handleSelect}
|
|
77029
77029
|
>
|
|
77030
|
-
${this._isFolder ? this._renderChevron() :
|
|
77030
|
+
${this._isFolder ? this._renderChevron() : at`<span class="indent"></span>`}
|
|
77031
77031
|
|
|
77032
77032
|
<span class="icon ${this._getIconClass()}">
|
|
77033
77033
|
${this._isFolder ? this._renderFolderIcon() : this._getFileIcon()}
|
|
@@ -77037,10 +77037,10 @@ let ll = class extends pr {
|
|
|
77037
77037
|
${this._renderSpinner()}
|
|
77038
77038
|
</div>
|
|
77039
77039
|
|
|
77040
|
-
${this._isFolder && this._isExpanded && this.node.children ?
|
|
77040
|
+
${this._isFolder && this._isExpanded && this.node.children ? at`
|
|
77041
77041
|
<div class="children" role="group">
|
|
77042
77042
|
${this.node.children.map(
|
|
77043
|
-
(r) =>
|
|
77043
|
+
(r) => at`
|
|
77044
77044
|
<rtc-file-tree-item
|
|
77045
77045
|
.node=${r}
|
|
77046
77046
|
.depth=${this.depth + 1}
|
|
@@ -77331,7 +77331,7 @@ let cl = class extends pr {
|
|
|
77331
77331
|
}
|
|
77332
77332
|
/* ── Render ── */
|
|
77333
77333
|
_renderEmptyState() {
|
|
77334
|
-
return
|
|
77334
|
+
return at`
|
|
77335
77335
|
<div class="empty-state">
|
|
77336
77336
|
<span class="empty-state-icon">${mp}</span>
|
|
77337
77337
|
<span class="empty-state-text">${Oe("文件列表为空")}<br>${Oe("点击刷新按钮加载")}</span>
|
|
@@ -77343,7 +77343,7 @@ let cl = class extends pr {
|
|
|
77343
77343
|
if (!t) return this._renderEmptyState();
|
|
77344
77344
|
const e = t.children;
|
|
77345
77345
|
return !e || e.length === 0 ? this._renderEmptyState() : e.map(
|
|
77346
|
-
(r) =>
|
|
77346
|
+
(r) => at`
|
|
77347
77347
|
<rtc-file-tree-item
|
|
77348
77348
|
.node=${r}
|
|
77349
77349
|
.depth=${0}
|
|
@@ -77355,7 +77355,7 @@ let cl = class extends pr {
|
|
|
77355
77355
|
);
|
|
77356
77356
|
}
|
|
77357
77357
|
render() {
|
|
77358
|
-
return this._localeCtx.locale,
|
|
77358
|
+
return this._localeCtx.locale, at`
|
|
77359
77359
|
<div class="sidebar-header">
|
|
77360
77360
|
<span class="sidebar-title">${Oe("资源管理器")}</span>
|
|
77361
77361
|
<div class="sidebar-actions">
|
|
@@ -77805,7 +77805,7 @@ let ka = class extends pr {
|
|
|
77805
77805
|
this.active ? "active" : "",
|
|
77806
77806
|
this.dirty ? "dirty" : ""
|
|
77807
77807
|
].filter(Boolean).join(" ");
|
|
77808
|
-
return
|
|
77808
|
+
return at`
|
|
77809
77809
|
<div
|
|
77810
77810
|
class=${t}
|
|
77811
77811
|
role="tab"
|
|
@@ -77822,7 +77822,7 @@ let ka = class extends pr {
|
|
|
77822
77822
|
|
|
77823
77823
|
<span class="name">${this.fileName}</span>
|
|
77824
77824
|
|
|
77825
|
-
${this.dirty ?
|
|
77825
|
+
${this.dirty ? at`<span class="dirty-dot" aria-label=${Oe("未保存")}></span>` : ""}
|
|
77826
77826
|
|
|
77827
77827
|
<span
|
|
77828
77828
|
class="close-btn"
|
|
@@ -78142,7 +78142,7 @@ let Yo = class extends pr {
|
|
|
78142
78142
|
}
|
|
78143
78143
|
/* ── Main Render ── */
|
|
78144
78144
|
render() {
|
|
78145
|
-
return this._localeCtx.locale,
|
|
78145
|
+
return this._localeCtx.locale, at`
|
|
78146
78146
|
<div class="toolbar" role="toolbar" aria-label="Editor toolbar">
|
|
78147
78147
|
<!-- Save (primary button) -->
|
|
78148
78148
|
<button
|
|
@@ -78207,7 +78207,7 @@ let Yo = class extends pr {
|
|
|
78207
78207
|
<span class="spacer"></span>
|
|
78208
78208
|
|
|
78209
78209
|
<!-- Restore default (only shown for system-generated files) -->
|
|
78210
|
-
${this.canRestore ?
|
|
78210
|
+
${this.canRestore ? at`
|
|
78211
78211
|
<button
|
|
78212
78212
|
class="toolbar-btn"
|
|
78213
78213
|
title=${Oe("恢复默认内容")}
|
|
@@ -78663,7 +78663,7 @@ let Ts = class extends pr {
|
|
|
78663
78663
|
const [e, r, n] = await Promise.all([
|
|
78664
78664
|
import("./marked.esm-Dch69AxC.js"),
|
|
78665
78665
|
import("./purify.es-C-6FFqDW.js"),
|
|
78666
|
-
import("./highlight-languages-
|
|
78666
|
+
import("./highlight-languages-BVzldaaL.js")
|
|
78667
78667
|
]);
|
|
78668
78668
|
return {
|
|
78669
78669
|
marked: e.marked,
|
|
@@ -78798,7 +78798,7 @@ let Ts = class extends pr {
|
|
|
78798
78798
|
}
|
|
78799
78799
|
/* ── Render ── */
|
|
78800
78800
|
_renderEditPane() {
|
|
78801
|
-
return
|
|
78801
|
+
return at`
|
|
78802
78802
|
<div class="edit-pane">
|
|
78803
78803
|
<div class="edit-pane-header">${Oe("编辑器")}</div>
|
|
78804
78804
|
<textarea
|
|
@@ -78817,18 +78817,18 @@ let Ts = class extends pr {
|
|
|
78817
78817
|
}
|
|
78818
78818
|
_renderPreviewPane() {
|
|
78819
78819
|
const t = !this.content.trim();
|
|
78820
|
-
return
|
|
78820
|
+
return at`
|
|
78821
78821
|
<div class="preview-pane">
|
|
78822
78822
|
<div class="preview-pane-header">${Oe("预览")}</div>
|
|
78823
78823
|
<div class="preview-content">
|
|
78824
|
-
${t ?
|
|
78824
|
+
${t ? at`<div class="empty-state">${Oe("暂无内容")}</div>` : at`<div .innerHTML=${this._renderedHtml}></div>`}
|
|
78825
78825
|
</div>
|
|
78826
78826
|
</div>
|
|
78827
78827
|
`;
|
|
78828
78828
|
}
|
|
78829
78829
|
_renderSplitPane() {
|
|
78830
78830
|
const t = `flex: 0 0 ${this._splitPosition}%`, e = `flex: 0 0 ${100 - this._splitPosition}%`;
|
|
78831
|
-
return
|
|
78831
|
+
return at`
|
|
78832
78832
|
<div class="split-container">
|
|
78833
78833
|
<div class="edit-pane" style=${t}>
|
|
78834
78834
|
<div class="edit-pane-header">${Oe("编辑器")}</div>
|
|
@@ -78851,14 +78851,14 @@ let Ts = class extends pr {
|
|
|
78851
78851
|
<div class="preview-pane" style=${e}>
|
|
78852
78852
|
<div class="preview-pane-header">${Oe("预览")}</div>
|
|
78853
78853
|
<div class="preview-content">
|
|
78854
|
-
${this.content.trim() ?
|
|
78854
|
+
${this.content.trim() ? at`<div .innerHTML=${this._renderedHtml}></div>` : at`<div class="empty-state">${Oe("暂无内容")}</div>`}
|
|
78855
78855
|
</div>
|
|
78856
78856
|
</div>
|
|
78857
78857
|
</div>
|
|
78858
78858
|
`;
|
|
78859
78859
|
}
|
|
78860
78860
|
render() {
|
|
78861
|
-
return this._localeCtx.locale,
|
|
78861
|
+
return this._localeCtx.locale, at`
|
|
78862
78862
|
<div class="editor-content">
|
|
78863
78863
|
${this.viewMode === "edit" ? this._renderEditPane() : this.viewMode === "preview" ? this._renderPreviewPane() : this._renderSplitPane()}
|
|
78864
78864
|
</div>
|
|
@@ -79047,9 +79047,9 @@ let rc = class extends pr {
|
|
|
79047
79047
|
}
|
|
79048
79048
|
/* ── Render Helpers ── */
|
|
79049
79049
|
_renderTabs() {
|
|
79050
|
-
return this.tabs.length === 0 ? Kt :
|
|
79050
|
+
return this.tabs.length === 0 ? Kt : at`
|
|
79051
79051
|
<div class="tabs-bar" role="tablist" aria-label="Open files">
|
|
79052
|
-
${this.tabs.map((t) =>
|
|
79052
|
+
${this.tabs.map((t) => at`
|
|
79053
79053
|
<rtc-editor-tab
|
|
79054
79054
|
file-path=${t.filePath}
|
|
79055
79055
|
file-name=${this._getFileName(t.filePath)}
|
|
@@ -79064,7 +79064,7 @@ let rc = class extends pr {
|
|
|
79064
79064
|
`;
|
|
79065
79065
|
}
|
|
79066
79066
|
_renderToolbar() {
|
|
79067
|
-
return this._activeTab ?
|
|
79067
|
+
return this._activeTab ? at`
|
|
79068
79068
|
<div class="toolbar-area">
|
|
79069
79069
|
<rtc-editor-toolbar
|
|
79070
79070
|
?can-save=${this._canSave}
|
|
@@ -79084,7 +79084,7 @@ let rc = class extends pr {
|
|
|
79084
79084
|
` : Kt;
|
|
79085
79085
|
}
|
|
79086
79086
|
_renderEditor() {
|
|
79087
|
-
return this._activeTab ?
|
|
79087
|
+
return this._activeTab ? at`
|
|
79088
79088
|
<div class="editor-content">
|
|
79089
79089
|
<rtc-markdown-editor
|
|
79090
79090
|
.content=${this._activeTab.content}
|
|
@@ -79097,7 +79097,7 @@ let rc = class extends pr {
|
|
|
79097
79097
|
` : this._renderWelcome();
|
|
79098
79098
|
}
|
|
79099
79099
|
_renderWelcome() {
|
|
79100
|
-
return
|
|
79100
|
+
return at`
|
|
79101
79101
|
<div class="welcome-screen">
|
|
79102
79102
|
<div class="welcome-icon">${l_}</div>
|
|
79103
79103
|
<div class="welcome-title">RTC Agent Editor</div>
|
|
@@ -79114,7 +79114,7 @@ let rc = class extends pr {
|
|
|
79114
79114
|
}
|
|
79115
79115
|
/* ── Main Render ── */
|
|
79116
79116
|
render() {
|
|
79117
|
-
return this._localeCtx.locale,
|
|
79117
|
+
return this._localeCtx.locale, at`
|
|
79118
79118
|
${this._renderTabs()}
|
|
79119
79119
|
${this._renderToolbar()}
|
|
79120
79120
|
${this._renderEditor()}
|
|
@@ -79218,11 +79218,11 @@ let gu = class extends pr {
|
|
|
79218
79218
|
return this._localeCtx.locale, this.fileInfo.saveStatus === "none" ? this._renderEmpty() : this._renderItems();
|
|
79219
79219
|
}
|
|
79220
79220
|
_renderEmpty() {
|
|
79221
|
-
return
|
|
79221
|
+
return at`<span class="status-empty">${Oe("未打开文件")}</span>`;
|
|
79222
79222
|
}
|
|
79223
79223
|
_renderItems() {
|
|
79224
79224
|
const { fileType: t, encoding: e, cursor: r, saveStatus: n } = this.fileInfo, i = n;
|
|
79225
|
-
return
|
|
79225
|
+
return at`
|
|
79226
79226
|
<span class="status-item status-file-type">${t}</span>
|
|
79227
79227
|
<span class="status-item status-encoding">${e}</span>
|
|
79228
79228
|
<span class="status-item status-cursor">
|
|
@@ -80040,7 +80040,7 @@ let Jo = class extends pr {
|
|
|
80040
80040
|
render() {
|
|
80041
80041
|
this._localeCtx.locale;
|
|
80042
80042
|
const t = this.node, e = t.children.length > 0, r = this.selectedSessionId === t.session.clientId, n = this.depth === 0, i = `${this.depth * 16 + 8}px`;
|
|
80043
|
-
return
|
|
80043
|
+
return at`
|
|
80044
80044
|
<div
|
|
80045
80045
|
class=${ko({
|
|
80046
80046
|
"tree-item-content": !0,
|
|
@@ -80054,13 +80054,13 @@ let Jo = class extends pr {
|
|
|
80054
80054
|
tabindex="0"
|
|
80055
80055
|
@click=${this._handleClick}
|
|
80056
80056
|
>
|
|
80057
|
-
${e ?
|
|
80057
|
+
${e ? at`<span
|
|
80058
80058
|
class=${ko({
|
|
80059
80059
|
chevron: !0,
|
|
80060
80060
|
expanded: t.isExpanded
|
|
80061
80061
|
})}
|
|
80062
80062
|
@click=${this._handleToggle}
|
|
80063
|
-
>${NU}</span>` :
|
|
80063
|
+
>${NU}</span>` : at`<span class="indent"></span>`}
|
|
80064
80064
|
<span class=${ko({
|
|
80065
80065
|
icon: !0,
|
|
80066
80066
|
folder: n && !t.isExpanded,
|
|
@@ -80069,7 +80069,7 @@ let Jo = class extends pr {
|
|
|
80069
80069
|
})}>
|
|
80070
80070
|
${n ? t.isExpanded ? II : kI : a_}
|
|
80071
80071
|
</span>
|
|
80072
|
-
${n ? Kt :
|
|
80072
|
+
${n ? Kt : at`<span
|
|
80073
80073
|
class=${ko({
|
|
80074
80074
|
"status-dot": !0,
|
|
80075
80075
|
active: t.session.status === "active",
|
|
@@ -80077,7 +80077,7 @@ let Jo = class extends pr {
|
|
|
80077
80077
|
})}
|
|
80078
80078
|
aria-hidden="true"
|
|
80079
80079
|
></span>`}
|
|
80080
|
-
${this._isRenaming ?
|
|
80080
|
+
${this._isRenaming ? at`
|
|
80081
80081
|
<input
|
|
80082
80082
|
class="rename-input"
|
|
80083
80083
|
type="text"
|
|
@@ -80102,9 +80102,9 @@ let Jo = class extends pr {
|
|
|
80102
80102
|
@click=${this._handleRenameCancel}
|
|
80103
80103
|
>${MI}</button>
|
|
80104
80104
|
</span>
|
|
80105
|
-
` :
|
|
80105
|
+
` : at`
|
|
80106
80106
|
<span class="label">${t.session.title || Oe("未命名")}</span>
|
|
80107
|
-
${t.session.updatedAt ?
|
|
80107
|
+
${t.session.updatedAt ? at`<span class="timestamp">${CU(t.session.updatedAt, this._localeCtx.locale)}</span>` : Kt}
|
|
80108
80108
|
<span class="actions">
|
|
80109
80109
|
<button
|
|
80110
80110
|
class="action-btn"
|
|
@@ -80121,10 +80121,10 @@ let Jo = class extends pr {
|
|
|
80121
80121
|
</span>
|
|
80122
80122
|
`}
|
|
80123
80123
|
</div>
|
|
80124
|
-
${e && t.isExpanded ?
|
|
80124
|
+
${e && t.isExpanded ? at`
|
|
80125
80125
|
<div class="children" role="group">
|
|
80126
80126
|
${t.children.map(
|
|
80127
|
-
(s) =>
|
|
80127
|
+
(s) => at`
|
|
80128
80128
|
<rtc-session-tree-item
|
|
80129
80129
|
.node=${s}
|
|
80130
80130
|
.depth=${this.depth + 1}
|
|
@@ -80400,7 +80400,7 @@ let ul = class extends pr {
|
|
|
80400
80400
|
}
|
|
80401
80401
|
/* ── Render ── */
|
|
80402
80402
|
_renderEmptyState() {
|
|
80403
|
-
return
|
|
80403
|
+
return at`
|
|
80404
80404
|
<div class="empty-state">
|
|
80405
80405
|
<span class="empty-state-icon">${mp}</span>
|
|
80406
80406
|
<span class="empty-state-text">${Oe("暂无会话")}</span>
|
|
@@ -80413,7 +80413,7 @@ let ul = class extends pr {
|
|
|
80413
80413
|
return aA.warn("_renderTree: treeCtx or state is undefined, rendering empty state"), this._renderEmptyState();
|
|
80414
80414
|
const { rootNodes: t } = this._treeCtx.state;
|
|
80415
80415
|
return t.length === 0 ? this._renderEmptyState() : t.map(
|
|
80416
|
-
(r) =>
|
|
80416
|
+
(r) => at`
|
|
80417
80417
|
<rtc-session-tree-item
|
|
80418
80418
|
.node=${r}
|
|
80419
80419
|
.depth=${0}
|
|
@@ -80428,7 +80428,7 @@ let ul = class extends pr {
|
|
|
80428
80428
|
);
|
|
80429
80429
|
}
|
|
80430
80430
|
render() {
|
|
80431
|
-
return this._localeCtx.locale,
|
|
80431
|
+
return this._localeCtx.locale, at`
|
|
80432
80432
|
<div class="sidebar-header">
|
|
80433
80433
|
<span class="sidebar-title">${Oe("会话")}</span>
|
|
80434
80434
|
<div class="sidebar-actions">
|
|
@@ -80827,7 +80827,7 @@ let Xo = class extends pr {
|
|
|
80827
80827
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this._handleClick()), t.key === "Escape" && this._handleClose(t);
|
|
80828
80828
|
}
|
|
80829
80829
|
render() {
|
|
80830
|
-
return this._localeCtx.locale,
|
|
80830
|
+
return this._localeCtx.locale, at`
|
|
80831
80831
|
<div
|
|
80832
80832
|
class=${ko({
|
|
80833
80833
|
tab: !0,
|
|
@@ -80848,7 +80848,7 @@ let Xo = class extends pr {
|
|
|
80848
80848
|
aria-hidden="true"
|
|
80849
80849
|
></span>
|
|
80850
80850
|
<span class="tab-title">${this.title || Oe("未命名")}</span>
|
|
80851
|
-
${this.dirty ?
|
|
80851
|
+
${this.dirty ? at`<span class="tab-dirty" aria-label="unsaved"></span>` : ""}
|
|
80852
80852
|
<button
|
|
80853
80853
|
class="tab-close"
|
|
80854
80854
|
aria-label=${Oe("关闭")}
|
|
@@ -80976,10 +80976,10 @@ let bu = class extends pr {
|
|
|
80976
80976
|
render() {
|
|
80977
80977
|
this._localeCtx.locale;
|
|
80978
80978
|
const { tabs: t, activeSessionId: e } = this._tabCtx.state;
|
|
80979
|
-
return
|
|
80979
|
+
return at`
|
|
80980
80980
|
<div class="tab-bar-wrapper">
|
|
80981
80981
|
<div class="tabs-scroll">
|
|
80982
|
-
${t.map((r) =>
|
|
80982
|
+
${t.map((r) => at`
|
|
80983
80983
|
<rtc-session-tab
|
|
80984
80984
|
id="tab-${r.sessionId}"
|
|
80985
80985
|
session-id=${r.sessionId}
|
|
@@ -82008,7 +82008,7 @@ let dl = class extends pr {
|
|
|
82008
82008
|
const [e, r, n] = await Promise.all([
|
|
82009
82009
|
import("./marked.esm-Dch69AxC.js"),
|
|
82010
82010
|
import("./purify.es-C-6FFqDW.js"),
|
|
82011
|
-
import("./highlight-languages-
|
|
82011
|
+
import("./highlight-languages-BVzldaaL.js")
|
|
82012
82012
|
]);
|
|
82013
82013
|
return {
|
|
82014
82014
|
marked: e.marked,
|
|
@@ -82147,7 +82147,7 @@ let dl = class extends pr {
|
|
|
82147
82147
|
"prompt-content": i,
|
|
82148
82148
|
success: e && !t.streaming && !r && !n && !i && !!((o = t.content) != null && o.data)
|
|
82149
82149
|
};
|
|
82150
|
-
return
|
|
82150
|
+
return at`
|
|
82151
82151
|
<div class=${ko(s)}>
|
|
82152
82152
|
<div
|
|
82153
82153
|
class="timeline-dot"
|
|
@@ -82156,7 +82156,7 @@ let dl = class extends pr {
|
|
|
82156
82156
|
@click=${this._handleDotClick}
|
|
82157
82157
|
></div>
|
|
82158
82158
|
<div class="timeline-content" part="content">
|
|
82159
|
-
${r ? this._renderThinkingBlock() : n ? this._renderSummaryBlock() : i ? this._renderPromptBlock() :
|
|
82159
|
+
${r ? this._renderThinkingBlock() : n ? this._renderSummaryBlock() : i ? this._renderPromptBlock() : at`<div .innerHTML=${this._renderedHtml}></div>`}
|
|
82160
82160
|
</div>
|
|
82161
82161
|
</div>
|
|
82162
82162
|
`;
|
|
@@ -82169,13 +82169,13 @@ let dl = class extends pr {
|
|
|
82169
82169
|
*/
|
|
82170
82170
|
_renderThinkingBlock() {
|
|
82171
82171
|
const t = this._thinkingExpanded;
|
|
82172
|
-
return
|
|
82172
|
+
return at`
|
|
82173
82173
|
<div class="thinking-block" data-expanded=${t ? "" : void 0}>
|
|
82174
82174
|
<div class="thinking-header" @click=${this._toggleThinking}>
|
|
82175
82175
|
<span class="thinking-chevron">${t ? "▾" : "▸"}</span>
|
|
82176
82176
|
<span class="thinking-label">${Oe("思考过程")}</span>
|
|
82177
82177
|
</div>
|
|
82178
|
-
${t ?
|
|
82178
|
+
${t ? at`<div class="thinking-body"><div .innerHTML=${this._renderedHtml}></div></div>` : null}
|
|
82179
82179
|
</div>
|
|
82180
82180
|
`;
|
|
82181
82181
|
}
|
|
@@ -82190,17 +82190,17 @@ let dl = class extends pr {
|
|
|
82190
82190
|
*/
|
|
82191
82191
|
_renderSummaryBlock() {
|
|
82192
82192
|
const t = !!this.message.streaming, { tokensSaved: e, durationMs: r } = this._extractSummaryStats();
|
|
82193
|
-
return
|
|
82193
|
+
return at`
|
|
82194
82194
|
<div class="summary-block">
|
|
82195
82195
|
<div class="summary-header">
|
|
82196
82196
|
<span class="summary-label">
|
|
82197
82197
|
${Oe(t ? "正在压缩上下文..." : "已压缩上下文")}
|
|
82198
82198
|
</span>
|
|
82199
|
-
${!t && e !== 0 ?
|
|
82199
|
+
${!t && e !== 0 ? at`<span class="summary-stats">
|
|
82200
82200
|
<span class=${e > 0 ? "summary-tokens-saved" : "summary-tokens-increased"}>
|
|
82201
82201
|
${e > 0 ? Oe("释放") : Oe("增加")} ${this._formatTokens(Math.abs(e))}
|
|
82202
82202
|
</span>
|
|
82203
|
-
${r > 0 ?
|
|
82203
|
+
${r > 0 ? at`<span class="summary-duration">· ${this._formatDuration(r)}</span>` : null}
|
|
82204
82204
|
</span>` : null}
|
|
82205
82205
|
</div>
|
|
82206
82206
|
</div>
|
|
@@ -82224,13 +82224,13 @@ let dl = class extends pr {
|
|
|
82224
82224
|
_renderPromptBlock() {
|
|
82225
82225
|
var s, o;
|
|
82226
82226
|
const t = (o = (s = this.message) == null ? void 0 : s.content) == null ? void 0 : o.data;
|
|
82227
|
-
if (!t) return
|
|
82227
|
+
if (!t) return at``;
|
|
82228
82228
|
const { name: e, title: r, prompt: n } = t, i = e.toUpperCase();
|
|
82229
|
-
return
|
|
82229
|
+
return at`
|
|
82230
82230
|
<div class="prompt-block" part="prompt">
|
|
82231
82231
|
<div class="prompt-header">
|
|
82232
82232
|
<span class="prompt-name">${i}</span>
|
|
82233
|
-
${r ?
|
|
82233
|
+
${r ? at`<span class="prompt-title">${r}</span>` : null}
|
|
82234
82234
|
</div>
|
|
82235
82235
|
<pre class="prompt-preview">${n}</pre>
|
|
82236
82236
|
</div>
|
|
@@ -83470,14 +83470,14 @@ let _u = class extends pr {
|
|
|
83470
83470
|
);
|
|
83471
83471
|
}
|
|
83472
83472
|
render() {
|
|
83473
|
-
return this._localeCtx.locale,
|
|
83473
|
+
return this._localeCtx.locale, at`
|
|
83474
83474
|
<div class="more-menu">
|
|
83475
83475
|
<button @click=${() => this._handleSelect("copy")}>${Oe("复制")}</button>
|
|
83476
83476
|
<button
|
|
83477
83477
|
?disabled=${this.syncStatus !== "synced"}
|
|
83478
83478
|
@click=${() => this._handleSelect("fork")}
|
|
83479
83479
|
>${Oe("分叉")}</button>
|
|
83480
|
-
${this.syncStatus === "failed" ?
|
|
83480
|
+
${this.syncStatus === "failed" ? at`<button @click=${() => this._handleSelect("retry")}>${Oe("重试")}</button>` : null}
|
|
83481
83481
|
<div class="divider"></div>
|
|
83482
83482
|
<div class="footer">${this._formattedTimestamp}</div>
|
|
83483
83483
|
</div>
|
|
@@ -83759,12 +83759,12 @@ let Ia = class extends pr {
|
|
|
83759
83759
|
var n;
|
|
83760
83760
|
this._localeCtx.locale;
|
|
83761
83761
|
const t = this._getUserMessageData(), e = (t == null ? void 0 : t.text) ?? this._getTextContent(), r = ((n = this.message) == null ? void 0 : n.syncStatus) ?? "synced";
|
|
83762
|
-
return
|
|
83762
|
+
return at`
|
|
83763
83763
|
<div class="user-message-wrapper" part="wrapper">
|
|
83764
83764
|
<div class="user-message" part="bubble">
|
|
83765
83765
|
<div class="user-message-text" part="text">${e}</div>
|
|
83766
83766
|
|
|
83767
|
-
${this._isOverflowing ?
|
|
83767
|
+
${this._isOverflowing ? at`<button
|
|
83768
83768
|
class="show-more-btn"
|
|
83769
83769
|
part="show-more"
|
|
83770
83770
|
@click=${this._handleShowMore}
|
|
@@ -83777,7 +83777,7 @@ let Ia = class extends pr {
|
|
|
83777
83777
|
@click=${this._handleMoreClick}
|
|
83778
83778
|
>⋯</button>
|
|
83779
83779
|
|
|
83780
|
-
${r === "pending" ?
|
|
83780
|
+
${r === "pending" ? at`
|
|
83781
83781
|
<div class="sync-indicator" aria-hidden="true">
|
|
83782
83782
|
<span class="sync-indicator-dot"></span>
|
|
83783
83783
|
<span class="sync-indicator-text">${Oe("发送中")}</span>
|
|
@@ -84159,18 +84159,18 @@ let vp = class extends pr {
|
|
|
84159
84159
|
return this._scrollLocked;
|
|
84160
84160
|
}
|
|
84161
84161
|
render() {
|
|
84162
|
-
return
|
|
84162
|
+
return at`
|
|
84163
84163
|
<div class="scroll-container ${this._scrollLocked ? "locked" : "unlocked"}">
|
|
84164
84164
|
<div class="content">
|
|
84165
84165
|
<slot></slot>
|
|
84166
84166
|
</div>
|
|
84167
|
-
${this._scrollLocked ?
|
|
84167
|
+
${this._scrollLocked ? at`
|
|
84168
84168
|
<div class="scroll-indicator" @click=${this._toggleScrollLock}>
|
|
84169
84169
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
84170
84170
|
<path d="M8 11L3 6h10l-5 5z"/>
|
|
84171
84171
|
</svg>
|
|
84172
84172
|
</div>
|
|
84173
|
-
` :
|
|
84173
|
+
` : at`
|
|
84174
84174
|
<div class="scroll-indicator scroll-indicator-up" @click=${this._toggleScrollLock}>
|
|
84175
84175
|
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
|
84176
84176
|
<path d="M8 5l5 5H3l5-5z"/>
|
|
@@ -84334,7 +84334,7 @@ let xu = class extends pr {
|
|
|
84334
84334
|
"toolcall-card-item": !0,
|
|
84335
84335
|
success: this.isLast && e
|
|
84336
84336
|
};
|
|
84337
|
-
return
|
|
84337
|
+
return at`
|
|
84338
84338
|
<div class=${ko(s)}>
|
|
84339
84339
|
<div
|
|
84340
84340
|
class="timeline-dot"
|
|
@@ -84398,7 +84398,7 @@ let xu = class extends pr {
|
|
|
84398
84398
|
if (t === "script" && e)
|
|
84399
84399
|
return this._renderScriptInput(e);
|
|
84400
84400
|
const r = (e == null ? void 0 : e.input) != null ? Ch(e.input) : "{}";
|
|
84401
|
-
return
|
|
84401
|
+
return at`
|
|
84402
84402
|
<div class="toolcall-section in" part="in">
|
|
84403
84403
|
<span class="toolcall-label">In</span>
|
|
84404
84404
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-sm); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-lg);">
|
|
@@ -84414,7 +84414,7 @@ let xu = class extends pr {
|
|
|
84414
84414
|
const e = YV(t);
|
|
84415
84415
|
if (!e) {
|
|
84416
84416
|
const r = Ch(t.input);
|
|
84417
|
-
return
|
|
84417
|
+
return at`
|
|
84418
84418
|
<div class="toolcall-section in" part="in">
|
|
84419
84419
|
<span class="toolcall-label">In</span>
|
|
84420
84420
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-sm); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-lg);">
|
|
@@ -84423,14 +84423,14 @@ let xu = class extends pr {
|
|
|
84423
84423
|
</div>
|
|
84424
84424
|
`;
|
|
84425
84425
|
}
|
|
84426
|
-
return e.action === "eval" ?
|
|
84426
|
+
return e.action === "eval" ? at`
|
|
84427
84427
|
<div class="toolcall-section in" part="in">
|
|
84428
84428
|
<span class="toolcall-label">Code</span>
|
|
84429
84429
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
84430
84430
|
<pre class="toolcall-code-block">${e.code || ""}</pre>
|
|
84431
84431
|
</rtc-scroll-container>
|
|
84432
84432
|
</div>
|
|
84433
|
-
` : e.action === "save" ?
|
|
84433
|
+
` : e.action === "save" ? at`
|
|
84434
84434
|
<div class="toolcall-section in" part="in">
|
|
84435
84435
|
<div class="toolcall-script-meta">
|
|
84436
84436
|
<span class="toolcall-meta-label">Name</span>
|
|
@@ -84440,7 +84440,7 @@ let xu = class extends pr {
|
|
|
84440
84440
|
<pre class="toolcall-code-block">${e.code || ""}</pre>
|
|
84441
84441
|
</rtc-scroll-container>
|
|
84442
84442
|
</div>
|
|
84443
|
-
` :
|
|
84443
|
+
` : at`
|
|
84444
84444
|
<div class="toolcall-section in" part="in">
|
|
84445
84445
|
<div class="toolcall-script-meta">
|
|
84446
84446
|
<span class="toolcall-meta-label">Name</span>
|
|
@@ -84450,7 +84450,7 @@ let xu = class extends pr {
|
|
|
84450
84450
|
<span class="toolcall-meta-label">Action</span>
|
|
84451
84451
|
<span class="toolcall-meta-value">${e.action}</span>
|
|
84452
84452
|
</div>
|
|
84453
|
-
${e.params ?
|
|
84453
|
+
${e.params ? at`
|
|
84454
84454
|
<div class="toolcall-script-meta">
|
|
84455
84455
|
<span class="toolcall-meta-label">Params</span>
|
|
84456
84456
|
<span class="toolcall-meta-value">${JSON.stringify(e.params)}</span>
|
|
@@ -84466,7 +84466,7 @@ let xu = class extends pr {
|
|
|
84466
84466
|
const e = gA(t);
|
|
84467
84467
|
if (!e || e.length === 0) {
|
|
84468
84468
|
const r = Ch(t.input);
|
|
84469
|
-
return
|
|
84469
|
+
return at`
|
|
84470
84470
|
<div class="toolcall-section in" part="in">
|
|
84471
84471
|
<span class="toolcall-label">In</span>
|
|
84472
84472
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-sm); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-lg);">
|
|
@@ -84475,7 +84475,7 @@ let xu = class extends pr {
|
|
|
84475
84475
|
</div>
|
|
84476
84476
|
`;
|
|
84477
84477
|
}
|
|
84478
|
-
return
|
|
84478
|
+
return at`
|
|
84479
84479
|
<div class="toolcall-todo-list">
|
|
84480
84480
|
${e.map((r) => this._renderTodoItem(r))}
|
|
84481
84481
|
</div>
|
|
@@ -84486,12 +84486,12 @@ let xu = class extends pr {
|
|
|
84486
84486
|
*/
|
|
84487
84487
|
_renderTodoItem(t) {
|
|
84488
84488
|
const e = t.status || "pending", r = e === "completed", n = e === "in_progress", i = r ? "✓" : n ? "●" : "○", s = `todo-item-${e}`;
|
|
84489
|
-
return
|
|
84489
|
+
return at`
|
|
84490
84490
|
<div class="toolcall-todo-item ${s}">
|
|
84491
84491
|
<span class="todo-icon">${i}</span>
|
|
84492
84492
|
<div class="todo-content">
|
|
84493
84493
|
<span class="todo-text">${t.content}</span>
|
|
84494
|
-
${n && t.active_form ?
|
|
84494
|
+
${n && t.active_form ? at`
|
|
84495
84495
|
<span class="todo-active-form">${t.active_form}</span>
|
|
84496
84496
|
` : Kt}
|
|
84497
84497
|
</div>
|
|
@@ -84919,7 +84919,7 @@ let _p = class extends pr {
|
|
|
84919
84919
|
* Empty reply: renders with height 0 (for tools like todoWrite where output is not important).
|
|
84920
84920
|
*/
|
|
84921
84921
|
_renderEmptyReply() {
|
|
84922
|
-
return
|
|
84922
|
+
return at`
|
|
84923
84923
|
<div class="timeline-item reply-empty">
|
|
84924
84924
|
<div class="timeline-dot" part="dot" data-timestamp=${this._formattedTimestamp}></div>
|
|
84925
84925
|
<div class="timeline-content" part="content">
|
|
@@ -84933,7 +84933,7 @@ let _p = class extends pr {
|
|
|
84933
84933
|
*/
|
|
84934
84934
|
_renderFallback() {
|
|
84935
84935
|
var t;
|
|
84936
|
-
return
|
|
84936
|
+
return at`
|
|
84937
84937
|
<div class="timeline-item">
|
|
84938
84938
|
<div class="timeline-dot" part="dot" data-timestamp=${this._formattedTimestamp} @click=${this._handleDotClick}></div>
|
|
84939
84939
|
<div class="timeline-content" part="content">
|
|
@@ -84955,7 +84955,7 @@ let _p = class extends pr {
|
|
|
84955
84955
|
if (!n)
|
|
84956
84956
|
return this._renderGenericReply(t);
|
|
84957
84957
|
const i = ((f = n.data) == null ? void 0 : f.logs) || [], s = ((m = n.data) == null ? void 0 : m.warnings) || [], o = ((y = n.data) == null ? void 0 : y.errors) || [], l = (_ = n.data) == null ? void 0 : _.duration_ms, c = n.success !== !1, p = n.error;
|
|
84958
|
-
return
|
|
84958
|
+
return at`
|
|
84959
84959
|
<div class="timeline-item">
|
|
84960
84960
|
<div class="timeline-dot" part="dot" data-timestamp=${this._formattedTimestamp} @click=${this._handleDotClick}></div>
|
|
84961
84961
|
<div class="timeline-content" part="content">
|
|
@@ -84970,7 +84970,7 @@ let _p = class extends pr {
|
|
|
84970
84970
|
<span class="reply-status-dot"></span>
|
|
84971
84971
|
</div>
|
|
84972
84972
|
|
|
84973
|
-
${i.length > 0 ?
|
|
84973
|
+
${i.length > 0 ? at`
|
|
84974
84974
|
<div class="reply-section">
|
|
84975
84975
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
84976
84976
|
<pre class="reply-content reply-logs">${i.join(`
|
|
@@ -84979,7 +84979,7 @@ let _p = class extends pr {
|
|
|
84979
84979
|
</div>
|
|
84980
84980
|
` : Kt}
|
|
84981
84981
|
|
|
84982
|
-
${s.length > 0 ?
|
|
84982
|
+
${s.length > 0 ? at`
|
|
84983
84983
|
<div class="reply-section">
|
|
84984
84984
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
84985
84985
|
<pre class="reply-content reply-warnings">${s.map((N) => `[WARN] ${N}`).join(`
|
|
@@ -84988,7 +84988,7 @@ let _p = class extends pr {
|
|
|
84988
84988
|
</div>
|
|
84989
84989
|
` : Kt}
|
|
84990
84990
|
|
|
84991
|
-
${o.length > 0 ?
|
|
84991
|
+
${o.length > 0 ? at`
|
|
84992
84992
|
<div class="reply-section">
|
|
84993
84993
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
84994
84994
|
<pre class="reply-content reply-errors">${o.map((N) => `[ERR] ${N}`).join(`
|
|
@@ -84997,7 +84997,7 @@ let _p = class extends pr {
|
|
|
84997
84997
|
</div>
|
|
84998
84998
|
` : Kt}
|
|
84999
84999
|
|
|
85000
|
-
${p ?
|
|
85000
|
+
${p ? at`
|
|
85001
85001
|
<div class="reply-section">
|
|
85002
85002
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
85003
85003
|
<pre class="reply-content reply-errors">${p}</pre>
|
|
@@ -85005,7 +85005,7 @@ let _p = class extends pr {
|
|
|
85005
85005
|
</div>
|
|
85006
85006
|
` : Kt}
|
|
85007
85007
|
|
|
85008
|
-
${i.length === 0 && s.length === 0 && o.length === 0 && !p ?
|
|
85008
|
+
${i.length === 0 && s.length === 0 && o.length === 0 && !p ? at`
|
|
85009
85009
|
<div class="reply-section">
|
|
85010
85010
|
<rtc-scroll-container style="--rtc-scroll-max-height-locked: var(--rtc-content-height-md); --rtc-scroll-max-height-unlocked: var(--rtc-content-height-xl);">
|
|
85011
85011
|
<pre class="reply-content reply-empty">${Oe("(无输出)")}</pre>
|
|
@@ -85014,10 +85014,10 @@ let _p = class extends pr {
|
|
|
85014
85014
|
` : Kt}
|
|
85015
85015
|
|
|
85016
85016
|
<div class="reply-footer">
|
|
85017
|
-
${c ? Kt :
|
|
85017
|
+
${c ? Kt : at`
|
|
85018
85018
|
<span class="reply-status-label reply-status-failed">${Oe("失败")}</span>
|
|
85019
85019
|
`}
|
|
85020
|
-
${l != null ?
|
|
85020
|
+
${l != null ? at`
|
|
85021
85021
|
<span class="reply-duration">${l}ms</span>
|
|
85022
85022
|
` : Kt}
|
|
85023
85023
|
</div>
|
|
@@ -85031,7 +85031,7 @@ let _p = class extends pr {
|
|
|
85031
85031
|
*/
|
|
85032
85032
|
_renderReadReply(t) {
|
|
85033
85033
|
const e = Ab(t.tool_name, t.input), r = t.id ? Tb(t.id) : "", n = t.output;
|
|
85034
|
-
return
|
|
85034
|
+
return at`
|
|
85035
85035
|
<div class="timeline-item">
|
|
85036
85036
|
<div
|
|
85037
85037
|
class="timeline-dot"
|
|
@@ -85070,7 +85070,7 @@ let _p = class extends pr {
|
|
|
85070
85070
|
return t.output;
|
|
85071
85071
|
}
|
|
85072
85072
|
})();
|
|
85073
|
-
return
|
|
85073
|
+
return at`
|
|
85074
85074
|
<div class="timeline-item">
|
|
85075
85075
|
<div
|
|
85076
85076
|
class="timeline-dot"
|
|
@@ -85218,7 +85218,7 @@ let wu = class extends pr {
|
|
|
85218
85218
|
const t = this._errorData;
|
|
85219
85219
|
if (!t) return Kt;
|
|
85220
85220
|
const e = this._getCategoryConfig(t.category);
|
|
85221
|
-
return
|
|
85221
|
+
return at`
|
|
85222
85222
|
<div class="timeline-item">
|
|
85223
85223
|
<div
|
|
85224
85224
|
class="timeline-dot"
|
|
@@ -85240,15 +85240,15 @@ let wu = class extends pr {
|
|
|
85240
85240
|
</div>
|
|
85241
85241
|
<span class="error-category-label">${e.label}</span>
|
|
85242
85242
|
</div>
|
|
85243
|
-
${t.retryable || t.show_raw_error && t.raw_error ?
|
|
85243
|
+
${t.retryable || t.show_raw_error && t.raw_error ? at`
|
|
85244
85244
|
<div class="error-actions">
|
|
85245
|
-
${t.retryable ?
|
|
85246
|
-
${t.show_raw_error && t.raw_error ?
|
|
85245
|
+
${t.retryable ? at`<button class="error-retry-btn" @click=${this._handleRetry} aria-label=${Oe("重试")}>${Oe("重试")}</button>` : null}
|
|
85246
|
+
${t.show_raw_error && t.raw_error ? at`<button class="error-raw-toggle" @click=${this._toggleRawError} aria-expanded=${this._rawErrorExpanded}>
|
|
85247
85247
|
${this._rawErrorExpanded ? "▾" : "▸"} ${Oe("原始错误")}
|
|
85248
85248
|
</button>` : null}
|
|
85249
85249
|
</div>
|
|
85250
85250
|
` : null}
|
|
85251
|
-
${this._rawErrorExpanded && t.raw_error ?
|
|
85251
|
+
${this._rawErrorExpanded && t.raw_error ? at`
|
|
85252
85252
|
<div class="error-raw-panel">
|
|
85253
85253
|
<pre>${t.raw_error}</pre>
|
|
85254
85254
|
</div>
|
|
@@ -87195,7 +87195,7 @@ let Do = class extends pr {
|
|
|
87195
87195
|
n ? t.setAttribute("is-last", "") : t.removeAttribute("is-last");
|
|
87196
87196
|
}
|
|
87197
87197
|
render() {
|
|
87198
|
-
return this._localeCtx.locale, this._userAtBottom,
|
|
87198
|
+
return this._localeCtx.locale, this._userAtBottom, at`
|
|
87199
87199
|
<div class="message-list-scroll" part="scroll">
|
|
87200
87200
|
<div class="message-list-inner" part="inner">
|
|
87201
87201
|
<!-- MessageVirtualScroll dynamically inserts message elements here -->
|
|
@@ -87283,7 +87283,7 @@ let Su = class extends pr {
|
|
|
87283
87283
|
}, this.hintText = Oe("输入 /goal <你的目标> — AI 会自动规划、执行并自我检查直到完成"), this.theme = "light";
|
|
87284
87284
|
}
|
|
87285
87285
|
render() {
|
|
87286
|
-
return this._localeCtx.locale,
|
|
87286
|
+
return this._localeCtx.locale, at`
|
|
87287
87287
|
<div class="logo-container" part="logo"><rtc-logo theme=${this.theme}></rtc-logo></div>
|
|
87288
87288
|
<div class="empty-hint" part="hint">${this.hintText}</div>
|
|
87289
87289
|
`;
|
|
@@ -87315,10 +87315,10 @@ let sc = class extends pr {
|
|
|
87315
87315
|
}
|
|
87316
87316
|
render() {
|
|
87317
87317
|
const t = !this.sessionId || this.isUnsaved;
|
|
87318
|
-
return
|
|
87318
|
+
return at`
|
|
87319
87319
|
<div class="content-container" part="container">
|
|
87320
87320
|
${zU(
|
|
87321
|
-
t ?
|
|
87321
|
+
t ? at`<rtc-empty-state theme=${this.theme}></rtc-empty-state>` : at`<rtc-message-list
|
|
87322
87322
|
.sessionId=${this.sessionId}
|
|
87323
87323
|
.messageController=${this.messageController}
|
|
87324
87324
|
></rtc-message-list>`
|
|
@@ -87402,7 +87402,7 @@ let Tu = class extends pr {
|
|
|
87402
87402
|
);
|
|
87403
87403
|
}
|
|
87404
87404
|
render() {
|
|
87405
|
-
return this._localeCtx.locale, !this.message || this._dismissed ? Kt :
|
|
87405
|
+
return this._localeCtx.locale, !this.message || this._dismissed ? Kt : at`
|
|
87406
87406
|
<div class="notice-bar">
|
|
87407
87407
|
<span class="message">${this.message}</span>
|
|
87408
87408
|
<button class="close-btn" title=${Oe("关闭")} @click=${this._handleClose}>×</button>
|
|
@@ -87544,6 +87544,16 @@ const Az = fr`
|
|
|
87544
87544
|
color: var(--rtc-color-text);
|
|
87545
87545
|
}
|
|
87546
87546
|
|
|
87547
|
+
.voice-btn:disabled {
|
|
87548
|
+
opacity: 0.4;
|
|
87549
|
+
cursor: not-allowed;
|
|
87550
|
+
}
|
|
87551
|
+
|
|
87552
|
+
.voice-btn:disabled:hover {
|
|
87553
|
+
background: none;
|
|
87554
|
+
color: var(--rtc-color-text-secondary);
|
|
87555
|
+
}
|
|
87556
|
+
|
|
87547
87557
|
.voice-btn svg {
|
|
87548
87558
|
width: 16px;
|
|
87549
87559
|
height: 16px;
|
|
@@ -87578,12 +87588,51 @@ const Az = fr`
|
|
|
87578
87588
|
color: var(--rtc-color-text);
|
|
87579
87589
|
}
|
|
87580
87590
|
|
|
87591
|
+
.toolbar-btn:disabled {
|
|
87592
|
+
opacity: 0.4;
|
|
87593
|
+
cursor: not-allowed;
|
|
87594
|
+
}
|
|
87595
|
+
|
|
87596
|
+
.toolbar-btn:disabled:hover {
|
|
87597
|
+
background: none;
|
|
87598
|
+
color: var(--rtc-color-text-secondary);
|
|
87599
|
+
}
|
|
87600
|
+
|
|
87581
87601
|
.toolbar-btn svg {
|
|
87582
87602
|
width: 16px;
|
|
87583
87603
|
height: 16px;
|
|
87584
87604
|
fill: currentColor;
|
|
87585
87605
|
}
|
|
87586
87606
|
|
|
87607
|
+
.scenario-btn {
|
|
87608
|
+
position: relative;
|
|
87609
|
+
}
|
|
87610
|
+
|
|
87611
|
+
.scenario-btn--active {
|
|
87612
|
+
color: var(--rtc-color-primary);
|
|
87613
|
+
}
|
|
87614
|
+
|
|
87615
|
+
.scenario-btn--active:hover {
|
|
87616
|
+
color: var(--rtc-color-primary-hover);
|
|
87617
|
+
}
|
|
87618
|
+
|
|
87619
|
+
.scenario-badge {
|
|
87620
|
+
position: absolute;
|
|
87621
|
+
top: -2px;
|
|
87622
|
+
right: -2px;
|
|
87623
|
+
min-width: 12px;
|
|
87624
|
+
height: 12px;
|
|
87625
|
+
border-radius: 6px;
|
|
87626
|
+
background: var(--rtc-color-primary, #0066ff);
|
|
87627
|
+
color: #ffffff;
|
|
87628
|
+
font-size: 9px;
|
|
87629
|
+
font-weight: 600;
|
|
87630
|
+
line-height: 12px;
|
|
87631
|
+
text-align: center;
|
|
87632
|
+
padding: 0 2px;
|
|
87633
|
+
box-sizing: border-box;
|
|
87634
|
+
}
|
|
87635
|
+
|
|
87587
87636
|
.toolbar-spacer {
|
|
87588
87637
|
flex: 1;
|
|
87589
87638
|
}
|
|
@@ -87821,12 +87870,12 @@ let Eu = class extends pr {
|
|
|
87821
87870
|
super.disconnectedCallback(), this.removeEventListener("keydown", this._onKeydown);
|
|
87822
87871
|
}
|
|
87823
87872
|
render() {
|
|
87824
|
-
return this._localeCtx.locale,
|
|
87873
|
+
return this._localeCtx.locale, at`
|
|
87825
87874
|
<div class="mode-list" part="list">
|
|
87826
87875
|
${this.modes.map(
|
|
87827
87876
|
(t) => {
|
|
87828
87877
|
const e = M3.find((i) => i.mode === t), r = e != null && e.label ? this._translateLabel(t, e.label) : t, n = e != null && e.description ? this._translateDesc(t, e.description) : "";
|
|
87829
|
-
return
|
|
87878
|
+
return at`
|
|
87830
87879
|
<div
|
|
87831
87880
|
class="mode-item ${ko({ active: t === this.currentMode })}"
|
|
87832
87881
|
@click=${() => this._handleSelect(t)}
|
|
@@ -87834,7 +87883,7 @@ let Eu = class extends pr {
|
|
|
87834
87883
|
<span class="mode-icon">${Nz[t] ?? ""}</span>
|
|
87835
87884
|
<span class="mode-text">
|
|
87836
87885
|
<span class="mode-label">${r}</span>
|
|
87837
|
-
${n ?
|
|
87886
|
+
${n ? at`<span class="mode-desc">${n}</span>` : ""}
|
|
87838
87887
|
</span>
|
|
87839
87888
|
<span class="mode-check">${t === this.currentMode ? PI : Kt}</span>
|
|
87840
87889
|
</div>
|
|
@@ -88055,10 +88104,10 @@ let xp = class extends pr {
|
|
|
88055
88104
|
super.disconnectedCallback(), this.removeEventListener("keydown", this._onKeydown);
|
|
88056
88105
|
}
|
|
88057
88106
|
render() {
|
|
88058
|
-
return this._localeCtx.locale,
|
|
88107
|
+
return this._localeCtx.locale, at`
|
|
88059
88108
|
<div class="command-list" part="list">
|
|
88060
88109
|
${this.commands.map(
|
|
88061
|
-
(t) =>
|
|
88110
|
+
(t) => at`
|
|
88062
88111
|
<div
|
|
88063
88112
|
class="command-item ${ko({ disabled: !t.available })}"
|
|
88064
88113
|
@click=${() => this._handleSelect(t)}
|
|
@@ -88069,7 +88118,7 @@ let xp = class extends pr {
|
|
|
88069
88118
|
<span class="command-label">${t.label}</span>
|
|
88070
88119
|
<span class="command-desc">${this._translateDesc(t.name, t.description)}</span>
|
|
88071
88120
|
</span>
|
|
88072
|
-
${t.available ? "" :
|
|
88121
|
+
${t.available ? "" : at`<span class="command-badge">${Oe("即将推出")}</span>`}
|
|
88073
88122
|
</div>
|
|
88074
88123
|
`
|
|
88075
88124
|
)}
|
|
@@ -88264,10 +88313,10 @@ let oc = class extends pr {
|
|
|
88264
88313
|
}
|
|
88265
88314
|
}
|
|
88266
88315
|
render() {
|
|
88267
|
-
return this._loading ?
|
|
88316
|
+
return this._loading ? at`<div class="scenario-loading" part="loading">${Oe("加载中...")}</div>` : this._scenarios.length === 0 ? at`<div class="scenario-empty" part="empty">${Oe("暂无场景")}</div>` : at`
|
|
88268
88317
|
<div class="scenario-list" part="list">
|
|
88269
88318
|
${this._scenarios.map(
|
|
88270
|
-
(t) =>
|
|
88319
|
+
(t) => at`
|
|
88271
88320
|
<div
|
|
88272
88321
|
class="scenario-item ${ko({ selected: this._selectedPaths.has(t.path) })}"
|
|
88273
88322
|
@click=${() => this._handleSelect(t)}
|
|
@@ -88275,7 +88324,7 @@ let oc = class extends pr {
|
|
|
88275
88324
|
<span class="scenario-check">${this._selectedPaths.has(t.path) ? "✓" : ""}</span>
|
|
88276
88325
|
<span class="scenario-text">
|
|
88277
88326
|
<span class="scenario-label">${t.name}</span>
|
|
88278
|
-
${t.description ?
|
|
88327
|
+
${t.description ? at`<span class="scenario-desc">${t.description}</span>` : ""}
|
|
88279
88328
|
</span>
|
|
88280
88329
|
</div>
|
|
88281
88330
|
`
|
|
@@ -88335,7 +88384,7 @@ let Mo = class extends pr {
|
|
|
88335
88384
|
/* ── Render ── */
|
|
88336
88385
|
render() {
|
|
88337
88386
|
const { radius: t, circumference: e, offset: r } = this._circleParams, n = Math.round(this._percentage);
|
|
88338
|
-
return
|
|
88387
|
+
return at`
|
|
88339
88388
|
<div class="token-circle" title="Token 使用情况">
|
|
88340
88389
|
<svg viewBox="0 0 24 24">
|
|
88341
88390
|
<circle
|
|
@@ -88358,8 +88407,8 @@ let Mo = class extends pr {
|
|
|
88358
88407
|
<div class="token-tooltip">
|
|
88359
88408
|
<div class="tooltip-header">Token 使用详情</div>
|
|
88360
88409
|
|
|
88361
|
-
${this.details ?
|
|
88362
|
-
${this.details.input != null ?
|
|
88410
|
+
${this.details ? at`
|
|
88411
|
+
${this.details.input != null ? at`<div class="tooltip-row">
|
|
88363
88412
|
<span class="label">输入</span>
|
|
88364
88413
|
<span class="value"
|
|
88365
88414
|
>${this._formatNumber(
|
|
@@ -88367,7 +88416,7 @@ let Mo = class extends pr {
|
|
|
88367
88416
|
)}</span
|
|
88368
88417
|
>
|
|
88369
88418
|
</div>` : ""}
|
|
88370
|
-
${this.details.output != null ?
|
|
88419
|
+
${this.details.output != null ? at`<div class="tooltip-row">
|
|
88371
88420
|
<span class="label">输出</span>
|
|
88372
88421
|
<span class="value"
|
|
88373
88422
|
>${this._formatNumber(
|
|
@@ -88375,7 +88424,7 @@ let Mo = class extends pr {
|
|
|
88375
88424
|
)}</span
|
|
88376
88425
|
>
|
|
88377
88426
|
</div>` : ""}
|
|
88378
|
-
${this.details.cachedRead != null || this.details.cachedWrite != null ?
|
|
88427
|
+
${this.details.cachedRead != null || this.details.cachedWrite != null ? at`<div class="tooltip-row">
|
|
88379
88428
|
<span class="label">缓存</span>
|
|
88380
88429
|
<span class="value"
|
|
88381
88430
|
>${this._formatNumber(
|
|
@@ -88383,11 +88432,11 @@ let Mo = class extends pr {
|
|
|
88383
88432
|
)}</span
|
|
88384
88433
|
>
|
|
88385
88434
|
</div>` : ""}
|
|
88386
|
-
${this._cacheHitRate != null ?
|
|
88435
|
+
${this._cacheHitRate != null ? at`<div class="tooltip-row">
|
|
88387
88436
|
<span class="label">缓存命中率</span>
|
|
88388
88437
|
<span class="value">${this._cacheHitRate}%</span>
|
|
88389
88438
|
</div>` : ""}
|
|
88390
|
-
${this.details.reasoning != null ?
|
|
88439
|
+
${this.details.reasoning != null ? at`<div class="tooltip-row">
|
|
88391
88440
|
<span class="label">推理</span>
|
|
88392
88441
|
<span class="value">${this._formatNumber(this.details.reasoning)}</span>
|
|
88393
88442
|
</div>` : ""}
|
|
@@ -88408,7 +88457,7 @@ let Mo = class extends pr {
|
|
|
88408
88457
|
>
|
|
88409
88458
|
</div>
|
|
88410
88459
|
|
|
88411
|
-
${this.roundsUntilCompression >= 0 && this.roundsUntilCompression <= 3 ?
|
|
88460
|
+
${this.roundsUntilCompression >= 0 && this.roundsUntilCompression <= 3 ? at`<div
|
|
88412
88461
|
class="tooltip-compression ${this.roundsUntilCompression <= 1 ? "warning" : ""}"
|
|
88413
88462
|
>
|
|
88414
88463
|
${this.roundsUntilCompression} 轮后压缩
|
|
@@ -88947,7 +88996,7 @@ let Qr = class extends pr {
|
|
|
88947
88996
|
}));
|
|
88948
88997
|
}
|
|
88949
88998
|
render() {
|
|
88950
|
-
return this._localeCtx.locale,
|
|
88999
|
+
return this._localeCtx.locale, at`
|
|
88951
89000
|
<div class="input-inner">
|
|
88952
89001
|
<div class="textarea-container">
|
|
88953
89002
|
<textarea
|
|
@@ -88958,14 +89007,17 @@ let Qr = class extends pr {
|
|
|
88958
89007
|
@input=${this._handleInput}
|
|
88959
89008
|
@keydown=${this._handleKeydown}
|
|
88960
89009
|
></textarea>
|
|
88961
|
-
<button class="voice-btn" part="voice-btn" title=${Oe("语音输入")} @click=${this._handleVoice}>
|
|
89010
|
+
<button class="voice-btn" part="voice-btn" title=${Oe("语音输入")} disabled @click=${this._handleVoice}>
|
|
88962
89011
|
${h$}
|
|
88963
89012
|
</button>
|
|
88964
89013
|
</div>
|
|
88965
89014
|
<div class="input-toolbar" part="toolbar">
|
|
88966
|
-
<button class="toolbar-btn" title=${Oe("附加文件")}>${u$}</button>
|
|
89015
|
+
<button class="toolbar-btn" title=${Oe("附加文件")} disabled>${u$}</button>
|
|
88967
89016
|
<button class="toolbar-btn tool-btn" title=${Oe("命令")} @click=${this._handleCommandToggle}>${d$}</button>
|
|
88968
|
-
<button class="toolbar-btn scenario-btn" title=${Oe("场景")} @click=${this._handleScenarioToggle}
|
|
89017
|
+
<button class="toolbar-btn scenario-btn ${this._selectedScenarios.length > 0 ? "scenario-btn--active" : ""}" title=${this._selectedScenarios.length > 0 ? Oe(`场景 (${this._selectedScenarios.length} 个已选)`) : Oe("场景")} @click=${this._handleScenarioToggle}>
|
|
89018
|
+
${o_}
|
|
89019
|
+
${this._selectedScenarios.length > 0 ? at`<span class="scenario-badge">${this._selectedScenarios.length}</span>` : ""}
|
|
89020
|
+
</button>
|
|
88969
89021
|
<div class="toolbar-divider"></div>
|
|
88970
89022
|
<rtc-token-usage
|
|
88971
89023
|
theme=${this.theme}
|
|
@@ -88989,7 +89041,7 @@ let Qr = class extends pr {
|
|
|
88989
89041
|
@click=${this._showStop ? this._handleStop : this._submit}
|
|
88990
89042
|
>${this._showStop ? f$ : p$}</button>
|
|
88991
89043
|
</div>
|
|
88992
|
-
${this._showModePanel ?
|
|
89044
|
+
${this._showModePanel ? at`
|
|
88993
89045
|
<rtc-mode-panel
|
|
88994
89046
|
.modes=${[
|
|
88995
89047
|
"manual",
|
|
@@ -89002,13 +89054,13 @@ let Qr = class extends pr {
|
|
|
89002
89054
|
@rtc-mode-panel-close=${this._handleModePanelClose}
|
|
89003
89055
|
></rtc-mode-panel>
|
|
89004
89056
|
` : ""}
|
|
89005
|
-
${this._showCommandPanel ?
|
|
89057
|
+
${this._showCommandPanel ? at`
|
|
89006
89058
|
<rtc-command-panel
|
|
89007
89059
|
@rtc-command-selected=${this._handleCommandSelected}
|
|
89008
89060
|
@rtc-command-panel-close=${this._handleCommandPanelClose}
|
|
89009
89061
|
></rtc-command-panel>
|
|
89010
89062
|
` : ""}
|
|
89011
|
-
${this._showScenarioPanel ?
|
|
89063
|
+
${this._showScenarioPanel ? at`
|
|
89012
89064
|
<rtc-scenario-panel
|
|
89013
89065
|
.initialSelectedPaths=${this._selectedScenarios.map((t) => t.filepath)}
|
|
89014
89066
|
@rtc-scenario-selected=${this._handleScenarioSelected}
|
|
@@ -89174,7 +89226,7 @@ let Lm = class extends pr {
|
|
|
89174
89226
|
/* ── Render ── */
|
|
89175
89227
|
render() {
|
|
89176
89228
|
const t = this._toolCallCtx.state.pendingCalls;
|
|
89177
|
-
return t.length > 0 ?
|
|
89229
|
+
return t.length > 0 ? at`
|
|
89178
89230
|
<div class="panel-host" part="container">
|
|
89179
89231
|
<rtc-tool-confirm
|
|
89180
89232
|
.toolCall=${t[0]}
|
|
@@ -89296,7 +89348,7 @@ let Bm = class extends pr {
|
|
|
89296
89348
|
}
|
|
89297
89349
|
/* ── Render ── */
|
|
89298
89350
|
render() {
|
|
89299
|
-
return
|
|
89351
|
+
return at`
|
|
89300
89352
|
<div
|
|
89301
89353
|
class="backdrop"
|
|
89302
89354
|
part="backdrop"
|
|
@@ -89747,7 +89799,7 @@ let ts = class extends pr {
|
|
|
89747
89799
|
_renderChatContent() {
|
|
89748
89800
|
var r;
|
|
89749
89801
|
if (!((r = this._tabCtx) != null && r.state))
|
|
89750
|
-
return
|
|
89802
|
+
return at`
|
|
89751
89803
|
<div class="tab-content-wrapper">
|
|
89752
89804
|
<div class="no-session-hint">
|
|
89753
89805
|
${Oe("打开一个会话即可开始")}
|
|
@@ -89755,15 +89807,15 @@ let ts = class extends pr {
|
|
|
89755
89807
|
</div>
|
|
89756
89808
|
`;
|
|
89757
89809
|
const { tabs: t, activeSessionId: e } = this._tabCtx.state;
|
|
89758
|
-
return t.length === 0 ?
|
|
89810
|
+
return t.length === 0 ? at`
|
|
89759
89811
|
<div class="tab-content-wrapper">
|
|
89760
89812
|
<div class="no-session-hint">
|
|
89761
89813
|
${Oe("打开一个会话即可开始")}
|
|
89762
89814
|
</div>
|
|
89763
89815
|
</div>
|
|
89764
|
-
` :
|
|
89816
|
+
` : at`
|
|
89765
89817
|
<div class="tab-content-wrapper">
|
|
89766
|
-
${LI(t, (n) => n.sessionId, (n) =>
|
|
89818
|
+
${LI(t, (n) => n.sessionId, (n) => at`
|
|
89767
89819
|
<div class="tab-content ${n.sessionId === e ? "active" : ""}">
|
|
89768
89820
|
<rtc-content-area
|
|
89769
89821
|
theme=${this.theme}
|
|
@@ -89793,7 +89845,7 @@ let ts = class extends pr {
|
|
|
89793
89845
|
}
|
|
89794
89846
|
render() {
|
|
89795
89847
|
var t, e;
|
|
89796
|
-
return this._localeCtx.locale,
|
|
89848
|
+
return this._localeCtx.locale, at`
|
|
89797
89849
|
<!-- Left column: session tree (implemented via rtc-drawer overlay) -->
|
|
89798
89850
|
<rtc-drawer ?open=${this.sessionTreeVisible}>
|
|
89799
89851
|
<rtc-session-tree
|
|
@@ -90191,7 +90243,7 @@ var rW = Object.defineProperty, nW = Object.getOwnPropertyDescriptor, g_ = (t, e
|
|
|
90191
90243
|
(o = t[s]) && (i = (n ? o(e, r, i) : o(i)) || i);
|
|
90192
90244
|
return n && i && rW(e, r, i), i;
|
|
90193
90245
|
};
|
|
90194
|
-
const iW = Yt("SettingsNav"), sW =
|
|
90246
|
+
const iW = Yt("SettingsNav"), sW = at`<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M10.5 5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0zm.5 3H5a3 3 0 0 0-3 3v2h12v-2a3 3 0 0 0-3-3z"/></svg>`;
|
|
90195
90247
|
function TA() {
|
|
90196
90248
|
return [
|
|
90197
90249
|
{ id: "appearance", label: Oe("外观"), icon: Oy },
|
|
@@ -90289,10 +90341,10 @@ let Au = class extends pr {
|
|
|
90289
90341
|
);
|
|
90290
90342
|
}
|
|
90291
90343
|
render() {
|
|
90292
|
-
return this._localeCtx.locale,
|
|
90344
|
+
return this._localeCtx.locale, at`
|
|
90293
90345
|
<div role="tablist" aria-orientation="vertical" aria-label="${Oe("设置分类")}">
|
|
90294
90346
|
${TA().map(
|
|
90295
|
-
(t) =>
|
|
90347
|
+
(t) => at`
|
|
90296
90348
|
<button
|
|
90297
90349
|
class="nav-item"
|
|
90298
90350
|
data-category=${t.id}
|
|
@@ -90387,7 +90439,7 @@ let go = class extends pr {
|
|
|
90387
90439
|
_renderAppearance() {
|
|
90388
90440
|
var e;
|
|
90389
90441
|
const t = (e = this._settingsCtx) == null ? void 0 : e.state.appearance;
|
|
90390
|
-
return t ?
|
|
90442
|
+
return t ? at`
|
|
90391
90443
|
<div class="panel-header" id="panel-header-appearance">${Uc("appearance")}</div>
|
|
90392
90444
|
<div class="setting-row">
|
|
90393
90445
|
<div class="setting-label">
|
|
@@ -90462,7 +90514,7 @@ let go = class extends pr {
|
|
|
90462
90514
|
_renderChat() {
|
|
90463
90515
|
var e;
|
|
90464
90516
|
const t = (e = this._settingsCtx) == null ? void 0 : e.state.chat;
|
|
90465
|
-
return t ?
|
|
90517
|
+
return t ? at`
|
|
90466
90518
|
<div class="panel-header" id="panel-header-chat">${Uc("chat")}</div>
|
|
90467
90519
|
<div class="setting-row">
|
|
90468
90520
|
<div class="setting-label">
|
|
@@ -90510,7 +90562,7 @@ let go = class extends pr {
|
|
|
90510
90562
|
_renderFiles() {
|
|
90511
90563
|
var e;
|
|
90512
90564
|
const t = (e = this._settingsCtx) == null ? void 0 : e.state.files;
|
|
90513
|
-
return t ?
|
|
90565
|
+
return t ? at`
|
|
90514
90566
|
<div class="panel-header" id="panel-header-files">${Uc("files")}</div>
|
|
90515
90567
|
<div class="setting-row">
|
|
90516
90568
|
<div class="setting-label">
|
|
@@ -90561,7 +90613,7 @@ let go = class extends pr {
|
|
|
90561
90613
|
_renderNotifications() {
|
|
90562
90614
|
var e;
|
|
90563
90615
|
const t = (e = this._settingsCtx) == null ? void 0 : e.state.notifications;
|
|
90564
|
-
return t ?
|
|
90616
|
+
return t ? at`
|
|
90565
90617
|
<div class="panel-header" id="panel-header-notifications">${Uc("notifications")}</div>
|
|
90566
90618
|
<div class="setting-row">
|
|
90567
90619
|
<div class="setting-label">
|
|
@@ -90612,7 +90664,7 @@ let go = class extends pr {
|
|
|
90612
90664
|
/** Render account panel */
|
|
90613
90665
|
_renderAccount() {
|
|
90614
90666
|
const t = this._authCtx, e = (t == null ? void 0 : t.state.userId) ?? Oe("未登录");
|
|
90615
|
-
return
|
|
90667
|
+
return at`
|
|
90616
90668
|
<div class="panel-header" id="panel-header-account">${Uc("account")}</div>
|
|
90617
90669
|
<div class="setting-row">
|
|
90618
90670
|
<div class="setting-label">
|
|
@@ -90641,7 +90693,7 @@ let go = class extends pr {
|
|
|
90641
90693
|
}
|
|
90642
90694
|
/** Render about page */
|
|
90643
90695
|
_renderAbout() {
|
|
90644
|
-
return
|
|
90696
|
+
return at`
|
|
90645
90697
|
<div class="panel-header" id="panel-header-about">${Uc("about")}</div>
|
|
90646
90698
|
<div class="about-brand">
|
|
90647
90699
|
<div class="about-logo"><rtc-logo theme=${this.theme}></rtc-logo></div>
|
|
@@ -90687,7 +90739,7 @@ let go = class extends pr {
|
|
|
90687
90739
|
}
|
|
90688
90740
|
}
|
|
90689
90741
|
render() {
|
|
90690
|
-
return this._localeCtx.locale,
|
|
90742
|
+
return this._localeCtx.locale, at`
|
|
90691
90743
|
<!-- Settings navigation drawer (overlay mode, does not push main content area) -->
|
|
90692
90744
|
<rtc-drawer ?open=${this.sidebarVisible}>
|
|
90693
90745
|
<rtc-settings-nav
|
|
@@ -91101,7 +91153,7 @@ let ea = class extends pr {
|
|
|
91101
91153
|
_renderNode(t, e = 0) {
|
|
91102
91154
|
var o, l, c;
|
|
91103
91155
|
const r = this._expandedNodes.has(t.id), n = this._focusedNodeId === t.id, i = ((l = (o = this._debugCtx) == null ? void 0 : o.state.selectedFunction) == null ? void 0 : l.name) === ((c = t.functionDef) == null ? void 0 : c.name), s = e * 16;
|
|
91104
|
-
return t.type === "group" ?
|
|
91156
|
+
return t.type === "group" ? at`
|
|
91105
91157
|
<div
|
|
91106
91158
|
class="tree-node group-node ${n ? "focused" : ""}"
|
|
91107
91159
|
style="padding-left: ${s}px"
|
|
@@ -91116,7 +91168,7 @@ let ea = class extends pr {
|
|
|
91116
91168
|
<span class="node-name">${t.name}</span>
|
|
91117
91169
|
</div>
|
|
91118
91170
|
${r && t.children ? t.children.map((p) => this._renderNode(p, e + 1)) : Kt}
|
|
91119
|
-
` :
|
|
91171
|
+
` : at`
|
|
91120
91172
|
<div
|
|
91121
91173
|
class="tree-node function-node ${n ? "focused" : ""} ${i ? "selected" : ""}"
|
|
91122
91174
|
style="padding-left: ${s}px"
|
|
@@ -91125,24 +91177,24 @@ let ea = class extends pr {
|
|
|
91125
91177
|
@click=${() => this._handleNodeClick(t)}
|
|
91126
91178
|
>
|
|
91127
91179
|
<span class="node-name">${t.name}</span>
|
|
91128
|
-
${t.description ?
|
|
91180
|
+
${t.description ? at`<span class="node-description">${t.description}</span>` : Kt}
|
|
91129
91181
|
</div>
|
|
91130
91182
|
`;
|
|
91131
91183
|
}
|
|
91132
91184
|
_renderEmptyState() {
|
|
91133
|
-
return
|
|
91185
|
+
return at`
|
|
91134
91186
|
<div class="empty-state">
|
|
91135
91187
|
<span class="empty-state-text">${Oe("暂无已注册的函数")}</span>
|
|
91136
91188
|
</div>
|
|
91137
91189
|
`;
|
|
91138
91190
|
}
|
|
91139
91191
|
render() {
|
|
91140
|
-
return this._localeCtx.locale, this._treeNodes.length === 0 ?
|
|
91192
|
+
return this._localeCtx.locale, this._treeNodes.length === 0 ? at`
|
|
91141
91193
|
<div class="tree-header">
|
|
91142
91194
|
<span class="tree-title">${Oe("函数")}</span>
|
|
91143
91195
|
</div>
|
|
91144
91196
|
${this._renderEmptyState()}
|
|
91145
|
-
` :
|
|
91197
|
+
` : at`
|
|
91146
91198
|
<div class="tree-header">
|
|
91147
91199
|
<span class="tree-title">${Oe("函数")}</span>
|
|
91148
91200
|
</div>
|
|
@@ -91551,10 +91603,10 @@ let ac = class extends pr {
|
|
|
91551
91603
|
var e;
|
|
91552
91604
|
this._localeCtx.locale;
|
|
91553
91605
|
const t = ((e = this._debugCtx) == null ? void 0 : e.state.currentParams) ?? "{}";
|
|
91554
|
-
return
|
|
91606
|
+
return at`
|
|
91555
91607
|
<div class="params-header">
|
|
91556
91608
|
<span class="params-label">${Oe("参数 (JSON)")}</span>
|
|
91557
|
-
${this._isValid ? "" :
|
|
91609
|
+
${this._isValid ? "" : at`<span class="params-error">${Oe("Invalid JSON")}</span>`}
|
|
91558
91610
|
</div>
|
|
91559
91611
|
<div class="params-editor ${this._isValid ? "" : "invalid"}">
|
|
91560
91612
|
<textarea
|
|
@@ -91791,7 +91843,7 @@ ${this._formatData(i.data)}` : "";
|
|
|
91791
91843
|
}
|
|
91792
91844
|
_renderLogEntry(t, e) {
|
|
91793
91845
|
const r = t.data !== void 0, n = this._expandedData.has(e);
|
|
91794
|
-
return
|
|
91846
|
+
return at`
|
|
91795
91847
|
<div class="log-entry">
|
|
91796
91848
|
<span class="log-timestamp" title="${new Date(t.timestamp).toISOString()}">
|
|
91797
91849
|
${EA(t.timestamp)}
|
|
@@ -91799,7 +91851,7 @@ ${this._formatData(i.data)}` : "";
|
|
|
91799
91851
|
<span class="log-level ${t.level}">[${t.level}]</span>
|
|
91800
91852
|
<span class="log-message">
|
|
91801
91853
|
${t.message}
|
|
91802
|
-
${r ?
|
|
91854
|
+
${r ? at`
|
|
91803
91855
|
<div
|
|
91804
91856
|
class="log-data ${n ? "" : "collapsed"}"
|
|
91805
91857
|
@click=${() => this._toggleData(e)}
|
|
@@ -91814,7 +91866,7 @@ ${this._formatData(i.data)}` : "";
|
|
|
91814
91866
|
var e;
|
|
91815
91867
|
this._localeCtx.locale;
|
|
91816
91868
|
const t = ((e = this._debugCtx) == null ? void 0 : e.state.logs) ?? [];
|
|
91817
|
-
return
|
|
91869
|
+
return at`
|
|
91818
91870
|
<div class="console-header">
|
|
91819
91871
|
<span class="console-label">${Oe("控制台")}</span>
|
|
91820
91872
|
<div class="header-actions">
|
|
@@ -91832,7 +91884,7 @@ ${this._formatData(i.data)}` : "";
|
|
|
91832
91884
|
<div class="console-body" ${(r) => {
|
|
91833
91885
|
this._consoleBody = r;
|
|
91834
91886
|
}}>
|
|
91835
|
-
${t.length === 0 ?
|
|
91887
|
+
${t.length === 0 ? at`<div class="empty-console">${Oe("暂无日志输出")}</div>` : t.map((r, n) => this._renderLogEntry(r, n))}
|
|
91836
91888
|
</div>
|
|
91837
91889
|
`;
|
|
91838
91890
|
}
|
|
@@ -92353,11 +92405,11 @@ ${r}` : "";
|
|
|
92353
92405
|
*/
|
|
92354
92406
|
_renderLogEntry(t) {
|
|
92355
92407
|
const e = t.level, r = t.data !== void 0 ? typeof t.data == "string" ? t.data : JSON.stringify(t.data, null, 2) : "";
|
|
92356
|
-
return
|
|
92408
|
+
return at`
|
|
92357
92409
|
<div class="log-entry ${e}">
|
|
92358
92410
|
<span class="log-level">${t.level.toUpperCase()}</span>
|
|
92359
92411
|
<span class="log-message">${t.message}</span>
|
|
92360
|
-
${r ?
|
|
92412
|
+
${r ? at`<pre class="log-data">${r}</pre>` : Kt}
|
|
92361
92413
|
</div>
|
|
92362
92414
|
`;
|
|
92363
92415
|
}
|
|
@@ -92365,7 +92417,7 @@ ${r}` : "";
|
|
|
92365
92417
|
* Render expanded details for a history item: params, logs, result
|
|
92366
92418
|
*/
|
|
92367
92419
|
_renderItemDetails(t) {
|
|
92368
|
-
return
|
|
92420
|
+
return at`
|
|
92369
92421
|
<div class="item-details" @click=${(e) => e.stopPropagation()}>
|
|
92370
92422
|
<!-- Params -->
|
|
92371
92423
|
<div class="detail-section">
|
|
@@ -92374,7 +92426,7 @@ ${r}` : "";
|
|
|
92374
92426
|
</div>
|
|
92375
92427
|
|
|
92376
92428
|
<!-- Logs -->
|
|
92377
|
-
${t.logs && t.logs.length > 0 ?
|
|
92429
|
+
${t.logs && t.logs.length > 0 ? at`
|
|
92378
92430
|
<div class="detail-section">
|
|
92379
92431
|
<div class="detail-label">${Oe("日志")}</div>
|
|
92380
92432
|
<div class="detail-content logs-content">
|
|
@@ -92384,7 +92436,7 @@ ${r}` : "";
|
|
|
92384
92436
|
` : Kt}
|
|
92385
92437
|
|
|
92386
92438
|
<!-- Result -->
|
|
92387
|
-
${t.result !== void 0 ?
|
|
92439
|
+
${t.result !== void 0 ? at`
|
|
92388
92440
|
<div class="detail-section">
|
|
92389
92441
|
<div class="detail-label">${Oe("结果")}</div>
|
|
92390
92442
|
<pre class="detail-content result-content ${t.success ? "success" : "error"}">${typeof t.result == "string" ? t.result : JSON.stringify(t.result, null, 2)}</pre>
|
|
@@ -92392,7 +92444,7 @@ ${r}` : "";
|
|
|
92392
92444
|
` : Kt}
|
|
92393
92445
|
|
|
92394
92446
|
<!-- Error message -->
|
|
92395
|
-
${t.errorMessage ?
|
|
92447
|
+
${t.errorMessage ? at`
|
|
92396
92448
|
<div class="detail-section">
|
|
92397
92449
|
<div class="detail-label">${Oe("错误")}</div>
|
|
92398
92450
|
<pre class="detail-content result-content error">${t.errorMessage}</pre>
|
|
@@ -92406,7 +92458,7 @@ ${r}` : "";
|
|
|
92406
92458
|
}}>
|
|
92407
92459
|
${Oe("复制参数")}
|
|
92408
92460
|
</button>
|
|
92409
|
-
${t.logs && t.logs.length > 0 ?
|
|
92461
|
+
${t.logs && t.logs.length > 0 ? at`
|
|
92410
92462
|
<button class="detail-btn" @click=${(e) => {
|
|
92411
92463
|
e.stopPropagation(), this._copyToClipboard(this._formatLogsText(t.logs));
|
|
92412
92464
|
}}>
|
|
@@ -92425,7 +92477,7 @@ ${r}` : "";
|
|
|
92425
92477
|
}
|
|
92426
92478
|
_renderHistoryItem(t) {
|
|
92427
92479
|
const e = this._expandedItems.has(t.id);
|
|
92428
|
-
return
|
|
92480
|
+
return at`
|
|
92429
92481
|
<div class="history-item ${e ? "expanded" : ""}" @click=${() => this._toggleItem(t.id)}>
|
|
92430
92482
|
<div class="item-header">
|
|
92431
92483
|
<span class="item-chevron">
|
|
@@ -92450,16 +92502,16 @@ ${r}` : "";
|
|
|
92450
92502
|
var l;
|
|
92451
92503
|
this._localeCtx.locale;
|
|
92452
92504
|
const t = (l = this._debugCtx) == null ? void 0 : l.state.historyPagination, e = (t == null ? void 0 : t.items) ?? [], r = (t == null ? void 0 : t.page) ?? 1, n = (t == null ? void 0 : t.totalPages) ?? 0, i = (t == null ? void 0 : t.total) ?? 0, s = (t == null ? void 0 : t.filterFunctionName) ?? "", o = t == null ? void 0 : t.error;
|
|
92453
|
-
return
|
|
92505
|
+
return at`
|
|
92454
92506
|
<div class="history-drawer ${this._drawerOpen ? "open" : ""}">
|
|
92455
92507
|
<div class="drawer-header" @click=${this._toggleDrawer}>
|
|
92456
92508
|
<span class="drawer-title">
|
|
92457
92509
|
<span class="chevron ${this._drawerOpen ? "expanded" : ""}">${Im}</span>
|
|
92458
92510
|
${Oe("历史记录")}
|
|
92459
|
-
${i > 0 ?
|
|
92511
|
+
${i > 0 ? at`<span class="history-count">(${i})</span>` : Kt}
|
|
92460
92512
|
</span>
|
|
92461
92513
|
<div class="header-actions" @click=${(c) => c.stopPropagation()}>
|
|
92462
|
-
${i > 0 ?
|
|
92514
|
+
${i > 0 ? at`
|
|
92463
92515
|
<button class="clear-btn" @click=${() => {
|
|
92464
92516
|
var c;
|
|
92465
92517
|
return (c = this._debugCtx) == null ? void 0 : c.actions.clearHistory();
|
|
@@ -92483,15 +92535,15 @@ ${r}` : "";
|
|
|
92483
92535
|
</div>
|
|
92484
92536
|
|
|
92485
92537
|
<!-- Error message -->
|
|
92486
|
-
${o ?
|
|
92538
|
+
${o ? at`
|
|
92487
92539
|
<div class="error-message">${o}</div>
|
|
92488
92540
|
` : Kt}
|
|
92489
92541
|
|
|
92490
92542
|
<!-- History items -->
|
|
92491
|
-
${e.length === 0 && !o ?
|
|
92543
|
+
${e.length === 0 && !o ? at`<div class="empty-history">${Oe("暂无历史记录")}</div>` : e.map((c) => this._renderHistoryItem(c))}
|
|
92492
92544
|
|
|
92493
92545
|
<!-- Pagination controls -->
|
|
92494
|
-
${n > 1 ?
|
|
92546
|
+
${n > 1 ? at`
|
|
92495
92547
|
<div class="pagination">
|
|
92496
92548
|
<button
|
|
92497
92549
|
class="pagination-btn"
|
|
@@ -92567,7 +92619,7 @@ let cc = class extends pr {
|
|
|
92567
92619
|
_renderParamRows(t, e, r, n, i = 0) {
|
|
92568
92620
|
const s = [], l = `${i > 0 ? "└─ " : ""}${e}`, c = n || t.description || "", p = Qa(t);
|
|
92569
92621
|
if (t.type && t.type !== "object" && t.type !== "array")
|
|
92570
|
-
return s.push(
|
|
92622
|
+
return s.push(at`
|
|
92571
92623
|
<tr>
|
|
92572
92624
|
<td class="param-name">${l}</td>
|
|
92573
92625
|
<td class="param-type">${p}</td>
|
|
@@ -92576,7 +92628,7 @@ let cc = class extends pr {
|
|
|
92576
92628
|
</tr>
|
|
92577
92629
|
`), s;
|
|
92578
92630
|
if (t.type === "array" && t.items) {
|
|
92579
|
-
if (s.push(
|
|
92631
|
+
if (s.push(at`
|
|
92580
92632
|
<tr>
|
|
92581
92633
|
<td class="param-name">${l}</td>
|
|
92582
92634
|
<td class="param-type">${p}</td>
|
|
@@ -92593,7 +92645,7 @@ let cc = class extends pr {
|
|
|
92593
92645
|
return s;
|
|
92594
92646
|
}
|
|
92595
92647
|
if (t.type === "object" && t.properties) {
|
|
92596
|
-
s.push(
|
|
92648
|
+
s.push(at`
|
|
92597
92649
|
<tr>
|
|
92598
92650
|
<td class="param-name">${l}</td>
|
|
92599
92651
|
<td class="param-type">object</td>
|
|
@@ -92608,7 +92660,7 @@ let cc = class extends pr {
|
|
|
92608
92660
|
}
|
|
92609
92661
|
return s;
|
|
92610
92662
|
}
|
|
92611
|
-
return s.push(
|
|
92663
|
+
return s.push(at`
|
|
92612
92664
|
<tr>
|
|
92613
92665
|
<td class="param-name">${l}</td>
|
|
92614
92666
|
<td class="param-type">${p}</td>
|
|
@@ -92620,7 +92672,7 @@ let cc = class extends pr {
|
|
|
92620
92672
|
_renderFunctionInfo() {
|
|
92621
92673
|
var e;
|
|
92622
92674
|
const t = (e = this._debugCtx) == null ? void 0 : e.state.selectedFunction;
|
|
92623
|
-
return t ?
|
|
92675
|
+
return t ? at`
|
|
92624
92676
|
<div class="function-info-section">
|
|
92625
92677
|
<div class="info-header" @click=${() => this._infoCollapsed = !this._infoCollapsed}>
|
|
92626
92678
|
<span class="info-chevron">
|
|
@@ -92628,13 +92680,13 @@ let cc = class extends pr {
|
|
|
92628
92680
|
</span>
|
|
92629
92681
|
<span class="info-title">${Oe("函数信息")}</span>
|
|
92630
92682
|
</div>
|
|
92631
|
-
${this._infoCollapsed ? Kt :
|
|
92683
|
+
${this._infoCollapsed ? Kt : at`
|
|
92632
92684
|
<div class="info-body">
|
|
92633
92685
|
<div class="info-name">${t.name}</div>
|
|
92634
|
-
${t.description ?
|
|
92686
|
+
${t.description ? at`
|
|
92635
92687
|
<div class="info-description">${t.description}</div>
|
|
92636
92688
|
` : Kt}
|
|
92637
|
-
${t.parameters && t.parameters.length > 0 ?
|
|
92689
|
+
${t.parameters && t.parameters.length > 0 ? at`
|
|
92638
92690
|
<div class="info-params-doc">
|
|
92639
92691
|
<div class="params-doc-title">${Oe("参数文档")}</div>
|
|
92640
92692
|
<table class="params-doc-table">
|
|
@@ -92668,7 +92720,7 @@ let cc = class extends pr {
|
|
|
92668
92720
|
` : Kt;
|
|
92669
92721
|
}
|
|
92670
92722
|
_renderEmptyState() {
|
|
92671
|
-
return
|
|
92723
|
+
return at`
|
|
92672
92724
|
<div class="empty-state">
|
|
92673
92725
|
<span class="empty-state-text">${Oe("从左侧选择一个函数开始调试")}</span>
|
|
92674
92726
|
</div>
|
|
@@ -92677,7 +92729,7 @@ let cc = class extends pr {
|
|
|
92677
92729
|
_renderContent() {
|
|
92678
92730
|
var r, n;
|
|
92679
92731
|
const t = (r = this._debugCtx) == null ? void 0 : r.state.selectedFunction, e = ((n = this._debugCtx) == null ? void 0 : n.state.executionStatus) ?? "idle";
|
|
92680
|
-
return t ?
|
|
92732
|
+
return t ? at`
|
|
92681
92733
|
<div class="debugger-content">
|
|
92682
92734
|
<!-- Function Info (collapsible) -->
|
|
92683
92735
|
${this._renderFunctionInfo()}
|
|
@@ -92694,12 +92746,12 @@ let cc = class extends pr {
|
|
|
92694
92746
|
?disabled=${e === "running"}
|
|
92695
92747
|
@click=${this._handleExecute}
|
|
92696
92748
|
>
|
|
92697
|
-
${e === "running" ?
|
|
92749
|
+
${e === "running" ? at`⟳ ${Oe("执行中...")}` : at`▶ ${Oe("运行")}`}
|
|
92698
92750
|
</button>
|
|
92699
|
-
${e === "success" ?
|
|
92751
|
+
${e === "success" ? at`
|
|
92700
92752
|
<span class="status-indicator success">✓ ${Oe("执行成功")}</span>
|
|
92701
92753
|
` : Kt}
|
|
92702
|
-
${e === "error" ?
|
|
92754
|
+
${e === "error" ? at`
|
|
92703
92755
|
<span class="status-indicator error">✗ ${Oe("执行失败")}</span>
|
|
92704
92756
|
` : Kt}
|
|
92705
92757
|
</div>
|
|
@@ -92749,7 +92801,7 @@ let Pu = class extends pr {
|
|
|
92749
92801
|
super(...arguments), this.theme = "system", this.sidebarVisible = !1;
|
|
92750
92802
|
}
|
|
92751
92803
|
render() {
|
|
92752
|
-
return
|
|
92804
|
+
return at`
|
|
92753
92805
|
<!-- Function tree drawer (overlay mode, does not push main content area) -->
|
|
92754
92806
|
<rtc-drawer ?open=${this.sidebarVisible}>
|
|
92755
92807
|
<rtc-function-tree theme=${this.theme}></rtc-function-tree>
|
|
@@ -92780,7 +92832,7 @@ function DW(t) {
|
|
|
92780
92832
|
}
|
|
92781
92833
|
let kb = null, Ib = null, Ob = null;
|
|
92782
92834
|
async function MW() {
|
|
92783
|
-
return kb || (kb = (await import("./marked.esm-Dch69AxC.js")).marked), Ib || (Ib = (await import("./purify.es-C-6FFqDW.js")).default), Ob || (Ob = (await import("./highlight-languages-
|
|
92835
|
+
return kb || (kb = (await import("./marked.esm-Dch69AxC.js")).marked), Ib || (Ib = (await import("./purify.es-C-6FFqDW.js")).default), Ob || (Ob = (await import("./highlight-languages-BVzldaaL.js")).default), { marked: kb, DOMPurify: Ib, hljs: Ob };
|
|
92784
92836
|
}
|
|
92785
92837
|
function LW(t, e) {
|
|
92786
92838
|
return t.replace(
|
|
@@ -94635,7 +94687,7 @@ let mn = class extends pr {
|
|
|
94635
94687
|
}
|
|
94636
94688
|
}
|
|
94637
94689
|
_renderBubbleContent() {
|
|
94638
|
-
return this.bubbleIcon ?
|
|
94690
|
+
return this.bubbleIcon ? at`<span class="bubble-icon" .innerHTML=${this._sanitizedBubbleIcon}></span>` : at`<span class="bubble-logo">${Xj(this.theme === "dark")}</span>`;
|
|
94639
94691
|
}
|
|
94640
94692
|
/** Recompute sanitized icon when bubbleIcon changes. */
|
|
94641
94693
|
willUpdate(t) {
|
|
@@ -94651,7 +94703,7 @@ let mn = class extends pr {
|
|
|
94651
94703
|
}
|
|
94652
94704
|
render() {
|
|
94653
94705
|
const t = this._auth.value.state.isLoggedIn, e = this._windowState.value.state.mode, r = this._activity.active, n = this._activity.sidebarVisible;
|
|
94654
|
-
return
|
|
94706
|
+
return at`
|
|
94655
94707
|
<div class="window-container">
|
|
94656
94708
|
<rtc-title-bar
|
|
94657
94709
|
app-label=${this.appLabel}
|
|
@@ -94663,9 +94715,9 @@ let mn = class extends pr {
|
|
|
94663
94715
|
.showMaximize=${this._resolvedWindowConfig.showMaximize}
|
|
94664
94716
|
@rtc-connection-retry=${this._handleConnectionRetry}
|
|
94665
94717
|
></rtc-title-bar>
|
|
94666
|
-
${t ? this._renderMainLayout(r, n) :
|
|
94718
|
+
${t ? this._renderMainLayout(r, n) : at`<div class="content-area"><rtc-login-page theme=${this.theme}></rtc-login-page></div>`}
|
|
94667
94719
|
<rtc-toast .toasts=${this._toast.toasts}></rtc-toast>
|
|
94668
|
-
${this._isSyncing ?
|
|
94720
|
+
${this._isSyncing ? at`
|
|
94669
94721
|
<div class="syncing-overlay">
|
|
94670
94722
|
<div class="syncing-content">
|
|
94671
94723
|
<div class="syncing-spinner"></div>
|
|
@@ -94684,7 +94736,7 @@ let mn = class extends pr {
|
|
|
94684
94736
|
${this._renderBubbleContent()}
|
|
94685
94737
|
</div>
|
|
94686
94738
|
<span class="sr-only" aria-live="polite" role="status">${this._modeAnnouncement}</span>
|
|
94687
|
-
${this._showLoginDialog ?
|
|
94739
|
+
${this._showLoginDialog ? at`<rtc-login-dialog
|
|
94688
94740
|
.provider=${this._selectedProvider}
|
|
94689
94741
|
@rtc-login-complete=${this._handleLoginComplete}
|
|
94690
94742
|
@rtc-login-dialog-close=${this._handleLoginDialogClose}
|
|
@@ -94703,7 +94755,7 @@ let mn = class extends pr {
|
|
|
94703
94755
|
*/
|
|
94704
94756
|
_renderMainLayout(t, e) {
|
|
94705
94757
|
const r = t === "files", n = t === "chat", i = t === "settings", s = t === "functions", o = e && (r || n || i || s), l = this._resolvedActivityBarConfig.disabledActivities;
|
|
94706
|
-
return
|
|
94758
|
+
return at`
|
|
94707
94759
|
<div class="main-layout">
|
|
94708
94760
|
<rtc-activity-bar
|
|
94709
94761
|
.active=${t}
|
|
@@ -94712,10 +94764,10 @@ let mn = class extends pr {
|
|
|
94712
94764
|
?show-settings=${!l.includes("settings")}
|
|
94713
94765
|
?show-functions=${!l.includes("functions")}
|
|
94714
94766
|
></rtc-activity-bar>
|
|
94715
|
-
${r ?
|
|
94767
|
+
${r ? at`<rtc-drawer ?open=${o} style="--rtc-drawer-left: 48px">
|
|
94716
94768
|
<rtc-file-explorer theme=${this.theme}></rtc-file-explorer>
|
|
94717
94769
|
</rtc-drawer>` : Kt}
|
|
94718
|
-
${r ?
|
|
94770
|
+
${r ? at`<div class="editor-area-wrapper">
|
|
94719
94771
|
<rtc-editor-area
|
|
94720
94772
|
.tabs=${this._editorArea.state.tabs}
|
|
94721
94773
|
active-file-path=${this._editorArea.state.activeFilePath}
|
|
@@ -94725,7 +94777,7 @@ let mn = class extends pr {
|
|
|
94725
94777
|
.fileInfo=${this._statusBar.info}
|
|
94726
94778
|
theme=${this.theme}
|
|
94727
94779
|
></rtc-status-bar>
|
|
94728
|
-
</div>` : n ?
|
|
94780
|
+
</div>` : n ? at`<rtc-chat-layout theme=${this.theme} .sessionTreeVisible=${e} .messageController=${this._message}></rtc-chat-layout>` : i ? at`<rtc-settings-layout theme=${this.theme} .sidebarVisible=${e} version=${k3}></rtc-settings-layout>` : s ? at`<rtc-functions-layout theme=${this.theme} .sidebarVisible=${e}></rtc-functions-layout>` : Kt}
|
|
94729
94781
|
</div>
|
|
94730
94782
|
`;
|
|
94731
94783
|
}
|