@dsh-agentic-roleplay/core 0.12.5 → 0.12.6

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 (30) hide show
  1. package/lib/{access-DjA0kvPM.js → access-5vtPAT3O.js} +2 -2
  2. package/lib/{authoring-tools-DqAttdUN.js → authoring-tools-BpkpGMSO.js} +7 -7
  3. package/lib/authoring.js +7 -7
  4. package/lib/{child-SMvjNsb8.js → child-Bfj7-Iuo.js} +11 -13
  5. package/lib/client.js +487 -460
  6. package/lib/client.js.map +1 -1
  7. package/lib/compaction.js +3 -3
  8. package/lib/doctor.js +3 -3
  9. package/lib/{gallery-Dahi5TkO.js → gallery-D0h0X7Jy.js} +3 -3
  10. package/lib/{generator-BvSZGpzy.js → generator-CAJkevKl.js} +2 -2
  11. package/lib/helper.js +2 -2
  12. package/lib/{hooks-OLl-1AOS.js → hooks-P_--KSFl.js} +4 -4
  13. package/lib/images.js +4 -4
  14. package/lib/index.js +61 -15
  15. package/lib/{jail-CDW5iymd.js → jail-D83JnxKg.js} +2 -2
  16. package/lib/{library-D6AcyxGZ.js → library-CnWOHwQl.js} +2 -2
  17. package/lib/{lorebook-author-tools-CXV1KD4Q.js → lorebook-author-tools-CWZ6WRN-.js} +6 -6
  18. package/lib/lorebook-authoring.js +5 -5
  19. package/lib/{narration-Bnrvl0UQ.js → narration-DAHmte8p.js} +2 -2
  20. package/lib/orchestration.js +11 -11
  21. package/lib/{pack-jail-CZAmlgE1.js → pack-jail-DSTyLhMc.js} +11 -11
  22. package/lib/{packs-DUVCSHqi.js → packs-D9_N8kDF.js} +2 -2
  23. package/lib/{presenter-agent-CGCJrg7V.js → presenter-agent-BTpJxmGi.js} +6 -6
  24. package/lib/{preset-BYfXYvp0.js → preset-B69AXtip.js} +4 -4
  25. package/lib/{preset-author-tools-DYxTLm9U.js → preset-author-tools-BJtt7D0J.js} +6 -6
  26. package/lib/preset-authoring.js +5 -5
  27. package/lib/{reflection-C3zdufN9.js → reflection-2uzE3U-v.js} +8 -8
  28. package/lib/{serial-Bh6gqb3f.js → serial-DnVqMDe5.js} +6 -6
  29. package/lib/{turn-guard-CNFvmz_F.js → turn-guard-D4YHE00t.js} +3 -3
  30. package/package.json +31 -31
