@netless/fastboard-ui 1.0.0-canary.0 → 1.0.0-canary.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.
@@ -4230,7 +4230,7 @@ function create_default_slot_42(ctx) {
4230
4230
  let current;
4231
4231
  icon = new Icon_default({
4232
4232
  props: {
4233
- src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[5]],
4233
+ src: (_a = ctx[1]) == null ? void 0 : _a.plus[ctx[4]],
4234
4234
  alt: "[plus]",
4235
4235
  $$slots: { default: [create_default_slot_52] },
4236
4236
  $$scope: { ctx }
@@ -4247,9 +4247,9 @@ function create_default_slot_42(ctx) {
4247
4247
  p(ctx2, dirty) {
4248
4248
  var _a2;
4249
4249
  const icon_changes = {};
4250
- if (dirty & 34)
4251
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[5]];
4252
- if (dirty & 131073) {
4250
+ if (dirty & 18)
4251
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.plus[ctx2[4]];
4252
+ if (dirty & 262145) {
4253
4253
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4254
4254
  }
4255
4255
  icon.$set(icon_changes);
@@ -4270,12 +4270,11 @@ function create_default_slot_42(ctx) {
4270
4270
  };
4271
4271
  }
4272
4272
  function create_else_block4(ctx) {
4273
- let t0_value = Math.ceil(ctx[2] * 100) + "";
4274
4273
  let t0;
4275
4274
  let t1;
4276
4275
  return {
4277
4276
  c() {
4278
- t0 = text(t0_value);
4277
+ t0 = text(ctx[5]);
4279
4278
  t1 = text("%");
4280
4279
  },
4281
4280
  m(target, anchor) {
@@ -4283,8 +4282,8 @@ function create_else_block4(ctx) {
4283
4282
  insert(target, t1, anchor);
4284
4283
  },
4285
4284
  p(ctx2, dirty) {
4286
- if (dirty & 4 && t0_value !== (t0_value = Math.ceil(ctx2[2] * 100) + ""))
4287
- set_data(t0, t0_value);
4285
+ if (dirty & 32)
4286
+ set_data(t0, ctx2[5]);
4288
4287
  },
4289
4288
  d(detaching) {
4290
4289
  if (detaching)
@@ -4349,7 +4348,7 @@ function create_default_slot_23(ctx) {
4349
4348
  let current;
4350
4349
  icon = new Icon_default({
4351
4350
  props: {
4352
- src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[5]],
4351
+ src: (_a = ctx[1]) == null ? void 0 : _a.minus[ctx[4]],
4353
4352
  alt: "[minus]",
4354
4353
  $$slots: { default: [create_default_slot_33] },
4355
4354
  $$scope: { ctx }
@@ -4366,9 +4365,9 @@ function create_default_slot_23(ctx) {
4366
4365
  p(ctx2, dirty) {
4367
4366
  var _a2;
4368
4367
  const icon_changes = {};
4369
- if (dirty & 34)
4370
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[5]];
4371
- if (dirty & 131073) {
4368
+ if (dirty & 18)
4369
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.minus[ctx2[4]];
4370
+ if (dirty & 262145) {
4372
4371
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4373
4372
  }
4374
4373
  icon.$set(icon_changes);
@@ -4427,7 +4426,7 @@ function create_default_slot3(ctx) {
4427
4426
  let current;
4428
4427
  icon = new Icon_default({
4429
4428
  props: {
4430
- src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[5]],
4429
+ src: (_a = ctx[1]) == null ? void 0 : _a.reset[ctx[4]],
4431
4430
  alt: "[reset]",
4432
4431
  $$slots: { default: [create_default_slot_13] },
4433
4432
  $$scope: { ctx }
@@ -4444,9 +4443,9 @@ function create_default_slot3(ctx) {
4444
4443
  p(ctx2, dirty) {
4445
4444
  var _a2;
4446
4445
  const icon_changes = {};
4447
- if (dirty & 34)
4448
- icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[5]];
4449
- if (dirty & 131073) {
4446
+ if (dirty & 18)
4447
+ icon_changes.src = (_a2 = ctx2[1]) == null ? void 0 : _a2.reset[ctx2[4]];
4448
+ if (dirty & 262145) {
4450
4449
  icon_changes.$$scope = { dirty, ctx: ctx2 };
4451
4450
  }
4452
4451
  icon.$set(icon_changes);
@@ -4491,7 +4490,7 @@ function create_fragment48(ctx) {
4491
4490
  });
4492
4491
  button0.$on("click", ctx[11]);
4493
4492
  function select_block_type(ctx2, dirty) {
4494
- if (ctx2[4] == null)
4493
+ if (ctx2[3] == null)
4495
4494
  return create_if_block4;
4496
4495
  return create_else_block4;
4497
4496
  }
@@ -4514,7 +4513,7 @@ function create_fragment48(ctx) {
4514
4513
  class: "reset",
4515
4514
  name: name3,
4516
4515
  theme: ctx[0],
4517
- disabled: ctx[3],
4516
+ disabled: ctx[2],
4518
4517
  content: ctx[9].reset,
4519
4518
  $$slots: { default: [create_default_slot3] },
4520
4519
  $$scope: { ctx }
@@ -4555,7 +4554,7 @@ function create_fragment48(ctx) {
4555
4554
  button0_changes.disabled = ctx2[7];
4556
4555
  if (dirty & 512)
4557
4556
  button0_changes.content = ctx2[9].plus;
4558
- if (dirty & 131107) {
4557
+ if (dirty & 262163) {
4559
4558
  button0_changes.$$scope = { dirty, ctx: ctx2 };
4560
4559
  }
4561
4560
  button0.$set(button0_changes);
@@ -4579,18 +4578,18 @@ function create_fragment48(ctx) {
4579
4578
  button1_changes.disabled = ctx2[6];
4580
4579
  if (dirty & 512)
4581
4580
  button1_changes.content = ctx2[9].minus;
4582
- if (dirty & 131107) {
4581
+ if (dirty & 262163) {
4583
4582
  button1_changes.$$scope = { dirty, ctx: ctx2 };
4584
4583
  }
4585
4584
  button1.$set(button1_changes);
4586
4585
  const button2_changes = {};
4587
4586
  if (dirty & 1)
4588
4587
  button2_changes.theme = ctx2[0];
4589
- if (dirty & 8)
4590
- button2_changes.disabled = ctx2[3];
4588
+ if (dirty & 4)
4589
+ button2_changes.disabled = ctx2[2];
4591
4590
  if (dirty & 512)
4592
4591
  button2_changes.content = ctx2[9].reset;
4593
- if (dirty & 131107) {
4592
+ if (dirty & 262163) {
4594
4593
  button2_changes.$$scope = { dirty, ctx: ctx2 };
4595
4594
  }
4596
4595
  button2.$set(button2_changes);
@@ -4672,8 +4671,9 @@ function instance48($$self, $$props, $$invalidate) {
4672
4671
  let scale;
4673
4672
  let plus_disabled;
4674
4673
  let minus_disabled;
4675
- let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
4676
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(16, $writable = $$value)), writable2);
4674
+ let display_scale;
4675
+ let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(3, $camera = $$value)), camera);
4676
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(17, $writable = $$value)), writable2);
4677
4677
  $$self.$$.on_destroy.push(() => $$unsubscribe_camera());
4678
4678
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
4679
4679
  let { app = null } = $$props;
@@ -4713,35 +4713,38 @@ function instance48($$self, $$props, $$invalidate) {
4713
4713
  if ($$self.$$.dirty & 16384) {
4714
4714
  $$subscribe_writable($$invalidate(10, writable2 = app == null ? void 0 : app.writable));
4715
4715
  }
4716
- if ($$self.$$.dirty & 65536) {
4717
- $$invalidate(3, disabled = !$writable);
4716
+ if ($$self.$$.dirty & 131072) {
4717
+ $$invalidate(2, disabled = !$writable);
4718
4718
  }
4719
4719
  if ($$self.$$.dirty & 32768) {
4720
4720
  $$invalidate(9, t = i18n3[language]);
4721
4721
  }
4722
- if ($$self.$$.dirty & 8) {
4723
- $$invalidate(5, type = disabled ? "disable" : "normal");
4722
+ if ($$self.$$.dirty & 4) {
4723
+ $$invalidate(4, type = disabled ? "disable" : "normal");
4724
4724
  }
4725
4725
  if ($$self.$$.dirty & 16384) {
4726
4726
  $$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
4727
4727
  }
4728
- if ($$self.$$.dirty & 16) {
4729
- $$invalidate(2, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
4728
+ if ($$self.$$.dirty & 8) {
4729
+ $$invalidate(16, scale = (_a = $camera == null ? void 0 : $camera.scale) != null ? _a : 1);
4730
4730
  }
4731
- if ($$self.$$.dirty & 12) {
4732
- $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) === scale);
4731
+ if ($$self.$$.dirty & 65540) {
4732
+ $$invalidate(7, plus_disabled = disabled || next_scale(scale, 1) <= scale);
4733
4733
  }
4734
- if ($$self.$$.dirty & 12) {
4735
- $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) === scale);
4734
+ if ($$self.$$.dirty & 65540) {
4735
+ $$invalidate(6, minus_disabled = disabled || next_scale(scale, -1) >= scale);
4736
+ }
4737
+ if ($$self.$$.dirty & 65536) {
4738
+ $$invalidate(5, display_scale = clamp(Math.round(scale * 100), 30, 300));
4736
4739
  }
4737
4740
  };
4738
4741
  return [
4739
4742
  theme,
4740
4743
  icons,
4741
- scale,
4742
4744
  disabled,
4743
4745
  $camera,
4744
4746
  type,
4747
+ display_scale,
4745
4748
  minus_disabled,
4746
4749
  plus_disabled,
4747
4750
  camera,
@@ -4752,6 +4755,7 @@ function instance48($$self, $$props, $$invalidate) {
4752
4755
  reset,
4753
4756
  app,
4754
4757
  language,
4758
+ scale,
4755
4759
  $writable
4756
4760
  ];
4757
4761
  }
@@ -4891,15 +4895,6 @@ var scrollTop = function(node, value) {
4891
4895
  };
4892
4896
  };
4893
4897
 
4894
- // src/behaviors/icons/visual-studio-code.svg
4895
- var visual_studio_code_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsa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mVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB2aWV3Qm94PSIwIDAgMTUgMTUiPjxwYXRoIGZpbGw9ImdyZXkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTEzLjE1IDcuNWMwLTIuODM1LTIuMjEtNS42NS01LjY1LTUuNjVjLTIuNzc4IDAtNC4xNTEgMi4wNTYtNC43MzcgMy4xNUg0LjVhLjUuNSAwIDAgMSAwIDFoLTNhLjUuNSAwIDAgMS0uNS0uNXYtM2EuNS41IDAgMCAxIDEgMHYxLjgxM0MyLjcwNSAzLjA3MSA0LjMzNC44NSA3LjUuODVjNC4wNjMgMCA2LjY1IDMuMzM1IDYuNjUgNi42NWMwIDMuMzE1LTIuNTg3IDYuNjUtNi42NSA2LjY1Yy0xLjk0NCAwLTMuNTYyLS43Ny00LjcxNS0xLjk0MmE2Ljc3MiA2Ljc3MiAwIDAgMS0xLjQyNy0yLjE2N2EuNS41IDAgMSAxIC45MjUtLjM4Yy4yOC42ODEuNjkyIDEuMzE0IDEuMjE2IDEuODQ2Yy45NzIuOTkgMi4zMzYgMS42NDMgNC4wMDEgMS42NDNjMy40NCAwIDUuNjUtMi44MTUgNS42NS01LjY1Wk03IDEwVjVoMXY1SDdaIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiPjwvcGF0aD48L3N2Zz4=";
4902
-
4903
4898
  // src/behaviors/apps.ts
4904
4899
  var AppsInToolbar = class {
4905
4900
  constructor(_data) {
@@ -4936,41 +4931,7 @@ var AppsInToolbar = class {
4936
4931
  this._listeners.forEach((fn) => fn(this._data));
4937
4932
  }
4938
4933
  };
4939
- var apps = new AppsInToolbar([
4940
- {
4941
- kind: "Monaco",
4942
- icon: visual_studio_code_default,
4943
- label: "Code Editor",
4944
- onClick(app) {
4945
- app.manager.addApp({
4946
- kind: "Monaco",
4947
- options: { title: "Code Editor" }
4948
- });
4949
- }
4950
- },
4951
- {
4952
- kind: "GeoGebra",
4953
- icon: geogebra_default,
4954
- label: "GeoGebra",
4955
- onClick(app) {
4956
- app.manager.addApp({
4957
- kind: "GeoGebra",
4958
- options: { title: "GeoGebra" }
4959
- });
4960
- }
4961
- },
4962
- {
4963
- kind: "Countdown",
4964
- icon: countdown_default,
4965
- label: "Countdown",
4966
- onClick(app) {
4967
- app.manager.addApp({
4968
- kind: "Countdown",
4969
- options: { title: "Countdown" }
4970
- });
4971
- }
4972
- }
4973
- ]);
4934
+ var apps = new AppsInToolbar([]);
4974
4935
  function tooltip(text4, hotkey) {
4975
4936
  if (!hotkey || typeof hotkey !== "string")
4976
4937
  return text4;
@@ -9269,13 +9230,13 @@ function create_fragment57(ctx) {
9269
9230
  m(target, anchor) {
9270
9231
  insert(target, div2, anchor);
9271
9232
  append(div2, div0);
9272
- ctx[6](div0);
9233
+ ctx[7](div0);
9273
9234
  append(div2, t);
9274
9235
  append(div2, div1);
9275
9236
  mount_component(playercontrol, div1, null);
9276
9237
  current = true;
9277
9238
  if (!mounted) {
9278
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
9239
+ dispose = listen(div0, "touchstart", ctx[4], { passive: true, capture: true });
9279
9240
  mounted = true;
9280
9241
  }
9281
9242
  },
@@ -9305,7 +9266,7 @@ function create_fragment57(ctx) {
9305
9266
  d(detaching) {
9306
9267
  if (detaching)
9307
9268
  detach(div2);
9308
- ctx[6](null);
9269
+ ctx[7](null);
9309
9270
  destroy_component(playercontrol);
9310
9271
  mounted = false;
9311
9272
  dispose();
@@ -9329,6 +9290,11 @@ function instance57($$self, $$props, $$invalidate) {
9329
9290
  };
9330
9291
  }
9331
9292
  });
9293
+ function focus_me() {
9294
+ tippy_hide_all();
9295
+ let a = document.activeElement;
9296
+ a && a.blur && a.blur();
9297
+ }
9332
9298
  function div0_binding($$value) {
9333
9299
  binding_callbacks[$$value ? "unshift" : "push"](() => {
9334
9300
  container = $$value;
@@ -9343,27 +9309,36 @@ function instance57($$self, $$props, $$invalidate) {
9343
9309
  if ("language" in $$props2)
9344
9310
  $$invalidate(2, language = $$props2.language);
9345
9311
  if ("containerRef" in $$props2)
9346
- $$invalidate(4, containerRef = $$props2.containerRef);
9312
+ $$invalidate(5, containerRef = $$props2.containerRef);
9347
9313
  };
9348
9314
  $$self.$$.update = () => {
9349
9315
  if ($$self.$$.dirty & 9) {
9350
9316
  try {
9351
9317
  if (player && container) {
9352
9318
  player.bindContainer(container);
9353
- $$invalidate(5, mounted = true);
9319
+ $$invalidate(6, mounted = true);
9354
9320
  }
9355
9321
  } catch (err) {
9356
9322
  console.error("[fastboard] An error occurred while binding container");
9357
9323
  console.error(err);
9358
9324
  }
9359
9325
  }
9360
- if ($$self.$$.dirty & 35) {
9326
+ if ($$self.$$.dirty & 67) {
9361
9327
  if (player && theme && mounted) {
9362
9328
  player.manager.setPrefersColorScheme(theme);
9363
9329
  }
9364
9330
  }
9365
9331
  };
9366
- return [player, theme, language, container, containerRef, mounted, div0_binding];
9332
+ return [
9333
+ player,
9334
+ theme,
9335
+ language,
9336
+ container,
9337
+ focus_me,
9338
+ containerRef,
9339
+ mounted,
9340
+ div0_binding
9341
+ ];
9367
9342
  }
9368
9343
  var ReplayFastboard = class extends SvelteComponent {
9369
9344
  constructor(options) {
@@ -9372,7 +9347,7 @@ var ReplayFastboard = class extends SvelteComponent {
9372
9347
  player: 0,
9373
9348
  theme: 1,
9374
9349
  language: 2,
9375
- containerRef: 4
9350
+ containerRef: 5
9376
9351
  });
9377
9352
  }
9378
9353
  };
@@ -9602,7 +9577,7 @@ function create_fragment58(ctx) {
9602
9577
  m(target, anchor) {
9603
9578
  insert(target, div4, anchor);
9604
9579
  append(div4, div0);
9605
- ctx[14](div0);
9580
+ ctx[15](div0);
9606
9581
  append(div4, t0);
9607
9582
  append(div4, div1);
9608
9583
  if (if_block0)
@@ -9620,7 +9595,7 @@ function create_fragment58(ctx) {
9620
9595
  if_block3.m(div3, null);
9621
9596
  current = true;
9622
9597
  if (!mounted) {
9623
- dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
9598
+ dispose = listen(div0, "touchstart", ctx[9], { passive: true, capture: true });
9624
9599
  mounted = true;
9625
9600
  }
9626
9601
  },
@@ -9734,7 +9709,7 @@ function create_fragment58(ctx) {
9734
9709
  d(detaching) {
9735
9710
  if (detaching)
9736
9711
  detach(div4);
9737
- ctx[14](null);
9712
+ ctx[15](null);
9738
9713
  if (if_block0)
9739
9714
  if_block0.d();
9740
9715
  if (if_block1)
@@ -9753,9 +9728,9 @@ function instance58($$self, $$props, $$invalidate) {
9753
9728
  let writable2;
9754
9729
  let boxState;
9755
9730
  let focusedApp;
9756
- let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(11, $focusedApp = $$value)), focusedApp);
9757
- let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(12, $boxState = $$value)), boxState);
9758
- let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(13, $writable = $$value)), writable2);
9731
+ let $focusedApp, $$unsubscribe_focusedApp = noop, $$subscribe_focusedApp = () => ($$unsubscribe_focusedApp(), $$unsubscribe_focusedApp = subscribe(focusedApp, ($$value) => $$invalidate(12, $focusedApp = $$value)), focusedApp);
9732
+ let $boxState, $$unsubscribe_boxState = noop, $$subscribe_boxState = () => ($$unsubscribe_boxState(), $$unsubscribe_boxState = subscribe(boxState, ($$value) => $$invalidate(13, $boxState = $$value)), boxState);
9733
+ let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(14, $writable = $$value)), writable2);
9759
9734
  $$self.$$.on_destroy.push(() => $$unsubscribe_focusedApp());
9760
9735
  $$self.$$.on_destroy.push(() => $$unsubscribe_boxState());
9761
9736
  $$self.$$.on_destroy.push(() => $$unsubscribe_writable());
@@ -9777,6 +9752,11 @@ function instance58($$self, $$props, $$invalidate) {
9777
9752
  };
9778
9753
  }
9779
9754
  });
9755
+ function focus_me() {
9756
+ tippy_hide_all();
9757
+ let a = document.activeElement;
9758
+ a && a.blur && a.blur();
9759
+ }
9780
9760
  function div0_binding($$value) {
9781
9761
  binding_callbacks[$$value ? "unshift" : "push"](() => {
9782
9762
  container = $$value;
@@ -9791,7 +9771,7 @@ function instance58($$self, $$props, $$invalidate) {
9791
9771
  if ("language" in $$props2)
9792
9772
  $$invalidate(2, language = $$props2.language);
9793
9773
  if ("containerRef" in $$props2)
9794
- $$invalidate(9, containerRef = $$props2.containerRef);
9774
+ $$invalidate(10, containerRef = $$props2.containerRef);
9795
9775
  if ("config" in $$props2)
9796
9776
  $$invalidate(3, config = $$props2.config);
9797
9777
  };
@@ -9805,7 +9785,7 @@ function instance58($$self, $$props, $$invalidate) {
9805
9785
  if ($$self.$$.dirty & 1) {
9806
9786
  $$subscribe_focusedApp($$invalidate(6, focusedApp = app == null ? void 0 : app.focusedApp));
9807
9787
  }
9808
- if ($$self.$$.dirty & 14336) {
9788
+ if ($$self.$$.dirty & 28672) {
9809
9789
  if (!$writable) {
9810
9790
  $$invalidate(5, layout = "hidden");
9811
9791
  } else if ($boxState === "maximized") {
@@ -9822,14 +9802,14 @@ function instance58($$self, $$props, $$invalidate) {
9822
9802
  try {
9823
9803
  if (app && container) {
9824
9804
  app.bindContainer(container);
9825
- $$invalidate(10, mounted = true);
9805
+ $$invalidate(11, mounted = true);
9826
9806
  }
9827
9807
  } catch (err) {
9828
9808
  console.error("[fastboard] An error occurred while binding container");
9829
9809
  console.error(err);
9830
9810
  }
9831
9811
  }
9832
- if ($$self.$$.dirty & 1027) {
9812
+ if ($$self.$$.dirty & 2051) {
9833
9813
  if (app && theme && mounted) {
9834
9814
  app.manager.setPrefersColorScheme(theme);
9835
9815
  }
@@ -9845,6 +9825,7 @@ function instance58($$self, $$props, $$invalidate) {
9845
9825
  focusedApp,
9846
9826
  boxState,
9847
9827
  writable2,
9828
+ focus_me,
9848
9829
  containerRef,
9849
9830
  mounted,
9850
9831
  $focusedApp,
@@ -9860,7 +9841,7 @@ var Fastboard = class extends SvelteComponent {
9860
9841
  app: 0,
9861
9842
  theme: 1,
9862
9843
  language: 2,
9863
- containerRef: 9,
9844
+ containerRef: 10,
9864
9845
  config: 3
9865
9846
  });
9866
9847
  }