dsh-thinking-levels 4.2.0-beta.29 → 4.3.0

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/lib/client.js CHANGED
@@ -838,8 +838,12 @@ window.__ModuleLoader__.load({
838
838
  billRoundsWord: "步",
839
839
  billPeak: "峰价",
840
840
  billOffPeak: "谷价",
841
- billPriced: "按 DeepSeek-V4.1-Flash 计价",
842
- billEstimate: "按 Flash 价估算"
841
+ billFlat: "平价",
842
+ billUnpriced: "未计价",
843
+ billCustom: "自填价计价",
844
+ billPricedAs: (label) => `按 ${label} 计价`,
845
+ billPriced: "按目录价计价",
846
+ billEstimate: "目录外估算价"
843
847
  },
844
848
  en: {
845
849
  title: "Context check",
@@ -864,8 +868,12 @@ window.__ModuleLoader__.load({
864
868
  billRoundsWord: "steps",
865
869
  billPeak: "Peak rates",
866
870
  billOffPeak: "Off-peak rates",
867
- billPriced: "priced as DeepSeek-V4.1-Flash",
868
- billEstimate: "estimated at Flash prices"
871
+ billFlat: "Flat rate",
872
+ billUnpriced: "Not billed",
873
+ billCustom: "priced at custom rates",
874
+ billPricedAs: (label) => `priced as ${label}`,
875
+ billPriced: "priced at catalog rates",
876
+ billEstimate: "estimated off-catalog"
869
877
  }
870
878
  };
871
879
  const copy = () => typeof document !== "undefined" && document.documentElement.lang?.toLowerCase().startsWith("zh") ? COPY.zh : COPY.en;
@@ -999,9 +1007,15 @@ window.__ModuleLoader__.load({
999
1007
  })]
1000
1008
  });
1001
1009
  }
1010
+ /** 币种符号:目录原样不折算;未知币种回退 ISO 码。 */
1011
+ function currencySymbol(currency) {
1012
+ if (currency === "USD") return "$";
1013
+ if (currency !== void 0 && currency !== "CNY") return `${currency} `;
1014
+ return "¥";
1015
+ }
1002
1016
  /** Format an amount: four decimals for a step, fewer for the totals. */
1003
- function formatMoney(amount, digits) {
1004
- return `¥${amount.toFixed(digits)}`;
1017
+ function formatMoney(amount, digits, currency) {
1018
+ return `${currencySymbol(currency)}${amount.toFixed(digits)}`;
1005
1019
  }
1006
1020
  let store = {};
1007
1021
  const listeners = /* @__PURE__ */ new Set();
@@ -1090,6 +1104,165 @@ window.__ModuleLoader__.load({
1090
1104
  });
1091
1105
  }
