@design.estate/dees-catalog 13.1.0 → 13.2.0

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.
@@ -134359,7 +134359,7 @@ var dees_workspace_terminal_exports = {};
134359
134359
  __export(dees_workspace_terminal_exports, {
134360
134360
  DeesWorkspaceTerminal: () => DeesWorkspaceTerminal
134361
134361
  });
134362
- var _compact_dec5, _activeTabId_dec, _tabs_dec6, _showTabBar_dec, _tabBarWidth_dec, _environmentVariables_dec, _setupCommand_dec, _executionEnvironment_dec, _a137, _DeesWorkspaceTerminal_decorators, _init139, _executionEnvironment, _setupCommand, _environmentVariables, _tabBarWidth, _showTabBar, _tabs6, _activeTabId, _compact5, _DeesWorkspaceTerminal, DeesWorkspaceTerminal;
134362
+ var _compact_dec6, _activeTabId_dec, _tabs_dec6, _showTabBar_dec, _tabBarWidth_dec, _environmentVariables_dec, _setupCommand_dec, _executionEnvironment_dec, _a137, _DeesWorkspaceTerminal_decorators, _init139, _executionEnvironment, _setupCommand, _environmentVariables, _tabBarWidth, _showTabBar, _tabs6, _activeTabId, _compact6, _DeesWorkspaceTerminal, DeesWorkspaceTerminal;
134363
134363
  var init_dees_workspace_terminal = __esm({
134364
134364
  "ts_web/elements/00group-workspace/dees-workspace-terminal/dees-workspace-terminal.ts"() {
134365
134365
  init_dist_ts26();
@@ -134373,7 +134373,7 @@ var init_dees_workspace_terminal = __esm({
134373
134373
  init_terminal_tab_manager();
134374
134374
  init_services();
134375
134375
  _DeesWorkspaceTerminal_decorators = [customElement("dees-workspace-terminal")];
134376
- _DeesWorkspaceTerminal = class _DeesWorkspaceTerminal extends (_a137 = DeesElement, _executionEnvironment_dec = [n5({ type: Object })], _setupCommand_dec = [n5()], _environmentVariables_dec = [n5()], _tabBarWidth_dec = [n5({ type: Number })], _showTabBar_dec = [n5({ type: Boolean })], _tabs_dec6 = [r5()], _activeTabId_dec = [r5()], _compact_dec5 = [r5()], _a137) {
134376
+ _DeesWorkspaceTerminal = class _DeesWorkspaceTerminal extends (_a137 = DeesElement, _executionEnvironment_dec = [n5({ type: Object })], _setupCommand_dec = [n5()], _environmentVariables_dec = [n5()], _tabBarWidth_dec = [n5({ type: Number })], _showTabBar_dec = [n5({ type: Boolean })], _tabs_dec6 = [r5()], _activeTabId_dec = [r5()], _compact_dec6 = [r5()], _a137) {
134377
134377
  constructor() {
134378
134378
  super();
134379
134379
  // INSTANCE
@@ -134386,7 +134386,7 @@ var init_dees_workspace_terminal = __esm({
134386
134386
  __privateAdd(this, _showTabBar, __runInitializers(_init139, 24, this, true)), __runInitializers(_init139, 27, this);
134387
134387
  __privateAdd(this, _tabs6, __runInitializers(_init139, 28, this, [])), __runInitializers(_init139, 31, this);
134388
134388
  __privateAdd(this, _activeTabId, __runInitializers(_init139, 32, this, null)), __runInitializers(_init139, 35, this);
134389
- __privateAdd(this, _compact5, __runInitializers(_init139, 36, this, false)), __runInitializers(_init139, 39, this);
134389
+ __privateAdd(this, _compact6, __runInitializers(_init139, 36, this, false)), __runInitializers(_init139, 39, this);
134390
134390
  // Theme subscription for dynamic theme updates
134391
134391
  __publicField(this, "terminalThemeSubscription", null);
134392
134392
  __publicField(this, "isBright", false);
@@ -134896,7 +134896,7 @@ var init_dees_workspace_terminal = __esm({
134896
134896
  _showTabBar = new WeakMap();
134897
134897
  _tabs6 = new WeakMap();
134898
134898
  _activeTabId = new WeakMap();
134899
- _compact5 = new WeakMap();
134899
+ _compact6 = new WeakMap();
134900
134900
  __decorateElement(_init139, 4, "executionEnvironment", _executionEnvironment_dec, _DeesWorkspaceTerminal, _executionEnvironment);
134901
134901
  __decorateElement(_init139, 4, "setupCommand", _setupCommand_dec, _DeesWorkspaceTerminal, _setupCommand);
134902
134902
  __decorateElement(_init139, 4, "environmentVariables", _environmentVariables_dec, _DeesWorkspaceTerminal, _environmentVariables);
@@ -134904,7 +134904,7 @@ var init_dees_workspace_terminal = __esm({
134904
134904
  __decorateElement(_init139, 4, "showTabBar", _showTabBar_dec, _DeesWorkspaceTerminal, _showTabBar);
134905
134905
  __decorateElement(_init139, 4, "tabs", _tabs_dec6, _DeesWorkspaceTerminal, _tabs6);
134906
134906
  __decorateElement(_init139, 4, "activeTabId", _activeTabId_dec, _DeesWorkspaceTerminal, _activeTabId);
134907
- __decorateElement(_init139, 4, "compact", _compact_dec5, _DeesWorkspaceTerminal, _compact5);
134907
+ __decorateElement(_init139, 4, "compact", _compact_dec6, _DeesWorkspaceTerminal, _compact6);
134908
134908
  _DeesWorkspaceTerminal = __decorateElement(_init139, 0, "DeesWorkspaceTerminal", _DeesWorkspaceTerminal_decorators, _DeesWorkspaceTerminal);
134909
134909
  __name(_DeesWorkspaceTerminal, "DeesWorkspaceTerminal");
134910
134910
  __publicField(_DeesWorkspaceTerminal, "demo", /* @__PURE__ */ __name(() => {
@@ -143634,67 +143634,178 @@ var computeLineDiff = /* @__PURE__ */ __name((beforeText, afterText) => {
143634
143634
  }
143635
143635
  return annotateIntraline(rows);
143636
143636
  }, "computeLineDiff");
143637
- var parseUnifiedDiff = /* @__PURE__ */ __name((patchText) => {
143638
- const rows = [];
143639
- let oldLine = 0;
143640
- let newLine = 0;
143641
- let remainingOld = 0;
143642
- let remainingNew = 0;
143643
- let inHunk = false;
143644
- for (const line of splitLines2(patchText)) {
143645
- const hunkMatch = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)$/.exec(line);
143646
- if (hunkMatch) {
143647
- oldLine = Number(hunkMatch[1]);
143648
- newLine = Number(hunkMatch[3]);
143649
- remainingOld = hunkMatch[2] === void 0 ? 1 : Number(hunkMatch[2]);
143650
- remainingNew = hunkMatch[4] === void 0 ? 1 : Number(hunkMatch[4]);
143651
- inHunk = true;
143652
- rows.push({ kind: "hunk", text: line });
143637
+ var decodeGitQuotedPath = /* @__PURE__ */ __name((valueArg) => {
143638
+ if (!(valueArg.startsWith('"') && valueArg.endsWith('"'))) return valueArg;
143639
+ const source = valueArg.slice(1, -1);
143640
+ const bytes = [];
143641
+ const encoder2 = new TextEncoder();
143642
+ const escapeBytes = {
143643
+ a: 7,
143644
+ b: 8,
143645
+ t: 9,
143646
+ n: 10,
143647
+ v: 11,
143648
+ f: 12,
143649
+ r: 13,
143650
+ '"': 34,
143651
+ "\\": 92
143652
+ };
143653
+ for (let index3 = 0; index3 < source.length; index3++) {
143654
+ const character = source[index3];
143655
+ if (character !== "\\") {
143656
+ const codePoint = source.codePointAt(index3);
143657
+ bytes.push(...encoder2.encode(String.fromCodePoint(codePoint)));
143658
+ if (codePoint > 65535) index3++;
143653
143659
  continue;
143654
143660
  }
143655
- if (line.startsWith("\\ No newline")) continue;
143656
- if (!inHunk) continue;
143657
- if (line.startsWith("+")) {
143658
- rows.push({ kind: "add", text: line.slice(1), newLine: newLine++ });
143659
- remainingNew--;
143660
- } else if (line.startsWith("-")) {
143661
- rows.push({ kind: "remove", text: line.slice(1), oldLine: oldLine++ });
143662
- remainingOld--;
143663
- } else {
143664
- rows.push({ kind: "context", text: line.startsWith(" ") ? line.slice(1) : line, oldLine: oldLine++, newLine: newLine++ });
143665
- remainingOld--;
143666
- remainingNew--;
143661
+ const escaped = source[++index3];
143662
+ if (escaped === void 0) {
143663
+ bytes.push(92);
143664
+ break;
143665
+ }
143666
+ const octal = /^[0-7]{3}$/.exec(source.slice(index3, index3 + 3));
143667
+ if (octal) {
143668
+ bytes.push(Number.parseInt(octal[0], 8));
143669
+ index3 += 2;
143670
+ continue;
143671
+ }
143672
+ bytes.push(escapeBytes[escaped] ?? escaped.charCodeAt(0));
143673
+ }
143674
+ return new TextDecoder().decode(Uint8Array.from(bytes));
143675
+ }, "decodeGitQuotedPath");
143676
+ var readGitPathToken = /* @__PURE__ */ __name((sourceArg, startArg = 0) => {
143677
+ let start = startArg;
143678
+ while (sourceArg[start] === " ") start++;
143679
+ if (start >= sourceArg.length) return void 0;
143680
+ if (sourceArg[start] !== '"') return { value: sourceArg.slice(start), end: sourceArg.length };
143681
+ let escaped = false;
143682
+ for (let index3 = start + 1; index3 < sourceArg.length; index3++) {
143683
+ const character = sourceArg[index3];
143684
+ if (character === '"' && !escaped) {
143685
+ return {
143686
+ value: decodeGitQuotedPath(sourceArg.slice(start, index3 + 1)),
143687
+ end: index3 + 1
143688
+ };
143667
143689
  }
143668
- if (remainingOld <= 0 && remainingNew <= 0) inHunk = false;
143690
+ escaped = character === "\\" && !escaped;
143691
+ if (character !== "\\") escaped = false;
143669
143692
  }
143670
- return annotateIntraline(rows);
143671
- }, "parseUnifiedDiff");
143672
- var summarizeUnifiedDiff = /* @__PURE__ */ __name((patchText, options2 = {}) => {
143673
- const lines = splitLines2(patchText);
143674
- let sawPatchStructure = false;
143675
- let sawOldHeader = false;
143676
- let sawNewHeader = false;
143677
- let sawHunk = false;
143693
+ return void 0;
143694
+ }, "readGitPathToken");
143695
+ var normalizeGitPath = /* @__PURE__ */ __name((valueArg) => {
143696
+ if (!valueArg) return void 0;
143697
+ const value2 = decodeGitQuotedPath(valueArg);
143698
+ if (value2 === "/dev/null") return void 0;
143699
+ return value2.startsWith("a/") || value2.startsWith("b/") ? value2.slice(2) : value2;
143700
+ }, "normalizeGitPath");
143701
+ var parsePatchHeaderPath = /* @__PURE__ */ __name((valueArg) => {
143702
+ const value2 = valueArg.startsWith('"') ? readGitPathToken(valueArg)?.value : valueArg.split(" ", 1)[0];
143703
+ return normalizeGitPath(value2);
143704
+ }, "parsePatchHeaderPath");
143705
+ var parseMetadataPath = /* @__PURE__ */ __name((valueArg) => {
143706
+ const value2 = valueArg.startsWith('"') ? readGitPathToken(valueArg)?.value : valueArg;
143707
+ return value2 === "/dev/null" ? void 0 : value2;
143708
+ }, "parseMetadataPath");
143709
+ var parseDiffGitPaths = /* @__PURE__ */ __name((lineArg) => {
143710
+ const value2 = lineArg.slice("diff --git ".length);
143711
+ if (value2.startsWith('"')) {
143712
+ const before = readGitPathToken(value2);
143713
+ const after = before ? readGitPathToken(value2, before.end) : void 0;
143714
+ const beforePath2 = normalizeGitPath(before?.value);
143715
+ const afterPath2 = normalizeGitPath(after?.value);
143716
+ return {
143717
+ ...beforePath2 ? { beforePath: beforePath2 } : {},
143718
+ ...afterPath2 ? { afterPath: afterPath2 } : {}
143719
+ };
143720
+ }
143721
+ const boundary = Math.max(value2.lastIndexOf(" b/"), value2.lastIndexOf(' "b/'));
143722
+ if (boundary < 0) return {};
143723
+ const beforePath = normalizeGitPath(value2.slice(0, boundary));
143724
+ const afterToken = value2.slice(boundary + 1);
143725
+ const afterPath = normalizeGitPath(afterToken.startsWith('"') ? readGitPathToken(afterToken)?.value : afterToken);
143726
+ return {
143727
+ ...beforePath ? { beforePath } : {},
143728
+ ...afterPath ? { afterPath } : {}
143729
+ };
143730
+ }, "parseDiffGitPaths");
143731
+ var metadataLine = /* @__PURE__ */ __name((lineArg) => {
143732
+ const kinds = [
143733
+ ["new-file-mode", "new file mode "],
143734
+ ["deleted-file-mode", "deleted file mode "],
143735
+ ["old-mode", "old mode "],
143736
+ ["new-mode", "new mode "],
143737
+ ["similarity-index", "similarity index "],
143738
+ ["dissimilarity-index", "dissimilarity index "],
143739
+ ["rename-from", "rename from "],
143740
+ ["rename-to", "rename to "],
143741
+ ["copy-from", "copy from "],
143742
+ ["copy-to", "copy to "],
143743
+ ["index", "index "]
143744
+ ];
143745
+ const match2 = kinds.find(([, prefix]) => lineArg.startsWith(prefix));
143746
+ if (!match2) return void 0;
143747
+ const rawValue = lineArg.slice(match2[1].length);
143748
+ const pathMetadata = match2[0] === "rename-from" || match2[0] === "rename-to" || match2[0] === "copy-from" || match2[0] === "copy-to";
143749
+ return {
143750
+ kind: match2[0],
143751
+ value: pathMetadata ? parseMetadataPath(rawValue) ?? rawValue : rawValue
143752
+ };
143753
+ }, "metadataLine");
143754
+ var parseUnifiedDiffDocument = /* @__PURE__ */ __name((patchText, options2 = {}) => {
143755
+ const files = [];
143756
+ let current;
143757
+ let currentSawOldHeader = false;
143758
+ let currentSawNewHeader = false;
143759
+ let sawRecognizedContent = false;
143760
+ let sawHeaderPair = false;
143761
+ let unparseable = false;
143762
+ let binaryPayload = false;
143678
143763
  let added = 0;
143679
143764
  let removed = 0;
143680
143765
  let completeHunks = 0;
143681
143766
  let hunk;
143682
- const completeCurrentHunk = /* @__PURE__ */ __name(() => {
143683
- if (!hunk) return true;
143684
- if (hunk.observedOld !== hunk.expectedOld || hunk.observedNew !== hunk.expectedNew) return false;
143767
+ const createFile = /* @__PURE__ */ __name((pathsArg = {}) => {
143768
+ current = {
143769
+ ...pathsArg,
143770
+ displayPath: pathsArg.afterPath ?? pathsArg.beforePath,
143771
+ metadata: [],
143772
+ rows: [],
143773
+ binary: false
143774
+ };
143775
+ files.push(current);
143776
+ currentSawOldHeader = false;
143777
+ currentSawNewHeader = false;
143778
+ binaryPayload = false;
143779
+ return current;
143780
+ }, "createFile");
143781
+ const requireFile = /* @__PURE__ */ __name(() => current ?? createFile(), "requireFile");
143782
+ const refreshDisplayPath = /* @__PURE__ */ __name((fileArg) => {
143783
+ fileArg.displayPath = fileArg.afterPath ?? fileArg.beforePath;
143784
+ }, "refreshDisplayPath");
143785
+ const completeHunk = /* @__PURE__ */ __name(() => {
143786
+ if (!hunk || hunk.observedOld !== hunk.expectedOld || hunk.observedNew !== hunk.expectedNew) return false;
143685
143787
  added += hunk.added;
143686
143788
  removed += hunk.removed;
143687
143789
  completeHunks++;
143688
143790
  hunk = void 0;
143689
143791
  return true;
143690
- }, "completeCurrentHunk");
143691
- for (const line of lines) {
143692
- const hunkMatch = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?:.*)$/.exec(line);
143792
+ }, "completeHunk");
143793
+ for (const line of splitLines2(patchText)) {
143794
+ if (line.startsWith("diff --git ")) {
143795
+ if (hunk) {
143796
+ unparseable = true;
143797
+ hunk = void 0;
143798
+ }
143799
+ createFile(parseDiffGitPaths(line));
143800
+ continue;
143801
+ }
143802
+ const hunkMatch = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)$/.exec(line);
143693
143803
  if (hunkMatch) {
143694
- if (!completeCurrentHunk()) return { type: "unparseable" };
143695
- sawPatchStructure = true;
143696
- sawHunk = true;
143804
+ if (hunk) unparseable = true;
143805
+ const file = requireFile();
143697
143806
  hunk = {
143807
+ oldLine: Number(hunkMatch[1]),
143808
+ newLine: Number(hunkMatch[3]),
143698
143809
  expectedOld: hunkMatch[2] === void 0 ? 1 : Number(hunkMatch[2]),
143699
143810
  expectedNew: hunkMatch[4] === void 0 ? 1 : Number(hunkMatch[4]),
143700
143811
  observedOld: 0,
@@ -143702,57 +143813,113 @@ var summarizeUnifiedDiff = /* @__PURE__ */ __name((patchText, options2 = {}) =>
143702
143813
  added: 0,
143703
143814
  removed: 0
143704
143815
  };
143705
- if (hunk.expectedOld === 0 && hunk.expectedNew === 0) completeCurrentHunk();
143816
+ file.rows.push({ kind: "hunk", text: line });
143817
+ sawRecognizedContent = true;
143818
+ completeHunk();
143706
143819
  continue;
143707
143820
  }
143708
- if (/^(Binary files .+ differ|GIT binary patch)$/.test(line)) return { type: "binary" };
143709
143821
  if (line.startsWith("\")) continue;
143710
143822
  if (hunk) {
143823
+ const file = requireFile();
143711
143824
  if (line.startsWith("+")) {
143825
+ file.rows.push({ kind: "add", text: line.slice(1), newLine: hunk.newLine++ });
143712
143826
  hunk.observedNew++;
143713
143827
  hunk.added++;
143714
143828
  } else if (line.startsWith("-")) {
143829
+ file.rows.push({ kind: "remove", text: line.slice(1), oldLine: hunk.oldLine++ });
143715
143830
  hunk.observedOld++;
143716
143831
  hunk.removed++;
143717
143832
  } else if (line.startsWith(" ")) {
143833
+ file.rows.push({
143834
+ kind: "context",
143835
+ text: line.slice(1),
143836
+ oldLine: hunk.oldLine++,
143837
+ newLine: hunk.newLine++
143838
+ });
143718
143839
  hunk.observedOld++;
143719
143840
  hunk.observedNew++;
143720
143841
  } else {
143721
- return { type: "unparseable" };
143722
- }
143723
- if (hunk.observedOld > hunk.expectedOld || hunk.observedNew > hunk.expectedNew) {
143724
- return { type: "unparseable" };
143842
+ unparseable = true;
143843
+ hunk = void 0;
143844
+ continue;
143725
143845
  }
143726
- if (hunk.observedOld === hunk.expectedOld && hunk.observedNew === hunk.expectedNew) {
143727
- completeCurrentHunk();
143846
+ if (hunk && (hunk.observedOld > hunk.expectedOld || hunk.observedNew > hunk.expectedNew)) {
143847
+ unparseable = true;
143848
+ hunk = void 0;
143849
+ } else {
143850
+ completeHunk();
143728
143851
  }
143729
143852
  continue;
143730
143853
  }
143854
+ if (binaryPayload) continue;
143731
143855
  if (line.startsWith("--- ")) {
143732
- sawPatchStructure = true;
143733
- sawOldHeader = true;
143856
+ if (currentSawNewHeader) createFile();
143857
+ const file = requireFile();
143858
+ file.beforePath = parsePatchHeaderPath(line.slice(4));
143859
+ currentSawOldHeader = true;
143860
+ refreshDisplayPath(file);
143734
143861
  continue;
143735
143862
  }
143736
143863
  if (line.startsWith("+++ ")) {
143737
- sawPatchStructure = true;
143738
- sawNewHeader = true;
143864
+ const file = requireFile();
143865
+ file.afterPath = parsePatchHeaderPath(line.slice(4));
143866
+ currentSawNewHeader = true;
143867
+ sawHeaderPair ||= currentSawOldHeader;
143868
+ refreshDisplayPath(file);
143869
+ continue;
143870
+ }
143871
+ const metadata = metadataLine(line);
143872
+ if (metadata) {
143873
+ const file = requireFile();
143874
+ file.metadata.push(metadata);
143875
+ if (metadata.kind === "rename-from" || metadata.kind === "copy-from") {
143876
+ file.beforePath ??= metadata.value;
143877
+ }
143878
+ if (metadata.kind === "rename-to" || metadata.kind === "copy-to") {
143879
+ file.afterPath ??= metadata.value;
143880
+ }
143881
+ refreshDisplayPath(file);
143882
+ sawRecognizedContent = true;
143883
+ continue;
143884
+ }
143885
+ const binaryMatch = /^Binary files (.+) and (.+) differ$/.exec(line);
143886
+ if (binaryMatch) {
143887
+ const file = requireFile();
143888
+ file.beforePath ??= parsePatchHeaderPath(binaryMatch[1]);
143889
+ file.afterPath ??= parsePatchHeaderPath(binaryMatch[2]);
143890
+ refreshDisplayPath(file);
143891
+ file.binary = true;
143892
+ sawRecognizedContent = true;
143739
143893
  continue;
143740
143894
  }
143741
- if (line.startsWith("diff ") || line.startsWith("index ") || /^(new file mode|deleted file mode|old mode|new mode|similarity index|dissimilarity index|rename from|rename to|copy from|copy to) /.test(line)) {
143742
- sawPatchStructure = true;
143895
+ if (line === "GIT binary patch") {
143896
+ requireFile().binary = true;
143897
+ binaryPayload = true;
143898
+ sawRecognizedContent = true;
143743
143899
  continue;
143744
143900
  }
143745
- if (line.trim()) return { type: "unparseable" };
143901
+ if (line.trim()) unparseable = true;
143746
143902
  }
143747
- const finalHunkComplete = completeCurrentHunk();
143748
- if (!finalHunkComplete && !options2.truncated) return { type: "unparseable" };
143749
- if (options2.truncated) {
143750
- return completeHunks ? { type: "partial", stats: { added, removed } } : { type: "partial" };
143903
+ if (hunk) {
143904
+ if (!options2.truncated) unparseable = true;
143905
+ hunk = void 0;
143751
143906
  }
143752
- if (!sawHunk && !(sawPatchStructure && sawOldHeader && sawNewHeader)) {
143753
- return { type: "unparseable" };
143907
+ for (const file of files) file.rows = annotateIntraline(file.rows);
143908
+ const binaryFiles = files.filter((file) => file.binary).length;
143909
+ const stats = completeHunks > 0 ? { added, removed } : void 0;
143910
+ const recognized = sawRecognizedContent || sawHeaderPair || binaryFiles > 0;
143911
+ const summary = unparseable || !recognized ? { type: "unparseable", binaryFiles } : options2.truncated ? { type: "partial", ...stats ? { stats } : {}, binaryFiles } : { type: "exact", ...stats ? { stats } : {}, binaryFiles };
143912
+ return { files, summary };
143913
+ }, "parseUnifiedDiffDocument");
143914
+ var parseUnifiedDiff = /* @__PURE__ */ __name((patchText) => parseUnifiedDiffDocument(patchText).files.flatMap((file) => file.rows), "parseUnifiedDiff");
143915
+ var summarizeUnifiedDiff = /* @__PURE__ */ __name((patchText, options2 = {}) => {
143916
+ const document4 = parseUnifiedDiffDocument(patchText, options2);
143917
+ if (document4.summary.binaryFiles > 0) return { type: "binary" };
143918
+ if (document4.summary.type === "unparseable") return { type: "unparseable" };
143919
+ if (document4.summary.type === "partial") {
143920
+ return document4.summary.stats ? { type: "partial", stats: document4.summary.stats } : { type: "partial" };
143754
143921
  }
143755
- return { type: "exact", stats: { added, removed } };
143922
+ return { type: "exact", stats: document4.summary.stats ?? { added: 0, removed: 0 } };
143756
143923
  }, "summarizeUnifiedDiff");
143757
143924
  var maxIntralineChars = 400;
143758
143925
  var annotateIntraline = /* @__PURE__ */ __name((rows) => {
@@ -143923,9 +144090,9 @@ init_dist_ts11();
143923
144090
  init_dees_contextmenu();
143924
144091
  init_services();
143925
144092
  init_dees_icon();
143926
- var _autoDiffIsNarrow_dec, _highlightVersion_dec, _expandedFolds_dec, _copied_dec2, _highlightedCode_dec, _showDiffLineNumbers_dec, _diffView_dec, _unifiedDiff_dec, _codeBefore_dec, _codeToDisplay_dec, _frameless_dec, _filename_dec, _progLang_dec, _a30, _DeesDataviewCodebox_decorators, _init31, _progLang, _filename, _frameless, _codeToDisplay, _codeBefore, _unifiedDiff, _diffView, _showDiffLineNumbers, _highlightedCode, _copied2, _expandedFolds, _highlightVersion, _autoDiffIsNarrow;
144093
+ var _autoDiffIsNarrow_dec, _highlightVersion_dec, _expandedFolds_dec, _copied_dec2, _highlightedCode_dec, _showDiffLineNumbers_dec, _diffView_dec, _unifiedDiffTruncated_dec, _unifiedDiff_dec, _codeBefore_dec, _codeToDisplay_dec, _frameless_dec, _filename_dec, _progLang_dec, _a30, _DeesDataviewCodebox_decorators, _init31, _progLang, _filename, _frameless, _codeToDisplay, _codeBefore, _unifiedDiff, _unifiedDiffTruncated, _diffView, _showDiffLineNumbers, _highlightedCode, _copied2, _expandedFolds, _highlightVersion, _autoDiffIsNarrow;
143927
144094
  _DeesDataviewCodebox_decorators = [customElement("dees-dataview-codebox")];
143928
- var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElement, _progLang_dec = [n5()], _filename_dec = [n5()], _frameless_dec = [n5({ type: Boolean, reflect: true })], _codeToDisplay_dec = [n5({ type: String })], _codeBefore_dec = [n5({ type: String })], _unifiedDiff_dec = [n5({ type: String })], _diffView_dec = [n5({ type: String })], _showDiffLineNumbers_dec = [n5({ type: Boolean })], _highlightedCode_dec = [r5()], _copied_dec2 = [r5()], _expandedFolds_dec = [r5()], _highlightVersion_dec = [r5()], _autoDiffIsNarrow_dec = [r5()], _a30) {
144095
+ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElement, _progLang_dec = [n5()], _filename_dec = [n5()], _frameless_dec = [n5({ type: Boolean, reflect: true })], _codeToDisplay_dec = [n5({ type: String })], _codeBefore_dec = [n5({ type: String })], _unifiedDiff_dec = [n5({ type: String })], _unifiedDiffTruncated_dec = [n5({ type: Boolean })], _diffView_dec = [n5({ type: String })], _showDiffLineNumbers_dec = [n5({ type: Boolean })], _highlightedCode_dec = [r5()], _copied_dec2 = [r5()], _expandedFolds_dec = [r5()], _highlightVersion_dec = [r5()], _autoDiffIsNarrow_dec = [r5()], _a30) {
143929
144096
  constructor() {
143930
144097
  super(...arguments);
143931
144098
  __privateAdd(this, _progLang, __runInitializers(_init31, 8, this, "typescript")), __runInitializers(_init31, 11, this);
@@ -143934,21 +144101,26 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
143934
144101
  __privateAdd(this, _codeToDisplay, __runInitializers(_init31, 20, this, "")), __runInitializers(_init31, 23, this);
143935
144102
  __privateAdd(this, _codeBefore, __runInitializers(_init31, 24, this, "")), __runInitializers(_init31, 27, this);
143936
144103
  __privateAdd(this, _unifiedDiff, __runInitializers(_init31, 28, this, "")), __runInitializers(_init31, 31, this);
143937
- __privateAdd(this, _diffView, __runInitializers(_init31, 32, this, "")), __runInitializers(_init31, 35, this);
143938
- __privateAdd(this, _showDiffLineNumbers, __runInitializers(_init31, 36, this, true)), __runInitializers(_init31, 39, this);
143939
- __privateAdd(this, _highlightedCode, __runInitializers(_init31, 40, this, "")), __runInitializers(_init31, 43, this);
143940
- __privateAdd(this, _copied2, __runInitializers(_init31, 44, this, false)), __runInitializers(_init31, 47, this);
143941
- __privateAdd(this, _expandedFolds, __runInitializers(_init31, 48, this, /* @__PURE__ */ new Set())), __runInitializers(_init31, 51, this);
143942
- __privateAdd(this, _highlightVersion, __runInitializers(_init31, 52, this, 0)), __runInitializers(_init31, 55, this);
143943
- __privateAdd(this, _autoDiffIsNarrow, __runInitializers(_init31, 56, this, true)), __runInitializers(_init31, 59, this);
144104
+ __privateAdd(this, _unifiedDiffTruncated, __runInitializers(_init31, 32, this, false)), __runInitializers(_init31, 35, this);
144105
+ __privateAdd(this, _diffView, __runInitializers(_init31, 36, this, "")), __runInitializers(_init31, 39, this);
144106
+ __privateAdd(this, _showDiffLineNumbers, __runInitializers(_init31, 40, this, true)), __runInitializers(_init31, 43, this);
144107
+ __privateAdd(this, _highlightedCode, __runInitializers(_init31, 44, this, "")), __runInitializers(_init31, 47, this);
144108
+ __privateAdd(this, _copied2, __runInitializers(_init31, 48, this, false)), __runInitializers(_init31, 51, this);
144109
+ __privateAdd(this, _expandedFolds, __runInitializers(_init31, 52, this, /* @__PURE__ */ new Set())), __runInitializers(_init31, 55, this);
144110
+ __privateAdd(this, _highlightVersion, __runInitializers(_init31, 56, this, 0)), __runInitializers(_init31, 59, this);
144111
+ __privateAdd(this, _autoDiffIsNarrow, __runInitializers(_init31, 60, this, true)), __runInitializers(_init31, 63, this);
143944
144112
  __publicField(this, "processedCode", "");
143945
144113
  __publicField(this, "highlightJs", null);
143946
144114
  __publicField(this, "highlightToken", 0);
143947
144115
  __publicField(this, "copiedResetTimeout", null);
143948
144116
  __publicField(this, "diffRows", []);
144117
+ __publicField(this, "diffDocument", null);
143949
144118
  __publicField(this, "diffHighlightCache", /* @__PURE__ */ new Map());
143950
144119
  __publicField(this, "autoDiffResizeObserver", null);
143951
144120
  __publicField(this, "copyCode", /* @__PURE__ */ __name(async () => {
144121
+ if (this.unifiedDiff) {
144122
+ return;
144123
+ }
143952
144124
  const textToCopy = this.isDiffActive ? this.diffRows.filter((row) => row.kind === "context" || row.kind === "add").map((row) => row.text).join("\n") : this.processedCode;
143953
144125
  try {
143954
144126
  await navigator.clipboard.writeText(textToCopy);
@@ -143979,13 +144151,13 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
143979
144151
  }
143980
144152
  render() {
143981
144153
  const contextMenuOptions = [
143982
- {
144154
+ ...!this.unifiedDiff ? [{
143983
144155
  name: "Copy Code",
143984
144156
  iconName: "lucide:Copy",
143985
144157
  action: /* @__PURE__ */ __name(async () => {
143986
144158
  await this.copyCode();
143987
144159
  }, "action")
143988
- },
144160
+ }] : [],
143989
144161
  ...this.isDiffActive ? [{
143990
144162
  name: "Copy Unified Diff",
143991
144163
  iconName: "lucide:GitCompareArrows",
@@ -144013,13 +144185,15 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
144013
144185
  this.setDiffView(event.detail.value);
144014
144186
  }}></dees-input-multitoggle>
144015
144187
  ` : ""}
144016
- <div
144017
- class="copyButton ${this.copied ? "copied" : ""}"
144018
- title="Copy code"
144019
- @click=${this.copyCode}
144020
- >
144021
- <dees-icon .icon=${this.copied ? "lucide:Check" : "lucide:Copy"} iconSize="14"></dees-icon>
144022
- </div>
144188
+ ${!this.unifiedDiff ? b2`
144189
+ <div
144190
+ class="copyButton ${this.copied ? "copied" : ""}"
144191
+ title="Copy code"
144192
+ @click=${this.copyCode}
144193
+ >
144194
+ <dees-icon .icon=${this.copied ? "lucide:Check" : "lucide:Copy"} iconSize="14"></dees-icon>
144195
+ </div>
144196
+ ` : ""}
144023
144197
  </div>
144024
144198
  </div>
144025
144199
  ${this.isDiffActive ? this.renderDiff() : this.renderCode()}
@@ -144046,17 +144220,72 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
144046
144220
  return b2`<div class="lineCount">${codeLines.length} ${codeLines.length === 1 ? "line" : "lines"}</div>`;
144047
144221
  }
144048
144222
  renderDiffFooter() {
144049
- const stats = diffStats(this.diffRows);
144223
+ const summary = this.diffDocument?.summary;
144224
+ const stats = summary ? summary.type === "unparseable" ? void 0 : summary.stats : diffStats(this.diffRows);
144225
+ const qualifiers = [];
144226
+ if (summary?.type === "partial") qualifiers.push("Partial diff");
144227
+ if (summary?.type === "unparseable") qualifiers.push("Diff format unavailable");
144228
+ if (summary?.binaryFiles) {
144229
+ qualifiers.push(`${summary.binaryFiles} binary ${summary.binaryFiles === 1 ? "file" : "files"}`);
144230
+ }
144231
+ if (summary?.type === "exact" && !stats && !summary.binaryFiles) qualifiers.push("Metadata-only diff");
144050
144232
  return b2`
144051
144233
  <div class="lineCount">
144052
- <span class="diffStat added">+${stats.added}</span>
144053
- <span class="diffStat removed">−${stats.removed}</span>
144234
+ ${stats ? b2`
144235
+ <span class="diffStat added">+${stats.added}</span>
144236
+ <span class="diffStat removed">−${stats.removed}</span>
144237
+ ` : ""}
144238
+ ${qualifiers.length ? b2`<span class="diffQualifier">${qualifiers.join(" \xB7 ")}</span>` : ""}
144054
144239
  </div>
144055
144240
  `;
144056
144241
  }
144057
144242
  renderDiff() {
144058
- const displayRows = this.displayRowsWithFolds();
144059
- return this.effectiveDiffView === "split" ? this.renderSplitGrid(displayRows) : b2`<div class="diffScroll">${this.renderInlineGrid(displayRows)}</div>`;
144243
+ const sections3 = this.displaySectionsWithFolds();
144244
+ if (!sections3.length) {
144245
+ return b2`<div class="diffDocumentNotice">The diff has no displayable file sections.</div>`;
144246
+ }
144247
+ return this.effectiveDiffView === "split" ? b2`${sections3.map(({ file, rows }) => b2`
144248
+ <section class="diffFile">
144249
+ ${this.renderDiffFileHeader(file)}
144250
+ ${rows.length ? this.renderSplitGrid(rows) : this.renderDiffFileNotice(file)}
144251
+ </section>
144252
+ `)}` : b2`<div class="diffScroll">${sections3.map(({ file, rows }) => b2`
144253
+ <section class="diffFile">
144254
+ ${this.renderDiffFileHeader(file)}
144255
+ ${rows.length ? this.renderInlineGrid(rows) : this.renderDiffFileNotice(file)}
144256
+ </section>
144257
+ `)}</div>`;
144258
+ }
144259
+ renderDiffFileHeader(fileArg) {
144260
+ const details = this.diffFileMetadataLabels(fileArg);
144261
+ const path2 = fileArg.beforePath && fileArg.afterPath && fileArg.beforePath !== fileArg.afterPath ? `${fileArg.beforePath} \u2192 ${fileArg.afterPath}` : fileArg.displayPath;
144262
+ if (!path2 && !details.length) return "";
144263
+ return b2`
144264
+ <div class="diffFileHeader">
144265
+ <div class="diffFilePath">${path2 ?? "Unscoped patch"}</div>
144266
+ ${details.length ? b2`<div class="diffFileMeta">${details.join(" \xB7 ")}</div>` : ""}
144267
+ </div>
144268
+ `;
144269
+ }
144270
+ diffFileMetadataLabels(fileArg) {
144271
+ const labels = [];
144272
+ const metadata = /* @__PURE__ */ __name((kindArg) => fileArg.metadata.filter((entry) => entry.kind === kindArg).map((entry) => entry.value), "metadata");
144273
+ const newFileMode = metadata("new-file-mode")[0];
144274
+ const deletedFileMode = metadata("deleted-file-mode")[0];
144275
+ const oldMode = metadata("old-mode")[0];
144276
+ const newMode = metadata("new-mode")[0];
144277
+ if (newFileMode) labels.push(`New file \xB7 mode ${newFileMode}`);
144278
+ if (deletedFileMode) labels.push(`Deleted file \xB7 mode ${deletedFileMode}`);
144279
+ if (metadata("rename-from").length || metadata("rename-to").length) labels.push("Renamed");
144280
+ if (metadata("copy-from").length || metadata("copy-to").length) labels.push("Copied");
144281
+ if (oldMode || newMode) labels.push(`Mode ${oldMode ?? "?"} \u2192 ${newMode ?? "?"}`);
144282
+ labels.push(...metadata("similarity-index").map((value2) => `${value2} similar`));
144283
+ labels.push(...metadata("dissimilarity-index").map((value2) => `${value2} dissimilar`));
144284
+ if (fileArg.binary) labels.push("Binary change");
144285
+ return labels;
144286
+ }
144287
+ renderDiffFileNotice(fileArg) {
144288
+ return b2`<div class="diffFileNotice">${fileArg.binary ? "Binary content is not shown." : "No textual line changes."}</div>`;
144060
144289
  }
144061
144290
  renderInlineGrid(displayRows) {
144062
144291
  return b2`
@@ -144204,10 +144433,19 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
144204
144433
  this.processedCode = this.codeToDisplay ? smartstring_indent_exports.normalize(this.codeToDisplay).trim() : "";
144205
144434
  this.highlightedCode = "";
144206
144435
  }
144207
- if (changedProperties.has("codeToDisplay") || changedProperties.has("codeBefore") || changedProperties.has("unifiedDiff") || changedProperties.has("diffView")) {
144436
+ if (changedProperties.has("codeToDisplay") || changedProperties.has("codeBefore") || changedProperties.has("unifiedDiff") || changedProperties.has("unifiedDiffTruncated") || changedProperties.has("diffView")) {
144208
144437
  if (this.isDiffActive) {
144209
- this.diffRows = this.unifiedDiff ? parseUnifiedDiff(this.unifiedDiff) : computeLineDiff(this.codeBefore, this.codeToDisplay);
144438
+ if (this.unifiedDiff) {
144439
+ this.diffDocument = parseUnifiedDiffDocument(this.unifiedDiff, {
144440
+ truncated: this.unifiedDiffTruncated
144441
+ });
144442
+ this.diffRows = this.diffDocument.files.flatMap((file) => file.rows);
144443
+ } else {
144444
+ this.diffDocument = null;
144445
+ this.diffRows = computeLineDiff(this.codeBefore, this.codeToDisplay);
144446
+ }
144210
144447
  } else {
144448
+ this.diffDocument = null;
144211
144449
  this.diffRows = [];
144212
144450
  }
144213
144451
  this.diffHighlightCache.clear();
@@ -144217,23 +144455,32 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
144217
144455
  this.diffHighlightCache.clear();
144218
144456
  }
144219
144457
  }
144220
- displayRowsWithFolds() {
144221
- const folded = foldContextRows(this.diffRows);
144222
- const result = [];
144458
+ displaySectionsWithFolds() {
144459
+ const files = this.diffDocument?.files ?? [{
144460
+ metadata: [],
144461
+ rows: this.diffRows,
144462
+ binary: false
144463
+ }];
144223
144464
  let foldOrdinal = 0;
144224
- for (const row of folded) {
144225
- if (row.kind === "fold") {
144226
- if (this.expandedFolds.has(foldOrdinal)) {
144227
- result.push(...row.rows);
144465
+ return files.map((file) => {
144466
+ const result = [];
144467
+ for (const row of foldContextRows(file.rows)) {
144468
+ if (row.kind === "fold") {
144469
+ if (this.expandedFolds.has(foldOrdinal)) {
144470
+ result.push(...row.rows);
144471
+ } else {
144472
+ result.push({ ...row, ordinal: foldOrdinal });
144473
+ }
144474
+ foldOrdinal++;
144228
144475
  } else {
144229
- result.push({ ...row, ordinal: foldOrdinal });
144476
+ result.push(row);
144230
144477
  }
144231
- foldOrdinal++;
144232
- } else {
144233
- result.push(row);
144234
144478
  }
144235
- }
144236
- return result;
144479
+ return { file, rows: result };
144480
+ });
144481
+ }
144482
+ displayRowsWithFolds() {
144483
+ return this.displaySectionsWithFolds().flatMap((section) => section.rows);
144237
144484
  }
144238
144485
  async updated(changedProperties) {
144239
144486
  super.updated(changedProperties);
@@ -144248,7 +144495,7 @@ var _DeesDataviewCodebox = class _DeesDataviewCodebox extends (_a30 = DeesElemen
144248
144495
  }
144249
144496
  }
144250
144497
  if (this.isDiffActive) {
144251
- if (changedProperties.has("codeToDisplay") || changedProperties.has("codeBefore") || changedProperties.has("unifiedDiff") || changedProperties.has("diffView") || changedProperties.has("expandedFolds") || changedProperties.has("progLang")) {
144498
+ if (changedProperties.has("codeToDisplay") || changedProperties.has("codeBefore") || changedProperties.has("unifiedDiff") || changedProperties.has("unifiedDiffTruncated") || changedProperties.has("diffView") || changedProperties.has("expandedFolds") || changedProperties.has("progLang")) {
144252
144499
  await this.highlightDiffLines();
144253
144500
  }
144254
144501
  return;
@@ -144329,6 +144576,7 @@ _frameless = new WeakMap();
144329
144576
  _codeToDisplay = new WeakMap();
144330
144577
  _codeBefore = new WeakMap();
144331
144578
  _unifiedDiff = new WeakMap();
144579
+ _unifiedDiffTruncated = new WeakMap();
144332
144580
  _diffView = new WeakMap();
144333
144581
  _showDiffLineNumbers = new WeakMap();
144334
144582
  _highlightedCode = new WeakMap();
@@ -144342,6 +144590,7 @@ __decorateElement(_init31, 4, "frameless", _frameless_dec, _DeesDataviewCodebox,
144342
144590
  __decorateElement(_init31, 4, "codeToDisplay", _codeToDisplay_dec, _DeesDataviewCodebox, _codeToDisplay);
144343
144591
  __decorateElement(_init31, 4, "codeBefore", _codeBefore_dec, _DeesDataviewCodebox, _codeBefore);
144344
144592
  __decorateElement(_init31, 4, "unifiedDiff", _unifiedDiff_dec, _DeesDataviewCodebox, _unifiedDiff);
144593
+ __decorateElement(_init31, 4, "unifiedDiffTruncated", _unifiedDiffTruncated_dec, _DeesDataviewCodebox, _unifiedDiffTruncated);
144345
144594
  __decorateElement(_init31, 4, "diffView", _diffView_dec, _DeesDataviewCodebox, _diffView);
144346
144595
  __decorateElement(_init31, 4, "showDiffLineNumbers", _showDiffLineNumbers_dec, _DeesDataviewCodebox, _showDiffLineNumbers);
144347
144596
  __decorateElement(_init31, 4, "highlightedCode", _highlightedCode_dec, _DeesDataviewCodebox, _highlightedCode);
@@ -144665,6 +144914,51 @@ __publicField(_DeesDataviewCodebox, "styles", [
144665
144914
  .diffStat.removed {
144666
144915
  color: var(--dees-color-accent-error);
144667
144916
  }
144917
+
144918
+ .diffFileHeader {
144919
+ display: flex;
144920
+ align-items: baseline;
144921
+ gap: var(--dees-spacing-md);
144922
+ min-width: 0;
144923
+ padding: 6px var(--dees-spacing-lg);
144924
+ border-top: 1px solid var(--dees-color-border-subtle);
144925
+ border-bottom: 1px solid var(--dees-color-border-subtle);
144926
+ background: var(--dees-color-bg-secondary);
144927
+ }
144928
+
144929
+ .diffFile:first-child > .diffFileHeader { border-top: 0; }
144930
+
144931
+ .diffFilePath {
144932
+ min-width: 0;
144933
+ overflow: hidden;
144934
+ text-overflow: ellipsis;
144935
+ white-space: nowrap;
144936
+ color: var(--dees-color-text-primary);
144937
+ font: 600 var(--dees-font-control-size-sm)/1.4 var(--dees-font-family-mono);
144938
+ }
144939
+
144940
+ .diffFileMeta {
144941
+ flex: 0 1 auto;
144942
+ min-width: 0;
144943
+ overflow: hidden;
144944
+ text-overflow: ellipsis;
144945
+ white-space: nowrap;
144946
+ color: var(--dees-color-text-muted);
144947
+ font-size: var(--dees-font-caption1-size, 11px);
144948
+ }
144949
+
144950
+ .diffFileNotice,
144951
+ .diffDocumentNotice {
144952
+ padding: var(--dees-spacing-lg);
144953
+ color: var(--dees-color-text-muted);
144954
+ font-size: var(--dees-font-control-size-sm);
144955
+ }
144956
+
144957
+ .diffQualifier {
144958
+ margin-left: var(--dees-spacing-sm);
144959
+ color: var(--dees-color-text-muted);
144960
+ font-weight: 500;
144961
+ }
144668
144962
  `
144669
144963
  ]);
144670
144964
  __runInitializers(_init31, 1, _DeesDataviewCodebox);
@@ -148332,6 +148626,9 @@ var chartAreaStyles = [
148332
148626
  chartFrameStyles,
148333
148627
  i`
148334
148628
  .chartContainer { margin: 12px 16px 8px; }
148629
+ :host([compact]) dees-tile::part(outer) { border: 0; border-radius: 0; }
148630
+ :host([compact]) dees-tile::part(content) { border: 0; }
148631
+ :host([compact]) .chartContainer { margin: 4px 0 0; }
148335
148632
  .rangeSelectionOverlay {
148336
148633
  position: absolute;
148337
148634
  display: none;
@@ -148405,17 +148702,19 @@ init_dees_icon();
148405
148702
  var renderChartArea = /* @__PURE__ */ __name((component) => {
148406
148703
  return b2`
148407
148704
  <dees-tile>
148408
- <div slot="header" class="chartHeader">
148409
- <h2 class="chartLabel">${component.label}</h2>
148410
- <button type="button" aria-label=${component.isFullPage ? "Exit full page" : "Expand chart"} class="expandBtn" @click=${() => component.toggleFullPage()} title="${component.isFullPage ? "Exit full page" : "Full page"}">
148411
- <dees-icon .icon=${component.isFullPage ? "lucide:Minimize2" : "lucide:Maximize2"} .iconSize=${14}></dees-icon>
148412
- </button>
148413
- </div>
148705
+ ${component.compact ? b2`<span slot="header" hidden></span>` : b2`
148706
+ <div slot="header" class="chartHeader">
148707
+ <h2 class="chartLabel">${component.label}</h2>
148708
+ <button type="button" aria-label=${component.isFullPage ? "Exit full page" : "Expand chart"} class="expandBtn" @click=${() => component.toggleFullPage()} title="${component.isFullPage ? "Exit full page" : "Full page"}">
148709
+ <dees-icon .icon=${component.isFullPage ? "lucide:Minimize2" : "lucide:Maximize2"} .iconSize=${14}></dees-icon>
148710
+ </button>
148711
+ </div>
148712
+ `}
148414
148713
  <div class="chartContainer">
148415
148714
  <div class="rangeSelectionOverlay" aria-hidden="true"></div>
148416
148715
  </div>
148417
148716
  ${!component.chartSeries.some((series) => series.data.some((point4) => point4.y !== null)) ? b2`<div class="chartState" role="status">No data for this period</div>` : ""}
148418
- ${component.seriesStats.length > 0 && !component.hideLegend ? b2`
148717
+ ${component.seriesStats.length > 0 && !component.hideLegend && !component.compact ? b2`
148419
148718
  <div slot="footer" class="statsBar">
148420
148719
  ${component.seriesStats.map((s9) => b2`
148421
148720
  <div class="statsSeries">
@@ -148583,10 +148882,10 @@ init_dist_ts26();
148583
148882
  init_dist_ts25();
148584
148883
  init_fonts();
148585
148884
  init_services();
148586
- var _selectedRange_dec, _rangeSelectionEnabled_dec, _chartLines_dec, _hideLegend_dec, _legendStats_dec, _autoScrollInterval_dec, _yAxisMax_dec, _yAxisScaling_dec, _realtimeMode_dec, _rollingWindow_dec, _yAxisFormatter_dec, _series_dec, _label_dec5, _isFullPage_dec, _seriesStats_dec, _chart_dec, _a35, _DeesChartArea_decorators, _init36, _chart, _seriesStats, _isFullPage, _label5, _series, _yAxisFormatter, _rollingWindow, _realtimeMode, _yAxisScaling, _yAxisMax, _autoScrollInterval, _legendStats, _hideLegend, _chartLines, _rangeSelectionEnabled, _selectedRange;
148885
+ var _selectedRange_dec, _rangeSelectionEnabled_dec, _chartLines_dec, _compact_dec, _hideLegend_dec, _legendStats_dec, _autoScrollInterval_dec, _yAxisMax_dec, _yAxisScaling_dec, _realtimeMode_dec, _rollingWindow_dec, _yAxisFormatter_dec, _series_dec, _label_dec5, _isFullPage_dec, _seriesStats_dec, _chart_dec, _a35, _DeesChartArea_decorators, _init36, _chart, _seriesStats, _isFullPage, _label5, _series, _yAxisFormatter, _rollingWindow, _realtimeMode, _yAxisScaling, _yAxisMax, _autoScrollInterval, _legendStats, _hideLegend, _compact, _chartLines, _rangeSelectionEnabled, _selectedRange;
148587
148886
  var CHART_LEGEND_STATS = ["latest", "min", "max", "avg"];
148588
148887
  _DeesChartArea_decorators = [customElement("dees-chart-area")];
148589
- var _DeesChartArea = class _DeesChartArea extends (_a35 = DeesElement, _chart_dec = [r5()], _seriesStats_dec = [r5()], _isFullPage_dec = [r5()], _label_dec5 = [n5()], _series_dec = [n5({ type: Array })], _yAxisFormatter_dec = [n5({ attribute: false })], _rollingWindow_dec = [n5({ type: Number })], _realtimeMode_dec = [n5({ type: Boolean })], _yAxisScaling_dec = [n5({ type: String })], _yAxisMax_dec = [n5({ type: Number })], _autoScrollInterval_dec = [n5({ type: Number })], _legendStats_dec = [n5({ type: Array })], _hideLegend_dec = [n5({ type: Boolean })], _chartLines_dec = [n5({ type: Array })], _rangeSelectionEnabled_dec = [n5({ type: Boolean })], _selectedRange_dec = [n5({ attribute: false })], _a35) {
148888
+ var _DeesChartArea = class _DeesChartArea extends (_a35 = DeesElement, _chart_dec = [r5()], _seriesStats_dec = [r5()], _isFullPage_dec = [r5()], _label_dec5 = [n5()], _series_dec = [n5({ type: Array })], _yAxisFormatter_dec = [n5({ attribute: false })], _rollingWindow_dec = [n5({ type: Number })], _realtimeMode_dec = [n5({ type: Boolean })], _yAxisScaling_dec = [n5({ type: String })], _yAxisMax_dec = [n5({ type: Number })], _autoScrollInterval_dec = [n5({ type: Number })], _legendStats_dec = [n5({ type: Array })], _hideLegend_dec = [n5({ type: Boolean })], _compact_dec = [n5({ type: Boolean, reflect: true })], _chartLines_dec = [n5({ type: Array })], _rangeSelectionEnabled_dec = [n5({ type: Boolean })], _selectedRange_dec = [n5({ attribute: false })], _a35) {
148590
148889
  constructor() {
148591
148890
  super();
148592
148891
  __privateAdd(this, _chart, __runInitializers(_init36, 8, this, null)), __runInitializers(_init36, 11, this);
@@ -148602,9 +148901,10 @@ var _DeesChartArea = class _DeesChartArea extends (_a35 = DeesElement, _chart_de
148602
148901
  __privateAdd(this, _autoScrollInterval, __runInitializers(_init36, 48, this, 1e3)), __runInitializers(_init36, 51, this);
148603
148902
  __privateAdd(this, _legendStats, __runInitializers(_init36, 52, this, [...CHART_LEGEND_STATS])), __runInitializers(_init36, 55, this);
148604
148903
  __privateAdd(this, _hideLegend, __runInitializers(_init36, 56, this, false)), __runInitializers(_init36, 59, this);
148605
- __privateAdd(this, _chartLines, __runInitializers(_init36, 60, this, ["avg", "max"])), __runInitializers(_init36, 63, this);
148606
- __privateAdd(this, _rangeSelectionEnabled, __runInitializers(_init36, 64, this, false)), __runInitializers(_init36, 67, this);
148607
- __privateAdd(this, _selectedRange, __runInitializers(_init36, 68, this, null)), __runInitializers(_init36, 71, this);
148904
+ __privateAdd(this, _compact, __runInitializers(_init36, 60, this, false)), __runInitializers(_init36, 63, this);
148905
+ __privateAdd(this, _chartLines, __runInitializers(_init36, 64, this, ["avg", "max"])), __runInitializers(_init36, 67, this);
148906
+ __privateAdd(this, _rangeSelectionEnabled, __runInitializers(_init36, 68, this, false)), __runInitializers(_init36, 71, this);
148907
+ __privateAdd(this, _selectedRange, __runInitializers(_init36, 72, this, null)), __runInitializers(_init36, 75, this);
148608
148908
  __publicField(this, "internalChartData", []);
148609
148909
  __publicField(this, "autoScrollTimer", null);
148610
148910
  __publicField(this, "lcBundle", null);
@@ -149456,6 +149756,7 @@ _yAxisMax = new WeakMap();
149456
149756
  _autoScrollInterval = new WeakMap();
149457
149757
  _legendStats = new WeakMap();
149458
149758
  _hideLegend = new WeakMap();
149759
+ _compact = new WeakMap();
149459
149760
  _chartLines = new WeakMap();
149460
149761
  _rangeSelectionEnabled = new WeakMap();
149461
149762
  _selectedRange = new WeakMap();
@@ -149472,6 +149773,7 @@ __decorateElement(_init36, 4, "yAxisMax", _yAxisMax_dec, _DeesChartArea, _yAxisM
149472
149773
  __decorateElement(_init36, 4, "autoScrollInterval", _autoScrollInterval_dec, _DeesChartArea, _autoScrollInterval);
149473
149774
  __decorateElement(_init36, 4, "legendStats", _legendStats_dec, _DeesChartArea, _legendStats);
149474
149775
  __decorateElement(_init36, 4, "hideLegend", _hideLegend_dec, _DeesChartArea, _hideLegend);
149776
+ __decorateElement(_init36, 4, "compact", _compact_dec, _DeesChartArea, _compact);
149475
149777
  __decorateElement(_init36, 4, "chartLines", _chartLines_dec, _DeesChartArea, _chartLines);
149476
149778
  __decorateElement(_init36, 4, "rangeSelectionEnabled", _rangeSelectionEnabled_dec, _DeesChartArea, _rangeSelectionEnabled);
149477
149779
  __decorateElement(_init36, 4, "selectedRange", _selectedRange_dec, _DeesChartArea, _selectedRange);
@@ -173166,9 +173468,9 @@ init_dist_ts25();
173166
173468
  init_interfaces3();
173167
173469
  init_theme();
173168
173470
  init_zindex();
173169
- var _compactSecondaryOpen_dec, _compactMainOpen_dec, _compact_dec, _currentView_dec, _bottombarVisible_dec, _bottombarElement_dec, _activitylogElement_dec, _maincontent_dec, _secondarymenu_dec, _mainmenu_dec, _appbar_dec, _contentTabActionsRight_dec, _contentTabActionsLeft_dec, _maincontentSelectedTab_dec, _maincontentTabs_dec, _activityLogCount_dec2, _activityLogLive_dec, _activityLogVisible_dec, _contentTabsAutoHideThreshold_dec, _contentTabsAutoHide_dec, _maincontentTabsVisible_dec, _secondarymenuVisible_dec, _mainmenuVisible_dec, _secondarymenuCollapsed_dec, _mainmenuCollapsed_dec, _secondarymenuSelectedItem_dec, _secondarymenuGroups_dec, _secondarymenuHeading_dec, _mainmenuSelectedTab_dec, _mainmenuTabs_dec, _mainmenuBottomTabs_dec, _mainmenuGroups_dec, _mainmenuLogoText_dec, _mainmenuLogoIcon_dec, _appbarShowSearch_dec, _appbarProfileMenuItems_dec, _appbarUser_dec, _appbarShowWindowControls_dec, _currentRoute_dec, _locationItems_dec, _appbarLocationEnabled_dec, _appbarBreadcrumbSeparator_dec, _appbarBreadcrumbs_dec, _appbarMenuItems_dec, _a75, _DeesAppui_decorators, _init77, _appbarMenuItems, _appbarBreadcrumbs, _appbarBreadcrumbSeparator, _appbarLocationEnabled, _locationItems, _currentRoute, _appbarShowWindowControls, _appbarUser, _appbarProfileMenuItems, _appbarShowSearch, _mainmenuLogoIcon, _mainmenuLogoText, _mainmenuGroups, _mainmenuBottomTabs, _mainmenuTabs, _mainmenuSelectedTab, _secondarymenuHeading, _secondarymenuGroups, _secondarymenuSelectedItem, _mainmenuCollapsed, _secondarymenuCollapsed, _mainmenuVisible, _secondarymenuVisible, _maincontentTabsVisible, _contentTabsAutoHide, _contentTabsAutoHideThreshold, _activityLogVisible, _activityLogLive, _activityLogCount2, _maincontentTabs, _maincontentSelectedTab, _contentTabActionsLeft, _contentTabActionsRight, _appbar, _mainmenu, _secondarymenu, _maincontent, _activitylogElement, _bottombarElement, _bottombarVisible, _currentView, _compact, _compactMainOpen, _compactSecondaryOpen;
173471
+ var _compactSecondaryOpen_dec, _compactMainOpen_dec, _compact_dec2, _currentView_dec, _bottombarVisible_dec, _bottombarElement_dec, _activitylogElement_dec, _maincontent_dec, _secondarymenu_dec, _mainmenu_dec, _appbar_dec, _contentTabActionsRight_dec, _contentTabActionsLeft_dec, _maincontentSelectedTab_dec, _maincontentTabs_dec, _activityLogCount_dec2, _activityLogLive_dec, _activityLogVisible_dec, _contentTabsAutoHideThreshold_dec, _contentTabsAutoHide_dec, _maincontentTabsVisible_dec, _secondarymenuVisible_dec, _mainmenuVisible_dec, _secondarymenuCollapsed_dec, _mainmenuCollapsed_dec, _secondarymenuSelectedItem_dec, _secondarymenuGroups_dec, _secondarymenuHeading_dec, _mainmenuSelectedTab_dec, _mainmenuTabs_dec, _mainmenuBottomTabs_dec, _mainmenuGroups_dec, _mainmenuLogoText_dec, _mainmenuLogoIcon_dec, _appbarShowSearch_dec, _appbarProfileMenuItems_dec, _appbarUser_dec, _appbarShowWindowControls_dec, _currentRoute_dec, _locationItems_dec, _appbarLocationEnabled_dec, _appbarBreadcrumbSeparator_dec, _appbarBreadcrumbs_dec, _appbarMenuItems_dec, _a75, _DeesAppui_decorators, _init77, _appbarMenuItems, _appbarBreadcrumbs, _appbarBreadcrumbSeparator, _appbarLocationEnabled, _locationItems, _currentRoute, _appbarShowWindowControls, _appbarUser, _appbarProfileMenuItems, _appbarShowSearch, _mainmenuLogoIcon, _mainmenuLogoText, _mainmenuGroups, _mainmenuBottomTabs, _mainmenuTabs, _mainmenuSelectedTab, _secondarymenuHeading, _secondarymenuGroups, _secondarymenuSelectedItem, _mainmenuCollapsed, _secondarymenuCollapsed, _mainmenuVisible, _secondarymenuVisible, _maincontentTabsVisible, _contentTabsAutoHide, _contentTabsAutoHideThreshold, _activityLogVisible, _activityLogLive, _activityLogCount2, _maincontentTabs, _maincontentSelectedTab, _contentTabActionsLeft, _contentTabActionsRight, _appbar, _mainmenu, _secondarymenu, _maincontent, _activitylogElement, _bottombarElement, _bottombarVisible, _currentView, _compact2, _compactMainOpen, _compactSecondaryOpen;
173170
173472
  _DeesAppui_decorators = [customElement("dees-appui")];
173171
- var _DeesAppui = class _DeesAppui extends (_a75 = DeesElement, _appbarMenuItems_dec = [n5({ type: Array })], _appbarBreadcrumbs_dec = [n5({ type: String })], _appbarBreadcrumbSeparator_dec = [n5({ type: String })], _appbarLocationEnabled_dec = [n5({ type: Boolean })], _locationItems_dec = [r5()], _currentRoute_dec = [r5()], _appbarShowWindowControls_dec = [n5({ type: Boolean })], _appbarUser_dec = [n5({ type: Object })], _appbarProfileMenuItems_dec = [n5({ type: Array })], _appbarShowSearch_dec = [n5({ type: Boolean })], _mainmenuLogoIcon_dec = [n5({ type: String })], _mainmenuLogoText_dec = [n5({ type: String })], _mainmenuGroups_dec = [n5({ type: Array })], _mainmenuBottomTabs_dec = [n5({ type: Array })], _mainmenuTabs_dec = [n5({ type: Array })], _mainmenuSelectedTab_dec = [n5({ type: Object })], _secondarymenuHeading_dec = [n5({ type: String })], _secondarymenuGroups_dec = [n5({ type: Array })], _secondarymenuSelectedItem_dec = [n5({ type: Object })], _mainmenuCollapsed_dec = [n5({ type: Boolean })], _secondarymenuCollapsed_dec = [n5({ type: Boolean })], _mainmenuVisible_dec = [n5({ type: Boolean })], _secondarymenuVisible_dec = [n5({ type: Boolean })], _maincontentTabsVisible_dec = [n5({ type: Boolean })], _contentTabsAutoHide_dec = [n5({ type: Boolean })], _contentTabsAutoHideThreshold_dec = [n5({ type: Number })], _activityLogVisible_dec = [r5()], _activityLogLive_dec = [n5({ type: Boolean })], _activityLogCount_dec2 = [r5()], _maincontentTabs_dec = [n5({ type: Array })], _maincontentSelectedTab_dec = [n5({ type: Object })], _contentTabActionsLeft_dec = [n5({ type: Array })], _contentTabActionsRight_dec = [n5({ type: Array })], _appbar_dec = [r5()], _mainmenu_dec = [r5()], _secondarymenu_dec = [r5()], _maincontent_dec = [r5()], _activitylogElement_dec = [r5()], _bottombarElement_dec = [r5()], _bottombarVisible_dec = [r5()], _currentView_dec = [r5()], _compact_dec = [r5()], _compactMainOpen_dec = [r5()], _compactSecondaryOpen_dec = [r5()], _a75) {
173473
+ var _DeesAppui = class _DeesAppui extends (_a75 = DeesElement, _appbarMenuItems_dec = [n5({ type: Array })], _appbarBreadcrumbs_dec = [n5({ type: String })], _appbarBreadcrumbSeparator_dec = [n5({ type: String })], _appbarLocationEnabled_dec = [n5({ type: Boolean })], _locationItems_dec = [r5()], _currentRoute_dec = [r5()], _appbarShowWindowControls_dec = [n5({ type: Boolean })], _appbarUser_dec = [n5({ type: Object })], _appbarProfileMenuItems_dec = [n5({ type: Array })], _appbarShowSearch_dec = [n5({ type: Boolean })], _mainmenuLogoIcon_dec = [n5({ type: String })], _mainmenuLogoText_dec = [n5({ type: String })], _mainmenuGroups_dec = [n5({ type: Array })], _mainmenuBottomTabs_dec = [n5({ type: Array })], _mainmenuTabs_dec = [n5({ type: Array })], _mainmenuSelectedTab_dec = [n5({ type: Object })], _secondarymenuHeading_dec = [n5({ type: String })], _secondarymenuGroups_dec = [n5({ type: Array })], _secondarymenuSelectedItem_dec = [n5({ type: Object })], _mainmenuCollapsed_dec = [n5({ type: Boolean })], _secondarymenuCollapsed_dec = [n5({ type: Boolean })], _mainmenuVisible_dec = [n5({ type: Boolean })], _secondarymenuVisible_dec = [n5({ type: Boolean })], _maincontentTabsVisible_dec = [n5({ type: Boolean })], _contentTabsAutoHide_dec = [n5({ type: Boolean })], _contentTabsAutoHideThreshold_dec = [n5({ type: Number })], _activityLogVisible_dec = [r5()], _activityLogLive_dec = [n5({ type: Boolean })], _activityLogCount_dec2 = [r5()], _maincontentTabs_dec = [n5({ type: Array })], _maincontentSelectedTab_dec = [n5({ type: Object })], _contentTabActionsLeft_dec = [n5({ type: Array })], _contentTabActionsRight_dec = [n5({ type: Array })], _appbar_dec = [r5()], _mainmenu_dec = [r5()], _secondarymenu_dec = [r5()], _maincontent_dec = [r5()], _activitylogElement_dec = [r5()], _bottombarElement_dec = [r5()], _bottombarVisible_dec = [r5()], _currentView_dec = [r5()], _compact_dec2 = [r5()], _compactMainOpen_dec = [r5()], _compactSecondaryOpen_dec = [r5()], _a75) {
173172
173474
  constructor() {
173173
173475
  super();
173174
173476
  // ==========================================
@@ -173225,7 +173527,7 @@ var _DeesAppui = class _DeesAppui extends (_a75 = DeesElement, _appbarMenuItems_
173225
173527
  __publicField(this, "viewRegistry", new ViewRegistry());
173226
173528
  __publicField(this, "routerCleanup", null);
173227
173529
  __publicField(this, "searchCallback", null);
173228
- __privateAdd(this, _compact, __runInitializers(_init77, 172, this, false)), __runInitializers(_init77, 175, this);
173530
+ __privateAdd(this, _compact2, __runInitializers(_init77, 172, this, false)), __runInitializers(_init77, 175, this);
173229
173531
  __privateAdd(this, _compactMainOpen, __runInitializers(_init77, 176, this, false)), __runInitializers(_init77, 179, this);
173230
173532
  __privateAdd(this, _compactSecondaryOpen, __runInitializers(_init77, 180, this, false)), __runInitializers(_init77, 183, this);
173231
173533
  __publicField(this, "navigationQueue", Promise.resolve(true));
@@ -174263,7 +174565,7 @@ _activitylogElement = new WeakMap();
174263
174565
  _bottombarElement = new WeakMap();
174264
174566
  _bottombarVisible = new WeakMap();
174265
174567
  _currentView = new WeakMap();
174266
- _compact = new WeakMap();
174568
+ _compact2 = new WeakMap();
174267
174569
  _compactMainOpen = new WeakMap();
174268
174570
  _compactSecondaryOpen = new WeakMap();
174269
174571
  __decorateElement(_init77, 4, "appbarMenuItems", _appbarMenuItems_dec, _DeesAppui, _appbarMenuItems);
@@ -174307,7 +174609,7 @@ __decorateElement(_init77, 4, "activitylogElement", _activitylogElement_dec, _De
174307
174609
  __decorateElement(_init77, 4, "bottombarElement", _bottombarElement_dec, _DeesAppui, _bottombarElement);
174308
174610
  __decorateElement(_init77, 4, "bottombarVisible", _bottombarVisible_dec, _DeesAppui, _bottombarVisible);
174309
174611
  __decorateElement(_init77, 4, "currentView", _currentView_dec, _DeesAppui, _currentView);
174310
- __decorateElement(_init77, 4, "compact", _compact_dec, _DeesAppui, _compact);
174612
+ __decorateElement(_init77, 4, "compact", _compact_dec2, _DeesAppui, _compact2);
174311
174613
  __decorateElement(_init77, 4, "compactMainOpen", _compactMainOpen_dec, _DeesAppui, _compactMainOpen);
174312
174614
  __decorateElement(_init77, 4, "compactSecondaryOpen", _compactSecondaryOpen_dec, _DeesAppui, _compactSecondaryOpen);
174313
174615
  _DeesAppui = __decorateElement(_init77, 0, "DeesAppui", _DeesAppui_decorators, _DeesAppui);
@@ -180055,15 +180357,15 @@ var demoFunc59 = /* @__PURE__ */ __name(() => demoPage("Tasks", "Progress that s
180055
180357
  init_dist_ts26();
180056
180358
  init_theme();
180057
180359
  init_dees_icon();
180058
- var _showProgress_dec, _compact_dec2, _heading_dec5, _todos_dec, _a86, _DeesHarnessTodos_decorators, _init88, _todos, _heading5, _compact2, _showProgress;
180360
+ var _showProgress_dec, _compact_dec3, _heading_dec5, _todos_dec, _a86, _DeesHarnessTodos_decorators, _init88, _todos, _heading5, _compact3, _showProgress;
180059
180361
  var { repeat: repeat3 } = directives_exports;
180060
180362
  _DeesHarnessTodos_decorators = [customElement("dees-harness-todos")];
180061
- var _DeesHarnessTodos = class _DeesHarnessTodos extends (_a86 = DeesElement, _todos_dec = [n5({ attribute: false })], _heading_dec5 = [n5()], _compact_dec2 = [n5({ type: Boolean })], _showProgress_dec = [n5({ type: Boolean })], _a86) {
180363
+ var _DeesHarnessTodos = class _DeesHarnessTodos extends (_a86 = DeesElement, _todos_dec = [n5({ attribute: false })], _heading_dec5 = [n5()], _compact_dec3 = [n5({ type: Boolean })], _showProgress_dec = [n5({ type: Boolean })], _a86) {
180062
180364
  constructor() {
180063
180365
  super(...arguments);
180064
180366
  __privateAdd(this, _todos, __runInitializers(_init88, 8, this, [])), __runInitializers(_init88, 11, this);
180065
180367
  __privateAdd(this, _heading5, __runInitializers(_init88, 12, this, "")), __runInitializers(_init88, 15, this);
180066
- __privateAdd(this, _compact2, __runInitializers(_init88, 16, this, false)), __runInitializers(_init88, 19, this);
180368
+ __privateAdd(this, _compact3, __runInitializers(_init88, 16, this, false)), __runInitializers(_init88, 19, this);
180067
180369
  __privateAdd(this, _showProgress, __runInitializers(_init88, 20, this, true)), __runInitializers(_init88, 23, this);
180068
180370
  }
180069
180371
  get completedCount() {
@@ -180099,11 +180401,11 @@ var _DeesHarnessTodos = class _DeesHarnessTodos extends (_a86 = DeesElement, _to
180099
180401
  _init88 = __decoratorStart(_a86);
180100
180402
  _todos = new WeakMap();
180101
180403
  _heading5 = new WeakMap();
180102
- _compact2 = new WeakMap();
180404
+ _compact3 = new WeakMap();
180103
180405
  _showProgress = new WeakMap();
180104
180406
  __decorateElement(_init88, 4, "todos", _todos_dec, _DeesHarnessTodos, _todos);
180105
180407
  __decorateElement(_init88, 4, "heading", _heading_dec5, _DeesHarnessTodos, _heading5);
180106
- __decorateElement(_init88, 4, "compact", _compact_dec2, _DeesHarnessTodos, _compact2);
180408
+ __decorateElement(_init88, 4, "compact", _compact_dec3, _DeesHarnessTodos, _compact3);
180107
180409
  __decorateElement(_init88, 4, "showProgress", _showProgress_dec, _DeesHarnessTodos, _showProgress);
180108
180410
  _DeesHarnessTodos = __decorateElement(_init88, 0, "DeesHarnessTodos", _DeesHarnessTodos_decorators, _DeesHarnessTodos);
180109
180411
  __name(_DeesHarnessTodos, "DeesHarnessTodos");
@@ -187457,7 +187759,7 @@ var demoFunc66 = /* @__PURE__ */ __name(() => demoPage("Usage", "Compact token c
187457
187759
  // ts_web/elements/00group-harness/dees-harness-usage/dees-harness-usage.ts
187458
187760
  init_dist_ts26();
187459
187761
  init_theme();
187460
- var _compact_dec3, _usage_dec, _a97, _DeesHarnessUsage_decorators, _init99, _usage, _compact3;
187762
+ var _compact_dec4, _usage_dec, _a97, _DeesHarnessUsage_decorators, _init99, _usage, _compact4;
187461
187763
  var formatTokenCount2 = /* @__PURE__ */ __name((count2) => {
187462
187764
  if (!count2) return "0";
187463
187765
  if (count2 < 1e3) return String(count2);
@@ -187465,11 +187767,11 @@ var formatTokenCount2 = /* @__PURE__ */ __name((count2) => {
187465
187767
  return `${(count2 / 1e6).toFixed(1)}M`;
187466
187768
  }, "formatTokenCount");
187467
187769
  _DeesHarnessUsage_decorators = [customElement("dees-harness-usage")];
187468
- var _DeesHarnessUsage = class _DeesHarnessUsage extends (_a97 = DeesElement, _usage_dec = [n5({ attribute: false })], _compact_dec3 = [n5({ type: Boolean })], _a97) {
187770
+ var _DeesHarnessUsage = class _DeesHarnessUsage extends (_a97 = DeesElement, _usage_dec = [n5({ attribute: false })], _compact_dec4 = [n5({ type: Boolean })], _a97) {
187469
187771
  constructor() {
187470
187772
  super(...arguments);
187471
187773
  __privateAdd(this, _usage, __runInitializers(_init99, 8, this, {})), __runInitializers(_init99, 11, this);
187472
- __privateAdd(this, _compact3, __runInitializers(_init99, 12, this, false)), __runInitializers(_init99, 15, this);
187774
+ __privateAdd(this, _compact4, __runInitializers(_init99, 12, this, false)), __runInitializers(_init99, 15, this);
187473
187775
  }
187474
187776
  render() {
187475
187777
  const usage = this.usage;
@@ -187497,9 +187799,9 @@ var _DeesHarnessUsage = class _DeesHarnessUsage extends (_a97 = DeesElement, _us
187497
187799
  };
187498
187800
  _init99 = __decoratorStart(_a97);
187499
187801
  _usage = new WeakMap();
187500
- _compact3 = new WeakMap();
187802
+ _compact4 = new WeakMap();
187501
187803
  __decorateElement(_init99, 4, "usage", _usage_dec, _DeesHarnessUsage, _usage);
187502
- __decorateElement(_init99, 4, "compact", _compact_dec3, _DeesHarnessUsage, _compact3);
187804
+ __decorateElement(_init99, 4, "compact", _compact_dec4, _DeesHarnessUsage, _compact4);
187503
187805
  _DeesHarnessUsage = __decorateElement(_init99, 0, "DeesHarnessUsage", _DeesHarnessUsage_decorators, _DeesHarnessUsage);
187504
187806
  __name(_DeesHarnessUsage, "DeesHarnessUsage");
187505
187807
  __publicField(_DeesHarnessUsage, "demo", demoFunc66);
@@ -200033,7 +200335,7 @@ init_templates();
200033
200335
  init_theme();
200034
200336
  init_dees_appui_tabs();
200035
200337
  init_dees_button();
200036
- var _compact_dec4, _sourceUrl_dec, _localFile_dec, _selected_dec2, _kind_dec2, _a121, _DeesDemoMediaWorkspace_decorators, _init123, _kind2, _selected2, _localFile, _sourceUrl, _compact4;
200338
+ var _compact_dec5, _sourceUrl_dec, _localFile_dec, _selected_dec2, _kind_dec2, _a121, _DeesDemoMediaWorkspace_decorators, _init123, _kind2, _selected2, _localFile, _sourceUrl, _compact5;
200037
200339
  var samples2 = /* @__PURE__ */ __name(() => [
200038
200340
  { key: "image", icon: "lucide:Image", file: new File([previewArtwork], "Perspective.svg", { type: "image/svg+xml" }), detail: "1440 \xD7 960 \xB7 Original illustration" },
200039
200341
  { key: "pdf", icon: "lucide:FileText", url: "https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi-09.pdf", filename: "research-paper.pdf", detail: "The original PDF.js research paper \xB7 Read the document or browse every page" },
@@ -200044,14 +200346,14 @@ var samples2 = /* @__PURE__ */ __name(() => [
200044
200346
  { key: "unknown", icon: "lucide:File", file: new File(["sample"], "Archive.bin"), detail: "A file without a supported preview" }
200045
200347
  ], "samples");
200046
200348
  _DeesDemoMediaWorkspace_decorators = [customElement("dees-demo-media-workspace")];
200047
- var _DeesDemoMediaWorkspace = class _DeesDemoMediaWorkspace extends (_a121 = DeesElement, _kind_dec2 = [n5()], _selected_dec2 = [r5()], _localFile_dec = [r5()], _sourceUrl_dec = [r5()], _compact_dec4 = [r5()], _a121) {
200349
+ var _DeesDemoMediaWorkspace = class _DeesDemoMediaWorkspace extends (_a121 = DeesElement, _kind_dec2 = [n5()], _selected_dec2 = [r5()], _localFile_dec = [r5()], _sourceUrl_dec = [r5()], _compact_dec5 = [r5()], _a121) {
200048
200350
  constructor() {
200049
200351
  super(...arguments);
200050
200352
  __privateAdd(this, _kind2, __runInitializers(_init123, 8, this, "preview")), __runInitializers(_init123, 11, this);
200051
200353
  __privateAdd(this, _selected2, __runInitializers(_init123, 12, this, "image")), __runInitializers(_init123, 15, this);
200052
200354
  __privateAdd(this, _localFile, __runInitializers(_init123, 16, this)), __runInitializers(_init123, 19, this);
200053
200355
  __privateAdd(this, _sourceUrl, __runInitializers(_init123, 20, this, "")), __runInitializers(_init123, 23, this);
200054
- __privateAdd(this, _compact4, __runInitializers(_init123, 24, this, false)), __runInitializers(_init123, 27, this);
200356
+ __privateAdd(this, _compact5, __runInitializers(_init123, 24, this, false)), __runInitializers(_init123, 27, this);
200055
200357
  __publicField(this, "samples", samples2());
200056
200358
  __publicField(this, "observer");
200057
200359
  __publicField(this, "currentFile");
@@ -200140,12 +200442,12 @@ _kind2 = new WeakMap();
200140
200442
  _selected2 = new WeakMap();
200141
200443
  _localFile = new WeakMap();
200142
200444
  _sourceUrl = new WeakMap();
200143
- _compact4 = new WeakMap();
200445
+ _compact5 = new WeakMap();
200144
200446
  __decorateElement(_init123, 4, "kind", _kind_dec2, _DeesDemoMediaWorkspace, _kind2);
200145
200447
  __decorateElement(_init123, 4, "selected", _selected_dec2, _DeesDemoMediaWorkspace, _selected2);
200146
200448
  __decorateElement(_init123, 4, "localFile", _localFile_dec, _DeesDemoMediaWorkspace, _localFile);
200147
200449
  __decorateElement(_init123, 4, "sourceUrl", _sourceUrl_dec, _DeesDemoMediaWorkspace, _sourceUrl);
200148
- __decorateElement(_init123, 4, "compact", _compact_dec4, _DeesDemoMediaWorkspace, _compact4);
200450
+ __decorateElement(_init123, 4, "compact", _compact_dec5, _DeesDemoMediaWorkspace, _compact5);
200149
200451
  _DeesDemoMediaWorkspace = __decorateElement(_init123, 0, "DeesDemoMediaWorkspace", _DeesDemoMediaWorkspace_decorators, _DeesDemoMediaWorkspace);
200150
200452
  __name(_DeesDemoMediaWorkspace, "DeesDemoMediaWorkspace");
200151
200453
  __publicField(_DeesDemoMediaWorkspace, "styles", [themeDefaultStyles, i`
@@ -228913,9 +229215,9 @@ init_dist_ts26();
228913
229215
  init_theme();
228914
229216
  init_dees_icon();
228915
229217
  init_dees_button();
228916
- var _terminalOpen_dec, _compact_dec6, __activeMessages_dec, _selectedView_dec, _collapsed_dec3, _globalMessages_dec, _executionEnvironment_dec2, _terminalSetupCommand_dec, _viewTabs_dec, _name_dec2, _a139, _DeesSimpleAppDash_decorators, _init146, _name2, _viewTabs, _terminalSetupCommand, _executionEnvironment2, _globalMessages, _collapsed3, _selectedView, __activeMessages, _compact6, _terminalOpen;
229218
+ var _terminalOpen_dec, _compact_dec7, __activeMessages_dec, _selectedView_dec, _collapsed_dec3, _globalMessages_dec, _executionEnvironment_dec2, _terminalSetupCommand_dec, _viewTabs_dec, _name_dec2, _a139, _DeesSimpleAppDash_decorators, _init146, _name2, _viewTabs, _terminalSetupCommand, _executionEnvironment2, _globalMessages, _collapsed3, _selectedView, __activeMessages, _compact7, _terminalOpen;
228917
229219
  _DeesSimpleAppDash_decorators = [customElement("dees-simple-appdash")];
228918
- var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement, _name_dec2 = [n5()], _viewTabs_dec = [n5({ type: Array })], _terminalSetupCommand_dec = [n5()], _executionEnvironment_dec2 = [n5({ type: Object })], _globalMessages_dec = [n5({ type: Array })], _collapsed_dec3 = [n5({ type: Boolean })], _selectedView_dec = [r5()], __activeMessages_dec = [r5()], _compact_dec6 = [r5()], _terminalOpen_dec = [r5()], _a139) {
229220
+ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement, _name_dec2 = [n5()], _viewTabs_dec = [n5({ type: Array })], _terminalSetupCommand_dec = [n5()], _executionEnvironment_dec2 = [n5({ type: Object })], _globalMessages_dec = [n5({ type: Array })], _collapsed_dec3 = [n5({ type: Boolean })], _selectedView_dec = [r5()], __activeMessages_dec = [r5()], _compact_dec7 = [r5()], _terminalOpen_dec = [r5()], _a139) {
228919
229221
  constructor() {
228920
229222
  super();
228921
229223
  __privateAdd(this, _name2, __runInitializers(_init146, 8, this, "Application Dashboard")), __runInitializers(_init146, 11, this);
@@ -228926,7 +229228,7 @@ var _DeesSimpleAppDash = class _DeesSimpleAppDash extends (_a139 = DeesElement,
228926
229228
  __privateAdd(this, _collapsed3, __runInitializers(_init146, 28, this, false)), __runInitializers(_init146, 31, this);
228927
229229
  __privateAdd(this, _selectedView, __runInitializers(_init146, 32, this)), __runInitializers(_init146, 35, this);
228928
229230
  __privateAdd(this, __activeMessages, __runInitializers(_init146, 36, this, [])), __runInitializers(_init146, 39, this);
228929
- __privateAdd(this, _compact6, __runInitializers(_init146, 40, this, false)), __runInitializers(_init146, 43, this);
229231
+ __privateAdd(this, _compact7, __runInitializers(_init146, 40, this, false)), __runInitializers(_init146, 43, this);
228930
229232
  __privateAdd(this, _terminalOpen, __runInitializers(_init146, 44, this, false)), __runInitializers(_init146, 47, this);
228931
229233
  __publicField(this, "currentTerminal", null);
228932
229234
  __publicField(this, "currentView");
@@ -229105,7 +229407,7 @@ _globalMessages = new WeakMap();
229105
229407
  _collapsed3 = new WeakMap();
229106
229408
  _selectedView = new WeakMap();
229107
229409
  __activeMessages = new WeakMap();
229108
- _compact6 = new WeakMap();
229410
+ _compact7 = new WeakMap();
229109
229411
  _terminalOpen = new WeakMap();
229110
229412
  __decorateElement(_init146, 4, "name", _name_dec2, _DeesSimpleAppDash, _name2);
229111
229413
  __decorateElement(_init146, 4, "viewTabs", _viewTabs_dec, _DeesSimpleAppDash, _viewTabs);
@@ -229115,7 +229417,7 @@ __decorateElement(_init146, 4, "globalMessages", _globalMessages_dec, _DeesSimpl
229115
229417
  __decorateElement(_init146, 4, "collapsed", _collapsed_dec3, _DeesSimpleAppDash, _collapsed3);
229116
229418
  __decorateElement(_init146, 4, "selectedView", _selectedView_dec, _DeesSimpleAppDash, _selectedView);
229117
229419
  __decorateElement(_init146, 4, "_activeMessages", __activeMessages_dec, _DeesSimpleAppDash, __activeMessages);
229118
- __decorateElement(_init146, 4, "compact", _compact_dec6, _DeesSimpleAppDash, _compact6);
229420
+ __decorateElement(_init146, 4, "compact", _compact_dec7, _DeesSimpleAppDash, _compact7);
229119
229421
  __decorateElement(_init146, 4, "terminalOpen", _terminalOpen_dec, _DeesSimpleAppDash, _terminalOpen);
229120
229422
  _DeesSimpleAppDash = __decorateElement(_init146, 0, "DeesSimpleAppDash", _DeesSimpleAppDash_decorators, _DeesSimpleAppDash);
229121
229423
  __name(_DeesSimpleAppDash, "DeesSimpleAppDash");
@@ -236048,7 +236350,7 @@ init_group_runtime();
236048
236350
  // ts_web/00_commitinfo_data.ts
236049
236351
  var commitinfo = {
236050
236352
  name: "@design.estate/dees-catalog",
236051
- version: "13.1.0",
236353
+ version: "13.2.0",
236052
236354
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
236053
236355
  };
236054
236356
 
@@ -236283,6 +236585,7 @@ export {
236283
236585
  parseApplyPatch,
236284
236586
  parseMcpName,
236285
236587
  parseUnifiedDiff,
236588
+ parseUnifiedDiffDocument,
236286
236589
  raceWithAbort,
236287
236590
  referenceText,
236288
236591
  registerAllBlockHandlers,