@industry-theme/github-panels 0.1.58 → 0.1.59

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.
@@ -2667,14 +2667,14 @@ function determinePivotIndices$1(groupId, dragHandleId, panelGroupElement) {
2667
2667
  const index2 = getResizeHandleElementIndex$1(groupId, dragHandleId, panelGroupElement);
2668
2668
  return index2 != null ? [index2, index2 + 1] : [-1, -1];
2669
2669
  }
2670
- function isHTMLElement(target) {
2670
+ function isHTMLElement$1(target) {
2671
2671
  if (target instanceof HTMLElement) {
2672
2672
  return true;
2673
2673
  }
2674
2674
  return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
2675
2675
  }
2676
2676
  function getPanelGroupElement$1(id, rootElement = document) {
2677
- if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
2677
+ if (isHTMLElement$1(rootElement) && rootElement.dataset.panelGroupId == id) {
2678
2678
  return rootElement;
2679
2679
  }
2680
2680
  const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
@@ -3683,11 +3683,11 @@ function panelDataHelper$1(panelDataArray, panelData, layout) {
3683
3683
  pivotIndices
3684
3684
  };
3685
3685
  }
3686
- function C(e) {
3686
+ function C$1(e) {
3687
3687
  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" };
3688
3688
  }
3689
- 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) => {
3690
- const b = useRef(null), y = C(d);
3689
+ 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) => {
3690
+ const b = useRef(null), y = C$1(d);
3691
3691
  useImperativeHandle(v, () => ({ scrollToPanel: (e) => {
3692
3692
  if (!b.current) return;
3693
3693
  const t = b.current, n = t.children[e];
@@ -3717,8 +3717,8 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
3717
3717
  };
3718
3718
  }, [f]);
3719
3719
  const w = o.length, x = 2 * u;
3720
- let S2;
3721
- S2 = 1 === w || 2 === w ? "100%" : `max(${u}px, ${100 * p2}%)`;
3720
+ let S;
3721
+ S = 1 === w || 2 === w ? "100%" : `max(${u}px, ${100 * p2}%)`;
3722
3722
  const R = React2__default.useId().replace(/:/g, "_");
3723
3723
  return jsxs(Fragment, { children: [
3724
3724
  2 === w && /* @__PURE__ */ jsx("style", { children: `
@@ -3731,7 +3731,7 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
3731
3731
  }
3732
3732
  }
3733
3733
  ` }),
3734
- /* @__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) => {
3734
+ /* @__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) => {
3735
3735
  if (!m || !b.current || 0 === b.current.children.length) return;
3736
3736
  const t = b.current, n = t.getBoundingClientRect().left;
3737
3737
  let r2 = 0, o2 = 1 / 0;
@@ -3743,41 +3743,41 @@ const z = forwardRef(({ panels: o, className: a = "", style: s2, theme: d, minPa
3743
3743
  }, "data-panel-count": w, "data-carousel-id": R, children: o.map((t, n) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t }, n)) })
3744
3744
  ] });
3745
3745
  });
3746
- z.displayName = "SnapCarousel";
3747
- var le$1, se$1;
3748
- (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";
3749
- const de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
3750
- var Te$1, Ae;
3751
- (Ae = Te$1 || (Te$1 = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
3752
- var _e$1, je$1, He$1, Ke$1;
3753
- (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";
3746
+ z$1.displayName = "SnapCarousel";
3747
+ var le$2, se$1;
3748
+ (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";
3749
+ const de$1 = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
3750
+ var Te$1, Ae$1;
3751
+ (Ae$1 = Te$1 || (Te$1 = {}))[Ae$1.Forward = 1] = "Forward", Ae$1[Ae$1.Backward = -1] = "Backward";
3752
+ var _e$2, je$1, He$1, Ke$1;
3753
+ (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";
3754
3754
  ({ start: [He$1.Space, He$1.Enter], cancel: [He$1.Esc], end: [He$1.Space, He$1.Enter, He$1.Tab] });
3755
- var rt, ot$1;
3756
- (ot$1 = rt || (rt = {}))[ot$1.RightClick = 2] = "RightClick";
3757
- var at, lt$1, st$1, ct$1;
3758
- (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";
3755
+ var rt$1, ot$1;
3756
+ (ot$1 = rt$1 || (rt$1 = {}))[ot$1.RightClick = 2] = "RightClick";
3757
+ var at$1, lt$1, st$1, ct$1;
3758
+ (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";
3759
3759
  ({ x: { [Te$1.Backward]: false, [Te$1.Forward]: false }, y: { [Te$1.Backward]: false, [Te$1.Forward]: false } });
3760
- var pt, ht$1, mt$1;
3761
- (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";
3762
- ({ droppable: { strategy: pt.WhileDragging, frequency: mt$1.Optimized } });
3763
- /* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
3764
- var $t, Bt$1;
3765
- (Bt$1 = $t || ($t = {}))[Bt$1.Uninitialized = 0] = "Uninitialized", Bt$1[Bt$1.Initializing = 1] = "Initializing", Bt$1[Bt$1.Initialized = 2] = "Initialized";
3766
- var Ut;
3760
+ var pt$1, ht$1, mt$1;
3761
+ (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";
3762
+ ({ droppable: { strategy: pt$1.WhileDragging, frequency: mt$1.Optimized } });
3763
+ /* @__PURE__ */ createContext({ ...de$1, scaleX: 1, scaleY: 1 });
3764
+ var $t$1, Bt$1;
3765
+ (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";
3766
+ var Ut$1;
3767
3767
  (() => {
3768
3768
  if ("undefined" != typeof window) {
3769
3769
  const e = window;
3770
3770
  return e.__principlemd_theme_context__ || (e.__principlemd_theme_context__ = createContext(void 0)), e.__principlemd_theme_context__;
3771
3771
  }
3772
- return Ut || (Ut = createContext(void 0)), Ut;
3772
+ return Ut$1 || (Ut$1 = createContext(void 0)), Ut$1;
3773
3773
  })();
3774
- var _e = Object.defineProperty;
3775
- var Ee = (o, e, t) => e in o ? _e(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
3776
- var le = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
3774
+ var _e$1 = Object.defineProperty;
3775
+ var Ee = (o, e, t) => e in o ? _e$1(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t;
3776
+ var le$1 = (o, e, t) => Ee(o, typeof e != "symbol" ? e + "" : e, t);
3777
3777
  class De {
3778
3778
  constructor() {
3779
- le(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
3780
- le(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
3779
+ le$1(this, "PRESETS_KEY", "panel-layouts:workspace-presets");
3780
+ le$1(this, "REPO_STATE_PREFIX", "panel-layouts:repo-state:");
3781
3781
  }
3782
3782
  /**
3783
3783
  * Load all user-created workspace presets
@@ -4244,7 +4244,7 @@ class O {
4244
4244
  Object.keys(e).length;
4245
4245
  }
4246
4246
  }
4247
- le(O, "adapter", new De());
4247
+ le$1(O, "adapter", new De());
4248
4248
  function gt(o, e, t, r2) {
4249
4249
  useEffect(() => {
4250
4250
  const s2 = e.on(
@@ -44329,6 +44329,96 @@ var TransformComponent = function(_a) {
44329
44329
  React2__default.createElement("div", __assign({}, contentProps, { ref: contentRef, className: "".concat(baseClasses.contentClass, " ").concat(styles.content, " ").concat(contentClass), style: contentStyle }), children2)
44330
44330
  );
44331
44331
  };
44332
+ var isInjected = false;
44333
+ function injectHighlightStyles() {
44334
+ if (isInjected || typeof document === "undefined") {
44335
+ return;
44336
+ }
44337
+ const existingStyle = document.getElementById("themed-markdown-highlight-css");
44338
+ if (existingStyle) {
44339
+ isInjected = true;
44340
+ return;
44341
+ }
44342
+ const css2 = `
44343
+ pre code.hljs {
44344
+ display: block;
44345
+ overflow-x: auto;
44346
+ padding: 1em
44347
+ }
44348
+ code.hljs {
44349
+ padding: 3px 5px
44350
+ }
44351
+
44352
+ .hljs {
44353
+ color: #abb2bf;
44354
+ background: #282c34
44355
+ }
44356
+ .hljs-comment,
44357
+ .hljs-quote {
44358
+ color: #5c6370;
44359
+ font-style: italic
44360
+ }
44361
+ .hljs-doctag,
44362
+ .hljs-keyword,
44363
+ .hljs-formula {
44364
+ color: #c678dd
44365
+ }
44366
+ .hljs-section,
44367
+ .hljs-name,
44368
+ .hljs-selector-tag,
44369
+ .hljs-deletion,
44370
+ .hljs-subst {
44371
+ color: #e06c75
44372
+ }
44373
+ .hljs-literal {
44374
+ color: #56b6c2
44375
+ }
44376
+ .hljs-string,
44377
+ .hljs-regexp,
44378
+ .hljs-addition,
44379
+ .hljs-attribute,
44380
+ .hljs-meta .hljs-string {
44381
+ color: #98c379
44382
+ }
44383
+ .hljs-attr,
44384
+ .hljs-variable,
44385
+ .hljs-template-variable,
44386
+ .hljs-type,
44387
+ .hljs-selector-class,
44388
+ .hljs-selector-attr,
44389
+ .hljs-selector-pseudo,
44390
+ .hljs-number {
44391
+ color: #d19a66
44392
+ }
44393
+ .hljs-symbol,
44394
+ .hljs-bullet,
44395
+ .hljs-link,
44396
+ .hljs-meta,
44397
+ .hljs-selector-id,
44398
+ .hljs-title {
44399
+ color: #61aeee
44400
+ }
44401
+ .hljs-built_in,
44402
+ .hljs-title.class_,
44403
+ .hljs-class .hljs-title {
44404
+ color: #e6c07b
44405
+ }
44406
+ .hljs-emphasis {
44407
+ font-style: italic
44408
+ }
44409
+ .hljs-strong {
44410
+ font-weight: bold
44411
+ }
44412
+ .hljs-link {
44413
+ text-decoration: underline
44414
+ }`;
44415
+ const styleElement = document.createElement("style");
44416
+ styleElement.id = "themed-markdown-highlight-css";
44417
+ styleElement.textContent = css2;
44418
+ document.head.appendChild(styleElement);
44419
+ isInjected = true;
44420
+ }
44421
+ injectHighlightStyles();
44332
44422
  var terminalTheme = {
44333
44423
  space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
44334
44424
  fonts: {
@@ -44366,52 +44456,53 @@ var terminalTheme = {
44366
44456
  zIndices: [0, 1, 10, 20, 30, 40, 50],
44367
44457
  colors: {
44368
44458
  text: "#e4e4e4",
44369
- background: "rgba(10, 10, 10, 0.85)",
44459
+ background: "#0a0a0a",
44370
44460
  primary: "#66b3ff",
44371
44461
  secondary: "#80c4ff",
44372
44462
  accent: "#66ff99",
44373
- highlight: "rgba(102, 179, 255, 0.15)",
44374
- muted: "rgba(26, 26, 26, 0.8)",
44463
+ highlight: "#18283d",
44464
+ muted: "#1a1a1a",
44375
44465
  success: "#66ff99",
44376
44466
  warning: "#ffcc66",
44377
44467
  error: "#ff6666",
44378
44468
  info: "#66b3ff",
44379
- border: "rgba(255, 255, 255, 0.1)",
44380
- backgroundSecondary: "rgba(15, 15, 15, 0.9)",
44381
- backgroundTertiary: "rgba(20, 20, 20, 0.9)",
44382
- backgroundLight: "rgba(255, 255, 255, 0.05)",
44383
- backgroundHover: "rgba(102, 179, 255, 0.08)",
44384
- surface: "rgba(15, 15, 15, 0.95)",
44385
- textSecondary: "rgba(255, 255, 255, 0.7)",
44386
- textTertiary: "rgba(255, 255, 255, 0.5)",
44387
- textMuted: "rgba(255, 255, 255, 0.4)",
44388
- highlightBg: "rgba(255, 235, 59, 0.25)",
44389
- highlightBorder: "rgba(255, 235, 59, 0.5)"
44469
+ border: "#1a1a1a",
44470
+ backgroundSecondary: "#0f0f0f",
44471
+ backgroundTertiary: "#141414",
44472
+ backgroundLight: "#0d0d0d",
44473
+ backgroundHover: "#0d1520",
44474
+ surface: "#0f0f0f",
44475
+ textSecondary: "#b3b3b3",
44476
+ textTertiary: "#808080",
44477
+ textMuted: "#666666",
44478
+ highlightBg: "#40391e",
44479
+ highlightBorder: "#7f7530",
44480
+ textOnPrimary: "#ffffff"
44390
44481
  },
44391
44482
  modes: {
44392
44483
  light: {
44393
44484
  text: "#1a1a1a",
44394
- background: "rgba(255, 255, 255, 0.9)",
44485
+ background: "#ffffff",
44395
44486
  primary: "#0066cc",
44396
44487
  secondary: "#0052a3",
44397
44488
  accent: "#00cc88",
44398
- highlight: "rgba(0, 102, 204, 0.08)",
44399
- muted: "rgba(245, 245, 245, 0.8)",
44489
+ highlight: "#e6f2ff",
44490
+ muted: "#f5f5f5",
44400
44491
  success: "#00cc88",
44401
44492
  warning: "#ffaa00",
44402
44493
  error: "#ff3333",
44403
44494
  info: "#0066cc",
44404
- border: "rgba(0, 0, 0, 0.1)",
44405
- backgroundSecondary: "rgba(250, 250, 250, 0.9)",
44406
- backgroundTertiary: "rgba(245, 245, 245, 0.9)",
44407
- backgroundLight: "rgba(0, 0, 0, 0.02)",
44408
- backgroundHover: "rgba(0, 102, 204, 0.04)",
44409
- surface: "rgba(255, 255, 255, 0.95)",
44410
- textSecondary: "rgba(0, 0, 0, 0.6)",
44411
- textTertiary: "rgba(0, 0, 0, 0.4)",
44412
- textMuted: "rgba(0, 0, 0, 0.3)",
44413
- highlightBg: "rgba(255, 235, 59, 0.3)",
44414
- highlightBorder: "rgba(255, 235, 59, 0.6)"
44495
+ border: "#e6e6e6",
44496
+ backgroundSecondary: "#fafafa",
44497
+ backgroundTertiary: "#f5f5f5",
44498
+ backgroundLight: "#fafafa",
44499
+ backgroundHover: "#f5f9fd",
44500
+ surface: "#ffffff",
44501
+ textSecondary: "#666666",
44502
+ textTertiary: "#999999",
44503
+ textMuted: "#b3b3b3",
44504
+ highlightBg: "#fff9c4",
44505
+ highlightBorder: "#fff389"
44415
44506
  }
44416
44507
  },
44417
44508
  buttons: {
@@ -45728,8 +45819,8 @@ var createIndustryMarkdownComponents = ({
45728
45819
  };
45729
45820
  const darkMode = getLuminance(theme2.colors.background) < 0.5;
45730
45821
  const headerStyles = {};
45731
- if (index2 === 0 && slideHeaderMarginTopOverride) {
45732
- headerStyles.marginTop = `${slideHeaderMarginTopOverride}px`;
45822
+ if (index2 === 0) {
45823
+ headerStyles.marginTop = slideHeaderMarginTopOverride ? `${slideHeaderMarginTopOverride}px` : 0;
45733
45824
  }
45734
45825
  return {
45735
45826
  h1: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h1", {
@@ -46915,29 +47006,25 @@ var fontTransitionCSS = `
46915
47006
  font-size: 1rem !important; /* Fixed size for checkbox labels */
46916
47007
  }
46917
47008
 
46918
- /* Remove top margin from headings when they're the first element */
46919
- .markdown-slide > :first-child h1:first-child,
46920
- .markdown-slide > :first-child h2:first-child,
46921
- .markdown-slide > :first-child h3:first-child,
46922
- .markdown-slide > :first-child h4:first-child,
46923
- .markdown-slide > :first-child h5:first-child,
46924
- .markdown-slide > :first-child h6:first-child {
47009
+ /* Remove top margin from any first element - must override inline styles */
47010
+ .markdown-slide > *:first-child,
47011
+ .markdown-slide > *:first-child > *:first-child {
46925
47012
  margin-top: 0 !important;
46926
47013
  }
46927
-
46928
- /* Also handle when heading is inside the first paragraph/div from ReactMarkdown */
46929
- .markdown-slide > div:first-child > h1:first-child,
46930
- .markdown-slide > div:first-child > h2:first-child,
46931
- .markdown-slide > div:first-child > h3:first-child,
46932
- .markdown-slide > div:first-child > h4:first-child,
46933
- .markdown-slide > div:first-child > h5:first-child,
46934
- .markdown-slide > div:first-child > h6:first-child,
46935
- .markdown-slide > p:first-child > h1:first-child,
46936
- .markdown-slide > p:first-child > h2:first-child,
46937
- .markdown-slide > p:first-child > h3:first-child,
46938
- .markdown-slide > p:first-child > h4:first-child,
46939
- .markdown-slide > p:first-child > h5:first-child,
46940
- .markdown-slide > p:first-child > h6:first-child {
47014
+
47015
+ /* Specifically target all possible first-child elements */
47016
+ .markdown-slide > h1:first-child,
47017
+ .markdown-slide > h2:first-child,
47018
+ .markdown-slide > h3:first-child,
47019
+ .markdown-slide > h4:first-child,
47020
+ .markdown-slide > h5:first-child,
47021
+ .markdown-slide > h6:first-child,
47022
+ .markdown-slide > p:first-child,
47023
+ .markdown-slide > ul:first-child,
47024
+ .markdown-slide > ol:first-child,
47025
+ .markdown-slide > div:first-child,
47026
+ .markdown-slide > blockquote:first-child,
47027
+ .markdown-slide > pre:first-child {
46941
47028
  margin-top: 0 !important;
46942
47029
  }
46943
47030
  `;
@@ -47663,7 +47750,6 @@ var panelConstraintFlags = /* @__PURE__ */ new Map();
47663
47750
  function reportConstraintsViolation(resizeHandleId, flag) {
47664
47751
  panelConstraintFlags.set(resizeHandleId, flag);
47665
47752
  }
47666
- new AbortController();
47667
47753
  function useForceUpdate() {
47668
47754
  const [_, setCount] = useState(0);
47669
47755
  return useCallback(() => setCount((prevCount) => prevCount + 1), []);
@@ -47827,7 +47913,7 @@ function adjustLayoutByDelta({
47827
47913
  if (!fuzzyNumbersEqual(prevSize, safeSize)) {
47828
47914
  deltaApplied += prevSize - safeSize;
47829
47915
  nextLayout[index2] = safeSize;
47830
- if (deltaApplied.toPrecision(3).localeCompare(Math.abs(delta).toPrecision(3), void 0, {
47916
+ if (deltaApplied.toFixed(3).localeCompare(Math.abs(delta).toFixed(3), void 0, {
47831
47917
  numeric: true
47832
47918
  }) >= 0) {
47833
47919
  break;
@@ -47936,9 +48022,14 @@ function determinePivotIndices(groupId, dragHandleId, panelGroupElement) {
47936
48022
  const index2 = getResizeHandleElementIndex(groupId, dragHandleId, panelGroupElement);
47937
48023
  return index2 != null ? [index2, index2 + 1] : [-1, -1];
47938
48024
  }
48025
+ function isHTMLElement(target) {
48026
+ if (target instanceof HTMLElement) {
48027
+ return true;
48028
+ }
48029
+ return typeof target === "object" && target !== null && "tagName" in target && "getAttribute" in target;
48030
+ }
47939
48031
  function getPanelGroupElement(id, rootElement = document) {
47940
- var _dataset;
47941
- if (rootElement instanceof HTMLElement && (rootElement === null || rootElement === void 0 ? void 0 : (_dataset = rootElement.dataset) === null || _dataset === void 0 ? void 0 : _dataset.panelGroupId) == id) {
48032
+ if (isHTMLElement(rootElement) && rootElement.dataset.panelGroupId == id) {
47942
48033
  return rootElement;
47943
48034
  }
47944
48035
  const element2 = rootElement.querySelector(`[data-panel-group][data-panel-group-id="${id}"]`);
@@ -48256,11 +48347,11 @@ function computePanelFlexBoxStyle({
48256
48347
  const size = layout[panelIndex];
48257
48348
  let flexGrow;
48258
48349
  if (size == null) {
48259
- flexGrow = defaultSize != null ? defaultSize.toPrecision(precision) : "1";
48350
+ flexGrow = defaultSize != null ? defaultSize.toFixed(precision) : "1";
48260
48351
  } else if (panelData.length === 1) {
48261
48352
  flexGrow = "1";
48262
48353
  } else {
48263
- flexGrow = size.toPrecision(precision);
48354
+ flexGrow = size.toFixed(precision);
48264
48355
  }
48265
48356
  return {
48266
48357
  flexBasis: 0,
@@ -49042,23 +49133,26 @@ function panelDataHelper(panelDataArray, panelData, layout) {
49042
49133
  pivotIndices
49043
49134
  };
49044
49135
  }
49045
- function S(e2) {
49136
+ function C(e2) {
49046
49137
  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" };
49047
49138
  }
49048
- 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) => {
49049
- const v = useRef(null), b = S(d2);
49050
- useImperativeHandle(g, () => ({ scrollToPanel: (e2) => {
49051
- if (!v.current)
49139
+ 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) => {
49140
+ const b = useRef(null), y2 = useRef(false), w2 = useRef(null), x2 = C(d2);
49141
+ useImperativeHandle(v, () => ({ scrollToPanel: (e2) => {
49142
+ if (!b.current)
49052
49143
  return;
49053
- const t2 = v.current, n2 = t2.children[e2];
49144
+ const t2 = b.current, n2 = t2.children[e2];
49054
49145
  if (n2) {
49146
+ y2.current = true, w2.current && clearTimeout(w2.current);
49055
49147
  const e3 = n2.offsetLeft;
49056
- t2.scrollTo({ left: e3, behavior: "smooth" });
49148
+ t2.scrollTo({ left: e3, behavior: "smooth" }), w2.current = setTimeout(() => {
49149
+ y2.current = false;
49150
+ }, 500);
49057
49151
  }
49058
49152
  }, getCurrentPanel: () => {
49059
- if (!v.current || v.current.children.length === 0)
49153
+ if (!b.current || b.current.children.length === 0)
49060
49154
  return 0;
49061
- const e2 = v.current, t2 = e2.getBoundingClientRect().left;
49155
+ const e2 = b.current, t2 = e2.getBoundingClientRect().left;
49062
49156
  let n2 = 0, r2 = 1 / 0;
49063
49157
  for (let o3 = 0; o3 < e2.children.length; o3++) {
49064
49158
  const i2 = e2.children[o3].getBoundingClientRect(), a3 = Math.abs(i2.left - t2);
@@ -49067,9 +49161,9 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
49067
49161
  return n2;
49068
49162
  } }));
49069
49163
  useEffect(() => {
49070
- if (!f2 || !v.current)
49164
+ if (!f2 || !b.current)
49071
49165
  return;
49072
- const e2 = v.current, t2 = (e3) => {
49166
+ const e2 = b.current, t2 = (e3) => {
49073
49167
  const t3 = e3.target;
49074
49168
  if (t3.tagName === "INPUT" || t3.tagName === "TEXTAREA" || t3.tagName === "SELECT" || t3.isContentEditable || t3.closest(".xterm") !== null || t3.closest('[contenteditable="true"]') !== null)
49075
49169
  return;
@@ -49078,74 +49172,78 @@ var M = forwardRef(({ panels: o2, className: a2 = "", style: s2, theme: d2, minP
49078
49172
  return e2.addEventListener("keydown", t2), () => {
49079
49173
  e2.removeEventListener("keydown", t2);
49080
49174
  };
49081
- }, [f2]);
49082
- const y2 = o2.length, w2 = 2 * u2;
49083
- let x2;
49084
- x2 = y2 === 1 || y2 === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
49085
- const C2 = React2__default.useId().replace(/:/g, "_");
49175
+ }, [f2]), useEffect(() => () => {
49176
+ w2.current && clearTimeout(w2.current);
49177
+ }, []);
49178
+ const S = o2.length, R2 = 2 * u2;
49179
+ let N;
49180
+ N = S === 1 || S === 2 ? "100%" : `max(${u2}px, ${100 * p2}%)`;
49181
+ const E = React2__default.useId().replace(/:/g, "_");
49086
49182
  return jsxs(Fragment, { children: [
49087
- y2 === 2 && /* @__PURE__ */ jsx("style", { children: `
49088
- .snap-carousel-container[data-carousel-id="${C2}"][data-panel-count="2"] .snap-carousel-panel {
49183
+ S === 2 && /* @__PURE__ */ jsx("style", { children: `
49184
+ .snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
49089
49185
  width: 100%;
49090
49186
  }
49091
- @container (min-width: ${w2}px) {
49092
- .snap-carousel-container[data-carousel-id="${C2}"][data-panel-count="2"] .snap-carousel-panel {
49187
+ @container (min-width: ${R2}px) {
49188
+ .snap-carousel-container[data-carousel-id="${E}"][data-panel-count="2"] .snap-carousel-panel {
49093
49189
  width: 50%;
49094
49190
  }
49095
49191
  }
49096
49192
  ` }),
49097
- /* @__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) => {
49098
- if (!m2 || !v.current || v.current.children.length === 0)
49193
+ /* @__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) => {
49194
+ if (!m2 || !b.current || b.current.children.length === 0)
49099
49195
  return;
49100
- const t2 = v.current, n2 = t2.getBoundingClientRect().left;
49196
+ if (y2.current)
49197
+ return;
49198
+ const t2 = b.current, n2 = t2.getBoundingClientRect().left;
49101
49199
  let r2 = 0, o3 = 1 / 0;
49102
49200
  for (let i2 = 0; i2 < t2.children.length; i2++) {
49103
49201
  const e3 = t2.children[i2].getBoundingClientRect(), a3 = Math.abs(e3.left - n2);
49104
49202
  a3 < o3 && (o3 = a3, r2 = i2);
49105
49203
  }
49106
49204
  m2(r2);
49107
- }, "data-panel-count": y2, "data-carousel-id": C2, children: o2.map((t2, n2) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t2 }, n2)) })
49205
+ }, "data-panel-count": S, "data-carousel-id": E, children: o2.map((t2, n2) => /* @__PURE__ */ jsx("div", { className: "snap-carousel-panel", children: t2 }, n2)) })
49108
49206
  ] });
49109
49207
  });
49110
- M.displayName = "SnapCarousel";
49208
+ z.displayName = "SnapCarousel";
49209
+ var le;
49111
49210
  var se;
49112
- var ce;
49113
- (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";
49114
- var ue = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
49211
+ (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";
49212
+ var de = /* @__PURE__ */ Object.freeze({ x: 0, y: 0 });
49115
49213
  var Te;
49116
- var ke;
49117
- (ke = Te || (Te = {}))[ke.Forward = 1] = "Forward", ke[ke.Backward = -1] = "Backward";
49214
+ var Ae;
49215
+ (Ae = Te || (Te = {}))[Ae.Forward = 1] = "Forward", Ae[Ae.Backward = -1] = "Backward";
49216
+ var _e;
49118
49217
  var je;
49119
49218
  var He;
49120
49219
  var Ke;
49121
- var Ue;
49122
- (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";
49123
- ({ start: [Ke.Space, Ke.Enter], cancel: [Ke.Esc], end: [Ke.Space, Ke.Enter, Ke.Tab] });
49220
+ (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";
49221
+ ({ start: [He.Space, He.Enter], cancel: [He.Esc], end: [He.Space, He.Enter, He.Tab] });
49222
+ var rt;
49124
49223
  var ot;
49125
- var it;
49126
- (it = ot || (ot = {}))[it.RightClick = 2] = "RightClick";
49224
+ (ot = rt || (rt = {}))[ot.RightClick = 2] = "RightClick";
49225
+ var at;
49127
49226
  var lt;
49128
49227
  var st;
49129
49228
  var ct;
49130
- var dt;
49131
- (st = lt || (lt = {}))[st.Pointer = 0] = "Pointer", st[st.DraggableRect = 1] = "DraggableRect", (dt = ct || (ct = {}))[dt.TreeOrder = 0] = "TreeOrder", dt[dt.ReversedTreeOrder = 1] = "ReversedTreeOrder";
49229
+ (lt = at || (at = {}))[lt.Pointer = 0] = "Pointer", lt[lt.DraggableRect = 1] = "DraggableRect", (ct = st || (st = {}))[ct.TreeOrder = 0] = "TreeOrder", ct[ct.ReversedTreeOrder = 1] = "ReversedTreeOrder";
49132
49230
  ({ x: { [Te.Backward]: false, [Te.Forward]: false }, y: { [Te.Backward]: false, [Te.Forward]: false } });
49231
+ var pt;
49133
49232
  var ht;
49134
49233
  var mt;
49135
- var ft;
49136
- (mt = ht || (ht = {}))[mt.Always = 0] = "Always", mt[mt.BeforeDragging = 1] = "BeforeDragging", mt[mt.WhileDragging = 2] = "WhileDragging", (ft || (ft = {})).Optimized = "optimized";
49137
- ({ droppable: { strategy: ht.WhileDragging, frequency: ft.Optimized } });
49138
- /* @__PURE__ */ createContext({ ...ue, scaleX: 1, scaleY: 1 });
49234
+ (ht = pt || (pt = {}))[ht.Always = 0] = "Always", ht[ht.BeforeDragging = 1] = "BeforeDragging", ht[ht.WhileDragging = 2] = "WhileDragging", (mt || (mt = {})).Optimized = "optimized";
49235
+ ({ droppable: { strategy: pt.WhileDragging, frequency: mt.Optimized } });
49236
+ /* @__PURE__ */ createContext({ ...de, scaleX: 1, scaleY: 1 });
49237
+ var $t;
49139
49238
  var Bt;
49140
- var Ot;
49141
- (Ot = Bt || (Bt = {}))[Ot.Uninitialized = 0] = "Uninitialized", Ot[Ot.Initializing = 1] = "Initializing", Ot[Ot.Initialized = 2] = "Initialized";
49142
- var Vt;
49239
+ (Bt = $t || ($t = {}))[Bt.Uninitialized = 0] = "Uninitialized", Bt[Bt.Initializing = 1] = "Initializing", Bt[Bt.Initialized = 2] = "Initialized";
49240
+ var Ut;
49143
49241
  (() => {
49144
49242
  if (typeof window != "undefined") {
49145
49243
  const e2 = window;
49146
49244
  return e2.__principlemd_theme_context__ || (e2.__principlemd_theme_context__ = createContext(void 0)), e2.__principlemd_theme_context__;
49147
49245
  }
49148
- return Vt || (Vt = createContext(void 0)), Vt;
49246
+ return Ut || (Ut = createContext(void 0)), Ut;
49149
49247
  })();
49150
49248
  var DocumentView = ({
49151
49249
  content: content2,