1092
1106
  /**
1107
+ * The cache-billing block (catalog era). 未计价(priced===false)时保留 token
1108
+ * 读数、金额位换「未计价」文案;旧 view 缺 priced 字段 → 按历史行为计价。
1109
+ * 混币种会话不给跨币种合计,改按币种分行。
1110
+ */
1111
+ function BillingBlock({ billing }) {
1112
+ const c = copy();
1113
+ const cur = billing.currency;
1114
+ const priced = billing.priced !== false;
1115
+ const money = (amount, digits) => priced ? formatMoney(amount ?? 0, digits, cur) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1116
+ style: { color: "var(--dsw-alias-label-caption, inherit)" },
1117
+ children: c.billUnpriced
1118
+ });
1119
+ const dash = priced ? void 0 : "—";
1120
+ const buckets = Array.isArray(billing.sessionByCurrency) ? billing.sessionByCurrency : [];
1121
+ const sessionTotal = !priced ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
1122
+ style: { color: "var(--dsw-alias-label-caption, inherit)" },
1123
+ children: c.billUnpriced
1124
+ }) : billing.mixedCurrency === true && buckets.length > 1 ? buckets.map((b) => `${currencySymbol(b.currency)}${(b.hitCost + b.missCost + b.outputCost).toFixed(2)}`).join(" + ") : formatMoney((billing.sessionCacheHitCost ?? 0) + (billing.sessionMissCost ?? 0) + (billing.sessionOutputCost ?? 0), 2, cur);
1125
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dl", {
1126
+ style: {
1127
+ margin: "4px 0 0",
1128
+ padding: "6px 0 0",
1129
+ borderTop: "1px solid var(--dsw-alias-border-l3, rgba(127,127,127,0.18))"
1130
+ },
1131
+ children: [
1132
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1133
+ style: rowStyle$1,
1134
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1135
+ style: {
1136
+ ...rowLabelStyle,
1137
+ color: "#a78bfa"
1138
+ },
1139
+ children: c.billStep
1140
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1141
+ style: {
1142
+ ...rowValueStyle,
1143
+ margin: 0
1144
+ },
1145
+ children: [
1146
+ formatTokens((billing.totalInputTokens ?? 0) + (billing.outputTokens ?? 0)),
1147
+ " tok ",
1148
+ money(billing.cost, 4)
1149
+ ]
1150
+ })]
1151
+ }),
1152
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1153
+ label: c.billCacheRead,
1154
+ tokens: billing.cacheReadTokens ?? 0,
1155
+ amount: dash ?? formatMoney(billing.cost ?? 0, 4, cur),
1156
+ color: BILL_COLORS.hit
1157
+ }),
1158
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1159
+ label: c.billCacheMiss,
1160
+ tokens: (billing.totalInputTokens ?? 0) - (billing.cacheReadTokens ?? 0),
1161
+ amount: dash ?? formatMoney(billing.missCost ?? 0, 4, cur),
1162
+ color: BILL_COLORS.miss
1163
+ }),
1164
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1165
+ label: c.billOutput,
1166
+ tokens: billing.outputTokens ?? 0,
1167
+ amount: dash ?? formatMoney(billing.outputCost ?? 0, 4, cur),
1168
+ color: BILL_COLORS.output
1169
+ }),
1170
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1171
+ style: rowStyle$1,
1172
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1173
+ style: {
1174
+ ...rowLabelStyle,
1175
+ color: "#22d3ee"
1176
+ },
1177
+ children: c.billTurn
1178
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1179
+ style: {
1180
+ ...rowValueStyle,
1181
+ margin: 0
1182
+ },
1183
+ children: [
1184
+ formatTokens(billing.turnTokens ?? 0),
1185
+ " tok ",
1186
+ money(billing.turnCost, 3)
1187
+ ]
1188
+ })]
1189
+ }),
1190
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1191
+ label: c.billCacheRead,
1192
+ tokens: billing.turnCacheReadTokens ?? 0,
1193
+ amount: dash ?? formatMoney(billing.turnHitCost ?? 0, 3, cur),
1194
+ color: BILL_COLORS.hit
1195
+ }),
1196
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1197
+ label: c.billCacheMiss,
1198
+ tokens: (billing.turnInputTokens ?? 0) - (billing.turnCacheReadTokens ?? 0),
1199
+ amount: dash ?? formatMoney(billing.turnMissCost ?? 0, 3, cur),
1200
+ color: BILL_COLORS.miss
1201
+ }),
1202
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1203
+ label: c.billOutput,
1204
+ tokens: billing.turnOutputTokens ?? 0,
1205
+ amount: dash ?? formatMoney(billing.turnOutputCost ?? 0, 3, cur),
1206
+ color: BILL_COLORS.output
1207
+ }),
1208
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1209
+ style: rowStyle$1,
1210
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dt", {
1211
+ style: {
1212
+ ...rowLabelStyle,
1213
+ color: "#f472b6"
1214
+ },
1215
+ children: [c.billSession, billing.sessionRounds ? ` · ${billing.sessionRounds} ${c.billRoundsWord}` : ""]
1216
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1217
+ style: {
1218
+ ...rowValueStyle,
1219
+ margin: 0
1220
+ },
1221
+ children: [
1222
+ formatTokens((billing.sessionInputTokens ?? 0) + (billing.sessionOutputTokens ?? 0)),
1223
+ " tok ",
1224
+ sessionTotal
1225
+ ]
1226
+ })]
1227
+ }),
1228
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1229
+ label: c.billCacheRead,
1230
+ tokens: billing.sessionCacheReadTokens ?? 0,
1231
+ amount: dash ?? formatMoney(billing.sessionCacheHitCost ?? 0, 2, cur),
1232
+ color: BILL_COLORS.hit
1233
+ }),
1234
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1235
+ label: c.billCacheMiss,
1236
+ tokens: (billing.sessionInputTokens ?? 0) - (billing.sessionCacheReadTokens ?? 0),
1237
+ amount: dash ?? formatMoney(billing.sessionMissCost ?? 0, 2, cur),
1238
+ color: BILL_COLORS.miss
1239
+ }),
1240
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1241
+ label: c.billOutput,
1242
+ tokens: billing.sessionOutputTokens ?? 0,
1243
+ amount: dash ?? formatMoney(billing.sessionOutputCost ?? 0, 2, cur),
1244
+ color: BILL_COLORS.output
1245
+ }),
1246
+ (billing.sessionFullMissSteps ?? 0) > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1247
+ style: rowStyle$1,
1248
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1249
+ style: {
1250
+ ...rowLabelStyle,
1251
+ color: "#f43f5e"
1252
+ },
1253
+ children: c.billFullMiss
1254
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
1255
+ style: {
1256
+ ...rowValueStyle,
1257
+ margin: 0
1258
+ },
1259
+ children: billing.sessionFullMissSteps
1260
+ })]
1261
+ })
1262
+ ]
1263
+ });
1264
+ }
1265
+ /**
1093
1266
  * The ring entry: pressure arc trigger + the check popover. Renders nothing
1094
1267
  * without a projection seat or before the session has any reading.
1095
1268
  */
