@qianhaoq/dsh-dota2ai 0.2.4 → 0.2.5

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.
Files changed (3) hide show
  1. package/lib/client.js +238 -4
  2. package/lib/index.js +854 -54
  3. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -27817,6 +27817,40 @@ var T9 = {
27817
27817
  winEnded: { en: "Ended", zh: "\u7ED3\u675F", ru: "\u041A\u043E\u043D\u0435\u0446" },
27818
27818
  winGameEnd: { en: "with the game", zh: "\u6BD4\u8D5B\u7ED3\u675F", ru: "\u0441 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u0435\u043C \u043C\u0430\u0442\u0447\u0430" },
27819
27819
  winNone: { en: "No per-minute gold for this game: no windows.", zh: "\u8FD9\u5C40\u6CA1\u6709\u9010\u5206\u949F\u7ECF\u6D4E\u6570\u636E\uFF0C\u5212\u4E0D\u51FA\u7A97\u53E3\u671F\u3002", ru: "\u041D\u0435\u0442 \u043F\u043E\u043C\u0438\u043D\u0443\u0442\u043D\u043E\u0433\u043E \u0437\u043E\u043B\u043E\u0442\u0430 \u2014 \u043E\u043A\u043D\u0430 \u043D\u0435 \u0432\u044B\u0434\u0435\u043B\u0435\u043D\u044B." },
27820
+ enemyCtxStart: { en: "Enemies within 2200 at window start", zh: "\u7A97\u53E3\u5F00\u59CB\u65F6 2200 \u7801\u5185\u654C\u4EBA", ru: "\u0412\u0440\u0430\u0433\u0438 \u0432 2200 \u0432 \u043D\u0430\u0447\u0430\u043B\u0435 \u043E\u043A\u043D\u0430" },
27821
+ enemyReady: { en: "ready", zh: "\u5C31\u7EEA", ru: "\u0433\u043E\u0442\u043E\u0432\u043E" },
27822
+ enemyCd: { en: "CD", zh: "\u51B7\u5374", ru: "\u041A\u0414" },
27823
+ enemyNoMana: { en: "no mana", zh: "\u7F3A\u84DD", ru: "\u043D\u0435\u0442 \u043C\u0430\u043D\u044B" },
27824
+ enemyItems: { en: "items", zh: "\u88C5\u5907", ru: "\u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B" },
27825
+ arrivedAfter: { en: "Attackers arrived after window start", zh: "\u7A97\u53E3\u5F00\u59CB\u540E\u624D\u8D76\u5230\u7684\u653B\u51FB\u8005", ru: "\u0410\u0442\u0430\u043A\u0443\u044E\u0449\u0438\u0435 \u043F\u0440\u0438\u0431\u044B\u043B\u0438 \u043F\u043E\u0437\u0436\u0435" },
27826
+ deadAtStart: { en: "dead at window start", zh: "\u7A97\u53E3\u5F00\u59CB\u65F6\u5DF2\u9635\u4EA1", ru: "\u043C\u0451\u0440\u0442\u0432 \u0432 \u043D\u0430\u0447\u0430\u043B\u0435 \u043E\u043A\u043D\u0430" },
27827
+ enemyBuffs: { en: "Enemy smoke / rune in window", zh: "\u7A97\u53E3\u5185\u654C\u65B9\u5F00\u96FE / \u795E\u7B26", ru: "\u0414\u044B\u043C / \u0440\u0443\u043D\u044B \u0432\u0440\u0430\u0433\u043E\u0432 \u0432 \u043E\u043A\u043D\u0435" },
27828
+ smoke: { en: "Smoke", zh: "\u8BE1\u8BA1\u4E4B\u96FE", ru: "Smoke" },
27829
+ meInFight: { en: "Your contribution", zh: "\u4F60\u7684\u53C2\u6218\u6570\u636E", ru: "\u0412\u0430\u0448 \u0432\u043A\u043B\u0430\u0434 \u0432 \u0434\u0440\u0430\u043A\u0443" },
27830
+ fightDied: { en: "died", zh: "\u9635\u4EA1", ru: "\u043F\u043E\u0433\u0438\u0431" },
27831
+ dmgDealt: { en: "dealt", zh: "\u9020\u6210\u4F24\u5BB3", ru: "\u043D\u0430\u043D\u0435\u0441\u0435\u043D\u043E" },
27832
+ dmgTaken: { en: "taken", zh: "\u627F\u53D7\u4F24\u5BB3", ru: "\u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E" },
27833
+ enemyDeathsDamaged: { en: "enemy deaths damaged", zh: "\u53C2\u4E0E\u4F24\u5BB3\u51FB\u6740", ru: "\u0443\u0440\u043E\u043D \u043F\u043E \u043F\u043E\u0433\u0438\u0431\u0448\u0438\u043C \u0432\u0440\u0430\u0433\u0430\u043C" },
27834
+ ultCast: { en: "ultimate cast", zh: "\u653E\u4E86\u5927\u62DB", ru: "\u0443\u043B\u044C\u0442 \u043F\u0440\u0438\u043C\u0435\u043D\u0451\u043D" },
27835
+ keyItemsUsed: { en: "items used", zh: "\u4F7F\u7528\u4E86\u88C5\u5907", ru: "\u043F\u0440\u0435\u0434\u043C\u0435\u0442\u044B" },
27836
+ skillBuild: { en: "Skill build", zh: "\u52A0\u70B9\u8DEF\u7EBF", ru: "\u041F\u0440\u043E\u043A\u0430\u0447\u043A\u0430 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0435\u0439" },
27837
+ sbAtLv6: { en: "At level 6", zh: "6 \u7EA7\u52A0\u70B9", ru: "\u041D\u0430 6 \u0443\u0440\u043E\u0432\u043D\u0435" },
27838
+ sbAtLv10: { en: "At level 10", zh: "10 \u7EA7\u52A0\u70B9", ru: "\u041D\u0430 10 \u0443\u0440\u043E\u0432\u043D\u0435" },
27839
+ sbMaxed: { en: "Maxed order", zh: "\u70B9\u6EE1\u987A\u5E8F", ru: "\u041F\u043E\u0440\u044F\u0434\u043E\u043A \u043F\u0440\u043E\u043A\u0430\u0447\u043A\u0438 \u0434\u043E \u043C\u0430\u043A\u0441." },
27840
+ sbUlts: { en: "Ultimate levels", zh: "\u5927\u62DB\u5347\u7EA7", ru: "\u0423\u0440\u043E\u0432\u043D\u0438 \u0443\u043B\u044C\u0442\u0430" },
27841
+ sbTalents: { en: "Talents", zh: "\u5929\u8D4B", ru: "\u0422\u0430\u043B\u0430\u043D\u0442\u044B" },
27842
+ sbTimeline: { en: "Upgrade timeline", zh: "\u52A0\u70B9\u65F6\u95F4\u7EBF", ru: "\u0425\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u043F\u0440\u043E\u043A\u0430\u0447\u043A\u0438" },
27843
+ sbInitial: { en: "initial", zh: "\u521D\u59CB", ru: "\u043D\u0430\u0447\u0430\u043B\u044C\u043D\u0430\u044F" },
27844
+ sbNoData: { en: "No ability level data in this replay.", zh: "\u8BE5\u5F55\u50CF\u7F3A\u5C11\u6280\u80FD\u7B49\u7EA7\u6570\u636E\u3002", ru: "\u0412 \u044D\u0442\u043E\u043C \u0440\u0435\u043F\u043B\u0435\u0435 \u043D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445 \u043E\u0431 \u0443\u0440\u043E\u0432\u043D\u044F\u0445 \u0441\u043F\u043E\u0441\u043E\u0431\u043D\u043E\u0441\u0442\u0435\u0439." },
27845
+ draftGold: { en: "Gold", zh: "\u7ECF\u6D4E", ru: "\u0417\u043E\u043B\u043E\u0442\u043E" },
27846
+ draftCs: { en: "LH", zh: "\u6B63\u8865", ru: "\u0414\u043E\u0431\u0438\u0432\u0430\u043D\u0438\u044F" },
27847
+ draftDeaths10: { en: "Deaths <10:00", zh: "10\u5206\u949F\u524D\u9635\u4EA1", ru: "\u0421\u043C\u0435\u0440\u0442\u0438 <10:00" },
27848
+ draftSrc: {
27849
+ match_record: { en: "match record", zh: "\u6BD4\u8D5B\u8BB0\u5F55", ru: "\u0437\u0430\u043F\u0438\u0441\u044C \u043C\u0430\u0442\u0447\u0430" },
27850
+ replay: { en: "replay log", zh: "\u5F55\u50CF\u65E5\u5FD7", ru: "\u043B\u043E\u0433 \u0440\u0435\u043F\u043B\u0435\u044F" }
27851
+ },
27852
+ draftNoPassive: { en: "passive gold omitted", zh: "\u4E0D\u542B\u88AB\u52A8\u7ECF\u6D4E", ru: "\u0431\u0435\u0437 \u043F\u0430\u0441\u0441\u0438\u0432\u043D\u043E\u0433\u043E \u0437\u043E\u043B\u043E\u0442\u0430" },
27853
+ draftLhLowerBound: { en: "LH lower bound", zh: "\u6B63\u8865\u4E3A\u4E0B\u754C", ru: "\u0434\u043E\u0431\u0438\u0432\u0430\u043D\u0438\u044F \u2265" },
27820
27854
  building: {
27821
27855
  tower: { en: "tier-{n} tower", zh: "{n} \u5854", ru: "\u0431\u0430\u0448\u043D\u044F T{n}" },
27822
27856
  melee_rax: { en: "melee barracks", zh: "\u8FD1\u6218\u5175\u8425", ru: "\u043A\u0430\u0437\u0430\u0440\u043C\u0430 \u0431\u043B\u0438\u0436\u043D\u0435\u0433\u043E \u0431\u043E\u044F" },
@@ -27973,10 +28007,18 @@ function Record({ data: data2, lang }) {
27973
28007
  const t2 = (b) => pickLang(b, lang);
27974
28008
  const N = (key) => key ? data2.names[key] ?? data2.names[key.replace(/^item_/, "")] ?? pretty(key) : "\u2014";
27975
28009
  const r = data2.record;
27976
- const chips = (list) => list.length ? list.map((h) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
27977
- N(h.hero),
27978
- h.dist != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: h.dist })
27979
- ] }, h.hero)) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-none", children: t2(T9.nobody) });
28010
+ const chips = (list) => list.length ? list.map((h) => {
28011
+ const meta3 = [
28012
+ h.dist != null ? String(h.dist) : null,
28013
+ h.hp_pct != null ? `${h.hp_pct}%` : null,
28014
+ h.mana != null ? `${h.mana} MP` : null,
28015
+ h.level != null ? `Lv${h.level}` : null
28016
+ ].filter(Boolean).join(" \xB7 ");
28017
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28018
+ N(h.hero),
28019
+ meta3 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: meta3 })
28020
+ ] }, h.hero);
28021
+ }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-none", children: t2(T9.nobody) });
27980
28022
  const doingOf = (h) => [h.place ? N(h.place) : null, h.doing && T9.doing[h.doing] ? t2(T9.doing[h.doing]) : null].filter(Boolean).join(" \xB7 ");