package/lib/client.js CHANGED
@@ -470,9 +470,9 @@ window.__ModuleLoader__.load({
470
470
  tag$52.textContent = css$52;
471
471
  var RoleplayPanel_module_css_default = {
472
472
  "title": "rp_ua5gBa_title",
473
- "header": "rp_ua5gBa_header",
473
+ "body": "rp_ua5gBa_body",
474
474
  "panel": "rp_ua5gBa_panel",
475
- "body": "rp_ua5gBa_body"
475
+ "header": "rp_ua5gBa_header"
476
476
  };
477
477
  // src/client/panel/RoleplayPanel.tsx
478
478
  /** Header, page navigation and the selected page. */
@@ -906,14 +906,14 @@ window.__ModuleLoader__.load({
906
906
  }
907
907
  tag$51.textContent = css$51;
908
908
  var Button_module_css_default = {
909
+ "rpSm": "rp_wwotfa_rpSm",
909
910
  "rpGhost": "rp_wwotfa_rpGhost",
910
911
  "rpToolbar": "rp_wwotfa_rpToolbar",
911
912
  "rpButton": "rp_wwotfa_rpButton",
912
- "rpMd": "rp_wwotfa_rpMd",
913
- "rpSm": "rp_wwotfa_rpSm",
914
913
  "rpPrimary": "rp_wwotfa_rpPrimary",
915
- "rpOutline": "rp_wwotfa_rpOutline",
916
- "rpIcon": "rp_wwotfa_rpIcon"
914
+ "rpMd": "rp_wwotfa_rpMd",
915
+ "rpIcon": "rp_wwotfa_rpIcon",
916
+ "rpOutline": "rp_wwotfa_rpOutline"
917
917
  };
918
918
  // src/client/ui/Button.tsx
919
919
  /** Render a button; native button attributes pass through, and `icon` is a leading 16px node. */
@@ -1145,8 +1145,8 @@ window.__ModuleLoader__.load({
1145
1145
  }
1146
1146
  tag$48.textContent = css$48;
1147
1147
  var Switch_module_css_default = {
1148
- "rpSwitch": "rp_7MP8na_rpSwitch",
1149
- "rpThumb": "rp_7MP8na_rpThumb"
1148
+ "rpThumb": "rp_7MP8na_rpThumb",
1149
+ "rpSwitch": "rp_7MP8na_rpSwitch"
1150
1150
  };
1151
1151
  // src/client/ui/Switch.tsx
1152
1152
  /**
@@ -1273,34 +1273,34 @@ window.__ModuleLoader__.load({
1273
1273
  }
1274
1274
  tag$45.textContent = css$45;
1275
1275
  var ImportCard_module_css_default = {
1276
- "choice": "rp_5cvtma_choice",
1276
+ "title": "rp_5cvtma_title",
1277
+ "top": "rp_5cvtma_top",
1278
+ "heading": "rp_5cvtma_heading",
1279
+ "field": "rp_5cvtma_field",
1280
+ "fieldHead": "rp_5cvtma_fieldHead",
1281
+ "fieldMeta": "rp_5cvtma_fieldMeta",
1277
1282
  "choiceText": "rp_5cvtma_choiceText",
1283
+ "label": "rp_5cvtma_label",
1284
+ "entryOff": "rp_5cvtma_entryOff",
1285
+ "body": "rp_5cvtma_body",
1278
1286
  "preview": "rp_5cvtma_preview",
1279
- "space": "rp_5cvtma_space",
1280
- "about": "rp_5cvtma_about",
1281
- "page": "rp_5cvtma_page",
1282
- "title": "rp_5cvtma_title",
1283
- "tags": "rp_5cvtma_tags",
1284
- "section": "rp_5cvtma_section",
1285
1287
  "note": "rp_5cvtma_note",
1286
- "row": "rp_5cvtma_row",
1287
- "fieldHead": "rp_5cvtma_fieldHead",
1288
+ "about": "rp_5cvtma_about",
1289
+ "entryTitle": "rp_5cvtma_entryTitle",
1290
+ "text": "rp_5cvtma_text",
1291
+ "picture": "rp_5cvtma_picture",
1288
1292
  "fieldTitle": "rp_5cvtma_fieldTitle",
1289
- "error": "rp_5cvtma_error",
1290
- "header": "rp_5cvtma_header",
1293
+ "section": "rp_5cvtma_section",
1291
1294
  "entryHead": "rp_5cvtma_entryHead",
1292
- "noPicture": "rp_5cvtma_noPicture",
1293
- "picture": "rp_5cvtma_picture",
1295
+ "choice": "rp_5cvtma_choice",
1296
+ "row": "rp_5cvtma_row",
1294
1297
  "entry": "rp_5cvtma_entry",
1295
- "top": "rp_5cvtma_top",
1296
- "entryTitle": "rp_5cvtma_entryTitle",
1297
- "fieldMeta": "rp_5cvtma_fieldMeta",
1298
- "entryOff": "rp_5cvtma_entryOff",
1299
- "heading": "rp_5cvtma_heading",
1300
- "text": "rp_5cvtma_text",
1301
- "field": "rp_5cvtma_field",
1302
- "label": "rp_5cvtma_label",
1303
- "body": "rp_5cvtma_body"
1298
+ "header": "rp_5cvtma_header",
1299
+ "tags": "rp_5cvtma_tags",
1300
+ "page": "rp_5cvtma_page",
1301
+ "error": "rp_5cvtma_error",
1302
+ "space": "rp_5cvtma_space",
1303
+ "noPicture": "rp_5cvtma_noPicture"
1304
1304
  };
1305
1305
  // src/client/widgets/import-card/ImportCard.tsx
1306
1306
  const pictureUrl = (id) => `${API_PREFIX}/worlds/import/picture?id=${encodeURIComponent(id)}`;
@@ -1808,17 +1808,17 @@ window.__ModuleLoader__.load({
1808
1808
  }
1809
1809
  tag$44.textContent = css$44;
1810
1810
  var Modal_module_css_default = {
1811
- "content": "rp_46MuuW_content",
1811
+ "footer": "rp_46MuuW_footer",
1812
1812
  "description": "rp_46MuuW_description",
1813
- "mask": "rp_46MuuW_mask",
1814
- "root": "rp_46MuuW_root",
1815
- "header": "rp_46MuuW_header",
1813
+ "dialog": "rp_46MuuW_dialog",
1816
1814
  "close": "rp_46MuuW_close",
1817
1815
  "rpModalEnter": "rp_46MuuW_rpModalEnter",
1816
+ "content": "rp_46MuuW_content",
1817
+ "header": "rp_46MuuW_header",
1818
1818
  "title": "rp_46MuuW_title",
1819
1819
  "body": "rp_46MuuW_body",
1820
- "footer": "rp_46MuuW_footer",
1821
- "dialog": "rp_46MuuW_dialog"
1820
+ "root": "rp_46MuuW_root",
1821
+ "mask": "rp_46MuuW_mask"
1822
1822
  };
1823
1823
  // src/client/ui/Modal.tsx
1824
1824
  const FOCUSABLE = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
@@ -1955,38 +1955,38 @@ window.__ModuleLoader__.load({
1955
1955
  }
1956
1956
  tag$43.textContent = css$43;
1957
1957
  var CataloguePage_module_css_default = {
1958
- "status": "rp_qK1u-G_status",
1959
1958
  "kind": "rp_qK1u-G_kind",
1960
- "toolbar": "rp_qK1u-G_toolbar",
1961
- "tags": "rp_qK1u-G_tags",
1962
- "form": "rp_qK1u-G_form",
1963
- "search": "rp_qK1u-G_search",
1964
- "message": "rp_qK1u-G_message",
1965
- "meta": "rp_qK1u-G_meta",
1966
- "spacer": "rp_qK1u-G_spacer",
1967
1959
  "page": "rp_qK1u-G_page",
1968
- "grid": "rp_qK1u-G_grid",
1969
- "update": "rp_qK1u-G_update",
1970
1960
  "field": "rp_qK1u-G_field",
1971
- "viewport": "rp_qK1u-G_viewport",
1972
- "select": "rp_qK1u-G_select",
1973
- "name": "rp_qK1u-G_name",
1974
- "updates": "rp_qK1u-G_updates",
1975
- "cover": "rp_qK1u-G_cover",
1976
- "label": "rp_qK1u-G_label",
1977
- "detail": "rp_qK1u-G_detail",
1978
- "description": "rp_qK1u-G_description",
1961
+ "search": "rp_qK1u-G_search",
1962
+ "status": "rp_qK1u-G_status",
1979
1963
  "success": "rp_qK1u-G_success",
1980
- "warning": "rp_qK1u-G_warning",
1981
- "notice": "rp_qK1u-G_notice",
1982
1964
  "card": "rp_qK1u-G_card",
1983
- "actions": "rp_qK1u-G_actions",
1984
- "image": "rp_qK1u-G_image",
1965
+ "label": "rp_qK1u-G_label",
1966
+ "cover": "rp_qK1u-G_cover",
1967
+ "updates": "rp_qK1u-G_updates",
1968
+ "select": "rp_qK1u-G_select",
1969
+ "update": "rp_qK1u-G_update",
1970
+ "description": "rp_qK1u-G_description",
1985
1971
  "placeholder": "rp_qK1u-G_placeholder",
1986
1972
  "more": "rp_qK1u-G_more",
1987
- "body": "rp_qK1u-G_body",
1973
+ "detail": "rp_qK1u-G_detail",
1974
+ "warning": "rp_qK1u-G_warning",
1975
+ "actions": "rp_qK1u-G_actions",
1976
+ "tags": "rp_qK1u-G_tags",
1977
+ "viewport": "rp_qK1u-G_viewport",
1978
+ "kinds": "rp_qK1u-G_kinds",
1979
+ "notice": "rp_qK1u-G_notice",
1988
1980
  "changes": "rp_qK1u-G_changes",
1989
- "kinds": "rp_qK1u-G_kinds"
1981
+ "toolbar": "rp_qK1u-G_toolbar",
1982
+ "grid": "rp_qK1u-G_grid",
1983
+ "body": "rp_qK1u-G_body",
1984
+ "name": "rp_qK1u-G_name",
1985
+ "spacer": "rp_qK1u-G_spacer",
1986
+ "meta": "rp_qK1u-G_meta",
1987
+ "image": "rp_qK1u-G_image",
1988
+ "message": "rp_qK1u-G_message",
1989
+ "form": "rp_qK1u-G_form"
1990
1990
  };
1991
1991
  // src/client/pages/catalogue/ImportUrlDialog.tsx
1992
1992
  /** Installs a world from the address of its archive, or opens the resource a page address of a configured catalogue names; an address on a configured catalogue's site is asked for with that catalogue's key. */
@@ -2190,19 +2190,19 @@ window.__ModuleLoader__.load({
2190
2190
  }
2191
2191
  tag$42.textContent = css$42;
2192
2192
  var ImportSelection_module_css_default = {
2193
+ "body": "rp_Jx0l4q_body",
2194
+ "list": "rp_Jx0l4q_list",
2193
2195
  "meta": "rp_Jx0l4q_meta",
2194
- "note": "rp_Jx0l4q_note",
2195
- "full": "rp_Jx0l4q_full",
2196
- "help": "rp_Jx0l4q_help",
2197
2196
  "sampling": "rp_Jx0l4q_sampling",
2198
- "error": "rp_Jx0l4q_error",
2197
+ "note": "rp_Jx0l4q_note",
2199
2198
  "count": "rp_Jx0l4q_count",
2200
- "extra": "rp_Jx0l4q_extra",
2199
+ "help": "rp_Jx0l4q_help",
2200
+ "row": "rp_Jx0l4q_row",
2201
2201
  "text": "rp_Jx0l4q_text",
2202
2202
  "bar": "rp_Jx0l4q_bar",
2203
- "body": "rp_Jx0l4q_body",
2204
- "list": "rp_Jx0l4q_list",
2205
- "row": "rp_Jx0l4q_row"
2203
+ "full": "rp_Jx0l4q_full",
2204
+ "error": "rp_Jx0l4q_error",
2205
+ "extra": "rp_Jx0l4q_extra"
2206
2206
  };
2207
2207
  // src/client/widgets/import-selection/ImportSelection.tsx
2208
2208
  const messageOf$14 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -5319,46 +5319,46 @@ window.__ModuleLoader__.load({
5319
5319
  }
5320
5320
  tag$41.textContent = css$41;
5321
5321
  var CharactersPanel_module_css_default = {
5322
- "tabOn": "rp_5ZMIxq_tabOn",
5323
- "initial": "rp_5ZMIxq_initial",
5324
- "area": "rp_5ZMIxq_area",
5325
- "portraitAction": "rp_5ZMIxq_portraitAction",
5326
- "portrait": "rp_5ZMIxq_portrait",
5327
- "label": "rp_5ZMIxq_label",
5328
- "missing": "rp_5ZMIxq_missing",
5329
- "itemActions": "rp_5ZMIxq_itemActions",
5330
- "nameInput": "rp_5ZMIxq_nameInput",
5331
- "empty": "rp_5ZMIxq_empty",
5322
+ "sheet": "rp_5ZMIxq_sheet",
5332
5323
  "help": "rp_5ZMIxq_help",
5333
- "optionTitle": "rp_5ZMIxq_optionTitle",
5334
- "section": "rp_5ZMIxq_section",
5335
- "voiceInline": "rp_5ZMIxq_voiceInline",
5336
- "wide": "rp_5ZMIxq_wide",
5337
- "panel": "rp_5ZMIxq_panel",
5338
- "optionFields": "rp_5ZMIxq_optionFields",
5339
- "tabs": "rp_5ZMIxq_tabs",
5324
+ "error": "rp_5ZMIxq_error",
5340
5325
  "select": "rp_5ZMIxq_select",
5341
- "portraitHint": "rp_5ZMIxq_portraitHint",
5342
- "meta": "rp_5ZMIxq_meta",
5343
5326
  "row": "rp_5ZMIxq_row",
5344
- "error": "rp_5ZMIxq_error",
5345
- "tabsSpace": "rp_5ZMIxq_tabsSpace",
5346
- "sectionTitle": "rp_5ZMIxq_sectionTitle",
5347
- "questionActions": "rp_5ZMIxq_questionActions",
5348
- "tab": "rp_5ZMIxq_tab",
5349
- "bar": "rp_5ZMIxq_bar",
5327
+ "body": "rp_5ZMIxq_body",
5328
+ "portraitBox": "rp_5ZMIxq_portraitBox",
5329
+ "voiceInline": "rp_5ZMIxq_voiceInline",
5330
+ "area": "rp_5ZMIxq_area",
5331
+ "head": "rp_5ZMIxq_head",
5350
5332
  "question": "rp_5ZMIxq_question",
5351
- "sheet": "rp_5ZMIxq_sheet",
5352
- "placeholder": "rp_5ZMIxq_placeholder",
5333
+ "wide": "rp_5ZMIxq_wide",
5334
+ "nameInput": "rp_5ZMIxq_nameInput",
5335
+ "tabOn": "rp_5ZMIxq_tabOn",
5336
+ "missing": "rp_5ZMIxq_missing",
5337
+ "portraitError": "rp_5ZMIxq_portraitError",
5338
+ "empty": "rp_5ZMIxq_empty",
5339
+ "tabsSpace": "rp_5ZMIxq_tabsSpace",
5340
+ "label": "rp_5ZMIxq_label",
5341
+ "tabs": "rp_5ZMIxq_tabs",
5342
+ "barText": "rp_5ZMIxq_barText",
5353
5343
  "questionTitle": "rp_5ZMIxq_questionTitle",
5354
5344
  "grid": "rp_5ZMIxq_grid",
5355
- "portraitBox": "rp_5ZMIxq_portraitBox",
5356
- "barText": "rp_5ZMIxq_barText",
5345
+ "panel": "rp_5ZMIxq_panel",
5346
+ "portraitHint": "rp_5ZMIxq_portraitHint",
5347
+ "tab": "rp_5ZMIxq_tab",
5357
5348
  "field": "rp_5ZMIxq_field",
5349
+ "sectionTitle": "rp_5ZMIxq_sectionTitle",
5350
+ "placeholder": "rp_5ZMIxq_placeholder",
5351
+ "itemActions": "rp_5ZMIxq_itemActions",
5358
5352
  "goal": "rp_5ZMIxq_goal",
5359
- "body": "rp_5ZMIxq_body",
5360
- "portraitError": "rp_5ZMIxq_portraitError",
5361
- "head": "rp_5ZMIxq_head"
5353
+ "bar": "rp_5ZMIxq_bar",
5354
+ "questionActions": "rp_5ZMIxq_questionActions",
5355
+ "portraitAction": "rp_5ZMIxq_portraitAction",
5356
+ "section": "rp_5ZMIxq_section",
5357
+ "meta": "rp_5ZMIxq_meta",
5358
+ "optionFields": "rp_5ZMIxq_optionFields",
5359
+ "portrait": "rp_5ZMIxq_portrait",
5360
+ "initial": "rp_5ZMIxq_initial",
5361
+ "optionTitle": "rp_5ZMIxq_optionTitle"
5362
5362
  };
5363
5363
  // src/client/world-editor/EditorTabs.tsx
5364
5364
  /** Adds expected arrow, Home and End navigation to an existing editor tab strip. */
@@ -7077,39 +7077,39 @@ window.__ModuleLoader__.load({
7077
7077
  }
7078
7078
  tag$40.textContent = css$40;
7079
7079
  var RelationsPanel_module_css_default = {
7080
- "graphEdge": "rp_7pEHTW_graphEdge",
7081
- "empty": "rp_7pEHTW_empty",
7082
- "edge": "rp_7pEHTW_edge",
7083
- "head": "rp_7pEHTW_head",
7084
- "edgeOn": "rp_7pEHTW_edgeOn",
7085
- "actions": "rp_7pEHTW_actions",
7086
- "check": "rp_7pEHTW_check",
7087
- "filter": "rp_7pEHTW_filter",
7088
- "error": "rp_7pEHTW_error",
7089
- "workspace": "rp_7pEHTW_workspace",
7090
7080
  "notice": "rp_7pEHTW_notice",
7091
- "node_location": "rp_7pEHTW_node_location",
7092
- "node_item": "rp_7pEHTW_node_item",
7081
+ "panel": "rp_7pEHTW_panel",
7082
+ "node_character": "rp_7pEHTW_node_character",
7083
+ "space": "rp_7pEHTW_space",
7084
+ "inspector": "rp_7pEHTW_inspector",
7093
7085
  "filterOn": "rp_7pEHTW_filterOn",
7094
- "perspective": "rp_7pEHTW_perspective",
7095
- "entities": "rp_7pEHTW_entities",
7096
- "status": "rp_7pEHTW_status",
7086
+ "node": "rp_7pEHTW_node",
7087
+ "node_faction": "rp_7pEHTW_node_faction",
7097
7088
  "list": "rp_7pEHTW_list",
7089
+ "actions": "rp_7pEHTW_actions",
7090
+ "node_location": "rp_7pEHTW_node_location",
7091
+ "filter": "rp_7pEHTW_filter",
7092
+ "workspace": "rp_7pEHTW_workspace",
7093
+ "graph": "rp_7pEHTW_graph",
7094
+ "empty": "rp_7pEHTW_empty",
7098
7095
  "wide": "rp_7pEHTW_wide",
7099
- "node": "rp_7pEHTW_node",
7100
- "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7101
- "graphInspector": "rp_7pEHTW_graphInspector",
7096
+ "edgeOn": "rp_7pEHTW_edgeOn",
7097
+ "error": "rp_7pEHTW_error",
7098
+ "status": "rp_7pEHTW_status",
7099
+ "perspective": "rp_7pEHTW_perspective",
7102
7100
  "toolbar": "rp_7pEHTW_toolbar",
7103
- "panel": "rp_7pEHTW_panel",
7101
+ "head": "rp_7pEHTW_head",
7102
+ "check": "rp_7pEHTW_check",
7104
7103
  "edgeKind": "rp_7pEHTW_edgeKind",
7104
+ "edge": "rp_7pEHTW_edge",
7105
+ "form": "rp_7pEHTW_form",
7106
+ "graphEdgeOn": "rp_7pEHTW_graphEdgeOn",
7105
7107
  "metrics": "rp_7pEHTW_metrics",
7108
+ "graphEdge": "rp_7pEHTW_graphEdge",
7106
7109
  "edgeTitle": "rp_7pEHTW_edgeTitle",
7107
- "space": "rp_7pEHTW_space",
7108
- "form": "rp_7pEHTW_form",
7109
- "node_faction": "rp_7pEHTW_node_faction",
7110
- "inspector": "rp_7pEHTW_inspector",
7111
- "graph": "rp_7pEHTW_graph",
7112
- "node_character": "rp_7pEHTW_node_character"
7110
+ "entities": "rp_7pEHTW_entities",
7111
+ "node_item": "rp_7pEHTW_node_item",
7112
+ "graphInspector": "rp_7pEHTW_graphInspector"
7113
7113
  };
7114
7114
  // src/client/world-editor/RelationsPanel.tsx
7115
7115
  const title = (relation) => `${relation.from.name} → ${relation.to.name}`;
@@ -8478,12 +8478,12 @@ window.__ModuleLoader__.load({
8478
8478
  }
8479
8479
  tag$39.textContent = css$39;
8480
8480
  var PackFrame_module_css_default = {
8481
- "fill": "rp_h_sbFq_fill",
8481
+ "frame": "rp_h_sbFq_frame",
8482
8482
  "message": "rp_h_sbFq_message",
8483
+ "fill": "rp_h_sbFq_fill",
8483
8484
  "problems": "rp_h_sbFq_problems",
8484
- "tab": "rp_h_sbFq_tab",
8485
8485
  "hud": "rp_h_sbFq_hud",
8486
- "frame": "rp_h_sbFq_frame"
8486
+ "tab": "rp_h_sbFq_tab"
8487
8487
  };
8488
8488
  // src/client/widgets/pack-frame/theme.ts
8489
8489
  /** The colours of DSH a surface is given, so that it looks right in light and dark. */
@@ -8745,13 +8745,13 @@ window.__ModuleLoader__.load({
8745
8745
  }
8746
8746
  tag$38.textContent = css$38;
8747
8747
  var PacksPanel_module_css_default = {
8748
- "stage": "rp_FLaP7q_stage",
8749
- "group": "rp_FLaP7q_group",
8750
8748
  "controls": "rp_FLaP7q_controls",
8751
8749
  "stageTall": "rp_FLaP7q_stageTall",
8750
+ "stage": "rp_FLaP7q_stage",
8751
+ "log": "rp_FLaP7q_log",
8752
+ "group": "rp_FLaP7q_group",
8752
8753
  "files": "rp_FLaP7q_files",
8753
- "note": "rp_FLaP7q_note",
8754
- "log": "rp_FLaP7q_log"
8754
+ "note": "rp_FLaP7q_note"
8755
8755
  };
8756
8756
  // src/client/world-editor/PacksPanel.tsx
8757
8757
  const WIDTHS = {
@@ -10027,12 +10027,12 @@ window.__ModuleLoader__.load({
10027
10027
  }
10028
10028
  tag$37.textContent = css$37;
10029
10029
  var SamplingFields_module_css_default = {
10030
- "grid": "rp_9vxYSG_grid",
10030
+ "label": "rp_9vxYSG_label",
10031
10031
  "field": "rp_9vxYSG_field",
10032
+ "grid": "rp_9vxYSG_grid",
10032
10033
  "input": "rp_9vxYSG_input",
10033
- "label": "rp_9vxYSG_label",
10034
- "help": "rp_9vxYSG_help",
10035
- "root": "rp_9vxYSG_root"
10034
+ "root": "rp_9vxYSG_root",
10035
+ "help": "rp_9vxYSG_help"
10036
10036
  };
10037
10037
  // src/client/widgets/sampling-fields/SamplingFields.tsx
10038
10038
  const samplingTexts = (sampling) => Object.fromEntries(SAMPLING_KEYS.map((key) => [key, sampling[key]?.toString() ?? ""]));
@@ -11884,17 +11884,17 @@ window.__ModuleLoader__.load({
11884
11884
  }
11885
11885
  tag$36.textContent = css$36;
11886
11886
  var ToolSwitches_module_css_default = {
11887
- "tool": "rp_CjoFLq_tool",
11888
- "root": "rp_CjoFLq_root",
11889
11887
  "agentName": "rp_CjoFLq_agentName",
11890
11888
  "toolText": "rp_CjoFLq_toolText",
11891
- "default": "rp_CjoFLq_default",
11889
+ "title": "rp_CjoFLq_title",
11892
11890
  "help": "rp_CjoFLq_help",
11893
11891
  "agent": "rp_CjoFLq_agent",
11892
+ "default": "rp_CjoFLq_default",
11893
+ "external": "rp_CjoFLq_external",
11894
+ "tool": "rp_CjoFLq_tool",
11895
+ "root": "rp_CjoFLq_root",
11894
11896
  "error": "rp_CjoFLq_error",
11895
- "title": "rp_CjoFLq_title",
11896
- "hint": "rp_CjoFLq_hint",
11897
- "external": "rp_CjoFLq_external"
11897
+ "hint": "rp_CjoFLq_hint"
11898
11898
  };
11899
11899
  // src/client/widgets/tool-switches/ToolSwitches.tsx
11900
11900
  /**
@@ -12983,9 +12983,9 @@ window.__ModuleLoader__.load({
12983
12983
  }
12984
12984
  tag$35.textContent = css$35;
12985
12985
  var ImageLightbox_module_css_default = {
12986
+ "close": "rp_O6oWuW_close",
12986
12987
  "root": "rp_O6oWuW_root",
12987
- "image": "rp_O6oWuW_image",
12988
- "close": "rp_O6oWuW_close"
12988
+ "image": "rp_O6oWuW_image"
12989
12989
  };
12990
12990
  // src/client/ui/ImageLightbox.tsx
12991
12991
  /**
@@ -13166,35 +13166,35 @@ window.__ModuleLoader__.load({
13166
13166
  }
13167
13167
  tag$34.textContent = css$34;
13168
13168
  var GalleryView_module_css_default = {
13169
+ "tags": "rp_9pSHmG_tags",
13170
+ "editLabel": "rp_9pSHmG_editLabel",
13171
+ "editInput": "rp_9pSHmG_editInput",
13172
+ "editField": "rp_9pSHmG_editField",
13169
13173
  "error": "rp_9pSHmG_error",
13170
- "detail": "rp_9pSHmG_detail",
13174
+ "edit": "rp_9pSHmG_edit",
13171
13175
  "editHelp": "rp_9pSHmG_editHelp",
13172
- "editInput": "rp_9pSHmG_editInput",
13173
- "message": "rp_9pSHmG_message",
13174
- "tags": "rp_9pSHmG_tags",
13175
13176
  "large": "rp_9pSHmG_large",
13176
- "cell": "rp_9pSHmG_cell",
13177
+ "open": "rp_9pSHmG_open",
13178
+ "actions": "rp_9pSHmG_actions",
13179
+ "page": "rp_9pSHmG_page",
13180
+ "status": "rp_9pSHmG_status",
13181
+ "editArea": "rp_9pSHmG_editArea",
13177
13182
  "image": "rp_9pSHmG_image",
13178
- "reusable": "rp_9pSHmG_reusable",
13179
- "thumb": "rp_9pSHmG_thumb",
13180
- "caption": "rp_9pSHmG_caption",
13181
13183
  "count": "rp_9pSHmG_count",
13182
- "edit": "rp_9pSHmG_edit",
13183
- "status": "rp_9pSHmG_status",
13184
- "note": "rp_9pSHmG_note",
13185
- "editLabel": "rp_9pSHmG_editLabel",
13186
- "actions": "rp_9pSHmG_actions",
13184
+ "facts": "rp_9pSHmG_facts",
13187
13185
  "toolbar": "rp_9pSHmG_toolbar",
13186
+ "cell": "rp_9pSHmG_cell",
13187
+ "pre": "rp_9pSHmG_pre",
13188
+ "detail": "rp_9pSHmG_detail",
13189
+ "reusable": "rp_9pSHmG_reusable",
13188
13190
  "grid": "rp_9pSHmG_grid",
13189
- "open": "rp_9pSHmG_open",
13190
- "editButton": "rp_9pSHmG_editButton",
13191
- "editArea": "rp_9pSHmG_editArea",
13191
+ "caption": "rp_9pSHmG_caption",
13192
+ "message": "rp_9pSHmG_message",
13192
13193
  "select": "rp_9pSHmG_select",
13193
- "facts": "rp_9pSHmG_facts",
13194
- "editField": "rp_9pSHmG_editField",
13195
- "pre": "rp_9pSHmG_pre",
13194
+ "note": "rp_9pSHmG_note",
13195
+ "editButton": "rp_9pSHmG_editButton",
13196
13196
  "statusError": "rp_9pSHmG_statusError",
13197
- "page": "rp_9pSHmG_page"
13197
+ "thumb": "rp_9pSHmG_thumb"
13198
13198
  };
13199
13199
  // src/client/widgets/gallery-view/GalleryView.tsx
13200
13200
  /** How often the list is read again while pictures are waiting to be described. */
@@ -13537,13 +13537,13 @@ window.__ModuleLoader__.load({
13537
13537
  }
13538
13538
  tag$33.textContent = css$33;
13539
13539
  var WorldEditor_module_css_default = {
13540
+ "drawerItem": "rp__swA3a_drawerItem",
13541
+ "drawerItemOn": "rp__swA3a_drawerItemOn",
13542
+ "content": "rp__swA3a_content",
13540
13543
  "view": "rp__swA3a_view",
13541
13544
  "message": "rp__swA3a_message",
13542
- "content": "rp__swA3a_content",
13543
- "drawer": "rp__swA3a_drawer",
13544
13545
  "warning": "rp__swA3a_warning",
13545
- "drawerItemOn": "rp__swA3a_drawerItemOn",
13546
- "drawerItem": "rp__swA3a_drawerItem"
13546
+ "drawer": "rp__swA3a_drawer"
13547
13547
  };
13548
13548
  // src/client/world-editor/WorldEditor.tsx
13549
13549
  const SECTIONS = [
@@ -13957,27 +13957,27 @@ window.__ModuleLoader__.load({
13957
13957
  }
13958
13958
  tag$32.textContent = css$32;
13959
13959
  var AvatarsPage_module_css_default = {
13960
+ "field": "rp_pQOzEG_field",
13961
+ "label": "rp_pQOzEG_label",
13962
+ "toolbar": "rp_pQOzEG_toolbar",
13963
+ "open": "rp_pQOzEG_open",
13964
+ "portrait": "rp_pQOzEG_portrait",
13965
+ "count": "rp_pQOzEG_count",
13966
+ "name": "rp_pQOzEG_name",
13967
+ "message": "rp_pQOzEG_message",
13960
13968
  "editHeader": "rp_pQOzEG_editHeader",
13969
+ "form": "rp_pQOzEG_form",
13970
+ "placeholder": "rp_pQOzEG_placeholder",
13971
+ "summary": "rp_pQOzEG_summary",
13961
13972
  "actions": "rp_pQOzEG_actions",
13973
+ "text": "rp_pQOzEG_text",
13962
13974
  "editBody": "rp_pQOzEG_editBody",
13963
- "count": "rp_pQOzEG_count",
13964
- "page": "rp_pQOzEG_page",
13965
- "message": "rp_pQOzEG_message",
13966
- "editTitle": "rp_pQOzEG_editTitle",
13967
13975
  "error": "rp_pQOzEG_error",
13968
- "field": "rp_pQOzEG_field",
13969
- "name": "rp_pQOzEG_name",
13970
- "summary": "rp_pQOzEG_summary",
13971
- "placeholder": "rp_pQOzEG_placeholder",
13976
+ "page": "rp_pQOzEG_page",
13972
13977
  "viewport": "rp_pQOzEG_viewport",
13973
- "open": "rp_pQOzEG_open",
13974
- "text": "rp_pQOzEG_text",
13975
- "toolbar": "rp_pQOzEG_toolbar",
13976
- "label": "rp_pQOzEG_label",
13977
13978
  "grid": "rp_pQOzEG_grid",
13978
13979
  "card": "rp_pQOzEG_card",
13979
- "form": "rp_pQOzEG_form",
13980
- "portrait": "rp_pQOzEG_portrait"
13980
+ "editTitle": "rp_pQOzEG_editTitle"
13981
13981
  };
13982
13982
  // src/client/pages/avatars/AvatarsPage.tsx
13983
13983
  const hueOf$2 = (name) => Array.from(name).reduce((hash, char) => (hash * 31 + char.charCodeAt(0)) % 360, 0);
@@ -19249,37 +19249,37 @@ window.__ModuleLoader__.load({
19249
19249
  }
19250
19250
  tag$31.textContent = css$31;
19251
19251
  var LorebooksPage_module_css_default = {
19252
+ "viewport": "rp_VV-Eha_viewport",
19253
+ "help": "rp_VV-Eha_help",
19252
19254
  "editHeader": "rp_VV-Eha_editHeader",
19253
- "name": "rp_VV-Eha_name",
19254
- "select": "rp_VV-Eha_select",
19255
- "message": "rp_VV-Eha_message",
19256
19255
  "editTitle": "rp_VV-Eha_editTitle",
19257
- "title": "rp_VV-Eha_title",
19258
- "grid": "rp_VV-Eha_grid",
19259
- "section": "rp_VV-Eha_section",
19260
- "viewport": "rp_VV-Eha_viewport",
19261
- "count": "rp_VV-Eha_count",
19262
- "card": "rp_VV-Eha_card",
19263
19256
  "warning": "rp_VV-Eha_warning",
19257
+ "name": "rp_VV-Eha_name",
19258
+ "input": "rp_VV-Eha_input",
19264
19259
  "label": "rp_VV-Eha_label",
19265
- "actions": "rp_VV-Eha_actions",
19266
- "toolbar": "rp_VV-Eha_toolbar",
19260
+ "card": "rp_VV-Eha_card",
19261
+ "error": "rp_VV-Eha_error",
19262
+ "cardActions": "rp_VV-Eha_cardActions",
19263
+ "message": "rp_VV-Eha_message",
19267
19264
  "meta": "rp_VV-Eha_meta",
19268
- "ok": "rp_VV-Eha_ok",
19269
- "input": "rp_VV-Eha_input",
19270
- "entryArea": "rp_VV-Eha_entryArea",
19271
- "editBody": "rp_VV-Eha_editBody",
19272
- "row": "rp_VV-Eha_row",
19273
19265
  "field": "rp_VV-Eha_field",
19274
- "page": "rp_VV-Eha_page",
19275
- "help": "rp_VV-Eha_help",
19276
- "form": "rp_VV-Eha_form",
19277
- "cardActions": "rp_VV-Eha_cardActions",
19278
19266
  "area": "rp_VV-Eha_area",
19279
- "error": "rp_VV-Eha_error",
19280
- "description": "rp_VV-Eha_description",
19267
+ "entryArea": "rp_VV-Eha_entryArea",
19268
+ "grid": "rp_VV-Eha_grid",
19269
+ "section": "rp_VV-Eha_section",
19281
19270
  "sectionTitle": "rp_VV-Eha_sectionTitle",
19282
- "head": "rp_VV-Eha_head"
19271
+ "page": "rp_VV-Eha_page",
19272
+ "head": "rp_VV-Eha_head",
19273
+ "row": "rp_VV-Eha_row",
19274
+ "ok": "rp_VV-Eha_ok",
19275
+ "select": "rp_VV-Eha_select",
19276
+ "editBody": "rp_VV-Eha_editBody",
19277
+ "description": "rp_VV-Eha_description",
19278
+ "toolbar": "rp_VV-Eha_toolbar",
19279
+ "form": "rp_VV-Eha_form",
19280
+ "actions": "rp_VV-Eha_actions",
19281
+ "title": "rp_VV-Eha_title",
19282
+ "count": "rp_VV-Eha_count"
19283
19283
  };
19284
19284
  // src/client/pages/lorebooks/LorebookEditor.tsx
19285
19285
  const messageOf$9 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -20781,35 +20781,35 @@ window.__ModuleLoader__.load({
20781
20781
  }
20782
20782
  tag$30.textContent = css$30;
20783
20783
  var PresetsPage_module_css_default = {
20784
- "page": "rp_ZK89ba_page",
20784
+ "section": "rp_ZK89ba_section",
20785
+ "error": "rp_ZK89ba_error",
20786
+ "label": "rp_ZK89ba_label",
20787
+ "warning": "rp_ZK89ba_warning",
20788
+ "message": "rp_ZK89ba_message",
20789
+ "area": "rp_ZK89ba_area",
20790
+ "viewport": "rp_ZK89ba_viewport",
20791
+ "ok": "rp_ZK89ba_ok",
20792
+ "title": "rp_ZK89ba_title",
20793
+ "description": "rp_ZK89ba_description",
20785
20794
  "grid": "rp_ZK89ba_grid",
20795
+ "card": "rp_ZK89ba_card",
20786
20796
  "head": "rp_ZK89ba_head",
20787
- "editTitle": "rp_ZK89ba_editTitle",
20788
20797
  "name": "rp_ZK89ba_name",
20789
- "section": "rp_ZK89ba_section",
20790
20798
  "sectionTitle": "rp_ZK89ba_sectionTitle",
20791
- "card": "rp_ZK89ba_card",
20792
- "ok": "rp_ZK89ba_ok",
20793
- "title": "rp_ZK89ba_title",
20794
- "help": "rp_ZK89ba_help",
20795
- "meta": "rp_ZK89ba_meta",
20796
- "cardActions": "rp_ZK89ba_cardActions",
20799
+ "editHeader": "rp_ZK89ba_editHeader",
20797
20800
  "row": "rp_ZK89ba_row",
20798
- "editBody": "rp_ZK89ba_editBody",
20799
- "viewport": "rp_ZK89ba_viewport",
20800
- "area": "rp_ZK89ba_area",
20801
- "form": "rp_ZK89ba_form",
20802
- "input": "rp_ZK89ba_input",
20803
- "message": "rp_ZK89ba_message",
20804
20801
  "toolbar": "rp_ZK89ba_toolbar",
20805
- "count": "rp_ZK89ba_count",
20806
- "description": "rp_ZK89ba_description",
20802
+ "editBody": "rp_ZK89ba_editBody",
20807
20803
  "actions": "rp_ZK89ba_actions",
20808
- "error": "rp_ZK89ba_error",
20809
- "warning": "rp_ZK89ba_warning",
20810
- "editHeader": "rp_ZK89ba_editHeader",
20804
+ "count": "rp_ZK89ba_count",
20805
+ "page": "rp_ZK89ba_page",
20806
+ "meta": "rp_ZK89ba_meta",
20807
+ "input": "rp_ZK89ba_input",
20808
+ "help": "rp_ZK89ba_help",
20811
20809
  "field": "rp_ZK89ba_field",
20812
- "label": "rp_ZK89ba_label"
20810
+ "form": "rp_ZK89ba_form",
20811
+ "editTitle": "rp_ZK89ba_editTitle",
20812
+ "cardActions": "rp_ZK89ba_cardActions"
20813
20813
  };
20814
20814
  // src/client/pages/presets/PresetEditor.tsx
20815
20815
  const messageOf$6 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -22298,34 +22298,34 @@ window.__ModuleLoader__.load({
22298
22298
  }
22299
22299
  tag$29.textContent = css$29;
22300
22300
  var PromptsPage_module_css_default = {
22301
- "area": "rp_DLg_5G_area",
22302
- "panes": "rp_DLg_5G_panes",
22303
- "toolbar": "rp_DLg_5G_toolbar",
22304
- "list": "rp_DLg_5G_list",
22305
- "shipped": "rp_DLg_5G_shipped",
22306
- "rowLanguage": "rp_DLg_5G_rowLanguage",
22307
- "viewport": "rp_DLg_5G_viewport",
22308
- "pane": "rp_DLg_5G_pane",
22309
22301
  "sign": "rp_DLg_5G_sign",
22310
- "count": "rp_DLg_5G_count",
22311
- "rowName": "rp_DLg_5G_rowName",
22312
- "warning": "rp_DLg_5G_warning",
22313
- "line": "rp_DLg_5G_line",
22314
- "group": "rp_DLg_5G_group",
22315
22302
  "check": "rp_DLg_5G_check",
22316
- "missing": "rp_DLg_5G_missing",
22317
- "label": "rp_DLg_5G_label",
22318
- "editHeader": "rp_DLg_5G_editHeader",
22319
- "page": "rp_DLg_5G_page",
22320
- "message": "rp_DLg_5G_message",
22303
+ "editTitle": "rp_DLg_5G_editTitle",
22304
+ "viewport": "rp_DLg_5G_viewport",
22321
22305
  "ok": "rp_DLg_5G_ok",
22306
+ "message": "rp_DLg_5G_message",
22322
22307
  "help": "rp_DLg_5G_help",
22323
- "editTitle": "rp_DLg_5G_editTitle",
22308
+ "count": "rp_DLg_5G_count",
22324
22309
  "editBody": "rp_DLg_5G_editBody",
22310
+ "actions": "rp_DLg_5G_actions",
22311
+ "toolbar": "rp_DLg_5G_toolbar",
22312
+ "label": "rp_DLg_5G_label",
22313
+ "list": "rp_DLg_5G_list",
22314
+ "editHeader": "rp_DLg_5G_editHeader",
22325
22315
  "spacer": "rp_DLg_5G_spacer",
22316
+ "page": "rp_DLg_5G_page",
22317
+ "group": "rp_DLg_5G_group",
22318
+ "warning": "rp_DLg_5G_warning",
22319
+ "pane": "rp_DLg_5G_pane",
22326
22320
  "row": "rp_DLg_5G_row",
22327
- "actions": "rp_DLg_5G_actions",
22328
- "error": "rp_DLg_5G_error"
22321
+ "panes": "rp_DLg_5G_panes",
22322
+ "shipped": "rp_DLg_5G_shipped",
22323
+ "line": "rp_DLg_5G_line",
22324
+ "rowLanguage": "rp_DLg_5G_rowLanguage",
22325
+ "missing": "rp_DLg_5G_missing",
22326
+ "error": "rp_DLg_5G_error",
22327
+ "area": "rp_DLg_5G_area",
22328
+ "rowName": "rp_DLg_5G_rowName"
22329
22329
  };
22330
22330
  // src/client/pages/prompts/PromptEditor.tsx
22331
22331
  const messageOf$3 = (failure) => failure instanceof Error ? failure.message : String(failure);
@@ -23115,8 +23115,8 @@ window.__ModuleLoader__.load({
23115
23115
  }
23116
23116
  tag$28.textContent = css$28;
23117
23117
  var Pager_module_css_default = {
23118
- "pager": "rp_KBAD0W_pager",
23119
- "position": "rp_KBAD0W_position"
23118
+ "position": "rp_KBAD0W_position",
23119
+ "pager": "rp_KBAD0W_pager"
23120
23120
  };
23121
23121
  // src/client/widgets/pager/Pager.tsx
23122
23122
  /** Previous and next buttons around the current position; the owner supplies every label. */
@@ -23185,11 +23185,11 @@ window.__ModuleLoader__.load({
23185
23185
  }
23186
23186
  tag$26.textContent = css$26;
23187
23187
  var DeleteSessionDialog_module_css_default = {
23188
+ "choice": "rp_FifHrW_choice",
23188
23189
  "error": "rp_FifHrW_error",
23189
23190
  "body": "rp_FifHrW_body",
23190
- "question": "rp_FifHrW_question",
23191
23191
  "warning": "rp_FifHrW_warning",
23192
- "choice": "rp_FifHrW_choice"
23192
+ "question": "rp_FifHrW_question"
23193
23193
  };
23194
23194
  // src/client/pages/sessions/DeleteSessionDialog.tsx
23195
23195
  /** Asks for confirmation before a session and everything saved with it is removed. */
@@ -23713,28 +23713,28 @@ window.__ModuleLoader__.load({
23713
23713
  }
23714
23714
  tag$25.textContent = css$25;
23715
23715
  var SessionsPage_module_css_default = {
23716
- "secondary": "rp_24z4eW_secondary",
23717
- "toolbar": "rp_24z4eW_toolbar",
23718
- "message": "rp_24z4eW_message",
23719
- "fits": "rp_24z4eW_fits",
23720
- "viewport": "rp_24z4eW_viewport",
23721
- "scrolls": "rp_24z4eW_scrolls",
23722
- "spinning": "rp_24z4eW_spinning",
23723
23716
  "turnsColumn": "rp_24z4eW_turnsColumn",
23717
+ "table": "rp_24z4eW_table",
23724
23718
  "name": "rp_24z4eW_name",
23725
- "count": "rp_24z4eW_count",
23726
- "worldColumn": "rp_24z4eW_worldColumn",
23727
- "archived": "rp_24z4eW_archived",
23728
- "page": "rp_24z4eW_page",
23729
- "actionsColumn": "rp_24z4eW_actionsColumn",
23730
- "actions": "rp_24z4eW_actions",
23719
+ "message": "rp_24z4eW_message",
23731
23720
  "number": "rp_24z4eW_number",
23732
- "table": "rp_24z4eW_table",
23721
+ "scrolls": "rp_24z4eW_scrolls",
23722
+ "actions": "rp_24z4eW_actions",
23733
23723
  "notice": "rp_24z4eW_notice",
23734
- "spin": "rp_24z4eW_spin",
23724
+ "fits": "rp_24z4eW_fits",
23735
23725
  "timeColumn": "rp_24z4eW_timeColumn",
23726
+ "count": "rp_24z4eW_count",
23727
+ "worldColumn": "rp_24z4eW_worldColumn",
23728
+ "actionsColumn": "rp_24z4eW_actionsColumn",
23736
23729
  "nameColumn": "rp_24z4eW_nameColumn",
23737
- "badge": "rp_24z4eW_badge"
23730
+ "page": "rp_24z4eW_page",
23731
+ "spinning": "rp_24z4eW_spinning",
23732
+ "spin": "rp_24z4eW_spin",
23733
+ "secondary": "rp_24z4eW_secondary",
23734
+ "badge": "rp_24z4eW_badge",
23735
+ "viewport": "rp_24z4eW_viewport",
23736
+ "archived": "rp_24z4eW_archived",
23737
+ "toolbar": "rp_24z4eW_toolbar"
23738
23738
  };
23739
23739
  // src/client/pages/sessions/SessionsPage.tsx
23740
23740
  /** The sessions as a table, one page at a time, the most recently played first. */
@@ -24473,29 +24473,29 @@ window.__ModuleLoader__.load({
24473
24473
  }
24474
24474
  tag$24.textContent = css$24;
24475
24475
  var SyncPage_module_css_default = {
24476
- "detail": "rp_Gk-byG_detail",
24477
- "unit": "rp_Gk-byG_unit",
24478
- "failed": "rp_Gk-byG_failed",
24479
- "error": "rp_Gk-byG_error",
24480
- "problem": "rp_Gk-byG_problem",
24481
- "conflict": "rp_Gk-byG_conflict",
24482
- "message": "rp_Gk-byG_message",
24476
+ "page": "rp_Gk-byG_page",
24483
24477
  "choices": "rp_Gk-byG_choices",
24484
- "syncedColumn": "rp_Gk-byG_syncedColumn",
24485
- "caption": "rp_Gk-byG_caption",
24486
- "viewport": "rp_Gk-byG_viewport",
24478
+ "detailsColumn": "rp_Gk-byG_detailsColumn",
24479
+ "table": "rp_Gk-byG_table",
24480
+ "actions": "rp_Gk-byG_actions",
24487
24481
  "kindColumn": "rp_Gk-byG_kindColumn",
24488
24482
  "stateColumn": "rp_Gk-byG_stateColumn",
24489
- "toolbar": "rp_Gk-byG_toolbar",
24490
- "page": "rp_Gk-byG_page",
24483
+ "conflict": "rp_Gk-byG_conflict",
24484
+ "actionHeading": "rp_Gk-byG_actionHeading",
24485
+ "unit": "rp_Gk-byG_unit",
24486
+ "failed": "rp_Gk-byG_failed",
24487
+ "message": "rp_Gk-byG_message",
24488
+ "detail": "rp_Gk-byG_detail",
24491
24489
  "meta": "rp_Gk-byG_meta",
24492
- "confirmation": "rp_Gk-byG_confirmation",
24493
- "actions": "rp_Gk-byG_actions",
24494
24490
  "actionsColumn": "rp_Gk-byG_actionsColumn",
24491
+ "syncedColumn": "rp_Gk-byG_syncedColumn",
24495
24492
  "unitColumn": "rp_Gk-byG_unitColumn",
24496
- "actionHeading": "rp_Gk-byG_actionHeading",
24497
- "detailsColumn": "rp_Gk-byG_detailsColumn",
24498
- "table": "rp_Gk-byG_table"
24493
+ "caption": "rp_Gk-byG_caption",
24494
+ "error": "rp_Gk-byG_error",
24495
+ "confirmation": "rp_Gk-byG_confirmation",
24496
+ "toolbar": "rp_Gk-byG_toolbar",
24497
+ "viewport": "rp_Gk-byG_viewport",
24498
+ "problem": "rp_Gk-byG_problem"
24499
24499
  };
24500
24500
  // src/client/pages/sync/SyncPage.tsx
24501
24501
  const when = (iso, never, locale) => iso === void 0 ? never : new Date(iso).toLocaleString(locale);
@@ -25320,14 +25320,14 @@ window.__ModuleLoader__.load({
25320
25320
  }
25321
25321
  tag$23.textContent = css$23;
25322
25322
  var Toast_module_css_default = {
25323
- "text": "rp_jnVj9q_text",
25324
- "rpToastEnter": "rp_jnVj9q_rpToastEnter",
25325
25323
  "actionButton": "rp_jnVj9q_actionButton",
25324
+ "success": "rp_jnVj9q_success",
25325
+ "prefix": "rp_jnVj9q_prefix",
25326
+ "rpToastEnter": "rp_jnVj9q_rpToastEnter",
25326
25327
  "action": "rp_jnVj9q_action",
25327
- "fading": "rp_jnVj9q_fading",
25328
25328
  "banner": "rp_jnVj9q_banner",
25329
- "success": "rp_jnVj9q_success",
25330
- "prefix": "rp_jnVj9q_prefix"
25329
+ "fading": "rp_jnVj9q_fading",
25330
+ "text": "rp_jnVj9q_text"
25331
25331
  };
25332
25332
  // src/client/ui/Toast.tsx
25333
25333
  const FADE_MS = 200;
@@ -25396,16 +25396,16 @@ window.__ModuleLoader__.load({
25396
25396
  }
25397
25397
  tag$22.textContent = css$22;
25398
25398
  var WorldCard_module_css_default = {
25399
- "tags": "rp_Bvxx5q_tags",
25400
- "info": "rp_Bvxx5q_info",
25401
- "cover": "rp_Bvxx5q_cover",
25399
+ "play": "rp_Bvxx5q_play",
25402
25400
  "name": "rp_Bvxx5q_name",
25403
- "openButton": "rp_Bvxx5q_openButton",
25404
25401
  "card": "rp_Bvxx5q_card",
25405
- "placeholder": "rp_Bvxx5q_placeholder",
25406
- "play": "rp_Bvxx5q_play",
25407
25402
  "image": "rp_Bvxx5q_image",
25408
- "tag": "rp_Bvxx5q_tag"
25403
+ "info": "rp_Bvxx5q_info",
25404
+ "cover": "rp_Bvxx5q_cover",
25405
+ "tags": "rp_Bvxx5q_tags",
25406
+ "tag": "rp_Bvxx5q_tag",
25407
+ "openButton": "rp_Bvxx5q_openButton",
25408
+ "placeholder": "rp_Bvxx5q_placeholder"
25409
25409
  };
25410
25410
  // src/client/widgets/world-card/WorldCard.tsx
25411
25411
  /** Stable hue per name, so a world without a cover keeps the same colour. */
@@ -25502,10 +25502,10 @@ window.__ModuleLoader__.load({
25502
25502
  }
25503
25503
  tag$21.textContent = css$21;
25504
25504
  var AvatarChoices_module_css_default = {
25505
- "summary": "rp_YCstOG_summary",
25506
25505
  "option": "rp_YCstOG_option",
25506
+ "name": "rp_YCstOG_name",
25507
25507
  "text": "rp_YCstOG_text",
25508
- "name": "rp_YCstOG_name"
25508
+ "summary": "rp_YCstOG_summary"
25509
25509
  };
25510
25510
  // src/client/widgets/avatar-choices/AvatarChoices.tsx
25511
25511
  /** A list of avatars to tick: the ones brought into a world or a session. */
@@ -25543,18 +25543,18 @@ window.__ModuleLoader__.load({
25543
25543
  }
25544
25544
  tag$20.textContent = css$20;
25545
25545
  var StartSessionDialog_module_css_default = {
25546
- "error": "rp_AnbLKG_error",
25547
- "advancedBody": "rp_AnbLKG_advancedBody",
25548
- "label": "rp_AnbLKG_label",
25549
- "optionName": "rp_AnbLKG_optionName",
25550
- "advancedToggle": "rp_AnbLKG_advancedToggle",
25551
- "field": "rp_AnbLKG_field",
25552
- "option": "rp_AnbLKG_option",
25553
- "advanced": "rp_AnbLKG_advanced",
25554
- "form": "rp_AnbLKG_form",
25555
25546
  "optionText": "rp_AnbLKG_optionText",
25556
25547
  "optionSummary": "rp_AnbLKG_optionSummary",
25557
- "message": "rp_AnbLKG_message"
25548
+ "label": "rp_AnbLKG_label",
25549
+ "advancedBody": "rp_AnbLKG_advancedBody",
25550
+ "message": "rp_AnbLKG_message",
25551
+ "advanced": "rp_AnbLKG_advanced",
25552
+ "option": "rp_AnbLKG_option",
25553
+ "field": "rp_AnbLKG_field",
25554
+ "error": "rp_AnbLKG_error",
25555
+ "advancedToggle": "rp_AnbLKG_advancedToggle",
25556
+ "optionName": "rp_AnbLKG_optionName",
25557
+ "form": "rp_AnbLKG_form"
25558
25558
  };
25559
25559
  // src/client/pages/worlds/AddAvatarsDialog.tsx
25560
25560
  /** Asks which avatars become characters of a world's own files. */
@@ -26874,13 +26874,8 @@ window.__ModuleLoader__.load({
26874
26874
  }
26875
26875
  return next;
26876
26876
  }
26877
- // ../../node_modules/.pnpm/@dsh-ai-providers+core@0.7.0_@deepseek-ai+cordis@4.1.0_@deepseek-ai+dsh-llm@0.2.2-rc.1_@deepseek-ai+cordis@4.1.0_/node_modules/@dsh-ai-providers/core/lib/index.js
26878
- /**
26879
- * The browser API of the main plugin, which the UI of the main plugin and of every vendor plugin
26880
- * uses. Paths are relative to the prefix, and the browser calls them with relative URLs so that a
26881
- * mounted deployment works.
26882
- */
26883
- const AI_API_PREFIX = "ai-api";
26877
+ /** What the browser prepends to a route: absolute, so a mounted deployment resolves it against the origin. */
26878
+ const AI_API_PREFIX = `/api/ai-api`;
26884
26879
  const AI_API_ROUTES = {
26885
26880
  capabilities: "/capabilities",
26886
26881
  credentials: "/credentials",
@@ -26934,9 +26929,9 @@ window.__ModuleLoader__.load({
26934
26929
  }
26935
26930
  tag$19.textContent = css$19;
26936
26931
  var SegmentedControl_module_css_default = {
26937
- "rpTab": "rp_wN4Tqa_rpTab",
26932
+ "rpIndicator": "rp_wN4Tqa_rpIndicator",
26938
26933
  "rpControl": "rp_wN4Tqa_rpControl",
26939
- "rpIndicator": "rp_wN4Tqa_rpIndicator"
26934
+ "rpTab": "rp_wN4Tqa_rpTab"
26940
26935
  };
26941
26936
  // src/client/ui/walk.ts
26942
26937
  /** Whether a key moves the selection inside a tablist. */
@@ -27029,15 +27024,15 @@ window.__ModuleLoader__.load({
27029
27024
  }
27030
27025
  tag$18.textContent = css$18;
27031
27026
  var SettingsFields_module_css_default = {
27032
- "row": "rp_Rhi3yq_row",
27027
+ "area": "rp_Rhi3yq_area",
27033
27028
  "choiceField": "rp_Rhi3yq_choiceField",
27034
27029
  "label": "rp_Rhi3yq_label",
27035
27030
  "help": "rp_Rhi3yq_help",
27036
- "groupTitle": "rp_Rhi3yq_groupTitle",
27037
- "field": "rp_Rhi3yq_field",
27038
27031
  "error": "rp_Rhi3yq_error",
27039
27032
  "group": "rp_Rhi3yq_group",
27040
- "area": "rp_Rhi3yq_area"
27033
+ "field": "rp_Rhi3yq_field",
27034
+ "groupTitle": "rp_Rhi3yq_groupTitle",
27035
+ "row": "rp_Rhi3yq_row"
27041
27036
  };
27042
27037
  // src/client/settings-form/SettingsFields.tsx
27043
27038
  /** The settings of a chat as editable fields: one control with its explanation under each. */
@@ -27343,10 +27338,10 @@ window.__ModuleLoader__.load({
27343
27338
  }
27344
27339
  tag$17.textContent = css$17;
27345
27340
  var TranslateBanner_module_css_default = {
27346
- "error": "rp_Lx8vJa_error",
27341
+ "banner": "rp_Lx8vJa_banner",
27347
27342
  "bannerActions": "rp_Lx8vJa_bannerActions",
27348
- "text": "rp_Lx8vJa_text",
27349
- "banner": "rp_Lx8vJa_banner"
27343
+ "error": "rp_Lx8vJa_error",
27344
+ "text": "rp_Lx8vJa_text"
27350
27345
  };
27351
27346
  // src/client/pages/worlds/TranslateBanner.tsx
27352
27347
  /** A language by name in the person's own language; the two the plugin has texts for use them, any other is named by the browser. */
@@ -27986,26 +27981,26 @@ window.__ModuleLoader__.load({
27986
27981
  }
27987
27982
  tag$16.textContent = css$16;
27988
27983
  var WorldsPage_module_css_default = {
27989
- "spinning": "rp_FHUyRq_spinning",
27990
- "editTitle": "rp_FHUyRq_editTitle",
27991
- "toolbar": "rp_FHUyRq_toolbar",
27992
- "message": "rp_FHUyRq_message",
27984
+ "notice": "rp_FHUyRq_notice",
27985
+ "spin": "rp_FHUyRq_spin",
27993
27986
  "editActions": "rp_FHUyRq_editActions",
27987
+ "editBody": "rp_FHUyRq_editBody",
27988
+ "editHeader": "rp_FHUyRq_editHeader",
27989
+ "starter": "rp_FHUyRq_starter",
27990
+ "message": "rp_FHUyRq_message",
27994
27991
  "count": "rp_FHUyRq_count",
27995
- "spin": "rp_FHUyRq_spin",
27992
+ "spinning": "rp_FHUyRq_spinning",
27993
+ "page": "rp_FHUyRq_page",
27996
27994
  "info": "rp_FHUyRq_info",
27995
+ "toolbar": "rp_FHUyRq_toolbar",
27997
27996
  "starters": "rp_FHUyRq_starters",
27998
- "grid": "rp_FHUyRq_grid",
27999
- "notice": "rp_FHUyRq_notice",
28000
- "page": "rp_FHUyRq_page",
28001
- "viewport": "rp_FHUyRq_viewport",
28002
- "cell": "rp_FHUyRq_cell",
28003
27997
  "toolbarActions": "rp_FHUyRq_toolbarActions",
28004
- "editBody": "rp_FHUyRq_editBody",
28005
27998
  "scrolls": "rp_FHUyRq_scrolls",
28006
- "starter": "rp_FHUyRq_starter",
28007
- "editHeader": "rp_FHUyRq_editHeader",
28008
- "fits": "rp_FHUyRq_fits"
27999
+ "editTitle": "rp_FHUyRq_editTitle",
28000
+ "grid": "rp_FHUyRq_grid",
28001
+ "cell": "rp_FHUyRq_cell",
28002
+ "fits": "rp_FHUyRq_fits",
28003
+ "viewport": "rp_FHUyRq_viewport"
28009
28004
  };
28010
28005
  // src/client/pages/worlds/StarterWorlds.tsx
28011
28006
  /** The worlds that ship with the plugin and are not yet the person's, offered where the list of worlds is empty. */
@@ -32639,7 +32634,20 @@ window.__ModuleLoader__.load({
32639
32634
  look();
32640
32635
  return list.subscribe(look);
32641
32636
  }
32637
+ /** Follows the branches the transcript's Branch control makes: DSH's fork no longer says which chat it came from, so the control says so. */
32638
+ listen() {
32639
+ const heard = (event) => {
32640
+ const chat = event.detail?.chat;
32641
+ if (typeof chat === "string" && roleplaySessionOf(chat) !== void 0) this.ask(chat);
32642
+ };
32643
+ const page = globalThis.window;
32644
+ page?.addEventListener("roleplay:branched", heard);
32645
+ return () => {
32646
+ page?.removeEventListener("roleplay:branched", heard);
32647
+ };
32648
+ }
32642
32649
  async ask(chat) {
32650
+ if (this.store.getSnapshot().pending !== void 0) return;
32643
32651
  const response = await fetch(`${API_PREFIX}/sessions`);
32644
32652
  if (!response.ok) return;
32645
32653
  const session = (await response.json()).sessions.find((candidate) => candidate.chatSessionId === chat);
@@ -32690,10 +32698,10 @@ window.__ModuleLoader__.load({
32690
32698
  }
32691
32699
  tag$15.textContent = css$15;
32692
32700
  var BranchDialog_module_css_default = {
32693
- "label": "rp_Dy1TaW_label",
32701
+ "form": "rp_Dy1TaW_form",
32694
32702
  "field": "rp_Dy1TaW_field",
32695
- "error": "rp_Dy1TaW_error",
32696
- "form": "rp_Dy1TaW_form"
32703
+ "label": "rp_Dy1TaW_label",
32704
+ "error": "rp_Dy1TaW_error"
32697
32705
  };
32698
32706
  // src/client/branch/BranchDialog.tsx
32699
32707
  /** Asks for the name of a session that was just branched off another. */
@@ -32848,6 +32856,7 @@ window.__ModuleLoader__.load({
32848
32856
  function registerBranchNaming(ctx) {
32849
32857
  ctx.effect(() => ctx.locale.register(NAMESPACE$8, dictionaries$7), "roleplay: branch dictionaries");
32850
32858
  const branches = new BranchController();
32859
+ ctx.effect(() => branches.listen(), "roleplay: branch listener");
32851
32860
  ctx.inject(["sessions"], (inner) => {
32852
32861
  const sessions = inner.get("sessions");
32853
32862
  if (sessions !== void 0) inner.effect(() => branches.watch(sessions.list), "roleplay: branch watch");
@@ -32871,12 +32880,12 @@ window.__ModuleLoader__.load({
32871
32880
  }
32872
32881
  tag$14.textContent = css$14;
32873
32882
  var SidebarGuideEntry_module_css_default = {
32874
- "text": "rp_Okaj1q_text",
32875
- "icon": "rp_Okaj1q_icon",
32876
32883
  "description": "rp_Okaj1q_description",
32877
- "main": "rp_Okaj1q_main",
32878
32884
  "entry": "rp_Okaj1q_entry",
32879
- "title": "rp_Okaj1q_title"
32885
+ "main": "rp_Okaj1q_main",
32886
+ "text": "rp_Okaj1q_text",
32887
+ "title": "rp_Okaj1q_title",
32888
+ "icon": "rp_Okaj1q_icon"
32880
32889
  };
32881
32890
  // src/client/widgets/sidebar-guide/SidebarGuideEntry.tsx
32882
32891
  /** A card of the right sidebar's new-tab guide, drawn like DSH's own entries. */
@@ -33342,17 +33351,17 @@ window.__ModuleLoader__.load({
33342
33351
  }
33343
33352
  tag$12.textContent = css$12;
33344
33353
  var SidebarPage_module_css_default = {
33354
+ "message": "rp_Ptco8a_message",
33355
+ "main": "rp_Ptco8a_main",
33356
+ "title": "rp_Ptco8a_title",
33345
33357
  "content": "rp_Ptco8a_content",
33346
- "page": "rp_Ptco8a_page",
33358
+ "entry": "rp_Ptco8a_entry",
33359
+ "description": "rp_Ptco8a_description",
33347
33360
  "name": "rp_Ptco8a_name",
33361
+ "page": "rp_Ptco8a_page",
33348
33362
  "bar": "rp_Ptco8a_bar",
33349
- "title": "rp_Ptco8a_title",
33350
- "description": "rp_Ptco8a_description",
33351
- "entry": "rp_Ptco8a_entry",
33352
- "text": "rp_Ptco8a_text",
33353
- "message": "rp_Ptco8a_message",
33354
33363
  "icon": "rp_Ptco8a_icon",
33355
- "main": "rp_Ptco8a_main"
33364
+ "text": "rp_Ptco8a_text"
33356
33365
  };
33357
33366
  // src/client/interface/SidebarPage.tsx
33358
33367
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -33981,24 +33990,24 @@ window.__ModuleLoader__.load({
33981
33990
  }
33982
33991
  tag$11.textContent = css$11;
33983
33992
  var RecallTab_module_css_default = {
33984
- "form": "rp_jl9CIq_form",
33985
- "list": "rp_jl9CIq_list",
33993
+ "error": "rp_jl9CIq_error",
33986
33994
  "item": "rp_jl9CIq_item",
33995
+ "page": "rp_jl9CIq_page",
33987
33996
  "hint": "rp_jl9CIq_hint",
33988
- "area": "rp_jl9CIq_area",
33989
33997
  "actions": "rp_jl9CIq_actions",
33990
- "heading": "rp_jl9CIq_heading",
33991
- "place": "rp_jl9CIq_place",
33992
- "body": "rp_jl9CIq_body",
33993
- "label": "rp_jl9CIq_label",
33994
33998
  "bar": "rp_jl9CIq_bar",
33995
- "page": "rp_jl9CIq_page",
33996
- "name": "rp_jl9CIq_name",
33997
- "field": "rp_jl9CIq_field",
33998
33999
  "meta": "rp_jl9CIq_meta",
33999
- "error": "rp_jl9CIq_error",
34000
+ "list": "rp_jl9CIq_list",
34001
+ "body": "rp_jl9CIq_body",
34002
+ "field": "rp_jl9CIq_field",
34003
+ "label": "rp_jl9CIq_label",
34004
+ "form": "rp_jl9CIq_form",
34005
+ "note": "rp_jl9CIq_note",
34000
34006
  "person": "rp_jl9CIq_person",
34001
- "note": "rp_jl9CIq_note"
34007
+ "area": "rp_jl9CIq_area",
34008
+ "heading": "rp_jl9CIq_heading",
34009
+ "place": "rp_jl9CIq_place",
34010
+ "name": "rp_jl9CIq_name"
34002
34011
  };
34003
34012
  // src/client/recall/RecallTab.tsx
34004
34013
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34855,10 +34864,10 @@ window.__ModuleLoader__.load({
34855
34864
  tag$10.textContent = css$10;
34856
34865
  var ReferenceTab_module_css_default = {
34857
34866
  "page": "rp_7BGO2a_page",
34858
- "bar": "rp_7BGO2a_bar",
34859
- "nav": "rp_7BGO2a_nav",
34860
34867
  "body": "rp_7BGO2a_body",
34861
- "message": "rp_7BGO2a_message"
34868
+ "message": "rp_7BGO2a_message",
34869
+ "nav": "rp_7BGO2a_nav",
34870
+ "bar": "rp_7BGO2a_bar"
34862
34871
  };
34863
34872
  // src/client/reference/ReferenceTab.tsx
34864
34873
  /** The kind of the tab type, and the identity it registers its card and body under. */
@@ -34978,29 +34987,29 @@ window.__ModuleLoader__.load({
34978
34987
  }
34979
34988
  tag$9.textContent = css$9;
34980
34989
  var Page_module_css_default = {
34981
- "link": "rp_bG1sCa_link",
34982
- "head": "rp_bG1sCa_head",
34983
- "text": "rp_bG1sCa_text",
34984
- "heading": "rp_bG1sCa_heading",
34985
- "place": "rp_bG1sCa_place",
34986
- "edgeLabel": "rp_bG1sCa_edgeLabel",
34987
- "journal": "rp_bG1sCa_journal",
34988
- "name": "rp_bG1sCa_name",
34989
- "closedWay": "rp_bG1sCa_closedWay",
34990
- "here": "rp_bG1sCa_here",
34991
- "title": "rp_bG1sCa_title",
34992
34990
  "meta": "rp_bG1sCa_meta",
34993
- "map": "rp_bG1sCa_map",
34994
- "entry": "rp_bG1sCa_entry",
34995
- "way": "rp_bG1sCa_way",
34991
+ "edgeLabel": "rp_bG1sCa_edgeLabel",
34996
34992
  "list": "rp_bG1sCa_list",
34997
- "placeName": "rp_bG1sCa_placeName",
34998
- "sub": "rp_bG1sCa_sub",
34999
34993
  "block": "rp_bG1sCa_block",
34994
+ "here": "rp_bG1sCa_here",
34995
+ "placeName": "rp_bG1sCa_placeName",
35000
34996
  "opened": "rp_bG1sCa_opened",
35001
- "tag": "rp_bG1sCa_tag",
34997
+ "title": "rp_bG1sCa_title",
34998
+ "closedWay": "rp_bG1sCa_closedWay",
34999
+ "place": "rp_bG1sCa_place",
35000
+ "name": "rp_bG1sCa_name",
35001
+ "heading": "rp_bG1sCa_heading",
35002
+ "sub": "rp_bG1sCa_sub",
35003
+ "entry": "rp_bG1sCa_entry",
35004
+ "text": "rp_bG1sCa_text",
35005
+ "message": "rp_bG1sCa_message",
35006
+ "head": "rp_bG1sCa_head",
35007
+ "link": "rp_bG1sCa_link",
35008
+ "journal": "rp_bG1sCa_journal",
35002
35009
  "notes": "rp_bG1sCa_notes",
35003
- "message": "rp_bG1sCa_message"
35010
+ "map": "rp_bG1sCa_map",
35011
+ "tag": "rp_bG1sCa_tag",
35012
+ "way": "rp_bG1sCa_way"
35004
35013
  };
35005
35014
  // src/client/reference/sections/Journal.tsx
35006
35015
  /** How long typing pauses before the notes are saved. */
@@ -36096,27 +36105,27 @@ window.__ModuleLoader__.load({
36096
36105
  }
36097
36106
  tag$8.textContent = css$8;
36098
36107
  var ChatSettingsView_module_css_default = {
36108
+ "list": "rp_wLpbxW_list",
36099
36109
  "message": "rp_wLpbxW_message",
36100
- "activity": "rp_wLpbxW_activity",
36101
- "tableViewport": "rp_wLpbxW_tableViewport",
36102
- "description": "rp_wLpbxW_description",
36103
- "pre": "rp_wLpbxW_pre",
36110
+ "reasons": "rp_wLpbxW_reasons",
36111
+ "table": "rp_wLpbxW_table",
36112
+ "field": "rp_wLpbxW_field",
36113
+ "view": "rp_wLpbxW_view",
36104
36114
  "actions": "rp_wLpbxW_actions",
36105
36115
  "row": "rp_wLpbxW_row",
36106
- "saved": "rp_wLpbxW_saved",
36107
- "view": "rp_wLpbxW_view",
36116
+ "tableViewport": "rp_wLpbxW_tableViewport",
36117
+ "title": "rp_wLpbxW_title",
36118
+ "help": "rp_wLpbxW_help",
36119
+ "link": "rp_wLpbxW_link",
36108
36120
  "activityBody": "rp_wLpbxW_activityBody",
36109
36121
  "select": "rp_wLpbxW_select",
36110
- "link": "rp_wLpbxW_link",
36111
- "list": "rp_wLpbxW_list",
36112
- "field": "rp_wLpbxW_field",
36113
- "label": "rp_wLpbxW_label",
36114
- "error": "rp_wLpbxW_error",
36115
- "reasons": "rp_wLpbxW_reasons",
36116
- "table": "rp_wLpbxW_table",
36117
- "help": "rp_wLpbxW_help",
36118
36122
  "notice": "rp_wLpbxW_notice",
36119
- "title": "rp_wLpbxW_title",
36123
+ "pre": "rp_wLpbxW_pre",
36124
+ "activity": "rp_wLpbxW_activity",
36125
+ "error": "rp_wLpbxW_error",
36126
+ "description": "rp_wLpbxW_description",
36127
+ "label": "rp_wLpbxW_label",
36128
+ "saved": "rp_wLpbxW_saved",
36120
36129
  "run": "rp_wLpbxW_run"
36121
36130
  };
36122
36131
  // src/client/chat-settings/settings-api.ts
@@ -40649,12 +40658,12 @@ window.__ModuleLoader__.load({
40649
40658
  }
40650
40659
  tag$7.textContent = css$7;
40651
40660
  var SettingsForm_module_css_default = {
40652
- "failed": "rp_eL0Ehq_failed",
40653
40661
  "readOnly": "rp_eL0Ehq_readOnly",
40654
- "unavailable": "rp_eL0Ehq_unavailable",
40655
- "form": "rp_eL0Ehq_form",
40656
40662
  "footer": "rp_eL0Ehq_footer",
40657
- "save": "rp_eL0Ehq_save"
40663
+ "failed": "rp_eL0Ehq_failed",
40664
+ "save": "rp_eL0Ehq_save",
40665
+ "form": "rp_eL0Ehq_form",
40666
+ "unavailable": "rp_eL0Ehq_unavailable"
40658
40667
  };
40659
40668
  // src/client/ui/SettingsForm.tsx
40660
40669
  /**
@@ -40711,17 +40720,17 @@ window.__ModuleLoader__.load({
40711
40720
  }
40712
40721
  tag$6.textContent = css$6;
40713
40722
  var SettingsValueField_module_css_default = {
40714
- "reset": "rp_AFBKEG_reset",
40715
- "head": "rp_AFBKEG_head",
40723
+ "input": "rp_AFBKEG_input",
40716
40724
  "hint": "rp_AFBKEG_hint",
40717
- "badges": "rp_AFBKEG_badges",
40718
- "helpButton": "rp_AFBKEG_helpButton",
40719
- "field": "rp_AFBKEG_field",
40720
- "help": "rp_AFBKEG_help",
40725
+ "head": "rp_AFBKEG_head",
40721
40726
  "labelGroup": "rp_AFBKEG_labelGroup",
40722
- "input": "rp_AFBKEG_input",
40727
+ "help": "rp_AFBKEG_help",
40723
40728
  "label": "rp_AFBKEG_label",
40724
- "invalid": "rp_AFBKEG_invalid"
40729
+ "invalid": "rp_AFBKEG_invalid",
40730
+ "field": "rp_AFBKEG_field",
40731
+ "badges": "rp_AFBKEG_badges",
40732
+ "helpButton": "rp_AFBKEG_helpButton",
40733
+ "reset": "rp_AFBKEG_reset"
40725
40734
  };
40726
40735
  // src/client/ui/SettingsValueField.tsx
40727
40736
  /**
@@ -40807,16 +40816,16 @@ window.__ModuleLoader__.load({
40807
40816
  }
40808
40817
  tag$5.textContent = css$5;
40809
40818
  var CatalogueSettings_module_css_default = {
40819
+ "title": "rp_KPhXDa_title",
40820
+ "keyArea": "rp_KPhXDa_keyArea",
40821
+ "label": "rp_KPhXDa_label",
40822
+ "problem": "rp_KPhXDa_problem",
40810
40823
  "keyHint": "rp_KPhXDa_keyHint",
40811
40824
  "actions": "rp_KPhXDa_actions",
40812
- "label": "rp_KPhXDa_label",
40813
- "keyArea": "rp_KPhXDa_keyArea",
40814
40825
  "field": "rp_KPhXDa_field",
40815
- "hint": "rp_KPhXDa_hint",
40816
- "problem": "rp_KPhXDa_problem",
40817
- "row": "rp_KPhXDa_row",
40818
40826
  "section": "rp_KPhXDa_section",
40819
- "title": "rp_KPhXDa_title"
40827
+ "hint": "rp_KPhXDa_hint",
40828
+ "row": "rp_KPhXDa_row"
40820
40829
  };
40821
40830
  // src/client/settings/AuthoringToolSettings.tsx
40822
40831
  const boardOf = (text) => {
@@ -41056,18 +41065,18 @@ window.__ModuleLoader__.load({
41056
41065
  }
41057
41066
  tag$4.textContent = css$4;
41058
41067
  var AssistantSettings_module_css_default = {
41059
- "field": "rp_ZwzM4q_field",
41060
- "section": "rp_ZwzM4q_section",
41061
- "reset": "rp_ZwzM4q_reset",
41068
+ "fieldHint": "rp_ZwzM4q_fieldHint",
41069
+ "label": "rp_ZwzM4q_label",
41070
+ "fields": "rp_ZwzM4q_fields",
41062
41071
  "title": "rp_ZwzM4q_title",
41063
- "select": "rp_ZwzM4q_select",
41064
- "head": "rp_ZwzM4q_head",
41072
+ "section": "rp_ZwzM4q_section",
41065
41073
  "hint": "rp_ZwzM4q_hint",
41066
- "fieldHint": "rp_ZwzM4q_fieldHint",
41067
- "badges": "rp_ZwzM4q_badges",
41068
41074
  "invalid": "rp_ZwzM4q_invalid",
41069
- "fields": "rp_ZwzM4q_fields",
41070
- "label": "rp_ZwzM4q_label"
41075
+ "field": "rp_ZwzM4q_field",
41076
+ "head": "rp_ZwzM4q_head",
41077
+ "select": "rp_ZwzM4q_select",
41078
+ "reset": "rp_ZwzM4q_reset",
41079
+ "badges": "rp_ZwzM4q_badges"
41071
41080
  };
41072
41081
  // src/client/settings/AssistantSettings.tsx
41073
41082
  function ChoiceField({ t, spec, state, disabled, onEdit, onReset }) {
@@ -43503,29 +43512,29 @@ window.__ModuleLoader__.load({
43503
43512
  }
43504
43513
  tag$3.textContent = css$3;
43505
43514
  var NarrationView_module_css_default = {
43506
- "narration": "rp_NFPimG_narration",
43507
- "oocNote": "rp_NFPimG_oocNote",
43508
43515
  "imageStatus": "rp_NFPimG_imageStatus",
43509
43516
  "preview": "rp_NFPimG_preview",
43510
- "actions": "rp_NFPimG_actions",
43511
- "oocLabel": "rp_NFPimG_oocLabel",
43512
43517
  "imageButton": "rp_NFPimG_imageButton",
43513
- "oocRefused": "rp_NFPimG_oocRefused",
43514
43518
  "imageError": "rp_NFPimG_imageError",
43515
- "speech": "rp_NFPimG_speech",
43516
- "name": "rp_NFPimG_name",
43519
+ "output": "rp_NFPimG_output",
43520
+ "narration": "rp_NFPimG_narration",
43517
43521
  "sceneImage": "rp_NFPimG_sceneImage",
43518
43522
  "diceList": "rp_NFPimG_diceList",
43519
- "output": "rp_NFPimG_output",
43523
+ "speech": "rp_NFPimG_speech",
43520
43524
  "words": "rp_NFPimG_words",
43521
- "playLine": "rp_NFPimG_playLine",
43522
- "line": "rp_NFPimG_line",
43523
- "note": "rp_NFPimG_note",
43524
- "avatar": "rp_NFPimG_avatar",
43525
43525
  "images": "rp_NFPimG_images",
43526
+ "playLine": "rp_NFPimG_playLine",
43527
+ "oocNote": "rp_NFPimG_oocNote",
43528
+ "oocRefused": "rp_NFPimG_oocRefused",
43526
43529
  "dice": "rp_NFPimG_dice",
43527
43530
  "diceSummary": "rp_NFPimG_diceSummary",
43528
- "avatarImage": "rp_NFPimG_avatarImage"
43531
+ "avatarImage": "rp_NFPimG_avatarImage",
43532
+ "oocLabel": "rp_NFPimG_oocLabel",
43533
+ "name": "rp_NFPimG_name",
43534
+ "actions": "rp_NFPimG_actions",
43535
+ "avatar": "rp_NFPimG_avatar",
43536
+ "line": "rp_NFPimG_line",
43537
+ "note": "rp_NFPimG_note"
43529
43538
  };
43530
43539
  // src/client/transcript/PreviewNode.tsx
43531
43540
  /**
@@ -43543,6 +43552,35 @@ window.__ModuleLoader__.load({
43543
43552
  })
43544
43553
  });
43545
43554
  }
43555
+ // src/client/transcript/branching.ts
43556
+ /** Told to the window when a branch has its session, so that the player can be asked to name it; the branch feature listens. */
43557
+ const BRANCHED_EVENT = "roleplay:branched";
43558
+ /**
43559
+ * Branches a roleplay chat after the turn that ended at `atSeq`, and shows the new chat.
43560
+ * Resolved on use, so a client without the services fails at the click.
43561
+ */
43562
+ async function branchAt(scope, chat, atSeq) {
43563
+ const sessions = scope.get("sessions");
43564
+ const workspace = scope.get("uiWorkspace");
43565
+ if (sessions === void 0 || workspace === void 0) throw new Error("branching is not available in this client");
43566
+ const branch = await sessions.fork({
43567
+ sessionId: chat,
43568
+ atSeq,
43569
+ increaseTitle: true
43570
+ });
43571
+ const response = await fetch("roleplay-api/sessions/branch", {
43572
+ method: "POST",
43573
+ headers: { "content-type": "application/json" },
43574
+ body: JSON.stringify({
43575
+ chat: branch,
43576
+ parent: chat,
43577
+ atSeq
43578
+ })
43579
+ });
43580
+ if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `the branch could not be made (${response.status})`);
43581
+ globalThis.window?.dispatchEvent(new CustomEvent(BRANCHED_EVENT, { detail: { chat: branch } }));
43582
+ workspace.openSession(branch);
43583
+ }
43546
43584
  // src/client/media-capabilities.ts
43547
43585
  /** A choice in the provider settings takes effect without a restart, so the answer is asked for again after a short while. */
43548
43586
  const FRESH_MS = 15e3;
@@ -44091,10 +44129,10 @@ window.__ModuleLoader__.load({
44091
44129
  }
44092
44130
  tag$1.textContent = css$1;
44093
44131
  var Menu_module_css_default = {
44094
- "chevron": "rp_6CY8oG_chevron",
44095
- "list": "rp_6CY8oG_list",
44096
44132
  "heading": "rp_6CY8oG_heading",
44097
- "item": "rp_6CY8oG_item"
44133
+ "item": "rp_6CY8oG_item",
44134
+ "chevron": "rp_6CY8oG_chevron",
44135
+ "list": "rp_6CY8oG_list"
44098
44136
  };
44099
44137
  // src/client/ui/Menu.tsx
44100
44138
  const GAP = 4;
@@ -44229,17 +44267,17 @@ window.__ModuleLoader__.load({
44229
44267
  }
44230
44268
  tag.textContent = css;
44231
44269
  var TurnsDock_module_css_default = {
44232
- "dock": "rp_f4YLlq_dock",
44270
+ "count": "rp_f4YLlq_count",
44233
44271
  "comparison": "rp_f4YLlq_comparison",
44272
+ "button": "rp_f4YLlq_button",
44273
+ "comparisonHead": "rp_f4YLlq_comparisonHead",
44234
44274
  "fold": "rp_f4YLlq_fold",
44235
44275
  "comparisonLine": "rp_f4YLlq_comparisonLine",
44236
- "error": "rp_f4YLlq_error",
44237
- "comparisonHead": "rp_f4YLlq_comparisonHead",
44238
- "comparisonSubject": "rp_f4YLlq_comparisonSubject",
44239
44276
  "group": "rp_f4YLlq_group",
44240
- "count": "rp_f4YLlq_count",
44241
44277
  "select": "rp_f4YLlq_select",
44242
- "button": "rp_f4YLlq_button"
44278
+ "error": "rp_f4YLlq_error",
44279
+ "dock": "rp_f4YLlq_dock",
44280
+ "comparisonSubject": "rp_f4YLlq_comparisonSubject"
44243
44281
  };
44244
44282
  // src/client/transcript/withdrawn.ts
44245
44283
  /** The rows of the transcript that belong to turns the story is not at, by the key DSH gives each row. */
@@ -45081,17 +45119,6 @@ window.__ModuleLoader__.load({
45081
45119
  if (!response.ok) throw new Error((await response.json().catch(() => ({}))).message ?? `the states could not be compared (${response.status})`);
45082
45120
  return await response.json();
45083
45121
  }
45084
- /** Branches a roleplay chat after the turn that ended at `atSeq`, and shows the new chat. Resolved on use, so a client without the services fails at the click. */
45085
- async function branchAt(scope, chat, atSeq) {
45086
- const sessions = scope.get("sessions");
45087
- const workspace = scope.get("uiWorkspace");
45088
- if (sessions === void 0 || workspace === void 0) throw new Error("branching is not available in this client");
45089
- workspace.openSession(await sessions.fork({
45090
- sessionId: chat,
45091
- atSeq,
45092
- increaseTitle: true
45093
- }));
45094
- }
45095
45122
  /** The notes the host keeps for the player beside the story; none for a chat that is not a roleplay session. */
45096
45123
  async function notesOf(chat) {
45097
45124
  const id = roleplaySessionOf(chat);