@@ -1213,145 +1386,7 @@ window.__ModuleLoader__.load({
1213
1386
  color: row.color
1214
1387
  }, row.label))
1215
1388
  }),
1216
- billing?.available === true && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dl", {
1217
- style: {
1218
- margin: "4px 0 0",
1219
- padding: "6px 0 0",
1220
- borderTop: "1px solid var(--dsw-alias-border-l3, rgba(127,127,127,0.18))"
1221
- },
1222
- children: [
1223
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1224
- style: rowStyle$1,
1225
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1226
- style: {
1227
- ...rowLabelStyle,
1228
- color: "#a78bfa"
1229
- },
1230
- children: c.billStep
1231
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1232
- style: {
1233
- ...rowValueStyle,
1234
- margin: 0
1235
- },
1236
- children: [
1237
- formatTokens((billing.totalInputTokens ?? 0) + (billing.outputTokens ?? 0)),
1238
- " tok ",
1239
- formatMoney(billing.cost ?? 0, 4)
1240
- ]
1241
- })]
1242
- }),
1243
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1244
- label: c.billCacheRead,
1245
- tokens: billing.cacheReadTokens ?? 0,
1246
- amount: formatMoney(billing.cost ?? 0, 4),
1247
- color: BILL_COLORS.hit
1248
- }),
1249
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1250
- label: c.billCacheMiss,
1251
- tokens: (billing.totalInputTokens ?? 0) - (billing.cacheReadTokens ?? 0),
1252
- amount: formatMoney(billing.missCost ?? 0, 4),
1253
- color: BILL_COLORS.miss
1254
- }),
1255
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1256
- label: c.billOutput,
1257
- tokens: billing.outputTokens ?? 0,
1258
- amount: formatMoney(billing.outputCost ?? 0, 4),
1259
- color: BILL_COLORS.output
1260
- }),
1261
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1262
- style: rowStyle$1,
1263
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1264
- style: {
1265
- ...rowLabelStyle,
1266
- color: "#22d3ee"
1267
- },
1268
- children: c.billTurn
1269
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1270
- style: {
1271
- ...rowValueStyle,
1272
- margin: 0
1273
- },
1274
- children: [
1275
- formatTokens(billing.turnTokens ?? 0),
1276
- " tok ",
1277
- formatMoney(billing.turnCost ?? 0, 3)
1278
- ]
1279
- })]
1280
- }),
1281
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1282
- label: c.billCacheRead,
1283
- tokens: billing.turnCacheReadTokens ?? 0,
1284
- amount: formatMoney(billing.turnHitCost ?? 0, 3),
1285
- color: BILL_COLORS.hit
1286
- }),
1287
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1288
- label: c.billCacheMiss,
1289
- tokens: (billing.turnInputTokens ?? 0) - (billing.turnCacheReadTokens ?? 0),
1290
- amount: formatMoney(billing.turnMissCost ?? 0, 3),
1291
- color: BILL_COLORS.miss
1292
- }),
1293
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1294
- label: c.billOutput,
1295
- tokens: billing.turnOutputTokens ?? 0,
1296
- amount: formatMoney(billing.turnOutputCost ?? 0, 3),
1297
- color: BILL_COLORS.output
1298
- }),
1299
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1300
- style: rowStyle$1,
1301
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dt", {
1302
- style: {
1303
- ...rowLabelStyle,
1304
- color: "#f472b6"
1305
- },
1306
- children: [c.billSession, billing.sessionRounds ? ` · ${billing.sessionRounds} ${c.billRoundsWord}` : ""]
1307
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dd", {
1308
- style: {
1309
- ...rowValueStyle,
1310
- margin: 0
1311
- },
1312
- children: [
1313
- formatTokens((billing.sessionInputTokens ?? 0) + (billing.sessionOutputTokens ?? 0)),
1314
- " tok ",
1315
- formatMoney((billing.sessionCacheHitCost ?? 0) + (billing.sessionMissCost ?? 0) + (billing.sessionOutputCost ?? 0), 2)
1316
- ]
1317
- })]
1318
- }),
1319
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1320
- label: c.billCacheRead,
1321
- tokens: billing.sessionCacheReadTokens ?? 0,
1322
- amount: formatMoney(billing.sessionCacheHitCost ?? 0, 2),
1323
- color: BILL_COLORS.hit
1324
- }),
1325
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1326
- label: c.billCacheMiss,
1327
- tokens: (billing.sessionInputTokens ?? 0) - (billing.sessionCacheReadTokens ?? 0),
1328
- amount: formatMoney(billing.sessionMissCost ?? 0, 2),
1329
- color: BILL_COLORS.miss
1330
- }),
1331
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillSubRow, {
1332
- label: c.billOutput,
1333
- tokens: billing.sessionOutputTokens ?? 0,
1334
- amount: formatMoney(billing.sessionOutputCost ?? 0, 2),
1335
- color: BILL_COLORS.output
1336
- }),
1337
- (billing.sessionFullMissSteps ?? 0) > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
1338
- style: rowStyle$1,
1339
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
1340
- style: {
1341
- ...rowLabelStyle,
1342
- color: "#f43f5e"
1343
- },
1344
- children: c.billFullMiss
1345
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
1346
- style: {
1347
- ...rowValueStyle,
1348
- margin: 0
1349
- },
1350
- children: billing.sessionFullMissSteps
1351
- })]
1352
- })
1353
- ]
1354
- }),
1389
+ billing?.available === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BillingBlock, { billing }),
1355
1390
  percent >= 85 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1356
