@zhuweiyou/dsh-holdem 0.1.0 → 0.1.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/lib/client.js CHANGED
@@ -433,9 +433,9 @@ var ApiError = class extends Error {
433
433
  this.view = view;
434
434
  }
435
435
  };
436
- async function request(path, init = {}) {
437
- const response = await fetch(`${apiBase}${PREFIX}${path}`, {
438
- credentials: apiBase === "" ? "same-origin" : "omit",
436
+ async function request(path, init = {}, base = apiBase) {
437
+ const response = await fetch(`${base}${PREFIX}${path}`, {
438
+ credentials: base === "" ? "same-origin" : "omit",
439
439
  ...init,
440
440
  headers: {
441
441
  ...HEADERS,
@@ -448,6 +448,13 @@ async function request(path, init = {}) {
448
448
  if (!response.ok) throw new ApiError(body.error ?? `http-${response.status}`, body.message ?? response.statusText, response.status, body.view);
449
449
  return body;
450
450
  }
451
+ /**
452
+ * 本机特权请求:Cloudflare 授权/部署跑在 dsh 进程里,只认回环地址。
453
+ * 当前会话可能指向 Worker(创建过公网房间后 apiBase 不是 ''),所以这里强制打到本机。
454
+ */
455
+ function localRequest(path, init = {}) {
456
+ return request(path, init, "");
457
+ }
451
458
  const api = {
452
459
  createRoom(input) {
453
460
  return request("/api/rooms", {
@@ -497,10 +504,10 @@ const api = {
497
504
  return request(`/api/rooms/${encodeURIComponent(roomId)}/history`);
498
505
  },
499
506
  cloudflare() {
500
- return request("/api/cloudflare");
507
+ return localRequest("/api/cloudflare");
501
508
  },
502
509
  cloudflareAction(action) {
503
- return request(`/api/cloudflare?action=${action}`, {
510
+ return localRequest(`/api/cloudflare?action=${action}`, {
504
511
  method: "POST",
505
512
  body: "{}"
506
513
  });
@@ -788,6 +795,7 @@ function handleEvent(event) {
788
795
  }
789
796
  if (event.type === "kicked") {
790
797
  closeChannel();
798
+ useBackend("");
791
799
  set({
792
800
  view: null,
793
801
  notice: t("error.kicked"),
@@ -797,6 +805,7 @@ function handleEvent(event) {
797
805
  }
798
806
  if (event.type === "left") {
799
807
  closeChannel();
808
+ useBackend("");
800
809
  set({
801
810
  view: null,
802
811
  notice: event.reason,
@@ -846,6 +855,7 @@ async function recoverSession(roomId) {
846
855
  }
847
856
  rememberRoom(null);
848
857
  closeChannel();
858
+ useBackend("");
849
859
  set({
850
860
  view: null,
851
861
  connection: "idle",
@@ -868,7 +878,7 @@ async function bootstrap() {
868
878
  set({ connection: "polling" });
869
879
  startPolling(session.view.room.roomId);
870
880
  }
871
- }
881
+ } else useBackend("");
872
882
  } catch {} finally {
873
883
  set({ booted: true });
874
884
  }
@@ -945,6 +955,7 @@ async function leaveRoom() {
945
955
  } catch {}
946
956
  rememberRoom(null);
947
957
  closeChannel();
958
+ useBackend("");
948
959
  set({
949
960
  view: null,
950
961
  connection: "idle",
@@ -1078,234 +1089,234 @@ if (typeof document !== "undefined" && document.querySelector("style[data-plugin
1078
1089
  document.head.appendChild(tag);
1079
1090
  }
1080
1091
  var styles_module_css_default = {
1092
+ "settleHistory": "XdMBba_settleHistory",
1093
+ "previewCard": "XdMBba_previewCard",
1081
1094
  "connPolling": "XdMBba_connPolling",
1082
- "btn": "XdMBba_btn",
1083
- "btnOutline": "XdMBba_btnOutline",
1084
- "chatInput": "XdMBba_chatInput",
1085
- "toastError": "XdMBba_toastError",
1086
- "settle": "XdMBba_settle",
1087
- "narrowName": "XdMBba_narrowName",
1088
- "cfBadgeWait": "XdMBba_cfBadgeWait",
1089
- "previewSeatFilled": "XdMBba_previewSeatFilled",
1090
- "centerHint": "XdMBba_centerHint",
1091
- "statusAllIn": "XdMBba_statusAllIn",
1095
+ "centerActions": "XdMBba_centerActions",
1092
1096
  "sheetTitle": "XdMBba_sheetTitle",
1093
- "lobby": "XdMBba_lobby",
1094
- "actionRow": "XdMBba_actionRow",
1095
- "table": "XdMBba_table",
1096
- "seatName": "XdMBba_seatName",
1097
- "chatList": "XdMBba_chatList",
1098
- "railFooter": "XdMBba_railFooter",
1099
- "card_md": "XdMBba_card_md",
1100
- "narrowCards": "XdMBba_narrowCards",
1101
- "chatName": "XdMBba_chatName",
1102
- "card_lg": "XdMBba_card_lg",
1103
- "btnGhost": "XdMBba_btnGhost",
1104
- "urlLabel": "XdMBba_urlLabel",
1105
- "cardRank": "XdMBba_cardRank",
1106
- "phasePill": "XdMBba_phasePill",
1107
- "ownMeta": "XdMBba_ownMeta",
1108
- "ownButtons": "XdMBba_ownButtons",
1097
+ "spin": "XdMBba_spin",
1098
+ "handName": "XdMBba_handName",
1099
+ "loading": "XdMBba_loading",
1100
+ "lobbyHead": "XdMBba_lobbyHead",
1101
+ "bannerTitle": "XdMBba_bannerTitle",
1102
+ "bannerNext": "XdMBba_bannerNext",
1103
+ "pos2": "XdMBba_pos2",
1104
+ "centerHint": "XdMBba_centerHint",
1109
1105
  "card_sm": "XdMBba_card_sm",
1110
- "previewActions": "XdMBba_previewActions",
1106
+ "cardSlot": "XdMBba_cardSlot",
1107
+ "ownArea": "XdMBba_ownArea",
1108
+ "raiseGroup": "XdMBba_raiseGroup",
1109
+ "timerRing": "XdMBba_timerRing",
1110
+ "conn": "XdMBba_conn",
1111
+ "cfPanel": "XdMBba_cfPanel",
1111
1112
  "tab": "XdMBba_tab",
1112
- "copiedTag": "XdMBba_copiedTag",
1113
- "cardBack": "XdMBba_cardBack",
1114
- "pos4": "XdMBba_pos4",
1115
- "leaderHands": "XdMBba_leaderHands",
1116
- "connLive": "XdMBba_connLive",
1117
- "actionTimer": "XdMBba_actionTimer",
1118
- "cardSuit": "XdMBba_cardSuit",
1119
- "lobbyTitle": "XdMBba_lobbyTitle",
1113
+ "lobbyBody": "XdMBba_lobbyBody",
1114
+ "seatOffline": "XdMBba_seatOffline",
1115
+ "chatText": "XdMBba_chatText",
1116
+ "codeLine": "XdMBba_codeLine",
1117
+ "historyList": "XdMBba_historyList",
1118
+ "pos1": "XdMBba_pos1",
1119
+ "settleHandPot": "XdMBba_settleHandPot",
1120
1120
  "settleHandWinners": "XdMBba_settleHandWinners",
1121
- "cardRed": "XdMBba_cardRed",
1122
- "nameText": "XdMBba_nameText",
1123
- "loading": "XdMBba_loading",
1124
- "cfBadgeOn": "XdMBba_cfBadgeOn",
1125
- "hostActive": "XdMBba_hostActive",
1126
- "spin": "XdMBba_spin",
1121
+ "cardBack": "XdMBba_cardBack",
1122
+ "ownName": "XdMBba_ownName",
1123
+ "bannerDeltas": "XdMBba_bannerDeltas",
1124
+ "hostRow": "XdMBba_hostRow",
1125
+ "metaRow": "XdMBba_metaRow",
1126
+ "settleRowHead": "XdMBba_settleRowHead",
1127
+ "inviteWarnText": "XdMBba_inviteWarnText",
1128
+ "header": "XdMBba_header",
1129
+ "codeChip": "XdMBba_codeChip",
1130
+ "seatActor": "XdMBba_seatActor",
1131
+ "card": "XdMBba_card",
1132
+ "sheet": "XdMBba_sheet",
1133
+ "urlLabel": "XdMBba_urlLabel",
1134
+ "historyPot": "XdMBba_historyPot",
1135
+ "seatEmptyText": "XdMBba_seatEmptyText",
1136
+ "actionTimerValue": "XdMBba_actionTimerValue",
1137
+ "cfError": "XdMBba_cfError",
1138
+ "cmdBlock": "XdMBba_cmdBlock",
1139
+ "settleTable": "XdMBba_settleTable",
1140
+ "buildTag": "XdMBba_buildTag",
1141
+ "ownMeta": "XdMBba_ownMeta",
1142
+ "railChat": "XdMBba_railChat",
1143
+ "ownButtons": "XdMBba_ownButtons",
1144
+ "inviteError": "XdMBba_inviteError",
1145
+ "seat": "XdMBba_seat",
1146
+ "kickBtn": "XdMBba_kickBtn",
1127
1147
  "tabs": "XdMBba_tabs",
1128
1148
  "sidePots": "XdMBba_sidePots",
1129
- "seatMeta": "XdMBba_seatMeta",
1149
+ "pos0": "XdMBba_pos0",
1150
+ "narrowCards": "XdMBba_narrowCards",
1151
+ "narrowStack": "XdMBba_narrowStack",
1152
+ "statusFolded": "XdMBba_statusFolded",
1153
+ "btnRaise": "XdMBba_btnRaise",
1154
+ "seatTop": "XdMBba_seatTop",
1155
+ "badgeBlind": "XdMBba_badgeBlind",
1156
+ "nameText": "XdMBba_nameText",
1157
+ "railFooter": "XdMBba_railFooter",
1158
+ "settle": "XdMBba_settle",
1159
+ "lobbyTitle": "XdMBba_lobbyTitle",
1160
+ "cardSuit": "XdMBba_cardSuit",
1130
1161
  "ownCards": "XdMBba_ownCards",
1131
- "railSection": "XdMBba_railSection",
1132
- "settleRowHead": "XdMBba_settleRowHead",
1133
- "titleRow": "XdMBba_titleRow",
1134
- "handName": "XdMBba_handName",
1162
+ "spectatorList": "XdMBba_spectatorList",
1163
+ "railTitle": "XdMBba_railTitle",
1164
+ "urlRow": "XdMBba_urlRow",
1165
+ "handOverBanner": "XdMBba_handOverBanner",
1166
+ "actionRow": "XdMBba_actionRow",
1167
+ "actionTimerLabel": "XdMBba_actionTimerLabel",
1168
+ "cfWaiting": "XdMBba_cfWaiting",
1169
+ "seatYou": "XdMBba_seatYou",
1170
+ "chatLine": "XdMBba_chatLine",
1171
+ "grow": "XdMBba_grow",
1172
+ "netUp": "XdMBba_netUp",
1173
+ "phasePillHand": "XdMBba_phasePillHand",
1174
+ "row": "XdMBba_row",
1175
+ "previewSeats": "XdMBba_previewSeats",
1176
+ "btnOutline": "XdMBba_btnOutline",
1177
+ "felt": "XdMBba_felt",
1178
+ "cardRed": "XdMBba_cardRed",
1179
+ "historyBoard": "XdMBba_historyBoard",
1180
+ "settleHead": "XdMBba_settleHead",
1181
+ "cardRank": "XdMBba_cardRank",
1182
+ "ownStack": "XdMBba_ownStack",
1183
+ "potChips": "XdMBba_potChips",
1135
1184
  "settleTitle": "XdMBba_settleTitle",
1136
- "netFlat": "XdMBba_netFlat",
1137
- "btnDanger": "XdMBba_btnDanger",
1138
- "statusAction": "XdMBba_statusAction",
1185
+ "input": "XdMBba_input",
1186
+ "toastError": "XdMBba_toastError",
1187
+ "notice": "XdMBba_notice",
1188
+ "previewHead": "XdMBba_previewHead",
1189
+ "historyScroll": "XdMBba_historyScroll",
1190
+ "seatName": "XdMBba_seatName",
1191
+ "actionBar": "XdMBba_actionBar",
1192
+ "narrowRow": "XdMBba_narrowRow",
1139
1193
  "narrowStatus": "XdMBba_narrowStatus",
1140
- "card": "XdMBba_card",
1141
- "potAmount": "XdMBba_potAmount",
1142
- "seatEmpty": "XdMBba_seatEmpty",
1143
- "settleHistory": "XdMBba_settleHistory",
1144
- "cfBadge": "XdMBba_cfBadge",
1145
- "centerTitle": "XdMBba_centerTitle",
1194
+ "card_md": "XdMBba_card_md",
1146
1195
  "rail": "XdMBba_rail",
1147
- "sheetHead": "XdMBba_sheetHead",
1148
- "sheetNote": "XdMBba_sheetNote",
1149
- "hint": "XdMBba_hint",
1196
+ "railSection": "XdMBba_railSection",
1197
+ "settleRowFirst": "XdMBba_settleRowFirst",
1198
+ "card_lg": "XdMBba_card_lg",
1199
+ "statusAction": "XdMBba_statusAction",
1200
+ "seatMeta": "XdMBba_seatMeta",
1201
+ "badgeYou": "XdMBba_badgeYou",
1202
+ "potAmount": "XdMBba_potAmount",
1203
+ "btnGhost": "XdMBba_btnGhost",
1150
1204
  "cfLog": "XdMBba_cfLog",
1151
- "settleHandRow": "XdMBba_settleHandRow",
1152
- "cardBlack": "XdMBba_cardBlack",
1153
- "grow": "XdMBba_grow",
1154
- "ownArea": "XdMBba_ownArea",
1155
- "badgeDealer": "XdMBba_badgeDealer",
1156
- "headerActions": "XdMBba_headerActions",
1157
- "narrowRowYou": "XdMBba_narrowRowYou",
1158
- "settleMeta": "XdMBba_settleMeta",
1205
+ "center": "XdMBba_center",
1206
+ "sidePot": "XdMBba_sidePot",
1207
+ "previewSeatFilled": "XdMBba_previewSeatFilled",
1208
+ "connLive": "XdMBba_connLive",
1209
+ "fieldLabel": "XdMBba_fieldLabel",
1210
+ "statusMuted": "XdMBba_statusMuted",
1211
+ "cfBadge": "XdMBba_cfBadge",
1212
+ "leaderRank": "XdMBba_leaderRank",
1213
+ "cardDim": "XdMBba_cardDim",
1159
1214
  "inviteLinkInput": "XdMBba_inviteLinkInput",
1160
- "seatsLayer": "XdMBba_seatsLayer",
1161
- "actionBar": "XdMBba_actionBar",
1162
- "betChip": "XdMBba_betChip",
1163
- "input": "XdMBba_input",
1164
- "previewSeats": "XdMBba_previewSeats",
1215
+ "settleActions": "XdMBba_settleActions",
1165
1216
  "ownHint": "XdMBba_ownHint",
1166
- "headerMain": "XdMBba_headerMain",
1217
+ "presetRow": "XdMBba_presetRow",
1218
+ "cfRow": "XdMBba_cfRow",
1219
+ "phasePillLobby": "XdMBba_phasePillLobby",
1220
+ "roomTitle": "XdMBba_roomTitle",
1221
+ "settleHandRow": "XdMBba_settleHandRow",
1222
+ "inviteWarnTitle": "XdMBba_inviteWarnTitle",
1167
1223
  "inviteBanner": "XdMBba_inviteBanner",
1168
- "potRow": "XdMBba_potRow",
1169
- "historyList": "XdMBba_historyList",
1224
+ "field": "XdMBba_field",
1225
+ "btnChip": "XdMBba_btnChip",
1226
+ "avatar": "XdMBba_avatar",
1227
+ "chatName": "XdMBba_chatName",
1228
+ "previewSeat": "XdMBba_previewSeat",
1229
+ "narrowList": "XdMBba_narrowList",
1230
+ "headerMain": "XdMBba_headerMain",
1231
+ "streetLabel": "XdMBba_streetLabel",
1232
+ "raiseValue": "XdMBba_raiseValue",
1170
1233
  "netDown": "XdMBba_netDown",
1171
- "inviteError": "XdMBba_inviteError",
1172
- "tabActive": "XdMBba_tabActive",
1173
- "hintLink": "XdMBba_hintLink",
1174
- "seatStack": "XdMBba_seatStack",
1234
+ "chatInput": "XdMBba_chatInput",
1235
+ "inviteLinkRow": "XdMBba_inviteLinkRow",
1236
+ "historyRow": "XdMBba_historyRow",
1237
+ "cfAuthBox": "XdMBba_cfAuthBox",
1238
+ "chatList": "XdMBba_chatList",
1239
+ "connOffline": "XdMBba_connOffline",
1240
+ "pos4": "XdMBba_pos4",
1241
+ "netFlat": "XdMBba_netFlat",
1242
+ "seatsLayer": "XdMBba_seatsLayer",
1243
+ "cfLabel": "XdMBba_cfLabel",
1244
+ "seatOut": "XdMBba_seatOut",
1245
+ "hostActive": "XdMBba_hostActive",
1246
+ "previewMeta": "XdMBba_previewMeta",
1247
+ "feltArea": "XdMBba_feltArea",
1175
1248
  "cfAuthHint": "XdMBba_cfAuthHint",
1176
- "railChat": "XdMBba_railChat",
1177
- "ownStack": "XdMBba_ownStack",
1178
- "buildTag": "XdMBba_buildTag",
1179
- "previewCard": "XdMBba_previewCard",
1180
- "settleActions": "XdMBba_settleActions",
1181
- "avatar": "XdMBba_avatar",
1182
- "loadingMark": "XdMBba_loadingMark",
1183
- "pos0": "XdMBba_pos0",
1184
- "codeChip": "XdMBba_codeChip",
1185
- "badgeYou": "XdMBba_badgeYou",
1186
- "seatEmptyText": "XdMBba_seatEmptyText",
1187
- "settleRank": "XdMBba_settleRank",
1249
+ "sheetBackdrop": "XdMBba_sheetBackdrop",
1250
+ "inviteWarn": "XdMBba_inviteWarn",
1188
1251
  "spectatorCount": "XdMBba_spectatorCount",
1189
- "pos3": "XdMBba_pos3",
1190
- "previewHead": "XdMBba_previewHead",
1191
- "slider": "XdMBba_slider",
1192
- "boardRow": "XdMBba_boardRow",
1193
- "cardSlot": "XdMBba_cardSlot",
1194
- "historyCard": "XdMBba_historyCard",
1195
- "seatYou": "XdMBba_seatYou",
1196
- "sidePot": "XdMBba_sidePot",
1197
- "seatTop": "XdMBba_seatTop",
1198
- "spectatorChip": "XdMBba_spectatorChip",
1199
- "leaderRank": "XdMBba_leaderRank",
1200
- "settleHead": "XdMBba_settleHead",
1201
- "notice": "XdMBba_notice",
1202
- "lobbyHead": "XdMBba_lobbyHead",
1203
- "statusFolded": "XdMBba_statusFolded",
1204
- "railTitle": "XdMBba_railTitle",
1205
- "inputCode": "XdMBba_inputCode",
1206
- "railWrap": "XdMBba_railWrap",
1207
- "narrowEmpty": "XdMBba_narrowEmpty",
1208
- "leaderList": "XdMBba_leaderList",
1209
- "pos5": "XdMBba_pos5",
1210
- "railEmpty": "XdMBba_railEmpty",
1252
+ "hintLink": "XdMBba_hintLink",
1253
+ "sheetHead": "XdMBba_sheetHead",
1254
+ "leaderRowYou": "XdMBba_leaderRowYou",
1255
+ "lobby": "XdMBba_lobby",
1256
+ "btnWide": "XdMBba_btnWide",
1211
1257
  "leaderRow": "XdMBba_leaderRow",
1212
- "settleHandPot": "XdMBba_settleHandPot",
1213
- "lobbyBody": "XdMBba_lobbyBody",
1214
- "historyScroll": "XdMBba_historyScroll",
1215
- "btnCall": "XdMBba_btnCall",
1216
- "previewSeat": "XdMBba_previewSeat",
1217
- "phasePillLobby": "XdMBba_phasePillLobby",
1218
- "conn": "XdMBba_conn",
1219
- "feltArea": "XdMBba_feltArea",
1220
- "settleTable": "XdMBba_settleTable",
1221
- "leaderName": "XdMBba_leaderName",
1222
- "urlRow": "XdMBba_urlRow",
1223
- "tableBody": "XdMBba_tableBody",
1224
- "cfWaiting": "XdMBba_cfWaiting",
1225
- "btnRaise": "XdMBba_btnRaise",
1226
- "metaRow": "XdMBba_metaRow",
1227
- "timerRing": "XdMBba_timerRing",
1258
+ "seatStatus": "XdMBba_seatStatus",
1259
+ "headerActions": "XdMBba_headerActions",
1260
+ "railWrap": "XdMBba_railWrap",
1261
+ "narrowRowYou": "XdMBba_narrowRowYou",
1228
1262
  "inviteBtn": "XdMBba_inviteBtn",
1229
- "inviteWarnText": "XdMBba_inviteWarnText",
1230
- "btnWide": "XdMBba_btnWide",
1231
- "seatOut": "XdMBba_seatOut",
1232
- "cfPanel": "XdMBba_cfPanel",
1233
- "roomTitle": "XdMBba_roomTitle",
1234
- "sheetBackdrop": "XdMBba_sheetBackdrop",
1235
- "btnPrimary": "XdMBba_btnPrimary",
1236
- "header": "XdMBba_header",
1237
- "kickBtn": "XdMBba_kickBtn",
1238
- "historyRow": "XdMBba_historyRow",
1239
- "netUp": "XdMBba_netUp",
1240
1263
  "historyNo": "XdMBba_historyNo",
1264
+ "seatEmpty": "XdMBba_seatEmpty",
1265
+ "phasePill": "XdMBba_phasePill",
1266
+ "slider": "XdMBba_slider",
1267
+ "titleRow": "XdMBba_titleRow",
1268
+ "btnDanger": "XdMBba_btnDanger",
1269
+ "tabActive": "XdMBba_tabActive",
1241
1270
  "inviteOk": "XdMBba_inviteOk",
1242
- "streetLabel": "XdMBba_streetLabel",
1243
- "presetRow": "XdMBba_presetRow",
1244
- "inviteLinkRow": "XdMBba_inviteLinkRow",
1245
- "panel": "XdMBba_panel",
1271
+ "betChip": "XdMBba_betChip",
1272
+ "narrowEmpty": "XdMBba_narrowEmpty",
1273
+ "cfBadgeWait": "XdMBba_cfBadgeWait",
1274
+ "previewActions": "XdMBba_previewActions",
1275
+ "noticeError": "XdMBba_noticeError",
1276
+ "copiedTag": "XdMBba_copiedTag",
1277
+ "leaderHands": "XdMBba_leaderHands",
1278
+ "cfBadgeOn": "XdMBba_cfBadgeOn",
1279
+ "tableBody": "XdMBba_tableBody",
1280
+ "raiseHead": "XdMBba_raiseHead",
1281
+ "historyCard": "XdMBba_historyCard",
1282
+ "railEmpty": "XdMBba_railEmpty",
1283
+ "boardRow": "XdMBba_boardRow",
1284
+ "settleRank": "XdMBba_settleRank",
1285
+ "btn": "XdMBba_btn",
1286
+ "badgeDealer": "XdMBba_badgeDealer",
1287
+ "badgeHost": "XdMBba_badgeHost",
1288
+ "statusAllIn": "XdMBba_statusAllIn",
1289
+ "potRow": "XdMBba_potRow",
1290
+ "lobbyCenter": "XdMBba_lobbyCenter",
1291
+ "inputCode": "XdMBba_inputCode",
1292
+ "leaderName": "XdMBba_leaderName",
1293
+ "loadingMark": "XdMBba_loadingMark",
1294
+ "chatComposer": "XdMBba_chatComposer",
1246
1295
  "seatCards": "XdMBba_seatCards",
1247
- "seatStatus": "XdMBba_seatStatus",
1248
1296
  "settleRow": "XdMBba_settleRow",
1249
- "fieldLabel": "XdMBba_fieldLabel",
1250
- "statusMuted": "XdMBba_statusMuted",
1251
- "bannerTitle": "XdMBba_bannerTitle",
1252
- "centerActions": "XdMBba_centerActions",
1253
- "settlePlayer": "XdMBba_settlePlayer",
1254
- "cmdBlock": "XdMBba_cmdBlock",
1255
- "cfAuthBox": "XdMBba_cfAuthBox",
1256
- "inviteWarn": "XdMBba_inviteWarn",
1257
- "urlText": "XdMBba_urlText",
1258
- "sheet": "XdMBba_sheet",
1259
- "raiseGroup": "XdMBba_raiseGroup",
1260
- "cfRow": "XdMBba_cfRow",
1261
- "chatComposer": "XdMBba_chatComposer",
1262
- "leaderRowYou": "XdMBba_leaderRowYou",
1263
- "seat": "XdMBba_seat",
1264
- "badgeBlind": "XdMBba_badgeBlind",
1265
- "narrowRow": "XdMBba_narrowRow",
1266
- "chatText": "XdMBba_chatText",
1267
- "raiseHead": "XdMBba_raiseHead",
1268
- "inviteWarnTitle": "XdMBba_inviteWarnTitle",
1269
- "lobbySubtitle": "XdMBba_lobbySubtitle",
1270
- "felt": "XdMBba_felt",
1271
- "raiseValue": "XdMBba_raiseValue",
1272
- "potChips": "XdMBba_potChips",
1273
- "field": "XdMBba_field",
1274
- "pos2": "XdMBba_pos2",
1275
- "ownName": "XdMBba_ownName",
1276
1297
  "toast": "XdMBba_toast",
1277
- "lobbyCenter": "XdMBba_lobbyCenter",
1278
- "toastIn": "XdMBba_toastIn",
1279
- "center": "XdMBba_center",
1280
- "spectatorList": "XdMBba_spectatorList",
1281
- "seatActor": "XdMBba_seatActor",
1282
- "narrowStack": "XdMBba_narrowStack",
1283
- "badge": "XdMBba_badge",
1284
- "narrowList": "XdMBba_narrowList",
1285
- "codeLine": "XdMBba_codeLine",
1286
- "cfError": "XdMBba_cfError",
1287
- "row": "XdMBba_row",
1288
- "historyPot": "XdMBba_historyPot",
1289
- "hostRow": "XdMBba_hostRow",
1290
- "bannerDeltas": "XdMBba_bannerDeltas",
1291
- "pos1": "XdMBba_pos1",
1292
- "phasePillHand": "XdMBba_phasePillHand",
1293
- "cfLabel": "XdMBba_cfLabel",
1294
- "actionTimerValue": "XdMBba_actionTimerValue",
1295
- "bannerNext": "XdMBba_bannerNext",
1296
- "settleRowFirst": "XdMBba_settleRowFirst",
1298
+ "centerTitle": "XdMBba_centerTitle",
1297
1299
  "spectatorKick": "XdMBba_spectatorKick",
1298
- "btnChip": "XdMBba_btnChip",
1299
- "actionTimerLabel": "XdMBba_actionTimerLabel",
1300
- "seatOffline": "XdMBba_seatOffline",
1301
- "badgeHost": "XdMBba_badgeHost",
1302
- "handOverBanner": "XdMBba_handOverBanner",
1303
- "cardDim": "XdMBba_cardDim",
1304
- "noticeError": "XdMBba_noticeError",
1305
- "connOffline": "XdMBba_connOffline",
1306
- "chatLine": "XdMBba_chatLine",
1307
- "previewMeta": "XdMBba_previewMeta",
1308
- "historyBoard": "XdMBba_historyBoard"
1300
+ "leaderList": "XdMBba_leaderList",
1301
+ "urlText": "XdMBba_urlText",
1302
+ "badge": "XdMBba_badge",
1303
+ "pos3": "XdMBba_pos3",
1304
+ "narrowName": "XdMBba_narrowName",
1305
+ "btnPrimary": "XdMBba_btnPrimary",
1306
+ "panel": "XdMBba_panel",
1307
+ "actionTimer": "XdMBba_actionTimer",
1308
+ "sheetNote": "XdMBba_sheetNote",
1309
+ "pos5": "XdMBba_pos5",
1310
+ "toastIn": "XdMBba_toastIn",
1311
+ "table": "XdMBba_table",
1312
+ "cardBlack": "XdMBba_cardBlack",
1313
+ "settlePlayer": "XdMBba_settlePlayer",
1314
+ "hint": "XdMBba_hint",
1315
+ "seatStack": "XdMBba_seatStack",
1316
+ "lobbySubtitle": "XdMBba_lobbySubtitle",
1317
+ "settleMeta": "XdMBba_settleMeta",
1318
+ "btnCall": "XdMBba_btnCall",
1319
+ "spectatorChip": "XdMBba_spectatorChip"
1309
1320
  };
1310
1321
 
1311
1322
  //#endregion
@@ -1486,7 +1497,7 @@ function writePref(key, value) {
1486
1497
  } catch {}
1487
1498
  }
1488
1499
  function buildLabel() {
1489
- const date = new Date("2026-10-25T08:51:33.752Z");
1500
+ const date = new Date("2026-10-25T08:57:12.520Z");
1490
1501
  const stamp = date && !Number.isNaN(date.getTime()) ? date.toLocaleTimeString(void 0, { hour12: false }).slice(0, 5) : "";
1491
1502
  return stamp ? `@zhuweiyou/dsh-holdem · build ${stamp}` : "@zhuweiyou/dsh-holdem · dev";
1492
1503
  }