@micro-lc/preview 0.5.2 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,6 +87,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
87
87
  } else if (typeof skip === "string") {
88
88
  const r3 = new RegExp(skip);
89
89
  skip = (s3) => r3.test(s3);
90
+ } else if (skip instanceof RegExp) {
91
+ skip = (s3) => skip.test(s3);
90
92
  }
91
93
  const eoop = (err) => setTimeout(() => {
92
94
  throw err;
@@ -118,18 +120,15 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
118
120
  }
119
121
  }
120
122
  const backslashRegEx = /\\/g;
121
- function isURL(url) {
122
- if (url.indexOf(":") === -1)
123
- return false;
123
+ function asURL(url) {
124
124
  try {
125
- new URL(url);
126
- return true;
125
+ if (url.indexOf(":") !== -1)
126
+ return new URL(url).href;
127
127
  } catch (_2) {
128
- return false;
129
128
  }
130
129
  }
131
130
  function resolveUrl(relUrl, parentUrl) {
132
- return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (isURL(relUrl) ? relUrl : resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
131
+ return resolveIfNotPlainOrUrl(relUrl, parentUrl) || (asURL(relUrl) || resolveIfNotPlainOrUrl("./" + relUrl, parentUrl));
133
132
  }
134
133
  function resolveIfNotPlainOrUrl(relUrl, parentUrl) {
135
134
  const hIdx = parentUrl.indexOf("#"), qIdx = parentUrl.indexOf("?");
@@ -141,6 +140,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
141
140
  return parentUrl.slice(0, parentUrl.indexOf(":") + 1) + relUrl;
142
141
  } else if (relUrl[0] === "." && (relUrl[1] === "/" || relUrl[1] === "." && (relUrl[2] === "/" || relUrl.length === 2 && (relUrl += "/")) || relUrl.length === 1 && (relUrl += "/")) || relUrl[0] === "/") {
143
142
  const parentProtocol = parentUrl.slice(0, parentUrl.indexOf(":") + 1);
143
+ if (parentProtocol === "blob:") {
144
+ throw new TypeError(`Failed to resolve module specifier "${relUrl}". Invalid relative url or base scheme isn't hierarchical.`);
145
+ }
144
146
  let pathname;
145
147
  if (parentUrl[parentProtocol.length + 1] === "/") {
146
148
  if (parentProtocol !== "file:") {
@@ -358,30 +360,31 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
358
360
  a3[i3++] = (255 & r4) << 8 | r4 >>> 8;
359
361
  }
360
362
  }, t2 = "xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";
361
- let c$1, f2, n2;
363
+ let f2, c$1, n2;
362
364
  function parse2(l3, k3 = "@") {
363
- c$1 = l3, f2 = k3;
364
- const u3 = 2 * c$1.length + (2 << 18);
365
+ f2 = l3, c$1 = k3;
366
+ const u3 = 2 * f2.length + (2 << 18);
365
367
  if (u3 > i2 || !e2) {
366
368
  for (; u3 > i2; )
367
369
  i2 *= 2;
368
370
  a2 = new ArrayBuffer(i2), s2(t2, new Uint16Array(a2, 16, 105)), e2 = function(e3, a3, r3) {
369
371
  ;
370
- var i3 = new e3.Int8Array(r3), s3 = new e3.Int16Array(r3), t3 = new e3.Int32Array(r3), c3 = new e3.Uint8Array(r3), f3 = new e3.Uint16Array(r3), n3 = 1024;
372
+ var i3 = new e3.Int8Array(r3), s3 = new e3.Int16Array(r3), t3 = new e3.Int32Array(r3), f3 = new e3.Uint8Array(r3), c3 = new e3.Uint16Array(r3), n3 = 1024;
371
373
  function b2() {
372
- var e4 = 0, a4 = 0, r4 = 0, c4 = 0, b3 = 0, u5 = 0, w4 = 0;
373
- w4 = n3;
374
+ var e4 = 0, a4 = 0, r4 = 0, f4 = 0, b3 = 0, u5 = 0;
375
+ u5 = n3;
374
376
  n3 = n3 + 10240 | 0;
375
- i3[795] = 1;
377
+ i3[796] = 1;
378
+ i3[795] = 0;
376
379
  s3[395] = 0;
377
380
  s3[396] = 0;
378
381
  t3[67] = t3[2];
379
- i3[796] = 0;
382
+ i3[797] = 0;
380
383
  t3[66] = 0;
381
384
  i3[794] = 0;
382
- t3[68] = w4 + 2048;
383
- t3[69] = w4;
384
- i3[797] = 0;
385
+ t3[68] = u5 + 2048;
386
+ t3[69] = u5;
387
+ i3[798] = 0;
385
388
  e4 = (t3[3] | 0) + -2 | 0;
386
389
  t3[70] = e4;
387
390
  a4 = e4 + (t3[64] << 1) | 0;
@@ -405,7 +408,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
405
408
  case 32:
406
409
  break;
407
410
  case 101: {
408
- if ((((s3[396] | 0) == 0 ? H2(r4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) ? (l4(), (i3[795] | 0) == 0) : 0) {
411
+ if ((((s3[396] | 0) == 0 ? H2(r4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) ? (l4(), (i3[796] | 0) == 0) : 0) {
409
412
  b3 = 9;
410
413
  break e;
411
414
  } else
@@ -457,7 +460,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
457
460
  t3[67] = e4;
458
461
  b3 = 19;
459
462
  } else if ((b3 | 0) == 16) {
460
- i3[795] = 0;
463
+ i3[796] = 0;
461
464
  t3[70] = e4;
462
465
  b3 = 19;
463
466
  } else if ((b3 | 0) == 18)
@@ -472,7 +475,6 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
472
475
  while (1) {
473
476
  a4 = e4 + 2 | 0;
474
477
  t3[70] = a4;
475
- c4 = a4;
476
478
  if (e4 >>> 0 >= (t3[71] | 0) >>> 0) {
477
479
  b3 = 82;
478
480
  break;
@@ -505,20 +507,20 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
505
507
  }
506
508
  case 99: {
507
509
  if ((H2(a4) | 0 ? (m2(e4 + 4 | 0, 36, 8) | 0) == 0 : 0) ? V2(s3[e4 + 12 >> 1] | 0) | 0 : 0) {
508
- i3[797] = 1;
510
+ i3[798] = 1;
509
511
  b3 = 81;
510
512
  } else
511
513
  b3 = 81;
512
514
  break;
513
515
  }
514
516
  case 40: {
515
- c4 = t3[68] | 0;
517
+ f4 = t3[68] | 0;
516
518
  a4 = s3[396] | 0;
517
519
  b3 = a4 & 65535;
518
- t3[c4 + (b3 << 3) >> 2] = 1;
520
+ t3[f4 + (b3 << 3) >> 2] = 1;
519
521
  r4 = t3[67] | 0;
520
522
  s3[396] = a4 + 1 << 16 >> 16;
521
- t3[c4 + (b3 << 3) + 4 >> 2] = r4;
523
+ t3[f4 + (b3 << 3) + 4 >> 2] = r4;
522
524
  b3 = 81;
523
525
  break;
524
526
  }
@@ -528,15 +530,17 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
528
530
  b3 = 36;
529
531
  break e;
530
532
  }
531
- a4 = a4 + -1 << 16 >> 16;
532
- s3[396] = a4;
533
- r4 = s3[395] | 0;
534
- if (r4 << 16 >> 16 != 0 ? (u5 = t3[(t3[69] | 0) + ((r4 & 65535) + -1 << 2) >> 2] | 0, (t3[u5 + 20 >> 2] | 0) == (t3[(t3[68] | 0) + ((a4 & 65535) << 3) + 4 >> 2] | 0)) : 0) {
535
- a4 = u5 + 4 | 0;
536
- if (!(t3[a4 >> 2] | 0))
537
- t3[a4 >> 2] = c4;
538
- t3[u5 + 12 >> 2] = e4 + 4;
539
- s3[395] = r4 + -1 << 16 >> 16;
533
+ b3 = a4 + -1 << 16 >> 16;
534
+ s3[396] = b3;
535
+ f4 = s3[395] | 0;
536
+ a4 = f4 & 65535;
537
+ if (f4 << 16 >> 16 != 0 ? (t3[(t3[68] | 0) + ((b3 & 65535) << 3) >> 2] | 0) == 5 : 0) {
538
+ a4 = t3[(t3[69] | 0) + (a4 + -1 << 2) >> 2] | 0;
539
+ r4 = a4 + 4 | 0;
540
+ if (!(t3[r4 >> 2] | 0))
541
+ t3[r4 >> 2] = (t3[67] | 0) + 2;
542
+ t3[a4 + 12 >> 2] = e4 + 4;
543
+ s3[395] = f4 + -1 << 16 >> 16;
540
544
  b3 = 81;
541
545
  } else
542
546
  b3 = 81;
@@ -544,10 +548,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
544
548
  }
545
549
  case 123: {
546
550
  b3 = t3[67] | 0;
547
- c4 = t3[61] | 0;
551
+ f4 = t3[61] | 0;
548
552
  e4 = b3;
549
553
  do {
550
- if ((s3[b3 >> 1] | 0) == 41 & (c4 | 0) != 0 ? (t3[c4 + 4 >> 2] | 0) == (b3 | 0) : 0) {
554
+ if ((s3[b3 >> 1] | 0) == 41 & (f4 | 0) != 0 ? (t3[f4 + 4 >> 2] | 0) == (b3 | 0) : 0) {
551
555
  a4 = t3[62] | 0;
552
556
  t3[61] = a4;
553
557
  if (!a4) {
@@ -559,13 +563,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
559
563
  }
560
564
  }
561
565
  } while (0);
562
- c4 = t3[68] | 0;
566
+ f4 = t3[68] | 0;
563
567
  r4 = s3[396] | 0;
564
568
  b3 = r4 & 65535;
565
- t3[c4 + (b3 << 3) >> 2] = (i3[797] | 0) == 0 ? 2 : 6;
569
+ t3[f4 + (b3 << 3) >> 2] = (i3[798] | 0) == 0 ? 2 : 6;
566
570
  s3[396] = r4 + 1 << 16 >> 16;
567
- t3[c4 + (b3 << 3) + 4 >> 2] = e4;
568
- i3[797] = 0;
571
+ t3[f4 + (b3 << 3) + 4 >> 2] = e4;
572
+ i3[798] = 0;
569
573
  b3 = 81;
570
574
  break;
571
575
  }
@@ -575,10 +579,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
575
579
  b3 = 49;
576
580
  break e;
577
581
  }
578
- c4 = t3[68] | 0;
582
+ f4 = t3[68] | 0;
579
583
  b3 = e4 + -1 << 16 >> 16;
580
584
  s3[396] = b3;
581
- if ((t3[c4 + ((b3 & 65535) << 3) >> 2] | 0) == 4) {
585
+ if ((t3[f4 + ((b3 & 65535) << 3) >> 2] | 0) == 4) {
582
586
  h3();
583
587
  b3 = 81;
584
588
  } else
@@ -607,13 +611,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
607
611
  }
608
612
  default: {
609
613
  e4 = t3[67] | 0;
610
- c4 = s3[e4 >> 1] | 0;
614
+ f4 = s3[e4 >> 1] | 0;
611
615
  r:
612
616
  do {
613
- if (!(U(c4) | 0)) {
614
- switch (c4 << 16 >> 16) {
617
+ if (!(U(f4) | 0)) {
618
+ switch (f4 << 16 >> 16) {
615
619
  case 41:
616
- if (D2(t3[(t3[68] | 0) + (f3[396] << 3) + 4 >> 2] | 0) | 0) {
620
+ if (D2(t3[(t3[68] | 0) + (c3[396] << 3) + 4 >> 2] | 0) | 0) {
617
621
  b3 = 69;
618
622
  break r;
619
623
  } else {
@@ -628,13 +632,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
628
632
  }
629
633
  }
630
634
  a4 = t3[68] | 0;
631
- r4 = f3[396] | 0;
635
+ r4 = c3[396] | 0;
632
636
  if (!(p3(t3[a4 + (r4 << 3) + 4 >> 2] | 0) | 0) ? (t3[a4 + (r4 << 3) >> 2] | 0) != 6 : 0)
633
637
  b3 = 66;
634
638
  else
635
639
  b3 = 69;
636
640
  } else
637
- switch (c4 << 16 >> 16) {
641
+ switch (f4 << 16 >> 16) {
638
642
  case 46:
639
643
  if (((s3[e4 + -2 >> 1] | 0) + -48 & 65535) < 10) {
640
644
  b3 = 66;
@@ -670,13 +674,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
670
674
  if ((b3 | 0) == 66) {
671
675
  b3 = 0;
672
676
  if (!(o3(e4) | 0)) {
673
- switch (c4 << 16 >> 16) {
677
+ switch (f4 << 16 >> 16) {
674
678
  case 0: {
675
679
  b3 = 69;
676
680
  break r;
677
681
  }
678
682
  case 47: {
679
- if (i3[796] | 0) {
683
+ if (i3[797] | 0) {
680
684
  b3 = 69;
681
685
  break r;
682
686
  }
@@ -686,7 +690,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
686
690
  }
687
691
  }
688
692
  r4 = t3[3] | 0;
689
- a4 = c4;
693
+ a4 = f4;
690
694
  do {
691
695
  if (e4 >>> 0 <= r4 >>> 0)
692
696
  break;
@@ -703,7 +707,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
703
707
  } while (F(s3[e4 >> 1] | 0) | 0);
704
708
  if (j(e4) | 0) {
705
709
  g2();
706
- i3[796] = 0;
710
+ i3[797] = 0;
707
711
  b3 = 81;
708
712
  break a;
709
713
  } else
@@ -718,18 +722,18 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
718
722
  g2();
719
723
  e4 = 0;
720
724
  }
721
- i3[796] = e4;
725
+ i3[797] = e4;
722
726
  b3 = 81;
723
727
  break a;
724
728
  }
725
729
  }
726
730
  case 96: {
727
- c4 = t3[68] | 0;
731
+ f4 = t3[68] | 0;
728
732
  r4 = s3[396] | 0;
729
733
  b3 = r4 & 65535;
730
- t3[c4 + (b3 << 3) + 4 >> 2] = t3[67];
734
+ t3[f4 + (b3 << 3) + 4 >> 2] = t3[67];
731
735
  s3[396] = r4 + 1 << 16 >> 16;
732
- t3[c4 + (b3 << 3) >> 2] = 3;
736
+ t3[f4 + (b3 << 3) >> 2] = 3;
733
737
  h3();
734
738
  b3 = 81;
735
739
  break;
@@ -758,11 +762,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
758
762
  }
759
763
  }
760
764
  } while (0);
761
- n3 = w4;
765
+ n3 = u5;
762
766
  return e4 | 0;
763
767
  }
764
768
  function l4() {
765
- var e4 = 0, a4 = 0, r4 = 0, c4 = 0, f4 = 0, n4 = 0, b3 = 0, l5 = 0, k5 = 0, o4 = 0, h4 = 0, A3 = 0, C3 = 0, g3 = 0;
769
+ var e4 = 0, a4 = 0, r4 = 0, f4 = 0, c4 = 0, n4 = 0, b3 = 0, l5 = 0, k5 = 0, o4 = 0, h4 = 0, v3 = 0, C3 = 0, g3 = 0;
766
770
  l5 = t3[70] | 0;
767
771
  k5 = t3[63] | 0;
768
772
  g3 = l5 + 12 | 0;
@@ -780,7 +784,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
780
784
  case 123: {
781
785
  t3[70] = e4 + 2;
782
786
  e4 = w3(1) | 0;
783
- r4 = t3[70] | 0;
787
+ a4 = t3[70] | 0;
784
788
  while (1) {
785
789
  if (W(e4) | 0) {
786
790
  d3(e4);
@@ -791,22 +795,22 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
791
795
  e4 = t3[70] | 0;
792
796
  }
793
797
  w3(1) | 0;
794
- e4 = v2(r4, e4) | 0;
798
+ e4 = A2(a4, e4) | 0;
795
799
  if (e4 << 16 >> 16 == 44) {
796
800
  t3[70] = (t3[70] | 0) + 2;
797
801
  e4 = w3(1) | 0;
798
802
  }
799
- a4 = r4;
800
- r4 = t3[70] | 0;
801
803
  if (e4 << 16 >> 16 == 125) {
802
804
  C3 = 15;
803
805
  break;
804
806
  }
805
- if ((r4 | 0) == (a4 | 0)) {
807
+ g3 = a4;
808
+ a4 = t3[70] | 0;
809
+ if ((a4 | 0) == (g3 | 0)) {
806
810
  C3 = 12;
807
811
  break;
808
812
  }
809
- if (r4 >>> 0 > (t3[71] | 0) >>> 0) {
813
+ if (a4 >>> 0 > (t3[71] | 0) >>> 0) {
810
814
  C3 = 14;
811
815
  break;
812
816
  }
@@ -818,7 +822,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
818
822
  T2();
819
823
  break e;
820
824
  } else if ((C3 | 0) == 15) {
821
- t3[70] = r4 + 2;
825
+ i3[795] = 1;
826
+ t3[70] = (t3[70] | 0) + 2;
822
827
  break a;
823
828
  }
824
829
  break;
@@ -827,11 +832,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
827
832
  t3[70] = e4 + 2;
828
833
  w3(1) | 0;
829
834
  g3 = t3[70] | 0;
830
- v2(g3, g3) | 0;
835
+ A2(g3, g3) | 0;
831
836
  break;
832
837
  }
833
838
  default: {
834
- i3[795] = 0;
839
+ i3[796] = 0;
835
840
  switch (r4 << 16 >> 16) {
836
841
  case 100: {
837
842
  l5 = e4 + 14 | 0;
@@ -839,8 +844,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
839
844
  switch ((w3(1) | 0) << 16 >> 16) {
840
845
  case 97: {
841
846
  a4 = t3[70] | 0;
842
- if ((m2(a4 + 2 | 0, 56, 8) | 0) == 0 ? (f4 = a4 + 10 | 0, F(s3[f4 >> 1] | 0) | 0) : 0) {
843
- t3[70] = f4;
847
+ if ((m2(a4 + 2 | 0, 56, 8) | 0) == 0 ? (c4 = a4 + 10 | 0, F(s3[c4 >> 1] | 0) | 0) : 0) {
848
+ t3[70] = c4;
844
849
  w3(0) | 0;
845
850
  C3 = 22;
846
851
  }
@@ -852,8 +857,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
852
857
  }
853
858
  case 99: {
854
859
  a4 = t3[70] | 0;
855
- if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (c4 = a4 + 10 | 0, g3 = s3[c4 >> 1] | 0, V2(g3) | 0 | g3 << 16 >> 16 == 123) : 0) ? (t3[70] = c4, n4 = w3(1) | 0, n4 << 16 >> 16 != 123) : 0) {
856
- A3 = n4;
860
+ if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (f4 = a4 + 10 | 0, g3 = s3[f4 >> 1] | 0, V2(g3) | 0 | g3 << 16 >> 16 == 123) : 0) ? (t3[70] = f4, n4 = w3(1) | 0, n4 << 16 >> 16 != 123) : 0) {
861
+ v3 = n4;
857
862
  C3 = 31;
858
863
  }
859
864
  break;
@@ -881,17 +886,17 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
881
886
  a4 = w3(1) | 0;
882
887
  }
883
888
  if (a4 << 16 >> 16 != 40) {
884
- A3 = a4;
889
+ v3 = a4;
885
890
  C3 = 31;
886
891
  }
887
892
  }
888
893
  } while (0);
889
- if ((C3 | 0) == 31 ? (o4 = t3[70] | 0, q(A3) | 0, h4 = t3[70] | 0, h4 >>> 0 > o4 >>> 0) : 0) {
890
- $2(e4, l5, o4, h4);
894
+ if ((C3 | 0) == 31 ? (o4 = t3[70] | 0, q(v3) | 0, h4 = t3[70] | 0, h4 >>> 0 > o4 >>> 0) : 0) {
895
+ O(e4, l5, o4, h4);
891
896
  t3[70] = (t3[70] | 0) + -2;
892
897
  break e;
893
898
  }
894
- $2(e4, l5, 0, 0);
899
+ O(e4, l5, 0, 0);
895
900
  t3[70] = e4 + 12;
896
901
  break e;
897
902
  }
@@ -913,7 +918,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
913
918
  C3 = t3[70] | 0;
914
919
  q(g3) | 0;
915
920
  g3 = t3[70] | 0;
916
- $2(C3, g3, C3, g3);
921
+ O(C3, g3, C3, g3);
917
922
  t3[70] = (t3[70] | 0) + -2;
918
923
  break e;
919
924
  }
@@ -937,34 +942,61 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
937
942
  C3 = t3[70] | 0;
938
943
  q(e4) | 0;
939
944
  g3 = t3[70] | 0;
940
- $2(C3, g3, C3, g3);
945
+ O(C3, g3, C3, g3);
941
946
  t3[70] = (t3[70] | 0) + -2;
942
947
  break e;
943
948
  }
944
- e4 = e4 + 4 | 0;
945
- t3[70] = e4;
946
- i3[795] = 0;
949
+ t3[70] = e4 + 6;
950
+ i3[796] = 0;
951
+ r4 = w3(1) | 0;
952
+ e4 = t3[70] | 0;
953
+ r4 = (q(r4) | 0 | 32) << 16 >> 16 == 123;
954
+ f4 = t3[70] | 0;
955
+ if (r4) {
956
+ t3[70] = f4 + 2;
957
+ g3 = w3(1) | 0;
958
+ e4 = t3[70] | 0;
959
+ q(g3) | 0;
960
+ }
947
961
  r:
948
962
  while (1) {
963
+ a4 = t3[70] | 0;
964
+ if ((a4 | 0) == (e4 | 0))
965
+ break;
966
+ O(e4, a4, e4, a4);
967
+ a4 = w3(1) | 0;
968
+ if (r4)
969
+ switch (a4 << 16 >> 16) {
970
+ case 93:
971
+ case 125:
972
+ break e;
973
+ default: {
974
+ }
975
+ }
976
+ e4 = t3[70] | 0;
977
+ if (a4 << 16 >> 16 != 44) {
978
+ C3 = 51;
979
+ break;
980
+ }
949
981
  t3[70] = e4 + 2;
950
- g3 = w3(1) | 0;
982
+ a4 = w3(1) | 0;
951
983
  e4 = t3[70] | 0;
952
- switch ((q(g3) | 0) << 16 >> 16) {
984
+ switch (a4 << 16 >> 16) {
953
985
  case 91:
954
- case 123:
986
+ case 123: {
987
+ C3 = 51;
955
988
  break r;
989
+ }
956
990
  default: {
957
991
  }
958
992
  }
959
- a4 = t3[70] | 0;
960
- if ((a4 | 0) == (e4 | 0))
961
- break e;
962
- $2(e4, a4, e4, a4);
963
- if ((w3(1) | 0) << 16 >> 16 != 44)
964
- break;
965
- e4 = t3[70] | 0;
993
+ q(a4) | 0;
966
994
  }
967
- t3[70] = (t3[70] | 0) + -2;
995
+ if ((C3 | 0) == 51)
996
+ t3[70] = e4 + -2;
997
+ if (!r4)
998
+ break e;
999
+ t3[70] = f4 + -2;
968
1000
  break e;
969
1001
  }
970
1002
  }
@@ -990,9 +1022,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
990
1022
  return;
991
1023
  }
992
1024
  function k4() {
993
- var e4 = 0, a4 = 0, r4 = 0, c4 = 0, f4 = 0, n4 = 0;
994
- f4 = t3[70] | 0;
995
- e4 = f4 + 12 | 0;
1025
+ var e4 = 0, a4 = 0, r4 = 0, f4 = 0, c4 = 0, n4 = 0;
1026
+ c4 = t3[70] | 0;
1027
+ e4 = c4 + 12 | 0;
996
1028
  t3[70] = e4;
997
1029
  e:
998
1030
  do {
@@ -1008,12 +1040,12 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1008
1040
  if ((s3[t3[67] >> 1] | 0) != 46) {
1009
1041
  t3[70] = e4 + 2;
1010
1042
  n4 = w3(1) | 0;
1011
- A2(f4, t3[70] | 0, 0, e4);
1043
+ v2(c4, t3[70] | 0, 0, e4);
1012
1044
  a4 = t3[61] | 0;
1013
1045
  r4 = t3[69] | 0;
1014
- f4 = s3[395] | 0;
1015
- s3[395] = f4 + 1 << 16 >> 16;
1016
- t3[r4 + ((f4 & 65535) << 2) >> 2] = a4;
1046
+ c4 = s3[395] | 0;
1047
+ s3[395] = c4 + 1 << 16 >> 16;
1048
+ t3[r4 + ((c4 & 65535) << 2) >> 2] = a4;
1017
1049
  switch (n4 << 16 >> 16) {
1018
1050
  case 39: {
1019
1051
  d3(39);
@@ -1034,11 +1066,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1034
1066
  case 44: {
1035
1067
  t3[70] = (t3[70] | 0) + 2;
1036
1068
  w3(1) | 0;
1037
- f4 = t3[61] | 0;
1038
- t3[f4 + 4 >> 2] = e4;
1069
+ c4 = t3[61] | 0;
1070
+ t3[c4 + 4 >> 2] = e4;
1039
1071
  n4 = t3[70] | 0;
1040
- t3[f4 + 16 >> 2] = n4;
1041
- i3[f4 + 24 >> 0] = 1;
1072
+ t3[c4 + 16 >> 2] = n4;
1073
+ i3[c4 + 24 >> 0] = 1;
1042
1074
  t3[70] = n4 + -2;
1043
1075
  break e;
1044
1076
  }
@@ -1065,14 +1097,14 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1065
1097
  e4 = t3[67] | 0;
1066
1098
  if (!(G(e4) | 0) ? (s3[e4 >> 1] | 0) == 46 : 0)
1067
1099
  break e;
1068
- A2(f4, f4, a4 + 8 | 0, 2);
1100
+ v2(c4, c4, a4 + 8 | 0, 2);
1069
1101
  }
1070
1102
  break;
1071
1103
  }
1072
1104
  case 42:
1073
1105
  case 39:
1074
1106
  case 34: {
1075
- c4 = 18;
1107
+ f4 = 18;
1076
1108
  break;
1077
1109
  }
1078
1110
  case 123: {
@@ -1087,7 +1119,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1087
1119
  e4 = w3(1) | 0;
1088
1120
  if (!(W(e4) | 0)) {
1089
1121
  if (e4 << 16 >> 16 == 125) {
1090
- c4 = 33;
1122
+ f4 = 33;
1091
1123
  break;
1092
1124
  }
1093
1125
  } else
@@ -1095,7 +1127,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1095
1127
  e4 = (t3[70] | 0) + 2 | 0;
1096
1128
  t3[70] = e4;
1097
1129
  }
1098
- if ((c4 | 0) == 33)
1130
+ if ((f4 | 0) == 33)
1099
1131
  t3[70] = (t3[70] | 0) + 2;
1100
1132
  n4 = (w3(1) | 0) << 16 >> 16 == 102;
1101
1133
  e4 = t3[70] | 0;
@@ -1106,7 +1138,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1106
1138
  t3[70] = e4 + 8;
1107
1139
  e4 = w3(1) | 0;
1108
1140
  if (W(e4) | 0) {
1109
- u4(f4, e4);
1141
+ u4(c4, e4);
1110
1142
  break e;
1111
1143
  } else {
1112
1144
  T2();
@@ -1115,13 +1147,13 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1115
1147
  }
1116
1148
  default:
1117
1149
  if ((t3[70] | 0) == (e4 | 0))
1118
- t3[70] = f4 + 10;
1150
+ t3[70] = c4 + 10;
1119
1151
  else
1120
- c4 = 18;
1152
+ f4 = 18;
1121
1153
  }
1122
1154
  } while (0);
1123
1155
  do {
1124
- if ((c4 | 0) == 18) {
1156
+ if ((f4 | 0) == 18) {
1125
1157
  if (s3[396] | 0) {
1126
1158
  t3[70] = (t3[70] | 0) + -2;
1127
1159
  break;
@@ -1130,22 +1162,22 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1130
1162
  a4 = t3[70] | 0;
1131
1163
  while (1) {
1132
1164
  if (a4 >>> 0 >= e4 >>> 0) {
1133
- c4 = 25;
1165
+ f4 = 25;
1134
1166
  break;
1135
1167
  }
1136
1168
  r4 = s3[a4 >> 1] | 0;
1137
1169
  if (W(r4) | 0) {
1138
- c4 = 23;
1170
+ f4 = 23;
1139
1171
  break;
1140
1172
  }
1141
1173
  n4 = a4 + 2 | 0;
1142
1174
  t3[70] = n4;
1143
1175
  a4 = n4;
1144
1176
  }
1145
- if ((c4 | 0) == 23) {
1146
- u4(f4, r4);
1177
+ if ((f4 | 0) == 23) {
1178
+ u4(c4, r4);
1147
1179
  break;
1148
- } else if ((c4 | 0) == 25) {
1180
+ } else if ((f4 | 0) == 25) {
1149
1181
  T2();
1150
1182
  break;
1151
1183
  }
@@ -1174,7 +1206,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1174
1206
  }
1175
1207
  do {
1176
1208
  if ((i4 | 0) == 5) {
1177
- A2(e4, r4, t3[70] | 0, 1);
1209
+ v2(e4, r4, t3[70] | 0, 1);
1178
1210
  t3[70] = (t3[70] | 0) + 2;
1179
1211
  a4 = w3(0) | 0;
1180
1212
  e4 = a4 << 16 >> 16 == 97;
@@ -1284,11 +1316,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1284
1316
  case 100:
1285
1317
  switch (s3[e4 + -2 >> 1] | 0) {
1286
1318
  case 105: {
1287
- e4 = O(e4 + -4 | 0, 88, 2) | 0;
1319
+ e4 = $2(e4 + -4 | 0, 88, 2) | 0;
1288
1320
  break e;
1289
1321
  }
1290
1322
  case 108: {
1291
- e4 = O(e4 + -4 | 0, 92, 3) | 0;
1323
+ e4 = $2(e4 + -4 | 0, 92, 3) | 0;
1292
1324
  break e;
1293
1325
  }
1294
1326
  default: {
@@ -1314,11 +1346,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1314
1346
  }
1315
1347
  }
1316
1348
  case 116: {
1317
- e4 = O(e4 + -4 | 0, 98, 4) | 0;
1349
+ e4 = $2(e4 + -4 | 0, 98, 4) | 0;
1318
1350
  break e;
1319
1351
  }
1320
1352
  case 117: {
1321
- e4 = O(e4 + -4 | 0, 106, 6) | 0;
1353
+ e4 = $2(e4 + -4 | 0, 106, 6) | 0;
1322
1354
  break e;
1323
1355
  }
1324
1356
  default: {
@@ -1330,11 +1362,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1330
1362
  if ((s3[e4 + -2 >> 1] | 0) == 111 ? (s3[e4 + -4 >> 1] | 0) == 101 : 0)
1331
1363
  switch (s3[e4 + -6 >> 1] | 0) {
1332
1364
  case 99: {
1333
- e4 = O(e4 + -8 | 0, 118, 6) | 0;
1365
+ e4 = $2(e4 + -8 | 0, 118, 6) | 0;
1334
1366
  break e;
1335
1367
  }
1336
1368
  case 112: {
1337
- e4 = O(e4 + -8 | 0, 130, 2) | 0;
1369
+ e4 = $2(e4 + -8 | 0, 130, 2) | 0;
1338
1370
  break e;
1339
1371
  }
1340
1372
  default: {
@@ -1347,7 +1379,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1347
1379
  break;
1348
1380
  }
1349
1381
  case 107: {
1350
- e4 = O(e4 + -2 | 0, 134, 4) | 0;
1382
+ e4 = $2(e4 + -2 | 0, 134, 4) | 0;
1351
1383
  break;
1352
1384
  }
1353
1385
  case 110: {
@@ -1355,7 +1387,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1355
1387
  if (B2(e4, 105) | 0)
1356
1388
  e4 = 1;
1357
1389
  else
1358
- e4 = O(e4, 142, 5) | 0;
1390
+ e4 = $2(e4, 142, 5) | 0;
1359
1391
  break;
1360
1392
  }
1361
1393
  case 111: {
@@ -1363,11 +1395,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1363
1395
  break;
1364
1396
  }
1365
1397
  case 114: {
1366
- e4 = O(e4 + -2 | 0, 152, 7) | 0;
1398
+ e4 = $2(e4 + -2 | 0, 152, 7) | 0;
1367
1399
  break;
1368
1400
  }
1369
1401
  case 116: {
1370
- e4 = O(e4 + -2 | 0, 166, 4) | 0;
1402
+ e4 = $2(e4 + -2 | 0, 166, 4) | 0;
1371
1403
  break;
1372
1404
  }
1373
1405
  case 119:
@@ -1377,7 +1409,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1377
1409
  break e;
1378
1410
  }
1379
1411
  case 111: {
1380
- e4 = O(e4 + -4 | 0, 174, 3) | 0;
1412
+ e4 = $2(e4 + -4 | 0, 174, 3) | 0;
1381
1413
  break e;
1382
1414
  }
1383
1415
  default: {
@@ -1488,12 +1520,12 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1488
1520
  }
1489
1521
  function d3(e4) {
1490
1522
  e4 = e4 | 0;
1491
- var a4 = 0, r4 = 0, i4 = 0, c4 = 0;
1492
- c4 = t3[71] | 0;
1523
+ var a4 = 0, r4 = 0, i4 = 0, f4 = 0;
1524
+ f4 = t3[71] | 0;
1493
1525
  a4 = t3[70] | 0;
1494
1526
  while (1) {
1495
1527
  i4 = a4 + 2 | 0;
1496
- if (a4 >>> 0 >= c4 >>> 0) {
1528
+ if (a4 >>> 0 >= f4 >>> 0) {
1497
1529
  a4 = 9;
1498
1530
  break;
1499
1531
  }
@@ -1522,15 +1554,44 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1522
1554
  t3[70] = i4;
1523
1555
  return;
1524
1556
  }
1525
- function v2(e4, a4) {
1557
+ function v2(e4, a4, r4, s4) {
1526
1558
  e4 = e4 | 0;
1527
1559
  a4 = a4 | 0;
1528
- var r4 = 0, i4 = 0, c4 = 0, f4 = 0;
1560
+ r4 = r4 | 0;
1561
+ s4 = s4 | 0;
1562
+ var f4 = 0, c4 = 0;
1563
+ f4 = t3[65] | 0;
1564
+ t3[65] = f4 + 32;
1565
+ c4 = t3[61] | 0;
1566
+ t3[((c4 | 0) == 0 ? 228 : c4 + 28 | 0) >> 2] = f4;
1567
+ t3[62] = c4;
1568
+ t3[61] = f4;
1569
+ t3[f4 + 8 >> 2] = e4;
1570
+ if (2 == (s4 | 0))
1571
+ e4 = r4;
1572
+ else
1573
+ e4 = 1 == (s4 | 0) ? r4 + 2 | 0 : 0;
1574
+ t3[f4 + 12 >> 2] = e4;
1575
+ t3[f4 >> 2] = a4;
1576
+ t3[f4 + 4 >> 2] = r4;
1577
+ t3[f4 + 16 >> 2] = 0;
1578
+ t3[f4 + 20 >> 2] = s4;
1579
+ c4 = 1 == (s4 | 0);
1580
+ i3[f4 + 24 >> 0] = c4 & 1;
1581
+ t3[f4 + 28 >> 2] = 0;
1582
+ if (c4 | 2 == (s4 | 0))
1583
+ i3[795] = 1;
1584
+ return;
1585
+ }
1586
+ function A2(e4, a4) {
1587
+ e4 = e4 | 0;
1588
+ a4 = a4 | 0;
1589
+ var r4 = 0, i4 = 0, f4 = 0, c4 = 0;
1529
1590
  r4 = t3[70] | 0;
1530
1591
  i4 = s3[r4 >> 1] | 0;
1531
- f4 = (e4 | 0) == (a4 | 0);
1532
- c4 = f4 ? 0 : e4;
1533
- f4 = f4 ? 0 : a4;
1592
+ c4 = (e4 | 0) == (a4 | 0);
1593
+ f4 = c4 ? 0 : e4;
1594
+ c4 = c4 ? 0 : a4;
1534
1595
  if (i4 << 16 >> 16 == 97) {
1535
1596
  t3[70] = r4 + 4;
1536
1597
  r4 = w3(1) | 0;
@@ -1547,35 +1608,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1547
1608
  r4 = t3[70] | 0;
1548
1609
  }
1549
1610
  if ((r4 | 0) != (e4 | 0))
1550
- $2(e4, a4, c4, f4);
1611
+ O(e4, a4, f4, c4);
1551
1612
  return i4 | 0;
1552
1613
  }
1553
- function A2(e4, a4, r4, s4) {
1554
- e4 = e4 | 0;
1555
- a4 = a4 | 0;
1556
- r4 = r4 | 0;
1557
- s4 = s4 | 0;
1558
- var c4 = 0, f4 = 0;
1559
- c4 = t3[65] | 0;
1560
- t3[65] = c4 + 32;
1561
- f4 = t3[61] | 0;
1562
- t3[((f4 | 0) == 0 ? 228 : f4 + 28 | 0) >> 2] = c4;
1563
- t3[62] = f4;
1564
- t3[61] = c4;
1565
- t3[c4 + 8 >> 2] = e4;
1566
- if (2 == (s4 | 0))
1567
- e4 = r4;
1568
- else
1569
- e4 = 1 == (s4 | 0) ? r4 + 2 | 0 : 0;
1570
- t3[c4 + 12 >> 2] = e4;
1571
- t3[c4 >> 2] = a4;
1572
- t3[c4 + 4 >> 2] = r4;
1573
- t3[c4 + 16 >> 2] = 0;
1574
- t3[c4 + 20 >> 2] = s4;
1575
- i3[c4 + 24 >> 0] = 1 == (s4 | 0) & 1;
1576
- t3[c4 + 28 >> 2] = 0;
1577
- return;
1578
- }
1579
1614
  function C2() {
1580
1615
  var e4 = 0, a4 = 0, r4 = 0;
1581
1616
  r4 = t3[71] | 0;
@@ -1664,15 +1699,15 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1664
1699
  break;
1665
1700
  }
1666
1701
  case 104: {
1667
- e4 = O(e4 + -2 | 0, 200, 4) | 0;
1702
+ e4 = $2(e4 + -2 | 0, 200, 4) | 0;
1668
1703
  break;
1669
1704
  }
1670
1705
  case 121: {
1671
- e4 = O(e4 + -2 | 0, 208, 6) | 0;
1706
+ e4 = $2(e4 + -2 | 0, 208, 6) | 0;
1672
1707
  break;
1673
1708
  }
1674
1709
  case 101: {
1675
- e4 = O(e4 + -2 | 0, 220, 3) | 0;
1710
+ e4 = $2(e4 + -2 | 0, 220, 3) | 0;
1676
1711
  break;
1677
1712
  }
1678
1713
  default:
@@ -1682,26 +1717,26 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1682
1717
  }
1683
1718
  function y2(e4) {
1684
1719
  e4 = e4 | 0;
1685
- var a4 = 0, r4 = 0, i4 = 0, c4 = 0, f4 = 0;
1686
- c4 = (t3[70] | 0) + 2 | 0;
1687
- t3[70] = c4;
1720
+ var a4 = 0, r4 = 0, i4 = 0, f4 = 0, c4 = 0;
1721
+ f4 = (t3[70] | 0) + 2 | 0;
1722
+ t3[70] = f4;
1688
1723
  r4 = t3[71] | 0;
1689
1724
  while (1) {
1690
- a4 = c4 + 2 | 0;
1691
- if (c4 >>> 0 >= r4 >>> 0)
1725
+ a4 = f4 + 2 | 0;
1726
+ if (f4 >>> 0 >= r4 >>> 0)
1692
1727
  break;
1693
1728
  i4 = s3[a4 >> 1] | 0;
1694
1729
  if (!e4 ? Z2(i4) | 0 : 0)
1695
1730
  break;
1696
- if (i4 << 16 >> 16 == 42 ? (s3[c4 + 4 >> 1] | 0) == 47 : 0) {
1697
- f4 = 8;
1731
+ if (i4 << 16 >> 16 == 42 ? (s3[f4 + 4 >> 1] | 0) == 47 : 0) {
1732
+ c4 = 8;
1698
1733
  break;
1699
1734
  }
1700
- c4 = a4;
1735
+ f4 = a4;
1701
1736
  }
1702
- if ((f4 | 0) == 8) {
1737
+ if ((c4 | 0) == 8) {
1703
1738
  t3[70] = a4;
1704
- a4 = c4 + 4 | 0;
1739
+ a4 = f4 + 4 | 0;
1705
1740
  }
1706
1741
  t3[70] = a4;
1707
1742
  return;
@@ -1817,16 +1852,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1817
1852
  }
1818
1853
  function S2(e4) {
1819
1854
  e4 = e4 | 0;
1820
- var a4 = 0, r4 = 0, i4 = 0, c4 = 0;
1855
+ var a4 = 0, r4 = 0, i4 = 0, f4 = 0;
1821
1856
  r4 = n3;
1822
1857
  n3 = n3 + 16 | 0;
1823
1858
  i4 = r4;
1824
1859
  t3[i4 >> 2] = 0;
1825
1860
  t3[64] = e4;
1826
1861
  a4 = t3[3] | 0;
1827
- c4 = a4 + (e4 << 1) | 0;
1828
- e4 = c4 + 2 | 0;
1829
- s3[c4 >> 1] = 0;
1862
+ f4 = a4 + (e4 << 1) | 0;
1863
+ e4 = f4 + 2 | 0;
1864
+ s3[f4 >> 1] = 0;
1830
1865
  t3[i4 >> 2] = e4;
1831
1866
  t3[65] = e4;
1832
1867
  t3[57] = 0;
@@ -1838,7 +1873,26 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1838
1873
  n3 = r4;
1839
1874
  return a4 | 0;
1840
1875
  }
1841
- function O(e4, a4, r4) {
1876
+ function O(e4, a4, r4, s4) {
1877
+ e4 = e4 | 0;
1878
+ a4 = a4 | 0;
1879
+ r4 = r4 | 0;
1880
+ s4 = s4 | 0;
1881
+ var f4 = 0, c4 = 0;
1882
+ f4 = t3[65] | 0;
1883
+ t3[65] = f4 + 20;
1884
+ c4 = t3[63] | 0;
1885
+ t3[((c4 | 0) == 0 ? 232 : c4 + 16 | 0) >> 2] = f4;
1886
+ t3[63] = f4;
1887
+ t3[f4 >> 2] = e4;
1888
+ t3[f4 + 4 >> 2] = a4;
1889
+ t3[f4 + 8 >> 2] = r4;
1890
+ t3[f4 + 12 >> 2] = s4;
1891
+ t3[f4 + 16 >> 2] = 0;
1892
+ i3[795] = 1;
1893
+ return;
1894
+ }
1895
+ function $2(e4, a4, r4) {
1842
1896
  e4 = e4 | 0;
1843
1897
  a4 = a4 | 0;
1844
1898
  r4 = r4 | 0;
@@ -1855,34 +1909,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1855
1909
  e4 = 0;
1856
1910
  return e4 | 0;
1857
1911
  }
1858
- function $2(e4, a4, r4, i4) {
1859
- e4 = e4 | 0;
1860
- a4 = a4 | 0;
1861
- r4 = r4 | 0;
1862
- i4 = i4 | 0;
1863
- var s4 = 0, c4 = 0;
1864
- s4 = t3[65] | 0;
1865
- t3[65] = s4 + 20;
1866
- c4 = t3[63] | 0;
1867
- t3[((c4 | 0) == 0 ? 232 : c4 + 16 | 0) >> 2] = s4;
1868
- t3[63] = s4;
1869
- t3[s4 >> 2] = e4;
1870
- t3[s4 + 4 >> 2] = a4;
1871
- t3[s4 + 8 >> 2] = r4;
1872
- t3[s4 + 12 >> 2] = i4;
1873
- t3[s4 + 16 >> 2] = 0;
1874
- return;
1875
- }
1876
1912
  function j(e4) {
1877
1913
  e4 = e4 | 0;
1878
1914
  switch (s3[e4 >> 1] | 0) {
1879
1915
  case 107: {
1880
- e4 = O(e4 + -2 | 0, 134, 4) | 0;
1916
+ e4 = $2(e4 + -2 | 0, 134, 4) | 0;
1881
1917
  break;
1882
1918
  }
1883
1919
  case 101: {
1884
1920
  if ((s3[e4 + -2 >> 1] | 0) == 117)
1885
- e4 = O(e4 + -4 | 0, 106, 6) | 0;
1921
+ e4 = $2(e4 + -4 | 0, 106, 6) | 0;
1886
1922
  else
1887
1923
  e4 = 0;
1888
1924
  break;
@@ -1983,8 +2019,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1983
2019
  }
1984
2020
  function D2(e4) {
1985
2021
  e4 = e4 | 0;
1986
- if (!(O(e4, 180, 5) | 0) ? !(O(e4, 190, 3) | 0) : 0)
1987
- e4 = O(e4, 196, 2) | 0;
2022
+ if (!($2(e4, 180, 5) | 0) ? !($2(e4, 190, 3) | 0) : 0)
2023
+ e4 = $2(e4, 196, 2) | 0;
1988
2024
  else
1989
2025
  e4 = 1;
1990
2026
  return e4 | 0;
@@ -2111,7 +2147,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2111
2147
  return (t3[t3[60] >> 2] | 0) - (t3[3] | 0) >> 1 | 0;
2112
2148
  }
2113
2149
  function ae() {
2114
- return c3[(t3[59] | 0) + 24 >> 0] | 0 | 0;
2150
+ return f3[(t3[59] | 0) + 24 >> 0] | 0 | 0;
2115
2151
  }
2116
2152
  function re(e4) {
2117
2153
  e4 = e4 | 0;
@@ -2122,44 +2158,47 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2122
2158
  return (i3[795] | 0) != 0 | 0;
2123
2159
  }
2124
2160
  function se() {
2161
+ return (i3[796] | 0) != 0 | 0;
2162
+ }
2163
+ function te() {
2125
2164
  return t3[66] | 0;
2126
2165
  }
2127
- function te(e4) {
2166
+ function fe(e4) {
2128
2167
  e4 = e4 | 0;
2129
2168
  n3 = e4 + 992 + 15 & -16;
2130
2169
  return 992;
2131
2170
  }
2132
- return { su: te, ai: M2, e: se, ee: Y, ele: J, els: L2, es: ee, f: ie, id: z2, ie: N2, ip: ae, is: _2, p: b2, re: R2, ri: Q, sa: S2, se: K, ses: re, ss: X };
2171
+ return { su: fe, ai: M2, e: te, ee: Y, ele: J, els: L2, es: ee, f: se, id: z2, ie: N2, ip: ae, is: _2, ms: ie, p: b2, re: R2, ri: Q, sa: S2, se: K, ses: re, ss: X };
2133
2172
  }("undefined" != typeof self ? self : commonjsGlobal, {}, a2), r2 = e2.su(i2 - (2 << 17));
2134
2173
  }
2135
- const h2 = c$1.length + 1;
2136
- e2.ses(r2), e2.sa(h2 - 1), s2(c$1, new Uint16Array(a2, r2, h2)), e2.p() || (n2 = e2.e(), o2());
2174
+ const h2 = f2.length + 1;
2175
+ e2.ses(r2), e2.sa(h2 - 1), s2(f2, new Uint16Array(a2, r2, h2)), e2.p() || (n2 = e2.e(), o2());
2137
2176
  const w2 = [], d2 = [];
2138
2177
  for (; e2.ri(); ) {
2139
- const a3 = e2.is(), r3 = e2.ie(), i3 = e2.ai(), s3 = e2.id(), t3 = e2.ss(), f3 = e2.se();
2178
+ const a3 = e2.is(), r3 = e2.ie(), i3 = e2.ai(), s3 = e2.id(), t3 = e2.ss(), c3 = e2.se();
2140
2179
  let n3;
2141
- e2.ip() && (n3 = b(-1 === s3 ? a3 : a3 + 1, c$1.charCodeAt(-1 === s3 ? a3 - 1 : a3))), w2.push({ n: n3, s: a3, e: r3, ss: t3, se: f3, d: s3, a: i3 });
2180
+ e2.ip() && (n3 = b(-1 === s3 ? a3 : a3 + 1, f2.charCodeAt(-1 === s3 ? a3 - 1 : a3))), w2.push({ n: n3, s: a3, e: r3, ss: t3, se: c3, d: s3, a: i3 });
2142
2181
  }
2143
2182
  for (; e2.re(); ) {
2144
- const a3 = e2.es(), r3 = e2.ee(), i3 = e2.els(), s3 = e2.ele(), t3 = c$1.charCodeAt(a3), f3 = i3 >= 0 ? c$1.charCodeAt(i3) : -1;
2145
- d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b(a3 + 1, t3) : c$1.slice(a3, r3), ln: i3 < 0 ? void 0 : 34 === f3 || 39 === f3 ? b(i3 + 1, f3) : c$1.slice(i3, s3) });
2183
+ const a3 = e2.es(), r3 = e2.ee(), i3 = e2.els(), s3 = e2.ele(), t3 = f2.charCodeAt(a3), c3 = i3 >= 0 ? f2.charCodeAt(i3) : -1;
2184
+ d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b(a3 + 1, t3) : f2.slice(a3, r3), ln: i3 < 0 ? void 0 : 34 === c3 || 39 === c3 ? b(i3 + 1, c3) : f2.slice(i3, s3) });
2146
2185
  }
2147
- return [w2, d2, !!e2.f()];
2186
+ return [w2, d2, !!e2.f(), !!e2.ms()];
2148
2187
  }
2149
2188
  function b(e3, a3) {
2150
2189
  n2 = e3;
2151
2190
  let r3 = "", i3 = n2;
2152
2191
  for (; ; ) {
2153
- n2 >= c$1.length && o2();
2154
- const e4 = c$1.charCodeAt(n2);
2192
+ n2 >= f2.length && o2();
2193
+ const e4 = f2.charCodeAt(n2);
2155
2194
  if (e4 === a3)
2156
2195
  break;
2157
- 92 === e4 ? (r3 += c$1.slice(i3, n2), r3 += l2(), i3 = n2) : (8232 === e4 || 8233 === e4 || u2(e4) && o2(), ++n2);
2196
+ 92 === e4 ? (r3 += f2.slice(i3, n2), r3 += l2(), i3 = n2) : (8232 === e4 || 8233 === e4 || u2(e4) && o2(), ++n2);
2158
2197
  }
2159
- return r3 += c$1.slice(i3, n2++), r3;
2198
+ return r3 += f2.slice(i3, n2++), r3;
2160
2199
  }
2161
2200
  function l2() {
2162
- let e3 = c$1.charCodeAt(++n2);
2201
+ let e3 = f2.charCodeAt(++n2);
2163
2202
  switch (++n2, e3) {
2164
2203
  case 110:
2165
2204
  return "\n";
@@ -2169,9 +2208,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2169
2208
  return String.fromCharCode(k2(2));
2170
2209
  case 117:
2171
2210
  return function() {
2172
- const e4 = c$1.charCodeAt(n2);
2211
+ const e4 = f2.charCodeAt(n2);
2173
2212
  let a3;
2174
- 123 === e4 ? (++n2, a3 = k2(c$1.indexOf("}", n2) - n2), ++n2, a3 > 1114111 && o2()) : a3 = k2(4);
2213
+ 123 === e4 ? (++n2, a3 = k2(f2.indexOf("}", n2) - n2), ++n2, a3 > 1114111 && o2()) : a3 = k2(4);
2175
2214
  return a3 <= 65535 ? String.fromCharCode(a3) : (a3 -= 65536, String.fromCharCode(55296 + (a3 >> 10), 56320 + (1023 & a3)));
2176
2215
  }();
2177
2216
  case 116:
@@ -2183,7 +2222,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2183
2222
  case 102:
2184
2223
  return "\f";
2185
2224
  case 13:
2186
- 10 === c$1.charCodeAt(n2) && ++n2;
2225
+ 10 === f2.charCodeAt(n2) && ++n2;
2187
2226
  case 10:
2188
2227
  return "";
2189
2228
  case 56:
@@ -2191,8 +2230,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2191
2230
  o2();
2192
2231
  default:
2193
2232
  if (e3 >= 48 && e3 <= 55) {
2194
- let a3 = c$1.substr(n2 - 1, 3).match(/^[0-7]+/)[0], r3 = parseInt(a3, 8);
2195
- return r3 > 255 && (a3 = a3.slice(0, -1), r3 = parseInt(a3, 8)), n2 += a3.length - 1, e3 = c$1.charCodeAt(n2), "0" === a3 && 56 !== e3 && 57 !== e3 || o2(), String.fromCharCode(r3);
2233
+ let a3 = f2.substr(n2 - 1, 3).match(/^[0-7]+/)[0], r3 = parseInt(a3, 8);
2234
+ return r3 > 255 && (a3 = a3.slice(0, -1), r3 = parseInt(a3, 8)), n2 += a3.length - 1, e3 = f2.charCodeAt(n2), "0" === a3 && 56 !== e3 && 57 !== e3 || o2(), String.fromCharCode(r3);
2196
2235
  }
2197
2236
  return u2(e3) ? "" : String.fromCharCode(e3);
2198
2237
  }
@@ -2201,7 +2240,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2201
2240
  const a3 = n2;
2202
2241
  let r3 = 0, i3 = 0;
2203
2242
  for (let a4 = 0; a4 < e3; ++a4, ++n2) {
2204
- let e4, s3 = c$1.charCodeAt(n2);
2243
+ let e4, s3 = f2.charCodeAt(n2);
2205
2244
  if (95 !== s3) {
2206
2245
  if (s3 >= 97)
2207
2246
  e4 = s3 - 97 + 10;
@@ -2224,21 +2263,21 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2224
2263
  return 13 === e3 || 10 === e3;
2225
2264
  }
2226
2265
  function o2() {
2227
- throw Object.assign(Error(`Parse error ${f2}:${c$1.slice(0, n2).split("\n").length}:${n2 - c$1.lastIndexOf("\n", n2 - 1)}`), { idx: n2 });
2266
+ throw Object.assign(Error(`Parse error ${c$1}:${f2.slice(0, n2).split("\n").length}:${n2 - f2.lastIndexOf("\n", n2 - 1)}`), { idx: n2 });
2228
2267
  }
2229
2268
  async function _resolve(id, parentUrl) {
2230
- const urlResolved = resolveIfNotPlainOrUrl(id, parentUrl);
2269
+ const urlResolved = resolveIfNotPlainOrUrl(id, parentUrl) || asURL(id);
2231
2270
  return {
2232
2271
  r: resolveImportMap(importMap, urlResolved || id, parentUrl) || throwUnresolved(id, parentUrl),
2233
2272
  // b = bare specifier
2234
- b: !urlResolved && !isURL(id)
2273
+ b: !urlResolved && !asURL(id)
2235
2274
  };
2236
2275
  }
2237
2276
  const resolve = resolveHook ? async (id, parentUrl) => {
2238
2277
  let result = resolveHook(id, parentUrl, defaultResolve);
2239
2278
  if (result && result.then)
2240
2279
  result = await result;
2241
- return result ? { r: result, b: !resolveIfNotPlainOrUrl(id, parentUrl) && !isURL(id) } : _resolve(id, parentUrl);
2280
+ return result ? { r: result, b: !resolveIfNotPlainOrUrl(id, parentUrl) && !asURL(id) } : _resolve(id, parentUrl);
2242
2281
  } : _resolve;
2243
2282
  async function importShim(id, ...args) {
2244
2283
  let parentUrl = args[args.length - 1];
@@ -2511,8 +2550,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2511
2550
  } finally {
2512
2551
  popFetchPool();
2513
2552
  }
2514
- if (!res.ok)
2515
- throw Error(`${res.status} ${res.statusText} ${res.url}${fromParent(parent)}`);
2553
+ if (!res.ok) {
2554
+ const error2 = new TypeError(`${res.status} ${res.statusText} ${res.url}${fromParent(parent)}`);
2555
+ error2.response = res;
2556
+ throw error2;
2557
+ }
2516
2558
  return res;
2517
2559
  }
2518
2560
  async function fetchModule(url, fetchOpts, parent) {
@@ -2945,6 +2987,10 @@ function __asyncValues(o2) {
2945
2987
  }, reject);
2946
2988
  }
2947
2989
  }
2990
+ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
2991
+ var e2 = new Error(message);
2992
+ return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
2993
+ };
2948
2994
  function isFunction(value) {
2949
2995
  return typeof value === "function";
2950
2996
  }
@@ -4857,27 +4903,27 @@ function focus(document2, obs$, mode$) {
4857
4903
  });
4858
4904
  return () => subscription.unsubscribe();
4859
4905
  }
4860
- var __defProp$3 = Object.defineProperty;
4861
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4862
- var __publicField$3 = (obj, key, value) => {
4863
- __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
4906
+ var __defProp$2 = Object.defineProperty;
4907
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4908
+ var __publicField$2 = (obj, key, value) => {
4909
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
4864
4910
  return value;
4865
4911
  };
4866
- let Lexer$1 = class Lexer {
4912
+ class Lexer {
4867
4913
  constructor(input) {
4868
- __publicField$3(this, "_input");
4869
- __publicField$3(this, "_length");
4870
- __publicField$3(this, "_idx", 0);
4871
- __publicField$3(
4914
+ __publicField$2(this, "_input");
4915
+ __publicField$2(this, "_length");
4916
+ __publicField$2(this, "_idx", 0);
4917
+ __publicField$2(
4872
4918
  this,
4873
4919
  "_mode",
4874
4920
  0
4875
4921
  /* Literal */
4876
4922
  );
4877
- __publicField$3(this, "_literals", []);
4878
- __publicField$3(this, "_variables", []);
4879
- __publicField$3(this, "_braketCount", 0);
4880
- __publicField$3(this, "_done", false);
4923
+ __publicField$2(this, "_literals", []);
4924
+ __publicField$2(this, "_variables", []);
4925
+ __publicField$2(this, "_braketCount", 0);
4926
+ __publicField$2(this, "_done", false);
4881
4927
  this._input = input;
4882
4928
  this._length = input.length;
4883
4929
  }
@@ -4934,7 +4980,7 @@ let Lexer$1 = class Lexer {
4934
4980
  }
4935
4981
  this._done = true;
4936
4982
  }
4937
- };
4983
+ }
4938
4984
  const isSquareBrakets = (field) => {
4939
4985
  const trimmed = field.trim();
4940
4986
  if (!(trimmed.startsWith("[") && trimmed.endsWith("]"))) {
@@ -4968,7 +5014,7 @@ function interpolate$1(context, path, preserveUnknown) {
4968
5014
  return preserveUnknown ? "{{".concat(path, "}}") : "";
4969
5015
  }
4970
5016
  function parse(input, context, preserveUnknown = false) {
4971
- const lexer2 = new Lexer$1(input);
5017
+ const lexer2 = new Lexer(input);
4972
5018
  lexer2.run();
4973
5019
  const template = lexer2.get();
4974
5020
  let [acc] = template.literals;
@@ -4997,6 +5043,7 @@ const keys = {
4997
5043
  "request-resource": 0,
4998
5044
  "set-source-map": 0,
4999
5045
  "tag-info": 0,
5046
+ unload: 0,
5000
5047
  update: 0,
5001
5048
  updated: 0
5002
5049
  /* Default */
@@ -5347,12 +5394,12 @@ function contentToArrayOfNodes(rawContent) {
5347
5394
  }
5348
5395
  function parseContent(buffer, content, extraProperties) {
5349
5396
  if (typeof content !== "object") {
5350
- buffer.push(`${content}`);
5397
+ buffer.push("".concat(content));
5351
5398
  return;
5352
5399
  }
5353
5400
  contentToArrayOfNodes(content).forEach((el) => {
5354
5401
  if (typeof el !== "object") {
5355
- buffer.push(`${el}`);
5402
+ buffer.push("".concat(el));
5356
5403
  return;
5357
5404
  }
5358
5405
  const {
@@ -5363,11 +5410,11 @@ function parseContent(buffer, content, extraProperties) {
5363
5410
  // content: nextContent,
5364
5411
  } = el;
5365
5412
  const isVoid = isVoidTag(el);
5366
- const initialTagOpen = `<${tag}`;
5413
+ const initialTagOpen = "<".concat(tag);
5367
5414
  const initialTagClose = isVoid ? "/>" : ">";
5368
- const finalTag = `</${tag}>`;
5415
+ const finalTag = "</".concat(tag, ">");
5369
5416
  const initialTagAttributes = Object.entries(attributes).reduce((acc, [name, value]) => {
5370
- acc.push(`${name}="${value}"`);
5417
+ acc.push("".concat(name, '="').concat(value, '"'));
5371
5418
  return acc;
5372
5419
  }, []);
5373
5420
  const initialTagBooleanAttributes = toArray(booleanAttributes);
@@ -5377,17 +5424,17 @@ function parseContent(buffer, content, extraProperties) {
5377
5424
  }, { override: {}, props: {} });
5378
5425
  const initialTagExtraProperties = Array.from(extraProperties.keys()).map((prop) => {
5379
5426
  var _a2;
5380
- return `.${prop}=\${${(_a2 = override[prop]) != null ? _a2 : prop}}`;
5427
+ return ".".concat(prop, "=${").concat((_a2 = override[prop]) != null ? _a2 : prop, "}");
5381
5428
  });
5382
5429
  const initialTagProperties = Object.entries(props).reduce((acc, [name, value]) => {
5383
5430
  switch (typeof value) {
5384
5431
  case "object":
5385
5432
  case "number":
5386
5433
  case "boolean":
5387
- acc.push(`.${name}=\${${JSON.stringify(value)}}`);
5434
+ acc.push(".".concat(name, "=${").concat(JSON.stringify(value), "}"));
5388
5435
  break;
5389
5436
  case "string":
5390
- acc.push(`.${name}=\${"${value}"}`);
5437
+ acc.push(".".concat(name, '=${"').concat(value, '"}'));
5391
5438
  break;
5392
5439
  }
5393
5440
  return acc;
@@ -5418,43 +5465,44 @@ const assetsURL = function(dep, importerUrl) {
5418
5465
  };
5419
5466
  const seen = {};
5420
5467
  const __vitePreload = function preload(baseModule, deps, importerUrl) {
5421
- if (!deps || deps.length === 0) {
5422
- return baseModule();
5423
- }
5424
- const links = document.getElementsByTagName("link");
5425
- return Promise.all(deps.map((dep) => {
5426
- dep = assetsURL(dep, importerUrl);
5427
- if (dep in seen)
5428
- return;
5429
- seen[dep] = true;
5430
- const isCss = dep.endsWith(".css");
5431
- const cssSelector = isCss ? '[rel="stylesheet"]' : "";
5432
- const isBaseRelative = !!importerUrl;
5433
- if (isBaseRelative) {
5434
- for (let i2 = links.length - 1; i2 >= 0; i2--) {
5435
- const link2 = links[i2];
5436
- if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
5437
- return;
5468
+ let promise = Promise.resolve();
5469
+ if (deps && deps.length > 0) {
5470
+ const links = document.getElementsByTagName("link");
5471
+ promise = Promise.all(deps.map((dep) => {
5472
+ dep = assetsURL(dep, importerUrl);
5473
+ if (dep in seen)
5474
+ return;
5475
+ seen[dep] = true;
5476
+ const isCss = dep.endsWith(".css");
5477
+ const cssSelector = isCss ? '[rel="stylesheet"]' : "";
5478
+ const isBaseRelative = !!importerUrl;
5479
+ if (isBaseRelative) {
5480
+ for (let i2 = links.length - 1; i2 >= 0; i2--) {
5481
+ const link2 = links[i2];
5482
+ if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
5483
+ return;
5484
+ }
5438
5485
  }
5486
+ } else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
5487
+ return;
5439
5488
  }
5440
- } else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
5441
- return;
5442
- }
5443
- const link = document.createElement("link");
5444
- link.rel = isCss ? "stylesheet" : scriptRel;
5445
- if (!isCss) {
5446
- link.as = "script";
5447
- link.crossOrigin = "";
5448
- }
5449
- link.href = dep;
5450
- document.head.appendChild(link);
5451
- if (isCss) {
5452
- return new Promise((res, rej) => {
5453
- link.addEventListener("load", res);
5454
- link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
5455
- });
5456
- }
5457
- })).then(() => baseModule()).catch((err) => {
5489
+ const link = document.createElement("link");
5490
+ link.rel = isCss ? "stylesheet" : scriptRel;
5491
+ if (!isCss) {
5492
+ link.as = "script";
5493
+ link.crossOrigin = "";
5494
+ }
5495
+ link.href = dep;
5496
+ document.head.appendChild(link);
5497
+ if (isCss) {
5498
+ return new Promise((res, rej) => {
5499
+ link.addEventListener("load", res);
5500
+ link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
5501
+ });
5502
+ }
5503
+ }));
5504
+ }
5505
+ return promise.then(() => baseModule()).catch((err) => {
5458
5506
  const e2 = new Event("vite:preloadError", { cancelable: true });
5459
5507
  e2.payload = err;
5460
5508
  window.dispatchEvent(e2);
@@ -5463,178 +5511,147 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
5463
5511
  }
5464
5512
  });
5465
5513
  };
5466
- function error(message, ...args) {
5467
- __vitePreload(() => import("./errors-5a0ccde7.js"), true ? [] : void 0, import.meta.url).then(({ default: errorMap }) => {
5514
+ const error = (message, ...args) => {
5515
+ __vitePreload(() => import("./errors-PsWGnPGW.js"), true ? __vite__mapDeps([]) : void 0, import.meta.url).then(({ default: errorMap }) => {
5468
5516
  const handler2 = errorMap[message];
5469
5517
  handler2 ? console.error(handler2(...args)) : console.error(...args);
5470
5518
  }).catch((err) => {
5471
5519
  console.error(
5472
- `[micro-lc][composer]: Dynamic import error while importing logger utils - ${err.message}`
5520
+ "[micro-lc][composer]: Dynamic import error while importing logger utils - ".concat(err.message)
5473
5521
  );
5474
5522
  });
5475
- }
5476
- function dynamicImportError(name) {
5477
- return (err) => {
5478
- error("0", name, err.message);
5479
- };
5480
- }
5481
- const logger = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5482
- __proto__: null,
5523
+ };
5524
+ const dynamicImportError = (name) => (err) => {
5525
+ error("0", name, err.message);
5526
+ };
5527
+ const logger = {
5483
5528
  dynamicImportError,
5484
5529
  error
5530
+ };
5531
+ const logger$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5532
+ __proto__: null,
5533
+ logger
5485
5534
  }, Symbol.toStringTag, { value: "Module" }));
5486
- var logger_default = logger;
5487
- var __defProp$2 = Object.defineProperty;
5488
- var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5489
- var __publicField$2 = (obj, key, value) => {
5490
- __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
5491
- return value;
5535
+ var logger_default = logger$1;
5536
+ const createBuffer = () => {
5537
+ const buffer = [];
5538
+ return Object.assign(
5539
+ buffer,
5540
+ {
5541
+ append: (char) => {
5542
+ buffer[buffer.length - 1] += char;
5543
+ },
5544
+ flush: () => {
5545
+ buffer.push("");
5546
+ }
5547
+ }
5548
+ );
5492
5549
  };
5493
- class Lexer2 {
5494
- constructor(input) {
5495
- __publicField$2(this, "_i", 0);
5496
- __publicField$2(this, "_s");
5497
- __publicField$2(this, "_l");
5498
- __publicField$2(this, "_d", false);
5499
- __publicField$2(
5500
- this,
5501
- "_m",
5502
- 0
5503
- /* String */
5504
- );
5505
- __publicField$2(this, "_st", []);
5506
- __publicField$2(this, "_n", 0);
5507
- __publicField$2(this, "_li", []);
5508
- __publicField$2(this, "_v", []);
5509
- this._s = input;
5510
- this._l = input.length;
5511
- if (input.length === 0) {
5512
- this._d = true;
5513
- }
5514
- }
5515
- _sw(mode) {
5516
- this._m = mode;
5517
- }
5518
- _fst() {
5519
- this._st = [];
5520
- }
5521
- _fn() {
5522
- this._v.push(this._st.join(""));
5523
- this._fst();
5524
- }
5525
- _fs() {
5526
- this._li.push(this._st.join(""));
5527
- this._fst();
5528
- }
5529
- _fpn() {
5530
- this._li.push(this._st.slice(0, -1).join(""));
5531
- this._fst();
5532
- }
5533
- _nx() {
5534
- const current = this._s.charAt(this._i);
5535
- switch (this._m) {
5536
- case 1: {
5537
- if (current === "{") {
5538
- this._n += 1;
5539
- this._st.push(current);
5540
- } else if (current === "}" && this._n === 0) {
5541
- this._fn();
5542
- this._sw(
5543
- 0
5544
- /* String */
5545
- );
5546
- } else if (current === "}" && this._n > 0) {
5547
- this._st.push(current);
5548
- this._n -= 1;
5549
- } else {
5550
- this._st.push(current);
5551
- }
5552
- break;
5550
+ const createLiteralBuffer = () => {
5551
+ const buffer = [""];
5552
+ return Object.assign(
5553
+ buffer,
5554
+ {
5555
+ append: (char) => {
5556
+ buffer[buffer.length - 1] += char;
5557
+ },
5558
+ flush: () => {
5559
+ buffer.push("");
5553
5560
  }
5554
- case 2: {
5555
- if (current === "{") {
5556
- this._fpn();
5557
- this._sw(
5558
- 1
5559
- /* Normal */
5560
- );
5561
- } else {
5562
- this._sw(
5563
- 0
5564
- /* String */
5565
- );
5566
- this._st.push(current);
5561
+ }
5562
+ );
5563
+ };
5564
+ const createLiteralsTemplate = (li, variables) => {
5565
+ const value = [...li];
5566
+ return {
5567
+ literals: Object.defineProperty(value, "raw", { get: () => value }),
5568
+ variables: [...variables]
5569
+ };
5570
+ };
5571
+ const createContext = () => ({
5572
+ braceCnt: 0,
5573
+ literals: createLiteralBuffer(),
5574
+ mode: 0,
5575
+ variables: createBuffer()
5576
+ });
5577
+ const createLexer = (input) => {
5578
+ const parse2 = () => {
5579
+ const parsed = Array.from(input).reduce((acc, next) => {
5580
+ switch (acc.mode) {
5581
+ case 2: {
5582
+ if (next === "}" && acc.braceCnt === 0) {
5583
+ acc.mode = 0;
5584
+ break;
5585
+ }
5586
+ if (next === "{") {
5587
+ acc.braceCnt += 1;
5588
+ } else if (next === "}" && acc.braceCnt > 0) {
5589
+ acc.braceCnt -= 1;
5590
+ }
5591
+ acc.variables.append(next);
5592
+ break;
5567
5593
  }
5568
- break;
5569
- }
5570
- case 0:
5571
- default: {
5572
- if (current === "$") {
5573
- this._sw(
5574
- 2
5575
- /* PossiblyNormal */
5576
- );
5594
+ case 1: {
5595
+ acc.literals.append(next);
5596
+ if (next === "{") {
5597
+ acc.literals.flush();
5598
+ acc.variables.flush();
5599
+ acc.mode = 2;
5600
+ } else {
5601
+ acc.mode = 0;
5602
+ }
5603
+ break;
5604
+ }
5605
+ case 0:
5606
+ default: {
5607
+ if (next === "$") {
5608
+ acc.mode = 1;
5609
+ }
5610
+ acc.literals.append(next);
5577
5611
  }
5578
- this._st.push(current);
5579
- break;
5580
5612
  }
5581
- }
5582
- this._i += 1;
5583
- if (this._i === this._l) {
5584
- if (this._m === 2) {
5585
- this._sw(
5586
- 0
5587
- /* String */
5588
- );
5589
- } else if (this._m === 1) {
5590
- throw new TypeError("41", { cause: `${this._i}` });
5613
+ return acc;
5614
+ }, createContext());
5615
+ if (parsed.mode === 2) {
5616
+ parsed.literals.pop();
5617
+ parsed.literals.append(parsed.variables.pop());
5618
+ }
5619
+ parsed.literals.forEach((value, index, literals) => {
5620
+ if (index < literals.length - 1) {
5621
+ literals[index] = value.slice(0, -2);
5591
5622
  }
5592
- this._fs();
5593
- this._d = true;
5594
- }
5595
- }
5596
- _c() {
5597
- const rawLiterals = [...this._li];
5598
- const literals = Object.assign([], rawLiterals);
5599
- Object.defineProperty(literals, "raw", { value: rawLiterals, writable: false });
5600
- return {
5601
- literals,
5602
- variables: this._v
5603
- };
5604
- }
5605
- run() {
5606
- while (!this._d) {
5607
- this._nx();
5623
+ });
5624
+ return parsed;
5625
+ };
5626
+ let done = input.length === 0;
5627
+ return {
5628
+ run: () => {
5629
+ let context;
5630
+ if (!done) {
5631
+ context = parse2();
5632
+ done = true;
5633
+ }
5634
+ const { literals, variables } = context != null ? context : createContext();
5635
+ return createLiteralsTemplate(literals, variables);
5608
5636
  }
5609
- return this._c();
5610
- }
5611
- }
5637
+ };
5638
+ };
5612
5639
  const digest = async (input, algorithm = "SHA-1") => window.crypto.subtle.digest(
5613
5640
  algorithm,
5614
5641
  new TextEncoder().encode(input)
5615
5642
  );
5616
5643
  const cache = /* @__PURE__ */ new Map();
5617
- async function lexer(input) {
5644
+ const lexer = async (input) => {
5618
5645
  const hash = await digest(input).catch((err) => {
5619
- logger_default.error("40", input, err.message);
5646
+ logger_default.logger.error("40", input, err.message);
5620
5647
  });
5621
5648
  if (!hash || !cache.has(hash)) {
5622
- let result;
5623
- try {
5624
- result = new Lexer2(input).run();
5625
- hash && cache.set(hash, result);
5626
- } catch (err) {
5627
- if (err instanceof TypeError) {
5628
- logger_default.error(err.message, input, err.cause);
5629
- }
5630
- const literals = [];
5631
- Object.defineProperty(literals, "raw", { value: literals, writable: false });
5632
- result = { literals, variables: [] };
5633
- }
5649
+ const result = createLexer(input).run();
5650
+ hash && cache.set(hash, result);
5634
5651
  return result;
5635
5652
  }
5636
5653
  return cache.get(hash);
5637
- }
5654
+ };
5638
5655
  class Bus extends ReplaySubject {
5639
5656
  }
5640
5657
  function createPool() {
@@ -5675,6 +5692,7 @@ async function premount(config2, proxyWindow = window, reporter2 = console.error
5675
5692
  var _a2;
5676
5693
  let uris = [];
5677
5694
  let importmap;
5695
+ let modules = {};
5678
5696
  let done = Promise.resolve();
5679
5697
  if (config2.sources) {
5680
5698
  const { sources } = config2;
@@ -5687,13 +5705,18 @@ async function premount(config2, proxyWindow = window, reporter2 = console.error
5687
5705
  uris = parseSources(sources);
5688
5706
  if (uris.length > 0) {
5689
5707
  done = Promise.all(uris.map(
5690
- (uri) => proxyWindow.importShim(uri).catch(reporter2)
5708
+ (uri) => proxyWindow.importShim(uri).then((module) => {
5709
+ modules = {
5710
+ ...modules,
5711
+ [uri]: module
5712
+ };
5713
+ }).catch(reporter2)
5691
5714
  ));
5692
5715
  }
5693
5716
  }
5694
5717
  return done.then(() => ({
5695
5718
  ...config2,
5696
- sources: { importmap, uris }
5719
+ sources: { importmap, modules, uris }
5697
5720
  }));
5698
5721
  }
5699
5722
  async function render(config2, container, context = {}) {
@@ -6064,12 +6087,13 @@ const ctrlSpaceFactory = (channels) => {
6064
6087
  }
6065
6088
  };
6066
6089
  };
6090
+ const isValidModule = (module) => typeof module === "object" && module !== null && "libraryName" in module && typeof module.libraryName === "string" && "components" in module && Array.isArray(module.components);
6067
6091
  const extractConstructor = ([tag, promise]) => from(promise.then((constructor) => [tag, constructor]));
6068
6092
  const extractManifest = ([
6069
6093
  tag,
6070
6094
  extras
6071
6095
  ]) => {
6072
- const defaultManifest = { label: tag, properties: {}, type: "layout" };
6096
+ const defaultManifest = { label: tag.name, properties: {}, type: "layout" };
6073
6097
  const {
6074
6098
  __manifest = Promise.resolve(defaultManifest)
6075
6099
  } = extras;
@@ -6080,7 +6104,7 @@ const extractManifest = ([
6080
6104
  });
6081
6105
  return from(promise);
6082
6106
  };
6083
- const requireInfo = (registry, tags) => from(tags.map((tag) => [tag, registry.whenDefined(tag)])).pipe(
6107
+ const requireInfo = (registry, tags) => from(tags.map((tag) => [tag, registry.whenDefined(tag.name)])).pipe(
6084
6108
  mergeMap(extractConstructor),
6085
6109
  mergeMap(extractManifest)
6086
6110
  );
@@ -6091,9 +6115,9 @@ const reporter = (postChannel, err) => {
6091
6115
  }
6092
6116
  };
6093
6117
  const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
6094
- mergeMap(([, { __manifest: { label, description, ...rest }, tag }]) => {
6118
+ mergeMap(([, { __manifest: { label, description, descriptionLong, ...rest }, tag }]) => {
6095
6119
  delete rest.mocks;
6096
- return of({ info: { ...translateObject({ description, label }), ...rest }, tag });
6120
+ return of({ info: { libraryName: tag.libraryName, source: tag.source, ...translateObject({ description, descriptionLong, label }), ...rest }, tag: tag.name });
6097
6121
  }),
6098
6122
  bufferTime(BUFFER_TIME),
6099
6123
  filter((newInfos) => newInfos.length > 0)
@@ -6103,7 +6127,7 @@ const collectInfos = (postChannel, info$, addInfo) => info$.pipe(
6103
6127
  });
6104
6128
  const collectMocks = (postChannel, subjects, info$) => info$.pipe(
6105
6129
  map(
6106
- ([, { __manifest: { mocks = {} }, tag }]) => [tag, mocks]
6130
+ ([, { __manifest: { mocks = {} }, tag }]) => [tag.name, mocks]
6107
6131
  )
6108
6132
  ).subscribe({
6109
6133
  error: (error2) => reporter(postChannel, error2),
@@ -6117,7 +6141,6 @@ async function bootstrap(postChannel, channels, config2, {
6117
6141
  }) {
6118
6142
  const { subscription } = this;
6119
6143
  if (config2) {
6120
- const info$ = requireInfo(this.customElements, tags);
6121
6144
  return premount(
6122
6145
  config2,
6123
6146
  this,
@@ -6125,7 +6148,21 @@ async function bootstrap(postChannel, channels, config2, {
6125
6148
  reporter(postChannel, err);
6126
6149
  addInfo([]);
6127
6150
  }
6128
- ).then(() => {
6151
+ ).then((resolvedConfig) => {
6152
+ const allTags = Object.entries(resolvedConfig.sources.modules).reduce((acc, [uri, module]) => {
6153
+ if (isValidModule(module.default)) {
6154
+ const { components, libraryName } = module.default;
6155
+ const libTags = components.map((component) => ({ libraryName, name: component, source: uri }));
6156
+ acc.push(...libTags);
6157
+ }
6158
+ return acc;
6159
+ }, []);
6160
+ tags.forEach((tag) => {
6161
+ if (allTags.find((currTag) => currTag.name === tag) === void 0) {
6162
+ allTags.push({ name: tag, source: "" });
6163
+ }
6164
+ });
6165
+ const info$ = requireInfo(this.customElements, allTags);
6129
6166
  subscription.add(collectInfos(postChannel, info$, addInfo));
6130
6167
  subscription.add(collectMocks(postChannel, channels, info$));
6131
6168
  });
@@ -6145,7 +6182,7 @@ const getPreviewContainer = (frame, root) => {
6145
6182
  async function update(content, container) {
6146
6183
  const eventBus = createPool();
6147
6184
  const { proxyWindow = this } = this;
6148
- return render({ content, sources: { importmap: {}, uris: [] } }, getPreviewContainer(this, container), { eventBus, proxyWindow });
6185
+ return render({ content, sources: { importmap: {}, modules: {}, uris: [] } }, getPreviewContainer(this, container), { eventBus, proxyWindow });
6149
6186
  }
6150
6187
  function unmount(root) {
6151
6188
  getPreviewContainer(this, root).remove();
@@ -6722,7 +6759,13 @@ function registerParentWindowSenders(chs) {
6722
6759
  type: "ctrl-space"
6723
6760
  }))
6724
6761
  );
6725
- return () => subscription.unsubscribe();
6762
+ return () => {
6763
+ this.send({
6764
+ content: {},
6765
+ type: "unload"
6766
+ });
6767
+ subscription.unsubscribe();
6768
+ };
6726
6769
  }
6727
6770
  function registerServiceWorkerSenders(channels) {
6728
6771
  const subscription = new Subscription();
@@ -6783,3 +6826,9 @@ function registerCleanups(window2, fns) {
6783
6826
  console.error("[preview] Error Boundary: ".concat(String(err)));
6784
6827
  throw err;
6785
6828
  });
6829
+ function __vite__mapDeps(indexes) {
6830
+ if (!__vite__mapDeps.viteFileDeps) {
6831
+ __vite__mapDeps.viteFileDeps = []
6832
+ }
6833
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6834
+ }