@netless/fastboard-ui 1.0.2 → 1.0.4

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/dist/index.js CHANGED
@@ -9485,7 +9485,205 @@ var Selector2 = class extends SvelteComponent {
9485
9485
  var Selector_default2 = Selector2;
9486
9486
 
9487
9487
  // src/components/Toolbar/definitions/Pencil.svelte
9488
- function create_else_block8(ctx) {
9488
+ function create_if_block_4(ctx) {
9489
+ let current_block_type_index;
9490
+ let if_block;
9491
+ let if_block_anchor;
9492
+ let current;
9493
+ const if_block_creators = [create_if_block_5, create_else_block_2];
9494
+ const if_blocks = [];
9495
+ function select_block_type_3(ctx2, dirty) {
9496
+ if (
9497
+ /*appliance*/
9498
+ ctx2[3] === "pencil"
9499
+ )
9500
+ return 0;
9501
+ return 1;
9502
+ }
9503
+ current_block_type_index = select_block_type_3(ctx);
9504
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9505
+ return {
9506
+ c() {
9507
+ if_block.c();
9508
+ if_block_anchor = empty();
9509
+ },
9510
+ m(target, anchor) {
9511
+ if_blocks[current_block_type_index].m(target, anchor);
9512
+ insert(target, if_block_anchor, anchor);
9513
+ current = true;
9514
+ },
9515
+ p(ctx2, dirty) {
9516
+ let previous_block_index = current_block_type_index;
9517
+ current_block_type_index = select_block_type_3(ctx2);
9518
+ if (current_block_type_index === previous_block_index) {
9519
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9520
+ } else {
9521
+ group_outros();
9522
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9523
+ if_blocks[previous_block_index] = null;
9524
+ });
9525
+ check_outros();
9526
+ if_block = if_blocks[current_block_type_index];
9527
+ if (!if_block) {
9528
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9529
+ if_block.c();
9530
+ } else {
9531
+ if_block.p(ctx2, dirty);
9532
+ }
9533
+ transition_in(if_block, 1);
9534
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9535
+ }
9536
+ },
9537
+ i(local) {
9538
+ if (current)
9539
+ return;
9540
+ transition_in(if_block);
9541
+ current = true;
9542
+ },
9543
+ o(local) {
9544
+ transition_out(if_block);
9545
+ current = false;
9546
+ },
9547
+ d(detaching) {
9548
+ if_blocks[current_block_type_index].d(detaching);
9549
+ if (detaching)
9550
+ detach(if_block_anchor);
9551
+ }
9552
+ };
9553
+ }
9554
+ function create_if_block_2(ctx) {
9555
+ let current_block_type_index;
9556
+ let if_block;
9557
+ let if_block_anchor;
9558
+ let current;
9559
+ const if_block_creators = [create_if_block_3, create_else_block_12];
9560
+ const if_blocks = [];
9561
+ function select_block_type_2(ctx2, dirty) {
9562
+ if (
9563
+ /*appliance*/
9564
+ ctx2[3] === "pencil"
9565
+ )
9566
+ return 0;
9567
+ return 1;
9568
+ }
9569
+ current_block_type_index = select_block_type_2(ctx);
9570
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9571
+ return {
9572
+ c() {
9573
+ if_block.c();
9574
+ if_block_anchor = empty();
9575
+ },
9576
+ m(target, anchor) {
9577
+ if_blocks[current_block_type_index].m(target, anchor);
9578
+ insert(target, if_block_anchor, anchor);
9579
+ current = true;
9580
+ },
9581
+ p(ctx2, dirty) {
9582
+ let previous_block_index = current_block_type_index;
9583
+ current_block_type_index = select_block_type_2(ctx2);
9584
+ if (current_block_type_index === previous_block_index) {
9585
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9586
+ } else {
9587
+ group_outros();
9588
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9589
+ if_blocks[previous_block_index] = null;
9590
+ });
9591
+ check_outros();
9592
+ if_block = if_blocks[current_block_type_index];
9593
+ if (!if_block) {
9594
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9595
+ if_block.c();
9596
+ } else {
9597
+ if_block.p(ctx2, dirty);
9598
+ }
9599
+ transition_in(if_block, 1);
9600
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9601
+ }
9602
+ },
9603
+ i(local) {
9604
+ if (current)
9605
+ return;
9606
+ transition_in(if_block);
9607
+ current = true;
9608
+ },
9609
+ o(local) {
9610
+ transition_out(if_block);
9611
+ current = false;
9612
+ },
9613
+ d(detaching) {
9614
+ if_blocks[current_block_type_index].d(detaching);
9615
+ if (detaching)
9616
+ detach(if_block_anchor);
9617
+ }
9618
+ };
9619
+ }
9620
+ function create_if_block8(ctx) {
9621
+ let current_block_type_index;
9622
+ let if_block;
9623
+ let if_block_anchor;
9624
+ let current;
9625
+ const if_block_creators = [create_if_block_12, create_else_block8];
9626
+ const if_blocks = [];
9627
+ function select_block_type_1(ctx2, dirty) {
9628
+ if (
9629
+ /*appliance*/
9630
+ ctx2[3] === "pencil"
9631
+ )
9632
+ return 0;
9633
+ return 1;
9634
+ }
9635
+ current_block_type_index = select_block_type_1(ctx);
9636
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9637
+ return {
9638
+ c() {
9639
+ if_block.c();
9640
+ if_block_anchor = empty();
9641
+ },
9642
+ m(target, anchor) {
9643
+ if_blocks[current_block_type_index].m(target, anchor);
9644
+ insert(target, if_block_anchor, anchor);
9645
+ current = true;
9646
+ },
9647
+ p(ctx2, dirty) {
9648
+ let previous_block_index = current_block_type_index;
9649
+ current_block_type_index = select_block_type_1(ctx2);
9650
+ if (current_block_type_index === previous_block_index) {
9651
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9652
+ } else {
9653
+ group_outros();
9654
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9655
+ if_blocks[previous_block_index] = null;
9656
+ });
9657
+ check_outros();
9658
+ if_block = if_blocks[current_block_type_index];
9659
+ if (!if_block) {
9660
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9661
+ if_block.c();
9662
+ } else {
9663
+ if_block.p(ctx2, dirty);
9664
+ }
9665
+ transition_in(if_block, 1);
9666
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9667
+ }
9668
+ },
9669
+ i(local) {
9670
+ if (current)
9671
+ return;
9672
+ transition_in(if_block);
9673
+ current = true;
9674
+ },
9675
+ o(local) {
9676
+ transition_out(if_block);
9677
+ current = false;
9678
+ },
9679
+ d(detaching) {
9680
+ if_blocks[current_block_type_index].d(detaching);
9681
+ if (detaching)
9682
+ detach(if_block_anchor);
9683
+ }
9684
+ };
9685
+ }
9686
+ function create_else_block_2(ctx) {
9489
9687
  let icons_pencil;
9490
9688
  let current;
9491
9689
  icons_pencil = new Icons_default.Pencil({ props: { theme: (
@@ -9523,7 +9721,7 @@ function create_else_block8(ctx) {
9523
9721
  }
9524
9722
  };
9525
9723
  }
9526
- function create_if_block_2(ctx) {
9724
+ function create_if_block_5(ctx) {
9527
9725
  let icons_pencilfilled;
9528
9726
  let current;
9529
9727
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -9563,7 +9761,45 @@ function create_if_block_2(ctx) {
9563
9761
  }
9564
9762
  };
9565
9763
  }
9566
- function create_if_block_12(ctx) {
9764
+ function create_else_block_12(ctx) {
9765
+ let icons_laserpen;
9766
+ let current;
9767
+ icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
9768
+ /*theme*/
9769
+ ctx[4]
9770
+ ) } });
9771
+ return {
9772
+ c() {
9773
+ create_component(icons_laserpen.$$.fragment);
9774
+ },
9775
+ m(target, anchor) {
9776
+ mount_component(icons_laserpen, target, anchor);
9777
+ current = true;
9778
+ },
9779
+ p(ctx2, dirty) {
9780
+ const icons_laserpen_changes = {};
9781
+ if (dirty & /*theme*/
9782
+ 16)
9783
+ icons_laserpen_changes.theme = /*theme*/
9784
+ ctx2[4];
9785
+ icons_laserpen.$set(icons_laserpen_changes);
9786
+ },
9787
+ i(local) {
9788
+ if (current)
9789
+ return;
9790
+ transition_in(icons_laserpen.$$.fragment, local);
9791
+ current = true;
9792
+ },
9793
+ o(local) {
9794
+ transition_out(icons_laserpen.$$.fragment, local);
9795
+ current = false;
9796
+ },
9797
+ d(detaching) {
9798
+ destroy_component(icons_laserpen, detaching);
9799
+ }
9800
+ };
9801
+ }
9802
+ function create_if_block_3(ctx) {
9567
9803
  let icons_laserpenfilled;
9568
9804
  let current;
9569
9805
  icons_laserpenfilled = new Icons_default.LaserPenFilled({
@@ -9603,7 +9839,45 @@ function create_if_block_12(ctx) {
9603
9839
  }
9604
9840
  };
9605
9841
  }
9606
- function create_if_block8(ctx) {
9842
+ function create_else_block8(ctx) {
9843
+ let icons_markpen;
9844
+ let current;
9845
+ icons_markpen = new Icons_default.MarkPen({ props: { theme: (
9846
+ /*theme*/
9847
+ ctx[4]
9848
+ ) } });
9849
+ return {
9850
+ c() {
9851
+ create_component(icons_markpen.$$.fragment);
9852
+ },
9853
+ m(target, anchor) {
9854
+ mount_component(icons_markpen, target, anchor);
9855
+ current = true;
9856
+ },
9857
+ p(ctx2, dirty) {
9858
+ const icons_markpen_changes = {};
9859
+ if (dirty & /*theme*/
9860
+ 16)
9861
+ icons_markpen_changes.theme = /*theme*/
9862
+ ctx2[4];
9863
+ icons_markpen.$set(icons_markpen_changes);
9864
+ },
9865
+ i(local) {
9866
+ if (current)
9867
+ return;
9868
+ transition_in(icons_markpen.$$.fragment, local);
9869
+ current = true;
9870
+ },
9871
+ o(local) {
9872
+ transition_out(icons_markpen.$$.fragment, local);
9873
+ current = false;
9874
+ },
9875
+ d(detaching) {
9876
+ destroy_component(icons_markpen, detaching);
9877
+ }
9878
+ };
9879
+ }
9880
+ function create_if_block_12(ctx) {
9607
9881
  let icons_markpenfilled;
9608
9882
  let current;
9609
9883
  icons_markpenfilled = new Icons_default.MarkPenFilled({
@@ -9648,38 +9922,39 @@ function create_default_slot6(ctx) {
9648
9922
  let if_block;
9649
9923
  let if_block_anchor;
9650
9924
  let current;
9651
- const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
9925
+ const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4];
9652
9926
  const if_blocks = [];
9653
9927
  function select_block_type(ctx2, dirty) {
9654
9928
  if (
9655
- /*appliance*/
9656
- ctx2[3] === "pencil" && /*pencilType*/
9929
+ /*pencilType*/
9657
9930
  ctx2[5] === "mark"
9658
9931
  )
9659
9932
  return 0;
9660
9933
  if (
9661
- /*appliance*/
9662
- ctx2[3] === "pencil" && /*pencilType*/
9934
+ /*pencilType*/
9663
9935
  ctx2[5] === "laser"
9664
9936
  )
9665
9937
  return 1;
9666
9938
  if (
9667
- /*appliance*/
9668
- ctx2[3] === "pencil" && /*pencilType*/
9939
+ /*pencilType*/
9669
9940
  ctx2[5] === "pencil"
9670
9941
  )
9671
9942
  return 2;
9672
- return 3;
9943
+ return -1;
9944
+ }
9945
+ if (~(current_block_type_index = select_block_type(ctx))) {
9946
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9673
9947
  }
9674
- current_block_type_index = select_block_type(ctx);
9675
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9676
9948
  return {
9677
9949
  c() {
9678
- if_block.c();
9950
+ if (if_block)
9951
+ if_block.c();
9679
9952
  if_block_anchor = empty();
9680
9953
  },
9681
9954
  m(target, anchor) {
9682
- if_blocks[current_block_type_index].m(target, anchor);
9955
+ if (~current_block_type_index) {
9956
+ if_blocks[current_block_type_index].m(target, anchor);
9957
+ }
9683
9958
  insert(target, if_block_anchor, anchor);
9684
9959
  current = true;
9685
9960
  },
@@ -9687,22 +9962,30 @@ function create_default_slot6(ctx) {
9687
9962
  let previous_block_index = current_block_type_index;
9688
9963
  current_block_type_index = select_block_type(ctx2);
9689
9964
  if (current_block_type_index === previous_block_index) {
9690
- if_blocks[current_block_type_index].p(ctx2, dirty);
9965
+ if (~current_block_type_index) {
9966
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9967
+ }
9691
9968
  } else {
9692
- group_outros();
9693
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
9694
- if_blocks[previous_block_index] = null;
9695
- });
9696
- check_outros();
9697
- if_block = if_blocks[current_block_type_index];
9698
- if (!if_block) {
9699
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9700
- if_block.c();
9969
+ if (if_block) {
9970
+ group_outros();
9971
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9972
+ if_blocks[previous_block_index] = null;
9973
+ });
9974
+ check_outros();
9975
+ }
9976
+ if (~current_block_type_index) {
9977
+ if_block = if_blocks[current_block_type_index];
9978
+ if (!if_block) {
9979
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9980
+ if_block.c();
9981
+ } else {
9982
+ if_block.p(ctx2, dirty);
9983
+ }
9984
+ transition_in(if_block, 1);
9985
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9701
9986
  } else {
9702
- if_block.p(ctx2, dirty);
9987
+ if_block = null;
9703
9988
  }
9704
- transition_in(if_block, 1);
9705
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
9706
9989
  }
9707
9990
  },
9708
9991
  i(local) {
@@ -9716,7 +9999,9 @@ function create_default_slot6(ctx) {
9716
9999
  current = false;
9717
10000
  },
9718
10001
  d(detaching) {
9719
- if_blocks[current_block_type_index].d(detaching);
10002
+ if (~current_block_type_index) {
10003
+ if_blocks[current_block_type_index].d(detaching);
10004
+ }
9720
10005
  if (detaching)
9721
10006
  detach(if_block_anchor);
9722
10007
  }
@@ -11373,39 +11658,39 @@ var Laser_default2 = Laser2;
11373
11658
  // src/components/Toolbar/components/Contents.svelte
11374
11659
  function get_each_context4(ctx, list, i) {
11375
11660
  const child_ctx = ctx.slice();
11376
- child_ctx[50] = list[i];
11661
+ child_ctx[51] = list[i];
11377
11662
  const constants_0 = (
11378
11663
  /*netless_app*/
11379
- child_ctx[50]
11664
+ child_ctx[51]
11380
11665
  );
11381
- child_ctx[51] = constants_0.icon;
11382
- child_ctx[52] = constants_0.label;
11383
- child_ctx[53] = constants_0.kind;
11384
- child_ctx[54] = constants_0.onClick;
11666
+ child_ctx[52] = constants_0.icon;
11667
+ child_ctx[53] = constants_0.label;
11668
+ child_ctx[54] = constants_0.kind;
11669
+ child_ctx[55] = constants_0.onClick;
11385
11670
  const constants_1 = (
11386
11671
  /*$status*/
11387
11672
  child_ctx[22] && /*$status*/
11388
11673
  child_ctx[22][
11389
11674
  /*kind*/
11390
- child_ctx[53]
11675
+ child_ctx[54]
11391
11676
  ]
11392
11677
  );
11393
- child_ctx[55] = constants_1;
11678
+ child_ctx[56] = constants_1;
11394
11679
  const constants_2 = function func() {
11395
11680
  return (
11396
11681
  /*func*/
11397
- ctx[46](
11682
+ ctx[47](
11398
11683
  /*onClick*/
11399
- child_ctx[54]
11684
+ child_ctx[55]
11400
11685
  )
11401
11686
  );
11402
11687
  };
11403
- child_ctx[56] = constants_2;
11688
+ child_ctx[57] = constants_2;
11404
11689
  return child_ctx;
11405
11690
  }
11406
11691
  function get_each_context_1(ctx, list, i) {
11407
11692
  const child_ctx = ctx.slice();
11408
- child_ctx[59] = list[i];
11693
+ child_ctx[60] = list[i];
11409
11694
  return child_ctx;
11410
11695
  }
11411
11696
  function create_if_block_18(ctx) {
@@ -11445,7 +11730,7 @@ function create_if_block_18(ctx) {
11445
11730
  )]) : {};
11446
11731
  if (dirty[0] & /*theme*/
11447
11732
  2 | dirty[2] & /*$$scope*/
11448
- 1) {
11733
+ 2) {
11449
11734
  button_changes.$$scope = { dirty, ctx: ctx2 };
11450
11735
  }
11451
11736
  button.$set(button_changes);
@@ -11510,7 +11795,7 @@ function create_if_block_17(ctx) {
11510
11795
  props: {
11511
11796
  appliance: (
11512
11797
  /*appliance*/
11513
- ctx[18]
11798
+ ctx[17]
11514
11799
  ),
11515
11800
  theme: (
11516
11801
  /*theme*/
@@ -11542,9 +11827,9 @@ function create_if_block_17(ctx) {
11542
11827
  p(ctx2, dirty) {
11543
11828
  const laser_changes = {};
11544
11829
  if (dirty[0] & /*appliance*/
11545
- 262144)
11830
+ 131072)
11546
11831
  laser_changes.appliance = /*appliance*/
11547
- ctx2[18];
11832
+ ctx2[17];
11548
11833
  if (dirty[0] & /*theme*/
11549
11834
  2)
11550
11835
  laser_changes.theme = /*theme*/
@@ -11581,7 +11866,7 @@ function create_if_block_16(ctx) {
11581
11866
  props: {
11582
11867
  appliance: (
11583
11868
  /*appliance*/
11584
- ctx[18]
11869
+ ctx[17]
11585
11870
  ),
11586
11871
  theme: (
11587
11872
  /*theme*/
@@ -11613,9 +11898,9 @@ function create_if_block_16(ctx) {
11613
11898
  p(ctx2, dirty) {
11614
11899
  const hand_1_changes = {};
11615
11900
  if (dirty[0] & /*appliance*/
11616
- 262144)
11901
+ 131072)
11617
11902
  hand_1_changes.appliance = /*appliance*/
11618
- ctx2[18];
11903
+ ctx2[17];
11619
11904
  if (dirty[0] & /*theme*/
11620
11905
  2)
11621
11906
  hand_1_changes.theme = /*theme*/
@@ -11715,7 +12000,7 @@ function create_if_block_14(ctx) {
11715
12000
  props: {
11716
12001
  appliance: (
11717
12002
  /*appliance*/
11718
- ctx[18]
12003
+ ctx[17]
11719
12004
  ),
11720
12005
  theme: (
11721
12006
  /*theme*/
@@ -11747,9 +12032,9 @@ function create_if_block_14(ctx) {
11747
12032
  p(ctx2, dirty) {
11748
12033
  const eraser_1_changes = {};
11749
12034
  if (dirty[0] & /*appliance*/
11750
- 262144)
12035
+ 131072)
11751
12036
  eraser_1_changes.appliance = /*appliance*/
11752
- ctx2[18];
12037
+ ctx2[17];
11753
12038
  if (dirty[0] & /*theme*/
11754
12039
  2)
11755
12040
  eraser_1_changes.theme = /*theme*/
@@ -11790,7 +12075,7 @@ function create_if_block_13(ctx) {
11790
12075
  ),
11791
12076
  appliance: (
11792
12077
  /*appliance*/
11793
- ctx[18]
12078
+ ctx[17]
11794
12079
  ),
11795
12080
  theme: (
11796
12081
  /*theme*/
@@ -11825,9 +12110,9 @@ function create_if_block_13(ctx) {
11825
12110
  shapes_changes.app = /*app*/
11826
12111
  ctx2[0];
11827
12112
  if (dirty[0] & /*appliance*/
11828
- 262144)
12113
+ 131072)
11829
12114
  shapes_changes.appliance = /*appliance*/
11830
- ctx2[18];
12115
+ ctx2[17];
11831
12116
  if (dirty[0] & /*theme*/
11832
12117
  2)
11833
12118
  shapes_changes.theme = /*theme*/
@@ -11868,7 +12153,7 @@ function create_if_block_122(ctx) {
11868
12153
  props: {
11869
12154
  appliance: (
11870
12155
  /*appliance*/
11871
- ctx[18]
12156
+ ctx[17]
11872
12157
  ),
11873
12158
  theme: (
11874
12159
  /*theme*/
@@ -11904,9 +12189,9 @@ function create_if_block_122(ctx) {
11904
12189
  p(ctx2, dirty) {
11905
12190
  const text_1_changes = {};
11906
12191
  if (dirty[0] & /*appliance*/
11907
- 262144)
12192
+ 131072)
11908
12193
  text_1_changes.appliance = /*appliance*/
11909
- ctx2[18];
12194
+ ctx2[17];
11910
12195
  if (dirty[0] & /*theme*/
11911
12196
  2)
11912
12197
  text_1_changes.theme = /*theme*/
@@ -11951,7 +12236,7 @@ function create_if_block_11(ctx) {
11951
12236
  ),
11952
12237
  appliance: (
11953
12238
  /*appliance*/
11954
- ctx[18]
12239
+ ctx[17]
11955
12240
  ),
11956
12241
  theme: (
11957
12242
  /*theme*/
@@ -11991,9 +12276,9 @@ function create_if_block_11(ctx) {
11991
12276
  pencil_1_changes.pencilType = /*pencilType*/
11992
12277
  ctx2[16];
11993
12278
  if (dirty[0] & /*appliance*/
11994
- 262144)
12279
+ 131072)
11995
12280
  pencil_1_changes.appliance = /*appliance*/
11996
- ctx2[18];
12281
+ ctx2[17];
11997
12282
  if (dirty[0] & /*theme*/
11998
12283
  2)
11999
12284
  pencil_1_changes.theme = /*theme*/
@@ -12034,7 +12319,7 @@ function create_if_block_10(ctx) {
12034
12319
  props: {
12035
12320
  appliance: (
12036
12321
  /*appliance*/
12037
- ctx[18]
12322
+ ctx[17]
12038
12323
  ),
12039
12324
  theme: (
12040
12325
  /*theme*/
@@ -12066,9 +12351,9 @@ function create_if_block_10(ctx) {
12066
12351
  p(ctx2, dirty) {
12067
12352
  const selector_1_changes = {};
12068
12353
  if (dirty[0] & /*appliance*/
12069
- 262144)
12354
+ 131072)
12070
12355
  selector_1_changes.appliance = /*appliance*/
12071
- ctx2[18];
12356
+ ctx2[17];
12072
12357
  if (dirty[0] & /*theme*/
12073
12358
  2)
12074
12359
  selector_1_changes.theme = /*theme*/
@@ -12105,7 +12390,7 @@ function create_if_block_9(ctx) {
12105
12390
  props: {
12106
12391
  appliance: (
12107
12392
  /*appliance*/
12108
- ctx[18]
12393
+ ctx[17]
12109
12394
  ),
12110
12395
  theme: (
12111
12396
  /*theme*/
@@ -12137,9 +12422,9 @@ function create_if_block_9(ctx) {
12137
12422
  p(ctx2, dirty) {
12138
12423
  const clicker_1_changes = {};
12139
12424
  if (dirty[0] & /*appliance*/
12140
- 262144)
12425
+ 131072)
12141
12426
  clicker_1_changes.appliance = /*appliance*/
12142
- ctx2[18];
12427
+ ctx2[17];
12143
12428
  if (dirty[0] & /*theme*/
12144
12429
  2)
12145
12430
  clicker_1_changes.theme = /*theme*/
@@ -12189,47 +12474,47 @@ function create_each_block_1(ctx) {
12189
12474
  function select_block_type(ctx2, dirty) {
12190
12475
  if (
12191
12476
  /*item*/
12192
- ctx2[59] === "clicker"
12477
+ ctx2[60] === "clicker"
12193
12478
  )
12194
12479
  return 0;
12195
12480
  if (
12196
12481
  /*item*/
12197
- ctx2[59] === "selector"
12482
+ ctx2[60] === "selector"
12198
12483
  )
12199
12484
  return 1;
12200
12485
  if (
12201
12486
  /*item*/
12202
- ctx2[59] === "pencil"
12487
+ ctx2[60] === "pencil"
12203
12488
  )
12204
12489
  return 2;
12205
12490
  if (
12206
12491
  /*item*/
12207
- ctx2[59] === "text"
12492
+ ctx2[60] === "text"
12208
12493
  )
12209
12494
  return 3;
12210
12495
  if (
12211
12496
  /*item*/
12212
- ctx2[59] === "shapes"
12497
+ ctx2[60] === "shapes"
12213
12498
  )
12214
12499
  return 4;
12215
12500
  if (
12216
12501
  /*item*/
12217
- ctx2[59] === "eraser"
12502
+ ctx2[60] === "eraser"
12218
12503
  )
12219
12504
  return 5;
12220
12505
  if (
12221
12506
  /*item*/
12222
- ctx2[59] === "clear"
12507
+ ctx2[60] === "clear"
12223
12508
  )
12224
12509
  return 6;
12225
12510
  if (
12226
12511
  /*item*/
12227
- ctx2[59] === "hand"
12512
+ ctx2[60] === "hand"
12228
12513
  )
12229
12514
  return 7;
12230
12515
  if (
12231
12516
  /*item*/
12232
- ctx2[59] === "laserPointer"
12517
+ ctx2[60] === "laserPointer"
12233
12518
  )
12234
12519
  return 8;
12235
12520
  return -1;
@@ -12366,7 +12651,7 @@ function create_if_block_8(ctx) {
12366
12651
  ]) : {};
12367
12652
  if (dirty[0] & /*theme*/
12368
12653
  2 | dirty[2] & /*$$scope*/
12369
- 1) {
12654
+ 2) {
12370
12655
  button_changes.$$scope = { dirty, ctx: ctx2 };
12371
12656
  }
12372
12657
  button.$set(button_changes);
@@ -12468,7 +12753,7 @@ function create_if_block_7(ctx) {
12468
12753
  ctx2[3];
12469
12754
  if (dirty[0] & /*theme*/
12470
12755
  2 | dirty[2] & /*$$scope*/
12471
- 1) {
12756
+ 2) {
12472
12757
  button_changes.$$scope = { dirty, ctx: ctx2 };
12473
12758
  }
12474
12759
  button.$set(button_changes);
@@ -12537,7 +12822,7 @@ function create_if_block14(ctx) {
12537
12822
  let if_block2;
12538
12823
  let if_block2_anchor;
12539
12824
  let current;
12540
- const if_block_creators = [create_if_block_5, create_if_block_6];
12825
+ const if_block_creators = [create_if_block_52, create_if_block_6];
12541
12826
  const if_blocks = [];
12542
12827
  function select_block_type_1(ctx2, dirty) {
12543
12828
  if (
@@ -12555,7 +12840,7 @@ function create_if_block14(ctx) {
12555
12840
  if (~(current_block_type_index = select_block_type_1(ctx))) {
12556
12841
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12557
12842
  }
12558
- const if_block_creators_1 = [create_if_block_3, create_if_block_4];
12843
+ const if_block_creators_1 = [create_if_block_32, create_if_block_42];
12559
12844
  const if_blocks_1 = [];
12560
12845
  function select_block_type_2(ctx2, dirty) {
12561
12846
  if (
@@ -12774,7 +13059,7 @@ function create_if_block_6(ctx) {
12774
13059
  ]) : {};
12775
13060
  if (dirty[0] & /*theme*/
12776
13061
  2 | dirty[2] & /*$$scope*/
12777
- 1) {
13062
+ 2) {
12778
13063
  button_changes.$$scope = { dirty, ctx: ctx2 };
12779
13064
  }
12780
13065
  button.$set(button_changes);
@@ -12794,7 +13079,7 @@ function create_if_block_6(ctx) {
12794
13079
  }
12795
13080
  };
12796
13081
  }
12797
- function create_if_block_5(ctx) {
13082
+ function create_if_block_52(ctx) {
12798
13083
  let button;
12799
13084
  let current;
12800
13085
  const button_spread_levels = [
@@ -12812,8 +13097,8 @@ function create_if_block_5(ctx) {
12812
13097
  button = new Button_default({ props: button_props });
12813
13098
  button.$on(
12814
13099
  "click",
12815
- /*pencil*/
12816
- ctx[28]
13100
+ /*usePencil*/
13101
+ ctx[34]
12817
13102
  );
12818
13103
  return {
12819
13104
  c() {
@@ -12836,7 +13121,7 @@ function create_if_block_5(ctx) {
12836
13121
  ]) : {};
12837
13122
  if (dirty[0] & /*theme*/
12838
13123
  2 | dirty[2] & /*$$scope*/
12839
- 1) {
13124
+ 2) {
12840
13125
  button_changes.$$scope = { dirty, ctx: ctx2 };
12841
13126
  }
12842
13127
  button.$set(button_changes);
@@ -12934,7 +13219,7 @@ function create_default_slot_43(ctx) {
12934
13219
  }
12935
13220
  };
12936
13221
  }
12937
- function create_if_block_4(ctx) {
13222
+ function create_if_block_42(ctx) {
12938
13223
  let button;
12939
13224
  let current;
12940
13225
  const button_spread_levels = [
@@ -12953,7 +13238,7 @@ function create_if_block_4(ctx) {
12953
13238
  button.$on(
12954
13239
  "click",
12955
13240
  /*useLaserPen*/
12956
- ctx[34]
13241
+ ctx[35]
12957
13242
  );
12958
13243
  return {
12959
13244
  c() {
@@ -12976,7 +13261,7 @@ function create_if_block_4(ctx) {
12976
13261
  ]) : {};
12977
13262
  if (dirty[0] & /*theme*/
12978
13263
  2 | dirty[2] & /*$$scope*/
12979
- 1) {
13264
+ 2) {
12980
13265
  button_changes.$$scope = { dirty, ctx: ctx2 };
12981
13266
  }
12982
13267
  button.$set(button_changes);
@@ -12996,7 +13281,7 @@ function create_if_block_4(ctx) {
12996
13281
  }
12997
13282
  };
12998
13283
  }
12999
- function create_if_block_3(ctx) {
13284
+ function create_if_block_32(ctx) {
13000
13285
  let button;
13001
13286
  let current;
13002
13287
  const button_spread_levels = [
@@ -13033,7 +13318,7 @@ function create_if_block_3(ctx) {
13033
13318
  ]) : {};
13034
13319
  if (dirty[0] & /*theme*/
13035
13320
  2 | dirty[2] & /*$$scope*/
13036
- 1) {
13321
+ 2) {
13037
13322
  button_changes.$$scope = { dirty, ctx: ctx2 };
13038
13323
  }
13039
13324
  button.$set(button_changes);
@@ -13150,7 +13435,7 @@ function create_if_block_22(ctx) {
13150
13435
  button.$on(
13151
13436
  "click",
13152
13437
  /*useMarkPen*/
13153
- ctx[35]
13438
+ ctx[36]
13154
13439
  );
13155
13440
  return {
13156
13441
  c() {
@@ -13173,7 +13458,7 @@ function create_if_block_22(ctx) {
13173
13458
  ]) : {};
13174
13459
  if (dirty[0] & /*theme*/
13175
13460
  2 | dirty[2] & /*$$scope*/
13176
- 1) {
13461
+ 2) {
13177
13462
  button_changes.$$scope = { dirty, ctx: ctx2 };
13178
13463
  }
13179
13464
  button.$set(button_changes);
@@ -13230,7 +13515,7 @@ function create_if_block_19(ctx) {
13230
13515
  ]) : {};
13231
13516
  if (dirty[0] & /*theme*/
13232
13517
  2 | dirty[2] & /*$$scope*/
13233
- 1) {
13518
+ 2) {
13234
13519
  button_changes.$$scope = { dirty, ctx: ctx2 };
13235
13520
  }
13236
13521
  button.$set(button_changes);
@@ -13339,7 +13624,7 @@ function create_each_block4(ctx) {
13339
13624
  let span;
13340
13625
  let t1_value = (
13341
13626
  /*label*/
13342
- ctx[52] + ""
13627
+ ctx[53] + ""
13343
13628
  );
13344
13629
  let t1;
13345
13630
  let span_class_value;
@@ -13361,40 +13646,40 @@ function create_each_block4(ctx) {
13361
13646
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
13362
13647
  ctx[1]);
13363
13648
  if (!src_url_equal(img.src, img_src_value = /*icon*/
13364
- ctx[51]))
13649
+ ctx[52]))
13365
13650
  attr(img, "src", img_src_value);
13366
13651
  attr(img, "alt", img_alt_value = /*kind*/
13367
- ctx[53]);
13652
+ ctx[54]);
13368
13653
  attr(img, "title", img_title_value = /*label*/
13369
- ctx[52]);
13654
+ ctx[53]);
13370
13655
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
13371
13656
  ctx[1]);
13372
13657
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
13373
- ctx[53] + " " + /*theme*/
13658
+ ctx[54] + " " + /*theme*/
13374
13659
  ctx[1]);
13375
13660
  attr(button, "title", button_title_value = /*label*/
13376
- ctx[52] + /*state*/
13377
- (ctx[55] && /*state*/
13378
- ctx[55].reason ? ": " + /*state*/
13379
- ctx[55].reason : ""));
13661
+ ctx[53] + /*state*/
13662
+ (ctx[56] && /*state*/
13663
+ ctx[56].reason ? ": " + /*state*/
13664
+ ctx[56].reason : ""));
13380
13665
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
13381
- ctx[50].kind);
13666
+ ctx[51].kind);
13382
13667
  button.disabled = button_disabled_value = /*state*/
13383
- ctx[55] && /*state*/
13384
- ctx[55].status !== "idle";
13668
+ ctx[56] && /*state*/
13669
+ ctx[56].status !== "idle";
13385
13670
  toggle_class(
13386
13671
  button,
13387
13672
  "is-loading",
13388
13673
  /*state*/
13389
- ctx[55] && /*state*/
13390
- ctx[55].status === "loading"
13674
+ ctx[56] && /*state*/
13675
+ ctx[56].status === "loading"
13391
13676
  );
13392
13677
  toggle_class(
13393
13678
  button,
13394
13679
  "is-failed",
13395
13680
  /*state*/
13396
- ctx[55] && /*state*/
13397
- ctx[55].status === "failed"
13681
+ ctx[56] && /*state*/
13682
+ ctx[56].status === "failed"
13398
13683
  );
13399
13684
  },
13400
13685
  m(target, anchor) {
@@ -13408,9 +13693,9 @@ function create_each_block4(ctx) {
13408
13693
  dispose = listen(button, "click", function() {
13409
13694
  if (is_function(
13410
13695
  /*on_click*/
13411
- ctx[56]
13696
+ ctx[57]
13412
13697
  ))
13413
- ctx[56].apply(this, arguments);
13698
+ ctx[57].apply(this, arguments);
13414
13699
  });
13415
13700
  mounted = true;
13416
13701
  }
@@ -13424,22 +13709,22 @@ function create_each_block4(ctx) {
13424
13709
  }
13425
13710
  if (dirty[0] & /*$apps*/
13426
13711
  2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
13427
- ctx[51])) {
13712
+ ctx[52])) {
13428
13713
  attr(img, "src", img_src_value);
13429
13714
  }
13430
13715
  if (dirty[0] & /*$apps*/
13431
13716
  2097152 && img_alt_value !== (img_alt_value = /*kind*/
13432
- ctx[53])) {
13717
+ ctx[54])) {
13433
13718
  attr(img, "alt", img_alt_value);
13434
13719
  }
13435
13720
  if (dirty[0] & /*$apps*/
13436
13721
  2097152 && img_title_value !== (img_title_value = /*label*/
13437
- ctx[52])) {
13722
+ ctx[53])) {
13438
13723
  attr(img, "title", img_title_value);
13439
13724
  }
13440
13725
  if (dirty[0] & /*$apps*/
13441
13726
  2097152 && t1_value !== (t1_value = /*label*/
13442
- ctx[52] + ""))
13727
+ ctx[53] + ""))
13443
13728
  set_data(t1, t1_value);
13444
13729
  if (dirty[0] & /*theme*/
13445
13730
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -13448,27 +13733,27 @@ function create_each_block4(ctx) {
13448
13733
  }
13449
13734
  if (dirty[0] & /*$apps, theme*/
13450
13735
  2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
13451
- ctx[53] + " " + /*theme*/
13736
+ ctx[54] + " " + /*theme*/
13452
13737
  ctx[1])) {
13453
13738
  attr(button, "class", button_class_value);
13454
13739
  }
13455
13740
  if (dirty[0] & /*$apps, $status*/
13456
13741
  6291456 && button_title_value !== (button_title_value = /*label*/
13457
- ctx[52] + /*state*/
13458
- (ctx[55] && /*state*/
13459
- ctx[55].reason ? ": " + /*state*/
13460
- ctx[55].reason : ""))) {
13742
+ ctx[53] + /*state*/
13743
+ (ctx[56] && /*state*/
13744
+ ctx[56].reason ? ": " + /*state*/
13745
+ ctx[56].reason : ""))) {
13461
13746
  attr(button, "title", button_title_value);
13462
13747
  }
13463
13748
  if (dirty[0] & /*$apps*/
13464
13749
  2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
13465
- ctx[50].kind)) {
13750
+ ctx[51].kind)) {
13466
13751
  attr(button, "data-app-kind", button_data_app_kind_value);
13467
13752
  }
13468
13753
  if (dirty[0] & /*$status, $apps*/
13469
13754
  6291456 && button_disabled_value !== (button_disabled_value = /*state*/
13470
- ctx[55] && /*state*/
13471
- ctx[55].status !== "idle")) {
13755
+ ctx[56] && /*state*/
13756
+ ctx[56].status !== "idle")) {
13472
13757
  button.disabled = button_disabled_value;
13473
13758
  }
13474
13759
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -13477,8 +13762,8 @@ function create_each_block4(ctx) {
13477
13762
  button,
13478
13763
  "is-loading",
13479
13764
  /*state*/
13480
- ctx[55] && /*state*/
13481
- ctx[55].status === "loading"
13765
+ ctx[56] && /*state*/
13766
+ ctx[56].status === "loading"
13482
13767
  );
13483
13768
  }
13484
13769
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -13487,8 +13772,8 @@ function create_each_block4(ctx) {
13487
13772
  button,
13488
13773
  "is-failed",
13489
13774
  /*state*/
13490
- ctx[55] && /*state*/
13491
- ctx[55].status === "failed"
13775
+ ctx[56] && /*state*/
13776
+ ctx[56].status === "failed"
13492
13777
  );
13493
13778
  }
13494
13779
  },
@@ -13777,11 +14062,11 @@ function create_fragment71(ctx) {
13777
14062
  append(div3, div2);
13778
14063
  append(div3, t6);
13779
14064
  mount_component(strokecolor0, div3, null);
13780
- ctx[43](div3);
14065
+ ctx[44](div3);
13781
14066
  append(div9, t7);
13782
14067
  append(div9, div4);
13783
14068
  mount_component(textcolor, div4, null);
13784
- ctx[44](div4);
14069
+ ctx[45](div4);
13785
14070
  append(div9, t8);
13786
14071
  append(div9, div7);
13787
14072
  mount_component(selectshapes, div7, null);
@@ -13793,7 +14078,7 @@ function create_fragment71(ctx) {
13793
14078
  append(div7, div6);
13794
14079
  append(div7, t12);
13795
14080
  mount_component(strokecolor1, div7, null);
13796
- ctx[45](div7);
14081
+ ctx[46](div7);
13797
14082
  append(div9, t13);
13798
14083
  append(div9, div8);
13799
14084
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -13801,7 +14086,7 @@ function create_fragment71(ctx) {
13801
14086
  each_blocks[i].m(div8, null);
13802
14087
  }
13803
14088
  }
13804
- ctx[47](div8);
14089
+ ctx[48](div8);
13805
14090
  current = true;
13806
14091
  if (!mounted) {
13807
14092
  dispose = [
@@ -13847,7 +14132,7 @@ function create_fragment71(ctx) {
13847
14132
  check_outros();
13848
14133
  }
13849
14134
  if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13850
- 2081799299 | dirty[1] & /*clear, hand, laserPointer*/
14135
+ 2081668227 | dirty[1] & /*clear, hand, laserPointer*/
13851
14136
  7) {
13852
14137
  each_value_1 = /*items*/
13853
14138
  ctx2[7];
@@ -14138,15 +14423,15 @@ function create_fragment71(ctx) {
14138
14423
  if_block3.d();
14139
14424
  destroy_component(strokewidth0);
14140
14425
  destroy_component(strokecolor0);
14141
- ctx[43](null);
14142
- destroy_component(textcolor);
14143
14426
  ctx[44](null);
14427
+ destroy_component(textcolor);
14428
+ ctx[45](null);
14144
14429
  destroy_component(selectshapes);
14145
14430
  destroy_component(strokewidth1);
14146
14431
  destroy_component(strokecolor1);
14147
- ctx[45](null);
14432
+ ctx[46](null);
14148
14433
  destroy_each(each_blocks, detaching);
14149
- ctx[47](null);
14434
+ ctx[48](null);
14150
14435
  mounted = false;
14151
14436
  run_all(dispose);
14152
14437
  }
@@ -14166,8 +14451,8 @@ function instance71($$self, $$props, $$invalidate) {
14166
14451
  let hasUseMarkPen;
14167
14452
  let pencilType;
14168
14453
  let $top;
14169
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(41, $memberState = $$value)), memberState);
14170
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(42, $scroll_height = $$value)), scroll_height);
14454
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(42, $memberState = $$value)), memberState);
14455
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(43, $scroll_height = $$value)), scroll_height);
14171
14456
  let $apps;
14172
14457
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
14173
14458
  component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
@@ -14192,7 +14477,7 @@ function instance71($$self, $$props, $$invalidate) {
14192
14477
  let apps_panel;
14193
14478
  let btn_props;
14194
14479
  let top = writable(0);
14195
- component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
14480
+ component_subscribe($$self, top, (value) => $$invalidate(50, $top = value));
14196
14481
  function scroll_up() {
14197
14482
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
14198
14483
  }
@@ -14206,15 +14491,18 @@ function instance71($$self, $$props, $$invalidate) {
14206
14491
  app == null ? void 0 : app.setAppliance("selector");
14207
14492
  }
14208
14493
  function pencil() {
14209
- var _a;
14210
14494
  if (hasAppliancePlugin) {
14211
- (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14212
- currentApplianceName: "pencil",
14213
- useLaserPen: false,
14214
- strokeOpacity: 1
14215
- });
14495
+ if (appliance !== "pencil") {
14496
+ if (pencilType === "mark") {
14497
+ useMarkPen();
14498
+ } else if (pencilType === "laser") {
14499
+ useLaserPen();
14500
+ } else {
14501
+ usePencil();
14502
+ }
14503
+ }
14216
14504
  } else {
14217
- app == null ? void 0 : app.setAppliance("pencil");
14505
+ usePencil();
14218
14506
  }
14219
14507
  }
14220
14508
  function text2() {
@@ -14232,6 +14520,18 @@ function instance71($$self, $$props, $$invalidate) {
14232
14520
  function clear() {
14233
14521
  app == null ? void 0 : app.cleanCurrentScene();
14234
14522
  }
14523
+ function usePencil() {
14524
+ var _a;
14525
+ if (hasAppliancePlugin) {
14526
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14527
+ currentApplianceName: "pencil",
14528
+ useLaserPen: false,
14529
+ strokeOpacity: 1
14530
+ });
14531
+ } else {
14532
+ app == null ? void 0 : app.setAppliance("pencil");
14533
+ }
14534
+ }
14235
14535
  function useLaserPen() {
14236
14536
  var _a;
14237
14537
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
@@ -14288,7 +14588,7 @@ function instance71($$self, $$props, $$invalidate) {
14288
14588
  if ("scroll_height" in $$props2)
14289
14589
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
14290
14590
  if ("computed_height" in $$props2)
14291
- $$invalidate(36, computed_height = $$props2.computed_height);
14591
+ $$invalidate(37, computed_height = $$props2.computed_height);
14292
14592
  if ("scrollable" in $$props2)
14293
14593
  $$invalidate(5, scrollable = $$props2.scrollable);
14294
14594
  if ("placement" in $$props2)
@@ -14317,11 +14617,11 @@ function instance71($$self, $$props, $$invalidate) {
14317
14617
  }
14318
14618
  if ($$self.$$.dirty[0] & /*app*/
14319
14619
  1) {
14320
- $$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
14620
+ $$invalidate(41, hotkeys = app == null ? void 0 : app.hotKeys);
14321
14621
  }
14322
14622
  if ($$self.$$.dirty[0] & /*t*/
14323
14623
  1024 | $$self.$$.dirty[1] & /*hotkeys*/
14324
- 512) {
14624
+ 1024) {
14325
14625
  $$invalidate(20, c = {
14326
14626
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
14327
14627
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -14337,32 +14637,32 @@ function instance71($$self, $$props, $$invalidate) {
14337
14637
  $$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
14338
14638
  }
14339
14639
  if ($$self.$$.dirty[1] & /*$memberState*/
14340
- 1024) {
14341
- $$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
14640
+ 2048) {
14641
+ $$invalidate(17, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
14342
14642
  }
14343
14643
  if ($$self.$$.dirty[0] & /*app*/
14344
14644
  1) {
14345
- $$subscribe_status($$invalidate(17, status = app == null ? void 0 : app.appsStatus));
14645
+ $$subscribe_status($$invalidate(18, status = app == null ? void 0 : app.appsStatus));
14346
14646
  }
14347
14647
  if ($$self.$$.dirty[0] & /*scrollable*/
14348
14648
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
14349
- 2080) {
14649
+ 4160) {
14350
14650
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
14351
14651
  }
14352
14652
  if ($$self.$$.dirty[0] & /*app*/
14353
14653
  1) {
14354
- $$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14654
+ $$invalidate(38, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14355
14655
  }
14356
14656
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
14357
- 1088) {
14358
- $$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
14657
+ 2176) {
14658
+ $$invalidate(40, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
14359
14659
  }
14360
14660
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
14361
- 1088) {
14362
- $$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
14661
+ 2176) {
14662
+ $$invalidate(39, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
14363
14663
  }
14364
14664
  if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
14365
- 384) {
14665
+ 768) {
14366
14666
  $$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
14367
14667
  }
14368
14668
  };
@@ -14384,8 +14684,8 @@ function instance71($$self, $$props, $$invalidate) {
14384
14684
  apps_panel,
14385
14685
  btn_props,
14386
14686
  pencilType,
14387
- status,
14388
14687
  appliance,
14688
+ status,
14389
14689
  memberState,
14390
14690
  c,
14391
14691
  $apps,
@@ -14401,6 +14701,7 @@ function instance71($$self, $$props, $$invalidate) {
14401
14701
  hand,
14402
14702
  laserPointer,
14403
14703
  clear,
14704
+ usePencil,
14404
14705
  useLaserPen,
14405
14706
  useMarkPen,
14406
14707
  computed_height,
@@ -14432,7 +14733,7 @@ var Contents = class extends SvelteComponent {
14432
14733
  language: 2,
14433
14734
  disabled: 3,
14434
14735
  scroll_height: 4,
14435
- computed_height: 36,
14736
+ computed_height: 37,
14436
14737
  scrollable: 5,
14437
14738
  placement: 6,
14438
14739
  items: 7,
@@ -14854,7 +15155,7 @@ function instance72($$self, $$props, $$invalidate) {
14854
15155
  if ((app == null ? void 0 : app.manager) && (app == null ? void 0 : app.manager.room)) {
14855
15156
  if (colors2 && !((_b = config.colors) == null ? void 0 : _b.length)) {
14856
15157
  const floatBarOptions = app == null ? void 0 : app.manager.room.floatBarOptions;
14857
- if (floatBarOptions.colors) {
15158
+ if (floatBarOptions == null ? void 0 : floatBarOptions.colors) {
14858
15159
  $$invalidate(0, colors2 = floatBarOptions.colors);
14859
15160
  }
14860
15161
  } else {
@@ -14909,7 +15210,7 @@ function get_each_context5(ctx, list, i) {
14909
15210
  child_ctx[25] = list[i];
14910
15211
  return child_ctx;
14911
15212
  }
14912
- function create_else_block_12(ctx) {
15213
+ function create_else_block_13(ctx) {
14913
15214
  var _a;
14914
15215
  let icon;
14915
15216
  let current;
@@ -15199,7 +15500,7 @@ function create_default_slot_25(ctx) {
15199
15500
  let if_block;
15200
15501
  let if_block_anchor;
15201
15502
  let current;
15202
- const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
15503
+ const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_13];
15203
15504
  const if_blocks = [];
15204
15505
  function select_block_type(ctx2, dirty) {
15205
15506
  if (
@@ -16254,7 +16555,7 @@ var ReplayFastboard = class extends SvelteComponent {
16254
16555
  var ReplayFastboard_default = ReplayFastboard;
16255
16556
 
16256
16557
  // src/components/Fastboard/Fastboard.svelte
16257
- function create_if_block_32(ctx) {
16558
+ function create_if_block_33(ctx) {
16258
16559
  let toolbar;
16259
16560
  let current;
16260
16561
  toolbar = new Toolbar_default({
@@ -16511,7 +16812,7 @@ function create_fragment75(ctx) {
16511
16812
  let dispose;
16512
16813
  let if_block0 = (
16513
16814
  /*config*/
16514
- ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx)
16815
+ ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_33(ctx)
16515
16816
  );
16516
16817
  let if_block1 = (
16517
16818
  /*config*/
@@ -16614,7 +16915,7 @@ function create_fragment75(ctx) {
16614
16915
  transition_in(if_block0, 1);
16615
16916
  }
16616
16917
  } else {
16617
- if_block0 = create_if_block_32(ctx2);
16918
+ if_block0 = create_if_block_33(ctx2);
16618
16919
  if_block0.c();
16619
16920
  transition_in(if_block0, 1);
16620
16921
  if_block0.m(div1, null);
@@ -16907,7 +17208,7 @@ function createUI(app, div) {
16907
17208
  let colors2;
16908
17209
  if ((app == null ? void 0 : app.manager) && app.manager.room) {
16909
17210
  const floatBarOptions = app.manager.room.floatBarOptions;
16910
- if (floatBarOptions.colors) {
17211
+ if (floatBarOptions == null ? void 0 : floatBarOptions.colors) {
16911
17212
  colors2 = floatBarOptions.colors;
16912
17213
  }
16913
17214
  }