27981
28023
  if (data2.kind === "death") {
27982
28024
  const max = Math.max(...r.damage_taken.map((d) => d.value), 1);
@@ -28005,6 +28047,63 @@ function Record({ data: data2, lang }) {
28005
28047
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("td", { children: chips(s.enemies) })
28006
28048
  ] }, s.dt)) })
28007
28049
  ] }),
28050
+ Array.isArray(r.enemy_context_at_window_start) && r.enemy_context_at_window_start.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "ag-rec-block", children: [
28051
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "ag-rec-sub", children: t2(T9.enemyCtxStart) }),
28052
+ r.enemy_context_at_window_start.map((e) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28053
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-enemy", children: [
28054
+ N(e.hero),
28055
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: [e.dist != null ? String(e.dist) : null, e.hp_pct != null ? `${e.hp_pct}%` : null, e.mana != null ? `${e.mana} MP` : null, e.level != null ? `Lv${e.level}` : null].filter(Boolean).join(" \xB7 ") })
28056
+ ] }),
28057
+ Array.isArray(e.ready_abilities) && e.ready_abilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28058
+ t2(T9.enemyReady),
28059
+ " \xB7 ",
28060
+ e.ready_abilities.map((a) => N(a)).join(", ")
28061
+ ] }),
28062
+ Array.isArray(e.on_cooldown_abilities) && e.on_cooldown_abilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28063
+ t2(T9.enemyCd),
28064
+ " \xB7 ",
28065
+ e.on_cooldown_abilities.map((a) => `${N(a.ability)} ${a.cooldown_left}${t2(T9.sec)}`).join(", ")
28066
+ ] }),
28067
+ Array.isArray(e.no_mana_abilities) && e.no_mana_abilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28068
+ t2(T9.enemyNoMana),
28069
+ " \xB7 ",
28070
+ e.no_mana_abilities.map((a) => N(a)).join(", ")
28071
+ ] }),
28072
+ Array.isArray(e.key_items) && e.key_items.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28073
+ t2(T9.enemyItems),
28074
+ " \xB7 ",
28075
+ e.key_items.map((it) => `${N(it.item)}${it.ready === false && it.cooldown_left != null ? ` (${it.cooldown_left}${t2(T9.sec)})` : ""}`).join(", ")
28076
+ ] })
28077
+ ] }, e.hero))
28078
+ ] }),
28079
+ Array.isArray(r.attackers_arrived_after_window_start) && r.attackers_arrived_after_window_start.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28080
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.arrivedAfter) }),
28081
+ r.attackers_arrived_after_window_start.map((a) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-enemy", children: [
28082
+ N(a.hero),
28083
+ a.alive_at_window_start === false ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.deadAtStart) }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: [a.place_at_window_start ? N(a.place_at_window_start) : null, a.dist_at_window_start != null ? `${a.dist_at_window_start} ${t2(T9.away)}` : null].filter(Boolean).join(" \xB7 ") })
28084
+ ] }, a.hero))
28085
+ ] }),
28086
+ r.enemy_active_buffs_in_window && (Array.isArray(r.enemy_active_buffs_in_window.smokes) && r.enemy_active_buffs_in_window.smokes.length > 0 || Array.isArray(r.enemy_active_buffs_in_window.runes) && r.enemy_active_buffs_in_window.runes.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28087
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.enemyBuffs) }),
28088
+ (r.enemy_active_buffs_in_window.smokes ?? []).map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-enemy", children: [
28089
+ N(s.hero),
28090
+ " \xB7 ",
28091
+ t2(T9.smoke),
28092
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
28093
+ s.from,
28094
+ s.until ? `\u2013${s.until}` : ""
28095
+ ] })
28096
+ ] }, `sm-${i}`)),
28097
+ (r.enemy_active_buffs_in_window.runes ?? []).map((rn, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-enemy", children: [
28098
+ N(rn.hero),
28099
+ " \xB7 ",
28100
+ pretty(rn.rune),
28101
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
28102
+ rn.from,
28103
+ rn.until ? `\u2013${rn.until}` : ""
28104
+ ] })
28105
+ ] }, `rn-${i}`))
28106
+ ] }),
28008
28107
  r.ready_not_cast.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28009