1391
  style: warnStyle,
1357
1392
  children: c.warning
@@ -1362,7 +1397,7 @@ window.__ModuleLoader__.load({
1362
1397
  c.window,
1363
1398
  ": ",
1364
1399
  hasReading ? window_.toLocaleString() : c.unset,
1365
- billing?.available === true ? ` · ${billing.tier === "peak" ? c.billPeak : c.billOffPeak} · ${billing.modelMatched === false ? c.billEstimate : c.billPriced}` : ""
1400
+ billing?.available === true ? ` · ${billing.tier === "peak" ? c.billPeak : billing.tier === "offPeak" ? c.billOffPeak : billing.tier === "flat" ? c.billFlat : c.billUnpriced} · ${billing.priced === false ? c.billUnpriced : typeof billing.catalogLabel === "string" ? c.billPricedAs(billing.catalogLabel) : billing.pricingSource === "custom" ? c.billCustom : billing.modelMatched === false ? c.billEstimate : c.billPriced}` : ""
1366
1401
  ]
1367
1402
  })
1368
1403
  ]
@@ -4531,6 +4566,9 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
4531
4566
  const locale = ctx.locale;
4532
4567
  const t = typeof locale.bind === "function" ? locale.bind(NS) : (key) => key;
4533
4568
  let scopeOf;
4569
+ /** One-shot guard for `registerModernSurface` — see its declaration for why a
4570
+ * second call is not merely redundant but destructive (double seating). */
4571
+ let modernSurfaceClaimed = false;
4534
4572
  const scopeInject = ctx.inject;
4535
4573
  ctx.effect(() => {
4536
4574
  const disposers = [
@@ -4635,54 +4673,44 @@ body:not([data-ds-dark-theme]) .${ZONE_CLASS}[data-top="1"] .${TRACK_CLASS} { an
4635
4673
  }
4636
4674
  } }
4637
4675
  });
