import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{n as t,r as n}from"./chunk-AGHRB4JF-D33xM56t.js";import{b as r,k as i}from"./chunk-ABZYJK2D-C7_WFFRt.js";var a,o,s,c,l,u,d,f=e((()=>{i(),n(),a=t(e=>{let{handDrawnSeed:t}=r();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},`solidStateFill`),o=t(e=>{let t=s([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),s=t(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),c=t(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),l=t(e=>{let{stylesArray:t}=o(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];c(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),u=t((e,t)=>{let{themeVariables:n,handDrawnSeed:i}=r(),{nodeBorder:a,mainBkg:s}=n,{stylesMap:c}=o(e);return Object.assign({roughness:.7,fill:c.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:c.get(`stroke`)||a,seed:i,strokeWidth:c.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:d(c.get(`stroke-dasharray`))},t)},`userNodeOverrides`),d=t(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)}));export{l as a,a as i,f as n,u as o,c as r,o as t};
//# sourceMappingURL=chunk-ATLVNIR6-Dsj5_EhJ.js.map