28108
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.readyUnused) }),
28010
28109
  r.ready_not_cast.map((a) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip is-warn", children: N(a) }, a))
@@ -28329,6 +28428,7 @@ function Record({ data: data2, lang }) {
28329
28428
  }
28330
28429
  if (data2.kind === "draft") {
28331
28430
  const pc = (v) => v == null ? "\u2013" : `${v}%`;
28431
+ const signed = (v) => `${v > 0 ? "+" : v < 0 ? "\u2212" : ""}${Math.abs(v)}`;
28332
28432
  const reading = (x) => x?.reading && T9.spikeMatchup[x.reading] ? t2(T9.spikeMatchup[x.reading]) : null;
28333
28433
  const row = (b) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
28334
28434
  b.lane_when_they_met && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
@@ -28382,6 +28482,36 @@ function Record({ data: data2, lang }) {
28382
28482
  "%"
28383
28483
  ] }, x.hero))
28384
28484
  ] }),
28485
+ l.at_10_00 && (l.at_10_00.my_team_gold != null || l.at_10_00.my_team_last_hits != null || l.at_10_00.my_team_deaths_before_10_00 != null) && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28486
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: "10:00" }),
28487
+ l.at_10_00.my_team_gold != null && l.at_10_00.enemy_gold != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28488
+ t2(T9.draftGold),
28489
+ " ",
28490
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
28491
+ l.at_10_00.my_team_gold,
28492
+ " : ",
28493
+ l.at_10_00.enemy_gold
28494
+ ] }),
28495
+ l.at_10_00.gold_diff != null && ` (${signed(l.at_10_00.gold_diff)})`
28496
+ ] }),
28497
+ l.at_10_00.my_team_last_hits != null && l.at_10_00.enemy_last_hits != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28498
+ t2(T9.draftCs),
28499
+ " ",
28500
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: l.at_10_00.last_hits_are_lower_bounds ? `\u2265${l.at_10_00.my_team_last_hits} : \u2265${l.at_10_00.enemy_last_hits}` : `${l.at_10_00.my_team_last_hits} : ${l.at_10_00.enemy_last_hits}` })
28501
+ ] }),
28502
+ l.at_10_00.my_team_deaths_before_10_00 != null && l.at_10_00.enemy_deaths_before_10_00 != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
28503
+ t2(T9.draftDeaths10),
28504
+ " ",
28505
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
28506
+ l.at_10_00.my_team_deaths_before_10_00,
28507
+ " : ",
28508
+ l.at_10_00.enemy_deaths_before_10_00
28509
+ ] })
28510
+ ] }),
28511
+ l.at_10_00.source && T9.draftSrc[l.at_10_00.source] && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip", children: t2(T9.draftSrc[l.at_10_00.source]) }),
28512
+ l.at_10_00.passive_income_omitted === true && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip", children: t2(T9.draftNoPassive) }),
28513
+ l.at_10_00.last_hits_are_lower_bounds === true && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip", children: t2(T9.draftLhLowerBound) })
28514
+ ] }),
28385
28515
  (l.pairings ?? []).map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
