@netless/fastboard-ui 1.0.1 → 1.0.2

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.
@@ -3845,6 +3845,154 @@ var LaserPenFilled = class extends SvelteComponent {
3845
3845
  }
3846
3846
  };
3847
3847
  var LaserPenFilled_default = LaserPenFilled;
3848
+ function create_fragment51(ctx) {
3849
+ let svg;
3850
+ let g;
3851
+ let path;
3852
+ let svg_class_value;
3853
+ return {
3854
+ c() {
3855
+ svg = svg_element("svg");
3856
+ g = svg_element("g");
3857
+ path = svg_element("path");
3858
+ attr(path, "class", "fastboard-icon-stroke-color");
3859
+ attr(path, "d", "m15.95 2.39l5.657 5.657a1 1 0 0 1 0 1.414l-7.778 7.778l-2.122.707l-1.414 1.415a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414L6.05 12.29l.707-2.122l7.779-7.778a1 1 0 0 1 1.414 0m.707 3.536l-6.364 6.364l1.414 1.414l6.364-6.364zM4.283 16.886l2.828 2.828l-1.414 1.415l-4.243-1.415z");
3860
+ attr(g, "stroke-width", "1");
3861
+ attr(g, "stroke-linecap", "round");
3862
+ attr(g, "stroke-linejoin", "round");
3863
+ attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
3864
+ attr(svg, "fill", "none");
3865
+ attr(svg, "viewBox", "0 0 24 24");
3866
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
3867
+ ctx[0]);
3868
+ toggle_class(
3869
+ svg,
3870
+ "is-active",
3871
+ /*active*/
3872
+ ctx[1]
3873
+ );
3874
+ },
3875
+ m(target, anchor) {
3876
+ insert(target, svg, anchor);
3877
+ append(svg, g);
3878
+ append(g, path);
3879
+ },
3880
+ p(ctx2, [dirty]) {
3881
+ if (dirty & /*theme*/
3882
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
3883
+ ctx2[0])) {
3884
+ attr(svg, "class", svg_class_value);
3885
+ }
3886
+ if (dirty & /*theme, active*/
3887
+ 3) {
3888
+ toggle_class(
3889
+ svg,
3890
+ "is-active",
3891
+ /*active*/
3892
+ ctx2[1]
3893
+ );
3894
+ }
3895
+ },
3896
+ i: noop,
3897
+ o: noop,
3898
+ d(detaching) {
3899
+ if (detaching)
3900
+ detach(svg);
3901
+ }
3902
+ };
3903
+ }
3904
+ function instance51($$self, $$props, $$invalidate) {
3905
+ let { theme = "light" } = $$props;
3906
+ let { active = false } = $$props;
3907
+ $$self.$$set = ($$props2) => {
3908
+ if ("theme" in $$props2)
3909
+ $$invalidate(0, theme = $$props2.theme);
3910
+ if ("active" in $$props2)
3911
+ $$invalidate(1, active = $$props2.active);
3912
+ };
3913
+ return [theme, active];
3914
+ }
3915
+ var MarkPen = class extends SvelteComponent {
3916
+ constructor(options) {
3917
+ super();
3918
+ init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
3919
+ }
3920
+ };
3921
+ var MarkPen_default = MarkPen;
3922
+ function create_fragment52(ctx) {
3923
+ let svg;
3924
+ let g;
3925
+ let path;
3926
+ let svg_class_value;
3927
+ return {
3928
+ c() {
3929
+ svg = svg_element("svg");
3930
+ g = svg_element("g");
3931
+ path = svg_element("path");
3932
+ attr(path, "class", "fastboard-icon-fill-color");
3933
+ attr(path, "d", "m15.95 2.39l5.657 5.657a1 1 0 0 1 0 1.414l-7.778 7.778l-2.122.707l-1.414 1.415a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414L6.05 12.29l.707-2.122l7.779-7.778a1 1 0 0 1 1.414 0m.707 3.536l-6.364 6.364l1.414 1.414l6.364-6.364zM4.283 16.886l2.828 2.828l-1.414 1.415l-4.243-1.415z");
3934
+ attr(g, "stroke-width", "1");
3935
+ attr(g, "stroke-linecap", "round");
3936
+ attr(g, "stroke-linejoin", "round");
3937
+ attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
3938
+ attr(svg, "fill", "none");
3939
+ attr(svg, "viewBox", "0 0 24 24");
3940
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
3941
+ ctx[0]);
3942
+ toggle_class(
3943
+ svg,
3944
+ "is-active",
3945
+ /*active*/
3946
+ ctx[1]
3947
+ );
3948
+ },
3949
+ m(target, anchor) {
3950
+ insert(target, svg, anchor);
3951
+ append(svg, g);
3952
+ append(g, path);
3953
+ },
3954
+ p(ctx2, [dirty]) {
3955
+ if (dirty & /*theme*/
3956
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
3957
+ ctx2[0])) {
3958
+ attr(svg, "class", svg_class_value);
3959
+ }
3960
+ if (dirty & /*theme, active*/
3961
+ 3) {
3962
+ toggle_class(
3963
+ svg,
3964
+ "is-active",
3965
+ /*active*/
3966
+ ctx2[1]
3967
+ );
3968
+ }
3969
+ },
3970
+ i: noop,
3971
+ o: noop,
3972
+ d(detaching) {
3973
+ if (detaching)
3974
+ detach(svg);
3975
+ }
3976
+ };
3977
+ }
3978
+ function instance52($$self, $$props, $$invalidate) {
3979
+ let { theme = "light" } = $$props;
3980
+ let { active = false } = $$props;
3981
+ $$self.$$set = ($$props2) => {
3982
+ if ("theme" in $$props2)
3983
+ $$invalidate(0, theme = $$props2.theme);
3984
+ if ("active" in $$props2)
3985
+ $$invalidate(1, active = $$props2.active);
3986
+ };
3987
+ return [theme, active];
3988
+ }
3989
+ var MarkPenFilled = class extends SvelteComponent {
3990
+ constructor(options) {
3991
+ super();
3992
+ init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
3993
+ }
3994
+ };
3995
+ var MarkPenFilled_default = MarkPenFilled;
3848
3996
 
3849
3997
  // src/components/Icons/index.ts
