@sinm/kai 1.13.0 → 1.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/RELEASE_NOTES.md +90 -4
- package/dist-cli/kai-cli.js +37631 -26413
- package/dist-electron/renderer/assets/{_baseUniq-IzQS5rpq.js → _baseUniq-Chaz_dmO.js} +1 -1
- package/dist-electron/renderer/assets/{architectureDiagram-Q4EWVU46-lERxZBZ3.js → architectureDiagram-Q4EWVU46-DrN5CwkS.js} +6 -6
- package/dist-electron/renderer/assets/{blockDiagram-DXYQGD6D-50KC-L6H.js → blockDiagram-DXYQGD6D-DL_vNCtt.js} +7 -7
- package/dist-electron/renderer/assets/{c4Diagram-AHTNJAMY-CGUZg_Lb.js → c4Diagram-AHTNJAMY-CHqLUcUq.js} +3 -3
- package/dist-electron/renderer/assets/{channel-BhiLrT8b.js → channel-B2dfgrPY.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-4BX2VUAB-Dsk-FZLe.js → chunk-4BX2VUAB-BmwbZTFO.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-4TB4RGXK-Cg08E4uS.js → chunk-4TB4RGXK-C9eynBDz.js} +5 -5
- package/dist-electron/renderer/assets/{chunk-55IACEB6-CaY4ZtxG.js → chunk-55IACEB6-03BX_AQr.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-EDXVE4YY-D-vr_LVm.js → chunk-EDXVE4YY-DKiHWHcm.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-FMBD7UC4-CgfLwyI0.js → chunk-FMBD7UC4-ChVobCQV.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-OYMX7WX6-B2UNIH07.js → chunk-OYMX7WX6-Ci6VbQY6.js} +3 -3
- package/dist-electron/renderer/assets/{chunk-QZHKN3VN-8pnIXhD9.js → chunk-QZHKN3VN-r-kZRj_p.js} +1 -1
- package/dist-electron/renderer/assets/{chunk-YZCP3GAM-1OCqrydc.js → chunk-YZCP3GAM-CQMNQkng.js} +1 -1
- package/dist-electron/renderer/assets/{classDiagram-v2-HSJHXN6E-D6s4rntl.js → classDiagram-6PBFFD2Q-DGXgpdFS.js} +7 -7
- package/dist-electron/renderer/assets/{classDiagram-6PBFFD2Q-D6s4rntl.js → classDiagram-v2-HSJHXN6E-DGXgpdFS.js} +7 -7
- package/dist-electron/renderer/assets/{clone-ONN7myYv.js → clone-BrdQ0YRy.js} +1 -1
- package/dist-electron/renderer/assets/{cose-bilkent-S5V4N54A-B4V7g-PN.js → cose-bilkent-S5V4N54A-DtezVUId.js} +2 -2
- package/dist-electron/renderer/assets/{dagre-KV5264BT-BxdReG41.js → dagre-KV5264BT-CgEwe1nB.js} +7 -7
- package/dist-electron/renderer/assets/{diagram-5BDNPKRD-BXmSoRSx.js → diagram-5BDNPKRD-BVmCcXoS.js} +7 -7
- package/dist-electron/renderer/assets/{diagram-G4DWMVQ6-Cal8PS1h.js → diagram-G4DWMVQ6-88rUNQ1K.js} +7 -7
- package/dist-electron/renderer/assets/{diagram-MMDJMWI5-BxRETzVk.js → diagram-MMDJMWI5-zM1jZxtG.js} +6 -6
- package/dist-electron/renderer/assets/{diagram-TYMM5635-cUUOAiip.js → diagram-TYMM5635-B-mq-S9E.js} +6 -6
- package/dist-electron/renderer/assets/{erDiagram-SMLLAGMA-DOKXfo5a.js → erDiagram-SMLLAGMA-CF2pHC-m.js} +5 -5
- package/dist-electron/renderer/assets/{flowDiagram-DWJPFMVM-DMeT6oIp.js → flowDiagram-DWJPFMVM-B8tGyPwj.js} +7 -7
- package/dist-electron/renderer/assets/{ganttDiagram-T4ZO3ILL-BP29Llrv.js → ganttDiagram-T4ZO3ILL-9wPIVDQh.js} +2 -2
- package/dist-electron/renderer/assets/{gitGraphDiagram-UUTBAWPF-C7d6IjfR.js → gitGraphDiagram-UUTBAWPF-lC4Kpd4U.js} +7 -7
- package/dist-electron/renderer/assets/{graph-PHPHiJJP.js → graph-B_SmpH2r.js} +2 -2
- package/dist-electron/renderer/assets/{image-BPoy6OwY.js → image-CuDodyAx.js} +2 -2
- package/dist-electron/renderer/assets/{index-B8e4CGoa.js → index-BFPConLv.js} +5 -5
- package/dist-electron/renderer/assets/{index-BM3qXY96.js → index-BO6eHELs.js} +4 -4
- package/dist-electron/renderer/assets/{index-C1vtUg_s.js → index-BdcltKuz.js} +17051 -9429
- package/dist-electron/renderer/assets/{index-ZtFtJCDp.js → index-CZY8q7LS.js} +6 -6
- package/dist-electron/renderer/assets/{index-CwhZMs_P.css → index-DHH8ke_y.css} +7885 -5424
- package/dist-electron/renderer/assets/{index-Bmnq51hA.js → index-DtoFGMFk.js} +4 -4
- package/dist-electron/renderer/assets/{index-B3YxBY6K.js → index-Dxf0Pgvg.js} +3 -3
- package/dist-electron/renderer/assets/{infoDiagram-42DDH7IO-DX82xpv-.js → infoDiagram-42DDH7IO-DdPBBMS_.js} +5 -5
- package/dist-electron/renderer/assets/{ishikawaDiagram-UXIWVN3A-AgnLKWJ1.js → ishikawaDiagram-UXIWVN3A-DnnEX7AU.js} +2 -2
- package/dist-electron/renderer/assets/{journeyDiagram-VCZTEJTY-DBoO0fyn.js → journeyDiagram-VCZTEJTY-D_GmfQlh.js} +4 -4
- package/dist-electron/renderer/assets/{kanban-definition-6JOO6SKY-Da9qGyC6.js → kanban-definition-6JOO6SKY-CITXjG4-.js} +3 -3
- package/dist-electron/renderer/assets/{layout-CWvzTDIs.js → layout-ISNR2lhC.js} +4 -4
- package/dist-electron/renderer/assets/{min-Cy3zXhhU.js → min-wnBODP3v.js} +2 -2
- package/dist-electron/renderer/assets/{mindmap-definition-QFDTVHPH-DcbS1qdR.js → mindmap-definition-QFDTVHPH-Cal9wYQN.js} +4 -4
- package/dist-electron/renderer/assets/{office-preview-J3VSY6Z8.js → office-preview-DyxwZTro.js} +6 -6
- package/dist-electron/renderer/assets/{parser-DYEwxOAz.js → parser-Cn2aVHI6.js} +3 -3
- package/dist-electron/renderer/assets/{pdf-Cg5OXHy4.js → pdf-Bj-WioAK.js} +2 -2
- package/dist-electron/renderer/assets/{pieDiagram-DEJITSTG-DoHeHbCw.js → pieDiagram-DEJITSTG-CXVdaadJ.js} +6 -6
- package/dist-electron/renderer/assets/{ppt-kMUvGcTn.js → ppt-DtTX6_QM.js} +2 -2
- package/dist-electron/renderer/assets/{pptx-Bc4I5s0W.js → pptx-Dn3M0QGc.js} +2 -2
- package/dist-electron/renderer/assets/{preload-helper-DMSNAyVy.js → preload-helper-DEUi-brj.js} +23 -2
- package/dist-electron/renderer/assets/{quadrantDiagram-34T5L4WZ-B4eVOkpY.js → quadrantDiagram-34T5L4WZ-BYu9C7qD.js} +2 -2
- package/dist-electron/renderer/assets/{requirementDiagram-MS252O5E-_X6prUEb.js → requirementDiagram-MS252O5E-65iOVu5m.js} +4 -4
- package/dist-electron/renderer/assets/{sankeyDiagram-XADWPNL6-Cwh5jd49.js → sankeyDiagram-XADWPNL6-9IMCOL8V.js} +2 -2
- package/dist-electron/renderer/assets/{sequenceDiagram-FGHM5R23-DuyO7VVc.js → sequenceDiagram-FGHM5R23-Di4v7a-q.js} +4 -4
- package/dist-electron/renderer/assets/{spreadsheet-DGapha57.js → spreadsheet-Djm5u4Cn.js} +4 -4
- package/dist-electron/renderer/assets/{stateDiagram-FHFEXIEX-CakMKYdt.js → stateDiagram-FHFEXIEX-BYUDwWIG.js} +9 -9
- package/dist-electron/renderer/assets/{stateDiagram-v2-QKLJ7IA2-DzNdAqgI.js → stateDiagram-v2-QKLJ7IA2-Qwi1T0QM.js} +5 -5
- package/dist-electron/renderer/assets/{timeline-definition-GMOUNBTQ-CZVCXf6-.js → timeline-definition-GMOUNBTQ-C2P58E06.js} +2 -2
- package/dist-electron/renderer/assets/{vennDiagram-DHZGUBPP-C6K4wHQL.js → vennDiagram-DHZGUBPP-D8X5qg_P.js} +2 -2
- package/dist-electron/renderer/assets/{wardley-RL74JXVD-C-ecli15.js → wardley-RL74JXVD-CeSv0_Mw.js} +4 -4
- package/dist-electron/renderer/assets/{wardleyDiagram-NUSXRM2D-BQXEBLy4.js → wardleyDiagram-NUSXRM2D-Q-70x8Oa.js} +6 -6
- package/dist-electron/renderer/assets/{wordDoc-sBzzGoFh.js → wordDoc-DleWwtLs.js} +2 -2
- package/dist-electron/renderer/assets/{wordDocx-vtTbrlFg.js → wordDocx-C13UT35L.js} +2 -2
- package/dist-electron/renderer/assets/{xychartDiagram-5P7HB3ND-DwZWCBJI.js → xychartDiagram-5P7HB3ND-aHMsePaY.js} +2 -2
- package/dist-electron/renderer/index.html +4 -4
- package/dist-electron/renderer/office-preview.html +3 -3
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
3
|
-
import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./spreadsheet-Djm5u4Cn.js","./preload-helper-DEUi-brj.js","./assets-FW_AxgRe.js","./index-Dxf0Pgvg.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
|
+
import { D as DEFAULT_RENDERER_DEFINITIONS } from "./index-Dxf0Pgvg.js";
|
|
4
4
|
const spreadsheetDefinition = DEFAULT_RENDERER_DEFINITIONS.find((definition) => definition.id === "spreadsheet-openxml");
|
|
5
5
|
if (!spreadsheetDefinition) {
|
|
6
6
|
throw new Error("@file-viewer/renderer-spreadsheet could not locate the shared Spreadsheet format definition.");
|
|
7
7
|
}
|
|
8
8
|
const spreadsheetRendererDefinition = spreadsheetDefinition;
|
|
9
9
|
const renderFileViewerSpreadsheet = (buffer, target, type, context) => __vitePreload(async () => {
|
|
10
|
-
const { default: renderSpreadsheet } = await import("./spreadsheet-
|
|
10
|
+
const { default: renderSpreadsheet } = await import("./spreadsheet-Djm5u4Cn.js").then((n) => n.s);
|
|
11
11
|
return { default: renderSpreadsheet };
|
|
12
12
|
}, true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0, import.meta.url).then(({ default: renderSpreadsheet }) => renderSpreadsheet(buffer, target, type, context));
|
|
13
13
|
({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./image-
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./image-CuDodyAx.js","./zoom-jYhmkcQX.js","./preload-helper-DEUi-brj.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
const ARCHIVE_EXTENSIONS = [
|
|
4
4
|
"zip",
|
|
5
5
|
"zipx",
|
|
@@ -2123,7 +2123,7 @@ const coreBrowserRendererHandlers = [
|
|
|
2123
2123
|
rendererId: "image",
|
|
2124
2124
|
handler: async (buffer, target, type, context) => {
|
|
2125
2125
|
const { default: renderImage } = await __vitePreload(async () => {
|
|
2126
|
-
const { default: renderImage2 } = await import("./image-
|
|
2126
|
+
const { default: renderImage2 } = await import("./image-CuDodyAx.js");
|
|
2127
2127
|
return { default: renderImage2 };
|
|
2128
2128
|
}, true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
|
|
2129
2129
|
return renderImage(buffer, target, type, context);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as __name, l as log, H as selectSvgElement, d as configureSvgSize } from "./index-
|
|
2
|
-
import { p as parse } from "./wardley-RL74JXVD-
|
|
1
|
+
import { _ as __name, l as log, H as selectSvgElement, d as configureSvgSize } from "./index-BdcltKuz.js";
|
|
2
|
+
import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
|
|
3
3
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DEUi-brj.js";
|
|
5
5
|
import "./transform-xbmqYlhd.js";
|
|
6
|
-
import "./min-
|
|
7
|
-
import "./_baseUniq-
|
|
6
|
+
import "./min-wnBODP3v.js";
|
|
7
|
+
import "./_baseUniq-Chaz_dmO.js";
|
|
8
8
|
var parser = {
|
|
9
9
|
parse: /* @__PURE__ */ __name(async (input) => {
|
|
10
10
|
const ast = await parse("info", input);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __name, c as getConfig2, I as parseFontSize, H as selectSvgElement, aa as at, y as clear, j as common_default, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as getDiagramTitle, d as configureSvgSize } from "./index-
|
|
1
|
+
import { _ as __name, c as getConfig2, I as parseFontSize, H as selectSvgElement, aa as at, y as clear, j as common_default, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as getDiagramTitle, d as configureSvgSize } from "./index-BdcltKuz.js";
|
|
2
2
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
3
|
-
import "./preload-helper-
|
|
3
|
+
import "./preload-helper-DEUi-brj.js";
|
|
4
4
|
import "./transform-xbmqYlhd.js";
|
|
5
5
|
var parser = (function() {
|
|
6
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-YZCP3GAM-
|
|
3
|
-
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, c as getConfig2, d as configureSvgSize, y as clear } from "./index-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-ChVobCQV.js";
|
|
2
|
+
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-YZCP3GAM-CQMNQkng.js";
|
|
3
|
+
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, c as getConfig2, d as configureSvgSize, y as clear } from "./index-BdcltKuz.js";
|
|
4
4
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
5
5
|
import { a as arc } from "./arc-0FUHmmYf.js";
|
|
6
6
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
7
|
-
import "./preload-helper-
|
|
7
|
+
import "./preload-helper-DEUi-brj.js";
|
|
8
8
|
var parser = (function() {
|
|
9
9
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
10
10
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __name, l as log, c as getConfig2, H as selectSvgElement, X as insertCluster, Y as insertNode, $ as positionNode, V as setupGraphViewbox, F as defaultConfig_default, h as sanitizeText, q as load, J as JSON_SCHEMA, S as isDark, T as lighten, U as darken } from "./index-
|
|
2
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
1
|
+
import { _ as __name, l as log, c as getConfig2, H as selectSvgElement, X as insertCluster, Y as insertNode, $ as positionNode, V as setupGraphViewbox, F as defaultConfig_default, h as sanitizeText, q as load, J as JSON_SCHEMA, S as isDark, T as lighten, U as darken } from "./index-BdcltKuz.js";
|
|
2
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-ChVobCQV.js";
|
|
3
3
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DEUi-brj.js";
|
|
5
5
|
import "./transform-xbmqYlhd.js";
|
|
6
6
|
var parser = (function() {
|
|
7
7
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as baseClone, G as Graph, i as isUndefined, v as values } from "./graph-
|
|
2
|
-
import { i as isSymbol, c as baseIteratee, k as keys, o as baseFindIndex, p as castFunction, q as baseForOwn, t as hasPath, u as castPath, v as toKey, w as baseGet, d as arrayMap, x as hasIn, b as baseFlatten, y as toString, n as forEach, m as filter, r as reduce } from "./_baseUniq-
|
|
3
|
-
import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, m as map, d as min } from "./min-
|
|
4
|
-
import { aG as isObject, b3 as setToString, b4 as overRest, aN as baseRest, b5 as isIterateeCall, ax as keysIn, aY as eq, ap as isArrayLike, b1 as baseFor, b6 as baseAssignValue, ar as identity, b0 as isIndex, aM as assignValue, aq as isArray, aE as baseUnary, aP as constant, b7 as merge } from "./index-
|
|
1
|
+
import { b as baseClone, G as Graph, i as isUndefined, v as values } from "./graph-B_SmpH2r.js";
|
|
2
|
+
import { i as isSymbol, c as baseIteratee, k as keys, o as baseFindIndex, p as castFunction, q as baseForOwn, t as hasPath, u as castPath, v as toKey, w as baseGet, d as arrayMap, x as hasIn, b as baseFlatten, y as toString, n as forEach, m as filter, r as reduce } from "./_baseUniq-Chaz_dmO.js";
|
|
3
|
+
import { f as flatten, b as baseExtremum, a as baseLt, c as baseMap, m as map, d as min } from "./min-wnBODP3v.js";
|
|
4
|
+
import { aG as isObject, b3 as setToString, b4 as overRest, aN as baseRest, b5 as isIterateeCall, ax as keysIn, aY as eq, ap as isArrayLike, b1 as baseFor, b6 as baseAssignValue, ar as identity, b0 as isIndex, aM as assignValue, aq as isArray, aE as baseUnary, aP as constant, b7 as merge } from "./index-BdcltKuz.js";
|
|
5
5
|
var reWhitespace = /\s/;
|
|
6
6
|
function trimmedEndIndex(string) {
|
|
7
7
|
var index = string.length;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as baseFlatten, a as baseEach, c as baseIteratee, d as arrayMap, i as isSymbol } from "./_baseUniq-
|
|
2
|
-
import { ap as isArrayLike, aq as isArray, ar as identity } from "./index-
|
|
1
|
+
import { b as baseFlatten, a as baseEach, c as baseIteratee, d as arrayMap, i as isSymbol } from "./_baseUniq-Chaz_dmO.js";
|
|
2
|
+
import { ap as isArrayLike, aq as isArray, ar as identity } from "./index-BdcltKuz.js";
|
|
3
3
|
function flatten(array) {
|
|
4
4
|
var length = array == null ? 0 : array.length;
|
|
5
5
|
return length ? baseFlatten(array) : [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-
|
|
3
|
-
import { _ as __name, l as log, n as getRegisteredLayoutAlgorithm, r as render, C as getConfig, F as defaultConfig_default, c as getConfig2, h as sanitizeText, ao as getUserDefinedConfig, S as isDark, T as lighten, U as darken } from "./index-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-03BX_AQr.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-DKiHWHcm.js";
|
|
3
|
+
import { _ as __name, l as log, n as getRegisteredLayoutAlgorithm, r as render, C as getConfig, F as defaultConfig_default, c as getConfig2, h as sanitizeText, ao as getUserDefinedConfig, S as isDark, T as lighten, U as darken } from "./index-BdcltKuz.js";
|
|
4
4
|
import "./transform-xbmqYlhd.js";
|
|
5
5
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
6
|
-
import "./preload-helper-
|
|
6
|
+
import "./preload-helper-DEUi-brj.js";
|
|
7
7
|
const byteToHex = [];
|
|
8
8
|
for (let i = 0; i < 256; ++i) {
|
|
9
9
|
byteToHex.push((i + 256).toString(16).slice(1));
|
package/dist-electron/renderer/assets/{office-preview-J3VSY6Z8.js → office-preview-DyxwZTro.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import { _ as __vitePreload, O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CZY8q7LS.js","./preload-helper-DEUi-brj.js","./index-Dxf0Pgvg.js","./index-BO6eHELs.js","./index-BFPConLv.js","./index-DtoFGMFk.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload, O as OFFICE_PREVIEW_FORMATS, e as encodePathPreservingSlashes } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
const pptxWorkerUrl = "" + new URL("pptx.worker-BB0HgzXA.js", import.meta.url).href;
|
|
4
4
|
const createContext = (file, signal) => ({
|
|
5
5
|
filename: file.name,
|
|
@@ -46,24 +46,24 @@ const getCompatibility = (format) => {
|
|
|
46
46
|
const loadRenderer = async (format) => {
|
|
47
47
|
if (format === "docx" || format === "doc") {
|
|
48
48
|
const { renderFileViewerWordDocx, renderFileViewerWordDoc } = await __vitePreload(async () => {
|
|
49
|
-
const { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 } = await import("./index-
|
|
49
|
+
const { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 } = await import("./index-CZY8q7LS.js");
|
|
50
50
|
return { renderFileViewerWordDocx: renderFileViewerWordDocx2, renderFileViewerWordDoc: renderFileViewerWordDoc2 };
|
|
51
51
|
}, true ? __vite__mapDeps([0,1,2]) : void 0, import.meta.url);
|
|
52
52
|
return format === "doc" ? renderFileViewerWordDoc : renderFileViewerWordDocx;
|
|
53
53
|
}
|
|
54
54
|
if (format === "pdf") return (await __vitePreload(async () => {
|
|
55
|
-
const { renderFileViewerPdf } = await import("./index-
|
|
55
|
+
const { renderFileViewerPdf } = await import("./index-BO6eHELs.js");
|
|
56
56
|
return { renderFileViewerPdf };
|
|
57
57
|
}, true ? __vite__mapDeps([3,1,2]) : void 0, import.meta.url)).renderFileViewerPdf;
|
|
58
58
|
if (format === "ppt" || format === "pptx") {
|
|
59
59
|
const { renderFileViewerBinaryPresentation, renderFileViewerPresentation } = await __vitePreload(async () => {
|
|
60
|
-
const { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 } = await import("./index-
|
|
60
|
+
const { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 } = await import("./index-BFPConLv.js");
|
|
61
61
|
return { renderFileViewerBinaryPresentation: renderFileViewerBinaryPresentation2, renderFileViewerPresentation: renderFileViewerPresentation2 };
|
|
62
62
|
}, true ? __vite__mapDeps([4,1,2]) : void 0, import.meta.url);
|
|
63
63
|
return format === "ppt" ? renderFileViewerBinaryPresentation : renderFileViewerPresentation;
|
|
64
64
|
}
|
|
65
65
|
return (await __vitePreload(async () => {
|
|
66
|
-
const { renderFileViewerSpreadsheet } = await import("./index-
|
|
66
|
+
const { renderFileViewerSpreadsheet } = await import("./index-DtoFGMFk.js");
|
|
67
67
|
return { renderFileViewerSpreadsheet };
|
|
68
68
|
}, true ? __vite__mapDeps([5,1,2]) : void 0, import.meta.url)).renderFileViewerSpreadsheet;
|
|
69
69
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as tinycolor } from "./spreadsheet-
|
|
1
|
+
import { t as tinycolor } from "./spreadsheet-Djm5u4Cn.js";
|
|
2
2
|
import { J as JSZip } from "./jszip.min-Ca5jExEq.js";
|
|
3
|
-
import "./preload-helper-
|
|
3
|
+
import "./preload-helper-DEUi-brj.js";
|
|
4
4
|
import "./assets-FW_AxgRe.js";
|
|
5
|
-
import "./index-
|
|
5
|
+
import "./index-Dxf0Pgvg.js";
|
|
6
6
|
import "./zoom-jYhmkcQX.js";
|
|
7
7
|
import "./options-SsS0Y_ki.js";
|
|
8
8
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pdfIdentityFontRepair-D1LMksnQ.js","./_commonjsHelpers-CCIqAdii.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
import { r as resolveFileViewerRuntimeAssetBaseUrl, f as resolveFileViewerPdfAssetUrls } from "./assets-FW_AxgRe.js";
|
|
4
|
-
import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, b as resolveFileViewerLocale, d as registerFileViewerSearchProvider, r as registerFileViewerZoomProvider, e as registerFileViewerViewStateProvider, f as unregisterFileViewerSearchProvider, u as unregisterFileViewerZoomProvider, h as unregisterFileViewerViewStateProvider, i as createFileViewerViewStateChange, a as resolveFileViewerFitScale, j as createFileViewerViewStateChangeEmitter } from "./index-Dxf0Pgvg.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { f as formatCssPixels, b as buildPrintPageStyle } from "./printLayout-CIlG68Nj.js";
|
|
7
7
|
const DEFAULT_PDF_RANGE_CHUNK_SIZE = 64 * 1024;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, E as cleanAndMerge, H as selectSvgElement, I as parseFontSize, d as configureSvgSize, y as clear, F as defaultConfig_default } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-RL74JXVD-
|
|
1
|
+
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, p as getDiagramTitle, o as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, E as cleanAndMerge, H as selectSvgElement, I as parseFontSize, d as configureSvgSize, y as clear, F as defaultConfig_default } from "./index-BdcltKuz.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BmwbZTFO.js";
|
|
3
|
+
import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
|
|
4
4
|
import "./transform-xbmqYlhd.js";
|
|
5
5
|
import { a as arc } from "./arc-0FUHmmYf.js";
|
|
6
6
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
7
7
|
import { p as pie$1 } from "./pie-n6faJLD3.js";
|
|
8
8
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
9
|
-
import "./preload-helper-
|
|
10
|
-
import "./min-
|
|
11
|
-
import "./_baseUniq-
|
|
9
|
+
import "./preload-helper-DEUi-brj.js";
|
|
10
|
+
import "./min-wnBODP3v.js";
|
|
11
|
+
import "./_baseUniq-Chaz_dmO.js";
|
|
12
12
|
import "./init-ZxktEp_H.js";
|
|
13
13
|
var DEFAULT_PIE_CONFIG = defaultConfig_default.pie;
|
|
14
14
|
var DEFAULT_PIE_DB = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
1
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
2
2
|
import { r as resolveFileViewerRuntimeAssetBaseUrl, c as resolveFileViewerAssetUrl } from "./assets-FW_AxgRe.js";
|
|
3
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale } from "./index-
|
|
3
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
|
|
4
4
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
5
5
|
import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
|
|
6
6
|
const MIN_ZOOM = 0.25;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./billboard-BSTFvQMm.js","./transform-xbmqYlhd.js","./linear-iB_ZihXg.js","./init-ZxktEp_H.js","./defaultLocale-DCJjMHFj.js","./index-BEeZTDSC.js","./time-Bll8bhEl.js","./ordinal-CxptdPJm.js","./arc-0FUHmmYf.js","./pie-n6faJLD3.js","./index-BW_kBMIl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
import { d as resolveFileViewerPresentationWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-FW_AxgRe.js";
|
|
4
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, n as normalizeFileViewerErrorMessage, g as getFileViewerShadowRootForNode, b as resolveFileViewerLocale } from "./index-Dxf0Pgvg.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { w as waitForFileViewerNextPaint } from "./export-BB2y0kyx.js";
|
|
7
7
|
const asChartQueue = (charts) => {
|
package/dist-electron/renderer/assets/{preload-helper-DMSNAyVy.js → preload-helper-DEUi-brj.js}
RENAMED
|
@@ -10,20 +10,38 @@ const OFFICE_PREVIEW_FORMATS = [
|
|
|
10
10
|
"pdf"
|
|
11
11
|
];
|
|
12
12
|
const KAI_LOCAL_URL_PREFIX = "kai://local";
|
|
13
|
+
const LOCAL_FULL_PATH_PREFIX = "/full";
|
|
14
|
+
const INVALID_DIRECT_LOCAL_PATH_CHARS = /[\0\r\n`$<>|;&]/;
|
|
13
15
|
const WINDOWS_DRIVE_ABSOLUTE_PATH = /^[A-Za-z]:[\\/]/;
|
|
16
|
+
const LEADING_SLASHED_WINDOWS_DRIVE_PATH = /^\/[A-Za-z]:[\\/]/;
|
|
14
17
|
function encodePathPreservingSlashes(pathSegment) {
|
|
15
18
|
return pathSegment.split("/").map((segment) => encodeURIComponent(segment)).join("/");
|
|
16
19
|
}
|
|
17
20
|
function decodeLocalPathSegment(pathSegment) {
|
|
21
|
+
return tryDecodeLocalPathSegment(pathSegment) ?? pathSegment;
|
|
22
|
+
}
|
|
23
|
+
function tryDecodeLocalPathSegment(pathSegment) {
|
|
18
24
|
try {
|
|
19
25
|
return decodeURIComponent(pathSegment);
|
|
20
26
|
} catch {
|
|
21
|
-
return
|
|
27
|
+
return null;
|
|
22
28
|
}
|
|
23
29
|
}
|
|
30
|
+
function normalizeDirectLocalPathInput(inputPath) {
|
|
31
|
+
const trimmedPath = inputPath.trim();
|
|
32
|
+
return !trimmedPath || INVALID_DIRECT_LOCAL_PATH_CHARS.test(trimmedPath) ? null : trimmedPath;
|
|
33
|
+
}
|
|
24
34
|
function isWindowsDriveAbsolutePath(pathname) {
|
|
25
35
|
return WINDOWS_DRIVE_ABSOLUTE_PATH.test(pathname);
|
|
26
36
|
}
|
|
37
|
+
function stripLeadingSlashFromWindowsDrivePath(pathname) {
|
|
38
|
+
return LEADING_SLASHED_WINDOWS_DRIVE_PATH.test(pathname) ? pathname.slice(1) : pathname;
|
|
39
|
+
}
|
|
40
|
+
function extractPathFromFullLocalPathname(decodedPathname) {
|
|
41
|
+
return stripLeadingSlashFromWindowsDrivePath(
|
|
42
|
+
decodedPathname.slice(LOCAL_FULL_PATH_PREFIX.length)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
27
45
|
function isKaiLocalUrl(href) {
|
|
28
46
|
return href.startsWith(`${KAI_LOCAL_URL_PREFIX}/`);
|
|
29
47
|
}
|
|
@@ -96,8 +114,11 @@ export {
|
|
|
96
114
|
OFFICE_PREVIEW_FORMATS as O,
|
|
97
115
|
__vitePreload as _,
|
|
98
116
|
isKaiLocalUrl as a,
|
|
117
|
+
extractPathFromFullLocalPathname as b,
|
|
99
118
|
decodeLocalPathSegment as d,
|
|
100
119
|
encodePathPreservingSlashes as e,
|
|
101
120
|
isWindowsDriveAbsolutePath as i,
|
|
102
|
-
kaiLocalUrlToPathSegment as k
|
|
121
|
+
kaiLocalUrlToPathSegment as k,
|
|
122
|
+
normalizeDirectLocalPathInput as n,
|
|
123
|
+
tryDecodeLocalPathSegment as t
|
|
103
124
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, y as clear, F as defaultConfig_default, h as sanitizeText, K as getThemeVariables3 } from "./index-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as configureSvgSize, y as clear, F as defaultConfig_default, h as sanitizeText, K as getThemeVariables3 } from "./index-BdcltKuz.js";
|
|
2
2
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
3
3
|
import { l as linear } from "./linear-iB_ZihXg.js";
|
|
4
4
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DEUi-brj.js";
|
|
6
6
|
import "./init-ZxktEp_H.js";
|
|
7
7
|
import "./defaultLocale-DCJjMHFj.js";
|
|
8
8
|
import "./index-BEeZTDSC.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-
|
|
3
|
-
import { _ as __name, C as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, o as setDiagramTitle, p as getDiagramTitle, c as getConfig2, l as log, y as clear, B as __export, n as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-03BX_AQr.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-EDXVE4YY-DKiHWHcm.js";
|
|
3
|
+
import { _ as __name, C as getConfig, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, o as setDiagramTitle, p as getDiagramTitle, c as getConfig2, l as log, y as clear, B as __export, n as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-BdcltKuz.js";
|
|
4
4
|
import "./transform-xbmqYlhd.js";
|
|
5
5
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
6
|
-
import "./preload-helper-
|
|
6
|
+
import "./preload-helper-DEUi-brj.js";
|
|
7
7
|
var parser = (function() {
|
|
8
8
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
9
9
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as setDiagramTitle, p as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, z as defaultConfig2, V as setupGraphViewbox, y as clear, j as common_default } from "./index-
|
|
1
|
+
import { o as setDiagramTitle, p as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, z as defaultConfig2, V as setupGraphViewbox, y as clear, j as common_default } from "./index-BdcltKuz.js";
|
|
2
2
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
3
3
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
4
4
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DEUi-brj.js";
|
|
6
6
|
import "./init-ZxktEp_H.js";
|
|
7
7
|
function colors(specifier) {
|
|
8
8
|
var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as __name, m as setConfig2, c as getConfig2, l as log, i as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, o as setDiagramTitle, a as getAccTitle, g as getAccDescription, p as getDiagramTitle, q as load, J as JSON_SCHEMA, y as clear, h as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, I as parseFontSize, Z as ZERO_WIDTH_SPACE, C as getConfig, N as getUrl, O as renderKatexSanitized } from "./index-
|
|
2
|
-
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-YZCP3GAM-
|
|
3
|
-
import { I as ImperativeState } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { _ as __name, m as setConfig2, c as getConfig2, l as log, i as distExports, d as configureSvgSize, e as assignWithDepth_default, j as common_default, b as setAccTitle, s as setAccDescription, o as setDiagramTitle, a as getAccTitle, g as getAccDescription, p as getDiagramTitle, q as load, J as JSON_SCHEMA, y as clear, h as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, I as parseFontSize, Z as ZERO_WIDTH_SPACE, C as getConfig, N as getUrl, O as renderKatexSanitized } from "./index-BdcltKuz.js";
|
|
2
|
+
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-YZCP3GAM-CQMNQkng.js";
|
|
3
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-r-kZRj_p.js";
|
|
4
4
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
5
5
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
6
|
-
import "./preload-helper-
|
|
6
|
+
import "./preload-helper-DEUi-brj.js";
|
|
7
7
|
var parser = (function() {
|
|
8
8
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
9
9
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./parser-
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./parser-Cn2aVHI6.js","./jszip.min-Ca5jExEq.js","./_commonjsHelpers-CCIqAdii.js","./preload-helper-DEUi-brj.js","./assets-FW_AxgRe.js","./index-Dxf0Pgvg.js","./zoom-jYhmkcQX.js","./options-SsS0Y_ki.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
import { e as resolveFileViewerSpreadsheetWorkerUrl, r as resolveFileViewerRuntimeAssetBaseUrl } from "./assets-FW_AxgRe.js";
|
|
4
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider } from "./index-Dxf0Pgvg.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { r as resolveFileViewerColorScheme } from "./options-SsS0Y_ki.js";
|
|
7
7
|
const createFileViewerWorkerController = (factory, options = {}) => {
|
|
@@ -2554,7 +2554,7 @@ class MainThreadSpreadsheetWorker {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
async loadParser() {
|
|
2556
2556
|
if (!this.parserPromise) {
|
|
2557
|
-
this.parserPromise = __vitePreload(() => import("./parser-
|
|
2557
|
+
this.parserPromise = __vitePreload(() => import("./parser-Cn2aVHI6.js"), true ? __vite__mapDeps([0,1,2,3,4,5,6,7]) : void 0, import.meta.url);
|
|
2558
2558
|
}
|
|
2559
2559
|
const parser = await this.parserPromise;
|
|
2560
2560
|
if (!this.context) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-
|
|
2
|
-
import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, j as common_default, N as getUrl, u as utils_default } from "./index-
|
|
1
|
+
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-Ci6VbQY6.js";
|
|
2
|
+
import { _ as __name, c as getConfig2, l as log, d as configureSvgSize, j as common_default, N as getUrl, u as utils_default } from "./index-BdcltKuz.js";
|
|
3
3
|
import { s as select, l as line$1, c as curveBasis } from "./transform-xbmqYlhd.js";
|
|
4
|
-
import { G as Graph } from "./graph-
|
|
5
|
-
import { l as layout } from "./layout-
|
|
6
|
-
import "./chunk-55IACEB6-
|
|
7
|
-
import "./chunk-EDXVE4YY-
|
|
4
|
+
import { G as Graph } from "./graph-B_SmpH2r.js";
|
|
5
|
+
import { l as layout } from "./layout-ISNR2lhC.js";
|
|
6
|
+
import "./chunk-55IACEB6-03BX_AQr.js";
|
|
7
|
+
import "./chunk-EDXVE4YY-DKiHWHcm.js";
|
|
8
8
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
9
|
-
import "./preload-helper-
|
|
10
|
-
import "./_baseUniq-
|
|
11
|
-
import "./min-
|
|
9
|
+
import "./preload-helper-DEUi-brj.js";
|
|
10
|
+
import "./_baseUniq-Chaz_dmO.js";
|
|
11
|
+
import "./min-wnBODP3v.js";
|
|
12
12
|
var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
|
|
13
13
|
var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
14
14
|
var drawSimpleState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-
|
|
2
|
-
import { _ as __name } from "./index-
|
|
1
|
+
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-OYMX7WX6-Ci6VbQY6.js";
|
|
2
|
+
import { _ as __name } from "./index-BdcltKuz.js";
|
|
3
3
|
import "./transform-xbmqYlhd.js";
|
|
4
|
-
import "./chunk-55IACEB6-
|
|
5
|
-
import "./chunk-EDXVE4YY-
|
|
4
|
+
import "./chunk-55IACEB6-03BX_AQr.js";
|
|
5
|
+
import "./chunk-EDXVE4YY-DKiHWHcm.js";
|
|
6
6
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
7
|
-
import "./preload-helper-
|
|
7
|
+
import "./preload-helper-DEUi-brj.js";
|
|
8
8
|
var diagram = {
|
|
9
9
|
parser: stateDiagram_default,
|
|
10
10
|
get db() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __name, C as getConfig, S as isDark, T as lighten, U as darken, c as getConfig2, l as log, H as selectSvgElement, I as parseFontSize, V as setupGraphViewbox, B as __export, W as commonDb_exports, y as clear } from "./index-
|
|
1
|
+
import { _ as __name, C as getConfig, S as isDark, T as lighten, U as darken, c as getConfig2, l as log, H as selectSvgElement, I as parseFontSize, V as setupGraphViewbox, B as __export, W as commonDb_exports, y as clear } from "./index-BdcltKuz.js";
|
|
2
2
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
3
3
|
import { a as arc } from "./arc-0FUHmmYf.js";
|
|
4
4
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DEUi-brj.js";
|
|
6
6
|
var parser = (function() {
|
|
7
7
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
8
8
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { an as adjustChannel, s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, C as getConfig, H as selectSvgElement, aa as at, S as isDark, T as lighten, U as darken, d as configureSvgSize, y as clear, E as cleanAndMerge, F as defaultConfig_default } from "./index-
|
|
1
|
+
import { an as adjustChannel, s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, C as getConfig, H as selectSvgElement, aa as at, S as isDark, T as lighten, U as darken, d as configureSvgSize, y as clear, E as cleanAndMerge, F as defaultConfig_default } from "./index-BdcltKuz.js";
|
|
2
2
|
import { s as select } from "./transform-xbmqYlhd.js";
|
|
3
3
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DEUi-brj.js";
|
|
5
5
|
const transparentize = (color, amount) => {
|
|
6
6
|
return adjustChannel(color, "a", -amount);
|
|
7
7
|
};
|
package/dist-electron/renderer/assets/{wardley-RL74JXVD-C-ecli15.js → wardley-RL74JXVD-CeSv0_Mw.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
-
import { m as map, f as flatten, d as min } from "./min-
|
|
3
|
-
import { b as baseFlatten, l as baseUniq, c as baseIteratee, m as filter, r as reduce, n as forEach } from "./_baseUniq-
|
|
4
|
-
import { aR as isEmpty } from "./index-
|
|
1
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
2
|
+
import { m as map, f as flatten, d as min } from "./min-wnBODP3v.js";
|
|
3
|
+
import { b as baseFlatten, l as baseUniq, c as baseIteratee, m as filter, r as reduce, n as forEach } from "./_baseUniq-Chaz_dmO.js";
|
|
4
|
+
import { aR as isEmpty } from "./index-BdcltKuz.js";
|
|
5
5
|
import { a as getAugmentedNamespace } from "./_commonjsHelpers-CCIqAdii.js";
|
|
6
6
|
function flatMap(collection, iteratee) {
|
|
7
7
|
return baseFlatten(map(collection, iteratee));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, c as getConfig2$1, h as sanitizeText } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-RL74JXVD-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, c as getConfig2$1, h as sanitizeText } from "./index-BdcltKuz.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BmwbZTFO.js";
|
|
3
|
+
import { p as parse } from "./wardley-RL74JXVD-CeSv0_Mw.js";
|
|
4
4
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
5
|
-
import "./preload-helper-
|
|
5
|
+
import "./preload-helper-DEUi-brj.js";
|
|
6
6
|
import "./transform-xbmqYlhd.js";
|
|
7
|
-
import "./min-
|
|
8
|
-
import "./_baseUniq-
|
|
7
|
+
import "./min-wnBODP3v.js";
|
|
8
|
+
import "./_baseUniq-Chaz_dmO.js";
|
|
9
9
|
var toPercent = /* @__PURE__ */ __name((value, context) => {
|
|
10
10
|
const normalized = value <= 1 ? value * 100 : value;
|
|
11
11
|
if (normalized < 0 || normalized > 100) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-
|
|
1
|
+
import { r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
|
|
2
2
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
3
3
|
import { b as buildPrintPageStyle, a as applyPrintPageSize, f as formatCssPixels } from "./printLayout-CIlG68Nj.js";
|
|
4
|
-
import "./preload-helper-
|
|
4
|
+
import "./preload-helper-DEUi-brj.js";
|
|
5
5
|
const globalBuffer = globalThis.Buffer;
|
|
6
6
|
let uniqueIdCounter = 0;
|
|
7
7
|
function escapeHtml(text) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./docx-preview-D79uFTI3.js","./jszip.min-Ca5jExEq.js","./_commonjsHelpers-CCIqAdii.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./preload-helper-
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-DEUi-brj.js";
|
|
3
3
|
import { r as resolveFileViewerRuntimeAssetBaseUrl, a as resolveFileViewerDocxWorkerUrl, b as resolveFileViewerDocxWorkerJsZipUrl } from "./assets-FW_AxgRe.js";
|
|
4
|
-
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-
|
|
4
|
+
import { c as createFileViewerTranslator, r as registerFileViewerZoomProvider, u as unregisterFileViewerZoomProvider, a as resolveFileViewerFitScale } from "./index-Dxf0Pgvg.js";
|
|
5
5
|
import { c as createFileViewerZoomChangeEmitter } from "./zoom-jYhmkcQX.js";
|
|
6
6
|
import { b as buildPrintPageStyle, f as formatCssPixels, a as applyPrintPageSize, g as getElementPrintPageSize } from "./printLayout-CIlG68Nj.js";
|
|
7
7
|
import { n as normalizeFileViewerTheme } from "./options-SsS0Y_ki.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, C as getConfig, h as sanitizeText, E as cleanAndMerge, F as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText } from "./index-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, p as getDiagramTitle, o as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, H as selectSvgElement, d as configureSvgSize, y as clear, C as getConfig, h as sanitizeText, E as cleanAndMerge, F as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText } from "./index-BdcltKuz.js";
|
|
2
2
|
import { l as line$1 } from "./transform-xbmqYlhd.js";
|
|
3
3
|
import { i as initRange } from "./init-ZxktEp_H.js";
|
|
4
4
|
import { o as ordinal } from "./ordinal-CxptdPJm.js";
|
|
5
5
|
import { l as linear } from "./linear-iB_ZihXg.js";
|
|
6
6
|
import "./_commonjsHelpers-CCIqAdii.js";
|
|
7
|
-
import "./preload-helper-
|
|
7
|
+
import "./preload-helper-DEUi-brj.js";
|
|
8
8
|
import "./defaultLocale-DCJjMHFj.js";
|
|
9
9
|
import "./index-BEeZTDSC.js";
|
|
10
10
|
function range(start, stop, step) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!doctype html>
|
|
2
2
|
<html lang="zh-CN">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>KAi</title>
|
|
7
|
-
<script type="module" crossorigin src="./assets/index-
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BdcltKuz.js"></script>
|
|
8
8
|
<link rel="modulepreload" crossorigin href="./assets/_commonjsHelpers-CCIqAdii.js">
|
|
9
|
-
<link rel="modulepreload" crossorigin href="./assets/preload-helper-
|
|
9
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DEUi-brj.js">
|
|
10
10
|
<link rel="modulepreload" crossorigin href="./assets/transform-xbmqYlhd.js">
|
|
11
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
11
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DHH8ke_y.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|
|
14
14
|
<div id="root"></div>
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
/>
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
11
|
<title>KAi Office Preview</title>
|
|
12
|
-
<script type="module" crossorigin src="./assets/office-preview-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="./assets/preload-helper-
|
|
12
|
+
<script type="module" crossorigin src="./assets/office-preview-DyxwZTro.js"></script>
|
|
13
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-DEUi-brj.js">
|
|
14
14
|
<link rel="stylesheet" crossorigin href="./assets/office-preview-dcvGW2k2.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<main id="office-preview-root" aria-live="polite">正在准备预览…</main>
|
|
18
18
|
</body>
|
|
19
|
-
</html>
|
|
19
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sinm/kai",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4",
|
|
4
4
|
"description": "KAi — Multi-Agent Collaborative Chat",
|
|
5
5
|
"bin": {
|
|
6
6
|
"kai-cli": "bin/kai-cli.js"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@ai-sdk/provider": "^4.0.3",
|
|
25
25
|
"@ai-sdk/provider-utils": "^5.0.12",
|
|
26
26
|
"@larksuiteoapi/node-sdk": "^1.68.0",
|
|
27
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
27
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
28
28
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
29
29
|
"@wecom/aibot-node-sdk": "^1.0.7",
|
|
30
30
|
"@xterm/addon-fit": "^0.11.0",
|