28386
28516
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { children: [
28387
28517
  N(p.hero),
@@ -28994,6 +29124,35 @@ function Record({ data: data2, lang }) {
28994
29124
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.gold) }),
28995
29125
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip", children: r.my_team_gold_lead })
28996
29126
  ] }),
29127
+ r.me_in_fight && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
29128
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.meInFight) }),
29129
+ r.me_in_fight.died && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip is-warn", children: t2(T9.fightDied) }),
29130
+ r.me_in_fight.hero_damage_dealt != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-me", children: [
29131
+ t2(T9.dmgDealt),
29132
+ " ",
29133
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: r.me_in_fight.hero_damage_dealt })
29134
+ ] }),
29135
+ r.me_in_fight.hero_damage_taken != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
29136
+ t2(T9.dmgTaken),
29137
+ " ",
29138
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: r.me_in_fight.hero_damage_taken })
29139
+ ] }),
29140
+ r.me_in_fight.enemy_deaths_i_damaged != null && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
29141
+ t2(T9.enemyDeathsDamaged),
29142
+ " ",
29143
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: r.me_in_fight.enemy_deaths_i_damaged })
29144
+ ] }),
29145
+ typeof r.me_in_fight.ult_cast === "boolean" && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: `ag-chip ${r.me_in_fight.ult_cast ? "is-good" : "is-warn"}`, children: [
29146
+ t2(T9.ultCast),
29147
+ " \xB7 ",
29148
+ t2(r.me_in_fight.ult_cast ? T9.yes : T9.no)
29149
+ ] }),
29150
+ Array.isArray(r.me_in_fight.key_items_used) && r.me_in_fight.key_items_used.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
29151
+ t2(T9.keyItemsUsed),
29152
+ " \xB7 ",
29153
+ r.me_in_fight.key_items_used.map((it) => N(it)).join(", ")
29154
+ ] })
29155
+ ] }),
28997
29156
  side(r.my_team, "is-ally", t2(T9.mine)),
