@netless/fastboard-ui 1.0.1-beta.0 → 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.
package/dist/index.js CHANGED
@@ -510,7 +510,7 @@ function make_dirty(component, i) {
510
510
  }
511
511
  component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
512
512
  }
513
- function init(component, options, instance74, create_fragment74, not_equal2, props, append_styles, dirty = [-1]) {
513
+ function init(component, options, instance76, create_fragment76, not_equal2, props, append_styles, dirty = [-1]) {
514
514
  const parent_component = current_component;
515
515
  set_current_component(component);
516
516
  const $$ = component.$$ = {
@@ -536,7 +536,7 @@ function init(component, options, instance74, create_fragment74, not_equal2, pro
536
536
  };
537
537
  append_styles && append_styles($$.root);
538
538
  let ready = false;
539
- $$.ctx = instance74 ? instance74(component, options.props || {}, (i, ret, ...rest) => {
539
+ $$.ctx = instance76 ? instance76(component, options.props || {}, (i, ret, ...rest) => {
540
540
  const value = rest.length ? rest[0] : ret;
541
541
  if ($$.ctx && not_equal2($$.ctx[i], $$.ctx[i] = value)) {
542
542
  if (!$$.skip_bound && $$.bound[i])
@@ -549,7 +549,7 @@ function init(component, options, instance74, create_fragment74, not_equal2, pro
549
549
  $$.update();
550
550
  ready = true;
551
551
  run_all($$.before_update);
552
- $$.fragment = create_fragment74 ? create_fragment74($$.ctx) : false;
552
+ $$.fragment = create_fragment76 ? create_fragment76($$.ctx) : false;
553
553
  if (options.target) {
554
554
  if (options.hydrate) {
555
555
  const nodes = children(options.target);
@@ -4516,6 +4516,158 @@ var LaserPenFilled = class extends SvelteComponent {
4516
4516
  };
4517
4517
  var LaserPenFilled_default = LaserPenFilled;
4518
4518
 
4519
+ // src/components/Icons/MarkPen.svelte
4520
+ function create_fragment51(ctx) {
4521
+ let svg;
4522
+ let g;
4523
+ let path;
4524
+ let svg_class_value;
4525
+ return {
4526
+ c() {
4527
+ svg = svg_element("svg");
4528
+ g = svg_element("g");
4529
+ path = svg_element("path");
4530
+ attr(path, "class", "fastboard-icon-stroke-color");
4531
+ 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");
4532
+ attr(g, "stroke-width", "1");
4533
+ attr(g, "stroke-linecap", "round");
4534
+ attr(g, "stroke-linejoin", "round");
4535
+ attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
4536
+ attr(svg, "fill", "none");
4537
+ attr(svg, "viewBox", "0 0 24 24");
4538
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
4539
+ ctx[0]);
4540
+ toggle_class(
4541
+ svg,
4542
+ "is-active",
4543
+ /*active*/
4544
+ ctx[1]
4545
+ );
4546
+ },
4547
+ m(target, anchor) {
4548
+ insert(target, svg, anchor);
4549
+ append(svg, g);
4550
+ append(g, path);
4551
+ },
4552
+ p(ctx2, [dirty]) {
4553
+ if (dirty & /*theme*/
4554
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
4555
+ ctx2[0])) {
4556
+ attr(svg, "class", svg_class_value);
4557
+ }
4558
+ if (dirty & /*theme, active*/
4559
+ 3) {
4560
+ toggle_class(
4561
+ svg,
4562
+ "is-active",
4563
+ /*active*/
4564
+ ctx2[1]
4565
+ );
4566
+ }
4567
+ },
4568
+ i: noop,
4569
+ o: noop,
4570
+ d(detaching) {
4571
+ if (detaching)
4572
+ detach(svg);
4573
+ }
4574
+ };
4575
+ }
4576
+ function instance51($$self, $$props, $$invalidate) {
4577
+ let { theme = "light" } = $$props;
4578
+ let { active = false } = $$props;
4579
+ $$self.$$set = ($$props2) => {
4580
+ if ("theme" in $$props2)
4581
+ $$invalidate(0, theme = $$props2.theme);
4582
+ if ("active" in $$props2)
4583
+ $$invalidate(1, active = $$props2.active);
4584
+ };
4585
+ return [theme, active];
4586
+ }
4587
+ var MarkPen = class extends SvelteComponent {
4588
+ constructor(options) {
4589
+ super();
4590
+ init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
4591
+ }
4592
+ };
4593
+ var MarkPen_default = MarkPen;
4594
+
4595
+ // src/components/Icons/MarkPenFilled.svelte
4596
+ function create_fragment52(ctx) {
4597
+ let svg;
4598
+ let g;
4599
+ let path;
4600
+ let svg_class_value;
4601
+ return {
4602
+ c() {
4603
+ svg = svg_element("svg");
4604
+ g = svg_element("g");
4605
+ path = svg_element("path");
4606
+ attr(path, "class", "fastboard-icon-fill-color");
4607
+ 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");
4608
+ attr(g, "stroke-width", "1");
4609
+ attr(g, "stroke-linecap", "round");
4610
+ attr(g, "stroke-linejoin", "round");
4611
+ attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
4612
+ attr(svg, "fill", "none");
4613
+ attr(svg, "viewBox", "0 0 24 24");
4614
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
4615
+ ctx[0]);
4616
+ toggle_class(
4617
+ svg,
4618
+ "is-active",
4619
+ /*active*/
4620
+ ctx[1]
4621
+ );
4622
+ },
4623
+ m(target, anchor) {
4624
+ insert(target, svg, anchor);
4625
+ append(svg, g);
4626
+ append(g, path);
4627
+ },
4628
+ p(ctx2, [dirty]) {
4629
+ if (dirty & /*theme*/
4630
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
4631
+ ctx2[0])) {
4632
+ attr(svg, "class", svg_class_value);
4633
+ }
4634
+ if (dirty & /*theme, active*/
4635
+ 3) {
4636
+ toggle_class(
4637
+ svg,
4638
+ "is-active",
4639
+ /*active*/
4640
+ ctx2[1]
4641
+ );
4642
+ }
4643
+ },
4644
+ i: noop,
4645
+ o: noop,
4646
+ d(detaching) {
4647
+ if (detaching)
4648
+ detach(svg);
4649
+ }
4650
+ };
4651
+ }
4652
+ function instance52($$self, $$props, $$invalidate) {
4653
+ let { theme = "light" } = $$props;
4654
+ let { active = false } = $$props;
4655
+ $$self.$$set = ($$props2) => {
4656
+ if ("theme" in $$props2)
4657
+ $$invalidate(0, theme = $$props2.theme);
4658
+ if ("active" in $$props2)
4659
+ $$invalidate(1, active = $$props2.active);
4660
+ };
4661
+ return [theme, active];
4662
+ }
4663
+ var MarkPenFilled = class extends SvelteComponent {
4664
+ constructor(options) {
4665
+ super();
4666
+ init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
4667
+ }
4668
+ };
4669
+ var MarkPenFilled_default = MarkPenFilled;
4670
+
4519
4671
  // src/components/Icons/index.ts
4520
4672
  var Icons = {
4521
4673
  Apps: Apps_default,
@@ -4566,7 +4718,9 @@ var Icons = {
4566
4718
  Pause: Pause_default,
4567
4719
  Loading: Loading_default,
4568
4720
  LaserPen: LaserPen_default,
4569
- LaserPenFilled: LaserPenFilled_default
4721
+ LaserPenFilled: LaserPenFilled_default,
4722
+ MarkPen: MarkPen_default,
4723
+ MarkPenFilled: MarkPenFilled_default
4570
4724
  };
4571
4725
  var Icons_default = Icons;
4572
4726
  if (typeof window !== "undefined") {
@@ -4579,12 +4733,12 @@ if (typeof window !== "undefined") {
4579
4733
  {
4580
4734
  name: "className",
4581
4735
  defaultValue: "",
4582
- fn(instance74) {
4736
+ fn(instance76) {
4583
4737
  function add() {
4584
- const el = instance74.popper.firstElementChild;
4738
+ const el = instance76.popper.firstElementChild;
4585
4739
  if (el) {
4586
4740
  el.classList.add("fastboard-tip");
4587
- const extra = (instance74.props.className || "").trim();
4741
+ const extra = (instance76.props.className || "").trim();
4588
4742
  if (extra) {
4589
4743
  el.classList.add(extra);
4590
4744
  }
@@ -4592,7 +4746,7 @@ if (typeof window !== "undefined") {
4592
4746
  }
4593
4747
  function remove() {
4594
4748
  var _a;
4595
- (_a = instance74.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4749
+ (_a = instance76.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4596
4750
  }
4597
4751
  return {
4598
4752
  onCreate: add,
@@ -4605,21 +4759,21 @@ if (typeof window !== "undefined") {
4605
4759
  });
4606
4760
  }
4607
4761
  var tippy = function(node, props) {
4608
- const instance74 = Tippy__default.default(node, props);
4762
+ const instance76 = Tippy__default.default(node, props);
4609
4763
  return {
4610
4764
  update(props2) {
4611
- instance74.setProps(props2);
4765
+ instance76.setProps(props2);
4612
4766
  },
4613
4767
  destroy() {
4614
- instance74.destroy();
4768
+ instance76.destroy();
4615
4769
  }
4616
4770
  };
4617
4771
  };
4618
4772
  function tippy_hide_all() {
4619
4773
  document.querySelectorAll("[data-tippy-root]").forEach((el) => {
4620
- const instance74 = el._tippy;
4621
- if (instance74)
4622
- instance74.hide();
4774
+ const instance76 = el._tippy;
4775
+ if (instance76)
4776
+ instance76.hide();
4623
4777
  });
4624
4778
  }
4625
4779
  var tippy_menu = {
@@ -5133,7 +5287,7 @@ function create_if_block_1(ctx) {
5133
5287
  }
5134
5288
  };
5135
5289
  }
5136
- function create_fragment51(ctx) {
5290
+ function create_fragment53(ctx) {
5137
5291
  let current_block_type_index;
5138
5292
  let if_block;
5139
5293
  let if_block_anchor;
@@ -5199,7 +5353,7 @@ function create_fragment51(ctx) {
5199
5353
  }
5200
5354
  };
5201
5355
  }
5202
- function instance51($$self, $$props, $$invalidate) {
5356
+ function instance53($$self, $$props, $$invalidate) {
5203
5357
  let { $$slots: slots = {}, $$scope } = $$props;
5204
5358
  let { class: className = "" } = $$props;
5205
5359
  let { name: name10 = "fastboard-ui" } = $$props;
@@ -5257,7 +5411,7 @@ function instance51($$self, $$props, $$invalidate) {
5257
5411
  var Button = class extends SvelteComponent {
5258
5412
  constructor(options) {
5259
5413
  super();
5260
- init(this, options, instance51, create_fragment51, safe_not_equal, {
5414
+ init(this, options, instance53, create_fragment53, safe_not_equal, {
5261
5415
  class: 0,
5262
5416
  name: 1,
5263
5417
  theme: 2,
@@ -5462,7 +5616,7 @@ function create_default_slot(ctx) {
5462
5616
  }
5463
5617
  };
5464
5618
  }
5465
- function create_fragment52(ctx) {
5619
+ function create_fragment54(ctx) {
5466
5620
  let div;
5467
5621
  let button0;
5468
5622
  let t_1;
@@ -5603,7 +5757,7 @@ var i18n = {
5603
5757
  "zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
5604
5758
  };
5605
5759
  var name = "fastboard-redo-undo";
5606
- function instance52($$self, $$props, $$invalidate) {
5760
+ function instance54($$self, $$props, $$invalidate) {
5607
5761
  let writable2;
5608
5762
  let phase;
5609
5763
  let disabled;
@@ -5704,7 +5858,7 @@ function instance52($$self, $$props, $$invalidate) {
5704
5858
  var RedoUndo = class extends SvelteComponent {
5705
5859
  constructor(options) {
5706
5860
  super();
5707
- init(this, options, instance52, create_fragment52, safe_not_equal, {
5861
+ init(this, options, instance54, create_fragment54, safe_not_equal, {
5708
5862
  app: 12,
5709
5863
  theme: 0,
5710
5864
  language: 13,
@@ -6061,7 +6215,7 @@ function create_default_slot2(ctx) {
6061
6215
  }
6062
6216
  };
6063
6217
  }
6064
- function create_fragment53(ctx) {
6218
+ function create_fragment55(ctx) {
6065
6219
  let div;
6066
6220
  let button0;
6067
6221
  let t0;
@@ -6296,7 +6450,7 @@ var i18n2 = {
6296
6450
  "zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
6297
6451
  };
6298
6452
  var name2 = "fastboard-page-control";
6299
- function instance53($$self, $$props, $$invalidate) {
6453
+ function instance55($$self, $$props, $$invalidate) {
6300
6454
  let writable2;
6301
6455
  let phase;
6302
6456
  let disabled;
@@ -6402,7 +6556,7 @@ function instance53($$self, $$props, $$invalidate) {
6402
6556
  var PageControl = class extends SvelteComponent {
6403
6557
  constructor(options) {
6404
6558
  super();
6405
- init(this, options, instance53, create_fragment53, safe_not_equal, {
6559
+ init(this, options, instance55, create_fragment55, safe_not_equal, {
6406
6560
  app: 16,
6407
6561
  theme: 0,
6408
6562
  language: 17,
@@ -6751,7 +6905,7 @@ function create_default_slot3(ctx) {
6751
6905
  }
6752
6906
  };
6753
6907
  }
6754
- function create_fragment54(ctx) {
6908
+ function create_fragment56(ctx) {
6755
6909
  let div;
6756
6910
  let button0;
6757
6911
  let t0;
@@ -7014,7 +7168,7 @@ function next_scale(scale, delta) {
7014
7168
  return 1;
7015
7169
  }
7016
7170
  var name3 = "fastboard-zoom-control";
7017
- function instance54($$self, $$props, $$invalidate) {
7171
+ function instance56($$self, $$props, $$invalidate) {
7018
7172
  let writable2;
7019
7173
  let phase;
7020
7174
  let disabled;
@@ -7125,7 +7279,7 @@ function instance54($$self, $$props, $$invalidate) {
7125
7279
  var ZoomControl = class extends SvelteComponent {
7126
7280
  constructor(options) {
7127
7281
  super();
7128
- init(this, options, instance54, create_fragment54, safe_not_equal, {
7282
+ init(this, options, instance56, create_fragment56, safe_not_equal, {
7129
7283
  app: 15,
7130
7284
  theme: 0,
7131
7285
  language: 16,
@@ -7427,7 +7581,7 @@ function hexToRgb(hex) {
7427
7581
  }
7428
7582
 
7429
7583
  // src/components/Toolbar/components/Slider.svelte
7430
- function create_fragment55(ctx) {
7584
+ function create_fragment57(ctx) {
7431
7585
  let div;
7432
7586
  let input;
7433
7587
  let input_class_value;
@@ -7642,7 +7796,7 @@ function create_fragment55(ctx) {
7642
7796
  };
7643
7797
  }
7644
7798
  var name4 = "fastboard-slider";
7645
- function instance55($$self, $$props, $$invalidate) {
7799
+ function instance57($$self, $$props, $$invalidate) {
7646
7800
  let percent;
7647
7801
  const dispatch = createEventDispatcher();
7648
7802
  let { class: className = "" } = $$props;
@@ -7713,7 +7867,7 @@ function instance55($$self, $$props, $$invalidate) {
7713
7867
  var Slider = class extends SvelteComponent {
7714
7868
  constructor(options) {
7715
7869
  super();
7716
- init(this, options, instance55, create_fragment55, safe_not_equal, {
7870
+ init(this, options, instance57, create_fragment57, safe_not_equal, {
7717
7871
  class: 1,
7718
7872
  theme: 2,
7719
7873
  min: 3,
@@ -7727,7 +7881,7 @@ var Slider = class extends SvelteComponent {
7727
7881
  var Slider_default = Slider;
7728
7882
 
7729
7883
  // src/components/Toolbar/components/StrokeWidth.svelte
7730
- function create_fragment56(ctx) {
7884
+ function create_fragment58(ctx) {
7731
7885
  let slider;
7732
7886
  let current;
7733
7887
  const slider_spread_levels = [
@@ -7783,7 +7937,7 @@ function create_fragment56(ctx) {
7783
7937
  }
7784
7938
  };
7785
7939
  }
7786
- function instance56($$self, $$props, $$invalidate) {
7940
+ function instance58($$self, $$props, $$invalidate) {
7787
7941
  let memberState;
7788
7942
  let value;
7789
7943
  let props;
@@ -7832,7 +7986,7 @@ function instance56($$self, $$props, $$invalidate) {
7832
7986
  var StrokeWidth = class extends SvelteComponent {
7833
7987
  constructor(options) {
7834
7988
  super();
7835
- init(this, options, instance56, create_fragment56, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7989
+ init(this, options, instance58, create_fragment58, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7836
7990
  }
7837
7991
  };
7838
7992
  var StrokeWidth_default = StrokeWidth;
@@ -7936,7 +8090,7 @@ function create_each_block(ctx) {
7936
8090
  }
7937
8091
  };
7938
8092
  }
7939
- function create_fragment57(ctx) {
8093
+ function create_fragment59(ctx) {
7940
8094
  let div;
7941
8095
  let div_class_value;
7942
8096
  let mounted;
@@ -8016,7 +8170,7 @@ function create_fragment57(ctx) {
8016
8170
  function is_equal_color(a, b) {
8017
8171
  return a && b && a.every((v, i) => v === b[i]);
8018
8172
  }
8019
- function instance57($$self, $$props, $$invalidate) {
8173
+ function instance59($$self, $$props, $$invalidate) {
8020
8174
  let memberState;
8021
8175
  let strokeColor;
8022
8176
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -8068,7 +8222,7 @@ function instance57($$self, $$props, $$invalidate) {
8068
8222
  var StrokeColor = class extends SvelteComponent {
8069
8223
  constructor(options) {
8070
8224
  super();
8071
- init(this, options, instance57, create_fragment57, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8225
+ init(this, options, instance59, create_fragment59, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8072
8226
  }
8073
8227
  };
8074
8228
  var StrokeColor_default = StrokeColor;
@@ -8172,7 +8326,7 @@ function create_each_block2(ctx) {
8172
8326
  }
8173
8327
  };
8174
8328
  }
8175
- function create_fragment58(ctx) {
8329
+ function create_fragment60(ctx) {
8176
8330
  let div;
8177
8331
  let div_class_value;
8178
8332
  let mounted;
@@ -8252,7 +8406,7 @@ function create_fragment58(ctx) {
8252
8406
  function is_equal_color2(a, b) {
8253
8407
  return a && b && a.every((v, i) => v === b[i]);
8254
8408
  }
8255
- function instance58($$self, $$props, $$invalidate) {
8409
+ function instance60($$self, $$props, $$invalidate) {
8256
8410
  let memberState;
8257
8411
  let textColor;
8258
8412
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -8304,7 +8458,7 @@ function instance58($$self, $$props, $$invalidate) {
8304
8458
  var TextColor = class extends SvelteComponent {
8305
8459
  constructor(options) {
8306
8460
  super();
8307
- init(this, options, instance58, create_fragment58, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8461
+ init(this, options, instance60, create_fragment60, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8308
8462
  }
8309
8463
  };
8310
8464
  var TextColor_default = TextColor;
@@ -8635,7 +8789,7 @@ function create_each_block3(key_1, ctx) {
8635
8789
  }
8636
8790
  };
8637
8791
  }
8638
- function create_fragment59(ctx) {
8792
+ function create_fragment61(ctx) {
8639
8793
  let div;
8640
8794
  let each_blocks = [];
8641
8795
  let each_1_lookup = /* @__PURE__ */ new Map();
@@ -8741,7 +8895,7 @@ var i18n5 = {
8741
8895
  speechBalloon: "\u6C14\u6CE1"
8742
8896
  }
8743
8897
  };
8744
- function instance59($$self, $$props, $$invalidate) {
8898
+ function instance61($$self, $$props, $$invalidate) {
8745
8899
  let t;
8746
8900
  let memberState;
8747
8901
  let appliance;
@@ -8826,7 +8980,7 @@ function instance59($$self, $$props, $$invalidate) {
8826
8980
  var SelectShapes = class extends SvelteComponent {
8827
8981
  constructor(options) {
8828
8982
  super();
8829
- init(this, options, instance59, create_fragment59, safe_not_equal, {
8983
+ init(this, options, instance61, create_fragment61, safe_not_equal, {
8830
8984
  app: 8,
8831
8985
  theme: 0,
8832
8986
  language: 9,
@@ -8981,7 +9135,7 @@ function create_default_slot4(ctx) {
8981
9135
  }
8982
9136
  };
8983
9137
  }
8984
- function create_fragment60(ctx) {
9138
+ function create_fragment62(ctx) {
8985
9139
  let button;
8986
9140
  let current;
8987
9141
  const button_spread_levels = [
@@ -9050,7 +9204,7 @@ function create_fragment60(ctx) {
9050
9204
  }
9051
9205
  };
9052
9206
  }
9053
- function instance60($$self, $$props, $$invalidate) {
9207
+ function instance62($$self, $$props, $$invalidate) {
9054
9208
  let { btn_props = {} } = $$props;
9055
9209
  let { content } = $$props;
9056
9210
  let { appliance } = $$props;
@@ -9073,7 +9227,7 @@ function instance60($$self, $$props, $$invalidate) {
9073
9227
  var Clicker = class extends SvelteComponent {
9074
9228
  constructor(options) {
9075
9229
  super();
9076
- init(this, options, instance60, create_fragment60, safe_not_equal, {
9230
+ init(this, options, instance62, create_fragment62, safe_not_equal, {
9077
9231
  btn_props: 0,
9078
9232
  content: 1,
9079
9233
  appliance: 2,
@@ -9228,7 +9382,7 @@ function create_default_slot5(ctx) {
9228
9382
  }
9229
9383
  };
9230
9384
  }
9231
- function create_fragment61(ctx) {
9385
+ function create_fragment63(ctx) {
9232
9386
  let button;
9233
9387
  let current;
9234
9388
  const button_spread_levels = [
@@ -9297,7 +9451,7 @@ function create_fragment61(ctx) {
9297
9451
  }
9298
9452
  };
9299
9453
  }
9300
- function instance61($$self, $$props, $$invalidate) {
9454
+ function instance63($$self, $$props, $$invalidate) {
9301
9455
  let { btn_props = {} } = $$props;
9302
9456
  let { content } = $$props;
9303
9457
  let { appliance } = $$props;
@@ -9320,7 +9474,7 @@ function instance61($$self, $$props, $$invalidate) {
9320
9474
  var Selector2 = class extends SvelteComponent {
9321
9475
  constructor(options) {
9322
9476
  super();
9323
- init(this, options, instance61, create_fragment61, safe_not_equal, {
9477
+ init(this, options, instance63, create_fragment63, safe_not_equal, {
9324
9478
  btn_props: 0,
9325
9479
  content: 1,
9326
9480
  appliance: 2,
@@ -9369,7 +9523,7 @@ function create_else_block8(ctx) {
9369
9523
  }
9370
9524
  };
9371
9525
  }
9372
- function create_if_block_12(ctx) {
9526
+ function create_if_block_2(ctx) {
9373
9527
  let icons_pencilfilled;
9374
9528
  let current;
9375
9529
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -9409,7 +9563,7 @@ function create_if_block_12(ctx) {
9409
9563
  }
9410
9564
  };
9411
9565
  }
9412
- function create_if_block8(ctx) {
9566
+ function create_if_block_12(ctx) {
9413
9567
  let icons_laserpenfilled;
9414
9568
  let current;
9415
9569
  icons_laserpenfilled = new Icons_default.LaserPenFilled({
@@ -9449,26 +9603,73 @@ function create_if_block8(ctx) {
9449
9603
  }
9450
9604
  };
9451
9605
  }
9606
+ function create_if_block8(ctx) {
9607
+ let icons_markpenfilled;
9608
+ let current;
9609
+ icons_markpenfilled = new Icons_default.MarkPenFilled({
9610
+ props: { theme: (
9611
+ /*theme*/
9612
+ ctx[4]
9613
+ ), active: true }
9614
+ });
9615
+ return {
9616
+ c() {
9617
+ create_component(icons_markpenfilled.$$.fragment);
9618
+ },
9619
+ m(target, anchor) {
9620
+ mount_component(icons_markpenfilled, target, anchor);
9621
+ current = true;
9622
+ },
9623
+ p(ctx2, dirty) {
9624
+ const icons_markpenfilled_changes = {};
9625
+ if (dirty & /*theme*/
9626
+ 16)
9627
+ icons_markpenfilled_changes.theme = /*theme*/
9628
+ ctx2[4];
9629
+ icons_markpenfilled.$set(icons_markpenfilled_changes);
9630
+ },
9631
+ i(local) {
9632
+ if (current)
9633
+ return;
9634
+ transition_in(icons_markpenfilled.$$.fragment, local);
9635
+ current = true;
9636
+ },
9637
+ o(local) {
9638
+ transition_out(icons_markpenfilled.$$.fragment, local);
9639
+ current = false;
9640
+ },
9641
+ d(detaching) {
9642
+ destroy_component(icons_markpenfilled, detaching);
9643
+ }
9644
+ };
9645
+ }
9452
9646
  function create_default_slot6(ctx) {
9453
9647
  let current_block_type_index;
9454
9648
  let if_block;
9455
9649
  let if_block_anchor;
9456
9650
  let current;
9457
- const if_block_creators = [create_if_block8, create_if_block_12, create_else_block8];
9651
+ const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
9458
9652
  const if_blocks = [];
9459
9653
  function select_block_type(ctx2, dirty) {
9460
9654
  if (
9461
9655
  /*appliance*/
9462
- ctx2[3] === "pencil" && /*hasUseLaserPen*/
9463
- ctx2[5]
9656
+ ctx2[3] === "pencil" && /*pencilType*/
9657
+ ctx2[5] === "mark"
9464
9658
  )
9465
9659
  return 0;
9466
9660
  if (
9467
9661
  /*appliance*/
9468
- ctx2[3] === "pencil"
9662
+ ctx2[3] === "pencil" && /*pencilType*/
9663
+ ctx2[5] === "laser"
9469
9664
  )
9470
9665
  return 1;
9471
- return 2;
9666
+ if (
9667
+ /*appliance*/
9668
+ ctx2[3] === "pencil" && /*pencilType*/
9669
+ ctx2[5] === "pencil"
9670
+ )
9671
+ return 2;
9672
+ return 3;
9472
9673
  }
9473
9674
  current_block_type_index = select_block_type(ctx);
9474
9675
  if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
@@ -9521,7 +9722,7 @@ function create_default_slot6(ctx) {
9521
9722
  }
9522
9723
  };
9523
9724
  }
9524
- function create_fragment62(ctx) {
9725
+ function create_fragment64(ctx) {
9525
9726
  let button;
9526
9727
  let current;
9527
9728
  const button_spread_levels = [
@@ -9578,7 +9779,7 @@ function create_fragment62(ctx) {
9578
9779
  ctx2[2]
9579
9780
  ) }
9580
9781
  ]) : {};
9581
- if (dirty & /*$$scope, theme, appliance, hasUseLaserPen*/
9782
+ if (dirty & /*$$scope, theme, appliance, pencilType*/
9582
9783
  184) {
9583
9784
  button_changes.$$scope = { dirty, ctx: ctx2 };
9584
9785
  }
@@ -9599,13 +9800,13 @@ function create_fragment62(ctx) {
9599
9800
  }
9600
9801
  };
9601
9802
  }
9602
- function instance62($$self, $$props, $$invalidate) {
9803
+ function instance64($$self, $$props, $$invalidate) {
9603
9804
  let { btn_props = {} } = $$props;
9604
9805
  let { content } = $$props;
9605
9806
  let { menu } = $$props;
9606
9807
  let { appliance } = $$props;
9607
9808
  let { theme = "light" } = $$props;
9608
- let { hasUseLaserPen = false } = $$props;
9809
+ let { pencilType = "pencil" } = $$props;
9609
9810
  function click_handler(event) {
9610
9811
  bubble.call(this, $$self, event);
9611
9812
  }
@@ -9620,21 +9821,21 @@ function instance62($$self, $$props, $$invalidate) {
9620
9821
  $$invalidate(3, appliance = $$props2.appliance);
9621
9822
  if ("theme" in $$props2)
9622
9823
  $$invalidate(4, theme = $$props2.theme);
9623
- if ("hasUseLaserPen" in $$props2)
9624
- $$invalidate(5, hasUseLaserPen = $$props2.hasUseLaserPen);
9824
+ if ("pencilType" in $$props2)
9825
+ $$invalidate(5, pencilType = $$props2.pencilType);
9625
9826
  };
9626
- return [btn_props, content, menu, appliance, theme, hasUseLaserPen, click_handler];
9827
+ return [btn_props, content, menu, appliance, theme, pencilType, click_handler];
9627
9828
  }
9628
9829
  var Pencil2 = class extends SvelteComponent {
9629
9830
  constructor(options) {
9630
9831
  super();
9631
- init(this, options, instance62, create_fragment62, safe_not_equal, {
9832
+ init(this, options, instance64, create_fragment64, safe_not_equal, {
9632
9833
  btn_props: 0,
9633
9834
  content: 1,
9634
9835
  menu: 2,
9635
9836
  appliance: 3,
9636
9837
  theme: 4,
9637
- hasUseLaserPen: 5
9838
+ pencilType: 5
9638
9839
  });
9639
9840
  }
9640
9841
  };
@@ -9785,7 +9986,7 @@ function create_default_slot7(ctx) {
9785
9986
  }
9786
9987
  };
9787
9988
  }
9788
- function create_fragment63(ctx) {
9989
+ function create_fragment65(ctx) {
9789
9990
  let button;
9790
9991
  let current;
9791
9992
  const button_spread_levels = [
@@ -9863,7 +10064,7 @@ function create_fragment63(ctx) {
9863
10064
  }
9864
10065
  };
9865
10066
  }
9866
- function instance63($$self, $$props, $$invalidate) {
10067
+ function instance65($$self, $$props, $$invalidate) {
9867
10068
  let { btn_props = {} } = $$props;
9868
10069
  let { content } = $$props;
9869
10070
  let { menu } = $$props;
@@ -9889,7 +10090,7 @@ function instance63($$self, $$props, $$invalidate) {
9889
10090
  var Text2 = class extends SvelteComponent {
9890
10091
  constructor(options) {
9891
10092
  super();
9892
- init(this, options, instance63, create_fragment63, safe_not_equal, {
10093
+ init(this, options, instance65, create_fragment65, safe_not_equal, {
9893
10094
  btn_props: 0,
9894
10095
  content: 1,
9895
10096
  menu: 2,
@@ -10133,7 +10334,7 @@ function create_default_slot8(ctx) {
10133
10334
  }
10134
10335
  };
10135
10336
  }
10136
- function create_fragment64(ctx) {
10337
+ function create_fragment66(ctx) {
10137
10338
  let button;
10138
10339
  let current;
10139
10340
  const button_spread_levels = [
@@ -10211,7 +10412,7 @@ function create_fragment64(ctx) {
10211
10412
  }
10212
10413
  };
10213
10414
  }
10214
- function instance64($$self, $$props, $$invalidate) {
10415
+ function instance66($$self, $$props, $$invalidate) {
10215
10416
  let memberState;
10216
10417
  let shape;
10217
10418
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(10, $memberState = $$value)), memberState);
@@ -10283,7 +10484,7 @@ function instance64($$self, $$props, $$invalidate) {
10283
10484
  var Shapes = class extends SvelteComponent {
10284
10485
  constructor(options) {
10285
10486
  super();
10286
- init(this, options, instance64, create_fragment64, safe_not_equal, {
10487
+ init(this, options, instance66, create_fragment66, safe_not_equal, {
10287
10488
  app: 9,
10288
10489
  btn_props: 1,
10289
10490
  content: 2,
@@ -10440,7 +10641,7 @@ function create_default_slot9(ctx) {
10440
10641
  }
10441
10642
  };
10442
10643
  }
10443
- function create_fragment65(ctx) {
10644
+ function create_fragment67(ctx) {
10444
10645
  let button;
10445
10646
  let current;
10446
10647
  const button_spread_levels = [
@@ -10509,7 +10710,7 @@ function create_fragment65(ctx) {
10509
10710
  }
10510
10711
  };
10511
10712
  }
10512
- function instance65($$self, $$props, $$invalidate) {
10713
+ function instance67($$self, $$props, $$invalidate) {
10513
10714
  let { btn_props = {} } = $$props;
10514
10715
  let { content } = $$props;
10515
10716
  let { appliance } = $$props;
@@ -10532,7 +10733,7 @@ function instance65($$self, $$props, $$invalidate) {
10532
10733
  var Eraser2 = class extends SvelteComponent {
10533
10734
  constructor(options) {
10534
10735
  super();
10535
- init(this, options, instance65, create_fragment65, safe_not_equal, {
10736
+ init(this, options, instance67, create_fragment67, safe_not_equal, {
10536
10737
  btn_props: 0,
10537
10738
  content: 1,
10538
10739
  appliance: 2,
@@ -10581,7 +10782,7 @@ function create_default_slot10(ctx) {
10581
10782
  }
10582
10783
  };
10583
10784
  }
10584
- function create_fragment66(ctx) {
10785
+ function create_fragment68(ctx) {
10585
10786
  let button;
10586
10787
  let current;
10587
10788
  const button_spread_levels = [
@@ -10650,7 +10851,7 @@ function create_fragment66(ctx) {
10650
10851
  }
10651
10852
  };
10652
10853
  }
10653
- function instance66($$self, $$props, $$invalidate) {
10854
+ function instance68($$self, $$props, $$invalidate) {
10654
10855
  let { btn_props = {} } = $$props;
10655
10856
  let { content } = $$props;
10656
10857
  let { theme = "light" } = $$props;
@@ -10670,7 +10871,7 @@ function instance66($$self, $$props, $$invalidate) {
10670
10871
  var Clear2 = class extends SvelteComponent {
10671
10872
  constructor(options) {
10672
10873
  super();
10673
- init(this, options, instance66, create_fragment66, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
10874
+ init(this, options, instance68, create_fragment68, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
10674
10875
  }
10675
10876
  };
10676
10877
  var Clear_default2 = Clear2;
@@ -10820,7 +11021,7 @@ function create_default_slot11(ctx) {
10820
11021
  }
10821
11022
  };
10822
11023
  }
10823
- function create_fragment67(ctx) {
11024
+ function create_fragment69(ctx) {
10824
11025
  let button;
10825
11026
  let current;
10826
11027
  const button_spread_levels = [
@@ -10889,7 +11090,7 @@ function create_fragment67(ctx) {
10889
11090
  }
10890
11091
  };
10891
11092
  }
10892
- function instance67($$self, $$props, $$invalidate) {
11093
+ function instance69($$self, $$props, $$invalidate) {
10893
11094
  let { btn_props = {} } = $$props;
10894
11095
  let { content } = $$props;
10895
11096
  let { appliance } = $$props;
@@ -10912,7 +11113,7 @@ function instance67($$self, $$props, $$invalidate) {
10912
11113
  var Hand = class extends SvelteComponent {
10913
11114
  constructor(options) {
10914
11115
  super();
10915
- init(this, options, instance67, create_fragment67, safe_not_equal, {
11116
+ init(this, options, instance69, create_fragment69, safe_not_equal, {
10916
11117
  btn_props: 0,
10917
11118
  content: 1,
10918
11119
  appliance: 2,
@@ -11067,7 +11268,7 @@ function create_default_slot12(ctx) {
11067
11268
  }
11068
11269
  };
11069
11270
  }
11070
- function create_fragment68(ctx) {
11271
+ function create_fragment70(ctx) {
11071
11272
  let button;
11072
11273
  let current;
11073
11274
  const button_spread_levels = [
@@ -11136,7 +11337,7 @@ function create_fragment68(ctx) {
11136
11337
  }
11137
11338
  };
11138
11339
  }
11139
- function instance68($$self, $$props, $$invalidate) {
11340
+ function instance70($$self, $$props, $$invalidate) {
11140
11341
  let { btn_props = {} } = $$props;
11141
11342
  let { content } = $$props;
11142
11343
  let { appliance } = $$props;
@@ -11159,7 +11360,7 @@ function instance68($$self, $$props, $$invalidate) {
11159
11360
  var Laser2 = class extends SvelteComponent {
11160
11361
  constructor(options) {
11161
11362
  super();
11162
- init(this, options, instance68, create_fragment68, safe_not_equal, {
11363
+ init(this, options, instance70, create_fragment70, safe_not_equal, {
11163
11364
  btn_props: 0,
11164
11365
  content: 1,
11165
11366
  appliance: 2,
@@ -11172,42 +11373,42 @@ var Laser_default2 = Laser2;
11172
11373
  // src/components/Toolbar/components/Contents.svelte
11173
11374
  function get_each_context4(ctx, list, i) {
11174
11375
  const child_ctx = ctx.slice();
11175
- child_ctx[47] = list[i];
11376
+ child_ctx[50] = list[i];
11176
11377
  const constants_0 = (
11177
11378
  /*netless_app*/
11178
- child_ctx[47]
11379
+ child_ctx[50]
11179
11380
  );
11180
- child_ctx[48] = constants_0.icon;
11181
- child_ctx[49] = constants_0.label;
11182
- child_ctx[50] = constants_0.kind;
11183
- child_ctx[51] = constants_0.onClick;
11381
+ child_ctx[51] = constants_0.icon;
11382
+ child_ctx[52] = constants_0.label;
11383
+ child_ctx[53] = constants_0.kind;
11384
+ child_ctx[54] = constants_0.onClick;
11184
11385
  const constants_1 = (
11185
11386
  /*$status*/
11186
11387
  child_ctx[22] && /*$status*/
11187
11388
  child_ctx[22][
11188
11389
  /*kind*/
11189
- child_ctx[50]
11390
+ child_ctx[53]
11190
11391
  ]
11191
11392
  );
11192
- child_ctx[52] = constants_1;
11393
+ child_ctx[55] = constants_1;
11193
11394
  const constants_2 = function func() {
11194
11395
  return (
11195
11396
  /*func*/
11196
- ctx[43](
11397
+ ctx[46](
11197
11398
  /*onClick*/
11198
- child_ctx[51]
11399
+ child_ctx[54]
11199
11400
  )
11200
11401
  );
11201
11402
  };
11202
- child_ctx[53] = constants_2;
11403
+ child_ctx[56] = constants_2;
11203
11404
  return child_ctx;
11204
11405
  }
11205
11406
  function get_each_context_1(ctx, list, i) {
11206
11407
  const child_ctx = ctx.slice();
11207
- child_ctx[56] = list[i];
11408
+ child_ctx[59] = list[i];
11208
11409
  return child_ctx;
11209
11410
  }
11210
- function create_if_block_13(ctx) {
11411
+ function create_if_block_18(ctx) {
11211
11412
  let button;
11212
11413
  let current;
11213
11414
  const button_spread_levels = [
@@ -11216,7 +11417,7 @@ function create_if_block_13(ctx) {
11216
11417
  ctx[15]
11217
11418
  ];
11218
11419
  let button_props = {
11219
- $$slots: { default: [create_default_slot_6] },
11420
+ $$slots: { default: [create_default_slot_8] },
11220
11421
  $$scope: { ctx }
11221
11422
  };
11222
11423
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -11243,8 +11444,8 @@ function create_if_block_13(ctx) {
11243
11444
  ctx2[15]
11244
11445
  )]) : {};
11245
11446
  if (dirty[0] & /*theme*/
11246
- 2 | dirty[1] & /*$$scope*/
11247
- 268435456) {
11447
+ 2 | dirty[2] & /*$$scope*/
11448
+ 1) {
11248
11449
  button_changes.$$scope = { dirty, ctx: ctx2 };
11249
11450
  }
11250
11451
  button.$set(button_changes);
@@ -11264,7 +11465,7 @@ function create_if_block_13(ctx) {
11264
11465
  }
11265
11466
  };
11266
11467
  }
11267
- function create_default_slot_6(ctx) {
11468
+ function create_default_slot_8(ctx) {
11268
11469
  let icons_up;
11269
11470
  let current;
11270
11471
  icons_up = new Icons_default.Up({ props: { theme: (
@@ -11302,7 +11503,7 @@ function create_default_slot_6(ctx) {
11302
11503
  }
11303
11504
  };
11304
11505
  }
11305
- function create_if_block_122(ctx) {
11506
+ function create_if_block_17(ctx) {
11306
11507
  let laser;
11307
11508
  let current;
11308
11509
  laser = new Laser_default2({
@@ -11373,7 +11574,7 @@ function create_if_block_122(ctx) {
11373
11574
  }
11374
11575
  };
11375
11576
  }
11376
- function create_if_block_11(ctx) {
11577
+ function create_if_block_16(ctx) {
11377
11578
  let hand_1;
11378
11579
  let current;
11379
11580
  hand_1 = new Hand_default({
@@ -11444,7 +11645,7 @@ function create_if_block_11(ctx) {
11444
11645
  }
11445
11646
  };
11446
11647
  }
11447
- function create_if_block_10(ctx) {
11648
+ function create_if_block_15(ctx) {
11448
11649
  let clear_1;
11449
11650
  let current;
11450
11651
  clear_1 = new Clear_default2({
@@ -11507,7 +11708,7 @@ function create_if_block_10(ctx) {
11507
11708
  }
11508
11709
  };
11509
11710
  }
11510
- function create_if_block_9(ctx) {
11711
+ function create_if_block_14(ctx) {
11511
11712
  let eraser_1;
11512
11713
  let current;
11513
11714
  eraser_1 = new Eraser_default2({
@@ -11578,7 +11779,7 @@ function create_if_block_9(ctx) {
11578
11779
  }
11579
11780
  };
11580
11781
  }
11581
- function create_if_block_8(ctx) {
11782
+ function create_if_block_13(ctx) {
11582
11783
  let shapes2;
11583
11784
  let current;
11584
11785
  shapes2 = new Shapes_default({
@@ -11660,7 +11861,7 @@ function create_if_block_8(ctx) {
11660
11861
  }
11661
11862
  };
11662
11863
  }
11663
- function create_if_block_7(ctx) {
11864
+ function create_if_block_122(ctx) {
11664
11865
  let text_1;
11665
11866
  let current;
11666
11867
  text_1 = new Text_default2({
@@ -11739,13 +11940,13 @@ function create_if_block_7(ctx) {
11739
11940
  }
11740
11941
  };
11741
11942
  }
11742
- function create_if_block_6(ctx) {
11943
+ function create_if_block_11(ctx) {
11743
11944
  let pencil_1;
11744
11945
  let current;
11745
11946
  pencil_1 = new Pencil_default2({
11746
11947
  props: {
11747
- hasUseLaserPen: (
11748
- /*hasUseLaserPen*/
11948
+ pencilType: (
11949
+ /*pencilType*/
11749
11950
  ctx[16]
11750
11951
  ),
11751
11952
  appliance: (
@@ -11785,9 +11986,9 @@ function create_if_block_6(ctx) {
11785
11986
  },
11786
11987
  p(ctx2, dirty) {
11787
11988
  const pencil_1_changes = {};
11788
- if (dirty[0] & /*hasUseLaserPen*/
11989
+ if (dirty[0] & /*pencilType*/
11789
11990
  65536)
11790
- pencil_1_changes.hasUseLaserPen = /*hasUseLaserPen*/
11991
+ pencil_1_changes.pencilType = /*pencilType*/
11791
11992
  ctx2[16];
11792
11993
  if (dirty[0] & /*appliance*/
11793
11994
  262144)
@@ -11826,7 +12027,7 @@ function create_if_block_6(ctx) {
11826
12027
  }
11827
12028
  };
11828
12029
  }
11829
- function create_if_block_5(ctx) {
12030
+ function create_if_block_10(ctx) {
11830
12031
  let selector_1;
11831
12032
  let current;
11832
12033
  selector_1 = new Selector_default2({
@@ -11897,7 +12098,7 @@ function create_if_block_5(ctx) {
11897
12098
  }
11898
12099
  };
11899
12100
  }
11900
- function create_if_block_4(ctx) {
12101
+ function create_if_block_9(ctx) {
11901
12102
  let clicker_1;
11902
12103
  let current;
11903
12104
  clicker_1 = new Clicker_default({
@@ -11974,61 +12175,61 @@ function create_each_block_1(ctx) {
11974
12175
  let if_block_anchor;
11975
12176
  let current;
11976
12177
  const if_block_creators = [
11977
- create_if_block_4,
11978
- create_if_block_5,
11979
- create_if_block_6,
11980
- create_if_block_7,
11981
- create_if_block_8,
11982
12178
  create_if_block_9,
11983
12179
  create_if_block_10,
11984
12180
  create_if_block_11,
11985
- create_if_block_122
12181
+ create_if_block_122,
12182
+ create_if_block_13,
12183
+ create_if_block_14,
12184
+ create_if_block_15,
12185
+ create_if_block_16,
12186
+ create_if_block_17
11986
12187
  ];
11987
12188
  const if_blocks = [];
11988
12189
  function select_block_type(ctx2, dirty) {
11989
12190
  if (
11990
12191
  /*item*/
11991
- ctx2[56] === "clicker"
12192
+ ctx2[59] === "clicker"
11992
12193
  )
11993
12194
  return 0;
11994
12195
  if (
11995
12196
  /*item*/
11996
- ctx2[56] === "selector"
12197
+ ctx2[59] === "selector"
11997
12198
  )
11998
12199
  return 1;
11999
12200
  if (
12000
12201
  /*item*/
12001
- ctx2[56] === "pencil"
12202
+ ctx2[59] === "pencil"
12002
12203
  )
12003
12204
  return 2;
12004
12205
  if (
12005
12206
  /*item*/
12006
- ctx2[56] === "text"
12207
+ ctx2[59] === "text"
12007
12208
  )
12008
12209
  return 3;
12009
12210
  if (
12010
12211
  /*item*/
12011
- ctx2[56] === "shapes"
12212
+ ctx2[59] === "shapes"
12012
12213
  )
12013
12214
  return 4;
12014
12215
  if (
12015
12216
  /*item*/
12016
- ctx2[56] === "eraser"
12217
+ ctx2[59] === "eraser"
12017
12218
  )
12018
12219
  return 5;
12019
12220
  if (
12020
12221
  /*item*/
12021
- ctx2[56] === "clear"
12222
+ ctx2[59] === "clear"
12022
12223
  )
12023
12224
  return 6;
12024
12225
  if (
12025
12226
  /*item*/
12026
- ctx2[56] === "hand"
12227
+ ctx2[59] === "hand"
12027
12228
  )
12028
12229
  return 7;
12029
12230
  if (
12030
12231
  /*item*/
12031
- ctx2[56] === "laserPointer"
12232
+ ctx2[59] === "laserPointer"
12032
12233
  )
12033
12234
  return 8;
12034
12235
  return -1;
@@ -12098,7 +12299,7 @@ function create_each_block_1(ctx) {
12098
12299
  }
12099
12300
  };
12100
12301
  }
12101
- function create_if_block_3(ctx) {
12302
+ function create_if_block_8(ctx) {
12102
12303
  let button;
12103
12304
  let current;
12104
12305
  const button_spread_levels = [
@@ -12121,7 +12322,7 @@ function create_if_block_3(ctx) {
12121
12322
  }
12122
12323
  ];
12123
12324
  let button_props = {
12124
- $$slots: { default: [create_default_slot_53] },
12325
+ $$slots: { default: [create_default_slot_7] },
12125
12326
  $$scope: { ctx }
12126
12327
  };
12127
12328
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -12164,8 +12365,8 @@ function create_if_block_3(ctx) {
12164
12365
  }
12165
12366
  ]) : {};
12166
12367
  if (dirty[0] & /*theme*/
12167
- 2 | dirty[1] & /*$$scope*/
12168
- 268435456) {
12368
+ 2 | dirty[2] & /*$$scope*/
12369
+ 1) {
12169
12370
  button_changes.$$scope = { dirty, ctx: ctx2 };
12170
12371
  }
12171
12372
  button.$set(button_changes);
@@ -12185,7 +12386,7 @@ function create_if_block_3(ctx) {
12185
12386
  }
12186
12387
  };
12187
12388
  }
12188
- function create_default_slot_53(ctx) {
12389
+ function create_default_slot_7(ctx) {
12189
12390
  let icons_apps;
12190
12391
  let current;
12191
12392
  icons_apps = new Icons_default.Apps({ props: { theme: (
@@ -12223,7 +12424,7 @@ function create_default_slot_53(ctx) {
12223
12424
  }
12224
12425
  };
12225
12426
  }
12226
- function create_if_block_2(ctx) {
12427
+ function create_if_block_7(ctx) {
12227
12428
  let button;
12228
12429
  let current;
12229
12430
  button = new Button_default({
@@ -12238,7 +12439,7 @@ function create_if_block_2(ctx) {
12238
12439
  /*disabled*/
12239
12440
  ctx[3]
12240
12441
  ),
12241
- $$slots: { default: [create_default_slot_43] },
12442
+ $$slots: { default: [create_default_slot_6] },
12242
12443
  $$scope: { ctx }
12243
12444
  }
12244
12445
  });
@@ -12266,8 +12467,8 @@ function create_if_block_2(ctx) {
12266
12467
  button_changes.disabled = /*disabled*/
12267
12468
  ctx2[3];
12268
12469
  if (dirty[0] & /*theme*/
12269
- 2 | dirty[1] & /*$$scope*/
12270
- 268435456) {
12470
+ 2 | dirty[2] & /*$$scope*/
12471
+ 1) {
12271
12472
  button_changes.$$scope = { dirty, ctx: ctx2 };
12272
12473
  }
12273
12474
  button.$set(button_changes);
@@ -12287,7 +12488,7 @@ function create_if_block_2(ctx) {
12287
12488
  }
12288
12489
  };
12289
12490
  }
12290
- function create_default_slot_43(ctx) {
12491
+ function create_default_slot_6(ctx) {
12291
12492
  let icons_down;
12292
12493
  let current;
12293
12494
  icons_down = new Icons_default.Down({ props: { theme: (
@@ -12325,73 +12526,244 @@ function create_default_slot_43(ctx) {
12325
12526
  }
12326
12527
  };
12327
12528
  }
12328
- function create_if_block_14(ctx) {
12329
- let button0;
12330
- let t_1;
12331
- let button1;
12529
+ function create_if_block14(ctx) {
12530
+ let current_block_type_index;
12531
+ let if_block0;
12532
+ let t0;
12533
+ let current_block_type_index_1;
12534
+ let if_block1;
12535
+ let t1;
12536
+ let current_block_type_index_2;
12537
+ let if_block2;
12538
+ let if_block2_anchor;
12332
12539
  let current;
12333
- const button0_spread_levels = [
12334
- { class: name5 + "-panel-switch-btn" },
12335
- /*btn_props*/
12336
- ctx[15]
12337
- ];
12338
- let button0_props = {
12339
- $$slots: { default: [create_default_slot_34] },
12340
- $$scope: { ctx }
12341
- };
12342
- for (let i = 0; i < button0_spread_levels.length; i += 1) {
12343
- button0_props = assign(button0_props, button0_spread_levels[i]);
12540
+ const if_block_creators = [create_if_block_5, create_if_block_6];
12541
+ const if_blocks = [];
12542
+ function select_block_type_1(ctx2, dirty) {
12543
+ if (
12544
+ /*pencilType*/
12545
+ ctx2[16] !== "pencil"
12546
+ )
12547
+ return 0;
12548
+ if (
12549
+ /*pencilType*/
12550
+ ctx2[16] === "pencil"
12551
+ )
12552
+ return 1;
12553
+ return -1;
12554
+ }
12555
+ if (~(current_block_type_index = select_block_type_1(ctx))) {
12556
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12557
+ }
12558
+ const if_block_creators_1 = [create_if_block_3, create_if_block_4];
12559
+ const if_blocks_1 = [];
12560
+ function select_block_type_2(ctx2, dirty) {
12561
+ if (
12562
+ /*pencilType*/
12563
+ ctx2[16] === "laser"
12564
+ )
12565
+ return 0;
12566
+ if (
12567
+ /*pencilType*/
12568
+ ctx2[16] !== "laser"
12569
+ )
12570
+ return 1;
12571
+ return -1;
12572
+ }
12573
+ if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
12574
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
12575
+ }
12576
+ const if_block_creators_2 = [create_if_block_19, create_if_block_22];
12577
+ const if_blocks_2 = [];
12578
+ function select_block_type_3(ctx2, dirty) {
12579
+ if (
12580
+ /*pencilType*/
12581
+ ctx2[16] === "mark"
12582
+ )
12583
+ return 0;
12584
+ if (
12585
+ /*pencilType*/
12586
+ ctx2[16] !== "mark"
12587
+ )
12588
+ return 1;
12589
+ return -1;
12344
12590
  }
12345
- button0 = new Button_default({ props: button0_props });
12346
- const button1_spread_levels = [
12591
+ if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
12592
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
12593
+ }
12594
+ return {
12595
+ c() {
12596
+ if (if_block0)
12597
+ if_block0.c();
12598
+ t0 = space();
12599
+ if (if_block1)
12600
+ if_block1.c();
12601
+ t1 = space();
12602
+ if (if_block2)
12603
+ if_block2.c();
12604
+ if_block2_anchor = empty();
12605
+ },
12606
+ m(target, anchor) {
12607
+ if (~current_block_type_index) {
12608
+ if_blocks[current_block_type_index].m(target, anchor);
12609
+ }
12610
+ insert(target, t0, anchor);
12611
+ if (~current_block_type_index_1) {
12612
+ if_blocks_1[current_block_type_index_1].m(target, anchor);
12613
+ }
12614
+ insert(target, t1, anchor);
12615
+ if (~current_block_type_index_2) {
12616
+ if_blocks_2[current_block_type_index_2].m(target, anchor);
12617
+ }
12618
+ insert(target, if_block2_anchor, anchor);
12619
+ current = true;
12620
+ },
12621
+ p(ctx2, dirty) {
12622
+ let previous_block_index = current_block_type_index;
12623
+ current_block_type_index = select_block_type_1(ctx2);
12624
+ if (current_block_type_index === previous_block_index) {
12625
+ if (~current_block_type_index) {
12626
+ if_blocks[current_block_type_index].p(ctx2, dirty);
12627
+ }
12628
+ } else {
12629
+ if (if_block0) {
12630
+ group_outros();
12631
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
12632
+ if_blocks[previous_block_index] = null;
12633
+ });
12634
+ check_outros();
12635
+ }
12636
+ if (~current_block_type_index) {
12637
+ if_block0 = if_blocks[current_block_type_index];
12638
+ if (!if_block0) {
12639
+ if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
12640
+ if_block0.c();
12641
+ } else {
12642
+ if_block0.p(ctx2, dirty);
12643
+ }
12644
+ transition_in(if_block0, 1);
12645
+ if_block0.m(t0.parentNode, t0);
12646
+ } else {
12647
+ if_block0 = null;
12648
+ }
12649
+ }
12650
+ let previous_block_index_1 = current_block_type_index_1;
12651
+ current_block_type_index_1 = select_block_type_2(ctx2);
12652
+ if (current_block_type_index_1 === previous_block_index_1) {
12653
+ if (~current_block_type_index_1) {
12654
+ if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
12655
+ }
12656
+ } else {
12657
+ if (if_block1) {
12658
+ group_outros();
12659
+ transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
12660
+ if_blocks_1[previous_block_index_1] = null;
12661
+ });
12662
+ check_outros();
12663
+ }
12664
+ if (~current_block_type_index_1) {
12665
+ if_block1 = if_blocks_1[current_block_type_index_1];
12666
+ if (!if_block1) {
12667
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx2);
12668
+ if_block1.c();
12669
+ } else {
12670
+ if_block1.p(ctx2, dirty);
12671
+ }
12672
+ transition_in(if_block1, 1);
12673
+ if_block1.m(t1.parentNode, t1);
12674
+ } else {
12675
+ if_block1 = null;
12676
+ }
12677
+ }
12678
+ let previous_block_index_2 = current_block_type_index_2;
12679
+ current_block_type_index_2 = select_block_type_3(ctx2);
12680
+ if (current_block_type_index_2 === previous_block_index_2) {
12681
+ if (~current_block_type_index_2) {
12682
+ if_blocks_2[current_block_type_index_2].p(ctx2, dirty);
12683
+ }
12684
+ } else {
12685
+ if (if_block2) {
12686
+ group_outros();
12687
+ transition_out(if_blocks_2[previous_block_index_2], 1, 1, () => {
12688
+ if_blocks_2[previous_block_index_2] = null;
12689
+ });
12690
+ check_outros();
12691
+ }
12692
+ if (~current_block_type_index_2) {
12693
+ if_block2 = if_blocks_2[current_block_type_index_2];
12694
+ if (!if_block2) {
12695
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx2);
12696
+ if_block2.c();
12697
+ } else {
12698
+ if_block2.p(ctx2, dirty);
12699
+ }
12700
+ transition_in(if_block2, 1);
12701
+ if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
12702
+ } else {
12703
+ if_block2 = null;
12704
+ }
12705
+ }
12706
+ },
12707
+ i(local) {
12708
+ if (current)
12709
+ return;
12710
+ transition_in(if_block0);
12711
+ transition_in(if_block1);
12712
+ transition_in(if_block2);
12713
+ current = true;
12714
+ },
12715
+ o(local) {
12716
+ transition_out(if_block0);
12717
+ transition_out(if_block1);
12718
+ transition_out(if_block2);
12719
+ current = false;
12720
+ },
12721
+ d(detaching) {
12722
+ if (~current_block_type_index) {
12723
+ if_blocks[current_block_type_index].d(detaching);
12724
+ }
12725
+ if (detaching)
12726
+ detach(t0);
12727
+ if (~current_block_type_index_1) {
12728
+ if_blocks_1[current_block_type_index_1].d(detaching);
12729
+ }
12730
+ if (detaching)
12731
+ detach(t1);
12732
+ if (~current_block_type_index_2) {
12733
+ if_blocks_2[current_block_type_index_2].d(detaching);
12734
+ }
12735
+ if (detaching)
12736
+ detach(if_block2_anchor);
12737
+ }
12738
+ };
12739
+ }
12740
+ function create_if_block_6(ctx) {
12741
+ let button;
12742
+ let current;
12743
+ const button_spread_levels = [
12347
12744
  { class: name5 + "-panel-switch-btn" },
12348
12745
  /*btn_props*/
12349
12746
  ctx[15]
12350
12747
  ];
12351
- let button1_props = {
12352
- $$slots: { default: [create_default_slot_24] },
12748
+ let button_props = {
12749
+ $$slots: { default: [create_default_slot_53] },
12353
12750
  $$scope: { ctx }
12354
12751
  };
12355
- for (let i = 0; i < button1_spread_levels.length; i += 1) {
12356
- button1_props = assign(button1_props, button1_spread_levels[i]);
12752
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12753
+ button_props = assign(button_props, button_spread_levels[i]);
12357
12754
  }
12358
- button1 = new Button_default({ props: button1_props });
12359
- button1.$on(
12360
- "click",
12361
- /*useLaserPen*/
12362
- ctx[34]
12363
- );
12755
+ button = new Button_default({ props: button_props });
12364
12756
  return {
12365
12757
  c() {
12366
- create_component(button0.$$.fragment);
12367
- t_1 = space();
12368
- create_component(button1.$$.fragment);
12758
+ create_component(button.$$.fragment);
12369
12759
  },
12370
12760
  m(target, anchor) {
12371
- mount_component(button0, target, anchor);
12372
- insert(target, t_1, anchor);
12373
- mount_component(button1, target, anchor);
12761
+ mount_component(button, target, anchor);
12374
12762
  current = true;
12375
12763
  },
12376
12764
  p(ctx2, dirty) {
12377
- const button0_changes = dirty[0] & /*btn_props*/
12378
- 32768 ? get_spread_update(button0_spread_levels, [
12379
- dirty & /*name*/
12380
- 0 && { class: name5 + "-panel-switch-btn" },
12381
- dirty[0] & /*btn_props*/
12382
- 32768 && get_spread_object(
12383
- /*btn_props*/
12384
- ctx2[15]
12385
- )
12386
- ]) : {};
12387
- if (dirty[0] & /*theme*/
12388
- 2 | dirty[1] & /*$$scope*/
12389
- 268435456) {
12390
- button0_changes.$$scope = { dirty, ctx: ctx2 };
12391
- }
12392
- button0.$set(button0_changes);
12393
- const button1_changes = dirty[0] & /*btn_props*/
12394
- 32768 ? get_spread_update(button1_spread_levels, [
12765
+ const button_changes = dirty[0] & /*btn_props*/
12766
+ 32768 ? get_spread_update(button_spread_levels, [
12395
12767
  dirty & /*name*/
12396
12768
  0 && { class: name5 + "-panel-switch-btn" },
12397
12769
  dirty[0] & /*btn_props*/
@@ -12401,99 +12773,396 @@ function create_if_block_14(ctx) {
12401
12773
  )
12402
12774
  ]) : {};
12403
12775
  if (dirty[0] & /*theme*/
12404
- 2 | dirty[1] & /*$$scope*/
12405
- 268435456) {
12406
- button1_changes.$$scope = { dirty, ctx: ctx2 };
12776
+ 2 | dirty[2] & /*$$scope*/
12777
+ 1) {
12778
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12407
12779
  }
12408
- button1.$set(button1_changes);
12780
+ button.$set(button_changes);
12409
12781
  },
12410
12782
  i(local) {
12411
12783
  if (current)
12412
12784
  return;
12413
- transition_in(button0.$$.fragment, local);
12414
- transition_in(button1.$$.fragment, local);
12785
+ transition_in(button.$$.fragment, local);
12415
12786
  current = true;
12416
12787
  },
12417
12788
  o(local) {
12418
- transition_out(button0.$$.fragment, local);
12419
- transition_out(button1.$$.fragment, local);
12789
+ transition_out(button.$$.fragment, local);
12790
+ current = false;
12791
+ },
12792
+ d(detaching) {
12793
+ destroy_component(button, detaching);
12794
+ }
12795
+ };
12796
+ }
12797
+ function create_if_block_5(ctx) {
12798
+ let button;
12799
+ let current;
12800
+ const button_spread_levels = [
12801
+ { class: name5 + "-panel-switch-btn" },
12802
+ /*btn_props*/
12803
+ ctx[15]
12804
+ ];
12805
+ let button_props = {
12806
+ $$slots: { default: [create_default_slot_43] },
12807
+ $$scope: { ctx }
12808
+ };
12809
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12810
+ button_props = assign(button_props, button_spread_levels[i]);
12811
+ }
12812
+ button = new Button_default({ props: button_props });
12813
+ button.$on(
12814
+ "click",
12815
+ /*pencil*/
12816
+ ctx[28]
12817
+ );
12818
+ return {
12819
+ c() {
12820
+ create_component(button.$$.fragment);
12821
+ },
12822
+ m(target, anchor) {
12823
+ mount_component(button, target, anchor);
12824
+ current = true;
12825
+ },
12826
+ p(ctx2, dirty) {
12827
+ const button_changes = dirty[0] & /*btn_props*/
12828
+ 32768 ? get_spread_update(button_spread_levels, [
12829
+ dirty & /*name*/
12830
+ 0 && { class: name5 + "-panel-switch-btn" },
12831
+ dirty[0] & /*btn_props*/
12832
+ 32768 && get_spread_object(
12833
+ /*btn_props*/
12834
+ ctx2[15]
12835
+ )
12836
+ ]) : {};
12837
+ if (dirty[0] & /*theme*/
12838
+ 2 | dirty[2] & /*$$scope*/
12839
+ 1) {
12840
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12841
+ }
12842
+ button.$set(button_changes);
12843
+ },
12844
+ i(local) {
12845
+ if (current)
12846
+ return;
12847
+ transition_in(button.$$.fragment, local);
12848
+ current = true;
12849
+ },
12850
+ o(local) {
12851
+ transition_out(button.$$.fragment, local);
12852
+ current = false;
12853
+ },
12854
+ d(detaching) {
12855
+ destroy_component(button, detaching);
12856
+ }
12857
+ };
12858
+ }
12859
+ function create_default_slot_53(ctx) {
12860
+ let icons_pencilfilled;
12861
+ let current;
12862
+ icons_pencilfilled = new Icons_default.PencilFilled({
12863
+ props: { theme: (
12864
+ /*theme*/
12865
+ ctx[1]
12866
+ ), active: true }
12867
+ });
12868
+ return {
12869
+ c() {
12870
+ create_component(icons_pencilfilled.$$.fragment);
12871
+ },
12872
+ m(target, anchor) {
12873
+ mount_component(icons_pencilfilled, target, anchor);
12874
+ current = true;
12875
+ },
12876
+ p(ctx2, dirty) {
12877
+ const icons_pencilfilled_changes = {};
12878
+ if (dirty[0] & /*theme*/
12879
+ 2)
12880
+ icons_pencilfilled_changes.theme = /*theme*/
12881
+ ctx2[1];
12882
+ icons_pencilfilled.$set(icons_pencilfilled_changes);
12883
+ },
12884
+ i(local) {
12885
+ if (current)
12886
+ return;
12887
+ transition_in(icons_pencilfilled.$$.fragment, local);
12888
+ current = true;
12889
+ },
12890
+ o(local) {
12891
+ transition_out(icons_pencilfilled.$$.fragment, local);
12892
+ current = false;
12893
+ },
12894
+ d(detaching) {
12895
+ destroy_component(icons_pencilfilled, detaching);
12896
+ }
12897
+ };
12898
+ }
12899
+ function create_default_slot_43(ctx) {
12900
+ let icons_pencil;
12901
+ let current;
12902
+ icons_pencil = new Icons_default.Pencil({ props: { theme: (
12903
+ /*theme*/
12904
+ ctx[1]
12905
+ ) } });
12906
+ return {
12907
+ c() {
12908
+ create_component(icons_pencil.$$.fragment);
12909
+ },
12910
+ m(target, anchor) {
12911
+ mount_component(icons_pencil, target, anchor);
12912
+ current = true;
12913
+ },
12914
+ p(ctx2, dirty) {
12915
+ const icons_pencil_changes = {};
12916
+ if (dirty[0] & /*theme*/
12917
+ 2)
12918
+ icons_pencil_changes.theme = /*theme*/
12919
+ ctx2[1];
12920
+ icons_pencil.$set(icons_pencil_changes);
12921
+ },
12922
+ i(local) {
12923
+ if (current)
12924
+ return;
12925
+ transition_in(icons_pencil.$$.fragment, local);
12926
+ current = true;
12927
+ },
12928
+ o(local) {
12929
+ transition_out(icons_pencil.$$.fragment, local);
12930
+ current = false;
12931
+ },
12932
+ d(detaching) {
12933
+ destroy_component(icons_pencil, detaching);
12934
+ }
12935
+ };
12936
+ }
12937
+ function create_if_block_4(ctx) {
12938
+ let button;
12939
+ let current;
12940
+ const button_spread_levels = [
12941
+ { class: name5 + "-panel-switch-btn" },
12942
+ /*btn_props*/
12943
+ ctx[15]
12944
+ ];
12945
+ let button_props = {
12946
+ $$slots: { default: [create_default_slot_34] },
12947
+ $$scope: { ctx }
12948
+ };
12949
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
12950
+ button_props = assign(button_props, button_spread_levels[i]);
12951
+ }
12952
+ button = new Button_default({ props: button_props });
12953
+ button.$on(
12954
+ "click",
12955
+ /*useLaserPen*/
12956
+ ctx[34]
12957
+ );
12958
+ return {
12959
+ c() {
12960
+ create_component(button.$$.fragment);
12961
+ },
12962
+ m(target, anchor) {
12963
+ mount_component(button, target, anchor);
12964
+ current = true;
12965
+ },
12966
+ p(ctx2, dirty) {
12967
+ const button_changes = dirty[0] & /*btn_props*/
12968
+ 32768 ? get_spread_update(button_spread_levels, [
12969
+ dirty & /*name*/
12970
+ 0 && { class: name5 + "-panel-switch-btn" },
12971
+ dirty[0] & /*btn_props*/
12972
+ 32768 && get_spread_object(
12973
+ /*btn_props*/
12974
+ ctx2[15]
12975
+ )
12976
+ ]) : {};
12977
+ if (dirty[0] & /*theme*/
12978
+ 2 | dirty[2] & /*$$scope*/
12979
+ 1) {
12980
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12981
+ }
12982
+ button.$set(button_changes);
12983
+ },
12984
+ i(local) {
12985
+ if (current)
12986
+ return;
12987
+ transition_in(button.$$.fragment, local);
12988
+ current = true;
12989
+ },
12990
+ o(local) {
12991
+ transition_out(button.$$.fragment, local);
12992
+ current = false;
12993
+ },
12994
+ d(detaching) {
12995
+ destroy_component(button, detaching);
12996
+ }
12997
+ };
12998
+ }
12999
+ function create_if_block_3(ctx) {
13000
+ let button;
13001
+ let current;
13002
+ const button_spread_levels = [
13003
+ { class: name5 + "-panel-switch-btn" },
13004
+ /*btn_props*/
13005
+ ctx[15]
13006
+ ];
13007
+ let button_props = {
13008
+ $$slots: { default: [create_default_slot_24] },
13009
+ $$scope: { ctx }
13010
+ };
13011
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13012
+ button_props = assign(button_props, button_spread_levels[i]);
13013
+ }
13014
+ button = new Button_default({ props: button_props });
13015
+ return {
13016
+ c() {
13017
+ create_component(button.$$.fragment);
13018
+ },
13019
+ m(target, anchor) {
13020
+ mount_component(button, target, anchor);
13021
+ current = true;
13022
+ },
13023
+ p(ctx2, dirty) {
13024
+ const button_changes = dirty[0] & /*btn_props*/
13025
+ 32768 ? get_spread_update(button_spread_levels, [
13026
+ dirty & /*name*/
13027
+ 0 && { class: name5 + "-panel-switch-btn" },
13028
+ dirty[0] & /*btn_props*/
13029
+ 32768 && get_spread_object(
13030
+ /*btn_props*/
13031
+ ctx2[15]
13032
+ )
13033
+ ]) : {};
13034
+ if (dirty[0] & /*theme*/
13035
+ 2 | dirty[2] & /*$$scope*/
13036
+ 1) {
13037
+ button_changes.$$scope = { dirty, ctx: ctx2 };
13038
+ }
13039
+ button.$set(button_changes);
13040
+ },
13041
+ i(local) {
13042
+ if (current)
13043
+ return;
13044
+ transition_in(button.$$.fragment, local);
13045
+ current = true;
13046
+ },
13047
+ o(local) {
13048
+ transition_out(button.$$.fragment, local);
13049
+ current = false;
13050
+ },
13051
+ d(detaching) {
13052
+ destroy_component(button, detaching);
13053
+ }
13054
+ };
13055
+ }
13056
+ function create_default_slot_34(ctx) {
13057
+ let icons_laserpen;
13058
+ let current;
13059
+ icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
13060
+ /*theme*/
13061
+ ctx[1]
13062
+ ) } });
13063
+ return {
13064
+ c() {
13065
+ create_component(icons_laserpen.$$.fragment);
13066
+ },
13067
+ m(target, anchor) {
13068
+ mount_component(icons_laserpen, target, anchor);
13069
+ current = true;
13070
+ },
13071
+ p(ctx2, dirty) {
13072
+ const icons_laserpen_changes = {};
13073
+ if (dirty[0] & /*theme*/
13074
+ 2)
13075
+ icons_laserpen_changes.theme = /*theme*/
13076
+ ctx2[1];
13077
+ icons_laserpen.$set(icons_laserpen_changes);
13078
+ },
13079
+ i(local) {
13080
+ if (current)
13081
+ return;
13082
+ transition_in(icons_laserpen.$$.fragment, local);
13083
+ current = true;
13084
+ },
13085
+ o(local) {
13086
+ transition_out(icons_laserpen.$$.fragment, local);
13087
+ current = false;
13088
+ },
13089
+ d(detaching) {
13090
+ destroy_component(icons_laserpen, detaching);
13091
+ }
13092
+ };
13093
+ }
13094
+ function create_default_slot_24(ctx) {
13095
+ let icons_laserpenfilled;
13096
+ let current;
13097
+ icons_laserpenfilled = new Icons_default.LaserPenFilled({
13098
+ props: { theme: (
13099
+ /*theme*/
13100
+ ctx[1]
13101
+ ), active: true }
13102
+ });
13103
+ return {
13104
+ c() {
13105
+ create_component(icons_laserpenfilled.$$.fragment);
13106
+ },
13107
+ m(target, anchor) {
13108
+ mount_component(icons_laserpenfilled, target, anchor);
13109
+ current = true;
13110
+ },
13111
+ p(ctx2, dirty) {
13112
+ const icons_laserpenfilled_changes = {};
13113
+ if (dirty[0] & /*theme*/
13114
+ 2)
13115
+ icons_laserpenfilled_changes.theme = /*theme*/
13116
+ ctx2[1];
13117
+ icons_laserpenfilled.$set(icons_laserpenfilled_changes);
13118
+ },
13119
+ i(local) {
13120
+ if (current)
13121
+ return;
13122
+ transition_in(icons_laserpenfilled.$$.fragment, local);
13123
+ current = true;
13124
+ },
13125
+ o(local) {
13126
+ transition_out(icons_laserpenfilled.$$.fragment, local);
12420
13127
  current = false;
12421
13128
  },
12422
13129
  d(detaching) {
12423
- destroy_component(button0, detaching);
12424
- if (detaching)
12425
- detach(t_1);
12426
- destroy_component(button1, detaching);
13130
+ destroy_component(icons_laserpenfilled, detaching);
12427
13131
  }
12428
13132
  };
12429
13133
  }
12430
- function create_if_block14(ctx) {
12431
- let button0;
12432
- let t_1;
12433
- let button1;
13134
+ function create_if_block_22(ctx) {
13135
+ let button;
12434
13136
  let current;
12435
- const button0_spread_levels = [
13137
+ const button_spread_levels = [
12436
13138
  { class: name5 + "-panel-switch-btn" },
12437
13139
  /*btn_props*/
12438
13140
  ctx[15]
12439
13141
  ];
12440
- let button0_props = {
13142
+ let button_props = {
12441
13143
  $$slots: { default: [create_default_slot_14] },
12442
13144
  $$scope: { ctx }
12443
13145
  };
12444
- for (let i = 0; i < button0_spread_levels.length; i += 1) {
12445
- button0_props = assign(button0_props, button0_spread_levels[i]);
13146
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13147
+ button_props = assign(button_props, button_spread_levels[i]);
12446
13148
  }
12447
- button0 = new Button_default({ props: button0_props });
12448
- button0.$on(
13149
+ button = new Button_default({ props: button_props });
13150
+ button.$on(
12449
13151
  "click",
12450
- /*pencil*/
12451
- ctx[28]
13152
+ /*useMarkPen*/
13153
+ ctx[35]
12452
13154
  );
12453
- const button1_spread_levels = [
12454
- { class: name5 + "-panel-switch-btn" },
12455
- /*btn_props*/
12456
- ctx[15]
12457
- ];
12458
- let button1_props = {
12459
- $$slots: { default: [create_default_slot13] },
12460
- $$scope: { ctx }
12461
- };
12462
- for (let i = 0; i < button1_spread_levels.length; i += 1) {
12463
- button1_props = assign(button1_props, button1_spread_levels[i]);
12464
- }
12465
- button1 = new Button_default({ props: button1_props });
12466
13155
  return {
12467
13156
  c() {
12468
- create_component(button0.$$.fragment);
12469
- t_1 = space();
12470
- create_component(button1.$$.fragment);
13157
+ create_component(button.$$.fragment);
12471
13158
  },
12472
13159
  m(target, anchor) {
12473
- mount_component(button0, target, anchor);
12474
- insert(target, t_1, anchor);
12475
- mount_component(button1, target, anchor);
13160
+ mount_component(button, target, anchor);
12476
13161
  current = true;
12477
13162
  },
12478
13163
  p(ctx2, dirty) {
12479
- const button0_changes = dirty[0] & /*btn_props*/
12480
- 32768 ? get_spread_update(button0_spread_levels, [
12481
- dirty & /*name*/
12482
- 0 && { class: name5 + "-panel-switch-btn" },
12483
- dirty[0] & /*btn_props*/
12484
- 32768 && get_spread_object(
12485
- /*btn_props*/
12486
- ctx2[15]
12487
- )
12488
- ]) : {};
12489
- if (dirty[0] & /*theme*/
12490
- 2 | dirty[1] & /*$$scope*/
12491
- 268435456) {
12492
- button0_changes.$$scope = { dirty, ctx: ctx2 };
12493
- }
12494
- button0.$set(button0_changes);
12495
- const button1_changes = dirty[0] & /*btn_props*/
12496
- 32768 ? get_spread_update(button1_spread_levels, [
13164
+ const button_changes = dirty[0] & /*btn_props*/
13165
+ 32768 ? get_spread_update(button_spread_levels, [
12497
13166
  dirty & /*name*/
12498
13167
  0 && { class: name5 + "-panel-switch-btn" },
12499
13168
  dirty[0] & /*btn_props*/
@@ -12503,152 +13172,126 @@ function create_if_block14(ctx) {
12503
13172
  )
12504
13173
  ]) : {};
12505
13174
  if (dirty[0] & /*theme*/
12506
- 2 | dirty[1] & /*$$scope*/
12507
- 268435456) {
12508
- button1_changes.$$scope = { dirty, ctx: ctx2 };
13175
+ 2 | dirty[2] & /*$$scope*/
13176
+ 1) {
13177
+ button_changes.$$scope = { dirty, ctx: ctx2 };
12509
13178
  }
12510
- button1.$set(button1_changes);
13179
+ button.$set(button_changes);
12511
13180
  },
12512
13181
  i(local) {
12513
13182
  if (current)
12514
13183
  return;
12515
- transition_in(button0.$$.fragment, local);
12516
- transition_in(button1.$$.fragment, local);
13184
+ transition_in(button.$$.fragment, local);
12517
13185
  current = true;
12518
13186
  },
12519
13187
  o(local) {
12520
- transition_out(button0.$$.fragment, local);
12521
- transition_out(button1.$$.fragment, local);
13188
+ transition_out(button.$$.fragment, local);
12522
13189
  current = false;
12523
13190
  },
12524
13191
  d(detaching) {
12525
- destroy_component(button0, detaching);
12526
- if (detaching)
12527
- detach(t_1);
12528
- destroy_component(button1, detaching);
13192
+ destroy_component(button, detaching);
12529
13193
  }
12530
13194
  };
12531
13195
  }
12532
- function create_default_slot_34(ctx) {
12533
- let icons_pencilfilled;
13196
+ function create_if_block_19(ctx) {
13197
+ let button;
12534
13198
  let current;
12535
- icons_pencilfilled = new Icons_default.PencilFilled({
12536
- props: { theme: (
12537
- /*theme*/
12538
- ctx[1]
12539
- ), active: true }
12540
- });
12541
- return {
12542
- c() {
12543
- create_component(icons_pencilfilled.$$.fragment);
12544
- },
12545
- m(target, anchor) {
12546
- mount_component(icons_pencilfilled, target, anchor);
12547
- current = true;
12548
- },
12549
- p(ctx2, dirty) {
12550
- const icons_pencilfilled_changes = {};
12551
- if (dirty[0] & /*theme*/
12552
- 2)
12553
- icons_pencilfilled_changes.theme = /*theme*/
12554
- ctx2[1];
12555
- icons_pencilfilled.$set(icons_pencilfilled_changes);
12556
- },
12557
- i(local) {
12558
- if (current)
12559
- return;
12560
- transition_in(icons_pencilfilled.$$.fragment, local);
12561
- current = true;
12562
- },
12563
- o(local) {
12564
- transition_out(icons_pencilfilled.$$.fragment, local);
12565
- current = false;
12566
- },
12567
- d(detaching) {
12568
- destroy_component(icons_pencilfilled, detaching);
12569
- }
13199
+ const button_spread_levels = [
13200
+ { class: name5 + "-panel-switch-btn" },
13201
+ /*btn_props*/
13202
+ ctx[15]
13203
+ ];
13204
+ let button_props = {
13205
+ $$slots: { default: [create_default_slot13] },
13206
+ $$scope: { ctx }
12570
13207
  };
12571
- }
12572
- function create_default_slot_24(ctx) {
12573
- let icons_laserpen;
12574
- let current;
12575
- icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
12576
- /*theme*/
12577
- ctx[1]
12578
- ) } });
13208
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13209
+ button_props = assign(button_props, button_spread_levels[i]);
13210
+ }
13211
+ button = new Button_default({ props: button_props });
12579
13212
  return {
12580
13213
  c() {
12581
- create_component(icons_laserpen.$$.fragment);
13214
+ create_component(button.$$.fragment);
12582
13215
  },
12583
13216
  m(target, anchor) {
12584
- mount_component(icons_laserpen, target, anchor);
13217
+ mount_component(button, target, anchor);
12585
13218
  current = true;
12586
13219
  },
12587
13220
  p(ctx2, dirty) {
12588
- const icons_laserpen_changes = {};
13221
+ const button_changes = dirty[0] & /*btn_props*/
13222
+ 32768 ? get_spread_update(button_spread_levels, [
13223
+ dirty & /*name*/
13224
+ 0 && { class: name5 + "-panel-switch-btn" },
13225
+ dirty[0] & /*btn_props*/
13226
+ 32768 && get_spread_object(
13227
+ /*btn_props*/
13228
+ ctx2[15]
13229
+ )
13230
+ ]) : {};
12589
13231
  if (dirty[0] & /*theme*/
12590
- 2)
12591
- icons_laserpen_changes.theme = /*theme*/
12592
- ctx2[1];
12593
- icons_laserpen.$set(icons_laserpen_changes);
13232
+ 2 | dirty[2] & /*$$scope*/
13233
+ 1) {
13234
+ button_changes.$$scope = { dirty, ctx: ctx2 };
13235
+ }
13236
+ button.$set(button_changes);
12594
13237
  },
12595
13238
  i(local) {
12596
13239
  if (current)
12597
13240
  return;
12598
- transition_in(icons_laserpen.$$.fragment, local);
13241
+ transition_in(button.$$.fragment, local);
12599
13242
  current = true;
12600
13243
  },
12601
13244
  o(local) {
12602
- transition_out(icons_laserpen.$$.fragment, local);
13245
+ transition_out(button.$$.fragment, local);
12603
13246
  current = false;
12604
13247
  },
12605
13248
  d(detaching) {
12606
- destroy_component(icons_laserpen, detaching);
13249
+ destroy_component(button, detaching);
12607
13250
  }
12608
13251
  };
12609
13252
  }
12610
13253
  function create_default_slot_14(ctx) {
12611
- let icons_pencil;
13254
+ let icons_markpen;
12612
13255
  let current;
12613
- icons_pencil = new Icons_default.Pencil({ props: { theme: (
13256
+ icons_markpen = new Icons_default.MarkPen({ props: { theme: (
12614
13257
  /*theme*/
12615
13258
  ctx[1]
12616
13259
  ) } });
12617
13260
  return {
12618
13261
  c() {
12619
- create_component(icons_pencil.$$.fragment);
13262
+ create_component(icons_markpen.$$.fragment);
12620
13263
  },
12621
13264
  m(target, anchor) {
12622
- mount_component(icons_pencil, target, anchor);
13265
+ mount_component(icons_markpen, target, anchor);
12623
13266
  current = true;
12624
13267
  },
12625
13268
  p(ctx2, dirty) {
12626
- const icons_pencil_changes = {};
13269
+ const icons_markpen_changes = {};
12627
13270
  if (dirty[0] & /*theme*/
12628
13271
  2)
12629
- icons_pencil_changes.theme = /*theme*/
13272
+ icons_markpen_changes.theme = /*theme*/
12630
13273
  ctx2[1];
12631
- icons_pencil.$set(icons_pencil_changes);
13274
+ icons_markpen.$set(icons_markpen_changes);
12632
13275
  },
12633
13276
  i(local) {
12634
13277
  if (current)
12635
13278
  return;
12636
- transition_in(icons_pencil.$$.fragment, local);
13279
+ transition_in(icons_markpen.$$.fragment, local);
12637
13280
  current = true;
12638
13281
  },
12639
13282
  o(local) {
12640
- transition_out(icons_pencil.$$.fragment, local);
13283
+ transition_out(icons_markpen.$$.fragment, local);
12641
13284
  current = false;
12642
13285
  },
12643
13286
  d(detaching) {
12644
- destroy_component(icons_pencil, detaching);
13287
+ destroy_component(icons_markpen, detaching);
12645
13288
  }
12646
13289
  };
12647
13290
  }
12648
13291
  function create_default_slot13(ctx) {
12649
- let icons_laserpenfilled;
13292
+ let icons_markpenfilled;
12650
13293
  let current;
12651
- icons_laserpenfilled = new Icons_default.LaserPenFilled({
13294
+ icons_markpenfilled = new Icons_default.MarkPenFilled({
12652
13295
  props: { theme: (
12653
13296
  /*theme*/
12654
13297
  ctx[1]
@@ -12656,32 +13299,32 @@ function create_default_slot13(ctx) {
12656
13299
  });
12657
13300
  return {
12658
13301
  c() {
12659
- create_component(icons_laserpenfilled.$$.fragment);
13302
+ create_component(icons_markpenfilled.$$.fragment);
12660
13303
  },
12661
13304
  m(target, anchor) {
12662
- mount_component(icons_laserpenfilled, target, anchor);
13305
+ mount_component(icons_markpenfilled, target, anchor);
12663
13306
  current = true;
12664
13307
  },
12665
13308
  p(ctx2, dirty) {
12666
- const icons_laserpenfilled_changes = {};
13309
+ const icons_markpenfilled_changes = {};
12667
13310
  if (dirty[0] & /*theme*/
12668
13311
  2)
12669
- icons_laserpenfilled_changes.theme = /*theme*/
13312
+ icons_markpenfilled_changes.theme = /*theme*/
12670
13313
  ctx2[1];
12671
- icons_laserpenfilled.$set(icons_laserpenfilled_changes);
13314
+ icons_markpenfilled.$set(icons_markpenfilled_changes);
12672
13315
  },
12673
13316
  i(local) {
12674
13317
  if (current)
12675
13318
  return;
12676
- transition_in(icons_laserpenfilled.$$.fragment, local);
13319
+ transition_in(icons_markpenfilled.$$.fragment, local);
12677
13320
  current = true;
12678
13321
  },
12679
13322
  o(local) {
12680
- transition_out(icons_laserpenfilled.$$.fragment, local);
13323
+ transition_out(icons_markpenfilled.$$.fragment, local);
12681
13324
  current = false;
12682
13325
  },
12683
13326
  d(detaching) {
12684
- destroy_component(icons_laserpenfilled, detaching);
13327
+ destroy_component(icons_markpenfilled, detaching);
12685
13328
  }
12686
13329
  };
12687
13330
  }
@@ -12696,7 +13339,7 @@ function create_each_block4(ctx) {
12696
13339
  let span;
12697
13340
  let t1_value = (
12698
13341
  /*label*/
12699
- ctx[49] + ""
13342
+ ctx[52] + ""
12700
13343
  );
12701
13344
  let t1;
12702
13345
  let span_class_value;
@@ -12718,40 +13361,40 @@ function create_each_block4(ctx) {
12718
13361
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
12719
13362
  ctx[1]);
12720
13363
  if (!src_url_equal(img.src, img_src_value = /*icon*/
12721
- ctx[48]))
13364
+ ctx[51]))
12722
13365
  attr(img, "src", img_src_value);
12723
13366
  attr(img, "alt", img_alt_value = /*kind*/
12724
- ctx[50]);
13367
+ ctx[53]);
12725
13368
  attr(img, "title", img_title_value = /*label*/
12726
- ctx[49]);
13369
+ ctx[52]);
12727
13370
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
12728
13371
  ctx[1]);
12729
13372
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
12730
- ctx[50] + " " + /*theme*/
13373
+ ctx[53] + " " + /*theme*/
12731
13374
  ctx[1]);
12732
13375
  attr(button, "title", button_title_value = /*label*/
12733
- ctx[49] + /*state*/
12734
- (ctx[52] && /*state*/
12735
- ctx[52].reason ? ": " + /*state*/
12736
- ctx[52].reason : ""));
13376
+ ctx[52] + /*state*/
13377
+ (ctx[55] && /*state*/
13378
+ ctx[55].reason ? ": " + /*state*/
13379
+ ctx[55].reason : ""));
12737
13380
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
12738
- ctx[47].kind);
13381
+ ctx[50].kind);
12739
13382
  button.disabled = button_disabled_value = /*state*/
12740
- ctx[52] && /*state*/
12741
- ctx[52].status !== "idle";
13383
+ ctx[55] && /*state*/
13384
+ ctx[55].status !== "idle";
12742
13385
  toggle_class(
12743
13386
  button,
12744
13387
  "is-loading",
12745
13388
  /*state*/
12746
- ctx[52] && /*state*/
12747
- ctx[52].status === "loading"
13389
+ ctx[55] && /*state*/
13390
+ ctx[55].status === "loading"
12748
13391
  );
12749
13392
  toggle_class(
12750
13393
  button,
12751
13394
  "is-failed",
12752
13395
  /*state*/
12753
- ctx[52] && /*state*/
12754
- ctx[52].status === "failed"
13396
+ ctx[55] && /*state*/
13397
+ ctx[55].status === "failed"
12755
13398
  );
12756
13399
  },
12757
13400
  m(target, anchor) {
@@ -12765,9 +13408,9 @@ function create_each_block4(ctx) {
12765
13408
  dispose = listen(button, "click", function() {
12766
13409
  if (is_function(
12767
13410
  /*on_click*/
12768
- ctx[53]
13411
+ ctx[56]
12769
13412
  ))
12770
- ctx[53].apply(this, arguments);
13413
+ ctx[56].apply(this, arguments);
12771
13414
  });
12772
13415
  mounted = true;
12773
13416
  }
@@ -12781,22 +13424,22 @@ function create_each_block4(ctx) {
12781
13424
  }
12782
13425
  if (dirty[0] & /*$apps*/
12783
13426
  2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
12784
- ctx[48])) {
13427
+ ctx[51])) {
12785
13428
  attr(img, "src", img_src_value);
12786
13429
  }
12787
13430
  if (dirty[0] & /*$apps*/
12788
13431
  2097152 && img_alt_value !== (img_alt_value = /*kind*/
12789
- ctx[50])) {
13432
+ ctx[53])) {
12790
13433
  attr(img, "alt", img_alt_value);
12791
13434
  }
12792
13435
  if (dirty[0] & /*$apps*/
12793
13436
  2097152 && img_title_value !== (img_title_value = /*label*/
12794
- ctx[49])) {
13437
+ ctx[52])) {
12795
13438
  attr(img, "title", img_title_value);
12796
13439
  }
12797
13440
  if (dirty[0] & /*$apps*/
12798
13441
  2097152 && t1_value !== (t1_value = /*label*/
12799
- ctx[49] + ""))
13442
+ ctx[52] + ""))
12800
13443
  set_data(t1, t1_value);
12801
13444
  if (dirty[0] & /*theme*/
12802
13445
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -12805,27 +13448,27 @@ function create_each_block4(ctx) {
12805
13448
  }
12806
13449
  if (dirty[0] & /*$apps, theme*/
12807
13450
  2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
12808
- ctx[50] + " " + /*theme*/
13451
+ ctx[53] + " " + /*theme*/
12809
13452
  ctx[1])) {
12810
13453
  attr(button, "class", button_class_value);
12811
13454
  }
12812
13455
  if (dirty[0] & /*$apps, $status*/
12813
13456
  6291456 && button_title_value !== (button_title_value = /*label*/
12814
- ctx[49] + /*state*/
12815
- (ctx[52] && /*state*/
12816
- ctx[52].reason ? ": " + /*state*/
12817
- ctx[52].reason : ""))) {
13457
+ ctx[52] + /*state*/
13458
+ (ctx[55] && /*state*/
13459
+ ctx[55].reason ? ": " + /*state*/
13460
+ ctx[55].reason : ""))) {
12818
13461
  attr(button, "title", button_title_value);
12819
13462
  }
12820
13463
  if (dirty[0] & /*$apps*/
12821
13464
  2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
12822
- ctx[47].kind)) {
13465
+ ctx[50].kind)) {
12823
13466
  attr(button, "data-app-kind", button_data_app_kind_value);
12824
13467
  }
12825
13468
  if (dirty[0] & /*$status, $apps*/
12826
13469
  6291456 && button_disabled_value !== (button_disabled_value = /*state*/
12827
- ctx[52] && /*state*/
12828
- ctx[52].status !== "idle")) {
13470
+ ctx[55] && /*state*/
13471
+ ctx[55].status !== "idle")) {
12829
13472
  button.disabled = button_disabled_value;
12830
13473
  }
12831
13474
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12834,8 +13477,8 @@ function create_each_block4(ctx) {
12834
13477
  button,
12835
13478
  "is-loading",
12836
13479
  /*state*/
12837
- ctx[52] && /*state*/
12838
- ctx[52].status === "loading"
13480
+ ctx[55] && /*state*/
13481
+ ctx[55].status === "loading"
12839
13482
  );
12840
13483
  }
12841
13484
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -12844,8 +13487,8 @@ function create_each_block4(ctx) {
12844
13487
  button,
12845
13488
  "is-failed",
12846
13489
  /*state*/
12847
- ctx[52] && /*state*/
12848
- ctx[52].status === "failed"
13490
+ ctx[55] && /*state*/
13491
+ ctx[55].status === "failed"
12849
13492
  );
12850
13493
  }
12851
13494
  },
@@ -12857,7 +13500,8 @@ function create_each_block4(ctx) {
12857
13500
  }
12858
13501
  };
12859
13502
  }
12860
- function create_fragment69(ctx) {
13503
+ function create_fragment71(ctx) {
13504
+ var _a;
12861
13505
  let t0;
12862
13506
  let div0;
12863
13507
  let t1;
@@ -12867,8 +13511,6 @@ function create_fragment69(ctx) {
12867
13511
  let div9;
12868
13512
  let div3;
12869
13513
  let div1;
12870
- let current_block_type_index;
12871
- let if_block3;
12872
13514
  let t4;
12873
13515
  let strokewidth0;
12874
13516
  let t5;
@@ -12896,7 +13538,7 @@ function create_fragment69(ctx) {
12896
13538
  let dispose;
12897
13539
  let if_block0 = (
12898
13540
  /*scrollable*/
12899
- ctx[5] && create_if_block_13(ctx)
13541
+ ctx[5] && create_if_block_18(ctx)
12900
13542
  );
12901
13543
  let each_value_1 = (
12902
13544
  /*items*/
@@ -12910,27 +13552,13 @@ function create_fragment69(ctx) {
12910
13552
  each_blocks_1[i] = null;
12911
13553
  });
12912
13554
  let if_block1 = !/*hide_apps*/
12913
- ctx[8] && create_if_block_3(ctx);
13555
+ ctx[8] && create_if_block_8(ctx);
12914
13556
  let if_block2 = (
12915
13557
  /*scrollable*/
12916
- ctx[5] && create_if_block_2(ctx)
13558
+ ctx[5] && create_if_block_7(ctx)
12917
13559
  );
12918
- const if_block_creators = [create_if_block14, create_if_block_14];
12919
- const if_blocks = [];
12920
- function select_block_type_1(ctx2, dirty) {
12921
- var _a, _b;
12922
- if (!!/*app*/
12923
- ((_a = ctx2[0]) == null ? void 0 : _a.appliancePlugin) && /*hasUseLaserPen*/
12924
- ctx2[16])
12925
- return 0;
12926
- if (!!/*app*/
12927
- ((_b = ctx2[0]) == null ? void 0 : _b.appliancePlugin))
12928
- return 1;
12929
- return -1;
12930
- }
12931
- if (~(current_block_type_index = select_block_type_1(ctx))) {
12932
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12933
- }
13560
+ let if_block3 = !!/*app*/
13561
+ ((_a = ctx[0]) == null ? void 0 : _a.appliancePlugin) && create_if_block14(ctx);
12934
13562
  strokewidth0 = new StrokeWidth_default({
12935
13563
  props: {
12936
13564
  app: (
@@ -13141,20 +13769,19 @@ function create_fragment69(ctx) {
13141
13769
  insert(target, div9, anchor);
13142
13770
  append(div9, div3);
13143
13771
  append(div3, div1);
13144
- if (~current_block_type_index) {
13145
- if_blocks[current_block_type_index].m(div1, null);
13146
- }
13772
+ if (if_block3)
13773
+ if_block3.m(div1, null);
13147
13774
  append(div3, t4);
13148
13775
  mount_component(strokewidth0, div3, null);
13149
13776
  append(div3, t5);
13150
13777
  append(div3, div2);
13151
13778
  append(div3, t6);
13152
13779
  mount_component(strokecolor0, div3, null);
13153
- ctx[40](div3);
13780
+ ctx[43](div3);
13154
13781
  append(div9, t7);
13155
13782
  append(div9, div4);
13156
13783
  mount_component(textcolor, div4, null);
13157
- ctx[41](div4);
13784
+ ctx[44](div4);
13158
13785
  append(div9, t8);
13159
13786
  append(div9, div7);
13160
13787
  mount_component(selectshapes, div7, null);
@@ -13166,7 +13793,7 @@ function create_fragment69(ctx) {
13166
13793
  append(div7, div6);
13167
13794
  append(div7, t12);
13168
13795
  mount_component(strokecolor1, div7, null);
13169
- ctx[42](div7);
13796
+ ctx[45](div7);
13170
13797
  append(div9, t13);
13171
13798
  append(div9, div8);
13172
13799
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -13174,7 +13801,7 @@ function create_fragment69(ctx) {
13174
13801
  each_blocks[i].m(div8, null);
13175
13802
  }
13176
13803
  }
13177
- ctx[44](div8);
13804
+ ctx[47](div8);
13178
13805
  current = true;
13179
13806
  if (!mounted) {
13180
13807
  dispose = [
@@ -13195,6 +13822,7 @@ function create_fragment69(ctx) {
13195
13822
  }
13196
13823
  },
13197
13824
  p(ctx2, dirty) {
13825
+ var _a2;
13198
13826
  if (
13199
13827
  /*scrollable*/
13200
13828
  ctx2[5]
@@ -13206,7 +13834,7 @@ function create_fragment69(ctx) {
13206
13834
  transition_in(if_block0, 1);
13207
13835
  }
13208
13836
  } else {
13209
- if_block0 = create_if_block_13(ctx2);
13837
+ if_block0 = create_if_block_18(ctx2);
13210
13838
  if_block0.c();
13211
13839
  transition_in(if_block0, 1);
13212
13840
  if_block0.m(t0.parentNode, t0);
@@ -13218,7 +13846,7 @@ function create_fragment69(ctx) {
13218
13846
  });
13219
13847
  check_outros();
13220
13848
  }
13221
- if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, hasUseLaserPen, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13849
+ if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13222
13850
  2081799299 | dirty[1] & /*clear, hand, laserPointer*/
13223
13851
  7) {
13224
13852
  each_value_1 = /*items*/
@@ -13251,7 +13879,7 @@ function create_fragment69(ctx) {
13251
13879
  transition_in(if_block1, 1);
13252
13880
  }
13253
13881
  } else {
13254
- if_block1 = create_if_block_3(ctx2);
13882
+ if_block1 = create_if_block_8(ctx2);
13255
13883
  if_block1.c();
13256
13884
  transition_in(if_block1, 1);
13257
13885
  if_block1.m(div0, null);
@@ -13290,7 +13918,7 @@ function create_fragment69(ctx) {
13290
13918
  transition_in(if_block2, 1);
13291
13919
  }
13292
13920
  } else {
13293
- if_block2 = create_if_block_2(ctx2);
13921
+ if_block2 = create_if_block_7(ctx2);
13294
13922
  if_block2.c();
13295
13923
  transition_in(if_block2, 1);
13296
13924
  if_block2.m(t3.parentNode, t3);
@@ -13302,33 +13930,26 @@ function create_fragment69(ctx) {
13302
13930
  });
13303
13931
  check_outros();
13304
13932
  }
13305
- let previous_block_index = current_block_type_index;
13306
- current_block_type_index = select_block_type_1(ctx2);
13307
- if (current_block_type_index === previous_block_index) {
13308
- if (~current_block_type_index) {
13309
- if_blocks[current_block_type_index].p(ctx2, dirty);
13310
- }
13311
- } else {
13933
+ if (!!/*app*/
13934
+ ((_a2 = ctx2[0]) == null ? void 0 : _a2.appliancePlugin)) {
13312
13935
  if (if_block3) {
13313
- group_outros();
13314
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
13315
- if_blocks[previous_block_index] = null;
13316
- });
13317
- check_outros();
13318
- }
13319
- if (~current_block_type_index) {
13320
- if_block3 = if_blocks[current_block_type_index];
13321
- if (!if_block3) {
13322
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
13323
- if_block3.c();
13324
- } else {
13325
- if_block3.p(ctx2, dirty);
13936
+ if_block3.p(ctx2, dirty);
13937
+ if (dirty[0] & /*app*/
13938
+ 1) {
13939
+ transition_in(if_block3, 1);
13326
13940
  }
13941
+ } else {
13942
+ if_block3 = create_if_block14(ctx2);
13943
+ if_block3.c();
13327
13944
  transition_in(if_block3, 1);
13328
13945
  if_block3.m(div1, null);
13329
- } else {
13330
- if_block3 = null;
13331
13946
  }
13947
+ } else if (if_block3) {
13948
+ group_outros();
13949
+ transition_out(if_block3, 1, 1, () => {
13950
+ if_block3 = null;
13951
+ });
13952
+ check_outros();
13332
13953
  }
13333
13954
  const strokewidth0_changes = {};
13334
13955
  if (dirty[0] & /*app*/
@@ -13513,27 +14134,26 @@ function create_fragment69(ctx) {
13513
14134
  detach(t3);
13514
14135
  if (detaching)
13515
14136
  detach(div9);
13516
- if (~current_block_type_index) {
13517
- if_blocks[current_block_type_index].d();
13518
- }
14137
+ if (if_block3)
14138
+ if_block3.d();
13519
14139
  destroy_component(strokewidth0);
13520
14140
  destroy_component(strokecolor0);
13521
- ctx[40](null);
14141
+ ctx[43](null);
13522
14142
  destroy_component(textcolor);
13523
- ctx[41](null);
14143
+ ctx[44](null);
13524
14144
  destroy_component(selectshapes);
13525
14145
  destroy_component(strokewidth1);
13526
14146
  destroy_component(strokecolor1);
13527
- ctx[42](null);
14147
+ ctx[45](null);
13528
14148
  destroy_each(each_blocks, detaching);
13529
- ctx[44](null);
14149
+ ctx[47](null);
13530
14150
  mounted = false;
13531
14151
  run_all(dispose);
13532
14152
  }
13533
14153
  };
13534
14154
  }
13535
14155
  var name5 = "fastboard-toolbar";
13536
- function instance69($$self, $$props, $$invalidate) {
14156
+ function instance71($$self, $$props, $$invalidate) {
13537
14157
  let t;
13538
14158
  let hotkeys;
13539
14159
  let c;
@@ -13543,9 +14163,11 @@ function instance69($$self, $$props, $$invalidate) {
13543
14163
  let max_scroll;
13544
14164
  let hasAppliancePlugin;
13545
14165
  let hasUseLaserPen;
14166
+ let hasUseMarkPen;
14167
+ let pencilType;
13546
14168
  let $top;
13547
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(38, $memberState = $$value)), memberState);
13548
- 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);
14169
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(41, $memberState = $$value)), memberState);
14170
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(42, $scroll_height = $$value)), scroll_height);
13549
14171
  let $apps;
13550
14172
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
13551
14173
  component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
@@ -13570,7 +14192,7 @@ function instance69($$self, $$props, $$invalidate) {
13570
14192
  let apps_panel;
13571
14193
  let btn_props;
13572
14194
  let top = writable(0);
13573
- component_subscribe($$self, top, (value) => $$invalidate(46, $top = value));
14195
+ component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
13574
14196
  function scroll_up() {
13575
14197
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
13576
14198
  }
@@ -13584,7 +14206,16 @@ function instance69($$self, $$props, $$invalidate) {
13584
14206
  app == null ? void 0 : app.setAppliance("selector");
13585
14207
  }
13586
14208
  function pencil() {
13587
- app == null ? void 0 : app.setAppliance("pencil");
14209
+ var _a;
14210
+ if (hasAppliancePlugin) {
14211
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14212
+ currentApplianceName: "pencil",
14213
+ useLaserPen: false,
14214
+ strokeOpacity: 1
14215
+ });
14216
+ } else {
14217
+ app == null ? void 0 : app.setAppliance("pencil");
14218
+ }
13588
14219
  }
13589
14220
  function text2() {
13590
14221
  app == null ? void 0 : app.setAppliance("text");
@@ -13602,7 +14233,20 @@ function instance69($$self, $$props, $$invalidate) {
13602
14233
  app == null ? void 0 : app.cleanCurrentScene();
13603
14234
  }
13604
14235
  function useLaserPen() {
13605
- app == null ? void 0 : app.setAppliance("laserPen");
14236
+ var _a;
14237
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14238
+ currentApplianceName: "laserPen",
14239
+ useLaserPen: true,
14240
+ strokeOpacity: 1
14241
+ });
14242
+ }
14243
+ function useMarkPen() {
14244
+ var _a;
14245
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14246
+ currentApplianceName: "pencil",
14247
+ useLaserPen: false,
14248
+ strokeOpacity: 0.5
14249
+ });
13606
14250
  }
13607
14251
  function div3_binding($$value) {
13608
14252
  binding_callbacks[$$value ? "unshift" : "push"](() => {
@@ -13644,7 +14288,7 @@ function instance69($$self, $$props, $$invalidate) {
13644
14288
  if ("scroll_height" in $$props2)
13645
14289
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
13646
14290
  if ("computed_height" in $$props2)
13647
- $$invalidate(35, computed_height = $$props2.computed_height);
14291
+ $$invalidate(36, computed_height = $$props2.computed_height);
13648
14292
  if ("scrollable" in $$props2)
13649
14293
  $$invalidate(5, scrollable = $$props2.scrollable);
13650
14294
  if ("placement" in $$props2)
@@ -13673,11 +14317,11 @@ function instance69($$self, $$props, $$invalidate) {
13673
14317
  }
13674
14318
  if ($$self.$$.dirty[0] & /*app*/
13675
14319
  1) {
13676
- $$invalidate(37, hotkeys = app == null ? void 0 : app.hotKeys);
14320
+ $$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
13677
14321
  }
13678
14322
  if ($$self.$$.dirty[0] & /*t*/
13679
14323
  1024 | $$self.$$.dirty[1] & /*hotkeys*/
13680
- 64) {
14324
+ 512) {
13681
14325
  $$invalidate(20, c = {
13682
14326
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
13683
14327
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -13693,7 +14337,7 @@ function instance69($$self, $$props, $$invalidate) {
13693
14337
  $$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
13694
14338
  }
13695
14339
  if ($$self.$$.dirty[1] & /*$memberState*/
13696
- 128) {
14340
+ 1024) {
13697
14341
  $$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
13698
14342
  }
13699
14343
  if ($$self.$$.dirty[0] & /*app*/
@@ -13702,16 +14346,24 @@ function instance69($$self, $$props, $$invalidate) {
13702
14346
  }
13703
14347
  if ($$self.$$.dirty[0] & /*scrollable*/
13704
14348
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
13705
- 272) {
14349
+ 2080) {
13706
14350
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
13707
14351
  }
13708
14352
  if ($$self.$$.dirty[0] & /*app*/
13709
14353
  1) {
13710
- $$invalidate(36, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14354
+ $$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14355
+ }
14356
+ if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
14357
+ 1088) {
14358
+ $$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
13711
14359
  }
13712
14360
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
13713
- 160) {
13714
- $$invalidate(16, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
14361
+ 1088) {
14362
+ $$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
14363
+ }
14364
+ if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
14365
+ 384) {
14366
+ $$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
13715
14367
  }
13716
14368
  };
13717
14369
  return [
@@ -13731,7 +14383,7 @@ function instance69($$self, $$props, $$invalidate) {
13731
14383
  shapes_panel,
13732
14384
  apps_panel,
13733
14385
  btn_props,
13734
- hasUseLaserPen,
14386
+ pencilType,
13735
14387
  status,
13736
14388
  appliance,
13737
14389
  memberState,
@@ -13750,8 +14402,11 @@ function instance69($$self, $$props, $$invalidate) {
13750
14402
  laserPointer,
13751
14403
  clear,
13752
14404
  useLaserPen,
14405
+ useMarkPen,
13753
14406
  computed_height,
13754
14407
  hasAppliancePlugin,
14408
+ hasUseMarkPen,
14409
+ hasUseLaserPen,
13755
14410
  hotkeys,
13756
14411
  $memberState,
13757
14412
  $scroll_height,
@@ -13768,8 +14423,8 @@ var Contents = class extends SvelteComponent {
13768
14423
  init(
13769
14424
  this,
13770
14425
  options,
13771
- instance69,
13772
- create_fragment69,
14426
+ instance71,
14427
+ create_fragment71,
13773
14428
  safe_not_equal,
13774
14429
  {
13775
14430
  app: 0,
@@ -13777,7 +14432,7 @@ var Contents = class extends SvelteComponent {
13777
14432
  language: 2,
13778
14433
  disabled: 3,
13779
14434
  scroll_height: 4,
13780
- computed_height: 35,
14435
+ computed_height: 36,
13781
14436
  scrollable: 5,
13782
14437
  placement: 6,
13783
14438
  items: 7,
@@ -13785,7 +14440,7 @@ var Contents = class extends SvelteComponent {
13785
14440
  colors: 9
13786
14441
  },
13787
14442
  null,
13788
- [-1, -1]
14443
+ [-1, -1, -1]
13789
14444
  );
13790
14445
  }
13791
14446
  };
@@ -13848,7 +14503,7 @@ function create_if_block15(ctx) {
13848
14503
  }
13849
14504
  };
13850
14505
  }
13851
- function create_fragment70(ctx) {
14506
+ function create_fragment72(ctx) {
13852
14507
  let div1;
13853
14508
  let div0;
13854
14509
  let contents;
@@ -14118,7 +14773,7 @@ function create_fragment70(ctx) {
14118
14773
  };
14119
14774
  }
14120
14775
  var name6 = "fastboard-toolbar";
14121
- function instance70($$self, $$props, $$invalidate) {
14776
+ function instance72($$self, $$props, $$invalidate) {
14122
14777
  let writable2;
14123
14778
  let phase;
14124
14779
  let disabled;
@@ -14237,7 +14892,7 @@ function instance70($$self, $$props, $$invalidate) {
14237
14892
  var Toolbar = class extends SvelteComponent {
14238
14893
  constructor(options) {
14239
14894
  super();
14240
- init(this, options, instance70, create_fragment70, safe_not_equal, {
14895
+ init(this, options, instance72, create_fragment72, safe_not_equal, {
14241
14896
  app: 1,
14242
14897
  theme: 2,
14243
14898
  language: 3,
@@ -14311,7 +14966,7 @@ function create_else_block_12(ctx) {
14311
14966
  }
14312
14967
  };
14313
14968
  }
14314
- function create_if_block_22(ctx) {
14969
+ function create_if_block_23(ctx) {
14315
14970
  var _a;
14316
14971
  let icon;
14317
14972
  let current;
@@ -14368,7 +15023,7 @@ function create_if_block_22(ctx) {
14368
15023
  }
14369
15024
  };
14370
15025
  }
14371
- function create_if_block_15(ctx) {
15026
+ function create_if_block_110(ctx) {
14372
15027
  var _a;
14373
15028
  let icon;
14374
15029
  let current;
@@ -14544,7 +15199,7 @@ function create_default_slot_25(ctx) {
14544
15199
  let if_block;
14545
15200
  let if_block_anchor;
14546
15201
  let current;
14547
- const if_block_creators = [create_if_block_15, create_if_block_22, create_else_block_12];
15202
+ const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
14548
15203
  const if_blocks = [];
14549
15204
  function select_block_type(ctx2, dirty) {
14550
15205
  if (
@@ -14921,7 +15576,7 @@ function create_each_block5(key_1, ctx) {
14921
15576
  }
14922
15577
  };
14923
15578
  }
14924
- function create_fragment71(ctx) {
15579
+ function create_fragment73(ctx) {
14925
15580
  let div0;
14926
15581
  let button0;
14927
15582
  let t0;
@@ -15198,7 +15853,7 @@ function format(ms) {
15198
15853
  return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
15199
15854
  }
15200
15855
  var name7 = "fastboard-player-control";
15201
- function instance71($$self, $$props, $$invalidate) {
15856
+ function instance73($$self, $$props, $$invalidate) {
15202
15857
  let t;
15203
15858
  let canPlay;
15204
15859
  let disabled;
@@ -15343,7 +15998,7 @@ function instance71($$self, $$props, $$invalidate) {
15343
15998
  var PlayerControl = class extends SvelteComponent {
15344
15999
  constructor(options) {
15345
16000
  super();
15346
- init(this, options, instance71, create_fragment71, safe_not_equal, {
16001
+ init(this, options, instance73, create_fragment73, safe_not_equal, {
15347
16002
  player: 19,
15348
16003
  theme: 0,
15349
16004
  language: 20,
@@ -15412,7 +16067,7 @@ function create_if_block17(ctx) {
15412
16067
  }
15413
16068
  };
15414
16069
  }
15415
- function create_fragment72(ctx) {
16070
+ function create_fragment74(ctx) {
15416
16071
  var _a;
15417
16072
  let div2;
15418
16073
  let div0;
@@ -15512,7 +16167,7 @@ function create_fragment72(ctx) {
15512
16167
  };
15513
16168
  }
15514
16169
  var name8 = "fastboard";
15515
- function instance72($$self, $$props, $$invalidate) {
16170
+ function instance74($$self, $$props, $$invalidate) {
15516
16171
  let { player = null } = $$props;
15517
16172
  let { theme = "light" } = $$props;
15518
16173
  let { language = "en" } = $$props;
@@ -15587,7 +16242,7 @@ function instance72($$self, $$props, $$invalidate) {
15587
16242
  var ReplayFastboard = class extends SvelteComponent {
15588
16243
  constructor(options) {
15589
16244
  super();
15590
- init(this, options, instance72, create_fragment72, not_equal, {
16245
+ init(this, options, instance74, create_fragment74, not_equal, {
15591
16246
  player: 0,
15592
16247
  theme: 1,
15593
16248
  language: 2,
@@ -15665,7 +16320,7 @@ function create_if_block_32(ctx) {
15665
16320
  }
15666
16321
  };
15667
16322
  }
15668
- function create_if_block_23(ctx) {
16323
+ function create_if_block_24(ctx) {
15669
16324
  let redoundo;
15670
16325
  let current;
15671
16326
  redoundo = new RedoUndo_default({
@@ -15723,7 +16378,7 @@ function create_if_block_23(ctx) {
15723
16378
  }
15724
16379
  };
15725
16380
  }
15726
- function create_if_block_16(ctx) {
16381
+ function create_if_block_111(ctx) {
15727
16382
  let zoomcontrol;
15728
16383
  let current;
15729
16384
  zoomcontrol = new ZoomControl_default({
@@ -15839,7 +16494,7 @@ function create_if_block18(ctx) {
15839
16494
  }
15840
16495
  };
15841
16496
  }
15842
- function create_fragment73(ctx) {
16497
+ function create_fragment75(ctx) {
15843
16498
  var _a, _b, _c, _d;
15844
16499
  let div4;
15845
16500
  let div0;
@@ -15860,11 +16515,11 @@ function create_fragment73(ctx) {
15860
16515
  );
15861
16516
  let if_block1 = (
15862
16517
  /*config*/
15863
- ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_23(ctx)
16518
+ ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_24(ctx)
15864
16519
  );
15865
16520
  let if_block2 = (
15866
16521
  /*config*/
15867
- ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_16(ctx)
16522
+ ((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_111(ctx)
15868
16523
  );
15869
16524
  let if_block3 = (
15870
16525
  /*config*/
@@ -15994,7 +16649,7 @@ function create_fragment73(ctx) {
15994
16649
  transition_in(if_block1, 1);
15995
16650
  }
15996
16651
  } else {
15997
- if_block1 = create_if_block_23(ctx2);
16652
+ if_block1 = create_if_block_24(ctx2);
15998
16653
  if_block1.c();
15999
16654
  transition_in(if_block1, 1);
16000
16655
  if_block1.m(div2, t2);
@@ -16017,7 +16672,7 @@ function create_fragment73(ctx) {
16017
16672
  transition_in(if_block2, 1);
16018
16673
  }
16019
16674
  } else {
16020
- if_block2 = create_if_block_16(ctx2);
16675
+ if_block2 = create_if_block_111(ctx2);
16021
16676
  if_block2.c();
16022
16677
  transition_in(if_block2, 1);
16023
16678
  if_block2.m(div2, null);
@@ -16110,7 +16765,7 @@ function create_fragment73(ctx) {
16110
16765
  };
16111
16766
  }
16112
16767
  var name9 = "fastboard";
16113
- function instance73($$self, $$props, $$invalidate) {
16768
+ function instance75($$self, $$props, $$invalidate) {
16114
16769
  let writable2;
16115
16770
  let boxState;
16116
16771
  let focusedApp;
@@ -16235,7 +16890,7 @@ function instance73($$self, $$props, $$invalidate) {
16235
16890
  var Fastboard = class extends SvelteComponent {
16236
16891
  constructor(options) {
16237
16892
  super();
16238
- init(this, options, instance73, create_fragment73, not_equal, {
16893
+ init(this, options, instance75, create_fragment75, not_equal, {
16239
16894
  app: 0,
16240
16895
  theme: 1,
16241
16896
  language: 2,