4638
- /** ≤0.1.6 legacy card seat (settings.plugin.item) RETIRED (2026-10-08 family
4639
- * insection round 2): the 思考档位 card duplicated the family-tab card on the
4640
- * ≤0.1.5 plugins page — all plugin settings now live only in the 起子插件设置
4641
- * family tab. The legacy scope namespace (`thinking-levels`) remains what the
4642
- * family-tab card reads via `scopeOf` below. */
4643
- /** 0.1.7+/0.2.0 surfaces: family section, plugins-page card, context ring.
4644
- * Generation-neutral in practice (route A, 2026-10): the `settings.section`
4645
- * entry and its children declaration exist on every host line (the perm-gate
4646
- * placeholder render proved the 0.1.5 shell consumes client-contributed
4647
- * section bodies), so the settingsScope waist below calls this too — its
4648
- * `plugins.bundle.config` inject idles harmlessly where the slot is never
4649
- * declared (0.1.7 and older).
4650
- *
4651
- * Election note (2026-10-08 T20-a revision): the old "priority-0 head +
4652
- * priority-10 shadow" assumption is dead — ≤0.1.7 shells list EVERY same-id
4653
- * entry as its own nav row, so TL + guard double registration showed TWO
4654
- * 起子插件设置 rows on all five farm cells. Guard now defers FAMILY_YIELD_MS
4655
- * after the declaration and stands down when this entry is already seated;
4656
- * symmetric guard here: if a dsh-family entry is somehow already in the
4657
- * ledger when our factory fires (host-native surface, future rival), we
4658
- * stand down too — exactly one owner, whichever path seated first. */
4676
+ const FAMILY_CLAIM_DELAY_MS = 200;
4659
4677
  function registerModernSurface() {
4660
4678
  if (scopeOf === void 0) return;
4679
+ if (modernSurfaceClaimed) return;
4680
+ modernSurfaceClaimed = true;
4661
4681
  ctx.slots.inject("settings.section", function* () {
4662
4682
  console.log("[dsh-thinking-levels] settings.section factory fired (declared)");
4663
- if (ctx.slots.entries("settings.section").some((e) => e.options.id === "dsh-family")) {
4664
- console.log("[dsh-thinking-levels] settings.section: dsh-family already seated — stand down");
4665
- return;
4666
- }
4667
- const base = {
4668
- name: "settings.section",
4669
- id: "dsh-family",
4670
- order: 40,
4671
- label: () => t("family.title"),
4672
- locale: NS,
4673
- inject: sectionInjected
4683
+ let claimed;
4684
+ const timer = setTimeout(() => {
4685
+ if (ctx.slots.entries("settings.section").some((e) => e.options.id === "dsh-family")) {
4686
+ console.log("[dsh-thinking-levels] settings.section: dsh-family already seated — stand down");
4687
+ return;
4688
+ }
4689
+ const base = {
4690
+ name: "settings.section",
4691
+ id: "dsh-family",
4692
+ order: 40,
4693
+ label: () => t("family.title"),
4694
+ locale: NS,
4695
+ inject: sectionInjected
4696
+ };
4697
+ try {
4698
+ claimed = ctx.slots.register({
4699
+ ...base,
4700
+ children: { "dsh-family.tab": {
4701
+ kind: "list",
4702
+ scope: "root"
4703
+ } }
4704
+ }, FamilySettingsSection);
4705
+ console.log("[dsh-thinking-levels] settings.section: family takeover registered (children declared)");
4706
+ } catch (error) {
4707
+ console.log("[dsh-thinking-levels] settings.section: children claim lost — withdrawing (" + (error instanceof Error ? error.message : String(error)) + ")");
4708
+ }
4709
+ }, FAMILY_CLAIM_DELAY_MS);
4710
+ yield () => {
4711
+ clearTimeout(timer);
4712
+ if (typeof claimed === "function") claimed();
4674
4713
  };
4675
- try {
4676
- yield ctx.slots.register({
4677
- ...base,
4678
- children: { "dsh-family.tab": {
4679
- kind: "list",
4680
- scope: "root"
4681
- } }
4682
- }, FamilySettingsSection);
4683
- } catch {
4684
- yield ctx.slots.register(base, FamilySettingsSection);
4685
- }
4686
4714
  });
4687
4715
  ctx.slots.inject("plugins.bundle.config", () => ctx.slots.register({
4688
4716
  name: "plugins.bundle.config",