28998
29157
  side(r.enemy, "is-enemy", t2(T9.theirs))
28999
29158
  ] });
@@ -29785,6 +29944,80 @@ function Record({ data: data2, lang }) {
29785
29944
  ] }, a.ability)) })
29786
29945
  ] });
29787
29946
  }
29947
+ if (data2.kind === "skill_build") {
29948
+ const distRow = (label, snap) => snap && snap.abilities && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
29949
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { children: [
29950
+ label,
29951
+ " (",
29952
+ snap.clock,
29953
+ ")"
29954
+ ] }),
29955
+ Object.entries(snap.abilities).map(([ab, lv]) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
29956
+ N(ab),
29957
+ " ",
29958
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
29959
+ "Lv",
29960
+ lv
29961
+ ] })
29962
+ ] }, ab))
29963
+ ] });
29964
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "ag-rec", children: [
29965
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-head", children: [
29966
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("b", { children: N(r.hero) }),
29967
+ " \xB7 ",
29968
+ t2(T9.skillBuild),
29969
+ r.data_patch && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
29970
+ " \xB7 ",
29971
+ r.data_patch
29972
+ ] })
29973
+ ] }),
29974
+ r.upgrade_timeline == null ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "ag-rec-note", children: t2(T9.sbNoData) }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
29975
+ distRow(t2(T9.sbAtLv6), r.at_level_6),
29976
+ distRow(t2(T9.sbAtLv10), r.at_level_10),
29977
+ Array.isArray(r.maxed_order) && r.maxed_order.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
29978
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.sbMaxed) }),
29979
+ r.maxed_order.map((m) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip", children: [
29980
+ N(m.ability),
29981
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
29982
+ m.clock,
29983
+ m.hero_level != null ? ` \xB7 Lv${m.hero_level}` : ""
29984
+ ] })
29985
+ ] }, m.ability))
29986
+ ] }),
29987
+ Array.isArray(r.ultimate_levels) && r.ultimate_levels.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
29988
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.sbUlts) }),
29989
+ r.ultimate_levels.map((u, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "ag-chip is-good", children: [
29990
+ N(u.ability),
29991
+ " Lv",
29992
+ u.level,
29993
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
29994
+ u.clock,
29995
+ u.hero_level != null ? ` \xB7 Lv${u.hero_level}` : ""
29996
+ ] })
29997
+ ] }, `${u.ability}-${u.level}-${i}`))
29998
+ ] }),
29999
+ Array.isArray(r.talents) && r.talents.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "ag-rec-line", children: [
30000
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: t2(T9.sbTalents) }),
30001
+ r.talents.map((tl2, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "ag-chip", children: tl2.name ?? N(tl2.ability) }, i))
30002
+ ] }),
30003
+ r.upgrade_timeline.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
30004
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "ag-rec-sub", children: t2(T9.sbTimeline) }),
30005
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "ag-rec-line", children: r.upgrade_timeline.map((u, i) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: `ag-chip ${u.ultimate ? "is-good" : ""}`, children: [
30006
+ u.clock,
30007
+ " \xB7 ",
30008
+ N(u.ability),
30009
+ " Lv",
30010
+ u.ability_level,
30011
+ u.initial ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("em", { children: t2(T9.sbInitial) }) : u.hero_level != null ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("em", { children: [
30012
+ "Lv",
30013
+ u.hero_level
30014
+ ] }) : null
30015
+ ] }, `${u.ability}-${u.ability_level}-${i}`)) })
30016
+ ] })
30017
+ ] })
30018
+ ] });
30019
+ }
30020
+ const HIDDEN_DEATH_BUCKETS = /* @__PURE__ */ new Set(["health_below_half_at_window_start", "health_below_half_at_window_start_outside_fights"]);
29788
30021
  const flat = [];
29789
30022
  const late = [];
29790
30023
  for (const [k2, v] of Object.entries(r)) {
@@ -29807,6 +30040,7 @@ function Record({ data: data2, lang }) {
29807
30040
  for (const [k2, v] of late) {
29808
30041
  if (!v || typeof v !== "object") continue;
29809
30042
  for (const [k22, v2] of Object.entries(v)) {
30043
+ if (k2 === "deaths_where" && HIDDEN_DEATH_BUCKETS.has(k22)) continue;
29810
30044
  if (k2 === "deaths_where" && TRADES.includes(k22) && Array.isArray(v2)) {
29811
30045
  trades.push([tl(k22), String(v2.length)]);
29812
30046
  continue;