@netless/fastboard-ui 1.0.2 → 1.0.3

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.
@@ -8749,7 +8749,205 @@ var Selector2 = class extends SvelteComponent {
8749
8749
  }
8750
8750
  };
8751
8751
  var Selector_default2 = Selector2;
8752
- function create_else_block8(ctx) {
8752
+ function create_if_block_4(ctx) {
8753
+ let current_block_type_index;
8754
+ let if_block;
8755
+ let if_block_anchor;
8756
+ let current;
8757
+ const if_block_creators = [create_if_block_5, create_else_block_2];
8758
+ const if_blocks = [];
8759
+ function select_block_type_3(ctx2, dirty) {
8760
+ if (
8761
+ /*appliance*/
8762
+ ctx2[3] === "pencil"
8763
+ )
8764
+ return 0;
8765
+ return 1;
8766
+ }
8767
+ current_block_type_index = select_block_type_3(ctx);
8768
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8769
+ return {
8770
+ c() {
8771
+ if_block.c();
8772
+ if_block_anchor = empty();
8773
+ },
8774
+ m(target, anchor) {
8775
+ if_blocks[current_block_type_index].m(target, anchor);
8776
+ insert(target, if_block_anchor, anchor);
8777
+ current = true;
8778
+ },
8779
+ p(ctx2, dirty) {
8780
+ let previous_block_index = current_block_type_index;
8781
+ current_block_type_index = select_block_type_3(ctx2);
8782
+ if (current_block_type_index === previous_block_index) {
8783
+ if_blocks[current_block_type_index].p(ctx2, dirty);
8784
+ } else {
8785
+ group_outros();
8786
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
8787
+ if_blocks[previous_block_index] = null;
8788
+ });
8789
+ check_outros();
8790
+ if_block = if_blocks[current_block_type_index];
8791
+ if (!if_block) {
8792
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
8793
+ if_block.c();
8794
+ } else {
8795
+ if_block.p(ctx2, dirty);
8796
+ }
8797
+ transition_in(if_block, 1);
8798
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8799
+ }
8800
+ },
8801
+ i(local) {
8802
+ if (current)
8803
+ return;
8804
+ transition_in(if_block);
8805
+ current = true;
8806
+ },
8807
+ o(local) {
8808
+ transition_out(if_block);
8809
+ current = false;
8810
+ },
8811
+ d(detaching) {
8812
+ if_blocks[current_block_type_index].d(detaching);
8813
+ if (detaching)
8814
+ detach(if_block_anchor);
8815
+ }
8816
+ };
8817
+ }
8818
+ function create_if_block_2(ctx) {
8819
+ let current_block_type_index;
8820
+ let if_block;
8821
+ let if_block_anchor;
8822
+ let current;
8823
+ const if_block_creators = [create_if_block_3, create_else_block_12];
8824
+ const if_blocks = [];
8825
+ function select_block_type_2(ctx2, dirty) {
8826
+ if (
8827
+ /*appliance*/
8828
+ ctx2[3] === "pencil"
8829
+ )
8830
+ return 0;
8831
+ return 1;
8832
+ }
8833
+ current_block_type_index = select_block_type_2(ctx);
8834
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8835
+ return {
8836
+ c() {
8837
+ if_block.c();
8838
+ if_block_anchor = empty();
8839
+ },
8840
+ m(target, anchor) {
8841
+ if_blocks[current_block_type_index].m(target, anchor);
8842
+ insert(target, if_block_anchor, anchor);
8843
+ current = true;
8844
+ },
8845
+ p(ctx2, dirty) {
8846
+ let previous_block_index = current_block_type_index;
8847
+ current_block_type_index = select_block_type_2(ctx2);
8848
+ if (current_block_type_index === previous_block_index) {
8849
+ if_blocks[current_block_type_index].p(ctx2, dirty);
8850
+ } else {
8851
+ group_outros();
8852
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
8853
+ if_blocks[previous_block_index] = null;
8854
+ });
8855
+ check_outros();
8856
+ if_block = if_blocks[current_block_type_index];
8857
+ if (!if_block) {
8858
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
8859
+ if_block.c();
8860
+ } else {
8861
+ if_block.p(ctx2, dirty);
8862
+ }
8863
+ transition_in(if_block, 1);
8864
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8865
+ }
8866
+ },
8867
+ i(local) {
8868
+ if (current)
8869
+ return;
8870
+ transition_in(if_block);
8871
+ current = true;
8872
+ },
8873
+ o(local) {
8874
+ transition_out(if_block);
8875
+ current = false;
8876
+ },
8877
+ d(detaching) {
8878
+ if_blocks[current_block_type_index].d(detaching);
8879
+ if (detaching)
8880
+ detach(if_block_anchor);
8881
+ }
8882
+ };
8883
+ }
8884
+ function create_if_block8(ctx) {
8885
+ let current_block_type_index;
8886
+ let if_block;
8887
+ let if_block_anchor;
8888
+ let current;
8889
+ const if_block_creators = [create_if_block_12, create_else_block8];
8890
+ const if_blocks = [];
8891
+ function select_block_type_1(ctx2, dirty) {
8892
+ if (
8893
+ /*appliance*/
8894
+ ctx2[3] === "pencil"
8895
+ )
8896
+ return 0;
8897
+ return 1;
8898
+ }
8899
+ current_block_type_index = select_block_type_1(ctx);
8900
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8901
+ return {
8902
+ c() {
8903
+ if_block.c();
8904
+ if_block_anchor = empty();
8905
+ },
8906
+ m(target, anchor) {
8907
+ if_blocks[current_block_type_index].m(target, anchor);
8908
+ insert(target, if_block_anchor, anchor);
8909
+ current = true;
8910
+ },
8911
+ p(ctx2, dirty) {
8912
+ let previous_block_index = current_block_type_index;
8913
+ current_block_type_index = select_block_type_1(ctx2);
8914
+ if (current_block_type_index === previous_block_index) {
8915
+ if_blocks[current_block_type_index].p(ctx2, dirty);
8916
+ } else {
8917
+ group_outros();
8918
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
8919
+ if_blocks[previous_block_index] = null;
8920
+ });
8921
+ check_outros();
8922
+ if_block = if_blocks[current_block_type_index];
8923
+ if (!if_block) {
8924
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
8925
+ if_block.c();
8926
+ } else {
8927
+ if_block.p(ctx2, dirty);
8928
+ }
8929
+ transition_in(if_block, 1);
8930
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8931
+ }
8932
+ },
8933
+ i(local) {
8934
+ if (current)
8935
+ return;
8936
+ transition_in(if_block);
8937
+ current = true;
8938
+ },
8939
+ o(local) {
8940
+ transition_out(if_block);
8941
+ current = false;
8942
+ },
8943
+ d(detaching) {
8944
+ if_blocks[current_block_type_index].d(detaching);
8945
+ if (detaching)
8946
+ detach(if_block_anchor);
8947
+ }
8948
+ };
8949
+ }
8950
+ function create_else_block_2(ctx) {
8753
8951
  let icons_pencil;
8754
8952
  let current;
8755
8953
  icons_pencil = new Icons_default.Pencil({ props: { theme: (
@@ -8787,7 +8985,7 @@ function create_else_block8(ctx) {
8787
8985
  }
8788
8986
  };
8789
8987
  }
8790
- function create_if_block_2(ctx) {
8988
+ function create_if_block_5(ctx) {
8791
8989
  let icons_pencilfilled;
8792
8990
  let current;
8793
8991
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -8827,7 +9025,45 @@ function create_if_block_2(ctx) {
8827
9025
  }
8828
9026
  };
8829
9027
  }
8830
- function create_if_block_12(ctx) {
9028
+ function create_else_block_12(ctx) {
9029
+ let icons_laserpen;
9030
+ let current;
9031
+ icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
9032
+ /*theme*/
9033
+ ctx[4]
9034
+ ) } });
9035
+ return {
9036
+ c() {
9037
+ create_component(icons_laserpen.$$.fragment);
9038
+ },
9039
+ m(target, anchor) {
9040
+ mount_component(icons_laserpen, target, anchor);
9041
+ current = true;
9042
+ },
9043
+ p(ctx2, dirty) {
9044
+ const icons_laserpen_changes = {};
9045
+ if (dirty & /*theme*/
9046
+ 16)
9047
+ icons_laserpen_changes.theme = /*theme*/
9048
+ ctx2[4];
9049
+ icons_laserpen.$set(icons_laserpen_changes);
9050
+ },
9051
+ i(local) {
9052
+ if (current)
9053
+ return;
9054
+ transition_in(icons_laserpen.$$.fragment, local);
9055
+ current = true;
9056
+ },
9057
+ o(local) {
9058
+ transition_out(icons_laserpen.$$.fragment, local);
9059
+ current = false;
9060
+ },
9061
+ d(detaching) {
9062
+ destroy_component(icons_laserpen, detaching);
9063
+ }
9064
+ };
9065
+ }
9066
+ function create_if_block_3(ctx) {
8831
9067
  let icons_laserpenfilled;
8832
9068
  let current;
8833
9069
  icons_laserpenfilled = new Icons_default.LaserPenFilled({
@@ -8867,7 +9103,45 @@ function create_if_block_12(ctx) {
8867
9103
  }
8868
9104
  };
8869
9105
  }
8870
- function create_if_block8(ctx) {
9106
+ function create_else_block8(ctx) {
9107
+ let icons_markpen;
9108
+ let current;
9109
+ icons_markpen = new Icons_default.MarkPen({ props: { theme: (
9110
+ /*theme*/
9111
+ ctx[4]
9112
+ ) } });
9113
+ return {
9114
+ c() {
9115
+ create_component(icons_markpen.$$.fragment);
9116
+ },
9117
+ m(target, anchor) {
9118
+ mount_component(icons_markpen, target, anchor);
9119
+ current = true;
9120
+ },
9121
+ p(ctx2, dirty) {
9122
+ const icons_markpen_changes = {};
9123
+ if (dirty & /*theme*/
9124
+ 16)
9125
+ icons_markpen_changes.theme = /*theme*/
9126
+ ctx2[4];
9127
+ icons_markpen.$set(icons_markpen_changes);
9128
+ },
9129
+ i(local) {
9130
+ if (current)
9131
+ return;
9132
+ transition_in(icons_markpen.$$.fragment, local);
9133
+ current = true;
9134
+ },
9135
+ o(local) {
9136
+ transition_out(icons_markpen.$$.fragment, local);
9137
+ current = false;
9138
+ },
9139
+ d(detaching) {
9140
+ destroy_component(icons_markpen, detaching);
9141
+ }
9142
+ };
9143
+ }
9144
+ function create_if_block_12(ctx) {
8871
9145
  let icons_markpenfilled;
8872
9146
  let current;
8873
9147
  icons_markpenfilled = new Icons_default.MarkPenFilled({
@@ -8912,38 +9186,39 @@ function create_default_slot6(ctx) {
8912
9186
  let if_block;
8913
9187
  let if_block_anchor;
8914
9188
  let current;
8915
- const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
9189
+ const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4];
8916
9190
  const if_blocks = [];
8917
9191
  function select_block_type(ctx2, dirty) {
8918
9192
  if (
8919
- /*appliance*/
8920
- ctx2[3] === "pencil" && /*pencilType*/
9193
+ /*pencilType*/
8921
9194
  ctx2[5] === "mark"
8922
9195
  )
8923
9196
  return 0;
8924
9197
  if (
8925
- /*appliance*/
8926
- ctx2[3] === "pencil" && /*pencilType*/
9198
+ /*pencilType*/
8927
9199
  ctx2[5] === "laser"
8928
9200
  )
8929
9201
  return 1;
8930
9202
  if (
8931
- /*appliance*/
8932
- ctx2[3] === "pencil" && /*pencilType*/
9203
+ /*pencilType*/
8933
9204
  ctx2[5] === "pencil"
8934
9205
  )
8935
9206
  return 2;
8936
- return 3;
9207
+ return -1;
9208
+ }
9209
+ if (~(current_block_type_index = select_block_type(ctx))) {
9210
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8937
9211
  }
8938
- current_block_type_index = select_block_type(ctx);
8939
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8940
9212
  return {
8941
9213
  c() {
8942
- if_block.c();
9214
+ if (if_block)
9215
+ if_block.c();
8943
9216
  if_block_anchor = empty();
8944
9217
  },
8945
9218
  m(target, anchor) {
8946
- if_blocks[current_block_type_index].m(target, anchor);
9219
+ if (~current_block_type_index) {
9220
+ if_blocks[current_block_type_index].m(target, anchor);
9221
+ }
8947
9222
  insert(target, if_block_anchor, anchor);
8948
9223
  current = true;
8949
9224
  },
@@ -8951,22 +9226,30 @@ function create_default_slot6(ctx) {
8951
9226
  let previous_block_index = current_block_type_index;
8952
9227
  current_block_type_index = select_block_type(ctx2);
8953
9228
  if (current_block_type_index === previous_block_index) {
8954
- if_blocks[current_block_type_index].p(ctx2, dirty);
9229
+ if (~current_block_type_index) {
9230
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9231
+ }
8955
9232
  } else {
8956
- group_outros();
8957
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
8958
- if_blocks[previous_block_index] = null;
8959
- });
8960
- check_outros();
8961
- if_block = if_blocks[current_block_type_index];
8962
- if (!if_block) {
8963
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
8964
- if_block.c();
9233
+ if (if_block) {
9234
+ group_outros();
9235
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9236
+ if_blocks[previous_block_index] = null;
9237
+ });
9238
+ check_outros();
9239
+ }
9240
+ if (~current_block_type_index) {
9241
+ if_block = if_blocks[current_block_type_index];
9242
+ if (!if_block) {
9243
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9244
+ if_block.c();
9245
+ } else {
9246
+ if_block.p(ctx2, dirty);
9247
+ }
9248
+ transition_in(if_block, 1);
9249
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
8965
9250
  } else {
8966
- if_block.p(ctx2, dirty);
9251
+ if_block = null;
8967
9252
  }
8968
- transition_in(if_block, 1);
8969
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
8970
9253
  }
8971
9254
  },
8972
9255
  i(local) {
@@ -8980,7 +9263,9 @@ function create_default_slot6(ctx) {
8980
9263
  current = false;
8981
9264
  },
8982
9265
  d(detaching) {
8983
- if_blocks[current_block_type_index].d(detaching);
9266
+ if (~current_block_type_index) {
9267
+ if_blocks[current_block_type_index].d(detaching);
9268
+ }
8984
9269
  if (detaching)
8985
9270
  detach(if_block_anchor);
8986
9271
  }
@@ -10625,39 +10910,39 @@ var Laser_default2 = Laser2;
10625
10910
  // src/components/Toolbar/components/Contents.svelte
10626
10911
  function get_each_context4(ctx, list, i) {
10627
10912
  const child_ctx = ctx.slice();
10628
- child_ctx[50] = list[i];
10913
+ child_ctx[51] = list[i];
10629
10914
  const constants_0 = (
10630
10915
  /*netless_app*/
10631
- child_ctx[50]
10916
+ child_ctx[51]
10632
10917
  );
10633
- child_ctx[51] = constants_0.icon;
10634
- child_ctx[52] = constants_0.label;
10635
- child_ctx[53] = constants_0.kind;
10636
- child_ctx[54] = constants_0.onClick;
10918
+ child_ctx[52] = constants_0.icon;
10919
+ child_ctx[53] = constants_0.label;
10920
+ child_ctx[54] = constants_0.kind;
10921
+ child_ctx[55] = constants_0.onClick;
10637
10922
  const constants_1 = (
10638
10923
  /*$status*/
10639
10924
  child_ctx[22] && /*$status*/
10640
10925
  child_ctx[22][
10641
10926
  /*kind*/
10642
- child_ctx[53]
10927
+ child_ctx[54]
10643
10928
  ]
10644
10929
  );
10645
- child_ctx[55] = constants_1;
10930
+ child_ctx[56] = constants_1;
10646
10931
  const constants_2 = function func() {
10647
10932
  return (
10648
10933
  /*func*/
10649
- ctx[46](
10934
+ ctx[47](
10650
10935
  /*onClick*/
10651
- child_ctx[54]
10936
+ child_ctx[55]
10652
10937
  )
10653
10938
  );
10654
10939
  };
10655
- child_ctx[56] = constants_2;
10940
+ child_ctx[57] = constants_2;
10656
10941
  return child_ctx;
10657
10942
  }
10658
10943
  function get_each_context_1(ctx, list, i) {
10659
10944
  const child_ctx = ctx.slice();
10660
- child_ctx[59] = list[i];
10945
+ child_ctx[60] = list[i];
10661
10946
  return child_ctx;
10662
10947
  }
10663
10948
  function create_if_block_18(ctx) {
@@ -10697,7 +10982,7 @@ function create_if_block_18(ctx) {
10697
10982
  )]) : {};
10698
10983
  if (dirty[0] & /*theme*/
10699
10984
  2 | dirty[2] & /*$$scope*/
10700
- 1) {
10985
+ 2) {
10701
10986
  button_changes.$$scope = { dirty, ctx: ctx2 };
10702
10987
  }
10703
10988
  button.$set(button_changes);
@@ -10762,7 +11047,7 @@ function create_if_block_17(ctx) {
10762
11047
  props: {
10763
11048
  appliance: (
10764
11049
  /*appliance*/
10765
- ctx[18]
11050
+ ctx[17]
10766
11051
  ),
10767
11052
  theme: (
10768
11053
  /*theme*/
@@ -10794,9 +11079,9 @@ function create_if_block_17(ctx) {
10794
11079
  p(ctx2, dirty) {
10795
11080
  const laser_changes = {};
10796
11081
  if (dirty[0] & /*appliance*/
10797
- 262144)
11082
+ 131072)
10798
11083
  laser_changes.appliance = /*appliance*/
10799
- ctx2[18];
11084
+ ctx2[17];
10800
11085
  if (dirty[0] & /*theme*/
10801
11086
  2)
10802
11087
  laser_changes.theme = /*theme*/
@@ -10833,7 +11118,7 @@ function create_if_block_16(ctx) {
10833
11118
  props: {
10834
11119
  appliance: (
10835
11120
  /*appliance*/
10836
- ctx[18]
11121
+ ctx[17]
10837
11122
  ),
10838
11123
  theme: (
10839
11124
  /*theme*/
@@ -10865,9 +11150,9 @@ function create_if_block_16(ctx) {
10865
11150
  p(ctx2, dirty) {
10866
11151
  const hand_1_changes = {};
10867
11152
  if (dirty[0] & /*appliance*/
10868
- 262144)
11153
+ 131072)
10869
11154
  hand_1_changes.appliance = /*appliance*/
10870
- ctx2[18];
11155
+ ctx2[17];
10871
11156
  if (dirty[0] & /*theme*/
10872
11157
  2)
10873
11158
  hand_1_changes.theme = /*theme*/
@@ -10967,7 +11252,7 @@ function create_if_block_14(ctx) {
10967
11252
  props: {
10968
11253
  appliance: (
10969
11254
  /*appliance*/
10970
- ctx[18]
11255
+ ctx[17]
10971
11256
  ),
10972
11257
  theme: (
10973
11258
  /*theme*/
@@ -10999,9 +11284,9 @@ function create_if_block_14(ctx) {
10999
11284
  p(ctx2, dirty) {
11000
11285
  const eraser_1_changes = {};
11001
11286
  if (dirty[0] & /*appliance*/
11002
- 262144)
11287
+ 131072)
11003
11288
  eraser_1_changes.appliance = /*appliance*/
11004
- ctx2[18];
11289
+ ctx2[17];
11005
11290
  if (dirty[0] & /*theme*/
11006
11291
  2)
11007
11292
  eraser_1_changes.theme = /*theme*/
@@ -11042,7 +11327,7 @@ function create_if_block_13(ctx) {
11042
11327
  ),
11043
11328
  appliance: (
11044
11329
  /*appliance*/
11045
- ctx[18]
11330
+ ctx[17]
11046
11331
  ),
11047
11332
  theme: (
11048
11333
  /*theme*/
@@ -11077,9 +11362,9 @@ function create_if_block_13(ctx) {
11077
11362
  shapes_changes.app = /*app*/
11078
11363
  ctx2[0];
11079
11364
  if (dirty[0] & /*appliance*/
11080
- 262144)
11365
+ 131072)
11081
11366
  shapes_changes.appliance = /*appliance*/
11082
- ctx2[18];
11367
+ ctx2[17];
11083
11368
  if (dirty[0] & /*theme*/
11084
11369
  2)
11085
11370
  shapes_changes.theme = /*theme*/
@@ -11120,7 +11405,7 @@ function create_if_block_122(ctx) {
11120
11405
  props: {
11121
11406
  appliance: (
11122
11407
  /*appliance*/
11123
- ctx[18]
11408
+ ctx[17]
11124
11409
  ),
11125
11410
  theme: (
11126
11411
  /*theme*/
@@ -11156,9 +11441,9 @@ function create_if_block_122(ctx) {
11156
11441
  p(ctx2, dirty) {
11157
11442
  const text_1_changes = {};
11158
11443
  if (dirty[0] & /*appliance*/
11159
- 262144)
11444
+ 131072)
11160
11445
  text_1_changes.appliance = /*appliance*/
11161
- ctx2[18];
11446
+ ctx2[17];
11162
11447
  if (dirty[0] & /*theme*/
11163
11448
  2)
11164
11449
  text_1_changes.theme = /*theme*/
@@ -11203,7 +11488,7 @@ function create_if_block_11(ctx) {
11203
11488
  ),
11204
11489
  appliance: (
11205
11490
  /*appliance*/
11206
- ctx[18]
11491
+ ctx[17]
11207
11492
  ),
11208
11493
  theme: (
11209
11494
  /*theme*/
@@ -11243,9 +11528,9 @@ function create_if_block_11(ctx) {
11243
11528
  pencil_1_changes.pencilType = /*pencilType*/
11244
11529
  ctx2[16];
11245
11530
  if (dirty[0] & /*appliance*/
11246
- 262144)
11531
+ 131072)
11247
11532
  pencil_1_changes.appliance = /*appliance*/
11248
- ctx2[18];
11533
+ ctx2[17];
11249
11534
  if (dirty[0] & /*theme*/
11250
11535
  2)
11251
11536
  pencil_1_changes.theme = /*theme*/
@@ -11286,7 +11571,7 @@ function create_if_block_10(ctx) {
11286
11571
  props: {
11287
11572
  appliance: (
11288
11573
  /*appliance*/
11289
- ctx[18]
11574
+ ctx[17]
11290
11575
  ),
11291
11576
  theme: (
11292
11577
  /*theme*/
@@ -11318,9 +11603,9 @@ function create_if_block_10(ctx) {
11318
11603
  p(ctx2, dirty) {
11319
11604
  const selector_1_changes = {};
11320
11605
  if (dirty[0] & /*appliance*/
11321
- 262144)
11606
+ 131072)
11322
11607
  selector_1_changes.appliance = /*appliance*/
11323
- ctx2[18];
11608
+ ctx2[17];
11324
11609
  if (dirty[0] & /*theme*/
11325
11610
  2)
11326
11611
  selector_1_changes.theme = /*theme*/
@@ -11357,7 +11642,7 @@ function create_if_block_9(ctx) {
11357
11642
  props: {
11358
11643
  appliance: (
11359
11644
  /*appliance*/
11360
- ctx[18]
11645
+ ctx[17]
11361
11646
  ),
11362
11647
  theme: (
11363
11648
  /*theme*/
@@ -11389,9 +11674,9 @@ function create_if_block_9(ctx) {
11389
11674
  p(ctx2, dirty) {
11390
11675
  const clicker_1_changes = {};
11391
11676
  if (dirty[0] & /*appliance*/
11392
- 262144)
11677
+ 131072)
11393
11678
  clicker_1_changes.appliance = /*appliance*/
11394
- ctx2[18];
11679
+ ctx2[17];
11395
11680
  if (dirty[0] & /*theme*/
11396
11681
  2)
11397
11682
  clicker_1_changes.theme = /*theme*/
@@ -11441,47 +11726,47 @@ function create_each_block_1(ctx) {
11441
11726
  function select_block_type(ctx2, dirty) {
11442
11727
  if (
11443
11728
  /*item*/
11444
- ctx2[59] === "clicker"
11729
+ ctx2[60] === "clicker"
11445
11730
  )
11446
11731
  return 0;
11447
11732
  if (
11448
11733
  /*item*/
11449
- ctx2[59] === "selector"
11734
+ ctx2[60] === "selector"
11450
11735
  )
11451
11736
  return 1;
11452
11737
  if (
11453
11738
  /*item*/
11454
- ctx2[59] === "pencil"
11739
+ ctx2[60] === "pencil"
11455
11740
  )
11456
11741
  return 2;
11457
11742
  if (
11458
11743
  /*item*/
11459
- ctx2[59] === "text"
11744
+ ctx2[60] === "text"
11460
11745
  )
11461
11746
  return 3;
11462
11747
  if (
11463
11748
  /*item*/
11464
- ctx2[59] === "shapes"
11749
+ ctx2[60] === "shapes"
11465
11750
  )
11466
11751
  return 4;
11467
11752
  if (
11468
11753
  /*item*/
11469
- ctx2[59] === "eraser"
11754
+ ctx2[60] === "eraser"
11470
11755
  )
11471
11756
  return 5;
11472
11757
  if (
11473
11758
  /*item*/
11474
- ctx2[59] === "clear"
11759
+ ctx2[60] === "clear"
11475
11760
  )
11476
11761
  return 6;
11477
11762
  if (
11478
11763
  /*item*/
11479
- ctx2[59] === "hand"
11764
+ ctx2[60] === "hand"
11480
11765
  )
11481
11766
  return 7;
11482
11767
  if (
11483
11768
  /*item*/
11484
- ctx2[59] === "laserPointer"
11769
+ ctx2[60] === "laserPointer"
11485
11770
  )
11486
11771
  return 8;
11487
11772
  return -1;
@@ -11618,7 +11903,7 @@ function create_if_block_8(ctx) {
11618
11903
  ]) : {};
11619
11904
  if (dirty[0] & /*theme*/
11620
11905
  2 | dirty[2] & /*$$scope*/
11621
- 1) {
11906
+ 2) {
11622
11907
  button_changes.$$scope = { dirty, ctx: ctx2 };
11623
11908
  }
11624
11909
  button.$set(button_changes);
@@ -11720,7 +12005,7 @@ function create_if_block_7(ctx) {
11720
12005
  ctx2[3];
11721
12006
  if (dirty[0] & /*theme*/
11722
12007
  2 | dirty[2] & /*$$scope*/
11723
- 1) {
12008
+ 2) {
11724
12009
  button_changes.$$scope = { dirty, ctx: ctx2 };
11725
12010
  }
11726
12011
  button.$set(button_changes);
@@ -11789,7 +12074,7 @@ function create_if_block14(ctx) {
11789
12074
  let if_block2;
11790
12075
  let if_block2_anchor;
11791
12076
  let current;
11792
- const if_block_creators = [create_if_block_5, create_if_block_6];
12077
+ const if_block_creators = [create_if_block_52, create_if_block_6];
11793
12078
  const if_blocks = [];
11794
12079
  function select_block_type_1(ctx2, dirty) {
11795
12080
  if (
@@ -11807,7 +12092,7 @@ function create_if_block14(ctx) {
11807
12092
  if (~(current_block_type_index = select_block_type_1(ctx))) {
11808
12093
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
11809
12094
  }
11810
- const if_block_creators_1 = [create_if_block_3, create_if_block_4];
12095
+ const if_block_creators_1 = [create_if_block_32, create_if_block_42];
11811
12096
  const if_blocks_1 = [];
11812
12097
  function select_block_type_2(ctx2, dirty) {
11813
12098
  if (
@@ -12026,7 +12311,7 @@ function create_if_block_6(ctx) {
12026
12311
  ]) : {};
12027
12312
  if (dirty[0] & /*theme*/
12028
12313
  2 | dirty[2] & /*$$scope*/
12029
- 1) {
12314
+ 2) {
12030
12315
  button_changes.$$scope = { dirty, ctx: ctx2 };
12031
12316
  }
12032
12317
  button.$set(button_changes);
@@ -12046,7 +12331,7 @@ function create_if_block_6(ctx) {
12046
12331
  }
12047
12332
  };
12048
12333
  }
12049
- function create_if_block_5(ctx) {
12334
+ function create_if_block_52(ctx) {
12050
12335
  let button;
12051
12336
  let current;
12052
12337
  const button_spread_levels = [
@@ -12064,8 +12349,8 @@ function create_if_block_5(ctx) {
12064
12349
  button = new Button_default({ props: button_props });
12065
12350
  button.$on(
12066
12351
  "click",
12067
- /*pencil*/
12068
- ctx[28]
12352
+ /*usePencil*/
12353
+ ctx[34]
12069
12354
  );
12070
12355
  return {
12071
12356
  c() {
@@ -12088,7 +12373,7 @@ function create_if_block_5(ctx) {
12088
12373
  ]) : {};
12089
12374
  if (dirty[0] & /*theme*/
12090
12375
  2 | dirty[2] & /*$$scope*/
12091
- 1) {
12376
+ 2) {
12092
12377
  button_changes.$$scope = { dirty, ctx: ctx2 };
12093
12378
  }
12094
12379
  button.$set(button_changes);
@@ -12186,7 +12471,7 @@ function create_default_slot_43(ctx) {
12186
12471
  }
12187
12472
  };
12188
12473
  }
12189
- function create_if_block_4(ctx) {
12474
+ function create_if_block_42(ctx) {
12190
12475
  let button;
12191
12476
  let current;
12192
12477
  const button_spread_levels = [
@@ -12205,7 +12490,7 @@ function create_if_block_4(ctx) {
12205
12490
  button.$on(
12206
12491
  "click",
12207
12492
  /*useLaserPen*/
12208
- ctx[34]
12493
+ ctx[35]
12209
12494
  );
12210
12495
  return {
12211
12496
  c() {
@@ -12228,7 +12513,7 @@ function create_if_block_4(ctx) {
12228
12513
  ]) : {};
12229
12514
  if (dirty[0] & /*theme*/
12230
12515
  2 | dirty[2] & /*$$scope*/
12231
- 1) {
12516
+ 2) {
12232
12517
  button_changes.$$scope = { dirty, ctx: ctx2 };
12233
12518
  }
12234
12519
  button.$set(button_changes);
@@ -12248,7 +12533,7 @@ function create_if_block_4(ctx) {
12248
12533
  }
12249
12534
  };
12250
12535
  }
12251
- function create_if_block_3(ctx) {
12536
+ function create_if_block_32(ctx) {
12252
12537
  let button;
12253
12538
  let current;
12254
12539
  const button_spread_levels = [
@@ -12285,7 +12570,7 @@ function create_if_block_3(ctx) {
12285
12570
  ]) : {};
12286
12571
  if (dirty[0] & /*theme*/
12287
12572
  2 | dirty[2] & /*$$scope*/
12288
- 1) {
12573
+ 2) {
12289
12574
  button_changes.$$scope = { dirty, ctx: ctx2 };
12290
12575
  }
12291
12576
  button.$set(button_changes);
@@ -12402,7 +12687,7 @@ function create_if_block_22(ctx) {
12402
12687
  button.$on(
12403
12688
  "click",
12404
12689
  /*useMarkPen*/
12405
- ctx[35]
12690
+ ctx[36]
12406
12691
  );
12407
12692
  return {
12408
12693
  c() {
@@ -12425,7 +12710,7 @@ function create_if_block_22(ctx) {
12425
12710
  ]) : {};
12426
12711
  if (dirty[0] & /*theme*/
12427
12712
  2 | dirty[2] & /*$$scope*/
12428
- 1) {
12713
+ 2) {
12429
12714
  button_changes.$$scope = { dirty, ctx: ctx2 };
12430
12715
  }
12431
12716
  button.$set(button_changes);
@@ -12482,7 +12767,7 @@ function create_if_block_19(ctx) {
12482
12767
  ]) : {};
12483
12768
  if (dirty[0] & /*theme*/
12484
12769
  2 | dirty[2] & /*$$scope*/
12485
- 1) {
12770
+ 2) {
12486
12771
  button_changes.$$scope = { dirty, ctx: ctx2 };
12487
12772
  }
12488
12773
  button.$set(button_changes);
@@ -12591,7 +12876,7 @@ function create_each_block4(ctx) {
12591
12876
  let span;
12592
12877
  let t1_value = (
12593
12878
  /*label*/
12594
- ctx[52] + ""
12879
+ ctx[53] + ""
12595
12880
  );
12596
12881
  let t1;
12597
12882
  let span_class_value;
@@ -12613,40 +12898,40 @@ function create_each_block4(ctx) {
12613
12898
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
12614
12899
  ctx[1]);
12615
12900
  if (!src_url_equal(img.src, img_src_value = /*icon*/
12616
- ctx[51]))
12901
+ ctx[52]))
12617
12902
  attr(img, "src", img_src_value);
12618
12903
  attr(img, "alt", img_alt_value = /*kind*/
12619
- ctx[53]);
12904
+ ctx[54]);
12620
12905
  attr(img, "title", img_title_value = /*label*/
12621
- ctx[52]);
12906
+ ctx[53]);
12622
12907
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
12623
12908
  ctx[1]);
12624
12909
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
12625
- ctx[53] + " " + /*theme*/
12910
+ ctx[54] + " " + /*theme*/
12626
12911
  ctx[1]);
12627
12912
  attr(button, "title", button_title_value = /*label*/
12628
- ctx[52] + /*state*/
12629
- (ctx[55] && /*state*/
12630
- ctx[55].reason ? ": " + /*state*/
12631
- ctx[55].reason : ""));
12913
+ ctx[53] + /*state*/
12914
+ (ctx[56] && /*state*/
12915
+ ctx[56].reason ? ": " + /*state*/
12916
+ ctx[56].reason : ""));
12632
12917
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
12633
- ctx[50].kind);
12918
+ ctx[51].kind);
12634
12919
  button.disabled = button_disabled_value = /*state*/
12635
- ctx[55] && /*state*/
12636
- ctx[55].status !== "idle";
12920
+ ctx[56] && /*state*/
12921
+ ctx[56].status !== "idle";
12637
12922
  toggle_class(
12638
12923
  button,
12639
12924
  "is-loading",
12640
12925
  /*state*/
12641
- ctx[55] && /*state*/
12642
- ctx[55].status === "loading"
12926
+ ctx[56] && /*state*/
12927
+ ctx[56].status === "loading"
12643
12928
  );
12644
12929
  toggle_class(
12645
12930
  button,
12646
12931
  "is-failed",
12647
12932
  /*state*/
12648
- ctx[55] && /*state*/
12649
- ctx[55].status === "failed"
12933
+ ctx[56] && /*state*/
12934
+ ctx[56].status === "failed"
12650
12935
  );
12651
12936
  },
12652
12937
  m(target, anchor) {
@@ -12660,9 +12945,9 @@ function create_each_block4(ctx) {
12660
12945
  dispose = listen(button, "click", function() {
12661
12946
  if (is_function(
12662
12947
  /*on_click*/
12663
- ctx[56]
12948
+ ctx[57]
12664
12949
  ))
12665
- ctx[56].apply(this, arguments);
12950
+ ctx[57].apply(this, arguments);
12666
12951
  });
12667
12952
  mounted = true;
12668
12953
  }
@@ -12676,22 +12961,22 @@ function create_each_block4(ctx) {
12676
12961
  }
12677
12962
  if (dirty[0] & /*$apps*/
12678
12963
  2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
12679
- ctx[51])) {
12964
+ ctx[52])) {
12680
12965
  attr(img, "src", img_src_value);
12681
12966
  }
12682
12967
  if (dirty[0] & /*$apps*/
12683
12968
  2097152 && img_alt_value !== (img_alt_value = /*kind*/
12684
- ctx[53])) {
12969
+ ctx[54])) {
12685
12970
  attr(img, "alt", img_alt_value);
12686
12971
  }
12687
12972
  if (dirty[0] & /*$apps*/
12688
12973
  2097152 && img_title_value !== (img_title_value = /*label*/
12689
- ctx[52])) {
12974
+ ctx[53])) {
12690
12975
  attr(img, "title", img_title_value);
12691
12976
  }
12692
12977
  if (dirty[0] & /*$apps*/
12693
12978
  2097152 && t1_value !== (t1_value = /*label*/
12694
- ctx[52] + ""))
12979
+ ctx[53] + ""))
12695
12980
  set_data(t1, t1_value);
12696
12981
  if (dirty[0] & /*theme*/
12697
12982
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -12700,27 +12985,27 @@ function create_each_block4(ctx) {
12700
12985
  }
12701
12986
  if (dirty[0] & /*$apps, theme*/
12702
12987
  2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
12703
- ctx[53] + " " + /*theme*/
12988
+ ctx[54] + " " + /*theme*/
12704
12989
  ctx[1])) {
12705
12990
  attr(button, "class", button_class_value);
12706
12991
  }
12707
12992
  if (dirty[0] & /*$apps, $status*/
12708
12993
  6291456 && button_title_value !== (button_title_value = /*label*/
12709
- ctx[52] + /*state*/
12710
- (ctx[55] && /*state*/
12711
- ctx[55].reason ? ": " + /*state*/
12712
- ctx[55].reason : ""))) {
12994
+ ctx[53] + /*state*/
12995
+ (ctx[56] && /*state*/
12996
+ ctx[56].reason ? ": " + /*state*/
12997
+ ctx[56].reason : ""))) {
12713
12998
  attr(button, "title", button_title_value);
12714
12999
  }
12715
13000
  if (dirty[0] & /*$apps*/
12716
13001
  2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
12717
- ctx[50].kind)) {
13002
+ ctx[51].kind)) {
12718
13003
  attr(button, "data-app-kind", button_data_app_kind_value);
12719
13004
  }
12720
13005
  if (dirty[0] & /*$status, $apps*/
12721
13006
  6291456 && button_disabled_value !== (button_disabled_value = /*state*/
12722
- ctx[55] && /*state*/
12723
- ctx[55].status !== "idle")) {
13007
+ ctx[56] && /*state*/
13008
+ ctx[56].status !== "idle")) {
12724
13009
  button.disabled = button_disabled_value;
12725
13010
  }
12726
13011
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12729,8 +13014,8 @@ function create_each_block4(ctx) {
12729
13014
  button,
12730
13015
  "is-loading",
12731
13016
  /*state*/
12732
- ctx[55] && /*state*/
12733
- ctx[55].status === "loading"
13017
+ ctx[56] && /*state*/
13018
+ ctx[56].status === "loading"
12734
13019
  );
12735
13020
  }
12736
13021
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12739,8 +13024,8 @@ function create_each_block4(ctx) {
12739
13024
  button,
12740
13025
  "is-failed",
12741
13026
  /*state*/
12742
- ctx[55] && /*state*/
12743
- ctx[55].status === "failed"
13027
+ ctx[56] && /*state*/
13028
+ ctx[56].status === "failed"
12744
13029
  );
12745
13030
  }
12746
13031
  },
@@ -13029,11 +13314,11 @@ function create_fragment71(ctx) {
13029
13314
  append(div3, div2);
13030
13315
  append(div3, t6);
13031
13316
  mount_component(strokecolor0, div3, null);
13032
- ctx[43](div3);
13317
+ ctx[44](div3);
13033
13318
  append(div9, t7);
13034
13319
  append(div9, div4);
13035
13320
  mount_component(textcolor, div4, null);
13036
- ctx[44](div4);
13321
+ ctx[45](div4);
13037
13322
  append(div9, t8);
13038
13323
  append(div9, div7);
13039
13324
  mount_component(selectshapes, div7, null);
@@ -13045,7 +13330,7 @@ function create_fragment71(ctx) {
13045
13330
  append(div7, div6);
13046
13331
  append(div7, t12);
13047
13332
  mount_component(strokecolor1, div7, null);
13048
- ctx[45](div7);
13333
+ ctx[46](div7);
13049
13334
  append(div9, t13);
13050
13335
  append(div9, div8);
13051
13336
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -13053,7 +13338,7 @@ function create_fragment71(ctx) {
13053
13338
  each_blocks[i].m(div8, null);
13054
13339
  }
13055
13340
  }
13056
- ctx[47](div8);
13341
+ ctx[48](div8);
13057
13342
  current = true;
13058
13343
  if (!mounted) {
13059
13344
  dispose = [
@@ -13099,7 +13384,7 @@ function create_fragment71(ctx) {
13099
13384
  check_outros();
13100
13385
  }
13101
13386
  if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13102
- 2081799299 | dirty[1] & /*clear, hand, laserPointer*/
13387
+ 2081668227 | dirty[1] & /*clear, hand, laserPointer*/
13103
13388
  7) {
13104
13389
  each_value_1 = /*items*/
13105
13390
  ctx2[7];
@@ -13390,15 +13675,15 @@ function create_fragment71(ctx) {
13390
13675
  if_block3.d();
13391
13676
  destroy_component(strokewidth0);
13392
13677
  destroy_component(strokecolor0);
13393
- ctx[43](null);
13394
- destroy_component(textcolor);
13395
13678
  ctx[44](null);
13679
+ destroy_component(textcolor);
13680
+ ctx[45](null);
13396
13681
  destroy_component(selectshapes);
13397
13682
  destroy_component(strokewidth1);
13398
13683
  destroy_component(strokecolor1);
13399
- ctx[45](null);
13684
+ ctx[46](null);
13400
13685
  destroy_each(each_blocks, detaching);
13401
- ctx[47](null);
13686
+ ctx[48](null);
13402
13687
  mounted = false;
13403
13688
  run_all(dispose);
13404
13689
  }
@@ -13418,8 +13703,8 @@ function instance71($$self, $$props, $$invalidate) {
13418
13703
  let hasUseMarkPen;
13419
13704
  let pencilType;
13420
13705
  let $top;
13421
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(41, $memberState = $$value)), memberState);
13422
- 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);
13706
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(42, $memberState = $$value)), memberState);
13707
+ 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);
13423
13708
  let $apps;
13424
13709
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
13425
13710
  component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
@@ -13444,7 +13729,7 @@ function instance71($$self, $$props, $$invalidate) {
13444
13729
  let apps_panel;
13445
13730
  let btn_props;
13446
13731
  let top = writable(0);
13447
- component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
13732
+ component_subscribe($$self, top, (value) => $$invalidate(50, $top = value));
13448
13733
  function scroll_up() {
13449
13734
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
13450
13735
  }
@@ -13458,15 +13743,18 @@ function instance71($$self, $$props, $$invalidate) {
13458
13743
  app == null ? void 0 : app.setAppliance("selector");
13459
13744
  }
13460
13745
  function pencil() {
13461
- var _a;
13462
13746
  if (hasAppliancePlugin) {
13463
- (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
13464
- currentApplianceName: "pencil",
13465
- useLaserPen: false,
13466
- strokeOpacity: 1
13467
- });
13747
+ if (appliance !== "pencil") {
13748
+ if (pencilType === "mark") {
13749
+ useMarkPen();
13750
+ } else if (pencilType === "laser") {
13751
+ useLaserPen();
13752
+ } else {
13753
+ usePencil();
13754
+ }
13755
+ }
13468
13756
  } else {
13469
- app == null ? void 0 : app.setAppliance("pencil");
13757
+ usePencil();
13470
13758
  }
13471
13759
  }
13472
13760
  function text4() {
@@ -13484,6 +13772,18 @@ function instance71($$self, $$props, $$invalidate) {
13484
13772
  function clear() {
13485
13773
  app == null ? void 0 : app.cleanCurrentScene();
13486
13774
  }
13775
+ function usePencil() {
13776
+ var _a;
13777
+ if (hasAppliancePlugin) {
13778
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
13779
+ currentApplianceName: "pencil",
13780
+ useLaserPen: false,
13781
+ strokeOpacity: 1
13782
+ });
13783
+ } else {
13784
+ app == null ? void 0 : app.setAppliance("pencil");
13785
+ }
13786
+ }
13487
13787
  function useLaserPen() {
13488
13788
  var _a;
13489
13789
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
@@ -13540,7 +13840,7 @@ function instance71($$self, $$props, $$invalidate) {
13540
13840
  if ("scroll_height" in $$props2)
13541
13841
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
13542
13842
  if ("computed_height" in $$props2)
13543
- $$invalidate(36, computed_height = $$props2.computed_height);
13843
+ $$invalidate(37, computed_height = $$props2.computed_height);
13544
13844
  if ("scrollable" in $$props2)
13545
13845
  $$invalidate(5, scrollable = $$props2.scrollable);
13546
13846
  if ("placement" in $$props2)
@@ -13569,11 +13869,11 @@ function instance71($$self, $$props, $$invalidate) {
13569
13869
  }
13570
13870
  if ($$self.$$.dirty[0] & /*app*/
13571
13871
  1) {
13572
- $$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
13872
+ $$invalidate(41, hotkeys = app == null ? void 0 : app.hotKeys);
13573
13873
  }
13574
13874
  if ($$self.$$.dirty[0] & /*t*/
13575
13875
  1024 | $$self.$$.dirty[1] & /*hotkeys*/
13576
- 512) {
13876
+ 1024) {
13577
13877
  $$invalidate(20, c = {
13578
13878
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
13579
13879
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -13589,32 +13889,32 @@ function instance71($$self, $$props, $$invalidate) {
13589
13889
  $$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
13590
13890
  }
13591
13891
  if ($$self.$$.dirty[1] & /*$memberState*/
13592
- 1024) {
13593
- $$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
13892
+ 2048) {
13893
+ $$invalidate(17, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
13594
13894
  }
13595
13895
  if ($$self.$$.dirty[0] & /*app*/
13596
13896
  1) {
13597
- $$subscribe_status($$invalidate(17, status = app == null ? void 0 : app.appsStatus));
13897
+ $$subscribe_status($$invalidate(18, status = app == null ? void 0 : app.appsStatus));
13598
13898
  }
13599
13899
  if ($$self.$$.dirty[0] & /*scrollable*/
13600
13900
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
13601
- 2080) {
13901
+ 4160) {
13602
13902
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
13603
13903
  }
13604
13904
  if ($$self.$$.dirty[0] & /*app*/
13605
13905
  1) {
13606
- $$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
13906
+ $$invalidate(38, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
13607
13907
  }
13608
13908
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
13609
- 1088) {
13610
- $$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
13909
+ 2176) {
13910
+ $$invalidate(40, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
13611
13911
  }
13612
13912
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
13613
- 1088) {
13614
- $$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
13913
+ 2176) {
13914
+ $$invalidate(39, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
13615
13915
  }
13616
13916
  if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
13617
- 384) {
13917
+ 768) {
13618
13918
  $$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
13619
13919
  }
13620
13920
  };
@@ -13636,8 +13936,8 @@ function instance71($$self, $$props, $$invalidate) {
13636
13936
  apps_panel,
13637
13937
  btn_props,
13638
13938
  pencilType,
13639
- status,
13640
13939
  appliance,
13940
+ status,
13641
13941
  memberState,
13642
13942
  c,
13643
13943
  $apps,
@@ -13653,6 +13953,7 @@ function instance71($$self, $$props, $$invalidate) {
13653
13953
  hand,
13654
13954
  laserPointer,
13655
13955
  clear,
13956
+ usePencil,
13656
13957
  useLaserPen,
13657
13958
  useMarkPen,
13658
13959
  computed_height,
@@ -13684,7 +13985,7 @@ var Contents = class extends SvelteComponent {
13684
13985
  language: 2,
13685
13986
  disabled: 3,
13686
13987
  scroll_height: 4,
13687
- computed_height: 36,
13988
+ computed_height: 37,
13688
13989
  scrollable: 5,
13689
13990
  placement: 6,
13690
13991
  items: 7,
@@ -14159,7 +14460,7 @@ function get_each_context5(ctx, list, i) {
14159
14460
  child_ctx[25] = list[i];
14160
14461
  return child_ctx;
14161
14462
  }
14162
- function create_else_block_12(ctx) {
14463
+ function create_else_block_13(ctx) {
14163
14464
  var _a;
14164
14465
  let icon;
14165
14466
  let current;
@@ -14449,7 +14750,7 @@ function create_default_slot_25(ctx) {
14449
14750
  let if_block;
14450
14751
  let if_block_anchor;
14451
14752
  let current;
14452
- const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
14753
+ const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_13];
14453
14754
  const if_blocks = [];
14454
14755
  function select_block_type(ctx2, dirty) {
14455
14756
  if (
@@ -15500,7 +15801,7 @@ var ReplayFastboard = class extends SvelteComponent {
15500
15801
  }
15501
15802
  };
15502
15803
  var ReplayFastboard_default = ReplayFastboard;
15503
- function create_if_block_32(ctx) {
15804
+ function create_if_block_33(ctx) {
15504
15805
  let toolbar;
15505
15806
  let current;
15506
15807
  toolbar = new Toolbar_default({
@@ -15757,7 +16058,7 @@ function create_fragment75(ctx) {
15757
16058
  let dispose;
15758
16059
  let if_block0 = (
15759
16060
  /*config*/
15760
- ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx)
16061
+ ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_33(ctx)
15761
16062
  );
15762
16063
  let if_block1 = (
15763
16064
  /*config*/
@@ -15860,7 +16161,7 @@ function create_fragment75(ctx) {
15860
16161
  transition_in(if_block0, 1);
15861
16162
  }
15862
16163
  } else {
15863
- if_block0 = create_if_block_32(ctx2);
16164
+ if_block0 = create_if_block_33(ctx2);
15864
16165
  if_block0.c();
15865
16166
  transition_in(if_block0, 1);
15866
16167
  if_block0.m(div1, null);