@industry-theme/backlogmd-kanban-panel 1.0.35 → 1.0.37

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.
@@ -33,7 +33,7 @@ function isDocument(node2) {
33
33
  } = getWindow(node2);
34
34
  return node2 instanceof Document;
35
35
  }
36
- function isHTMLElement$1(node2) {
36
+ function isHTMLElement$2(node2) {
37
37
  if (isWindow(node2)) {
38
38
  return false;
39
39
  }
@@ -55,7 +55,7 @@ function getOwnerDocument(target) {
55
55
  if (isDocument(target)) {
56
56
  return target;
57
57
  }
58
- if (isHTMLElement$1(target) || isSVGElement(target)) {
58
+ if (isHTMLElement$2(target) || isSVGElement(target)) {
59
59
  return target.ownerDocument;
60
60
  }
61
61
  return document;
@@ -731,7 +731,7 @@ function getScrollableAncestors(element2, limit) {
731
731
  scrollParents.push(node2.scrollingElement);
732
732
  return scrollParents;
733
733
  }
734
- if (!isHTMLElement$1(node2) || isSVGElement(node2)) {
734
+ if (!isHTMLElement$2(node2) || isSVGElement(node2)) {
735
735
  return scrollParents;
736
736
  }
737
737
  if (scrollParents.includes(node2)) {
@@ -770,7 +770,7 @@ function getScrollableElement(element2) {
770
770
  if (isDocument(element2) || element2 === getOwnerDocument(element2).scrollingElement) {
771
771
  return window;
772
772
  }
773
- if (isHTMLElement$1(element2)) {
773
+ if (isHTMLElement$2(element2)) {
774
774
  return element2;
775
775
  }
776
776
  return null;
@@ -2204,7 +2204,7 @@ function getMeasurableNode(node2) {
2204
2204
  return node2;
2205
2205
  }
2206
2206
  const firstChild = node2.children[0];
2207
- return isHTMLElement$1(firstChild) ? firstChild : node2;
2207
+ return isHTMLElement$2(firstChild) ? firstChild : node2;
2208
2208
  }
2209
2209
  function useDragOverlayMeasuring(_ref) {
2210
2210
  let {
@@ -2215,7 +2215,7 @@ function useDragOverlayMeasuring(_ref) {
2215
2215
  for (const {
2216
2216
  target
2217
2217
  } of entries) {
2218
- if (isHTMLElement$1(target)) {
2218
+ if (isHTMLElement$2(target)) {
2219
2219
  setRect((rect2) => {
2220
2220
  const newRect = measure(target);
2221
2221
  return rect2 ? {
@@ -3740,7 +3740,7 @@ const createLucideIcon = (iconName, iconNode) => {
3740
3740
  * This source code is licensed under the ISC license.
3741
3741
  * See the LICENSE file in the root directory of this source tree.
3742
3742
  */
3743
- const __iconNode$l = [
3743
+ const __iconNode$m = [
3744
3744
  ["path", { d: "M12 8V4H8", key: "hb8ula" }],
3745
3745
  ["rect", { width: "16", height: "12", x: "4", y: "8", rx: "2", key: "enze0r" }],
3746
3746
  ["path", { d: "M2 14h2", key: "vft8re" }],
@@ -3748,75 +3748,75 @@ const __iconNode$l = [
3748
3748
  ["path", { d: "M15 13v2", key: "1xurst" }],
3749
3749
  ["path", { d: "M9 13v2", key: "rq6x2g" }]
3750
3750
  ];
3751
- const Bot = createLucideIcon("bot", __iconNode$l);
3751
+ const Bot = createLucideIcon("bot", __iconNode$m);
3752
3752
  /**
3753
3753
  * @license lucide-react v0.552.0 - ISC
3754
3754
  *
3755
3755
  * This source code is licensed under the ISC license.
3756
3756
  * See the LICENSE file in the root directory of this source tree.
3757
3757
  */
3758
- const __iconNode$k = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
3759
- const Check = createLucideIcon("check", __iconNode$k);
3758
+ const __iconNode$l = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
3759
+ const Check = createLucideIcon("check", __iconNode$l);
3760
3760
  /**
3761
3761
  * @license lucide-react v0.552.0 - ISC
3762
3762
  *
3763
3763
  * This source code is licensed under the ISC license.
3764
3764
  * See the LICENSE file in the root directory of this source tree.
3765
3765
  */
3766
- const __iconNode$j = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
3767
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$j);
3766
+ const __iconNode$k = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
3767
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$k);
3768
3768
  /**
3769
3769
  * @license lucide-react v0.552.0 - ISC
3770
3770
  *
3771
3771
  * This source code is licensed under the ISC license.
3772
3772
  * See the LICENSE file in the root directory of this source tree.
3773
3773
  */
3774
- const __iconNode$i = [
3774
+ const __iconNode$j = [
3775
3775
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3776
3776
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
3777
3777
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
3778
3778
  ];
3779
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$i);
3779
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$j);
3780
3780
  /**
3781
3781
  * @license lucide-react v0.552.0 - ISC
3782
3782
  *
3783
3783
  * This source code is licensed under the ISC license.
3784
3784
  * See the LICENSE file in the root directory of this source tree.
3785
3785
  */
3786
- const __iconNode$h = [
3786
+ const __iconNode$i = [
3787
3787
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
3788
3788
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
3789
3789
  ];
3790
- const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$h);
3790
+ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$i);
3791
3791
  /**
3792
3792
  * @license lucide-react v0.552.0 - ISC
3793
3793
  *
3794
3794
  * This source code is licensed under the ISC license.
3795
3795
  * See the LICENSE file in the root directory of this source tree.
3796
3796
  */
3797
- const __iconNode$g = [
3797
+ const __iconNode$h = [
3798
3798
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
3799
3799
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
3800
3800
  ];
3801
- const CircleCheck = createLucideIcon("circle-check", __iconNode$g);
3801
+ const CircleCheck = createLucideIcon("circle-check", __iconNode$h);
3802
3802
  /**
3803
3803
  * @license lucide-react v0.552.0 - ISC
3804
3804
  *
3805
3805
  * This source code is licensed under the ISC license.
3806
3806
  * See the LICENSE file in the root directory of this source tree.
3807
3807
  */
3808
- const __iconNode$f = [
3808
+ const __iconNode$g = [
3809
3809
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
3810
3810
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
3811
3811
  ];
3812
- const Copy = createLucideIcon("copy", __iconNode$f);
3812
+ const Copy = createLucideIcon("copy", __iconNode$g);
3813
3813
  /**
3814
3814
  * @license lucide-react v0.552.0 - ISC
3815
3815
  *
3816
3816
  * This source code is licensed under the ISC license.
3817
3817
  * See the LICENSE file in the root directory of this source tree.
3818
3818
  */
3819
- const __iconNode$e = [
3819
+ const __iconNode$f = [
3820
3820
  ["path", { d: "m15 15 6 6", key: "1s409w" }],
3821
3821
  ["path", { d: "m15 9 6-6", key: "ko1vev" }],
3822
3822
  ["path", { d: "M21 16v5h-5", key: "1ck2sf" }],
@@ -3826,26 +3826,26 @@ const __iconNode$e = [
3826
3826
  ["path", { d: "M3 8V3h5", key: "1ln10m" }],
3827
3827
  ["path", { d: "M9 9 3 3", key: "v551iv" }]
3828
3828
  ];
3829
- const Expand = createLucideIcon("expand", __iconNode$e);
3829
+ const Expand = createLucideIcon("expand", __iconNode$f);
3830
3830
  /**
3831
3831
  * @license lucide-react v0.552.0 - ISC
3832
3832
  *
3833
3833
  * This source code is licensed under the ISC license.
3834
3834
  * See the LICENSE file in the root directory of this source tree.
3835
3835
  */
3836
- const __iconNode$d = [
3836
+ const __iconNode$e = [
3837
3837
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
3838
3838
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
3839
3839
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
3840
3840
  ];
3841
- const ExternalLink = createLucideIcon("external-link", __iconNode$d);
3841
+ const ExternalLink = createLucideIcon("external-link", __iconNode$e);
3842
3842
  /**
3843
3843
  * @license lucide-react v0.552.0 - ISC
3844
3844
  *
3845
3845
  * This source code is licensed under the ISC license.
3846
3846
  * See the LICENSE file in the root directory of this source tree.
3847
3847
  */
3848
- const __iconNode$c = [
3848
+ const __iconNode$d = [
3849
3849
  [
3850
3850
  "path",
3851
3851
  {
@@ -3858,14 +3858,14 @@ const __iconNode$c = [
3858
3858
  ["path", { d: "M16 13H8", key: "t4e002" }],
3859
3859
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
3860
3860
  ];
3861
- const FileText = createLucideIcon("file-text", __iconNode$c);
3861
+ const FileText = createLucideIcon("file-text", __iconNode$d);
3862
3862
  /**
3863
3863
  * @license lucide-react v0.552.0 - ISC
3864
3864
  *
3865
3865
  * This source code is licensed under the ISC license.
3866
3866
  * See the LICENSE file in the root directory of this source tree.
3867
3867
  */
3868
- const __iconNode$b = [
3868
+ const __iconNode$c = [
3869
3869
  ["path", { d: "M12 10v6", key: "1bos4e" }],
3870
3870
  ["path", { d: "M9 13h6", key: "1uhe8q" }],
3871
3871
  [
@@ -3876,35 +3876,35 @@ const __iconNode$b = [
3876
3876
  }
3877
3877
  ]
3878
3878
  ];
3879
- const FolderPlus = createLucideIcon("folder-plus", __iconNode$b);
3879
+ const FolderPlus = createLucideIcon("folder-plus", __iconNode$c);
3880
3880
  /**
3881
3881
  * @license lucide-react v0.552.0 - ISC
3882
3882
  *
3883
3883
  * This source code is licensed under the ISC license.
3884
3884
  * See the LICENSE file in the root directory of this source tree.
3885
3885
  */
3886
- const __iconNode$a = [
3886
+ const __iconNode$b = [
3887
3887
  ["line", { x1: "6", x2: "6", y1: "3", y2: "15", key: "17qcm7" }],
3888
3888
  ["circle", { cx: "18", cy: "6", r: "3", key: "1h7g24" }],
3889
3889
  ["circle", { cx: "6", cy: "18", r: "3", key: "fqmcym" }],
3890
3890
  ["path", { d: "M18 9a9 9 0 0 1-9 9", key: "n2h4wq" }]
3891
3891
  ];
3892
- const GitBranch = createLucideIcon("git-branch", __iconNode$a);
3892
+ const GitBranch = createLucideIcon("git-branch", __iconNode$b);
3893
3893
  /**
3894
3894
  * @license lucide-react v0.552.0 - ISC
3895
3895
  *
3896
3896
  * This source code is licensed under the ISC license.
3897
3897
  * See the LICENSE file in the root directory of this source tree.
3898
3898
  */
3899
- const __iconNode$9 = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3900
- const LoaderCircle = createLucideIcon("loader-circle", __iconNode$9);
3899
+ const __iconNode$a = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]];
3900
+ const LoaderCircle = createLucideIcon("loader-circle", __iconNode$a);
3901
3901
  /**
3902
3902
  * @license lucide-react v0.552.0 - ISC
3903
3903
  *
3904
3904
  * This source code is licensed under the ISC license.
3905
3905
  * See the LICENSE file in the root directory of this source tree.
3906
3906
  */
3907
- const __iconNode$8 = [
3907
+ const __iconNode$9 = [
3908
3908
  ["path", { d: "M12 13v8", key: "1l5pq0" }],
3909
3909
  ["path", { d: "M12 3v3", key: "1n5kay" }],
3910
3910
  [
@@ -3915,37 +3915,37 @@ const __iconNode$8 = [
3915
3915
  }
3916
3916
  ]
3917
3917
  ];
3918
- const Milestone = createLucideIcon("milestone", __iconNode$8);
3918
+ const Milestone = createLucideIcon("milestone", __iconNode$9);
3919
3919
  /**
3920
3920
  * @license lucide-react v0.552.0 - ISC
3921
3921
  *
3922
3922
  * This source code is licensed under the ISC license.
3923
3923
  * See the LICENSE file in the root directory of this source tree.
3924
3924
  */
3925
- const __iconNode$7 = [
3925
+ const __iconNode$8 = [
3926
3926
  ["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
3927
3927
  ["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
3928
3928
  ["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
3929
3929
  ];
3930
- const Monitor = createLucideIcon("monitor", __iconNode$7);
3930
+ const Monitor = createLucideIcon("monitor", __iconNode$8);
3931
3931
  /**
3932
3932
  * @license lucide-react v0.552.0 - ISC
3933
3933
  *
3934
3934
  * This source code is licensed under the ISC license.
3935
3935
  * See the LICENSE file in the root directory of this source tree.
3936
3936
  */
3937
- const __iconNode$6 = [
3937
+ const __iconNode$7 = [
3938
3938
  ["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
3939
3939
  ["path", { d: "M2 12H22", key: "1m8cig" }]
3940
3940
  ];
3941
- const MoveRight = createLucideIcon("move-right", __iconNode$6);
3941
+ const MoveRight = createLucideIcon("move-right", __iconNode$7);
3942
3942
  /**
3943
3943
  * @license lucide-react v0.552.0 - ISC
3944
3944
  *
3945
3945
  * This source code is licensed under the ISC license.
3946
3946
  * See the LICENSE file in the root directory of this source tree.
3947
3947
  */
3948
- const __iconNode$5 = [
3948
+ const __iconNode$6 = [
3949
3949
  [
3950
3950
  "path",
3951
3951
  {
@@ -3954,31 +3954,56 @@ const __iconNode$5 = [
3954
3954
  }
3955
3955
  ]
3956
3956
  ];
3957
- const Play = createLucideIcon("play", __iconNode$5);
3957
+ const Play = createLucideIcon("play", __iconNode$6);
3958
3958
  /**
3959
3959
  * @license lucide-react v0.552.0 - ISC
3960
3960
  *
3961
3961
  * This source code is licensed under the ISC license.
3962
3962
  * See the LICENSE file in the root directory of this source tree.
3963
3963
  */
3964
- const __iconNode$4 = [
3964
+ const __iconNode$5 = [
3965
3965
  ["path", { d: "M5 12h14", key: "1ays0h" }],
3966
3966
  ["path", { d: "M12 5v14", key: "s699le" }]
3967
3967
  ];
3968
- const Plus = createLucideIcon("plus", __iconNode$4);
3968
+ const Plus = createLucideIcon("plus", __iconNode$5);
3969
3969
  /**
3970
3970
  * @license lucide-react v0.552.0 - ISC
3971
3971
  *
3972
3972
  * This source code is licensed under the ISC license.
3973
3973
  * See the LICENSE file in the root directory of this source tree.
3974
3974
  */
3975
- const __iconNode$3 = [
3975
+ const __iconNode$4 = [
3976
3976
  ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
3977
3977
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
3978
3978
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
3979
3979
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
3980
3980
  ];
3981
- const RefreshCw = createLucideIcon("refresh-cw", __iconNode$3);
3981
+ const RefreshCw = createLucideIcon("refresh-cw", __iconNode$4);
3982
+ /**
3983
+ * @license lucide-react v0.552.0 - ISC
3984
+ *
3985
+ * This source code is licensed under the ISC license.
3986
+ * See the LICENSE file in the root directory of this source tree.
3987
+ */
3988
+ const __iconNode$3 = [
3989
+ [
3990
+ "path",
3991
+ {
3992
+ d: "M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",
3993
+ key: "m3kijz"
3994
+ }
3995
+ ],
3996
+ [
3997
+ "path",
3998
+ {
3999
+ d: "m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",
4000
+ key: "1fmvmk"
4001
+ }
4002
+ ],
4003
+ ["path", { d: "M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0", key: "1f8sc4" }],
4004
+ ["path", { d: "M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5", key: "qeys4" }]
4005
+ ];
4006
+ const Rocket = createLucideIcon("rocket", __iconNode$3);
3982
4007
  /**
3983
4008
  * @license lucide-react v0.552.0 - ISC
3984
4009
  *
@@ -4509,14 +4534,14 @@ function determinePivotIndices$1(groupId, dragHandleId, panelGroupElement) {
4509
4534
  const index2 = getResizeHandleElementIndex$1(groupId, dragHandleId, panelGroupElement);
4510
4535
  return index2 != null ? [index2, index2 + 1] : [-1, -1];
4511
4536
  }
4512
- function isHTMLElement(target) {
4537
+ function isHTMLElement$1(target) {
4513
4538
  if (target instanceof HTMLElement) {
4514
4539
  return true;
4515
4540
  }
4516
4541
  return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
4517
4542
  }
4518
4543
  function getPanelGroupElement$1(id, rootElement = document) {
4519
- if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
4544
+ if (isHTMLElement$1(rootElement) && rootElement.dataset.panelGroupId == id) {
4520
4545
  return rootElement;
4521
4546
  }
4522
4547
  const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
@@ -5525,11 +5550,11 @@ function panelDataHelper$1(panelDataArray, panelData, layout) {
5525
5550
  pivotIndices
5526
5551
  };
5527
5552
  }
5528
- function C(e) {
5553
+ function C$1(e) {
5529
5554
  return { "--panel-background": e.colors.background, "--panel-border": e.colors.border, "--panel-handle": e.colors.backgroundSecondary, "--panel-handle-hover": e.colors.backgroundHover, "--panel-handle-active": e.colors.primary, "--panel-button-bg": e.colors.surface, "--panel-button-hover": e.colors.backgroundHover, "--panel-button-border": e.colors.border, "--panel-button-icon": e.colors.textSecondary, "--panel-accent-bg": e.colors.primary + "15" };
5530
5555
  }
5531
- const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPanelWidth: u = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m, preventKeyboardScroll: f = true, disableSwipe: g = false }, v) => {
5532
- const b = useRef(null), y = C(d);
5556
+ const z$1 = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPanelWidth: u = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m, preventKeyboardScroll: f = true, disableSwipe: g = false }, v) => {
5557
+ const b = useRef(null), y = C$1(d);
5533
5558
  useImperativeHandle(v, () => ({ scrollToPanel: (e) => {
5534
5559
  if (!b.current) return;
5535
5560
  const t = b.current, n = t.children[e];
@@ -5559,8 +5584,8 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
5559
5584
  };
5560
5585
  }, [f]);
5561
5586
  const w = o.length, x = 2 * u;
5562
- let S2;
5563
- S2 = 1 === w || 2 === w ? "100%" : `max(${u}px, ${100 * p2}%)`;
5587
+ let S;
5588
+ S = 1 === w || 2 === w ? "100%" : `max(${u}px, ${100 * p2}%)`;
5564
5589
  const R = React2__default.useId().replace(/:/g, "_");
5565
5590
  return jsxs(Fragment, { children: [
5566
5591
  2 === w && /* @__PURE__ */ jsx("style", { children: `
@@ -5573,7 +5598,7 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
5573
5598
  }
5574
5599
  }
5575
5600
  ` }),
5576
- /* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a}`, style: { ...y, ...s2, "--snap-carousel-min-width": `${u}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": S2, "--snap-carousel-panel-count": w, "--snap-carousel-two-panel-threshold": `${x}px` }, onScroll: (e) => {
5601
+ /* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a}`, style: { ...y, ...s2, "--snap-carousel-min-width": `${u}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": S, "--snap-carousel-panel-count": w, "--snap-carousel-two-panel-threshold": `${x}px` }, onScroll: (e) => {
5577
5602
  if (!m || !b.current || 0 === b.current.children.length) return;
5578
5603
  const t = b.current, n = t.getBoundingClientRect().left;
5579
5604
  let r2 = 0, o2 = 1 / 0;
@@ -5585,41 +5610,41 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
5585
5610
  }, "data-panel-count": w, "data-carousel-id": R, children: o.map((t, n) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t }, n)) })
5586
5611
  ] });
5587
5612
  });
5588
- z.displayName = "SnapCarousel";
5589
- var le$1, se$1;
5590
- (se$1 = le$1 || (le$1 = {})).DragStart = "dragStart", se$1.DragMove = "dragMove", se$1.DragEnd = "dragEnd", se$1.DragCancel = "dragCancel", se$1.DragOver = "dragOver", se$1.RegisterDroppable = "registerDroppable", se$1.SetDroppableDisabled = "setDroppableDisabled", se$1.UnregisterDroppable = "unregisterDroppable";
5591
- const de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
5592
- var Te$1, Ae;
5593
- (Ae = Te$1 || (Te$1 = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
5594
- var _e$1, je$1, He$1, Ke$1;
5595
- (je$1 = _e$1 || (_e$1 = {})).Click = "click", je$1.DragStart = "dragstart", je$1.Keydown = "keydown", je$1.ContextMenu = "contextmenu", je$1.Resize = "resize", je$1.SelectionChange = "selectionchange", je$1.VisibilityChange = "visibilitychange", (Ke$1 = He$1 || (He$1 = {})).Space = "Space", Ke$1.Down = "ArrowDown", Ke$1.Right = "ArrowRight", Ke$1.Left = "ArrowLeft", Ke$1.Up = "ArrowUp", Ke$1.Esc = "Escape", Ke$1.Enter = "Enter", Ke$1.Tab = "Tab";
5613
+ z$1.displayName = "SnapCarousel";
5614
+ var le$2, se$1;
5615
+ (se$1 = le$2 || (le$2 = {})).DragStart = "dragStart", se$1.DragMove = "dragMove", se$1.DragEnd = "dragEnd", se$1.DragCancel = "dragCancel", se$1.DragOver = "dragOver", se$1.RegisterDroppable = "registerDroppable", se$1.SetDroppableDisabled = "setDroppableDisabled", se$1.UnregisterDroppable = "unregisterDroppable";
5616
+ const de$1 = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
5617
+ var Te$1, Ae$1;
5618
+ (Ae$1 = Te$1 || (Te$1 = {}))[Ae$1.Forward = 1] = "Forward", Ae$1[Ae$1.Backward = -1] = "Backward";
5619
+ var _e$2, je$1, He$1, Ke$1;
5620
+ (je$1 = _e$2 || (_e$2 = {})).Click = "click", je$1.DragStart = "dragstart", je$1.Keydown = "keydown", je$1.ContextMenu = "contextmenu", je$1.Resize = "resize", je$1.SelectionChange = "selectionchange", je$1.VisibilityChange = "visibilitychange", (Ke$1 = He$1 || (He$1 = {})).Space = "Space", Ke$1.Down = "ArrowDown", Ke$1.Right = "ArrowRight", Ke$1.Left = "ArrowLeft", Ke$1.Up = "ArrowUp", Ke$1.Esc = "Escape", Ke$1.Enter = "Enter", Ke$1.Tab = "Tab";
5596
5621
  ({ start: [He$1.Space, He$1.Enter], cancel: [He$1.Esc], end: [He$1.Space, He$1.Enter, He$1.Tab] });
5597
- var rt, ot$1;
5598
- (ot$1 = rt || (rt = {}))[ot$1.RightClick = 2] = "RightClick";
5599
- var at, lt$1, st$1, ct$1;
5600
- (lt$1 = at || (at = {}))[lt$1.Pointer = 0] = "Pointer", lt$1[lt$1.DraggableRect = 1] = "DraggableRect", (ct$1 = st$1 || (st$1 = {}))[ct$1.TreeOrder = 0] = "TreeOrder", ct$1[ct$1.ReversedTreeOrder = 1] = "ReversedTreeOrder";
5622
+ var rt$1, ot$1;
5623
+ (ot$1 = rt$1 || (rt$1 = {}))[ot$1.RightClick = 2] = "RightClick";
5624
+ var at$1, lt$1, st$1, ct$1;
5625
+ (lt$1 = at$1 || (at$1 = {}))[lt$1.Pointer = 0] = "Pointer", lt$1[lt$1.DraggableRect = 1] = "DraggableRect", (ct$1 = st$1 || (st$1 = {}))[ct$1.TreeOrder = 0] = "TreeOrder", ct$1[ct$1.ReversedTreeOrder = 1] = "ReversedTreeOrder";
5601
5626
  ({ x: { [Te$1.Backward]: false, [Te$1.Forward]: false }, y: { [Te$1.Backward]: false, [Te$1.Forward]: false } });
5602
- var pt, ht$1, mt$1;
5603
- (ht$1 = pt || (pt = {}))[ht$1.Always = 0] = "Always", ht$1[ht$1.BeforeDragging = 1] = "BeforeDragging", ht$1[ht$1.WhileDragging = 2] = "WhileDragging", (mt$1 || (mt$1 = {})).Optimized = "optimized";
5604
- ({ droppable: { strategy: pt.WhileDragging, frequency: mt$1.Optimized } });
5605
- /* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
5606
- var $t, Bt$1;
5607
- (Bt$1 = $t || ($t = {}))[Bt$1.Uninitialized = 0] = "Uninitialized", Bt$1[Bt$1.Initializing = 1] = "Initializing", Bt$1[Bt$1.Initialized = 2] = "Initialized";
5608
- var Ut;
5627
+ var pt$1, ht$1, mt$1;
5628
+ (ht$1 = pt$1 || (pt$1 = {}))[ht$1.Always = 0] = "Always", ht$1[ht$1.BeforeDragging = 1] = "BeforeDragging", ht$1[ht$1.WhileDragging = 2] = "WhileDragging", (mt$1 || (mt$1 = {})).Optimized = "optimized";
5629
+ ({ droppable: { strategy: pt$1.WhileDragging, frequency: mt$1.Optimized } });
5630
+ /* @__PURE__ */ createContext({ ...de$1, scaleX: 1, scaleY: 1 });
5631
+ var $t$1, Bt$1;
5632
+ (Bt$1 = $t$1 || ($t$1 = {}))[Bt$1.Uninitialized = 0] = "Uninitialized", Bt$1[Bt$1.Initializing = 1] = "Initializing", Bt$1[Bt$1.Initialized = 2] = "Initialized";
5633
+ var Ut$1;
5609
5634
  (() => {
5610
5635
  if ("undefined" != typeof window) {
5611
5636
  const e = window;
5612
5637
  return e.__principlemd_theme_context__ || (e.__principlemd_theme_context__ = createContext(void 0)), e.__principlemd_theme_context__;
5613
5638
  }
5614
- return Ut || (Ut = createContext(void 0)), Ut;
5639
+ return Ut$1 || (Ut$1 = createContext(void 0)), Ut$1;
5615
5640
  })();
5616
- var _e = Object.defineProperty;
5617
- var Ee = (o, e, t) => e in o ? _e(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
5618
- var le = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
5641
+ var _e$1 = Object.defineProperty;
5642
+ var Ee = (o, e, t) => e in o ? _e$1(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
5643
+ var le$1 = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
5619
5644
  class De {
5620
5645
  constructor() {
5621
- le(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
5622
- le(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
5646
+ le$1(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
5647
+ le$1(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
5623
5648
  }
5624
5649
  /**
5625
5650
  * Load all user-created workspace presets
@@ -6086,7 +6111,7 @@ class O {
6086
6111
  Object.keys(e).length;
6087
6112
  }
6088
6113
  }
6089
- le(O, "adapter", new De());
6114
+ le$1(O, "adapter", new De());
6090
6115
  function gt(o, e, t, r2) {
6091
6116
  useEffect(() => {
6092
6117
  const s2 = e.on(
@@ -6100,6 +6125,11 @@ function gt(o, e, t, r2) {
6100
6125
  };
6101
6126
  }, [o, e, t, r2]);
6102
6127
  }
6128
+ const DEFAULT_TASK_STATUSES = {
6129
+ TODO: "To Do",
6130
+ IN_PROGRESS: "In Progress",
6131
+ DONE: "Done"
6132
+ };
6103
6133
  function parseTaskMarkdown(content2, filePath) {
6104
6134
  const { frontmatter, title, rawContent, acceptanceCriteria, description } = parseMarkdownContent(content2);
6105
6135
  const id = extractIdFromPath(filePath);
@@ -6777,7 +6807,11 @@ class Core {
6777
6807
  }
6778
6808
  const dirName = this.projectRoot.split("/").pop() || "Backlog";
6779
6809
  const projectName = options.projectName || dirName;
6780
- const statuses = options.statuses || ["To Do", "In Progress", "Done"];
6810
+ const statuses = options.statuses || [
6811
+ DEFAULT_TASK_STATUSES.TODO,
6812
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
6813
+ DEFAULT_TASK_STATUSES.DONE
6814
+ ];
6781
6815
  const config = {
6782
6816
  projectName,
6783
6817
  statuses,
@@ -7501,18 +7535,28 @@ class Core {
7501
7535
  * @returns Created task
7502
7536
  */
7503
7537
  async createTask(input) {
7504
- var _a, _b;
7538
+ var _a, _b, _c, _d, _e2;
7505
7539
  this.ensureInitialized();
7506
7540
  const tasksDir = this.getTasksDir();
7507
7541
  await this.fs.createDir(tasksDir, { recursive: true });
7508
- const existingIds = Array.from(this.tasks.keys()).map((id) => parseInt(id.replace(/\D/g, ""), 10)).filter((n) => !Number.isNaN(n));
7542
+ const existingIds = Array.from(this.lazyInitialized ? this.taskIndex.keys() : this.tasks.keys()).map((id) => parseInt(id.replace(/\D/g, ""), 10)).filter((n) => !Number.isNaN(n));
7509
7543
  const nextId = existingIds.length > 0 ? Math.max(...existingIds) + 1 : 1;
7510
7544
  const taskId = String(nextId);
7545
+ const configStatuses = ((_a = this.config) == null ? void 0 : _a.statuses) || [
7546
+ DEFAULT_TASK_STATUSES.TODO,
7547
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
7548
+ DEFAULT_TASK_STATUSES.DONE
7549
+ ];
7550
+ let status = input.status || ((_b = this.config) == null ? void 0 : _b.defaultStatus) || DEFAULT_TASK_STATUSES.TODO;
7551
+ if (!configStatuses.includes(status)) {
7552
+ console.warn(`Warning: Status "${status}" is not in configured statuses [${configStatuses.join(", ")}]. Using default status "${((_c = this.config) == null ? void 0 : _c.defaultStatus) || DEFAULT_TASK_STATUSES.TODO}" instead.`);
7553
+ status = ((_d = this.config) == null ? void 0 : _d.defaultStatus) || DEFAULT_TASK_STATUSES.TODO;
7554
+ }
7511
7555
  const now = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
7512
7556
  const task = {
7513
7557
  id: taskId,
7514
7558
  title: input.title,
7515
- status: input.status || ((_a = this.config) == null ? void 0 : _a.defaultStatus) || "To Do",
7559
+ status,
7516
7560
  priority: input.priority,
7517
7561
  assignee: input.assignee || [],
7518
7562
  createdDate: now,
@@ -7524,7 +7568,7 @@ class Core {
7524
7568
  description: input.description,
7525
7569
  implementationPlan: input.implementationPlan,
7526
7570
  implementationNotes: input.implementationNotes,
7527
- acceptanceCriteriaItems: (_b = input.acceptanceCriteria) == null ? void 0 : _b.map((ac, i) => ({
7571
+ acceptanceCriteriaItems: (_e2 = input.acceptanceCriteria) == null ? void 0 : _e2.map((ac, i) => ({
7528
7572
  index: i + 1,
7529
7573
  text: ac.text,
7530
7574
  checked: ac.checked || false
@@ -7539,6 +7583,15 @@ class Core {
7539
7583
  await this.fs.writeFile(filepath, content2);
7540
7584
  task.filePath = filepath;
7541
7585
  this.tasks.set(taskId, task);
7586
+ if (this.lazyInitialized) {
7587
+ const relativePath = filepath.replace(this.projectRoot + "/", "");
7588
+ this.taskIndex.set(taskId, {
7589
+ id: taskId,
7590
+ filePath: relativePath,
7591
+ title: task.title,
7592
+ source: "tasks"
7593
+ });
7594
+ }
7542
7595
  if (input.milestone) {
7543
7596
  await this.addTaskToMilestone(taskId, input.milestone);
7544
7597
  }
@@ -7913,16 +7966,11 @@ class PanelFileSystemAdapter {
7913
7966
  return path2.replace(/^\/+/, "").replace(/\/+$/, "").replace(/\/+/g, "/");
7914
7967
  }
7915
7968
  }
7916
- const STATUS_DISPLAY_LABELS = {
7917
- "todo": "To Do",
7918
- "in-progress": "In Progress",
7919
- "done": "Done"
7920
- };
7921
- const COLUMN_TO_STATUS = {
7922
- "todo": "To Do",
7923
- "in-progress": "In Progress",
7924
- "done": "Done"
7925
- };
7969
+ const STATUS_COLUMNS = [
7970
+ DEFAULT_TASK_STATUSES.TODO,
7971
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
7972
+ DEFAULT_TASK_STATUSES.DONE
7973
+ ];
7926
7974
  const DEFAULT_TASKS_LIMIT = 20;
7927
7975
  function useKanbanData(options) {
7928
7976
  const {
@@ -7973,11 +8021,9 @@ function useKanbanData(options) {
7973
8021
  }, []);
7974
8022
  const fileTreeVersionRef = useRef(null);
7975
8023
  const buildColumnStates = useCallback((allTasks) => {
7976
- const statusColumns2 = ["todo", "in-progress", "done"];
7977
8024
  const newColumnStates = /* @__PURE__ */ new Map();
7978
- for (const column of statusColumns2) {
7979
- const status = COLUMN_TO_STATUS[column];
7980
- const columnTasks = allTasks.filter((t) => t.status === status);
8025
+ for (const column of STATUS_COLUMNS) {
8026
+ const columnTasks = allTasks.filter((t) => t.status === column);
7981
8027
  newColumnStates.set(column, {
7982
8028
  tasks: columnTasks,
7983
8029
  total: columnTasks.length,
@@ -8154,7 +8200,7 @@ function useKanbanData(options) {
8154
8200
  );
8155
8201
  const moveTaskOptimistic = useCallback(
8156
8202
  (taskId, toColumn) => {
8157
- const newStatus = COLUMN_TO_STATUS[toColumn];
8203
+ const newStatus = toColumn;
8158
8204
  setTasks((prev) => {
8159
8205
  const newTasks = prev.map(
8160
8206
  (t) => t.id === taskId ? { ...t, status: newStatus } : t
@@ -8173,7 +8219,7 @@ function useKanbanData(options) {
8173
8219
  },
8174
8220
  [tasks]
8175
8221
  );
8176
- const statusColumns = ["todo", "in-progress", "done"];
8222
+ const statusColumns = STATUS_COLUMNS;
8177
8223
  const tasksByStatus = (() => {
8178
8224
  const result = /* @__PURE__ */ new Map();
8179
8225
  for (const column of statusColumns) {
@@ -8868,6 +8914,102 @@ const EmptyState = ({
8868
8914
  )
8869
8915
  ] });
8870
8916
  };
8917
+ const BoardEmptyState = ({
8918
+ onAddTask,
8919
+ canWrite
8920
+ }) => {
8921
+ const { theme: theme2 } = useTheme();
8922
+ return /* @__PURE__ */ jsxs(
8923
+ "div",
8924
+ {
8925
+ style: {
8926
+ display: "flex",
8927
+ flexDirection: "column",
8928
+ alignItems: "center",
8929
+ justifyContent: "center",
8930
+ height: "100%",
8931
+ padding: "48px 24px",
8932
+ textAlign: "center",
8933
+ color: theme2.colors.textMuted
8934
+ },
8935
+ children: [
8936
+ /* @__PURE__ */ jsx(
8937
+ Rocket,
8938
+ {
8939
+ size: 64,
8940
+ color: theme2.colors.textMuted,
8941
+ style: { marginBottom: "24px", opacity: 0.5 }
8942
+ }
8943
+ ),
8944
+ /* @__PURE__ */ jsx(
8945
+ "h3",
8946
+ {
8947
+ style: {
8948
+ fontSize: theme2.fontSizes[4],
8949
+ fontWeight: 600,
8950
+ color: theme2.colors.text,
8951
+ marginBottom: "12px"
8952
+ },
8953
+ children: "Your backlog is empty!"
8954
+ }
8955
+ ),
8956
+ /* @__PURE__ */ jsx(
8957
+ "p",
8958
+ {
8959
+ style: {
8960
+ fontSize: theme2.fontSizes[2],
8961
+ color: theme2.colors.textMuted,
8962
+ marginBottom: "32px",
8963
+ maxWidth: "480px",
8964
+ lineHeight: 1.6
8965
+ },
8966
+ children: "Ready to get started? Add your first task to begin organizing your work."
8967
+ }
8968
+ ),
8969
+ canWrite ? /* @__PURE__ */ jsxs(
8970
+ "button",
8971
+ {
8972
+ onClick: onAddTask,
8973
+ style: {
8974
+ display: "inline-flex",
8975
+ alignItems: "center",
8976
+ gap: "8px",
8977
+ padding: "12px 24px",
8978
+ backgroundColor: theme2.colors.primary,
8979
+ color: theme2.colors.textOnPrimary,
8980
+ borderRadius: theme2.radii[2],
8981
+ border: "none",
8982
+ fontSize: theme2.fontSizes[2],
8983
+ fontWeight: 500,
8984
+ cursor: "pointer",
8985
+ transition: "opacity 0.2s"
8986
+ },
8987
+ onMouseEnter: (e) => {
8988
+ e.currentTarget.style.opacity = "0.9";
8989
+ },
8990
+ onMouseLeave: (e) => {
8991
+ e.currentTarget.style.opacity = "1";
8992
+ },
8993
+ children: [
8994
+ /* @__PURE__ */ jsx(Plus, { size: 16 }),
8995
+ /* @__PURE__ */ jsx("span", { children: "Add Task" })
8996
+ ]
8997
+ }
8998
+ ) : /* @__PURE__ */ jsx(
8999
+ "p",
9000
+ {
9001
+ style: {
9002
+ fontSize: theme2.fontSizes[1],
9003
+ color: theme2.colors.textMuted,
9004
+ fontStyle: "italic"
9005
+ },
9006
+ children: "You don't have permission to add tasks"
9007
+ }
9008
+ )
9009
+ ]
9010
+ }
9011
+ );
9012
+ };
8871
9013
  const TaskModal = ({
8872
9014
  isOpen,
8873
9015
  onClose,
@@ -9921,7 +10063,7 @@ const KanbanPanel = ({
9921
10063
  var _a, _b;
9922
10064
  const { theme: theme2 } = useTheme();
9923
10065
  const [selectedTaskId, setSelectedTaskId] = useState(null);
9924
- const [selectedTab, setSelectedTab] = useState("todo");
10066
+ const [selectedTab, setSelectedTab] = useState(DEFAULT_TASK_STATUSES.TODO);
9925
10067
  const [isNarrowView, setIsNarrowView] = useState(false);
9926
10068
  const kanbanPanelRef = useRef(null);
9927
10069
  const [viewMode, setViewMode] = useState("board");
@@ -9982,6 +10124,7 @@ const KanbanPanel = ({
9982
10124
  totalTasksState,
9983
10125
  loadMoreTasks,
9984
10126
  error,
10127
+ isLoading,
9985
10128
  isBacklogProject,
9986
10129
  refreshData,
9987
10130
  moveTaskOptimistic,
@@ -10040,12 +10183,7 @@ const KanbanPanel = ({
10040
10183
  const targetColumn = over.id;
10041
10184
  const task = getTaskById(taskId);
10042
10185
  if (!task) return;
10043
- const statusToColumn = {
10044
- "To Do": "todo",
10045
- "In Progress": "in-progress",
10046
- "Done": "done"
10047
- };
10048
- const currentColumn = statusToColumn[task.status] || "todo";
10186
+ const currentColumn = task.status || DEFAULT_TASK_STATUSES.TODO;
10049
10187
  if (currentColumn !== targetColumn) {
10050
10188
  moveTaskOptimistic(taskId, targetColumn);
10051
10189
  }
@@ -10182,7 +10320,11 @@ const KanbanPanel = ({
10182
10320
  });
10183
10321
  }
10184
10322
  };
10185
- const availableStatuses = ["To Do", "In Progress", "Done"];
10323
+ const availableStatuses = [
10324
+ DEFAULT_TASK_STATUSES.TODO,
10325
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
10326
+ DEFAULT_TASK_STATUSES.DONE
10327
+ ];
10186
10328
  const currentError = viewMode === "board" ? error : milestonesError;
10187
10329
  return /* @__PURE__ */ jsxs(
10188
10330
  "div",
@@ -10531,7 +10673,13 @@ const KanbanPanel = ({
10531
10673
  canInitialize,
10532
10674
  onInitialize: handleInitialize
10533
10675
  }
10534
- ) : viewMode === "board" ? /* @__PURE__ */ jsxs(
10676
+ ) : viewMode === "board" ? !isLoading && totalTasksState.total === 0 ? /* @__PURE__ */ jsx(
10677
+ BoardEmptyState,
10678
+ {
10679
+ onAddTask: handleOpenNewTask,
10680
+ canWrite
10681
+ }
10682
+ ) : /* @__PURE__ */ jsxs(
10535
10683
  DndContext,
10536
10684
  {
10537
10685
  sensors,
@@ -10586,7 +10734,7 @@ const KanbanPanel = ({
10586
10734
  gap: "6px"
10587
10735
  },
10588
10736
  children: [
10589
- STATUS_DISPLAY_LABELS[status],
10737
+ status,
10590
10738
  /* @__PURE__ */ jsx(
10591
10739
  "span",
10592
10740
  {
@@ -10636,7 +10784,7 @@ const KanbanPanel = ({
10636
10784
  KanbanColumn,
10637
10785
  {
10638
10786
  columnId: status,
10639
- status: STATUS_DISPLAY_LABELS[status],
10787
+ status,
10640
10788
  tasks: columnTasks,
10641
10789
  onTaskClick: handleTaskClick,
10642
10790
  fullWidth: isNarrowView,
@@ -50089,6 +50237,96 @@ var TransformComponent = function(_a) {
50089
50237
  React2__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
50090
50238
  );
50091
50239
  };
50240
+ var isInjected = false;
50241
+ function injectHighlightStyles() {
50242
+ if (isInjected || typeof document === "undefined") {
50243
+ return;
50244
+ }
50245
+ const existingStyle = document.getElementById("themed-markdown-highlight-css");
50246
+ if (existingStyle) {
50247
+ isInjected = true;
50248
+ return;
50249
+ }
50250
+ const css2 = `
50251
+ pre code.hljs {
50252
+ display: block;
50253
+ overflow-x: auto;
50254
+ padding: 1em
50255
+ }
50256
+ code.hljs {
50257
+ padding: 3px 5px
50258
+ }
50259
+
50260
+ .hljs {
50261
+ color: #abb2bf;
50262
+ background: #282c34
50263
+ }
50264
+ .hljs-comment,
50265
+ .hljs-quote {
50266
+ color: #5c6370;
50267
+ font-style: italic
50268
+ }
50269
+ .hljs-doctag,
50270
+ .hljs-keyword,
50271
+ .hljs-formula {
50272
+ color: #c678dd
50273
+ }
50274
+ .hljs-section,
50275
+ .hljs-name,
50276
+ .hljs-selector-tag,
50277
+ .hljs-deletion,
50278
+ .hljs-subst {
50279
+ color: #e06c75
50280
+ }
50281
+ .hljs-literal {
50282
+ color: #56b6c2
50283
+ }
50284
+ .hljs-string,
50285
+ .hljs-regexp,
50286
+ .hljs-addition,
50287
+ .hljs-attribute,
50288
+ .hljs-meta .hljs-string {
50289
+ color: #98c379
50290
+ }
50291
+ .hljs-attr,
50292
+ .hljs-variable,
50293
+ .hljs-template-variable,
50294
+ .hljs-type,
50295
+ .hljs-selector-class,
50296
+ .hljs-selector-attr,
50297
+ .hljs-selector-pseudo,
50298
+ .hljs-number {
50299
+ color: #d19a66
50300
+ }
50301
+ .hljs-symbol,
50302
+ .hljs-bullet,
50303
+ .hljs-link,
50304
+ .hljs-meta,
50305
+ .hljs-selector-id,
50306
+ .hljs-title {
50307
+ color: #61aeee
50308
+ }
50309
+ .hljs-built_in,
50310
+ .hljs-title.class_,
50311
+ .hljs-class .hljs-title {
50312
+ color: #e6c07b
50313
+ }
50314
+ .hljs-emphasis {
50315
+ font-style: italic
50316
+ }
50317
+ .hljs-strong {
50318
+ font-weight: bold
50319
+ }
50320
+ .hljs-link {
50321
+ text-decoration: underline
50322
+ }`;
50323
+ const styleElement = document.createElement("style");
50324
+ styleElement.id = "themed-markdown-highlight-css";
50325
+ styleElement.textContent = css2;
50326
+ document.head.appendChild(styleElement);
50327
+ isInjected = true;
50328
+ }
50329
+ injectHighlightStyles();
50092
50330
  var terminalTheme = {
50093
50331
  space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
50094
50332
  fonts: {
@@ -50126,52 +50364,53 @@ var terminalTheme = {
50126
50364
  zIndices: [0, 1, 10, 20, 30, 40, 50],
50127
50365
  colors: {
50128
50366
  text: "#e4e4e4",
50129
- background: "rgba(10, 10, 10, 0.85)",
50367
+ background: "#0a0a0a",
50130
50368
  primary: "#66b3ff",
50131
50369
  secondary: "#80c4ff",
50132
50370
  accent: "#66ff99",
50133
- highlight: "rgba(102, 179, 255, 0.15)",
50134
- muted: "rgba(26, 26, 26, 0.8)",
50371
+ highlight: "#18283d",
50372
+ muted: "#1a1a1a",
50135
50373
  success: "#66ff99",
50136
50374
  warning: "#ffcc66",
50137
50375
  error: "#ff6666",
50138
50376
  info: "#66b3ff",
50139
- border: "rgba(255, 255, 255, 0.1)",
50140
- backgroundSecondary: "rgba(15, 15, 15, 0.9)",
50141
- backgroundTertiary: "rgba(20, 20, 20, 0.9)",
50142
- backgroundLight: "rgba(255, 255, 255, 0.05)",
50143
- backgroundHover: "rgba(102, 179, 255, 0.08)",
50144
- surface: "rgba(15, 15, 15, 0.95)",
50145
- textSecondary: "rgba(255, 255, 255, 0.7)",
50146
- textTertiary: "rgba(255, 255, 255, 0.5)",
50147
- textMuted: "rgba(255, 255, 255, 0.4)",
50148
- highlightBg: "rgba(255, 235, 59, 0.25)",
50149
- highlightBorder: "rgba(255, 235, 59, 0.5)"
50377
+ border: "#1a1a1a",
50378
+ backgroundSecondary: "#0f0f0f",
50379
+ backgroundTertiary: "#141414",
50380
+ backgroundLight: "#0d0d0d",
50381
+ backgroundHover: "#0d1520",
50382
+ surface: "#0f0f0f",
50383
+ textSecondary: "#b3b3b3",
50384
+ textTertiary: "#808080",
50385
+ textMuted: "#666666",
50386
+ highlightBg: "#40391e",
50387
+ highlightBorder: "#7f7530",
50388
+ textOnPrimary: "#ffffff"
50150
50389
  },
50151
50390
  modes: {
50152
50391
  light: {
50153
50392
  text: "#1a1a1a",
50154
- background: "rgba(255, 255, 255, 0.9)",
50393
+ background: "#ffffff",
50155
50394
  primary: "#0066cc",
50156
50395
  secondary: "#0052a3",
50157
50396
  accent: "#00cc88",
50158
- highlight: "rgba(0, 102, 204, 0.08)",
50159
- muted: "rgba(245, 245, 245, 0.8)",
50397
+ highlight: "#e6f2ff",
50398
+ muted: "#f5f5f5",
50160
50399
  success: "#00cc88",
50161
50400
  warning: "#ffaa00",
50162
50401
  error: "#ff3333",
50163
50402
  info: "#0066cc",
50164
- border: "rgba(0, 0, 0, 0.1)",
50165
- backgroundSecondary: "rgba(250, 250, 250, 0.9)",
50166
- backgroundTertiary: "rgba(245, 245, 245, 0.9)",
50167
- backgroundLight: "rgba(0, 0, 0, 0.02)",
50168
- backgroundHover: "rgba(0, 102, 204, 0.04)",
50169
- surface: "rgba(255, 255, 255, 0.95)",
50170
- textSecondary: "rgba(0, 0, 0, 0.6)",
50171
- textTertiary: "rgba(0, 0, 0, 0.4)",
50172
- textMuted: "rgba(0, 0, 0, 0.3)",
50173
- highlightBg: "rgba(255, 235, 59, 0.3)",
50174
- highlightBorder: "rgba(255, 235, 59, 0.6)"
50403
+ border: "#e6e6e6",
50404
+ backgroundSecondary: "#fafafa",
50405
+ backgroundTertiary: "#f5f5f5",
50406
+ backgroundLight: "#fafafa",
50407
+ backgroundHover: "#f5f9fd",
50408
+ surface: "#ffffff",
50409
+ textSecondary: "#666666",
50410
+ textTertiary: "#999999",
50411
+ textMuted: "#b3b3b3",
50412
+ highlightBg: "#fff9c4",
50413
+ highlightBorder: "#fff389"
50175
50414
  }
50176
50415
  },
50177
50416
  buttons: {
@@ -51488,8 +51727,8 @@ var createIndustryMarkdownComponents = ({
51488
51727
  };
51489
51728
  const darkMode = getLuminance(theme2.colors.background) < 0.5;
51490
51729
  const headerStyles = {};
51491
- if (index2 === 0 && slideHeaderMarginTopOverride) {
51492
- headerStyles.marginTop = `${slideHeaderMarginTopOverride}px`;
51730
+ if (index2 === 0) {
51731
+ headerStyles.marginTop = slideHeaderMarginTopOverride ? `${slideHeaderMarginTopOverride}px` : 0;
51493
51732
  }
51494
51733
  return {
51495
51734
  h1: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h1", {
@@ -51498,9 +51737,11 @@ var createIndustryMarkdownComponents = ({
51498
51737
  fontSize: theme2.fontSizes[5],
51499
51738
  lineHeight: theme2.lineHeights.heading,
51500
51739
  fontWeight: theme2.fontWeights.bold,
51501
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51740
+ marginTop: theme2.space[4],
51502
51741
  marginBottom: theme2.space[4],
51503
51742
  fontFamily: theme2.fonts.heading,
51743
+ paddingBottom: theme2.space[2],
51744
+ borderBottom: `1px solid ${theme2.colors.border}`,
51504
51745
  ...headerStyles
51505
51746
  },
51506
51747
  ...props
@@ -51511,9 +51752,11 @@ var createIndustryMarkdownComponents = ({
51511
51752
  fontSize: theme2.fontSizes[4],
51512
51753
  lineHeight: theme2.lineHeights.heading,
51513
51754
  fontWeight: theme2.fontWeights.bold,
51514
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51755
+ marginTop: theme2.space[4],
51515
51756
  marginBottom: theme2.space[3],
51516
51757
  fontFamily: theme2.fonts.heading,
51758
+ paddingBottom: theme2.space[2],
51759
+ borderBottom: `1px solid ${theme2.colors.border}`,
51517
51760
  ...headerStyles
51518
51761
  },
51519
51762
  ...props
@@ -51524,12 +51767,48 @@ var createIndustryMarkdownComponents = ({
51524
51767
  fontSize: theme2.fontSizes[3],
51525
51768
  lineHeight: theme2.lineHeights.heading,
51526
51769
  fontWeight: theme2.fontWeights.semibold,
51527
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51770
+ marginTop: theme2.space[4],
51528
51771
  marginBottom: theme2.space[3],
51529
51772
  fontFamily: theme2.fonts.heading
51530
51773
  },
51531
51774
  ...props
51532
51775
  }, children2),
51776
+ h4: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h4", {
51777
+ style: {
51778
+ color: theme2.colors.text,
51779
+ fontSize: theme2.fontSizes[2],
51780
+ lineHeight: theme2.lineHeights.heading,
51781
+ fontWeight: theme2.fontWeights.semibold,
51782
+ marginTop: theme2.space[3],
51783
+ marginBottom: theme2.space[2],
51784
+ fontFamily: theme2.fonts.heading
51785
+ },
51786
+ ...props
51787
+ }, children2),
51788
+ h5: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h5", {
51789
+ style: {
51790
+ color: theme2.colors.text,
51791
+ fontSize: theme2.fontSizes[1],
51792
+ lineHeight: theme2.lineHeights.heading,
51793
+ fontWeight: theme2.fontWeights.semibold,
51794
+ marginTop: theme2.space[3],
51795
+ marginBottom: theme2.space[1],
51796
+ fontFamily: theme2.fonts.heading
51797
+ },
51798
+ ...props
51799
+ }, children2),
51800
+ h6: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h6", {
51801
+ style: {
51802
+ color: theme2.colors.text,
51803
+ fontSize: theme2.fontSizes[1],
51804
+ lineHeight: theme2.lineHeights.heading,
51805
+ fontWeight: theme2.fontWeights.medium,
51806
+ marginTop: theme2.space[3],
51807
+ marginBottom: theme2.space[1],
51808
+ fontFamily: theme2.fonts.heading
51809
+ },
51810
+ ...props
51811
+ }, children2),
51533
51812
  p: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("p", {
51534
51813
  style: {
51535
51814
  color: theme2.colors.text,
@@ -51892,7 +52171,7 @@ var createIndustryMarkdownComponents = ({
51892
52171
  }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
51893
52172
  style: {
51894
52173
  margin: 0,
51895
- padding: theme2.space[5],
52174
+ padding: theme2.space[1],
51896
52175
  backgroundColor: "transparent",
51897
52176
  fontSize: theme2.fontSizes[1],
51898
52177
  lineHeight: theme2.lineHeights.body,
@@ -51919,7 +52198,7 @@ var createIndustryMarkdownComponents = ({
51919
52198
  })) : /* @__PURE__ */ React2__default.createElement("pre", {
51920
52199
  style: {
51921
52200
  margin: 0,
51922
- padding: theme2.space[4],
52201
+ padding: theme2.space[1],
51923
52202
  backgroundColor: "transparent",
51924
52203
  overflow: "auto",
51925
52204
  fontSize: theme2.fontSizes[1],
@@ -52635,29 +52914,25 @@ var fontTransitionCSS = `
52635
52914
  font-size: 1rem !important; /* Fixed size for checkbox labels */
52636
52915
  }
52637
52916
 
52638
- /* Remove top margin from headings when they're the first element */
52639
- .markdown-slide > :first-child h1:first-child,
52640
- .markdown-slide > :first-child h2:first-child,
52641
- .markdown-slide > :first-child h3:first-child,
52642
- .markdown-slide > :first-child h4:first-child,
52643
- .markdown-slide > :first-child h5:first-child,
52644
- .markdown-slide > :first-child h6:first-child {
52917
+ /* Remove top margin from any first element - must override inline styles */
52918
+ .markdown-slide > *:first-child,
52919
+ .markdown-slide > *:first-child > *:first-child {
52645
52920
  margin-top: 0 !important;
52646
52921
  }
52647
-
52648
- /* Also handle when heading is inside the first paragraph/div from ReactMarkdown */
52649
- .markdown-slide > div:first-child > h1:first-child,
52650
- .markdown-slide > div:first-child > h2:first-child,
52651
- .markdown-slide > div:first-child > h3:first-child,
52652
- .markdown-slide > div:first-child > h4:first-child,
52653
- .markdown-slide > div:first-child > h5:first-child,
52654
- .markdown-slide > div:first-child > h6:first-child,
52655
- .markdown-slide > p:first-child > h1:first-child,
52656
- .markdown-slide > p:first-child > h2:first-child,
52657
- .markdown-slide > p:first-child > h3:first-child,
52658
- .markdown-slide > p:first-child > h4:first-child,
52659
- .markdown-slide > p:first-child > h5:first-child,
52660
- .markdown-slide > p:first-child > h6:first-child {
52922
+
52923
+ /* Specifically target all possible first-child elements */
52924
+ .markdown-slide > h1:first-child,
52925
+ .markdown-slide > h2:first-child,
52926
+ .markdown-slide > h3:first-child,
52927
+ .markdown-slide > h4:first-child,
52928
+ .markdown-slide > h5:first-child,
52929
+ .markdown-slide > h6:first-child,
52930
+ .markdown-slide > p:first-child,
52931
+ .markdown-slide > ul:first-child,
52932
+ .markdown-slide > ol:first-child,
52933
+ .markdown-slide > div:first-child,
52934
+ .markdown-slide > blockquote:first-child,
52935
+ .markdown-slide > pre:first-child {
52661
52936
  margin-top: 0 !important;
52662
52937
  }
52663
52938
  `;
@@ -53383,7 +53658,6 @@ var panelConstraintFlags = /* @__PURE__ */ new Map();
53383
53658
  function reportConstraintsViolation(resizeHandleId, flag) {
53384
53659
  panelConstraintFlags.set(resizeHandleId, flag);
53385
53660
  }
53386
- new AbortController();
53387
53661
  function useForceUpdate() {
53388
53662
  const [_, setCount] = useState(0);
53389
53663
  return useCallback(() => setCount((prevCount) => prevCount + 1), []);
@@ -53547,7 +53821,7 @@ function adjustLayoutByDelta({
53547
53821
  if (!fuzzyNumbersEqual(prevSize, safeSize)) {
53548
53822
  deltaApplied += prevSize - safeSize;
53549
53823
  nextLayout[index2] = safeSize;
53550
- if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, {
53824
+ if (deltaApplied.toFixed(3).localeCompare(Math.abs(delta).toFixed(3), void 0, {
53551
53825
  numeric: true
53552
53826
  }) >= 0) {
53553
53827
  break;
@@ -53656,9 +53930,14 @@ function determinePivotIndices(groupId, dragHandleId, panelGroupElement) {
53656
53930
  const index2 = getResizeHandleElementIndex(groupId, dragHandleId, panelGroupElement);
53657
53931
  return index2 != null ? [index2, index2 + 1] : [-1, -1];
53658
53932
  }
53933
+ function isHTMLElement(target) {
53934
+ if (target instanceof HTMLElement) {
53935
+ return true;
53936
+ }
53937
+ return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
53938
+ }
53659
53939
  function getPanelGroupElement(id, rootElement = document) {
53660
- var _dataset;
53661
- if (rootElement instanceof HTMLElement && (rootElement === null || rootElement === void 0 ? void 0 : (_dataset = rootElement.dataset) === null || _dataset === void 0 ? void 0 : _dataset.panelGroupId) == id) {
53940
+ if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
53662
53941
  return rootElement;
53663
53942
  }
53664
53943
  const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
@@ -53976,11 +54255,11 @@ function computePanelFlexBoxStyle({
53976
54255
  const size = layout[panelIndex];
53977
54256
  let flexGrow;
53978
54257
  if (size == null) {
53979
- flexGrow = defaultSize != null ? defaultSize.toPrecision(precision) : "1";
54258
+ flexGrow = defaultSize != null ? defaultSize.toFixed(precision) : "1";
53980
54259
  } else if (panelData.length === 1) {
53981
54260
  flexGrow = "1";
53982
54261
  } else {
53983
- flexGrow = size.toPrecision(precision);
54262
+ flexGrow = size.toFixed(precision);
53984
54263
  }
53985
54264
  return {
53986
54265
  flexBasis: 0,
@@ -54762,23 +55041,26 @@ function panelDataHelper(panelDataArray, panelData, layout) {
54762
55041
  pivotIndices
54763
55042
  };
54764
55043
  }
54765
- function S(e2) {
55044
+ function C(e2) {
54766
55045
  return { "--panel-background": e2.colors.background, "--panel-border": e2.colors.border, "--panel-handle": e2.colors.backgroundSecondary, "--panel-handle-hover": e2.colors.backgroundHover, "--panel-handle-active": e2.colors.primary, "--panel-button-bg": e2.colors.surface, "--panel-button-hover": e2.colors.backgroundHover, "--panel-button-border": e2.colors.border, "--panel-button-icon": e2.colors.textSecondary, "--panel-accent-bg": e2.colors.primary + "15" };
54767
55046
  }
54768
- var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minPanelWidth: u2 = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m2, preventKeyboardScroll: f2 = true }, g) => {
54769
- const v = useRef(null), b = S(d2);
54770
- useImperativeHandle(g, () => ({ scrollToPanel: (e2) => {
54771
- if (!v.current)
55047
+ var z = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minPanelWidth: u2 = 350, idealPanelWidth: p2 = 0.333, showSeparator: h2 = false, onPanelChange: m2, preventKeyboardScroll: f2 = true, disableSwipe: g = false }, v) => {
55048
+ const b = useRef(null), y2 = useRef(false), w2 = useRef(null), x2 = C(d2);
55049
+ useImperativeHandle(v, () => ({ scrollToPanel: (e2) => {
55050
+ if (!b.current)
54772
55051
  return;
54773
- const t2 = v.current, n2 = t2.children[e2];
55052
+ const t2 = b.current, n2 = t2.children[e2];
54774
55053
  if (n2) {
55054
+ y2.current = true, w2.current && clearTimeout(w2.current);
54775
55055
  const e3 = n2.offsetLeft;
54776
- t2.scrollTo({ left: e3, behavior: "smooth" });
55056
+ t2.scrollTo({ left: e3, behavior: "smooth" }), w2.current = setTimeout(() => {
55057
+ y2.current = false;
55058
+ }, 500);
54777
55059
  }
54778
55060
  }, getCurrentPanel: () => {
54779
- if (!v.current || v.current.children.length === 0)
55061
+ if (!b.current || b.current.children.length === 0)
54780
55062
  return 0;
54781
- const e2 = v.current, t2 = e2.getBoundingClientRect().left;
55063
+ const e2 = b.current, t2 = e2.getBoundingClientRect().left;
54782
55064
  let n2 = 0, r2 = 1 / 0;
54783
55065
  for (let o3 = 0; o3 < e2.children.length; o3++) {
54784
55066
  const i2 = e2.children[o3].getBoundingClientRect(), a3 = Math.abs(i2.left - t2);
@@ -54787,9 +55069,9 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
54787
55069
  return n2;
54788
55070
  } }));
54789
55071
  useEffect(() => {
54790
- if (!f2 || !v.current)
55072
+ if (!f2 || !b.current)
54791
55073
  return;
54792
- const e2 = v.current, t2 = (e3) => {
55074
+ const e2 = b.current, t2 = (e3) => {
54793
55075
  const t3 = e3.target;
54794
55076
  if (t3.tagName === "INPUT" || t3.tagName === "TEXTAREA" || t3.tagName === "SELECT" || t3.isContentEditable || t3.closest(".xterm") !== null || t3.closest('[contenteditable="true"]') !== null)
54795
55077
  return;
@@ -54798,74 +55080,78 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
54798
55080
  return e2.addEventListener("keydown", t2), () => {
54799
55081
  e2.removeEventListener("keydown", t2);
54800
55082
  };
54801
- }, [f2]);
54802
- const y2 = o2.length, w2 = 2 * u2;
54803
- let x2;
54804
- x2 = y2 === 1 || y2 === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
54805
- const C2 = React2__default.useId().replace(/:/g, "_");
55083
+ }, [f2]), useEffect(() => () => {
55084
+ w2.current && clearTimeout(w2.current);
55085
+ }, []);
55086
+ const S = o2.length, R2 = 2 * u2;
55087
+ let N;
55088
+ N = S === 1 || S === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
55089
+ const E = React2__default.useId().replace(/:/g, "_");
54806
55090
  return jsxs(Fragment, { children: [
54807
- y2 === 2 && /* @__PURE__ */ jsx("style", { children: `
54808
- .snap-carousel-container[data-carousel-id="${C2}"][data-panel-count="2"] .snap-carousel-panel {
55091
+ S === 2 && /* @__PURE__ */ jsx("style", { children: `
55092
+ .snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
54809
55093
  width: 100%;
54810
55094
  }
54811
- @container (min-width: ${w2}px) {
54812
- .snap-carousel-container[data-carousel-id="${C2}"][data-panel-count="2"] .snap-carousel-panel {
55095
+ @container (min-width: ${R2}px) {
55096
+ .snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
54813
55097
  width: 50%;
54814
55098
  }
54815
55099
  }
54816
55100
  ` }),
54817
- /* @__PURE__ */ jsx("div", { ref: v, className: `snap-carousel-container ${a2}`, style: { ...b, ...s2, "--snap-carousel-min-width": `${u2}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": x2, "--snap-carousel-panel-count": y2, "--snap-carousel-two-panel-threshold": `${w2}px` }, onScroll: (e2) => {
54818
- if (!m2 || !v.current || v.current.children.length === 0)
55101
+ /* @__PURE__ */ jsx("div", { ref: b, className: `snap-carousel-container ${g ? "swipe-disabled" : ""} ${a2}`, style: { ...x2, ...s2, "--snap-carousel-min-width": `${u2}px`, "--snap-carousel-ideal-width": 100 * p2 + "%", "--snap-carousel-gap": h2 ? "1px" : "0px", "--snap-carousel-panel-width": N, "--snap-carousel-panel-count": S, "--snap-carousel-two-panel-threshold": `${R2}px` }, onScroll: (e2) => {
55102
+ if (!m2 || !b.current || b.current.children.length === 0)
54819
55103
  return;
54820
- const t2 = v.current, n2 = t2.getBoundingClientRect().left;
55104
+ if (y2.current)
55105
+ return;
55106
+ const t2 = b.current, n2 = t2.getBoundingClientRect().left;
54821
55107
  let r2 = 0, o3 = 1 / 0;
54822
55108
  for (let i2 = 0; i2 < t2.children.length; i2++) {
54823
55109
  const e3 = t2.children[i2].getBoundingClientRect(), a3 = Math.abs(e3.left - n2);
54824
55110
  a3 < o3 && (o3 = a3, r2 = i2);
54825
55111
  }
54826
55112
  m2(r2);
54827
- }, "data-panel-count": y2, "data-carousel-id": C2, children: o2.map((t2, n2) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t2 }, n2)) })
55113
+ }, "data-panel-count": S, "data-carousel-id": E, children: o2.map((t2, n2) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t2 }, n2)) })
54828
55114
  ] });
54829
55115
  });
54830
- M.displayName = "SnapCarousel";
55116
+ z.displayName = "SnapCarousel";
55117
+ var le;
54831
55118
  var se;
54832
- var ce;
54833
- (ce = se || (se = {})).DragStart = "dragStart", ce.DragMove = "dragMove", ce.DragEnd = "dragEnd", ce.DragCancel = "dragCancel", ce.DragOver = "dragOver", ce.RegisterDroppable = "registerDroppable", ce.SetDroppableDisabled = "setDroppableDisabled", ce.UnregisterDroppable = "unregisterDroppable";
54834
- var ue = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
55119
+ (se = le || (le = {})).DragStart = "dragStart", se.DragMove = "dragMove", se.DragEnd = "dragEnd", se.DragCancel = "dragCancel", se.DragOver = "dragOver", se.RegisterDroppable = "registerDroppable", se.SetDroppableDisabled = "setDroppableDisabled", se.UnregisterDroppable = "unregisterDroppable";
55120
+ var de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
54835
55121
  var Te;
54836
- var ke;
54837
- (ke = Te || (Te = {}))[ke.Forward = 1] = "Forward", ke[ke.Backward = -1] = "Backward";
55122
+ var Ae;
55123
+ (Ae = Te || (Te = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
55124
+ var _e;
54838
55125
  var je;
54839
55126
  var He;
54840
55127
  var Ke;
54841
- var Ue;
54842
- (He = je || (je = {})).Click = "click", He.DragStart = "dragstart", He.Keydown = "keydown", He.ContextMenu = "contextmenu", He.Resize = "resize", He.SelectionChange = "selectionchange", He.VisibilityChange = "visibilitychange", (Ue = Ke || (Ke = {})).Space = "Space", Ue.Down = "ArrowDown", Ue.Right = "ArrowRight", Ue.Left = "ArrowLeft", Ue.Up = "ArrowUp", Ue.Esc = "Escape", Ue.Enter = "Enter", Ue.Tab = "Tab";
54843
- ({ start: [Ke.Space, Ke.Enter], cancel: [Ke.Esc], end: [Ke.Space, Ke.Enter, Ke.Tab] });
55128
+ (je = _e || (_e = {})).Click = "click", je.DragStart = "dragstart", je.Keydown = "keydown", je.ContextMenu = "contextmenu", je.Resize = "resize", je.SelectionChange = "selectionchange", je.VisibilityChange = "visibilitychange", (Ke = He || (He = {})).Space = "Space", Ke.Down = "ArrowDown", Ke.Right = "ArrowRight", Ke.Left = "ArrowLeft", Ke.Up = "ArrowUp", Ke.Esc = "Escape", Ke.Enter = "Enter", Ke.Tab = "Tab";
55129
+ ({ start: [He.Space, He.Enter], cancel: [He.Esc], end: [He.Space, He.Enter, He.Tab] });
55130
+ var rt;
54844
55131
  var ot;
54845
- var it;
54846
- (it = ot || (ot = {}))[it.RightClick = 2] = "RightClick";
55132
+ (ot = rt || (rt = {}))[ot.RightClick = 2] = "RightClick";
55133
+ var at;
54847
55134
  var lt;
54848
55135
  var st;
54849
55136
  var ct;
54850
- var dt;
54851
- (st = lt || (lt = {}))[st.Pointer = 0] = "Pointer", st[st.DraggableRect = 1] = "DraggableRect", (dt = ct || (ct = {}))[dt.TreeOrder = 0] = "TreeOrder", dt[dt.ReversedTreeOrder = 1] = "ReversedTreeOrder";
55137
+ (lt = at || (at = {}))[lt.Pointer = 0] = "Pointer", lt[lt.DraggableRect = 1] = "DraggableRect", (ct = st || (st = {}))[ct.TreeOrder = 0] = "TreeOrder", ct[ct.ReversedTreeOrder = 1] = "ReversedTreeOrder";
54852
55138
  ({ x: { [Te.Backward]: false, [Te.Forward]: false }, y: { [Te.Backward]: false, [Te.Forward]: false } });
55139
+ var pt;
54853
55140
  var ht;
54854
55141
  var mt;
54855
- var ft;
54856
- (mt = ht || (ht = {}))[mt.Always = 0] = "Always", mt[mt.BeforeDragging = 1] = "BeforeDragging", mt[mt.WhileDragging = 2] = "WhileDragging", (ft || (ft = {})).Optimized = "optimized";
54857
- ({ droppable: { strategy: ht.WhileDragging, frequency: ft.Optimized } });
54858
- /* @__PURE__ */ createContext({ ...ue, scaleX: 1, scaleY: 1 });
55142
+ (ht = pt || (pt = {}))[ht.Always = 0] = "Always", ht[ht.BeforeDragging = 1] = "BeforeDragging", ht[ht.WhileDragging = 2] = "WhileDragging", (mt || (mt = {})).Optimized = "optimized";
55143
+ ({ droppable: { strategy: pt.WhileDragging, frequency: mt.Optimized } });
55144
+ /* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
55145
+ var $t;
54859
55146
  var Bt;
54860
- var Ot;
54861
- (Ot = Bt || (Bt = {}))[Ot.Uninitialized = 0] = "Uninitialized", Ot[Ot.Initializing = 1] = "Initializing", Ot[Ot.Initialized = 2] = "Initialized";
54862
- var Vt;
55147
+ (Bt = $t || ($t = {}))[Bt.Uninitialized = 0] = "Uninitialized", Bt[Bt.Initializing = 1] = "Initializing", Bt[Bt.Initialized = 2] = "Initialized";
55148
+ var Ut;
54863
55149
  (() => {
54864
55150
  if (typeof window != "undefined") {
54865
55151
  const e2 = window;
54866
55152
  return e2.__principlemd_theme_context__ || (e2.__principlemd_theme_context__ = createContext(void 0)), e2.__principlemd_theme_context__;
54867
55153
  }
54868
- return Vt || (Vt = createContext(void 0)), Vt;
55154
+ return Ut || (Ut = createContext(void 0)), Ut;
54869
55155
  })();
54870
55156
  var DocumentView = ({
54871
55157
  content: content2,