likec4 1.0.0-next.8 → 1.0.0-next.9
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/dist/__app__/src/main.js +2 -2
- package/dist/cli/index.js +3 -3
- package/package.json +6 -4
package/dist/__app__/src/main.js
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var koe=Object.create;var tg=Object.defineProperty;var Poe=Object.getOwnProperty
|
|
|
7
7
|
all inputs: ${JSON.stringify(t)}
|
|
8
8
|
all schemas: ${JSON.stringify(e.map(jP))}
|
|
9
9
|
`,`
|
|
10
|
-
`):`Failed R.ok - ${r}`;throw new Error(i)}}}var fA=f(()=>{"use strict";sg();rA();lA();tA();mu();o(jP,"schemaToString");o(Xoe,"check");o(qP,"ok")});var VP=f(()=>{"use strict"});var UP=f(()=>{"use strict"});var WP=f(()=>{"use strict"});var GP=f(()=>{"use strict"});function Qoe(t,e,r){if(!Bn(r))throw new TypeError("reduce: list must be array or iterable");let n=0,i=r.length;for(;n<i;){if(e=t(e,r[n],n,r),e instanceof dA)return e.value;n++}return e}var dA,zP,pA=f(()=>{"use strict";hs();yt();dA=class{static{o(this,"ReduceStopper")}constructor(e){this.value=e}};o(Qoe,"reduceFn");zP=Ae(Qoe)});var HP=f(()=>{"use strict"});var KP=f(()=>{"use strict"});function Zoe(t,e,r){return r.replace(t,e)}var k_e,YP=f(()=>{"use strict";yt();o(Zoe,"replaceFn");k_e=Ae(Zoe)});var JP=f(()=>{"use strict"});function mA(t,e){return arguments.length===1?r=>mA(t,r):t<0?e.slice():typeof e=="string"?e.slice(0,t):Id(e,0,t)}var hA=f(()=>{"use strict";oA();o(mA,"take")});var XP=f(()=>{"use strict"});var QP=f(()=>{"use strict"});var ZP=f(()=>{"use strict"});var eI=f(()=>{"use strict"});var tI=f(()=>{"use strict"});var rI=f(()=>{"use strict"});var nI=f(()=>{"use strict"});var iI=f(()=>{"use strict"});var oI=f(()=>{"use strict"});var sI=f(()=>{"use strict"});var aI=f(()=>{"use strict"});var uI=f(()=>{"use strict"});var cI=f(()=>{"use strict"});var lI=f(()=>{"use strict"});var fI=f(()=>{"use strict"});var dI=f(()=>{"use strict"});var pI=f(()=>{"use strict"});var mI=f(()=>{"use strict"});var hI=f(()=>{"use strict"});var gI=f(()=>{"use strict"});var DI=f(()=>{"use strict"});function cg(t,e){if(arguments.length===1)return i=>cg(t,i);if(e==null)return;let r=Hc(t,","),n={};for(let i in e)r.includes(i)||(n[i]=e[i]);return n}var yI=f(()=>{"use strict";rg();o(cg,"omit")});var EI=f(()=>{"use strict"});function ese(t,e,r){qP(t,e,r)(Array,String,String);let n=r;return t.forEach(i=>{n=n.replace(i,e)}),n}var Ike,xI=f(()=>{"use strict";yt();fA();o(ese,"replaceAllFn");Ike=Ae(ese)});var CI=f(()=>{"use strict"});var AI=f(()=>{"use strict"});var vI=f(()=>{"use strict"});var wI=f(()=>{"use strict"});var FI=f(()=>{"use strict"});var zke,bI=f(()=>{"use strict";zke=Symbol?Symbol("NO_MATCH_FOUND"):void 0});var RI=f(()=>{"use strict"});var SI=f(()=>{"use strict"});var TI=f(()=>{"use strict"});var _I=f(()=>{"use strict"});var kI=f(()=>{"use strict"});var PI=f(()=>{"use strict"});function tse(t){return t==null||Number.isNaN(t)===!0}function Du(t,e){return arguments.length===1?r=>Du(t,r):tse(e)?t:e}var Ld=f(()=>{"use strict";o(tse,"isFalsy");o(Du,"defaultTo")});function rse(t,e,r){return Du(t,gu(e,r))}var dPe,II=f(()=>{"use strict";yt();Ld();Nd();o(rse,"viewOrFn");dPe=Ae(rse)});var NI=f(()=>{"use strict"});var LI=f(()=>{"use strict"});var OI=f(()=>{"use strict"});var BI=f(()=>{"use strict"});var $I=f(()=>{"use strict"});var MI=f(()=>{"use strict"});var jI=f(()=>{"use strict"});function nse(t,e,r){let n=t<0?r.length+t:t;if(t>=r.length||n<0)return r;let i=Qs(r);return i[n]=e(i[n]),i}var kPe,qI=f(()=>{"use strict";Td();yt();o(nse,"adjustFn");kPe=Ae(nse)});var VI=f(()=>{"use strict"});function UI(t){return e=>t}var gA=f(()=>{"use strict";o(UI,"always")});var WI=f(()=>{"use strict"});function GI(t){return(...e)=>{let r=0;for(;r<t.length;){if(t[r](...e))return!0;r++}return!1}}var zI=f(()=>{"use strict";o(GI,"anyPass")});var HI=f(()=>{"use strict"});var KI=f(()=>{"use strict"});var YI=f(()=>{"use strict"});var JI=f(()=>{"use strict"});var XI=f(()=>{"use strict"});var QI=f(()=>{"use strict"});var ZI=f(()=>{"use strict"});function ise(t,e,r){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");if(r>=t&&r<=e)return r;if(r>e)return e;if(r<t)return t}var eN,tN=f(()=>{"use strict";yt();o(ise,"clampFn");eN=Ae(ise)});var rN=f(()=>{"use strict"});var nN=f(()=>{"use strict"});var iN=f(()=>{"use strict"});var oN=f(()=>{"use strict"});var sN=f(()=>{"use strict"});var aN=f(()=>{"use strict"});var uN=f(()=>{"use strict"});var cN=f(()=>{"use strict"});var lg,lN=f(()=>{"use strict";Zs();mu();lg=class{static{o(this,"_Set")}constructor(){this.set=new Set,this.items={}}checkUniqueness(e){let r=_n(e);if(["Null","Undefined","NaN"].includes(r))return r in this.items?!1:(this.items[r]=!0,!0);if(!["Object","Array"].includes(r)){let n=this.set.size;return this.set.add(e),this.set.size!==n}return r in this.items?kd(e,this.items[r])===-1?(this.items[r].push(e),!0):!1:(this.items[r]=[e],!0)}}});function fN(t){let e=new lg,r=[];return t.forEach(n=>{e.checkUniqueness(n)&&r.push(n)}),r}var dN=f(()=>{"use strict";lN();o(fN,"uniq")});var pN=f(()=>{"use strict"});var mN=f(()=>{"use strict"});var hN=f(()=>{"use strict"});var gN=f(()=>{"use strict"});var DN=f(()=>{"use strict"});var yN=f(()=>{"use strict"});var EN=f(()=>{"use strict"});var xN=f(()=>{"use strict"});var CN=f(()=>{"use strict"});var AN=f(()=>{"use strict"});var vN=f(()=>{"use strict"});function ea(t,e){if(arguments.length===1)return r=>ea(t,r);if(e)return e[t]}var Od=f(()=>{"use strict";o(ea,"prop")});function ose(t,e,r){return Yi(ea(t,e),ea(t,r))}var tNe,wN=f(()=>{"use strict";yt();Zs();Od();o(ose,"eqPropsFn");tNe=Ae(ose)});var FN=f(()=>{"use strict"});var bN=f(()=>{"use strict"});var RN=f(()=>{"use strict"});var SN=f(()=>{"use strict"});var TN=f(()=>{"use strict"});var _N=f(()=>{"use strict"});var kN=f(()=>{"use strict"});var PN=f(()=>{"use strict"});var IN=f(()=>{"use strict"});var NN=f(()=>{"use strict"});var LN=f(()=>{"use strict"});var ON=f(()=>{"use strict"});var BN=f(()=>{"use strict"});var $N=f(()=>{"use strict"});var MN=f(()=>{"use strict"});function sse(t,e,r){return(...n)=>(typeof t=="boolean"?t:t(...n))===!0?e(...n):r(...n)}var LNe,jN=f(()=>{"use strict";yt();o(sse,"ifElseFn");LNe=Ae(sse)});var qN=f(()=>{"use strict"});var VN=f(()=>{"use strict"});var UN=f(()=>{"use strict"});var WN=f(()=>{"use strict"});var GN=f(()=>{"use strict"});function DA(t,e){return arguments.length===1?r=>DA(t,r):e!=null&&e.constructor===t||e instanceof t}var yA=f(()=>{"use strict";o(DA,"is")});var zN=f(()=>{"use strict"});var HN=f(()=>{"use strict"});var KN=f(()=>{"use strict"});var YN=f(()=>{"use strict"});var JN=f(()=>{"use strict"});var XN=f(()=>{"use strict"});var QN=f(()=>{"use strict"});var ZN=f(()=>{"use strict"});var eL=f(()=>{"use strict"});var tL=f(()=>{"use strict"});function EA(t,e,r){let n=Qs(r);return t===-1?n.fill(e,t):n.fill(e,t,t+1)}var yLe,xA=f(()=>{"use strict";Td();yt();o(EA,"updateFn");yLe=Ae(EA)});var rL=f(()=>{"use strict"});var nL=f(()=>{"use strict"});var iL=f(()=>{"use strict"});var oL=f(()=>{"use strict"});var sL=f(()=>{"use strict"});function ase(t,e,r){return t(r)>t(e)?r:e}var PLe,aL=f(()=>{"use strict";yt();o(ase,"maxByFn");PLe=Ae(ase)});var uL=f(()=>{"use strict"});var cL=f(()=>{"use strict"});var lL=f(()=>{"use strict"});var fL=f(()=>{"use strict"});var dL=f(()=>{"use strict"});function use(t,e,r){let n={};return Object.keys(e).forEach(i=>{r[i]===void 0?n[i]=e[i]:n[i]=t(e[i],r[i])}),Object.keys(r).forEach(i=>{n[i]===void 0&&(e[i]===void 0?n[i]=r[i]:n[i]=t(e[i],r[i]))}),n}var GLe,pL=f(()=>{"use strict";yt();o(use,"mergeWithFn");GLe=Ae(use)});var mL=f(()=>{"use strict"});function cse(t,e,r){return t(r)<t(e)?r:e}var XLe,hL=f(()=>{"use strict";yt();o(cse,"minByFn");XLe=Ae(cse)});function gL(t){return Array.isArray(t)||_n(t)==="Object"}var DL=f(()=>{"use strict";mu();o(gL,"isIterable")});function lse(t,e,r){return!gL(r)||r[t]===void 0?r:Bn(r)?EA(t,e(r[t]),r):{...r,[t]:e(r[t])}}var aOe,yL=f(()=>{"use strict";hs();DL();yt();xA();o(lse,"modifyFn");aOe=Ae(lse)});function fse(t,e,r){let n=Hc(t);if(n.length===1)return{...r,[n[0]]:e(r[n[0]])};if(hu(n,r)===void 0)return r;let i=dse(Array.prototype.slice.call(n,1),e,r[n[0]]);return i===r[n[0]]?r:ig(n[0],i,r)}var dse,EL=f(()=>{"use strict";rg();og();yt();_d();o(fse,"modifyPathFn");dse=Ae(fse)});var xL=f(()=>{"use strict"});function pse(t,e,r){if(t<0||e<0)throw new Error("Rambda.move does not support negative indexes");if(t>r.length-1||e>r.length-1)return r;let n=Qs(r);return n[t]=r[e],n[e]=r[t],n}var xOe,CL=f(()=>{"use strict";Td();yt();o(pse,"moveFn");xOe=Ae(pse)});function CA(t,e){return arguments.length===1?r=>CA(t,r):t*e}var AA=f(()=>{"use strict";o(CA,"multiply")});var AL=f(()=>{"use strict"});var vL=f(()=>{"use strict"});var wL=f(()=>{"use strict"});var FL=f(()=>{"use strict"});var bL=f(()=>{"use strict"});var RL=f(()=>{"use strict"});var SL=f(()=>{"use strict"});var TL=f(()=>{"use strict"});var _L=f(()=>{"use strict"});function mse(t,e,r){return t(n=>kL(e(n)))(r).x}var kL,PL,vA=f(()=>{"use strict";yt();kL=o(t=>({x:t,map:e=>kL(e(t))}),"Identity");o(mse,"overFn");PL=Ae(mse)});var IL=f(()=>{"use strict"});function hse(t,e,r){return Yi(hu(t,r),e)}var XOe,NL=f(()=>{"use strict";yt();Zs();_d();o(hse,"pathEqFn");XOe=Ae(hse)});function gse(t,e,r){return Du(t,hu(e,r))}var n3e,LL=f(()=>{"use strict";yt();Ld();_d();o(gse,"pathOrFn");n3e=Ae(gse)});var OL=f(()=>{"use strict"});var BL=f(()=>{"use strict"});var $L=f(()=>{"use strict"});var ML=f(()=>{"use strict"});var g3e,jL=f(()=>{"use strict";AA();pA();g3e=zP(CA,1)});function Dse(t,e,r){return r?Yi(e,ea(t,r)):!1}var C3e,qL=f(()=>{"use strict";yt();Zs();Od();o(Dse,"propEqFn");C3e=Ae(Dse)});function yse(t,e,r){return DA(t,r[e])}var b3e,VL=f(()=>{"use strict";yt();yA();o(yse,"propIsFn");b3e=Ae(yse)});function Ese(t,e,r){return r?Du(t,r[e]):t}var k3e,UL=f(()=>{"use strict";yt();Ld();o(Ese,"propOrFn");k3e=Ae(Ese)});function xse(t,e,r){return t(ea(e,r))}var O3e,WL=f(()=>{"use strict";yt();Od();o(xse,"propSatisfiesFn");O3e=Ae(xse)});var GL=f(()=>{"use strict"});var zL=f(()=>{"use strict"});var HL=f(()=>{"use strict"});var KL=f(()=>{"use strict"});function Cse(t,e,r){return PL(t,UI(e),r)}var J3e,YL=f(()=>{"use strict";gA();yt();vA();o(Cse,"setFn");J3e=Ae(Cse)});function Ase(t,e,r){return r.slice(t,e)}var eBe,JL=f(()=>{"use strict";yt();o(Ase,"sliceFn");eBe=Ae(Ase)});var XL=f(()=>{"use strict"});var QL=f(()=>{"use strict"});var ZL=f(()=>{"use strict"});var eO=f(()=>{"use strict"});var tO=f(()=>{"use strict"});var rO=f(()=>{"use strict"});var nO=f(()=>{"use strict"});var iO=f(()=>{"use strict"});var oO=f(()=>{"use strict"});var sO=f(()=>{"use strict"});var aO=f(()=>{"use strict"});var uO=f(()=>{"use strict"});var cO=f(()=>{"use strict"});var lO=f(()=>{"use strict"});var fO=f(()=>{"use strict"});var dO=f(()=>{"use strict"});var pO=f(()=>{"use strict"});var mO=f(()=>{"use strict"});var hO=f(()=>{"use strict"});var gO=f(()=>{"use strict"});var DO=f(()=>{"use strict"});var yO=f(()=>{"use strict"});var EO=f(()=>{"use strict"});var xO=f(()=>{"use strict"});var CO=f(()=>{"use strict"});var AO=f(()=>{"use strict"});function vse(t,e,r){return t(r)?e(r):r}var r4e,vO=f(()=>{"use strict";yt();o(vse,"whenFn");r4e=Ae(vse)});var wO=f(()=>{"use strict"});var FO=f(()=>{"use strict"});var bO=f(()=>{"use strict"});var RO=f(()=>{"use strict"});var SO=f(()=>{"use strict"});function wA(t,e){if(arguments.length===1)return i=>wA(t,i);let r=[],n=Math.min(t.length,e.length);for(let i=0;i<n;i++)r[i]=[t[i],e[i]];return r}var TO=f(()=>{"use strict";o(wA,"zip")});var _O=f(()=>{"use strict"});function wse(t,e,r){return mA(e.length>r.length?r.length:e.length,e).map((n,i)=>t(n,r[i]))}var C4e,kO=f(()=>{"use strict";yt();hA();o(wse,"zipWithFn");C4e=Ae(wse)});var Kc=f(()=>{"use strict";jk();qk();Vk();Uk();Wk();Gk();Yk();Jk();tP();rP();iP();oP();sP();cP();lP();fP();dP();EP();AP();rA();wP();FP();bP();RP();lA();kP();IP();NP();uP();yP();LP();OP();$P();VP();UP();WP();GP();XP();QP();ZP();fA();nI();iI();sI();aI();uI();cI();lI();fI();dI();pI();mI();hI();gI();DI();EI();xI();CI();vI();wI();FI();bI();RI();SI();TI();_I();kI();PI();II();NI();OI();BI();$I();MI();jI();qI();iA();VI();gA();WI();sg();zI();HI();KI();YI();og();Kk();XI();QI();ZI();tN();eI();rN();KP();nN();iN();sN();aN();uN();yt();JI();cN();Ld();pN();mN();hN();gN();DN();yN();EN();xN();CN();AN();vN();wN();Zs();FN();aP();bN();RN();SN();TN();_N();kN();_P();PN();IN();NN();LN();ON();BN();$N();MN();jN();qN();QC();VN();UN();sA();WN();GN();yA();zN();HN();KN();YN();JN();XN();QN();ZN();eL();rL();nL();iL();tA();oL();sL();oN();aL();cL();lL();fL();MP();tI();dL();xP();pL();mL();hL();yL();EL();xL();CL();AA();AL();vL();wL();FL();tL();bL();RL();yI();SL();TL();_L();vA();IL();rI();oI();_d();NL();LL();OL();CP();BL();HP();$L();ML();jL();Od();qL();VL();UL();WL();GL();LI();pA();zL();HL();YP();KL();YL();JL();JP();AI();XL();QL();BP();ZL();eO();tO();uL();rO();nO();hA();iO();oO();sO();aO();uA();uO();cA();cO();lO();fO();dO();pO();mO();mu();hO();gO();dN();DO();yO();EO();xO();CO();xA();AO();Nd();vO();wO();FO();bO();RO();SO();TO();_O();kO()});var Ao,Sg=f(()=>{Ao={name:"likec4",version:"1.0.0-next.8",license:"MIT",homepage:"https://likec4.dev",author:"Denis Davydkov <denis@davydkov.com>",repository:{type:"git",url:"https://github.com/likec4/likec4.git",directory:"packages/likec4"},engines:{node:"^18.0.0 || >=20.0.0"},bugs:"https://github.com/likec4/likec4/issues",files:["package.json","LICENSE","README.md","bin/","dist/**","!**/*.d.ts","!**/*.map","!**/metafile.json"],type:"module",bin:"./bin/likec4.mjs",main:"",scripts:{"build:turbo":"run -T turbo run build --filter='likec4'","typecheck:app":"tsc --noEmit -p ./app/tsconfig.json","typecheck:cli":"tsc --noEmit -p ./tsconfig.src.json",typecheck:"run 'typecheck:cli' && run 'typecheck:app'",build:"tsx scripts/build.ts",prepack:"run -T turbo run build --filter='likec4' --log-prefix=none --log-order=grouped",lint:"run -T eslint src/ --fix",test:"run -T vitest run","test:watch":"run -T vitest",clean:"run -T rimraf dist app/dist dev/.export dev/dist node_modules/.vite",dev:"tsx watch src/cli/index.ts serve dev","dev:bigbank":"tsx watch src/cli/index.ts serve ../../docs/likec4/bigbank","dev:index-page":"tsx watch src/cli/index.ts serve ../../docs/likec4/index-page","dev:template":"tsx watch src/cli/index.ts serve ../create-likec4/template","dev:example":"tsx watch src/cli/index.ts serve ../../examples/diagrams-dev/likec4",cli:"tsx src/cli/index.ts","cli:serve":"tsx watch src/cli/index.ts serve dev","cli:build":"tsx src/cli/index.ts build -o dev/dist dev","cli:preview":"tsx src/cli/index.ts preview -o dev/dist dev","cli:export":"tsx src/cli/index.ts export png -o dev/export dev","cli:export:json":"tsx src/cli/index.ts export json -o dev/export/likec4.json dev"},dependencies:{"@hpcc-js/wasm":"^2.16.0","@vitejs/plugin-react":"^4.2.1","fast-equals":"^5.0.1",nanostores:"^0.10.0",playwright:"1.42.1",vite:"^5.2.6"},devDependencies:{"@nanostores/react":"^0.7.2","@fontsource/ibm-plex-sans":"^5.0.19","@likec4/core":"workspace:*","@likec4/diagram":"workspace:*","@likec4/diagrams":"workspace:*","@likec4/generators":"workspace:*","@likec4/language-server":"workspace:*","@likec4/layouts":"workspace:*","@mantine/core":"^7.7.0","@mantine/hooks":"^7.7.0","@radix-ui/react-icons":"^1.3.0","@radix-ui/themes":"^2.0.3","@react-hookz/web":"^24.0.4","@tabler/icons":"^2.47.0","@tabler/icons-react":"^2.47.0","@tanstack/react-router":"^1.22.3","@tanstack/router-vite-plugin":"^1.20.5","@types/mermaid":"^9.2.0","@types/node":"^20.11.25","@types/prop-types":"^15.7.11","@types/react":"^18.2.0","@types/react-dom":"^18.2.0","@types/yargs":"^17.0.32","@vanilla-extract/css":"^1.14.1","@vanilla-extract/dynamic":"^2.1.0","@vanilla-extract/recipes":"^0.5.2","@vanilla-extract/vite-plugin":"^4.0.6","ci-info":"^3.9.0",classnames:"^2.3.2",clsx:"^2.1.0",consola:"^3.2.3",esbuild:"^0.20.2","esbuild-node-externals":"^1.13.0",execa:"^8.0.1","get-port":"^7.0.0",json5:"^2.2.3",mkdirp:"^3.0.1",picocolors:"^1.0.0","pkg-up":"^5.0.0",postcss:"^8.4.35","postcss-preset-mantine":"^1.13.0","pretty-ms":"^8.0.0","prop-types":"^15.8.1","react-accessible-treeview":"^2.8.3","react-resizable-panels":"^2.0.12",remeda:"^1.56.0","strip-indent":"^4.0.0",terser:"^5.30.0",tsx:"^4.7.1","type-fest":"^4.13.1",typescript:"^5.4.3",ufo:"^1.3.2",vitest:"^1.4.0",yargs:"^17.7.2"},publishConfig:{registry:"https://registry.npmjs.org",access:"public"},packageManager:"yarn@4.1.1"}});var P3,I3,N3,tl,L3=f(()=>{"use strict";P3={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},I3={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},N3={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},tl={primary:P3,blue:P3,secondary:I3,sky:I3,muted:N3,slate:N3,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#FF977D"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#FFA057"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}}});var xae,O3,B3,$3,M3,j3=f(()=>{"use strict";xae={lineColor:"#6E6E6E",labelBgColor:"#18191b",labelColor:"#C6C6C6"},O3={lineColor:"#64748b",labelBgColor:"#0f172a",labelColor:"#cbd5e1"},B3={lineColor:"#3b82f6",labelBgColor:"#172554",labelColor:"#60a5fa"},$3={lineColor:"#0ea5e9",labelBgColor:"#082f49",labelColor:"#38bdf8"},M3={amber:{lineColor:"#b45309",labelBgColor:"#78350f",labelColor:"#FFE0C2"},blue:B3,gray:xae,green:{lineColor:"#15803d",labelBgColor:"#052e16",labelColor:"#22c55e"},indigo:{lineColor:"#6366f1",labelBgColor:"#1e1b4b",labelColor:"#818cf8"},muted:O3,primary:B3,red:{lineColor:"#AC4D39",labelBgColor:"#b91c1c",labelColor:"#FF977D"},secondary:$3,sky:$3,slate:O3}});var q3,V3=f(()=>{"use strict";L3();j3();q3={elements:tl,relationships:M3,font:"Helvetica",shadow:"#0a0a0a"}});var H3=Z((nv,z3)=>{"use strict";var{hasOwnProperty:Tg}=Object.prototype,Pu=rv();Pu.configure=rv;Pu.stringify=Pu;Pu.default=Pu;nv.stringify=Pu;nv.configure=rv;z3.exports=Pu;var Cae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function aa(t){return t.length<5e3&&!Cae.test(t)?`"${t}"`:JSON.stringify(t)}o(aa,"strEscape");function ev(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let r=t[e],n=e;for(;n!==0&&t[n-1]>r;)t[n]=t[n-1],n--;t[n]=r}return t}o(ev,"insertSort");var Aae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function tv(t){return Aae.call(t)!==void 0&&t.length!==0}o(tv,"isTypedArrayWithEntries");function U3(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}o(U3,"stringifyTypedArray");function vae(t){if(Tg.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}o(vae,"getCircularValueOption");function W3(t,e){let r;if(Tg.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}o(W3,"getBooleanOption");function G3(t,e){let r;if(Tg.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}o(G3,"getPositiveIntegerOption");function ku(t){return t===1?"1 item":`${t} items`}o(ku,"getItemCount");function wae(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}o(wae,"getUniqueReplacerSet");function Fae(t){if(Tg.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}o(Fae,"getStrictOption");function rv(t){t={...t};let e=Fae(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=vae(t),n=W3(t,"bigint"),i=W3(t,"deterministic"),s=G3(t,"maximumDepth"),a=G3(t,"maximumBreadth");function u(m,h,D,y,x,w){let E=h[m];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(m)),E=y.call(h,m,E),typeof E){case"string":return aa(E);case"object":{if(E===null)return"null";if(D.indexOf(E)!==-1)return r;let A="",S=",",L=w;if(Array.isArray(E)){if(E.length===0)return"[]";if(s<D.length+1)return'"[Array]"';D.push(E),x!==""&&(w+=x,A+=`
|
|
10
|
+
`):`Failed R.ok - ${r}`;throw new Error(i)}}}var fA=f(()=>{"use strict";sg();rA();lA();tA();mu();o(jP,"schemaToString");o(Xoe,"check");o(qP,"ok")});var VP=f(()=>{"use strict"});var UP=f(()=>{"use strict"});var WP=f(()=>{"use strict"});var GP=f(()=>{"use strict"});function Qoe(t,e,r){if(!Bn(r))throw new TypeError("reduce: list must be array or iterable");let n=0,i=r.length;for(;n<i;){if(e=t(e,r[n],n,r),e instanceof dA)return e.value;n++}return e}var dA,zP,pA=f(()=>{"use strict";hs();yt();dA=class{static{o(this,"ReduceStopper")}constructor(e){this.value=e}};o(Qoe,"reduceFn");zP=Ae(Qoe)});var HP=f(()=>{"use strict"});var KP=f(()=>{"use strict"});function Zoe(t,e,r){return r.replace(t,e)}var k_e,YP=f(()=>{"use strict";yt();o(Zoe,"replaceFn");k_e=Ae(Zoe)});var JP=f(()=>{"use strict"});function mA(t,e){return arguments.length===1?r=>mA(t,r):t<0?e.slice():typeof e=="string"?e.slice(0,t):Id(e,0,t)}var hA=f(()=>{"use strict";oA();o(mA,"take")});var XP=f(()=>{"use strict"});var QP=f(()=>{"use strict"});var ZP=f(()=>{"use strict"});var eI=f(()=>{"use strict"});var tI=f(()=>{"use strict"});var rI=f(()=>{"use strict"});var nI=f(()=>{"use strict"});var iI=f(()=>{"use strict"});var oI=f(()=>{"use strict"});var sI=f(()=>{"use strict"});var aI=f(()=>{"use strict"});var uI=f(()=>{"use strict"});var cI=f(()=>{"use strict"});var lI=f(()=>{"use strict"});var fI=f(()=>{"use strict"});var dI=f(()=>{"use strict"});var pI=f(()=>{"use strict"});var mI=f(()=>{"use strict"});var hI=f(()=>{"use strict"});var gI=f(()=>{"use strict"});var DI=f(()=>{"use strict"});function cg(t,e){if(arguments.length===1)return i=>cg(t,i);if(e==null)return;let r=Hc(t,","),n={};for(let i in e)r.includes(i)||(n[i]=e[i]);return n}var yI=f(()=>{"use strict";rg();o(cg,"omit")});var EI=f(()=>{"use strict"});function ese(t,e,r){qP(t,e,r)(Array,String,String);let n=r;return t.forEach(i=>{n=n.replace(i,e)}),n}var Ike,xI=f(()=>{"use strict";yt();fA();o(ese,"replaceAllFn");Ike=Ae(ese)});var CI=f(()=>{"use strict"});var AI=f(()=>{"use strict"});var vI=f(()=>{"use strict"});var wI=f(()=>{"use strict"});var FI=f(()=>{"use strict"});var zke,bI=f(()=>{"use strict";zke=Symbol?Symbol("NO_MATCH_FOUND"):void 0});var RI=f(()=>{"use strict"});var SI=f(()=>{"use strict"});var TI=f(()=>{"use strict"});var _I=f(()=>{"use strict"});var kI=f(()=>{"use strict"});var PI=f(()=>{"use strict"});function tse(t){return t==null||Number.isNaN(t)===!0}function Du(t,e){return arguments.length===1?r=>Du(t,r):tse(e)?t:e}var Ld=f(()=>{"use strict";o(tse,"isFalsy");o(Du,"defaultTo")});function rse(t,e,r){return Du(t,gu(e,r))}var dPe,II=f(()=>{"use strict";yt();Ld();Nd();o(rse,"viewOrFn");dPe=Ae(rse)});var NI=f(()=>{"use strict"});var LI=f(()=>{"use strict"});var OI=f(()=>{"use strict"});var BI=f(()=>{"use strict"});var $I=f(()=>{"use strict"});var MI=f(()=>{"use strict"});var jI=f(()=>{"use strict"});function nse(t,e,r){let n=t<0?r.length+t:t;if(t>=r.length||n<0)return r;let i=Qs(r);return i[n]=e(i[n]),i}var kPe,qI=f(()=>{"use strict";Td();yt();o(nse,"adjustFn");kPe=Ae(nse)});var VI=f(()=>{"use strict"});function UI(t){return e=>t}var gA=f(()=>{"use strict";o(UI,"always")});var WI=f(()=>{"use strict"});function GI(t){return(...e)=>{let r=0;for(;r<t.length;){if(t[r](...e))return!0;r++}return!1}}var zI=f(()=>{"use strict";o(GI,"anyPass")});var HI=f(()=>{"use strict"});var KI=f(()=>{"use strict"});var YI=f(()=>{"use strict"});var JI=f(()=>{"use strict"});var XI=f(()=>{"use strict"});var QI=f(()=>{"use strict"});var ZI=f(()=>{"use strict"});function ise(t,e,r){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");if(r>=t&&r<=e)return r;if(r>e)return e;if(r<t)return t}var eN,tN=f(()=>{"use strict";yt();o(ise,"clampFn");eN=Ae(ise)});var rN=f(()=>{"use strict"});var nN=f(()=>{"use strict"});var iN=f(()=>{"use strict"});var oN=f(()=>{"use strict"});var sN=f(()=>{"use strict"});var aN=f(()=>{"use strict"});var uN=f(()=>{"use strict"});var cN=f(()=>{"use strict"});var lg,lN=f(()=>{"use strict";Zs();mu();lg=class{static{o(this,"_Set")}constructor(){this.set=new Set,this.items={}}checkUniqueness(e){let r=_n(e);if(["Null","Undefined","NaN"].includes(r))return r in this.items?!1:(this.items[r]=!0,!0);if(!["Object","Array"].includes(r)){let n=this.set.size;return this.set.add(e),this.set.size!==n}return r in this.items?kd(e,this.items[r])===-1?(this.items[r].push(e),!0):!1:(this.items[r]=[e],!0)}}});function fN(t){let e=new lg,r=[];return t.forEach(n=>{e.checkUniqueness(n)&&r.push(n)}),r}var dN=f(()=>{"use strict";lN();o(fN,"uniq")});var pN=f(()=>{"use strict"});var mN=f(()=>{"use strict"});var hN=f(()=>{"use strict"});var gN=f(()=>{"use strict"});var DN=f(()=>{"use strict"});var yN=f(()=>{"use strict"});var EN=f(()=>{"use strict"});var xN=f(()=>{"use strict"});var CN=f(()=>{"use strict"});var AN=f(()=>{"use strict"});var vN=f(()=>{"use strict"});function ea(t,e){if(arguments.length===1)return r=>ea(t,r);if(e)return e[t]}var Od=f(()=>{"use strict";o(ea,"prop")});function ose(t,e,r){return Yi(ea(t,e),ea(t,r))}var tNe,wN=f(()=>{"use strict";yt();Zs();Od();o(ose,"eqPropsFn");tNe=Ae(ose)});var FN=f(()=>{"use strict"});var bN=f(()=>{"use strict"});var RN=f(()=>{"use strict"});var SN=f(()=>{"use strict"});var TN=f(()=>{"use strict"});var _N=f(()=>{"use strict"});var kN=f(()=>{"use strict"});var PN=f(()=>{"use strict"});var IN=f(()=>{"use strict"});var NN=f(()=>{"use strict"});var LN=f(()=>{"use strict"});var ON=f(()=>{"use strict"});var BN=f(()=>{"use strict"});var $N=f(()=>{"use strict"});var MN=f(()=>{"use strict"});function sse(t,e,r){return(...n)=>(typeof t=="boolean"?t:t(...n))===!0?e(...n):r(...n)}var LNe,jN=f(()=>{"use strict";yt();o(sse,"ifElseFn");LNe=Ae(sse)});var qN=f(()=>{"use strict"});var VN=f(()=>{"use strict"});var UN=f(()=>{"use strict"});var WN=f(()=>{"use strict"});var GN=f(()=>{"use strict"});function DA(t,e){return arguments.length===1?r=>DA(t,r):e!=null&&e.constructor===t||e instanceof t}var yA=f(()=>{"use strict";o(DA,"is")});var zN=f(()=>{"use strict"});var HN=f(()=>{"use strict"});var KN=f(()=>{"use strict"});var YN=f(()=>{"use strict"});var JN=f(()=>{"use strict"});var XN=f(()=>{"use strict"});var QN=f(()=>{"use strict"});var ZN=f(()=>{"use strict"});var eL=f(()=>{"use strict"});var tL=f(()=>{"use strict"});function EA(t,e,r){let n=Qs(r);return t===-1?n.fill(e,t):n.fill(e,t,t+1)}var yLe,xA=f(()=>{"use strict";Td();yt();o(EA,"updateFn");yLe=Ae(EA)});var rL=f(()=>{"use strict"});var nL=f(()=>{"use strict"});var iL=f(()=>{"use strict"});var oL=f(()=>{"use strict"});var sL=f(()=>{"use strict"});function ase(t,e,r){return t(r)>t(e)?r:e}var PLe,aL=f(()=>{"use strict";yt();o(ase,"maxByFn");PLe=Ae(ase)});var uL=f(()=>{"use strict"});var cL=f(()=>{"use strict"});var lL=f(()=>{"use strict"});var fL=f(()=>{"use strict"});var dL=f(()=>{"use strict"});function use(t,e,r){let n={};return Object.keys(e).forEach(i=>{r[i]===void 0?n[i]=e[i]:n[i]=t(e[i],r[i])}),Object.keys(r).forEach(i=>{n[i]===void 0&&(e[i]===void 0?n[i]=r[i]:n[i]=t(e[i],r[i]))}),n}var GLe,pL=f(()=>{"use strict";yt();o(use,"mergeWithFn");GLe=Ae(use)});var mL=f(()=>{"use strict"});function cse(t,e,r){return t(r)<t(e)?r:e}var XLe,hL=f(()=>{"use strict";yt();o(cse,"minByFn");XLe=Ae(cse)});function gL(t){return Array.isArray(t)||_n(t)==="Object"}var DL=f(()=>{"use strict";mu();o(gL,"isIterable")});function lse(t,e,r){return!gL(r)||r[t]===void 0?r:Bn(r)?EA(t,e(r[t]),r):{...r,[t]:e(r[t])}}var aOe,yL=f(()=>{"use strict";hs();DL();yt();xA();o(lse,"modifyFn");aOe=Ae(lse)});function fse(t,e,r){let n=Hc(t);if(n.length===1)return{...r,[n[0]]:e(r[n[0]])};if(hu(n,r)===void 0)return r;let i=dse(Array.prototype.slice.call(n,1),e,r[n[0]]);return i===r[n[0]]?r:ig(n[0],i,r)}var dse,EL=f(()=>{"use strict";rg();og();yt();_d();o(fse,"modifyPathFn");dse=Ae(fse)});var xL=f(()=>{"use strict"});function pse(t,e,r){if(t<0||e<0)throw new Error("Rambda.move does not support negative indexes");if(t>r.length-1||e>r.length-1)return r;let n=Qs(r);return n[t]=r[e],n[e]=r[t],n}var xOe,CL=f(()=>{"use strict";Td();yt();o(pse,"moveFn");xOe=Ae(pse)});function CA(t,e){return arguments.length===1?r=>CA(t,r):t*e}var AA=f(()=>{"use strict";o(CA,"multiply")});var AL=f(()=>{"use strict"});var vL=f(()=>{"use strict"});var wL=f(()=>{"use strict"});var FL=f(()=>{"use strict"});var bL=f(()=>{"use strict"});var RL=f(()=>{"use strict"});var SL=f(()=>{"use strict"});var TL=f(()=>{"use strict"});var _L=f(()=>{"use strict"});function mse(t,e,r){return t(n=>kL(e(n)))(r).x}var kL,PL,vA=f(()=>{"use strict";yt();kL=o(t=>({x:t,map:e=>kL(e(t))}),"Identity");o(mse,"overFn");PL=Ae(mse)});var IL=f(()=>{"use strict"});function hse(t,e,r){return Yi(hu(t,r),e)}var XOe,NL=f(()=>{"use strict";yt();Zs();_d();o(hse,"pathEqFn");XOe=Ae(hse)});function gse(t,e,r){return Du(t,hu(e,r))}var n3e,LL=f(()=>{"use strict";yt();Ld();_d();o(gse,"pathOrFn");n3e=Ae(gse)});var OL=f(()=>{"use strict"});var BL=f(()=>{"use strict"});var $L=f(()=>{"use strict"});var ML=f(()=>{"use strict"});var g3e,jL=f(()=>{"use strict";AA();pA();g3e=zP(CA,1)});function Dse(t,e,r){return r?Yi(e,ea(t,r)):!1}var C3e,qL=f(()=>{"use strict";yt();Zs();Od();o(Dse,"propEqFn");C3e=Ae(Dse)});function yse(t,e,r){return DA(t,r[e])}var b3e,VL=f(()=>{"use strict";yt();yA();o(yse,"propIsFn");b3e=Ae(yse)});function Ese(t,e,r){return r?Du(t,r[e]):t}var k3e,UL=f(()=>{"use strict";yt();Ld();o(Ese,"propOrFn");k3e=Ae(Ese)});function xse(t,e,r){return t(ea(e,r))}var O3e,WL=f(()=>{"use strict";yt();Od();o(xse,"propSatisfiesFn");O3e=Ae(xse)});var GL=f(()=>{"use strict"});var zL=f(()=>{"use strict"});var HL=f(()=>{"use strict"});var KL=f(()=>{"use strict"});function Cse(t,e,r){return PL(t,UI(e),r)}var J3e,YL=f(()=>{"use strict";gA();yt();vA();o(Cse,"setFn");J3e=Ae(Cse)});function Ase(t,e,r){return r.slice(t,e)}var eBe,JL=f(()=>{"use strict";yt();o(Ase,"sliceFn");eBe=Ae(Ase)});var XL=f(()=>{"use strict"});var QL=f(()=>{"use strict"});var ZL=f(()=>{"use strict"});var eO=f(()=>{"use strict"});var tO=f(()=>{"use strict"});var rO=f(()=>{"use strict"});var nO=f(()=>{"use strict"});var iO=f(()=>{"use strict"});var oO=f(()=>{"use strict"});var sO=f(()=>{"use strict"});var aO=f(()=>{"use strict"});var uO=f(()=>{"use strict"});var cO=f(()=>{"use strict"});var lO=f(()=>{"use strict"});var fO=f(()=>{"use strict"});var dO=f(()=>{"use strict"});var pO=f(()=>{"use strict"});var mO=f(()=>{"use strict"});var hO=f(()=>{"use strict"});var gO=f(()=>{"use strict"});var DO=f(()=>{"use strict"});var yO=f(()=>{"use strict"});var EO=f(()=>{"use strict"});var xO=f(()=>{"use strict"});var CO=f(()=>{"use strict"});var AO=f(()=>{"use strict"});function vse(t,e,r){return t(r)?e(r):r}var r4e,vO=f(()=>{"use strict";yt();o(vse,"whenFn");r4e=Ae(vse)});var wO=f(()=>{"use strict"});var FO=f(()=>{"use strict"});var bO=f(()=>{"use strict"});var RO=f(()=>{"use strict"});var SO=f(()=>{"use strict"});function wA(t,e){if(arguments.length===1)return i=>wA(t,i);let r=[],n=Math.min(t.length,e.length);for(let i=0;i<n;i++)r[i]=[t[i],e[i]];return r}var TO=f(()=>{"use strict";o(wA,"zip")});var _O=f(()=>{"use strict"});function wse(t,e,r){return mA(e.length>r.length?r.length:e.length,e).map((n,i)=>t(n,r[i]))}var C4e,kO=f(()=>{"use strict";yt();hA();o(wse,"zipWithFn");C4e=Ae(wse)});var Kc=f(()=>{"use strict";jk();qk();Vk();Uk();Wk();Gk();Yk();Jk();tP();rP();iP();oP();sP();cP();lP();fP();dP();EP();AP();rA();wP();FP();bP();RP();lA();kP();IP();NP();uP();yP();LP();OP();$P();VP();UP();WP();GP();XP();QP();ZP();fA();nI();iI();sI();aI();uI();cI();lI();fI();dI();pI();mI();hI();gI();DI();EI();xI();CI();vI();wI();FI();bI();RI();SI();TI();_I();kI();PI();II();NI();OI();BI();$I();MI();jI();qI();iA();VI();gA();WI();sg();zI();HI();KI();YI();og();Kk();XI();QI();ZI();tN();eI();rN();KP();nN();iN();sN();aN();uN();yt();JI();cN();Ld();pN();mN();hN();gN();DN();yN();EN();xN();CN();AN();vN();wN();Zs();FN();aP();bN();RN();SN();TN();_N();kN();_P();PN();IN();NN();LN();ON();BN();$N();MN();jN();qN();QC();VN();UN();sA();WN();GN();yA();zN();HN();KN();YN();JN();XN();QN();ZN();eL();rL();nL();iL();tA();oL();sL();oN();aL();cL();lL();fL();MP();tI();dL();xP();pL();mL();hL();yL();EL();xL();CL();AA();AL();vL();wL();FL();tL();bL();RL();yI();SL();TL();_L();vA();IL();rI();oI();_d();NL();LL();OL();CP();BL();HP();$L();ML();jL();Od();qL();VL();UL();WL();GL();LI();pA();zL();HL();YP();KL();YL();JL();JP();AI();XL();QL();BP();ZL();eO();tO();uL();rO();nO();hA();iO();oO();sO();aO();uA();uO();cA();cO();lO();fO();dO();pO();mO();mu();hO();gO();dN();DO();yO();EO();xO();CO();xA();AO();Nd();vO();wO();FO();bO();RO();SO();TO();_O();kO()});var Ao,Sg=f(()=>{Ao={name:"likec4",version:"1.0.0-next.9",license:"MIT",homepage:"https://likec4.dev",author:"Denis Davydkov <denis@davydkov.com>",repository:{type:"git",url:"https://github.com/likec4/likec4.git",directory:"packages/likec4"},engines:{node:"^18.0.0 || >=20.0.0"},bugs:"https://github.com/likec4/likec4/issues",files:["package.json","LICENSE","README.md","bin","dist","!**/*.d.ts","!**/*.map","!**/metafile.json"],type:"module",bin:"./bin/likec4.mjs",main:"",scripts:{"build:turbo":"run -T turbo run build --filter='likec4'","typecheck:app":"tsc --noEmit -p ./app/tsconfig.json","typecheck:cli":"tsc --noEmit -p ./tsconfig.src.json",typecheck:"run 'typecheck:cli' && run 'typecheck:app'",build:"tsx scripts/build.ts",prepack:"run -T turbo run build --filter='likec4' --log-prefix=none --log-order=grouped",lint:"run -T eslint src/ --fix",test:"run -T vitest run","test:watch":"run -T vitest",clean:"run -T rimraf dist app/dist dev/.export dev/dist node_modules/.vite",dev:"tsx watch src/cli/index.ts serve dev","dev:bigbank":"tsx watch src/cli/index.ts serve ../../docs/likec4/bigbank","dev:index-page":"tsx watch src/cli/index.ts serve ../../docs/likec4/index-page","dev:template":"tsx watch src/cli/index.ts serve ../create-likec4/template","dev:example":"tsx watch src/cli/index.ts serve ../../examples/diagrams-dev/likec4",cli:"tsx src/cli/index.ts","cli:serve":"tsx watch src/cli/index.ts serve dev","cli:build":"tsx src/cli/index.ts build -o dev/dist dev","cli:preview":"tsx src/cli/index.ts preview -o dev/dist dev","cli:export":"tsx src/cli/index.ts export png -o dev/export dev","cli:export:json":"tsx src/cli/index.ts export json -o dev/export/likec4.json dev"},dependencies:{"@hpcc-js/wasm":"^2.16.0","@vitejs/plugin-react":"^4.2.1","fast-equals":"^5.0.1",nanostores:"^0.10.0",playwright:"1.42.1",vite:"^5.2.6"},devDependencies:{"@fontsource/ibm-plex-sans":"^5.0.19","@likec4/core":"workspace:*","@likec4/diagram":"workspace:*","@likec4/diagrams":"workspace:*","@likec4/generators":"workspace:*","@likec4/language-server":"workspace:*","@likec4/layouts":"workspace:*","@mantine/core":"^7.7.0","@mantine/hooks":"^7.7.0","@nanostores/react":"^0.7.2","@radix-ui/react-icons":"^1.3.0","@radix-ui/themes":"^2.0.3","@react-hookz/web":"^24.0.4","@tabler/icons":"^2.47.0","@tabler/icons-react":"^2.47.0","@tanstack/react-router":"^1.22.3","@tanstack/router-vite-plugin":"^1.20.5","@types/mermaid":"^9.2.0","@types/node":"^20.11.25","@types/prop-types":"^15.7.11","@types/react":"^18.2.0","@types/react-dom":"^18.2.0","@types/yargs":"^17.0.32","@vanilla-extract/css":"^1.14.1","@vanilla-extract/dynamic":"^2.1.0","@vanilla-extract/recipes":"^0.5.2","@vanilla-extract/vite-plugin":"^4.0.6","ci-info":"^3.9.0",classnames:"^2.3.2",clsx:"^2.1.0",consola:"^3.2.3",esbuild:"^0.20.2","esbuild-node-externals":"^1.13.0",execa:"^8.0.1","get-port":"^7.0.0",json5:"^2.2.3",mkdirp:"^3.0.1",picocolors:"^1.0.0","pkg-up":"^5.0.0",postcss:"^8.4.35","postcss-preset-mantine":"^1.13.0","pretty-ms":"^8.0.0","prop-types":"^15.8.1",react:"^18.2.0","react-accessible-treeview":"^2.8.3","react-dom":"^18.2.0","react-resizable-panels":"^2.0.12",remeda:"^1.56.0","strip-indent":"^4.0.0",terser:"^5.30.0",tsx:"^4.7.1","type-fest":"^4.13.1",typescript:"^5.4.3",ufo:"^1.3.2",vitest:"^1.4.0",yargs:"^17.7.2"},publishConfig:{registry:"https://registry.npmjs.org",access:"public"},packageManager:"yarn@4.1.1"}});var P3,I3,N3,tl,L3=f(()=>{"use strict";P3={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},I3={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},N3={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},tl={primary:P3,blue:P3,secondary:I3,sky:I3,muted:N3,slate:N3,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#FF977D"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#FFA057"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}}});var xae,O3,B3,$3,M3,j3=f(()=>{"use strict";xae={lineColor:"#6E6E6E",labelBgColor:"#18191b",labelColor:"#C6C6C6"},O3={lineColor:"#64748b",labelBgColor:"#0f172a",labelColor:"#cbd5e1"},B3={lineColor:"#3b82f6",labelBgColor:"#172554",labelColor:"#60a5fa"},$3={lineColor:"#0ea5e9",labelBgColor:"#082f49",labelColor:"#38bdf8"},M3={amber:{lineColor:"#b45309",labelBgColor:"#78350f",labelColor:"#FFE0C2"},blue:B3,gray:xae,green:{lineColor:"#15803d",labelBgColor:"#052e16",labelColor:"#22c55e"},indigo:{lineColor:"#6366f1",labelBgColor:"#1e1b4b",labelColor:"#818cf8"},muted:O3,primary:B3,red:{lineColor:"#AC4D39",labelBgColor:"#b91c1c",labelColor:"#FF977D"},secondary:$3,sky:$3,slate:O3}});var q3,V3=f(()=>{"use strict";L3();j3();q3={elements:tl,relationships:M3,font:"Helvetica",shadow:"#0a0a0a"}});var H3=Z((nv,z3)=>{"use strict";var{hasOwnProperty:Tg}=Object.prototype,Pu=rv();Pu.configure=rv;Pu.stringify=Pu;Pu.default=Pu;nv.stringify=Pu;nv.configure=rv;z3.exports=Pu;var Cae=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function aa(t){return t.length<5e3&&!Cae.test(t)?`"${t}"`:JSON.stringify(t)}o(aa,"strEscape");function ev(t){if(t.length>200)return t.sort();for(let e=1;e<t.length;e++){let r=t[e],n=e;for(;n!==0&&t[n-1]>r;)t[n]=t[n-1],n--;t[n]=r}return t}o(ev,"insertSort");var Aae=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function tv(t){return Aae.call(t)!==void 0&&t.length!==0}o(tv,"isTypedArrayWithEntries");function U3(t,e,r){t.length<r&&(r=t.length);let n=e===","?"":" ",i=`"0":${n}${t[0]}`;for(let s=1;s<r;s++)i+=`${e}"${s}":${n}${t[s]}`;return i}o(U3,"stringifyTypedArray");function vae(t){if(Tg.call(t,"circularValue")){let e=t.circularValue;if(typeof e=="string")return`"${e}"`;if(e==null)return e;if(e===Error||e===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}o(vae,"getCircularValueOption");function W3(t,e){let r;if(Tg.call(t,e)&&(r=t[e],typeof r!="boolean"))throw new TypeError(`The "${e}" argument must be of type boolean`);return r===void 0?!0:r}o(W3,"getBooleanOption");function G3(t,e){let r;if(Tg.call(t,e)){if(r=t[e],typeof r!="number")throw new TypeError(`The "${e}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${e}" argument must be an integer`);if(r<1)throw new RangeError(`The "${e}" argument must be >= 1`)}return r===void 0?1/0:r}o(G3,"getPositiveIntegerOption");function ku(t){return t===1?"1 item":`${t} items`}o(ku,"getItemCount");function wae(t){let e=new Set;for(let r of t)(typeof r=="string"||typeof r=="number")&&e.add(String(r));return e}o(wae,"getUniqueReplacerSet");function Fae(t){if(Tg.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;throw typeof r!="function"&&(n+=` (${r.toString()})`),new Error(n)}}}o(Fae,"getStrictOption");function rv(t){t={...t};let e=Fae(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let r=vae(t),n=W3(t,"bigint"),i=W3(t,"deterministic"),s=G3(t,"maximumDepth"),a=G3(t,"maximumBreadth");function u(m,h,D,y,x,w){let E=h[m];switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(m)),E=y.call(h,m,E),typeof E){case"string":return aa(E);case"object":{if(E===null)return"null";if(D.indexOf(E)!==-1)return r;let A="",S=",",L=w;if(Array.isArray(E)){if(E.length===0)return"[]";if(s<D.length+1)return'"[Array]"';D.push(E),x!==""&&(w+=x,A+=`
|
|
11
11
|
${w}`,S=`,
|
|
12
12
|
${w}`);let I=Math.min(E.length,a),R=0;for(;R<I-1;R++){let G=u(String(R),E,D,y,x,w);A+=G!==void 0?G:"null",A+=S}let q=u(String(R),E,D,y,x,w);if(A+=q!==void 0?q:"null",E.length-1>a){let G=E.length-a-1;A+=`${S}"... ${ku(G)} not stringified"`}return x!==""&&(A+=`
|
|
13
13
|
${L}`),D.pop(),`[${A}]`}let te=Object.keys(E),le=te.length;if(le===0)return"{}";if(s<D.length+1)return'"[Object]"';let de="",N="";x!==""&&(w+=x,S=`,
|
|
@@ -532,7 +532,7 @@ if (import.meta.hot) {
|
|
|
532
532
|
}
|
|
533
533
|
})
|
|
534
534
|
}
|
|
535
|
-
`}},sRe={id:"virtual:likec4/views",virtualId:"/@vite-plugin-likec4/likec4-views",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/views"));let r=await t.views.diagrams();return Gh([...r])}},aRe={id:"virtual:likec4/dot-sources",virtualId:"\0likec4/dot-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/dot-sources"));let r=await t.views.viewsAsGraphvizOut(),n=la(r,({id:i,svg:s,dot:a})=>[i,{dot:a,svg:s}]);return hie(n)}},uRe={id:"virtual:likec4/d2-sources",virtualId:"\0likec4/d2-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/d2-sources"));let r=await t.views.computedViews();return pie(r)}},cRe={id:"virtual:likec4/mmd-sources",virtualId:"\0likec4/mmd-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/mmd-sources"));let r=await t.views.computedViews();return Die(r)}},xk=[sRe,aRe,uRe,cRe],Ck=o(t=>{let e=t.toLowerCase();return e.endsWith(".c4")||e.endsWith(".likec4")||e.endsWith(".like-c4")},"isTarget");o(xie,"likec4Plugin")});import lRe from"@vitejs/plugin-react";import fRe from"node:fs";import{dirname as dRe,resolve as Aie}from"node:path";import{fileURLToPath as pRe}from"node:url";var Wc,mRe,Ed,BC=f(()=>{"use strict";uu();Wc=ke(mn(),1);HS();ds();Cie();mRe=dRe(pRe(import.meta.url)),Ed=o(async t=>{let e=go("c4:vite"),r=Aie(mRe,"../__app__");if(!fRe.existsSync(r))throw e.error(`likec4 app root does not exist: ${r}`),new Error(`likec4 app root does not exist: ${r}`);e.info(`${Wc.default.cyan("likec4 app root")} ${Wc.default.dim(r)}`);let n=t?.languageServices??await fn.get({path:t?.workspaceDir??process.cwd(),logValidationErrors:!0}),i=t?.outputDir??Aie(n.workspace,"dist");e.info(Wc.default.cyan("output")+" "+Wc.default.dim(i));let s="/";return t?.base&&(s=zS(t.base),ch(s)||(s=LJ(s))),s!=="/"&&e.info(`${Wc.default.green("app base url")} ${Wc.default.dim(s)}`),{isDev:!1,root:r,languageServices:n,clearScreen:!1,base:s,configFile:!1,resolve:{dedupe:["react","react-dom","
|
|
535
|
+
`}},sRe={id:"virtual:likec4/views",virtualId:"/@vite-plugin-likec4/likec4-views",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/views"));let r=await t.views.diagrams();return Gh([...r])}},aRe={id:"virtual:likec4/dot-sources",virtualId:"\0likec4/dot-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/dot-sources"));let r=await t.views.viewsAsGraphvizOut(),n=la(r,({id:i,svg:s,dot:a})=>[i,{dot:a,svg:s}]);return hie(n)}},uRe={id:"virtual:likec4/d2-sources",virtualId:"\0likec4/d2-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/d2-sources"));let r=await t.views.computedViews();return pie(r)}},cRe={id:"virtual:likec4/mmd-sources",virtualId:"\0likec4/mmd-sources",async load({likec4:t,logger:e}){e.info(Js.default.dim("generating virtual:likec4/mmd-sources"));let r=await t.views.computedViews();return Die(r)}},xk=[sRe,aRe,uRe,cRe],Ck=o(t=>{let e=t.toLowerCase();return e.endsWith(".c4")||e.endsWith(".likec4")||e.endsWith(".like-c4")},"isTarget");o(xie,"likec4Plugin")});import lRe from"@vitejs/plugin-react";import fRe from"node:fs";import{dirname as dRe,resolve as Aie}from"node:path";import{fileURLToPath as pRe}from"node:url";var Wc,mRe,Ed,BC=f(()=>{"use strict";uu();Wc=ke(mn(),1);HS();ds();Cie();mRe=dRe(pRe(import.meta.url)),Ed=o(async t=>{let e=go("c4:vite"),r=Aie(mRe,"../__app__");if(!fRe.existsSync(r))throw e.error(`likec4 app root does not exist: ${r}`),new Error(`likec4 app root does not exist: ${r}`);e.info(`${Wc.default.cyan("likec4 app root")} ${Wc.default.dim(r)}`);let n=t?.languageServices??await fn.get({path:t?.workspaceDir??process.cwd(),logValidationErrors:!0}),i=t?.outputDir??Aie(n.workspace,"dist");e.info(Wc.default.cyan("output")+" "+Wc.default.dim(i));let s="/";return t?.base&&(s=zS(t.base),ch(s)||(s=LJ(s))),s!=="/"&&e.info(`${Wc.default.green("app base url")} ${Wc.default.dim(s)}`),{isDev:!1,root:r,languageServices:n,clearScreen:!1,base:s,configFile:!1,resolve:{dedupe:["react","react-dom","react/jsx-runtime"],alias:[{find:"@emotion/is-prop-valid",replacement:"none"}]},build:{outDir:i,cssCodeSplit:!1,sourcemap:!1,minify:!0,assetsInlineLimit:100*1024,chunkSizeWarningLimit:3e6,commonjsOptions:{ignoreTryCatch:"remove"}},customLogger:e,plugins:[lRe(),xie({languageServices:n})]}},"viteConfig")});import{copyFileSync as hRe,existsSync as gRe}from"node:fs";import{resolve as vie}from"node:path";import{build as DRe}from"vite";var $C,Ak=f(()=>{"use strict";BC();$C=o(async t=>{let{isDev:e,...r}=await Ed(t);await DRe({...r,mode:"production"});let n=vie(r.build.outDir,"index.html");gRe(n)&&hRe(n,vie(r.build.outDir,"404.html"))},"viteBuild")});var wie={};pn(wie,{handler:()=>yRe});async function yRe({path:t,useDotBin:e,output:r,...n}){let i=await fn.get({path:t,useDotBin:e});await $C({...n,languageServices:i,outputDir:r})}var Fie=f(()=>{"use strict";ds();Ak();o(yRe,"handler")});async function wk(t,e,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){let i=ho(r),s=[...t].map(u=>[u,i(xRe,u,e)]),a=ho(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(s.map(u=>a(CRe,u)))}catch(u){if(u instanceof MC)return u.value;throw u}}var MC,xRe,CRe,Sie=f(()=>{"use strict";ld();MC=class extends Error{static{o(this,"EndError")}constructor(e){super(),this.value=e}},xRe=o(async(t,e)=>e(await t),"testElement"),CRe=o(async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new MC(e[0]);return!1},"finder");o(wk,"pLocate")});import kie from"node:process";import Pie from"node:path";import Tie,{promises as _ie}from"node:fs";import{fileURLToPath as ARe}from"node:url";function Nie(t){if(!Object.hasOwnProperty.call(Iie,t))throw new Error(`Invalid type specified: ${t}`)}async function Fk(t,{cwd:e=kie.cwd(),type:r="file",allowSymlinks:n=!0,concurrency:i,preserveOrder:s}={}){Nie(r),e=Oie(e);let a=n?_ie.stat:_ie.lstat;return wk(t,async u=>{try{let c=await a(Pie.resolve(e,u));return Lie(r,c)}catch{return!1}},{concurrency:i,preserveOrder:s})}function bk(t,{cwd:e=kie.cwd(),type:r="file",allowSymlinks:n=!0}={}){Nie(r),e=Oie(e);let i=n?Tie.statSync:Tie.lstatSync;for(let s of t)try{let a=i(Pie.resolve(e,s),{throwIfNoEntry:!1});if(!a)continue;if(Lie(r,a))return s}catch{}}var Iie,Lie,Oie,Bie=f(()=>{"use strict";Sie();Iie={directory:"isDirectory",file:"isFile"};o(Nie,"checkType");Lie=o((t,e)=>e[Iie[t]](),"matchType"),Oie=o(t=>t instanceof URL?ARe(t):t,"toPath");o(Fk,"locatePath");o(bk,"locatePathSync")});var $ie=f(()=>{"use strict"});import Xs from"node:path";import{fileURLToPath as vRe}from"node:url";async function wRe(t,e={}){let r=Xs.resolve(Mie(e.cwd)||""),{root:n}=Xs.parse(r),i=Xs.resolve(r,e.stopAt||n),s=e.limit||Number.POSITIVE_INFINITY,a=[t].flat(),u=o(async l=>{if(typeof t!="function")return Fk(a,l);let d=await t(l.cwd);return typeof d=="string"?Fk([d],l):d},"runMatcher"),c=[];for(;;){let l=await u({...e,cwd:r});if(l===jie||(l&&c.push(Xs.resolve(r,l)),r===i||c.length>=s))break;r=Xs.dirname(r)}return c}function FRe(t,e={}){let r=Xs.resolve(Mie(e.cwd)||""),{root:n}=Xs.parse(r),i=e.stopAt||n,s=e.limit||Number.POSITIVE_INFINITY,a=[t].flat(),u=o(l=>{if(typeof t!="function")return bk(a,l);let d=t(l.cwd);return typeof d=="string"?bk([d],l):d},"runMatcher"),c=[];for(;;){let l=u({...e,cwd:r});if(l===jie||(l&&c.push(Xs.resolve(r,l)),r===i||c.length>=s))break;r=Xs.dirname(r)}return c}async function qie(t,e={}){return(await wRe(t,{...e,limit:1}))[0]}function Vie(t,e={}){return FRe(t,{...e,limit:1})[0]}var Mie,jie,Uie=f(()=>{"use strict";Bie();$ie();Mie=o(t=>t instanceof URL?vRe(t):t,"toPath"),jie=Symbol("findUpStop");o(wRe,"findUpMultiple");o(FRe,"findUpMultipleSync");o(qie,"findUp");o(Vie,"findUpSync")});async function Wie({cwd:t}={}){return qie("package.json",{cwd:t})}function Gie({cwd:t}={}){return Vie("package.json",{cwd:t})}var zie=f(()=>{"use strict";Uie();o(Wie,"pkgUp");o(Gie,"pkgUpSync")});function Hie(t){return{views:{js:Gh(t),dts:Ek(t)},index:bRe()}}function bRe(){let t=new ot().appendTemplate`
|
|
536
536
|
/******************************************************************************
|
|
537
537
|
* This file was generated
|
|
538
538
|
* DO NOT EDIT MANUALLY!
|
|
@@ -593,7 +593,7 @@ if (import.meta.hot) {
|
|
|
593
593
|
${D}`),m<s&&(c.push({view:p,attempt:m+1}),n.info(Fd.default.dim(`retry ${h}`))),u=void 0}}return l}async function QRe(t,e){let r=await t.locator("//img").all();if(!r.length)return;let n=r.map(i=>i.evaluate(s=>s.complete||new Promise((a,u)=>{s.onload=a,s.onerror=u}),{timeout:Math.max(3e4,e)}));await Promise.allSettled(n)}var Fd,poe=f(()=>{"use strict";Fd=ke(mn(),1);vt();o(doe,"takeScreenshot");o(QRe,"waitAllImages")});var moe={};pn(moe,{handler:()=>n2e});import{rm as ZRe}from"fs/promises";import{resolve as e2e}from"node:path";import{hrtime as t2e}from"node:process";import{chromium as r2e}from"playwright";async function n2e({path:t,useDotBin:e,output:r,ignore:n,timeout:i,maxAttempts:s}){let a=go("c4:export"),u=fs(),c=await fn.get({path:t,useDotBin:e}),l=await c.views.diagrams();if(!jr(l,1))throw a.warn("no views found"),new Error("no views found");let d=e2e(r,".build-cache");await $C({languageServices:c,outputDir:d}),a.info(Hi.default.cyan("start preview server"));let p=await zC({languageServices:c,outputDir:d,open:!1});if(!p.resolvedUrls)throw new Error("Vite server is not ready, no resolvedUrls");let m=[...p.resolvedUrls.network,...p.resolvedUrls.local];if(!jr(m,1))throw a.error("no preview server url"),new Error("no preview server url");a.info(`${Hi.default.dim("output")} ${r}`),a.info(Hi.default.cyan("start chromium"));let h=m[0],D=await r2e.launch(),y=await D.newContext({deviceScaleFactor:2,colorScheme:"dark",baseURL:h,isMobile:!1});y.setDefaultNavigationTimeout(i),y.setDefaultTimeout(i),a.info(`${Hi.default.cyan("baseURL")} ${Hi.default.dim(h)}`);let x=t2e(),w=await doe({browserContext:y,views:l,output:r,logger:a,maxAttempts:s,timeout:i}),{pretty:E}=rk(x);try{a.info(Hi.default.cyan("close chromium")),await y.close(),await D.close(),a.info(Hi.default.cyan("clean build outDir")),await ZRe(d,{recursive:!0,force:!0}),a.info(Hi.default.cyan("stop preview server")),await p.close()}finally{}if(w.length>0&&a.info(Hi.default.green(`exported ${w.length} views in ${E}`)),w.length!==l.length&&(n===!0&&w.length>0?a.info(Hi.default.dim("ignore")+" "+Hi.default.red(`failed ${l.length-w.length} out of ${l.length} views`)):a.error(Hi.default.red(`failed ${l.length-w.length} out of ${l.length} views`))),w.length!==l.length&&(w.length===0||n!==!0))throw new Error(`Failed ${l.length-w.length} out of ${l.length} views`);u.stopAndLog("\u2713 export in ")}var Hi,hoe=f(()=>{"use strict";Et();Hi=ke(mn(),1);ds();uu();Ak();kk();poe();o(n2e,"handler")});var Doe={};pn(Doe,{handler:()=>c2e});import{mkdir as i2e,writeFile as o2e}from"node:fs/promises";import{dirname as s2e,extname as a2e,relative as u2e}from"node:path";async function c2e({path:t,useDotBin:e,outfile:r}){let n=go("c4:export"),i=fs(),s=await fn.get({path:t,useDotBin:e}),a=await s.model.buildComputedModel();if(!a)throw n.warn("no model parsed"),new Error("no model parsed");a2e(r)!==".json"&&(r=r+".json"),await i2e(s2e(r),{recursive:!0});let u=await s.views.diagrams(),c={...a,views:u},l=JSON.stringify(c,null,2);await o2e(r,l),n.info(`${goe.default.dim("generated")} ${u2e(process.cwd(),r)}`),i.stopAndLog("\u2713 export in ")}var goe,yoe=f(()=>{"use strict";goe=ke(mn(),1);ds();uu();o(c2e,"handler")});function KC(t){if(!t.resolvedUrls)throw new Error("Vite server is not ready, no resolvedUrls");Qt.box([HC.default.green("LikeC4 served at:"),"",HC.default.dim("Local: ")+t.resolvedUrls.local.join(`
|
|
594
594
|
`+"".padEnd(9," ")),HC.default.dim("Network: ")+t.resolvedUrls.network.join(`
|
|
595
595
|
`+"".padEnd(9," "))].join(`
|
|
596
|
-
`))}var HC,Pk=f(()=>{"use strict";SC();HC=ke(mn(),1);o(KC,"printServerUrls")});var xoe={};pn(xoe,{handler:()=>f2e});async function f2e({path:t,output:e,...r}){let n=await fn.get({path:t,useDotBin:!1}),i=await zC({...r,languageServices:n,outputDir:e,open:!0});KC(i)}var Coe=f(()=>{"use strict";ds();Pk();kk();o(f2e,"handler")});import{createServer as p2e}from"vite";var woe,Foe=f(()=>{"use strict";BC();_k();woe=o(async t=>{let{isDev:e,...r}=await Ed(t),n=await wd({port:[5173,61e3,61001,...Xh(62002,62010)]}),i=await wd({port:Xh(24678,24690)}),s=await p2e({...r,mode:"development",optimizeDeps:{force:!0
|
|
596
|
+
`))}var HC,Pk=f(()=>{"use strict";SC();HC=ke(mn(),1);o(KC,"printServerUrls")});var xoe={};pn(xoe,{handler:()=>f2e});async function f2e({path:t,output:e,...r}){let n=await fn.get({path:t,useDotBin:!1}),i=await zC({...r,languageServices:n,outputDir:e,open:!0});KC(i)}var Coe=f(()=>{"use strict";ds();Pk();kk();o(f2e,"handler")});import{createServer as p2e}from"vite";var woe,Foe=f(()=>{"use strict";BC();_k();woe=o(async t=>{let{isDev:e,...r}=await Ed(t),n=await wd({port:[5173,61e3,61001,...Xh(62002,62010)]}),i=await wd({port:Xh(24678,24690)}),s=await p2e({...r,mode:"development",optimizeDeps:{force:!0},server:{host:"0.0.0.0",port:n,hmr:{overlay:!0,port:i},fs:{strict:!1},open:!e}});return await s.listen(),s.config.logger.clearScreen("info"),s},"viteDev")});var boe={};pn(boe,{handler:()=>m2e});async function m2e({path:t,useDotBin:e,...r}){let n=await fn.get({path:t,useDotBin:e}),i=await woe({...r,languageServices:n});KC(i)}var Roe=f(()=>{"use strict";ds();Pk();Foe();o(m2e,"handler")});var Qh=ke(mn(),1);Kc();import{notStrictEqual as Yse,strictEqual as Jse}from"assert";var Fse={right:_se,center:kse},bse=0,fg=1,Rse=2,dg=3,FA=class{static{o(this,"UI")}constructor(e){var r;this.width=e.width,this.wrap=(r=e.wrap)!==null&&r!==void 0?r:!0,this.rows=[]}span(...e){let r=this.div(...e);r.span=!0}resetOutput(){this.rows=[]}div(...e){if(e.length===0&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...e)&&typeof e[0]=="string")return this.applyLayoutDSL(e[0]);let r=e.map(n=>typeof n=="string"?this.colFromString(n):n);return this.rows.push(r),r}shouldApplyLayoutDSL(...e){return e.length===1&&typeof e[0]=="string"&&/[\t\n]/.test(e[0])}applyLayoutDSL(e){let r=e.split(`
|
|
597
597
|
`).map(i=>i.split(" ")),n=0;return r.forEach(i=>{i.length>1&&Ti.stringWidth(i[0])>n&&(n=Math.min(Math.floor(this.width*.5),Ti.stringWidth(i[0])))}),r.forEach(i=>{this.div(...i.map((s,a)=>({text:s.trim(),padding:this.measurePadding(s),width:a===0&&i.length>1?n:void 0})))}),this.rows[this.rows.length-1]}colFromString(e){return{text:e,padding:this.measurePadding(e)}}measurePadding(e){let r=Ti.stripAnsi(e);return[0,r.match(/\s*$/)[0].length,0,r.match(/^\s*/)[0].length]}toString(){let e=[];return this.rows.forEach(r=>{this.rowToString(r,e)}),e.filter(r=>!r.hidden).map(r=>r.text).join(`
|
|
598
598
|
`)}rowToString(e,r){return this.rasterize(e).forEach((n,i)=>{let s="";n.forEach((a,u)=>{let{width:c}=e[u],l=this.negatePadding(e[u]),d=a;if(l>Ti.stringWidth(a)&&(d+=" ".repeat(l-Ti.stringWidth(a))),e[u].align&&e[u].align!=="left"&&this.wrap){let m=Fse[e[u].align];d=m(d,l),Ti.stringWidth(d)<l&&(d+=" ".repeat((c||0)-Ti.stringWidth(d)-1))}let p=e[u].padding||[0,0,0,0];p[dg]&&(s+=" ".repeat(p[dg])),s+=PO(e[u],d,"| "),s+=d,s+=PO(e[u],d," |"),p[fg]&&(s+=" ".repeat(p[fg])),i===0&&r.length>0&&(s=this.renderInline(s,r[r.length-1]))}),r.push({text:s.replace(/ +$/,""),span:e.span})}),r}renderInline(e,r){let n=e.match(/^ */),i=n?n[0].length:0,s=r.text,a=Ti.stringWidth(s.trimRight());return r.span?this.wrap?i<a?e:(r.hidden=!0,s.trimRight()+" ".repeat(i-a)+e.trimLeft()):(r.hidden=!0,s+e):e}rasterize(e){let r=[],n=this.columnWidths(e),i;return e.forEach((s,a)=>{s.width=n[a],this.wrap?i=Ti.wrap(s.text,this.negatePadding(s),{hard:!0}).split(`
|
|
599
599
|
`):i=s.text.split(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "likec4",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://likec4.dev",
|
|
6
6
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"package.json",
|
|
18
18
|
"LICENSE",
|
|
19
19
|
"README.md",
|
|
20
|
-
"bin
|
|
21
|
-
"dist
|
|
20
|
+
"bin",
|
|
21
|
+
"dist",
|
|
22
22
|
"!**/*.d.ts",
|
|
23
23
|
"!**/*.map",
|
|
24
24
|
"!**/metafile.json"
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"vite": "^5.2.6"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@nanostores/react": "^0.7.2",
|
|
62
61
|
"@fontsource/ibm-plex-sans": "^5.0.19",
|
|
63
62
|
"@likec4/core": "1.0.0-next.2",
|
|
64
63
|
"@likec4/diagram": "1.0.0-next.2",
|
|
@@ -68,6 +67,7 @@
|
|
|
68
67
|
"@likec4/layouts": "1.0.0-next.2",
|
|
69
68
|
"@mantine/core": "^7.7.0",
|
|
70
69
|
"@mantine/hooks": "^7.7.0",
|
|
70
|
+
"@nanostores/react": "^0.7.2",
|
|
71
71
|
"@radix-ui/react-icons": "^1.3.0",
|
|
72
72
|
"@radix-ui/themes": "^2.0.3",
|
|
73
73
|
"@react-hookz/web": "^24.0.4",
|
|
@@ -101,7 +101,9 @@
|
|
|
101
101
|
"postcss-preset-mantine": "^1.13.0",
|
|
102
102
|
"pretty-ms": "^8.0.0",
|
|
103
103
|
"prop-types": "^15.8.1",
|
|
104
|
+
"react": "^18.2.0",
|
|
104
105
|
"react-accessible-treeview": "^2.8.3",
|
|
106
|
+
"react-dom": "^18.2.0",
|
|
105
107
|
"react-resizable-panels": "^2.0.12",
|
|
106
108
|
"remeda": "^1.56.0",
|
|
107
109
|
"strip-indent": "^4.0.0",
|