hypnagaga/packages/graphics-components/docs/assets/html-CPeakWmR.js

1 line
461 B
JavaScript

import{J as _,K as d,L as m,M as r}from"./runtime-C3rQLW--.js";import{b as c,d as h}from"./props-b4vEeO_8.js";function g(i,l,s=!1,n=!1,v=!1){var o=i,f="";_(()=>{var a=d;if(f!==(f=l()??"")&&(a.nodes_start!==null&&(m(a.nodes_start,a.nodes_end),a.nodes_start=a.nodes_end=null),f!=="")){var t=f+"";s?t=`<svg>${t}</svg>`:n&&(t=`<math>${t}</math>`);var e=c(t);if((s||n)&&(e=r(e)),h(r(e),e.lastChild),s||n)for(;r(e);)o.before(r(e));else o.before(e)}})}export{g as h};