3850
3998
  var Icons = {
@@ -3896,7 +4044,9 @@ var Icons = {
3896
4044
  Pause: Pause_default,
3897
4045
  Loading: Loading_default,
3898
4046
  LaserPen: LaserPen_default,
3899
- LaserPenFilled: LaserPenFilled_default
4047
+ LaserPenFilled: LaserPenFilled_default,
4048
+ MarkPen: MarkPen_default,
4049
+ MarkPenFilled: MarkPenFilled_default
3900
4050
  };
3901
4051
  var Icons_default = Icons;
3902
4052
  if (typeof window !== "undefined") {
@@ -3909,12 +4059,12 @@ if (typeof window !== "undefined") {
3909
4059
  {
3910
4060
  name: "className",
3911
4061
  defaultValue: "",
3912
- fn(instance74) {
4062
+ fn(instance76) {
3913
4063
  function add() {
3914
- const el = instance74.popper.firstElementChild;
4064
+ const el = instance76.popper.firstElementChild;
3915
4065
  if (el) {
3916
4066
  el.classList.add("fastboard-tip");
3917
- const extra = (instance74.props.className || "").trim();
4067
+ const extra = (instance76.props.className || "").trim();
3918
4068
  if (extra) {
3919
4069
  el.classList.add(extra);
3920
4070
  }
@@ -3922,7 +4072,7 @@ if (typeof window !== "undefined") {
3922
4072
  }
3923
4073
  function remove() {
3924
4074
  var _a;
3925
- (_a = instance74.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4075
+ (_a = instance76.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
3926
4076
  }
3927
4077
  return {
3928
4078
  onCreate: add,
@@ -3935,21 +4085,21 @@ if (typeof window !== "undefined") {
3935
4085
  });
3936
4086
  }
3937
4087
  var tippy = function(node, props) {
3938
- const instance74 = Tippy(node, props);
4088
+ const instance76 = Tippy(node, props);
3939
4089
  return {
3940
4090
  update(props2) {
3941
- instance74.setProps(props2);
4091
+ instance76.setProps(props2);
3942
4092
  },
3943
4093
  destroy() {
3944
- instance74.destroy();
4094
+ instance76.destroy();
3945
4095
  }
3946
4096
  };
3947
4097
  };
3948
4098
  function tippy_hide_all() {
3949
4099
  document.querySelectorAll("[data-tippy-root]").forEach((el) => {
3950
- const instance74 = el._tippy;
3951
- if (instance74)
3952
- instance74.hide();
4100
+ const instance76 = el._tippy;
4101
+ if (instance76)
4102
+ instance76.hide();
3953
4103
  });
3954
4104
  }
3955
4105
  var tippy_menu = {
@@ -4463,7 +4613,7 @@ function create_if_block_1(ctx) {
4463
4613
  }
4464
4614
  };
4465
4615
  }
4466
- function create_fragment51(ctx) {
4616
+ function create_fragment53(ctx) {
4467
4617
  let current_block_type_index;
4468
4618
  let if_block;
4469
4619
  let if_block_anchor;
@@ -4529,7 +4679,7 @@ function create_fragment51(ctx) {
4529
4679
  }
4530
4680
  };
4531
4681
  }
4532
- function instance51($$self, $$props, $$invalidate) {
4682
+ function instance53($$self, $$props, $$invalidate) {
4533
4683
  let { $$slots: slots = {}, $$scope } = $$props;
4534
4684
  let { class: className = "" } = $$props;
4535
4685
  let { name: name10 = "fastboard-ui" } = $$props;
@@ -4587,7 +4737,7 @@ function instance51($$self, $$props, $$invalidate) {
4587
4737
  var Button = class extends SvelteComponent {
4588
4738
  constructor(options) {
4589
4739
  super();
4590
- init(this, options, instance51, create_fragment51, safe_not_equal, {
4740
+ init(this, options, instance53, create_fragment53, safe_not_equal, {
4591
4741
  class: 0,
4592
4742
  name: 1,
4593
4743
  theme: 2,
@@ -4792,7 +4942,7 @@ function create_default_slot(ctx) {
4792
4942
  }
4793
4943
  };
4794
4944
  }
4795
- function create_fragment52(ctx) {
4945
+ function create_fragment54(ctx) {
4796
4946
  let div;
4797
4947
  let button0;
4798
4948
  let t_1;
@@ -4933,7 +5083,7 @@ var i18n = {
4933
5083
  "zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
4934
5084
  };
4935
5085
  var name = "fastboard-redo-undo";
4936
- function instance52($$self, $$props, $$invalidate) {
5086
+ function instance54($$self, $$props, $$invalidate) {
4937
5087
  let writable2;
4938
5088
  let phase;
4939
5089
  let disabled;
@@ -5034,7 +5184,7 @@ function instance52($$self, $$props, $$invalidate) {
5034
5184
  var RedoUndo = class extends SvelteComponent {
5035
5185
  constructor(options) {
5036
5186
  super();
5037
- init(this, options, instance52, create_fragment52, safe_not_equal, {
5187
+ init(this, options, instance54, create_fragment54, safe_not_equal, {
5038
5188
  app: 12,
5039
5189
  theme: 0,
5040
5190
  language: 13,
@@ -5389,7 +5539,7 @@ function create_default_slot2(ctx) {
5389
5539
  }
5390
5540
  };
5391
5541
  }
5392
- function create_fragment53(ctx) {
5542
+ function create_fragment55(ctx) {
5393
5543
  let div;
5394
5544
  let button0;
5395
5545
  let t0;
@@ -5624,7 +5774,7 @@ var i18n2 = {
5624
5774
  "zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
5625
5775
  };
5626
5776
  var name2 = "fastboard-page-control";
5627
- function instance53($$self, $$props, $$invalidate) {
5777
+ function instance55($$self, $$props, $$invalidate) {
5628
5778
  let writable2;
5629
5779
  let phase;
5630
5780
  let disabled;
@@ -5730,7 +5880,7 @@ function instance53($$self, $$props, $$invalidate) {
5730
5880
  var PageControl = class extends SvelteComponent {
5731
5881
  constructor(options) {
5732
5882
  super();
5733
- init(this, options, instance53, create_fragment53, safe_not_equal, {
5883
+ init(this, options, instance55, create_fragment55, safe_not_equal, {
5734
5884
  app: 16,
5735
5885
  theme: 0,
5736
5886
  language: 17,
@@ -6079,7 +6229,7 @@ function create_default_slot3(ctx) {
6079
6229
  }
6080
6230
  };
6081
6231
  }
6082
- function create_fragment54(ctx) {
6232
+ function create_fragment56(ctx) {
6083
6233
  let div;
6084
6234
  let button0;
6085
6235
  let t0;
@@ -6342,7 +6492,7 @@ function next_scale(scale, delta) {
6342
6492
  return 1;
6343
6493
  }
6344
6494
  var name3 = "fastboard-zoom-control";
6345
- function instance54($$self, $$props, $$invalidate) {
6495
+ function instance56($$self, $$props, $$invalidate) {
6346
6496
  let writable2;
6347
6497
  let phase;
6348
6498
  let disabled;
@@ -6453,7 +6603,7 @@ function instance54($$self, $$props, $$invalidate) {
6453
6603
  var ZoomControl = class extends SvelteComponent {
6454
6604
  constructor(options) {
6455
6605
  super();
6456
- init(this, options, instance54, create_fragment54, safe_not_equal, {
6606
+ init(this, options, instance56, create_fragment56, safe_not_equal, {
6457
6607
  app: 15,
6458
6608
  theme: 0,
6459
6609
  language: 16,
@@ -6707,7 +6857,7 @@ function hexToRgb(hex) {
6707
6857
  const b = parseInt(hex.slice(4, 6), 16);
6708
6858
  return [r, g, b];
6709
6859
  }
6710
- function create_fragment55(ctx) {
6860
+ function create_fragment57(ctx) {
6711
6861
  let div;
6712
6862
  let input;
6713
6863
  let input_class_value;
@@ -6922,7 +7072,7 @@ function create_fragment55(ctx) {
6922
7072
  };
6923
7073
  }
6924
7074
  var name4 = "fastboard-slider";
6925
- function instance55($$self, $$props, $$invalidate) {
7075
+ function instance57($$self, $$props, $$invalidate) {
6926
7076
  let percent;
6927
7077
  const dispatch = createEventDispatcher();
6928
7078
  let { class: className = "" } = $$props;
@@ -6993,7 +7143,7 @@ function instance55($$self, $$props, $$invalidate) {
6993
7143
  var Slider = class extends SvelteComponent {
6994
7144
  constructor(options) {
6995
7145
  super();
6996
- init(this, options, instance55, create_fragment55, safe_not_equal, {
7146
+ init(this, options, instance57, create_fragment57, safe_not_equal, {
6997
7147
  class: 1,
6998
7148
  theme: 2,
6999
7149
  min: 3,
@@ -7007,7 +7157,7 @@ var Slider = class extends SvelteComponent {
7007
7157
  var Slider_default = Slider;
7008
7158
 
7009
7159
  // src/components/Toolbar/components/StrokeWidth.svelte
7010
- function create_fragment56(ctx) {
7160
+ function create_fragment58(ctx) {
7011
7161
  let slider;
7012
7162
  let current;
7013
7163
  const slider_spread_levels = [
@@ -7063,7 +7213,7 @@ function create_fragment56(ctx) {
7063
7213
  }
7064
7214
  };
7065
7215
  }
7066
- function instance56($$self, $$props, $$invalidate) {
7216
+ function instance58($$self, $$props, $$invalidate) {
7067
7217
  let memberState;
7068
7218
  let value;
7069
7219
  let props;
@@ -7112,7 +7262,7 @@ function instance56($$self, $$props, $$invalidate) {
7112
7262
  var StrokeWidth = class extends SvelteComponent {
7113
7263
  constructor(options) {
7114
7264
  super();
7115
- init(this, options, instance56, create_fragment56, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7265
+ init(this, options, instance58, create_fragment58, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7116
7266
  }
7117
7267
  };
7118
7268
  var StrokeWidth_default = StrokeWidth;
@@ -7214,7 +7364,7 @@ function create_each_block(ctx) {
7214
7364
  }
7215
7365
  };
7216
7366
  }
7217
- function create_fragment57(ctx) {
7367
+ function create_fragment59(ctx) {
7218
7368
  let div;
7219
7369
  let div_class_value;
7220
7370
  let mounted;
@@ -7294,7 +7444,7 @@ function create_fragment57(ctx) {
7294
7444
  function is_equal_color(a, b) {
7295
7445
  return a && b && a.every((v, i) => v === b[i]);
7296
7446
  }
7297
- function instance57($$self, $$props, $$invalidate) {
7447
+ function instance59($$self, $$props, $$invalidate) {
7298
7448
  let memberState;
7299
7449
  let strokeColor;
7300
7450
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -7346,7 +7496,7 @@ function instance57($$self, $$props, $$invalidate) {
7346
7496
  var StrokeColor = class extends SvelteComponent {
7347
7497
  constructor(options) {
7348
7498
  super();
7349
- init(this, options, instance57, create_fragment57, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7499
+ init(this, options, instance59, create_fragment59, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7350
7500
  }
7351
7501
  };
7352
7502
  var StrokeColor_default = StrokeColor;
@@ -7448,7 +7598,7 @@ function create_each_block2(ctx) {
7448
7598
  }
7449
7599
  };
7450
7600
  }
7451
- function create_fragment58(ctx) {
7601
+ function create_fragment60(ctx) {
7452
7602
  let div;
7453
7603
  let div_class_value;
7454
7604
  let mounted;
@@ -7528,7 +7678,7 @@ function create_fragment58(ctx) {
7528
7678
  function is_equal_color2(a, b) {
7529
7679
  return a && b && a.every((v, i) => v === b[i]);
7530
7680
  }
7531
- function instance58($$self, $$props, $$invalidate) {
7681
+ function instance60($$self, $$props, $$invalidate) {
7532
7682
  let memberState;
7533
7683
  let textColor;
7534
7684
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -7580,7 +7730,7 @@ function instance58($$self, $$props, $$invalidate) {
7580
7730
  var TextColor = class extends SvelteComponent {
7581
7731
  constructor(options) {
7582
7732
  super();
7583
- init(this, options, instance58, create_fragment58, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7733
+ init(this, options, instance60, create_fragment60, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7584
7734
  }
7585
7735
  };
7586
7736
  var TextColor_default = TextColor;
@@ -7909,7 +8059,7 @@ function create_each_block3(key_1, ctx) {
7909
8059
  }
7910
8060
  };
7911
8061
  }
7912
- function create_fragment59(ctx) {
8062
+ function create_fragment61(ctx) {
7913
8063
  let div;
7914
8064
  let each_blocks = [];
7915
8065
  let each_1_lookup = /* @__PURE__ */ new Map();
@@ -8015,7 +8165,7 @@ var i18n5 = {
8015
8165
  speechBalloon: "\u6C14\u6CE1"
8016
8166
  }
8017
8167
  };
8018
- function instance59($$self, $$props, $$invalidate) {
8168
+ function instance61($$self, $$props, $$invalidate) {
8019
8169
  let t;
8020
8170
  let memberState;
8021
8171
  let appliance;
@@ -8100,7 +8250,7 @@ function instance59($$self, $$props, $$invalidate) {
8100
8250
  var SelectShapes = class extends SvelteComponent {
8101
8251
  constructor(options) {
8102
8252
  super();
8103
- init(this, options, instance59, create_fragment59, safe_not_equal, {
8253
+ init(this, options, instance61, create_fragment61, safe_not_equal, {
8104
8254
  app: 8,
8105
8255
  theme: 0,
8106
8256
  language: 9,
@@ -8253,7 +8403,7 @@ function create_default_slot4(ctx) {
8253
8403
  }
8254
8404
  };
8255
8405
  }
8256
- function create_fragment60(ctx) {
8406
+ function create_fragment62(ctx) {
8257
8407
  let button;
8258
8408
  let current;
8259
8409
  const button_spread_levels = [
@@ -8322,7 +8472,7 @@ function create_fragment60(ctx) {
8322
8472
  }
8323
8473
  };
8324
8474
  }
8325
- function instance60($$self, $$props, $$invalidate) {
8475
+ function instance62($$self, $$props, $$invalidate) {
8326
8476
  let { btn_props = {} } = $$props;
8327
8477
  let { content } = $$props;
8328
8478
  let { appliance } = $$props;
@@ -8345,7 +8495,7 @@ function instance60($$self, $$props, $$invalidate) {
8345
8495
  var Clicker = class extends SvelteComponent {
8346
8496
  constructor(options) {
8347
8497
  super();
8348
- init(this, options, instance60, create_fragment60, safe_not_equal, {
8498
+ init(this, options, instance62, create_fragment62, safe_not_equal, {
8349
8499
  btn_props: 0,
8350
8500
  content: 1,
8351
8501
  appliance: 2,
@@ -8498,7 +8648,7 @@ function create_default_slot5(ctx) {
8498
8648
  }
8499
8649
  };
8500
8650
  }
8501
- function create_fragment61(ctx) {
8651
+ function create_fragment63(ctx) {
8502
8652
  let button;
8503
8653
  let current;
8504
8654
  const button_spread_levels = [
@@ -8567,7 +8717,7 @@ function create_fragment61(ctx) {
8567
8717
  }
8568
8718
  };
8569
8719
  }
8570
- function instance61($$self, $$props, $$invalidate) {
8720
+ function instance63($$self, $$props, $$invalidate) {
8571
8721
  let { btn_props = {} } = $$props;
8572
8722
  let { content } = $$props;
8573
8723
  let { appliance } = $$props;
@@ -8590,7 +8740,7 @@ function instance61($$self, $$props, $$invalidate) {
8590
8740
  var Selector2 = class extends SvelteComponent {
8591
8741
  constructor(options) {
8592
8742
  super();
8593
- init(this, options, instance61, create_fragment61, safe_not_equal, {
8743
+ init(this, options, instance63, create_fragment63, safe_not_equal, {
8594
8744
  btn_props: 0,
8595
8745
  content: 1,
8596
8746
  appliance: 2,
@@ -8637,7 +8787,7 @@ function create_else_block8(ctx) {
8637
8787
  }
8638
8788
  };
8639
8789
  }
8640
- function create_if_block_12(ctx) {
8790
+ function create_if_block_2(ctx) {
8641
8791
  let icons_pencilfilled;
8642
8792
  let current;
8643
8793
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -8677,7 +8827,7 @@ function create_if_block_12(ctx) {
8677
8827
  }
8678
8828
  };
8679
8829
  }
8680
- function create_if_block8(ctx) {
8830
+ function create_if_block_12(ctx) {
8681
8831
  let icons_laserpenfilled;
8682
8832
  let current;
8683
8833
  icons_laserpenfilled = new Icons_default.LaserPenFilled({
@@ -8717,26 +8867,73 @@ function create_if_block8(ctx) {
8717
8867
  }
8718
8868
  };
8719
8869
  }
8870
+ function create_if_block8(ctx) {
8871
+ let icons_markpenfilled;
8872
+ let current;
8873
+ icons_markpenfilled = new Icons_default.MarkPenFilled({
8874
+ props: { theme: (
8875
+ /*theme*/
8876
+ ctx[4]
8877
+ ), active: true }
8878
+ });
8879
+ return {
8880
+ c() {
8881
+ create_component(icons_markpenfilled.$$.fragment);
8882
+ },
8883
+ m(target, anchor) {
8884
+ mount_component(icons_markpenfilled, target, anchor);
8885
+ current = true;
8886
+ },
8887
+ p(ctx2, dirty) {
8888
+ const icons_markpenfilled_changes = {};
8889
+ if (dirty & /*theme*/
8890
+ 16)
8891
+ icons_markpenfilled_changes.theme = /*theme*/
8892
+ ctx2[4];
8893
+ icons_markpenfilled.$set(icons_markpenfilled_changes);
8894
+ },
8895
+ i(local) {
8896
+ if (current)
8897
+ return;
8898
+ transition_in(icons_markpenfilled.$$.fragment, local);
8899
+ current = true;
8900
+ },
8901
+ o(local) {
8902
+ transition_out(icons_markpenfilled.$$.fragment, local);
8903
+ current = false;
8904
+ },
8905
+ d(detaching) {
8906
+ destroy_component(icons_markpenfilled, detaching);
8907
+ }
8908
+ };
8909
+ }
8720
8910
  function create_default_slot6(ctx) {
8721
8911
  let current_block_type_index;
8722
8912
  let if_block;
8723
8913
  let if_block_anchor;
8724
8914
  let current;
8725
- const if_block_creators = [create_if_block8, create_if_block_12, create_else_block8];
8915
+ const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
8726
8916
  const if_blocks = [];
8727
8917
  function select_block_type(ctx2, dirty) {
8728
8918
  if (
8729
8919
  /*appliance*/
8730
- ctx2[3] === "pencil" && /*hasUseLaserPen*/
8731
- ctx2[5]
8920
+ ctx2[3] === "pencil" && /*pencilType*/
8921
+ ctx2[5] === "mark"
8732
8922
  )
8733
8923
  return 0;
8734
8924
  if (
8735
8925
  /*appliance*/
8736
- ctx2[3] === "pencil"
8926
+ ctx2[3] === "pencil" && /*pencilType*/
8927
+ ctx2[5] === "laser"
8737
8928
  )
8738
8929
  return 1;
8739
- return 2;
8930
+ if (
8931
+ /*appliance*/
8932
+ ctx2[3] === "pencil" && /*pencilType*/
8933
+ ctx2[5] === "pencil"
8934
+ )
8935
+ return 2;
8936
+ return 3;
8740
8937
  }
8741
8938
  current_block_type_index = select_block_type(ctx);
8742
8939
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
@@ -8789,7 +8986,7 @@ function create_default_slot6(ctx) {
8789
8986
  }
8790
8987
  };
8791
8988
  }
8792
- function create_fragment62(ctx) {
8989
+ function create_fragment64(ctx) {
8793
8990
  let button;
8794
8991
  let current;
8795
8992
  const button_spread_levels = [
@@ -8846,7 +9043,7 @@ function create_fragment62(ctx) {
8846
9043
  ctx2[2]
8847
9044
  ) }
8848
9045
  ]) : {};
8849
- if (dirty & /*$$scope, theme, appliance, hasUseLaserPen*/
9046
+ if (dirty & /*$$scope, theme, appliance, pencilType*/
8850
9047
  184) {
8851
9048
  button_changes.$$scope = { dirty, ctx: ctx2 };
8852
9049
  }
@@ -8867,13 +9064,13 @@ function create_fragment62(ctx) {
8867
9064
  }
8868
9065
  };
8869
9066
  }
8870
- function instance62($$self, $$props, $$invalidate) {
9067
+ function instance64($$self, $$props, $$invalidate) {
8871
9068
  let { btn_props = {} } = $$props;
8872
9069
  let { content } = $$props;
8873
9070
  let { menu } = $$props;
8874
9071
  let { appliance } = $$props;
8875
9072
  let { theme = "light" } = $$props;
8876
- let { hasUseLaserPen = false } = $$props;
9073
+ let { pencilType = "pencil" } = $$props;
8877
9074
  function click_handler(event) {
8878
9075
  bubble.call(this, $$self, event);
8879
9076
  }
@@ -8888,21 +9085,21 @@ function instance62($$self, $$props, $$invalidate) {
8888
9085
  $$invalidate(3, appliance = $$props2.appliance);
8889
9086
  if ("theme" in $$props2)
8890
9087
  $$invalidate(4, theme = $$props2.theme);
8891
- if ("hasUseLaserPen" in $$props2)
8892
- $$invalidate(5, hasUseLaserPen = $$props2.hasUseLaserPen);
9088
+ if ("pencilType" in $$props2)
9089
+ $$invalidate(5, pencilType = $$props2.pencilType);
8893
9090
  };
8894
- return [btn_props, content, menu, appliance, theme, hasUseLaserPen, click_handler];
9091
+ return [btn_props, content, menu, appliance, theme, pencilType, click_handler];
8895
9092
  }
8896
9093
  var Pencil2 = class extends SvelteComponent {
8897
9094
  constructor(options) {
8898
9095
  super();
8899
- init(this, options, instance62, create_fragment62, safe_not_equal, {
9096
+ init(this, options, instance64, create_fragment64, safe_not_equal, {
8900
9097
  btn_props: 0,
8901
9098
  content: 1,
8902
9099
  menu: 2,
8903
9100
  appliance: 3,
8904
9101
  theme: 4,
8905
- hasUseLaserPen: 5
9102
+ pencilType: 5
8906
9103
  });
8907
9104
  }
8908
9105
  };
@@ -9051,7 +9248,7 @@ function create_default_slot7(ctx) {
9051
9248
  }
9052
9249
  };
9053
9250
  }
9054
- function create_fragment63(ctx) {
9251
+ function create_fragment65(ctx) {
9055
9252
  let button;
9056
9253
  let current;
9057
9254
  const button_spread_levels = [
@@ -9129,7 +9326,7 @@ function create_fragment63(ctx) {
9129
9326
  }
9130
9327
  };
9131
9328
  }
9132
- function instance63($$self, $$props, $$invalidate) {
9329
+ function instance65($$self, $$props, $$invalidate) {
9133
9330
  let { btn_props = {} } = $$props;
9134
9331
  let { content } = $$props;
9135
9332
  let { menu } = $$props;
@@ -9155,7 +9352,7 @@ function instance63($$self, $$props, $$invalidate) {
9155
9352
  var Text2 = class extends SvelteComponent {
9156
9353
  constructor(options) {
9157
9354
  super();
9158
- init(this, options, instance63, create_fragment63, safe_not_equal, {
9355
+ init(this, options, instance65, create_fragment65, safe_not_equal, {
9159
9356
  btn_props: 0,
9160
9357
  content: 1,
9161
9358
  menu: 2,
@@ -9397,7 +9594,7 @@ function create_default_slot8(ctx) {
9397
9594
  }
9398
9595
  };
9399
9596
  }
9400
- function create_fragment64(ctx) {
9597
+ function create_fragment66(ctx) {
9401
9598
  let button;
9402
9599
  let current;
9403
9600
  const button_spread_levels = [
@@ -9475,7 +9672,7 @@ function create_fragment64(ctx) {
9475
9672
  }
9476
9673
  };
9477
9674
  }
9478
- function instance64($$self, $$props, $$invalidate) {
9675
+ function instance66($$self, $$props, $$invalidate) {
9479
9676
  let memberState;
9480
9677
  let shape;
9481
9678
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(10, $memberState = $$value)), memberState);
@@ -9547,7 +9744,7 @@ function instance64($$self, $$props, $$invalidate) {
9547
9744
  var Shapes = class extends SvelteComponent {
9548
9745
  constructor(options) {
9549
9746
  super();
9550
- init(this, options, instance64, create_fragment64, safe_not_equal, {
9747
+ init(this, options, instance66, create_fragment66, safe_not_equal, {
9551
9748
  app: 9,
9552
9749
  btn_props: 1,
9553
9750
  content: 2,
@@ -9702,7 +9899,7 @@ function create_default_slot9(ctx) {
9702
9899
  }
9703
9900
  };
9704
9901
  }
9705
- function create_fragment65(ctx) {
9902
+ function create_fragment67(ctx) {
9706
9903
  let button;
9707
9904
  let current;
9708
9905
  const button_spread_levels = [
@@ -9771,7 +9968,7 @@ function create_fragment65(ctx) {
9771
9968
  }
9772
9969
  };
9773
9970
  }
9774
- function instance65($$self, $$props, $$invalidate) {
9971
+ function instance67($$self, $$props, $$invalidate) {
9775
9972
  let { btn_props = {} } = $$props;
9776
9973
  let { content } = $$props;
9777
9974
  let { appliance } = $$props;
@@ -9794,7 +9991,7 @@ function instance65($$self, $$props, $$invalidate) {
9794
9991
  var Eraser2 = class extends SvelteComponent {
9795
9992
  constructor(options) {
9796
9993
  super();
9797
- init(this, options, instance65, create_fragment65, safe_not_equal, {
9994
+ init(this, options, instance67, create_fragment67, safe_not_equal, {
9798
9995
  btn_props: 0,
9799
9996
  content: 1,
9800
9997
  appliance: 2,
@@ -9841,7 +10038,7 @@ function create_default_slot10(ctx) {
9841
10038
  }
9842
10039
  };
9843
10040
  }
9844
- function create_fragment66(ctx) {
10041
+ function create_fragment68(ctx) {
9845
10042
  let button;
9846
10043
  let current;
9847
10044
  const button_spread_levels = [
@@ -9910,7 +10107,7 @@ function create_fragment66(ctx) {
9910
10107
  }
9911
10108
  };
9912
10109
  }
9913
- function instance66($$self, $$props, $$invalidate) {
10110
+ function instance68($$self, $$props, $$invalidate) {
9914
10111
  let { btn_props = {} } = $$props;
9915
10112
  let { content } = $$props;
9916
10113
  let { theme = "light" } = $$props;
@@ -9930,7 +10127,7 @@ function instance66($$self, $$props, $$invalidate) {
9930
10127
  var Clear2 = class extends SvelteComponent {
9931
10128
  constructor(options) {
9932
10129
  super();
9933
- init(this, options, instance66, create_fragment66, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
10130
+ init(this, options, instance68, create_fragment68, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
9934
10131
  }
9935
10132
  };
9936
10133
  var Clear_default2 = Clear2;
@@ -10078,7 +10275,7 @@ function create_default_slot11(ctx) {
10078
10275
  }
10079
10276
  };
10080
10277
  }
10081
- function create_fragment67(ctx) {
10278
+ function create_fragment69(ctx) {
10082
10279
  let button;
10083
10280
  let current;
10084
10281
  const button_spread_levels = [
@@ -10147,7 +10344,7 @@ function create_fragment67(ctx) {
10147
10344
  }
10148
10345
  };
10149
10346
  }
10150
- function instance67($$self, $$props, $$invalidate) {
10347
+ function instance69($$self, $$props, $$invalidate) {
10151
10348
  let { btn_props = {} } = $$props;
10152
10349
  let { content } = $$props;
10153
10350
  let { appliance } = $$props;
@@ -10170,7 +10367,7 @@ function instance67($$self, $$props, $$invalidate) {
10170
10367
  var Hand = class extends SvelteComponent {
10171
10368
  constructor(options) {
10172
10369
  super();
10173
- init(this, options, instance67, create_fragment67, safe_not_equal, {
10370
+ init(this, options, instance69, create_fragment69, safe_not_equal, {
10174
10371
  btn_props: 0,
10175
10372
  content: 1,
10176
10373
  appliance: 2,
@@ -10323,7 +10520,7 @@ function create_default_slot12(ctx) {
10323
10520
  }
10324
10521
  };
10325
10522
  }
10326
- function create_fragment68(ctx) {
10523
+ function create_fragment70(ctx) {
10327
10524
  let button;
10328
10525
  let current;
10329
10526
  const button_spread_levels = [
@@ -10392,7 +10589,7 @@ function create_fragment68(ctx) {
10392
10589
  }
10393
10590
  };
10394
10591
  }
10395
- function instance68($$self, $$props, $$invalidate) {
10592
+ function instance70($$self, $$props, $$invalidate) {
10396
10593
  let { btn_props = {} } = $$props;
10397
10594
  let { content } = $$props;
10398
10595
  let { appliance } = $$props;
@@ -10415,7 +10612,7 @@ function instance68($$self, $$props, $$invalidate) {
10415
10612
  var Laser2 = class extends SvelteComponent {
10416
10613
  constructor(options) {
10417
10614
  super();
10418
- init(this, options, instance68, create_fragment68, safe_not_equal, {
10615
+ init(this, options, instance70, create_fragment70, safe_not_equal, {
10419
10616
  btn_props: 0,
10420
10617
  content: 1,
10421
10618
  appliance: 2,
@@ -10428,42 +10625,42 @@ var Laser_default2 = Laser2;
10428
10625
  // src/components/Toolbar/components/Contents.svelte
10429
10626
  function get_each_context4(ctx, list, i) {
10430
10627
  const child_ctx = ctx.slice();
10431
- child_ctx[47] = list[i];
10628
+ child_ctx[50] = list[i];
10432
10629
  const constants_0 = (
10433
10630
  /*netless_app*/
10434
- child_ctx[47]
10631
+ child_ctx[50]
10435
10632
  );
10436
- child_ctx[48] = constants_0.icon;
10437
- child_ctx[49] = constants_0.label;
10438
- child_ctx[50] = constants_0.kind;
10439
- child_ctx[51] = constants_0.onClick;
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;
10440
10637
  const constants_1 = (
10441
10638
  /*$status*/
10442
10639
  child_ctx[22] && /*$status*/
10443
10640
  child_ctx[22][
10444
10641
  /*kind*/
10445
- child_ctx[50]
10642
+ child_ctx[53]
10446
10643
  ]
10447
10644
  );
10448
- child_ctx[52] = constants_1;
10645
+ child_ctx[55] = constants_1;
10449
10646
  const constants_2 = function func() {
10450
10647
  return (
10451
10648
  /*func*/
10452
- ctx[43](
10649
+ ctx[46](
10453
10650
  /*onClick*/
10454
- child_ctx[51]
10651
+ child_ctx[54]
10455
10652
  )
10456
10653
  );
10457
10654
  };
10458
- child_ctx[53] = constants_2;
10655
+ child_ctx[56] = constants_2;
10459
10656
  return child_ctx;
10460
10657
  }
10461
10658
  function get_each_context_1(ctx, list, i) {
10462
10659
  const child_ctx = ctx.slice();
10463
- child_ctx[56] = list[i];
10660
+ child_ctx[59] = list[i];
10464
10661
  return child_ctx;
10465
10662
  }
10466
- function create_if_block_13(ctx) {
10663
+ function create_if_block_18(ctx) {
10467
10664
  let button;
10468
10665
  let current;
10469
10666
  const button_spread_levels = [
@@ -10472,7 +10669,7 @@ function create_if_block_13(ctx) {
10472
10669
  ctx[15]
10473
10670
  ];
10474
10671
  let button_props = {
10475
- $$slots: { default: [create_default_slot_6] },
10672
+ $$slots: { default: [create_default_slot_8] },
10476
10673
  $$scope: { ctx }
10477
10674
  };
10478
10675
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -10499,8 +10696,8 @@ function create_if_block_13(ctx) {
10499
10696
  ctx2[15]
10500
10697
  )]) : {};
10501
10698
  if (dirty[0] & /*theme*/
10502
- 2 | dirty[1] & /*$$scope*/
10503
- 268435456) {
10699
+ 2 | dirty[2] & /*$$scope*/
10700
+ 1) {
10504
10701
  button_changes.$$scope = { dirty, ctx: ctx2 };
10505
10702
  }
10506
10703
  button.$set(button_changes);
@@ -10520,7 +10717,7 @@ function create_if_block_13(ctx) {
10520
10717
  }
10521
10718
  };
10522
10719
  }
10523
- function create_default_slot_6(ctx) {
10720
+ function create_default_slot_8(ctx) {
10524
10721
  let icons_up;
10525
10722
  let current;
10526
10723
  icons_up = new Icons_default.Up({ props: { theme: (
@@ -10558,7 +10755,7 @@ function create_default_slot_6(ctx) {
10558
10755
  }
10559
10756
  };
10560
10757
  }
10561
- function create_if_block_122(ctx) {
10758
+ function create_if_block_17(ctx) {
10562
10759
  let laser;
10563
10760
  let current;
10564
10761
  laser = new Laser_default2({
@@ -10629,7 +10826,7 @@ function create_if_block_122(ctx) {
10629
10826
  }
10630
10827
  };
10631
10828
  }
10632
- function create_if_block_11(ctx) {
10829
+ function create_if_block_16(ctx) {
10633
10830
  let hand_1;
10634
10831
  let current;
10635
10832
  hand_1 = new Hand_default({
@@ -10700,7 +10897,7 @@ function create_if_block_11(ctx) {
10700
10897
  }
10701
10898
  };
10702
10899
  }
10703
- function create_if_block_10(ctx) {
10900
+ function create_if_block_15(ctx) {
10704
10901
  let clear_1;
10705
10902
  let current;
10706
10903
  clear_1 = new Clear_default2({
@@ -10763,7 +10960,7 @@ function create_if_block_10(ctx) {
10763
10960
  }
10764
10961
  };
10765
10962
  }
10766
- function create_if_block_9(ctx) {
10963
+ function create_if_block_14(ctx) {
10767
10964
  let eraser_1;
10768
10965
  let current;
10769
10966
  eraser_1 = new Eraser_default2({
@@ -10834,7 +11031,7 @@ function create_if_block_9(ctx) {
10834
11031
  }
10835
11032
  };
10836
11033
  }
10837
- function create_if_block_8(ctx) {
11034
+ function create_if_block_13(ctx) {
10838
11035
  let shapes2;
10839
11036
  let current;
10840
11037
  shapes2 = new Shapes_default({
@@ -10916,7 +11113,7 @@ function create_if_block_8(ctx) {
10916
11113
  }
10917
11114
  };
10918
11115
  }
10919
- function create_if_block_7(ctx) {
11116
+ function create_if_block_122(ctx) {
10920
11117
  let text_1;
10921
11118
  let current;
10922
11119
  text_1 = new Text_default2({
@@ -10995,13 +11192,13 @@ function create_if_block_7(ctx) {
10995
11192
  }
10996
11193
  };
10997
11194
  }
10998
- function create_if_block_6(ctx) {
11195
+ function create_if_block_11(ctx) {
10999
11196
  let pencil_1;
11000
11197
  let current;
11001
11198
  pencil_1 = new Pencil_default2({
11002
11199
  props: {
11003
- hasUseLaserPen: (
11004
- /*hasUseLaserPen*/
11200
+ pencilType: (
11201
+ /*pencilType*/
11005
11202
  ctx[16]
11006
11203
  ),
11007
11204
  appliance: (
@@ -11041,9 +11238,9 @@ function create_if_block_6(ctx) {
11041
11238
  },
11042
11239
  p(ctx2, dirty) {
11043
11240
  const pencil_1_changes = {};
11044
- if (dirty[0] & /*hasUseLaserPen*/
11241
+ if (dirty[0] & /*pencilType*/
11045
11242
  65536)
11046
- pencil_1_changes.hasUseLaserPen = /*hasUseLaserPen*/
11243
+ pencil_1_changes.pencilType = /*pencilType*/
11047
11244
  ctx2[16];
11048
11245
  if (dirty[0] & /*appliance*/
11049
11246
  262144)
@@ -11082,7 +11279,7 @@ function create_if_block_6(ctx) {
11082
11279
  }
11083
11280
  };
11084
11281
  }
11085
- function create_if_block_5(ctx) {
11282
+ function create_if_block_10(ctx) {
11086
11283
  let selector_1;
11087
11284
  let current;
11088
11285
  selector_1 = new Selector_default2({
@@ -11153,7 +11350,7 @@ function create_if_block_5(ctx) {
11153
11350
  }
11154
11351
  };
11155
11352
  }
11156
- function create_if_block_4(ctx) {
11353
+ function create_if_block_9(ctx) {
11157
11354
  let clicker_1;
11158
11355
  let current;
11159
11356
  clicker_1 = new Clicker_default({
@@ -11230,61 +11427,61 @@ function create_each_block_1(ctx) {
11230
11427
  let if_block_anchor;
11231
11428
  let current;
11232
11429
  const if_block_creators = [
11233
- create_if_block_4,
11234
- create_if_block_5,
11235
- create_if_block_6,
11236
- create_if_block_7,
11237
- create_if_block_8,
11238
11430
  create_if_block_9,
11239
11431
  create_if_block_10,
11240
11432
  create_if_block_11,
11241
- create_if_block_122
11433
+ create_if_block_122,
11434
+ create_if_block_13,
11435
+ create_if_block_14,
11436
+ create_if_block_15,
11437
+ create_if_block_16,
11438
+ create_if_block_17
11242
11439
  ];
11243
11440
  const if_blocks = [];
11244
11441
  function select_block_type(ctx2, dirty) {
11245
11442
  if (
11246
11443
  /*item*/
11247
- ctx2[56] === "clicker"
11444
+ ctx2[59] === "clicker"
11248
11445
  )
11249
11446
  return 0;
11250
11447
  if (
11251
11448
  /*item*/
11252
- ctx2[56] === "selector"
11449
+ ctx2[59] === "selector"
11253
11450
  )
11254
11451
  return 1;
11255
11452
  if (
11256
11453
  /*item*/
11257
- ctx2[56] === "pencil"
11454
+ ctx2[59] === "pencil"
11258
11455
  )
11259
11456
  return 2;
11260
11457
  if (
11261
11458
  /*item*/
11262
- ctx2[56] === "text"
11459
+ ctx2[59] === "text"
11263
11460
  )
11264
11461
  return 3;
11265
11462
  if (
11266
11463
  /*item*/
11267
- ctx2[56] === "shapes"
11464
+ ctx2[59] === "shapes"
11268
11465
  )
11269
11466
  return 4;
11270
11467
  if (
11271
11468
  /*item*/
11272
- ctx2[56] === "eraser"
11469
+ ctx2[59] === "eraser"
11273
11470
  )
11274
11471
  return 5;
11275
11472
  if (
11276
11473
  /*item*/
11277
- ctx2[56] === "clear"
11474
+ ctx2[59] === "clear"
11278
11475
  )
11279
11476
  return 6;
11280
11477
  if (
11281
11478
  /*item*/
11282
- ctx2[56] === "hand"
11479
+ ctx2[59] === "hand"
11283
11480
  )
11284
11481
  return 7;
11285
11482
  if (
11286
11483
  /*item*/
11287
- ctx2[56] === "laserPointer"
11484
+ ctx2[59] === "laserPointer"
11288
11485
  )
11289
11486
  return 8;
11290
11487
  return -1;
@@ -11354,7 +11551,7 @@ function create_each_block_1(ctx) {
11354
11551
  }
11355
11552
  };
11356
11553
  }
11357
- function create_if_block_3(ctx) {
11554
+ function create_if_block_8(ctx) {
11358
11555
  let button;
11359
11556
  let current;
11360
11557
  const button_spread_levels = [
@@ -11377,7 +11574,7 @@ function create_if_block_3(ctx) {
11377
11574
  }
11378
11575
  ];
11379
11576
  let button_props = {
11380
- $$slots: { default: [create_default_slot_53] },
11577
+ $$slots: { default: [create_default_slot_7] },
11381
11578
  $$scope: { ctx }
11382
11579
  };
11383
11580
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -11420,8 +11617,8 @@ function create_if_block_3(ctx) {
11420
11617
  }
11421
11618
  ]) : {};
11422
11619
  if (dirty[0] & /*theme*/
11423
- 2 | dirty[1] & /*$$scope*/
11424
- 268435456) {
11620
+ 2 | dirty[2] & /*$$scope*/
11621
+ 1) {
11425
11622
  button_changes.$$scope = { dirty, ctx: ctx2 };
11426
11623
  }
11427
11624
  button.$set(button_changes);
@@ -11441,7 +11638,7 @@ function create_if_block_3(ctx) {
11441
11638
  }
11442
11639
  };
11443
11640
  }
11444
- function create_default_slot_53(ctx) {
11641
+ function create_default_slot_7(ctx) {
11445
11642
  let icons_apps;
11446
11643
  let current;
11447
11644
  icons_apps = new Icons_default.Apps({ props: { theme: (
@@ -11479,7 +11676,7 @@ function create_default_slot_53(ctx) {
11479
11676
  }
11480
11677
  };
11481
11678
  }
11482
- function create_if_block_2(ctx) {
11679
+ function create_if_block_7(ctx) {
11483
11680
  let button;
11484
11681
  let current;
11485
11682
  button = new Button_default({
@@ -11494,7 +11691,7 @@ function create_if_block_2(ctx) {
11494
11691
  /*disabled*/
11495
11692
  ctx[3]
11496
11693
  ),
11497
- $$slots: { default: [create_default_slot_43] },
11694
+ $$slots: { default: [create_default_slot_6] },
11498
11695
  $$scope: { ctx }
11499
11696
  }
11500
11697
  });
@@ -11522,8 +11719,8 @@ function create_if_block_2(ctx) {
11522
11719
  button_changes.disabled = /*disabled*/
11523
11720
  ctx2[3];
11524
11721
  if (dirty[0] & /*theme*/
11525
- 2 | dirty[1] & /*$$scope*/
11526
- 268435456) {
11722
+ 2 | dirty[2] & /*$$scope*/
11723
+ 1) {
11527
11724
  button_changes.$$scope = { dirty, ctx: ctx2 };
11528
11725
  }
11529
11726
  button.$set(button_changes);
@@ -11543,7 +11740,7 @@ function create_if_block_2(ctx) {
11543
11740
  }
11544
11741
  };
11545
11742
  }
11546
- function create_default_slot_43(ctx) {
11743
+ function create_default_slot_6(ctx) {
11547
11744
  let icons_down;
11548
11745
  let current;
11549
11746
  icons_down = new Icons_default.Down({ props: { theme: (
@@ -11581,57 +11778,306 @@ function create_default_slot_43(ctx) {
11581
11778
  }
11582
11779
  };
11583
11780
  }
11584
- function create_if_block_14(ctx) {
11585
- let button0;
11586
- let t_1;
11587
- let button1;
11781
+ function create_if_block14(ctx) {
11782
+ let current_block_type_index;
11783
+ let if_block0;
11784
+ let t0;
11785
+ let current_block_type_index_1;
11786
+ let if_block1;
11787
+ let t1;
11788
+ let current_block_type_index_2;
11789
+ let if_block2;
11790
+ let if_block2_anchor;
11791
+ let current;
11792
+ const if_block_creators = [create_if_block_5, create_if_block_6];
11793
+ const if_blocks = [];
11794
+ function select_block_type_1(ctx2, dirty) {
11795
+ if (
11796
+ /*pencilType*/
11797
+ ctx2[16] !== "pencil"
11798
+ )
11799
+ return 0;
11800
+ if (
11801
+ /*pencilType*/
11802
+ ctx2[16] === "pencil"
11803
+ )
11804
+ return 1;
11805
+ return -1;
11806
+ }
11807
+ if (~(current_block_type_index = select_block_type_1(ctx))) {
11808
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
11809
+ }
11810
+ const if_block_creators_1 = [create_if_block_3, create_if_block_4];
11811
+ const if_blocks_1 = [];
11812
+ function select_block_type_2(ctx2, dirty) {
11813
+ if (
11814
+ /*pencilType*/
11815
+ ctx2[16] === "laser"
11816
+ )
11817
+ return 0;
11818
+ if (
11819
+ /*pencilType*/
11820
+ ctx2[16] !== "laser"
11821
+ )
11822
+ return 1;
11823
+ return -1;
11824
+ }
11825
+ if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
11826
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
11827
+ }
11828
+ const if_block_creators_2 = [create_if_block_19, create_if_block_22];
11829
+ const if_blocks_2 = [];
11830
+ function select_block_type_3(ctx2, dirty) {
11831
+ if (
11832
+ /*pencilType*/
11833
+ ctx2[16] === "mark"
11834
+ )
11835
+ return 0;
11836
+ if (
11837
+ /*pencilType*/
11838
+ ctx2[16] !== "mark"
11839
+ )
11840
+ return 1;
11841
+ return -1;
11842
+ }
11843
+ if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
11844
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
11845
+ }
11846
+ return {
11847
+ c() {
11848
+ if (if_block0)
11849
+ if_block0.c();
11850
+ t0 = space();
11851
+ if (if_block1)
11852
+ if_block1.c();
11853
+ t1 = space();
11854
+ if (if_block2)
11855
+ if_block2.c();
11856
+ if_block2_anchor = empty();
11857
+ },
11858
+ m(target, anchor) {
11859
+ if (~current_block_type_index) {
11860
+ if_blocks[current_block_type_index].m(target, anchor);
11861
+ }
11862
+ insert(target, t0, anchor);
11863
+ if (~current_block_type_index_1) {
11864
+ if_blocks_1[current_block_type_index_1].m(target, anchor);
11865
+ }
11866
+ insert(target, t1, anchor);
11867
+ if (~current_block_type_index_2) {
11868
+ if_blocks_2[current_block_type_index_2].m(target, anchor);
11869
+ }
11870
+ insert(target, if_block2_anchor, anchor);
11871
+ current = true;
11872
+ },
11873
+ p(ctx2, dirty) {
11874
+ let previous_block_index = current_block_type_index;
11875
+ current_block_type_index = select_block_type_1(ctx2);
11876
+ if (current_block_type_index === previous_block_index) {
11877
+ if (~current_block_type_index) {
11878
+ if_blocks[current_block_type_index].p(ctx2, dirty);
11879
+ }
11880
+ } else {
11881
+ if (if_block0) {
11882
+ group_outros();
11883
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
11884
+ if_blocks[previous_block_index] = null;
11885
+ });
11886
+ check_outros();
11887
+ }
11888
+ if (~current_block_type_index) {
11889
+ if_block0 = if_blocks[current_block_type_index];
11890
+ if (!if_block0) {
11891
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
11892
+ if_block0.c();
11893
+ } else {
11894
+ if_block0.p(ctx2, dirty);
11895
+ }
11896
+ transition_in(if_block0, 1);
11897
+ if_block0.m(t0.parentNode, t0);
11898
+ } else {
11899
+ if_block0 = null;
11900
+ }
11901
+ }
11902
+ let previous_block_index_1 = current_block_type_index_1;
11903
+ current_block_type_index_1 = select_block_type_2(ctx2);
11904
+ if (current_block_type_index_1 === previous_block_index_1) {
11905
+ if (~current_block_type_index_1) {
11906
+ if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
11907
+ }
11908
+ } else {
11909
+ if (if_block1) {
11910
+ group_outros();
11911
+ transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
11912
+ if_blocks_1[previous_block_index_1] = null;
11913
+ });
11914
+ check_outros();
11915
+ }
11916
+ if (~current_block_type_index_1) {
11917
+ if_block1 = if_blocks_1[current_block_type_index_1];
11918
+ if (!if_block1) {
11919
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx2);
11920
+ if_block1.c();
11921
+ } else {
11922
+ if_block1.p(ctx2, dirty);
11923
+ }
11924
+ transition_in(if_block1, 1);
11925
+ if_block1.m(t1.parentNode, t1);
11926
+ } else {
11927
+ if_block1 = null;
11928
+ }
11929
+ }
11930
+ let previous_block_index_2 = current_block_type_index_2;
11931
+ current_block_type_index_2 = select_block_type_3(ctx2);
11932
+ if (current_block_type_index_2 === previous_block_index_2) {
11933
+ if (~current_block_type_index_2) {
11934
+ if_blocks_2[current_block_type_index_2].p(ctx2, dirty);
11935
+ }
11936
+ } else {
11937
+ if (if_block2) {
11938
+ group_outros();
11939
+ transition_out(if_blocks_2[previous_block_index_2], 1, 1, () => {
11940
+ if_blocks_2[previous_block_index_2] = null;
11941
+ });
11942
+ check_outros();
11943
+ }
11944
+ if (~current_block_type_index_2) {
11945
+ if_block2 = if_blocks_2[current_block_type_index_2];
11946
+ if (!if_block2) {
11947
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx2);
11948
+ if_block2.c();
11949
+ } else {
11950
+ if_block2.p(ctx2, dirty);
11951
+ }
11952
+ transition_in(if_block2, 1);
11953
+ if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
11954
+ } else {
11955
+ if_block2 = null;
11956
+ }
11957
+ }
11958
+ },
11959
+ i(local) {
11960
+ if (current)
11961
+ return;
11962
+ transition_in(if_block0);
11963
+ transition_in(if_block1);
11964
+ transition_in(if_block2);
11965
+ current = true;
11966
+ },
11967
+ o(local) {
11968
+ transition_out(if_block0);
11969
+ transition_out(if_block1);
11970
+ transition_out(if_block2);
11971
+ current = false;
11972
+ },
11973
+ d(detaching) {
11974
+ if (~current_block_type_index) {
11975
+ if_blocks[current_block_type_index].d(detaching);
11976
+ }
11977
+ if (detaching)
11978
+ detach(t0);
11979
+ if (~current_block_type_index_1) {
11980
+ if_blocks_1[current_block_type_index_1].d(detaching);
11981
+ }
11982
+ if (detaching)
11983
+ detach(t1);
11984
+ if (~current_block_type_index_2) {
11985
+ if_blocks_2[current_block_type_index_2].d(detaching);
11986
+ }
11987
+ if (detaching)
11988
+ detach(if_block2_anchor);
11989
+ }
11990
+ };
11991
+ }
11992
+ function create_if_block_6(ctx) {
11993
+ let button;
11588
11994
  let current;
11589
- const button0_spread_levels = [
11995
+ const button_spread_levels = [
11590
11996
  { class: name5 + "-panel-switch-btn" },
11591
11997
  /*btn_props*/
11592
11998
  ctx[15]
11593
11999
  ];
11594
- let button0_props = {
11595
- $$slots: { default: [create_default_slot_34] },
12000
+ let button_props = {
12001
+ $$slots: { default: [create_default_slot_53] },
11596
12002
  $$scope: { ctx }
11597
12003
  };
11598
- for (let i = 0; i < button0_spread_levels.length; i += 1) {
11599
- button0_props = assign(button0_props, button0_spread_levels[i]);
12004
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12005
+ button_props = assign(button_props, button_spread_levels[i]);
11600
12006
  }
11601
- button0 = new Button_default({ props: button0_props });
11602
- const button1_spread_levels = [
12007
+ button = new Button_default({ props: button_props });
12008
+ return {
12009
+ c() {
12010
+ create_component(button.$$.fragment);
12011
+ },
12012
+ m(target, anchor) {
12013
+ mount_component(button, target, anchor);
12014
+ current = true;
12015
+ },
12016
+ p(ctx2, dirty) {
12017
+ const button_changes = dirty[0] & /*btn_props*/
12018
+ 32768 ? get_spread_update(button_spread_levels, [
12019
+ dirty & /*name*/
12020
+ 0 && { class: name5 + "-panel-switch-btn" },
12021
+ dirty[0] & /*btn_props*/
12022
+ 32768 && get_spread_object(
12023
+ /*btn_props*/
12024
+ ctx2[15]
12025
+ )
12026
+ ]) : {};
12027
+ if (dirty[0] & /*theme*/
12028
+ 2 | dirty[2] & /*$$scope*/
12029
+ 1) {
12030
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12031
+ }
12032
+ button.$set(button_changes);
12033
+ },
12034
+ i(local) {
12035
+ if (current)
12036
+ return;
12037
+ transition_in(button.$$.fragment, local);
12038
+ current = true;
12039
+ },
12040
+ o(local) {
12041
+ transition_out(button.$$.fragment, local);
12042
+ current = false;
12043
+ },
12044
+ d(detaching) {
12045
+ destroy_component(button, detaching);
12046
+ }
12047
+ };
12048
+ }
12049
+ function create_if_block_5(ctx) {
12050
+ let button;
12051
+ let current;
12052
+ const button_spread_levels = [
11603
12053
  { class: name5 + "-panel-switch-btn" },
11604
12054
  /*btn_props*/
11605
12055
  ctx[15]
11606
12056
  ];
11607
- let button1_props = {
11608
- $$slots: { default: [create_default_slot_24] },
12057
+ let button_props = {
12058
+ $$slots: { default: [create_default_slot_43] },
11609
12059
  $$scope: { ctx }
11610
12060
  };
11611
- for (let i = 0; i < button1_spread_levels.length; i += 1) {
11612
- button1_props = assign(button1_props, button1_spread_levels[i]);
12061
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12062
+ button_props = assign(button_props, button_spread_levels[i]);
11613
12063
  }
11614
- button1 = new Button_default({ props: button1_props });
11615
- button1.$on(
12064
+ button = new Button_default({ props: button_props });
12065
+ button.$on(
11616
12066
  "click",
11617
- /*useLaserPen*/
11618
- ctx[34]
12067
+ /*pencil*/
12068
+ ctx[28]
11619
12069
  );
11620
12070
  return {
11621
12071
  c() {
11622
- create_component(button0.$$.fragment);
11623
- t_1 = space();
11624
- create_component(button1.$$.fragment);
12072
+ create_component(button.$$.fragment);
11625
12073
  },
11626
12074
  m(target, anchor) {
11627
- mount_component(button0, target, anchor);
11628
- insert(target, t_1, anchor);
11629
- mount_component(button1, target, anchor);
12075
+ mount_component(button, target, anchor);
11630
12076
  current = true;
11631
12077
  },
11632
12078
  p(ctx2, dirty) {
11633
- const button0_changes = dirty[0] & /*btn_props*/
11634
- 32768 ? get_spread_update(button0_spread_levels, [
12079
+ const button_changes = dirty[0] & /*btn_props*/
12080
+ 32768 ? get_spread_update(button_spread_levels, [
11635
12081
  dirty & /*name*/
11636
12082
  0 && { class: name5 + "-panel-switch-btn" },
11637
12083
  dirty[0] & /*btn_props*/
@@ -11641,13 +12087,137 @@ function create_if_block_14(ctx) {
11641
12087
  )
11642
12088
  ]) : {};
11643
12089
  if (dirty[0] & /*theme*/
11644
- 2 | dirty[1] & /*$$scope*/
11645
- 268435456) {
11646
- button0_changes.$$scope = { dirty, ctx: ctx2 };
12090
+ 2 | dirty[2] & /*$$scope*/
12091
+ 1) {
12092
+ button_changes.$$scope = { dirty, ctx: ctx2 };
11647
12093
  }
11648
- button0.$set(button0_changes);
11649
- const button1_changes = dirty[0] & /*btn_props*/
11650
- 32768 ? get_spread_update(button1_spread_levels, [
12094
+ button.$set(button_changes);
12095
+ },
12096
+ i(local) {
12097
+ if (current)
12098
+ return;
12099
+ transition_in(button.$$.fragment, local);
12100
+ current = true;
12101
+ },
12102
+ o(local) {
12103
+ transition_out(button.$$.fragment, local);
12104
+ current = false;
12105
+ },
12106
+ d(detaching) {
12107
+ destroy_component(button, detaching);
12108
+ }
12109
+ };
12110
+ }
12111
+ function create_default_slot_53(ctx) {
12112
+ let icons_pencilfilled;
12113
+ let current;
12114
+ icons_pencilfilled = new Icons_default.PencilFilled({
12115
+ props: { theme: (
12116
+ /*theme*/
12117
+ ctx[1]
12118
+ ), active: true }
12119
+ });
12120
+ return {
12121
+ c() {
12122
+ create_component(icons_pencilfilled.$$.fragment);
12123
+ },
12124
+ m(target, anchor) {
12125
+ mount_component(icons_pencilfilled, target, anchor);
12126
+ current = true;
12127
+ },
12128
+ p(ctx2, dirty) {
12129
+ const icons_pencilfilled_changes = {};
12130
+ if (dirty[0] & /*theme*/
12131
+ 2)
12132
+ icons_pencilfilled_changes.theme = /*theme*/
12133
+ ctx2[1];
12134
+ icons_pencilfilled.$set(icons_pencilfilled_changes);
12135
+ },
12136
+ i(local) {
12137
+ if (current)
12138
+ return;
12139
+ transition_in(icons_pencilfilled.$$.fragment, local);
12140
+ current = true;
12141
+ },
12142
+ o(local) {
12143
+ transition_out(icons_pencilfilled.$$.fragment, local);
12144
+ current = false;
12145
+ },
12146
+ d(detaching) {
12147
+ destroy_component(icons_pencilfilled, detaching);
12148
+ }
12149
+ };
12150
+ }
12151
+ function create_default_slot_43(ctx) {
12152
+ let icons_pencil;
12153
+ let current;
12154
+ icons_pencil = new Icons_default.Pencil({ props: { theme: (
12155
+ /*theme*/
12156
+ ctx[1]
12157
+ ) } });
12158
+ return {
12159
+ c() {
12160
+ create_component(icons_pencil.$$.fragment);
12161
+ },
12162
+ m(target, anchor) {
12163
+ mount_component(icons_pencil, target, anchor);
12164
+ current = true;
12165
+ },
12166
+ p(ctx2, dirty) {
12167
+ const icons_pencil_changes = {};
12168
+ if (dirty[0] & /*theme*/
12169
+ 2)
12170
+ icons_pencil_changes.theme = /*theme*/
12171
+ ctx2[1];
12172
+ icons_pencil.$set(icons_pencil_changes);
12173
+ },
12174
+ i(local) {
12175
+ if (current)
12176
+ return;
12177
+ transition_in(icons_pencil.$$.fragment, local);
12178
+ current = true;
12179
+ },
12180
+ o(local) {
12181
+ transition_out(icons_pencil.$$.fragment, local);
12182
+ current = false;
12183
+ },
12184
+ d(detaching) {
12185
+ destroy_component(icons_pencil, detaching);
12186
+ }
12187
+ };
12188
+ }
12189
+ function create_if_block_4(ctx) {
12190
+ let button;
12191
+ let current;
12192
+ const button_spread_levels = [
12193
+ { class: name5 + "-panel-switch-btn" },
12194
+ /*btn_props*/
12195
+ ctx[15]
12196
+ ];
12197
+ let button_props = {
12198
+ $$slots: { default: [create_default_slot_34] },
12199
+ $$scope: { ctx }
12200
+ };
12201
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12202
+ button_props = assign(button_props, button_spread_levels[i]);
12203
+ }
12204
+ button = new Button_default({ props: button_props });
12205
+ button.$on(
12206
+ "click",
12207
+ /*useLaserPen*/
12208
+ ctx[34]
12209
+ );
12210
+ return {
12211
+ c() {
12212
+ create_component(button.$$.fragment);
12213
+ },
12214
+ m(target, anchor) {
12215
+ mount_component(button, target, anchor);
12216
+ current = true;
12217
+ },
12218
+ p(ctx2, dirty) {
12219
+ const button_changes = dirty[0] & /*btn_props*/
12220
+ 32768 ? get_spread_update(button_spread_levels, [
11651
12221
  dirty & /*name*/
11652
12222
  0 && { class: name5 + "-panel-switch-btn" },
11653
12223
  dirty[0] & /*btn_props*/
@@ -11657,99 +12227,194 @@ function create_if_block_14(ctx) {
11657
12227
  )
11658
12228
  ]) : {};
11659
12229
  if (dirty[0] & /*theme*/
11660
- 2 | dirty[1] & /*$$scope*/
11661
- 268435456) {
11662
- button1_changes.$$scope = { dirty, ctx: ctx2 };
12230
+ 2 | dirty[2] & /*$$scope*/
12231
+ 1) {
12232
+ button_changes.$$scope = { dirty, ctx: ctx2 };
11663
12233
  }
11664
- button1.$set(button1_changes);
12234
+ button.$set(button_changes);
11665
12235
  },
11666
12236
  i(local) {
11667
12237
  if (current)
11668
12238
  return;
11669
- transition_in(button0.$$.fragment, local);
11670
- transition_in(button1.$$.fragment, local);
12239
+ transition_in(button.$$.fragment, local);
11671
12240
  current = true;
11672
12241
  },
11673
12242
  o(local) {
11674
- transition_out(button0.$$.fragment, local);
11675
- transition_out(button1.$$.fragment, local);
12243
+ transition_out(button.$$.fragment, local);
12244
+ current = false;
12245
+ },
12246
+ d(detaching) {
12247
+ destroy_component(button, detaching);
12248
+ }
12249
+ };
12250
+ }
12251
+ function create_if_block_3(ctx) {
12252
+ let button;
12253
+ let current;
12254
+ const button_spread_levels = [
12255
+ { class: name5 + "-panel-switch-btn" },
12256
+ /*btn_props*/
12257
+ ctx[15]
12258
+ ];
12259
+ let button_props = {
12260
+ $$slots: { default: [create_default_slot_24] },
12261
+ $$scope: { ctx }
12262
+ };
12263
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12264
+ button_props = assign(button_props, button_spread_levels[i]);
12265
+ }
12266
+ button = new Button_default({ props: button_props });
12267
+ return {
12268
+ c() {
12269
+ create_component(button.$$.fragment);
12270
+ },
12271
+ m(target, anchor) {
12272
+ mount_component(button, target, anchor);
12273
+ current = true;
12274
+ },
12275
+ p(ctx2, dirty) {
12276
+ const button_changes = dirty[0] & /*btn_props*/
12277
+ 32768 ? get_spread_update(button_spread_levels, [
12278
+ dirty & /*name*/
12279
+ 0 && { class: name5 + "-panel-switch-btn" },
12280
+ dirty[0] & /*btn_props*/
12281
+ 32768 && get_spread_object(
12282
+ /*btn_props*/
12283
+ ctx2[15]
12284
+ )
12285
+ ]) : {};
12286
+ if (dirty[0] & /*theme*/
12287
+ 2 | dirty[2] & /*$$scope*/
12288
+ 1) {
12289
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12290
+ }
12291
+ button.$set(button_changes);
12292
+ },
12293
+ i(local) {
12294
+ if (current)
12295
+ return;
12296
+ transition_in(button.$$.fragment, local);
12297
+ current = true;
12298
+ },
12299
+ o(local) {
12300
+ transition_out(button.$$.fragment, local);
12301
+ current = false;
12302
+ },
12303
+ d(detaching) {
12304
+ destroy_component(button, detaching);
12305
+ }
12306
+ };
12307
+ }
12308
+ function create_default_slot_34(ctx) {
12309
+ let icons_laserpen;
12310
+ let current;
12311
+ icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
12312
+ /*theme*/
12313
+ ctx[1]
12314
+ ) } });
12315
+ return {
12316
+ c() {
12317
+ create_component(icons_laserpen.$$.fragment);
12318
+ },
12319
+ m(target, anchor) {
12320
+ mount_component(icons_laserpen, target, anchor);
12321
+ current = true;
12322
+ },
12323
+ p(ctx2, dirty) {
12324
+ const icons_laserpen_changes = {};
12325
+ if (dirty[0] & /*theme*/
12326
+ 2)
12327
+ icons_laserpen_changes.theme = /*theme*/
12328
+ ctx2[1];
12329
+ icons_laserpen.$set(icons_laserpen_changes);
12330
+ },
12331
+ i(local) {
12332
+ if (current)
12333
+ return;
12334
+ transition_in(icons_laserpen.$$.fragment, local);
12335
+ current = true;
12336
+ },
12337
+ o(local) {
12338
+ transition_out(icons_laserpen.$$.fragment, local);
12339
+ current = false;
12340
+ },
12341
+ d(detaching) {
12342
+ destroy_component(icons_laserpen, detaching);
12343
+ }
12344
+ };
12345
+ }
12346
+ function create_default_slot_24(ctx) {
12347
+ let icons_laserpenfilled;
12348
+ let current;
12349
+ icons_laserpenfilled = new Icons_default.LaserPenFilled({
12350
+ props: { theme: (
12351
+ /*theme*/
12352
+ ctx[1]
12353
+ ), active: true }
12354
+ });
12355
+ return {
12356
+ c() {
12357
+ create_component(icons_laserpenfilled.$$.fragment);
12358
+ },
12359
+ m(target, anchor) {
12360
+ mount_component(icons_laserpenfilled, target, anchor);
12361
+ current = true;
12362
+ },
12363
+ p(ctx2, dirty) {
12364
+ const icons_laserpenfilled_changes = {};
12365
+ if (dirty[0] & /*theme*/
12366
+ 2)
12367
+ icons_laserpenfilled_changes.theme = /*theme*/
12368
+ ctx2[1];
12369
+ icons_laserpenfilled.$set(icons_laserpenfilled_changes);
12370
+ },
12371
+ i(local) {
12372
+ if (current)
12373
+ return;
12374
+ transition_in(icons_laserpenfilled.$$.fragment, local);
12375
+ current = true;
12376
+ },
12377
+ o(local) {
12378
+ transition_out(icons_laserpenfilled.$$.fragment, local);
11676
12379
  current = false;
11677
12380
  },
11678
12381
  d(detaching) {
11679
- destroy_component(button0, detaching);
11680
- if (detaching)
11681
- detach(t_1);
11682
- destroy_component(button1, detaching);
12382
+ destroy_component(icons_laserpenfilled, detaching);
11683
12383
  }
11684
12384
  };
11685
12385
  }
11686
- function create_if_block14(ctx) {
11687
- let button0;
11688
- let t_1;
11689
- let button1;
12386
+ function create_if_block_22(ctx) {
12387
+ let button;
11690
12388
  let current;
11691
- const button0_spread_levels = [
12389
+ const button_spread_levels = [
11692
12390
  { class: name5 + "-panel-switch-btn" },
11693
12391
  /*btn_props*/
11694
12392
  ctx[15]
11695
12393
  ];
11696
- let button0_props = {
12394
+ let button_props = {
11697
12395
  $$slots: { default: [create_default_slot_14] },
11698
12396
  $$scope: { ctx }
11699
12397
  };
11700
- for (let i = 0; i < button0_spread_levels.length; i += 1) {
11701
- button0_props = assign(button0_props, button0_spread_levels[i]);
12398
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12399
+ button_props = assign(button_props, button_spread_levels[i]);
11702
12400
  }
11703
- button0 = new Button_default({ props: button0_props });
11704
- button0.$on(
12401
+ button = new Button_default({ props: button_props });
12402
+ button.$on(
11705
12403
  "click",
11706
- /*pencil*/
11707
- ctx[28]
12404
+ /*useMarkPen*/
12405
+ ctx[35]
11708
12406
  );
11709
- const button1_spread_levels = [
11710
- { class: name5 + "-panel-switch-btn" },
11711
- /*btn_props*/
11712
- ctx[15]
11713
- ];
11714
- let button1_props = {
11715
- $$slots: { default: [create_default_slot13] },
11716
- $$scope: { ctx }
11717
- };
11718
- for (let i = 0; i < button1_spread_levels.length; i += 1) {
11719
- button1_props = assign(button1_props, button1_spread_levels[i]);
11720
- }
11721
- button1 = new Button_default({ props: button1_props });
11722
12407
  return {
11723
12408
  c() {
11724
- create_component(button0.$$.fragment);
11725
- t_1 = space();
11726
- create_component(button1.$$.fragment);
12409
+ create_component(button.$$.fragment);
11727
12410
  },
11728
12411
  m(target, anchor) {
11729
- mount_component(button0, target, anchor);
11730
- insert(target, t_1, anchor);
11731
- mount_component(button1, target, anchor);
12412
+ mount_component(button, target, anchor);
11732
12413
  current = true;
11733
12414
  },
11734
12415
  p(ctx2, dirty) {
11735
- const button0_changes = dirty[0] & /*btn_props*/
11736
- 32768 ? get_spread_update(button0_spread_levels, [
11737
- dirty & /*name*/
11738
- 0 && { class: name5 + "-panel-switch-btn" },
11739
- dirty[0] & /*btn_props*/
11740
- 32768 && get_spread_object(
11741
- /*btn_props*/
11742
- ctx2[15]
11743
- )
11744
- ]) : {};
11745
- if (dirty[0] & /*theme*/
11746
- 2 | dirty[1] & /*$$scope*/
11747
- 268435456) {
11748
- button0_changes.$$scope = { dirty, ctx: ctx2 };
11749
- }
11750
- button0.$set(button0_changes);
11751
- const button1_changes = dirty[0] & /*btn_props*/
11752
- 32768 ? get_spread_update(button1_spread_levels, [
12416
+ const button_changes = dirty[0] & /*btn_props*/
12417
+ 32768 ? get_spread_update(button_spread_levels, [
11753
12418
  dirty & /*name*/
11754
12419
  0 && { class: name5 + "-panel-switch-btn" },
11755
12420
  dirty[0] & /*btn_props*/
@@ -11759,152 +12424,126 @@ function create_if_block14(ctx) {
11759
12424
  )
11760
12425
  ]) : {};
11761
12426
  if (dirty[0] & /*theme*/
11762
- 2 | dirty[1] & /*$$scope*/
11763
- 268435456) {
11764
- button1_changes.$$scope = { dirty, ctx: ctx2 };
12427
+ 2 | dirty[2] & /*$$scope*/
12428
+ 1) {
12429
+ button_changes.$$scope = { dirty, ctx: ctx2 };
11765
12430
  }
11766
- button1.$set(button1_changes);
12431
+ button.$set(button_changes);
11767
12432
  },
11768
12433
  i(local) {
11769
12434
  if (current)
11770
12435
  return;
11771
- transition_in(button0.$$.fragment, local);
11772
- transition_in(button1.$$.fragment, local);
12436
+ transition_in(button.$$.fragment, local);
11773
12437
  current = true;
11774
12438
  },
11775
12439
  o(local) {
11776
- transition_out(button0.$$.fragment, local);
11777
- transition_out(button1.$$.fragment, local);
12440
+ transition_out(button.$$.fragment, local);
11778
12441
  current = false;
11779
12442
  },
11780
12443
  d(detaching) {
11781
- destroy_component(button0, detaching);
11782
- if (detaching)
11783
- detach(t_1);
11784
- destroy_component(button1, detaching);
12444
+ destroy_component(button, detaching);
11785
12445
  }
11786
12446
  };
11787
12447
  }
11788
- function create_default_slot_34(ctx) {
11789
- let icons_pencilfilled;
12448
+ function create_if_block_19(ctx) {
12449
+ let button;
11790
12450
  let current;
11791
- icons_pencilfilled = new Icons_default.PencilFilled({
11792
- props: { theme: (
11793
- /*theme*/
11794
- ctx[1]
11795
- ), active: true }
11796
- });
11797
- return {
11798
- c() {
11799
- create_component(icons_pencilfilled.$$.fragment);
11800
- },
11801
- m(target, anchor) {
11802
- mount_component(icons_pencilfilled, target, anchor);
11803
- current = true;
11804
- },
11805
- p(ctx2, dirty) {
11806
- const icons_pencilfilled_changes = {};
11807
- if (dirty[0] & /*theme*/
11808
- 2)
11809
- icons_pencilfilled_changes.theme = /*theme*/
11810
- ctx2[1];
11811
- icons_pencilfilled.$set(icons_pencilfilled_changes);
11812
- },
11813
- i(local) {
11814
- if (current)
11815
- return;
11816
- transition_in(icons_pencilfilled.$$.fragment, local);
11817
- current = true;
11818
- },
11819
- o(local) {
11820
- transition_out(icons_pencilfilled.$$.fragment, local);
11821
- current = false;
11822
- },
11823
- d(detaching) {
11824
- destroy_component(icons_pencilfilled, detaching);
11825
- }
12451
+ const button_spread_levels = [
12452
+ { class: name5 + "-panel-switch-btn" },
12453
+ /*btn_props*/
12454
+ ctx[15]
12455
+ ];
12456
+ let button_props = {
12457
+ $$slots: { default: [create_default_slot13] },
12458
+ $$scope: { ctx }
11826
12459
  };
11827
- }
11828
- function create_default_slot_24(ctx) {
11829
- let icons_laserpen;
11830
- let current;
11831
- icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
11832
- /*theme*/
11833
- ctx[1]
11834
- ) } });
12460
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12461
+ button_props = assign(button_props, button_spread_levels[i]);
12462
+ }
12463
+ button = new Button_default({ props: button_props });
11835
12464
  return {
11836
12465
  c() {
11837
- create_component(icons_laserpen.$$.fragment);
12466
+ create_component(button.$$.fragment);
11838
12467
  },
11839
12468
  m(target, anchor) {
11840
- mount_component(icons_laserpen, target, anchor);
12469
+ mount_component(button, target, anchor);
11841
12470
  current = true;
11842
12471
  },
11843
12472
  p(ctx2, dirty) {
11844
- const icons_laserpen_changes = {};
12473
+ const button_changes = dirty[0] & /*btn_props*/
12474
+ 32768 ? get_spread_update(button_spread_levels, [
12475
+ dirty & /*name*/
12476
+ 0 && { class: name5 + "-panel-switch-btn" },
12477
+ dirty[0] & /*btn_props*/
12478
+ 32768 && get_spread_object(
12479
+ /*btn_props*/
12480
+ ctx2[15]
12481
+ )
12482
+ ]) : {};
11845
12483
  if (dirty[0] & /*theme*/
11846
- 2)
11847
- icons_laserpen_changes.theme = /*theme*/
11848
- ctx2[1];
11849
- icons_laserpen.$set(icons_laserpen_changes);
12484
+ 2 | dirty[2] & /*$$scope*/
12485
+ 1) {
12486
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12487
+ }
12488
+ button.$set(button_changes);
11850
12489
  },
11851
12490
  i(local) {
11852
12491
  if (current)
11853
12492
  return;
11854
- transition_in(icons_laserpen.$$.fragment, local);
12493
+ transition_in(button.$$.fragment, local);
11855
12494
  current = true;
11856
12495
  },
11857
12496
  o(local) {
11858
- transition_out(icons_laserpen.$$.fragment, local);
12497
+ transition_out(button.$$.fragment, local);
11859
12498
  current = false;
11860
12499
  },
11861
12500
  d(detaching) {
11862
- destroy_component(icons_laserpen, detaching);
12501
+ destroy_component(button, detaching);
11863
12502
  }
11864
12503
  };
11865
12504
  }
11866
12505
  function create_default_slot_14(ctx) {
11867
- let icons_pencil;
12506
+ let icons_markpen;
11868
12507
  let current;
11869
- icons_pencil = new Icons_default.Pencil({ props: { theme: (
12508
+ icons_markpen = new Icons_default.MarkPen({ props: { theme: (
11870
12509
  /*theme*/
11871
12510
  ctx[1]
11872
12511
  ) } });
11873
12512
  return {
11874
12513
  c() {
11875
- create_component(icons_pencil.$$.fragment);
12514
+ create_component(icons_markpen.$$.fragment);
11876
12515
  },
11877
12516
  m(target, anchor) {
11878
- mount_component(icons_pencil, target, anchor);
12517
+ mount_component(icons_markpen, target, anchor);
11879
12518
  current = true;
11880
12519
  },
11881
12520
  p(ctx2, dirty) {
11882
- const icons_pencil_changes = {};
12521
+ const icons_markpen_changes = {};
11883
12522
  if (dirty[0] & /*theme*/
11884
12523
  2)
11885
- icons_pencil_changes.theme = /*theme*/
12524
+ icons_markpen_changes.theme = /*theme*/
11886
12525
  ctx2[1];
11887
- icons_pencil.$set(icons_pencil_changes);
12526
+ icons_markpen.$set(icons_markpen_changes);
11888
12527
  },
11889
12528
  i(local) {
11890
12529
  if (current)
11891
12530
  return;
11892
- transition_in(icons_pencil.$$.fragment, local);
12531
+ transition_in(icons_markpen.$$.fragment, local);
11893
12532
  current = true;
11894
12533
  },
11895
12534
  o(local) {
11896
- transition_out(icons_pencil.$$.fragment, local);
12535
+ transition_out(icons_markpen.$$.fragment, local);
11897
12536
  current = false;
11898
12537
  },
11899
12538
  d(detaching) {
11900
- destroy_component(icons_pencil, detaching);
12539
+ destroy_component(icons_markpen, detaching);
11901
12540
  }
11902
12541
  };
11903
12542
  }
11904
12543
  function create_default_slot13(ctx) {
11905
- let icons_laserpenfilled;
12544
+ let icons_markpenfilled;
11906
12545
  let current;
11907
- icons_laserpenfilled = new Icons_default.LaserPenFilled({
12546
+ icons_markpenfilled = new Icons_default.MarkPenFilled({
11908
12547
  props: { theme: (
11909
12548
  /*theme*/
11910
12549
  ctx[1]
@@ -11912,32 +12551,32 @@ function create_default_slot13(ctx) {
11912
12551
  });
11913
12552
  return {
11914
12553
  c() {
11915
- create_component(icons_laserpenfilled.$$.fragment);
12554
+ create_component(icons_markpenfilled.$$.fragment);
11916
12555
  },
11917
12556
  m(target, anchor) {
11918
- mount_component(icons_laserpenfilled, target, anchor);
12557
+ mount_component(icons_markpenfilled, target, anchor);
11919
12558
  current = true;
11920
12559
  },
11921
12560
  p(ctx2, dirty) {
11922
- const icons_laserpenfilled_changes = {};
12561
+ const icons_markpenfilled_changes = {};
11923
12562
  if (dirty[0] & /*theme*/
11924
12563
  2)
11925
- icons_laserpenfilled_changes.theme = /*theme*/
12564
+ icons_markpenfilled_changes.theme = /*theme*/
11926
12565
  ctx2[1];
11927
- icons_laserpenfilled.$set(icons_laserpenfilled_changes);
12566
+ icons_markpenfilled.$set(icons_markpenfilled_changes);
11928
12567
  },
11929
12568
  i(local) {
11930
12569
  if (current)
11931
12570
  return;
11932
- transition_in(icons_laserpenfilled.$$.fragment, local);
12571
+ transition_in(icons_markpenfilled.$$.fragment, local);
11933
12572
  current = true;
11934
12573
  },
11935
12574
  o(local) {
11936
- transition_out(icons_laserpenfilled.$$.fragment, local);
12575
+ transition_out(icons_markpenfilled.$$.fragment, local);
11937
12576
  current = false;
11938
12577
  },
11939
12578
  d(detaching) {
11940
- destroy_component(icons_laserpenfilled, detaching);
12579
+ destroy_component(icons_markpenfilled, detaching);
11941
12580
  }
11942
12581
  };
11943
12582
  }
@@ -11952,7 +12591,7 @@ function create_each_block4(ctx) {
11952
12591
  let span;
11953
12592
  let t1_value = (
11954
12593
  /*label*/
11955
- ctx[49] + ""
12594
+ ctx[52] + ""
11956
12595
  );
11957
12596
  let t1;
11958
12597
  let span_class_value;
@@ -11974,40 +12613,40 @@ function create_each_block4(ctx) {
11974
12613
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
11975
12614
  ctx[1]);
11976
12615
  if (!src_url_equal(img.src, img_src_value = /*icon*/
11977
- ctx[48]))
12616
+ ctx[51]))
11978
12617
  attr(img, "src", img_src_value);
11979
12618
  attr(img, "alt", img_alt_value = /*kind*/
11980
- ctx[50]);
12619
+ ctx[53]);
11981
12620
  attr(img, "title", img_title_value = /*label*/
11982
- ctx[49]);
12621
+ ctx[52]);
11983
12622
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
11984
12623
  ctx[1]);
11985
12624
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
11986
- ctx[50] + " " + /*theme*/
12625
+ ctx[53] + " " + /*theme*/
11987
12626
  ctx[1]);
11988
12627
  attr(button, "title", button_title_value = /*label*/
11989
- ctx[49] + /*state*/
11990
- (ctx[52] && /*state*/
11991
- ctx[52].reason ? ": " + /*state*/
11992
- ctx[52].reason : ""));
12628
+ ctx[52] + /*state*/
12629
+ (ctx[55] && /*state*/
12630
+ ctx[55].reason ? ": " + /*state*/
12631
+ ctx[55].reason : ""));
11993
12632
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
11994
- ctx[47].kind);
12633
+ ctx[50].kind);
11995
12634
  button.disabled = button_disabled_value = /*state*/
11996
- ctx[52] && /*state*/
11997
- ctx[52].status !== "idle";
12635
+ ctx[55] && /*state*/
12636
+ ctx[55].status !== "idle";
11998
12637
  toggle_class(
11999
12638
  button,
12000
12639
  "is-loading",
12001
12640
  /*state*/
12002
- ctx[52] && /*state*/
12003
- ctx[52].status === "loading"
12641
+ ctx[55] && /*state*/
12642
+ ctx[55].status === "loading"
12004
12643
  );
12005
12644
  toggle_class(
12006
12645
  button,
12007
12646
  "is-failed",
12008
12647
  /*state*/
12009
- ctx[52] && /*state*/
12010
- ctx[52].status === "failed"
12648
+ ctx[55] && /*state*/
12649
+ ctx[55].status === "failed"
12011
12650
  );
12012
12651
  },
12013
12652
  m(target, anchor) {
@@ -12021,9 +12660,9 @@ function create_each_block4(ctx) {
12021
12660
  dispose = listen(button, "click", function() {
12022
12661
  if (is_function(
12023
12662
  /*on_click*/
12024
- ctx[53]
12663
+ ctx[56]
12025
12664
  ))
12026
- ctx[53].apply(this, arguments);
12665
+ ctx[56].apply(this, arguments);
12027
12666
  });
12028
12667
  mounted = true;
12029
12668
  }
@@ -12037,22 +12676,22 @@ function create_each_block4(ctx) {
12037
12676
  }
12038
12677
  if (dirty[0] & /*$apps*/
12039
12678
  2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
12040
- ctx[48])) {
12679
+ ctx[51])) {
12041
12680
  attr(img, "src", img_src_value);
12042
12681
  }
12043
12682
  if (dirty[0] & /*$apps*/
12044
12683
  2097152 && img_alt_value !== (img_alt_value = /*kind*/
12045
- ctx[50])) {
12684
+ ctx[53])) {
12046
12685
  attr(img, "alt", img_alt_value);
12047
12686
  }
12048
12687
  if (dirty[0] & /*$apps*/
12049
12688
  2097152 && img_title_value !== (img_title_value = /*label*/
12050
- ctx[49])) {
12689
+ ctx[52])) {
12051
12690
  attr(img, "title", img_title_value);
12052
12691
  }
12053
12692
  if (dirty[0] & /*$apps*/
12054
12693
  2097152 && t1_value !== (t1_value = /*label*/
12055
- ctx[49] + ""))
12694
+ ctx[52] + ""))
12056
12695
  set_data(t1, t1_value);
12057
12696
  if (dirty[0] & /*theme*/
12058
12697
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -12061,27 +12700,27 @@ function create_each_block4(ctx) {
12061
12700
  }
12062
12701
  if (dirty[0] & /*$apps, theme*/
12063
12702
  2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
12064
- ctx[50] + " " + /*theme*/
12703
+ ctx[53] + " " + /*theme*/
12065
12704
  ctx[1])) {
12066
12705
  attr(button, "class", button_class_value);
12067
12706
  }
12068
12707
  if (dirty[0] & /*$apps, $status*/
12069
12708
  6291456 && button_title_value !== (button_title_value = /*label*/
12070
- ctx[49] + /*state*/
12071
- (ctx[52] && /*state*/
12072
- ctx[52].reason ? ": " + /*state*/
12073
- ctx[52].reason : ""))) {
12709
+ ctx[52] + /*state*/
12710
+ (ctx[55] && /*state*/
12711
+ ctx[55].reason ? ": " + /*state*/
12712
+ ctx[55].reason : ""))) {
12074
12713
  attr(button, "title", button_title_value);
12075
12714
  }
12076
12715
  if (dirty[0] & /*$apps*/
12077
12716
  2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
12078
- ctx[47].kind)) {
12717
+ ctx[50].kind)) {
12079
12718
  attr(button, "data-app-kind", button_data_app_kind_value);
12080
12719
  }
12081
12720
  if (dirty[0] & /*$status, $apps*/
12082
12721
  6291456 && button_disabled_value !== (button_disabled_value = /*state*/
12083
- ctx[52] && /*state*/
12084
- ctx[52].status !== "idle")) {
12722
+ ctx[55] && /*state*/
12723
+ ctx[55].status !== "idle")) {
12085
12724
  button.disabled = button_disabled_value;
12086
12725
  }
12087
12726
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12090,8 +12729,8 @@ function create_each_block4(ctx) {
12090
12729
  button,
12091
12730
  "is-loading",
12092
12731
  /*state*/
12093
- ctx[52] && /*state*/
12094
- ctx[52].status === "loading"
12732
+ ctx[55] && /*state*/
12733
+ ctx[55].status === "loading"
12095
12734
  );
12096
12735
  }
12097
12736
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12100,8 +12739,8 @@ function create_each_block4(ctx) {
12100
12739
  button,
12101
12740
  "is-failed",
12102
12741
  /*state*/
12103
- ctx[52] && /*state*/
12104
- ctx[52].status === "failed"
12742
+ ctx[55] && /*state*/
12743
+ ctx[55].status === "failed"
12105
12744
  );
12106
12745
  }
12107
12746
  },
@@ -12113,7 +12752,8 @@ function create_each_block4(ctx) {
12113
12752
  }
12114
12753
  };
12115
12754
  }
12116
- function create_fragment69(ctx) {
12755
+ function create_fragment71(ctx) {
12756
+ var _a;
12117
12757
  let t0;
12118
12758
  let div0;
12119
12759
  let t1;
@@ -12123,8 +12763,6 @@ function create_fragment69(ctx) {
12123
12763
  let div9;
12124
12764
  let div3;
12125
12765
  let div1;
12126
- let current_block_type_index;
12127
- let if_block3;
12128
12766
  let t4;
12129
12767
  let strokewidth0;
12130
12768
  let t5;
@@ -12152,7 +12790,7 @@ function create_fragment69(ctx) {
12152
12790
  let dispose;
12153
12791
  let if_block0 = (
12154
12792
  /*scrollable*/
12155
- ctx[5] && create_if_block_13(ctx)
12793
+ ctx[5] && create_if_block_18(ctx)
12156
12794
  );
12157
12795
  let each_value_1 = (
12158
12796
  /*items*/
@@ -12166,27 +12804,13 @@ function create_fragment69(ctx) {
12166
12804
  each_blocks_1[i] = null;
12167
12805
  });
12168
12806
  let if_block1 = !/*hide_apps*/
12169
- ctx[8] && create_if_block_3(ctx);
12807
+ ctx[8] && create_if_block_8(ctx);
12170
12808
  let if_block2 = (
12171
12809
  /*scrollable*/
12172
- ctx[5] && create_if_block_2(ctx)
12810
+ ctx[5] && create_if_block_7(ctx)
12173
12811
  );
12174
- const if_block_creators = [create_if_block14, create_if_block_14];
12175
- const if_blocks = [];
12176
- function select_block_type_1(ctx2, dirty) {
12177
- var _a, _b;
12178
- if (!!/*app*/
12179
- ((_a = ctx2[0]) == null ? void 0 : _a.appliancePlugin) && /*hasUseLaserPen*/
12180
- ctx2[16])
12181
- return 0;
12182
- if (!!/*app*/
12183
- ((_b = ctx2[0]) == null ? void 0 : _b.appliancePlugin))
12184
- return 1;
12185
- return -1;
12186
- }
12187
- if (~(current_block_type_index = select_block_type_1(ctx))) {
12188
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12189
- }
12812
+ let if_block3 = !!/*app*/
12813
+ ((_a = ctx[0]) == null ? void 0 : _a.appliancePlugin) && create_if_block14(ctx);
12190
12814
  strokewidth0 = new StrokeWidth_default({
12191
12815
  props: {
12192
12816
  app: (
@@ -12397,20 +13021,19 @@ function create_fragment69(ctx) {
12397
13021
  insert(target, div9, anchor);
12398
13022
  append(div9, div3);
12399
13023
  append(div3, div1);
12400
- if (~current_block_type_index) {
12401
- if_blocks[current_block_type_index].m(div1, null);
12402
- }
13024
+ if (if_block3)
13025
+ if_block3.m(div1, null);
12403
13026
  append(div3, t4);
12404
13027
  mount_component(strokewidth0, div3, null);
12405
13028
  append(div3, t5);
12406
13029
  append(div3, div2);
12407
13030
  append(div3, t6);
12408
13031
  mount_component(strokecolor0, div3, null);
12409
- ctx[40](div3);
13032
+ ctx[43](div3);
12410
13033
  append(div9, t7);
12411
13034
  append(div9, div4);
12412
13035
  mount_component(textcolor, div4, null);
12413
- ctx[41](div4);
13036
+ ctx[44](div4);
12414
13037
  append(div9, t8);
12415
13038
  append(div9, div7);
12416
13039
  mount_component(selectshapes, div7, null);
@@ -12422,7 +13045,7 @@ function create_fragment69(ctx) {
12422
13045
  append(div7, div6);
12423
13046
  append(div7, t12);
12424
13047
  mount_component(strokecolor1, div7, null);
12425
- ctx[42](div7);
13048
+ ctx[45](div7);
12426
13049
  append(div9, t13);
12427
13050
  append(div9, div8);
12428
13051
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -12430,7 +13053,7 @@ function create_fragment69(ctx) {
12430
13053
  each_blocks[i].m(div8, null);
12431
13054
  }
12432
13055
  }
12433
- ctx[44](div8);
13056
+ ctx[47](div8);
12434
13057
  current = true;
12435
13058
  if (!mounted) {
12436
13059
  dispose = [
@@ -12451,6 +13074,7 @@ function create_fragment69(ctx) {
12451
13074
  }
12452
13075
  },
12453
13076
  p(ctx2, dirty) {
13077
+ var _a2;
12454
13078
  if (
12455
13079
  /*scrollable*/
12456
13080
  ctx2[5]
@@ -12462,7 +13086,7 @@ function create_fragment69(ctx) {
12462
13086
  transition_in(if_block0, 1);
12463
13087
  }
12464
13088
  } else {
12465
- if_block0 = create_if_block_13(ctx2);
13089
+ if_block0 = create_if_block_18(ctx2);
12466
13090
  if_block0.c();
12467
13091
  transition_in(if_block0, 1);
12468
13092
  if_block0.m(t0.parentNode, t0);
@@ -12474,7 +13098,7 @@ function create_fragment69(ctx) {
12474
13098
  });
12475
13099
  check_outros();
12476
13100
  }
12477
- if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, hasUseLaserPen, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13101
+ if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
12478
13102
  2081799299 | dirty[1] & /*clear, hand, laserPointer*/
12479
13103
  7) {
12480
13104
  each_value_1 = /*items*/
@@ -12507,7 +13131,7 @@ function create_fragment69(ctx) {
12507
13131
  transition_in(if_block1, 1);
12508
13132
  }
12509
13133
  } else {
12510
- if_block1 = create_if_block_3(ctx2);
13134
+ if_block1 = create_if_block_8(ctx2);
12511
13135
  if_block1.c();
12512
13136
  transition_in(if_block1, 1);
12513
13137
  if_block1.m(div0, null);
@@ -12546,7 +13170,7 @@ function create_fragment69(ctx) {
12546
13170
  transition_in(if_block2, 1);
12547
13171
  }
12548
13172
  } else {
12549
- if_block2 = create_if_block_2(ctx2);
13173
+ if_block2 = create_if_block_7(ctx2);
12550
13174
  if_block2.c();
12551
13175
  transition_in(if_block2, 1);
12552
13176
  if_block2.m(t3.parentNode, t3);
@@ -12558,33 +13182,26 @@ function create_fragment69(ctx) {
12558
13182
  });
12559
13183
  check_outros();
12560
13184
  }
12561
- let previous_block_index = current_block_type_index;
12562
- current_block_type_index = select_block_type_1(ctx2);
12563
- if (current_block_type_index === previous_block_index) {
12564
- if (~current_block_type_index) {
12565
- if_blocks[current_block_type_index].p(ctx2, dirty);
12566
- }
12567
- } else {
13185
+ if (!!/*app*/
13186
+ ((_a2 = ctx2[0]) == null ? void 0 : _a2.appliancePlugin)) {
12568
13187
  if (if_block3) {
12569
- group_outros();
12570
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
12571
- if_blocks[previous_block_index] = null;
12572
- });
12573
- check_outros();
12574
- }
12575
- if (~current_block_type_index) {
12576
- if_block3 = if_blocks[current_block_type_index];
12577
- if (!if_block3) {
12578
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
12579
- if_block3.c();
12580
- } else {
12581
- if_block3.p(ctx2, dirty);
13188
+ if_block3.p(ctx2, dirty);
13189
+ if (dirty[0] & /*app*/
13190
+ 1) {
13191
+ transition_in(if_block3, 1);
12582
13192
  }
13193
+ } else {
13194
+ if_block3 = create_if_block14(ctx2);
13195
+ if_block3.c();
12583
13196
  transition_in(if_block3, 1);
12584
13197
  if_block3.m(div1, null);
12585
- } else {
12586
- if_block3 = null;
12587
13198
  }
13199
+ } else if (if_block3) {
13200
+ group_outros();
13201
+ transition_out(if_block3, 1, 1, () => {
13202
+ if_block3 = null;
13203
+ });
13204
+ check_outros();
12588
13205
  }
12589
13206
  const strokewidth0_changes = {};
12590
13207
  if (dirty[0] & /*app*/
@@ -12769,27 +13386,26 @@ function create_fragment69(ctx) {
12769
13386
  detach(t3);
12770
13387
  if (detaching)
12771
13388
  detach(div9);
12772
- if (~current_block_type_index) {
12773
- if_blocks[current_block_type_index].d();
12774
- }
13389
+ if (if_block3)
13390
+ if_block3.d();
12775
13391
  destroy_component(strokewidth0);
12776
13392
  destroy_component(strokecolor0);
12777
- ctx[40](null);
13393
+ ctx[43](null);
12778
13394
  destroy_component(textcolor);
12779
- ctx[41](null);
13395
+ ctx[44](null);
12780
13396
  destroy_component(selectshapes);
12781
13397
  destroy_component(strokewidth1);
12782
13398
  destroy_component(strokecolor1);
12783
- ctx[42](null);
13399
+ ctx[45](null);
12784
13400
  destroy_each(each_blocks, detaching);
12785
- ctx[44](null);
13401
+ ctx[47](null);
12786
13402
  mounted = false;
12787
13403
  run_all(dispose);
12788
13404
  }
12789
13405
  };
12790
13406
  }
12791
13407
  var name5 = "fastboard-toolbar";
12792
- function instance69($$self, $$props, $$invalidate) {
13408
+ function instance71($$self, $$props, $$invalidate) {
12793
13409
  let t;
12794
13410
  let hotkeys;
12795
13411
  let c;
@@ -12799,9 +13415,11 @@ function instance69($$self, $$props, $$invalidate) {
12799
13415
  let max_scroll;
12800
13416
  let hasAppliancePlugin;
12801
13417
  let hasUseLaserPen;
13418
+ let hasUseMarkPen;
13419
+ let pencilType;
12802
13420
  let $top;
12803
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(38, $memberState = $$value)), memberState);
12804
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(39, $scroll_height = $$value)), scroll_height);
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);
12805
13423
  let $apps;
12806
13424
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
12807
13425
  component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
@@ -12826,7 +13444,7 @@ function instance69($$self, $$props, $$invalidate) {
12826
13444
  let apps_panel;
12827
13445
  let btn_props;
12828
13446
  let top = writable(0);
12829
- component_subscribe($$self, top, (value) => $$invalidate(46, $top = value));
13447
+ component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
12830
13448
  function scroll_up() {
12831
13449
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
12832
13450
  }
@@ -12840,7 +13458,16 @@ function instance69($$self, $$props, $$invalidate) {
12840
13458
  app == null ? void 0 : app.setAppliance("selector");
12841
13459
  }
12842
13460
  function pencil() {
12843
- app == null ? void 0 : app.setAppliance("pencil");
13461
+ var _a;
13462
+ 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
+ });
13468
+ } else {
13469
+ app == null ? void 0 : app.setAppliance("pencil");
13470
+ }
12844
13471
  }
12845
13472
  function text4() {
12846
13473
  app == null ? void 0 : app.setAppliance("text");
@@ -12858,7 +13485,20 @@ function instance69($$self, $$props, $$invalidate) {
12858
13485
  app == null ? void 0 : app.cleanCurrentScene();
12859
13486
  }
12860
13487
  function useLaserPen() {
12861
- app == null ? void 0 : app.setAppliance("laserPen");
13488
+ var _a;
13489
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
13490
+ currentApplianceName: "laserPen",
13491
+ useLaserPen: true,
13492
+ strokeOpacity: 1
13493
+ });
13494
+ }
13495
+ function useMarkPen() {
13496
+ var _a;
13497
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
13498
+ currentApplianceName: "pencil",
13499
+ useLaserPen: false,
13500
+ strokeOpacity: 0.5
13501
+ });
12862
13502
  }
12863
13503
  function div3_binding($$value) {
12864
13504
  binding_callbacks[$$value ? "unshift" : "push"](() => {
@@ -12900,7 +13540,7 @@ function instance69($$self, $$props, $$invalidate) {
12900
13540
  if ("scroll_height" in $$props2)
12901
13541
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
12902
13542
  if ("computed_height" in $$props2)
12903
- $$invalidate(35, computed_height = $$props2.computed_height);
13543
+ $$invalidate(36, computed_height = $$props2.computed_height);
12904
13544
  if ("scrollable" in $$props2)
12905
13545
  $$invalidate(5, scrollable = $$props2.scrollable);
12906
13546
  if ("placement" in $$props2)
@@ -12929,11 +13569,11 @@ function instance69($$self, $$props, $$invalidate) {
12929
13569
  }
12930
13570
  if ($$self.$$.dirty[0] & /*app*/
12931
13571
  1) {
12932
- $$invalidate(37, hotkeys = app == null ? void 0 : app.hotKeys);
13572
+ $$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
12933
13573
  }
12934
13574
  if ($$self.$$.dirty[0] & /*t*/
12935
13575
  1024 | $$self.$$.dirty[1] & /*hotkeys*/
12936
- 64) {
13576
+ 512) {
12937
13577
  $$invalidate(20, c = {
12938
13578
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
12939
13579
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -12949,7 +13589,7 @@ function instance69($$self, $$props, $$invalidate) {
12949
13589
  $$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
12950
13590
  }
12951
13591
  if ($$self.$$.dirty[1] & /*$memberState*/
12952
- 128) {
13592
+ 1024) {
12953
13593
  $$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
12954
13594
  }
12955
13595
  if ($$self.$$.dirty[0] & /*app*/
@@ -12958,16 +13598,24 @@ function instance69($$self, $$props, $$invalidate) {
12958
13598
  }
12959
13599
  if ($$self.$$.dirty[0] & /*scrollable*/
12960
13600
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
12961
- 272) {
13601
+ 2080) {
12962
13602
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
12963
13603
  }
12964
13604
  if ($$self.$$.dirty[0] & /*app*/
12965
13605
  1) {
12966
- $$invalidate(36, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
13606
+ $$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
13607
+ }
13608
+ if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
13609
+ 1088) {
13610
+ $$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
12967
13611
  }
12968
13612
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
12969
- 160) {
12970
- $$invalidate(16, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
13613
+ 1088) {
13614
+ $$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
13615
+ }
13616
+ if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
13617
+ 384) {
13618
+ $$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
12971
13619
  }
12972
13620
  };
12973
13621
  return [
@@ -12987,7 +13635,7 @@ function instance69($$self, $$props, $$invalidate) {
12987
13635
  shapes_panel,
12988
13636
  apps_panel,
12989
13637
  btn_props,
12990
- hasUseLaserPen,
13638
+ pencilType,
12991
13639
  status,
12992
13640
  appliance,
12993
13641
  memberState,
@@ -13006,8 +13654,11 @@ function instance69($$self, $$props, $$invalidate) {
13006
13654
  laserPointer,
13007
13655
  clear,
13008
13656
  useLaserPen,
13657
+ useMarkPen,
13009
13658
  computed_height,
13010
13659
  hasAppliancePlugin,
13660
+ hasUseMarkPen,
13661
+ hasUseLaserPen,
13011
13662
  hotkeys,
13012
13663
  $memberState,
13013
13664
  $scroll_height,
@@ -13024,8 +13675,8 @@ var Contents = class extends SvelteComponent {
13024
13675
  init(
13025
13676
  this,
13026
13677
  options,
13027
- instance69,
13028
- create_fragment69,
13678
+ instance71,
13679
+ create_fragment71,
13029
13680
  safe_not_equal,
13030
13681
  {
13031
13682
  app: 0,
@@ -13033,7 +13684,7 @@ var Contents = class extends SvelteComponent {
13033
13684
  language: 2,
13034
13685
  disabled: 3,
13035
13686
  scroll_height: 4,
13036
- computed_height: 35,
13687
+ computed_height: 36,
13037
13688
  scrollable: 5,
13038
13689
  placement: 6,
13039
13690
  items: 7,
@@ -13041,7 +13692,7 @@ var Contents = class extends SvelteComponent {
13041
13692
  colors: 9
13042
13693
  },
13043
13694
  null,
13044
- [-1, -1]
13695
+ [-1, -1, -1]
13045
13696
  );
13046
13697
  }
13047
13698
  };
@@ -13104,7 +13755,7 @@ function create_if_block15(ctx) {
13104
13755
  }
13105
13756
  };
13106
13757
  }
13107
- function create_fragment70(ctx) {
13758
+ function create_fragment72(ctx) {
13108
13759
  let div1;
13109
13760
  let div0;
13110
13761
  let contents;
@@ -13374,7 +14025,7 @@ function create_fragment70(ctx) {
13374
14025
  };
13375
14026
  }
13376
14027
  var name6 = "fastboard-toolbar";
13377
- function instance70($$self, $$props, $$invalidate) {
14028
+ function instance72($$self, $$props, $$invalidate) {
13378
14029
  let writable2;
13379
14030
  let phase;
13380
14031
  let disabled;
@@ -13493,7 +14144,7 @@ function instance70($$self, $$props, $$invalidate) {
13493
14144
  var Toolbar = class extends SvelteComponent {
13494
14145
  constructor(options) {
13495
14146
  super();
13496
- init(this, options, instance70, create_fragment70, safe_not_equal, {
14147
+ init(this, options, instance72, create_fragment72, safe_not_equal, {
13497
14148
  app: 1,
13498
14149
  theme: 2,
13499
14150
  language: 3,
@@ -13565,7 +14216,7 @@ function create_else_block_12(ctx) {
13565
14216
  }
13566
14217
  };
13567
14218
  }
13568
- function create_if_block_22(ctx) {
14219
+ function create_if_block_23(ctx) {
13569
14220
  var _a;
13570
14221
  let icon;
13571
14222
  let current;
@@ -13622,7 +14273,7 @@ function create_if_block_22(ctx) {
13622
14273
  }
13623
14274
  };
13624
14275
  }
13625
- function create_if_block_15(ctx) {
14276
+ function create_if_block_110(ctx) {
13626
14277
  var _a;
13627
14278
  let icon;
13628
14279
  let current;
@@ -13798,7 +14449,7 @@ function create_default_slot_25(ctx) {
13798
14449
  let if_block;
13799
14450
  let if_block_anchor;
13800
14451
  let current;
13801
- const if_block_creators = [create_if_block_15, create_if_block_22, create_else_block_12];
14452
+ const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
13802
14453
  const if_blocks = [];
13803
14454
  function select_block_type(ctx2, dirty) {
13804
14455
  if (
@@ -14175,7 +14826,7 @@ function create_each_block5(key_1, ctx) {
14175
14826
  }
14176
14827
  };
14177
14828
  }
14178
- function create_fragment71(ctx) {
14829
+ function create_fragment73(ctx) {
14179
14830
  let div0;
14180
14831
  let button0;
14181
14832
  let t0;
@@ -14452,7 +15103,7 @@ function format(ms) {
14452
15103
  return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
14453
15104
  }
14454
15105
  var name7 = "fastboard-player-control";
14455
- function instance71($$self, $$props, $$invalidate) {
15106
+ function instance73($$self, $$props, $$invalidate) {
14456
15107
  let t;
14457
15108
  let canPlay;
14458
15109
  let disabled;
@@ -14597,7 +15248,7 @@ function instance71($$self, $$props, $$invalidate) {
14597
15248
  var PlayerControl = class extends SvelteComponent {
14598
15249
  constructor(options) {
14599
15250
  super();
14600
- init(this, options, instance71, create_fragment71, safe_not_equal, {
15251
+ init(this, options, instance73, create_fragment73, safe_not_equal, {
14601
15252
  player: 19,
14602
15253
  theme: 0,
14603
15254
  language: 20,
@@ -14664,7 +15315,7 @@ function create_if_block17(ctx) {
14664
15315
  }
14665
15316
  };
14666
15317
  }
14667
- function create_fragment72(ctx) {
15318
+ function create_fragment74(ctx) {
14668
15319
  var _a;
14669
15320
  let div2;
14670
15321
  let div0;
@@ -14764,7 +15415,7 @@ function create_fragment72(ctx) {
14764
15415
  };
14765
15416
  }
14766
15417
  var name8 = "fastboard";
14767
- function instance72($$self, $$props, $$invalidate) {
15418
+ function instance74($$self, $$props, $$invalidate) {
14768
15419
  let { player = null } = $$props;
14769
15420
  let { theme = "light" } = $$props;
14770
15421
  let { language = "en" } = $$props;
@@ -14839,7 +15490,7 @@ function instance72($$self, $$props, $$invalidate) {
14839
15490
  var ReplayFastboard = class extends SvelteComponent {
14840
15491
  constructor(options) {
14841
15492
  super();
14842
- init(this, options, instance72, create_fragment72, not_equal, {
15493
+ init(this, options, instance74, create_fragment74, not_equal, {
14843
15494
  player: 0,
14844
15495
  theme: 1,
14845
15496
  language: 2,
@@ -14915,7 +15566,7 @@ function create_if_block_32(ctx) {
14915
15566
  }
14916
15567
  };
14917
15568
  }
14918
- function create_if_block_23(ctx) {
15569
+ function create_if_block_24(ctx) {
14919
15570
  let redoundo;
14920
15571
  let current;
14921
15572
  redoundo = new RedoUndo_default({
@@ -14973,7 +15624,7 @@ function create_if_block_23(ctx) {
14973
15624
  }
14974
15625
  };
14975
15626
  }
14976
- function create_if_block_16(ctx) {
15627
+ function create_if_block_111(ctx) {
14977
15628
  let zoomcontrol;
14978
15629
  let current;
14979
15630
  zoomcontrol = new ZoomControl_default({
@@ -15089,7 +15740,7 @@ function create_if_block18(ctx) {
15089
15740
  }
15090
15741
  };
15091
15742
  }
15092
- function create_fragment73(ctx) {
15743
+ function create_fragment75(ctx) {
15093
15744
  var _a, _b, _c, _d;
15094
15745
  let div4;
15095
15746
  let div0;
@@ -15110,11 +15761,11 @@ function create_fragment73(ctx) {
15110
15761
  );
15111
15762
  let if_block1 = (
15112
15763
  /*config*/
15113
- ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx)
15764
+ ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_24(ctx)
15114
15765
  );
15115
15766
  let if_block2 = (
15116
15767
  /*config*/
15117
- ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_16(ctx)
15768
+ ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_111(ctx)
15118
15769
  );
15119
15770
  let if_block3 = (
15120
15771
  /*config*/
@@ -15244,7 +15895,7 @@ function create_fragment73(ctx) {
15244
15895
  transition_in(if_block1, 1);
15245
15896
  }
15246
15897
  } else {
15247
- if_block1 = create_if_block_23(ctx2);
15898
+ if_block1 = create_if_block_24(ctx2);
15248
15899
  if_block1.c();
15249
15900
  transition_in(if_block1, 1);
15250
15901
  if_block1.m(div2, t2);
@@ -15267,7 +15918,7 @@ function create_fragment73(ctx) {
15267
15918
  transition_in(if_block2, 1);
15268
15919
  }
15269
15920
  } else {
15270
- if_block2 = create_if_block_16(ctx2);
15921
+ if_block2 = create_if_block_111(ctx2);
15271
15922
  if_block2.c();
15272
15923
  transition_in(if_block2, 1);
15273
15924
  if_block2.m(div2, null);
@@ -15360,7 +16011,7 @@ function create_fragment73(ctx) {
15360
16011
  };
15361
16012
  }
15362
16013
  var name9 = "fastboard";
15363
- function instance73($$self, $$props, $$invalidate) {
16014
+ function instance75($$self, $$props, $$invalidate) {
15364
16015
  let writable2;
15365
16016
  let boxState;
15366
16017
  let focusedApp;
@@ -15485,7 +16136,7 @@ function instance73($$self, $$props, $$invalidate) {
15485
16136
  var Fastboard = class extends SvelteComponent {
15486
16137
  constructor(options) {
15487
16138
  super();
15488
- init(this, options, instance73, create_fragment73, not_equal, {
16139
+ init(this, options, instance75, create_fragment75, not_equal, {
15489
16140
  app: 0,
15490
16141
  theme: 1,
15491
16142
  language: 2,