import{d as h,c as g,i,o as s,F as y,x as f,s as m,h as x,t as $,y as k}from"./index-DPl1iiyq.js";import{v as B}from"./ReferenceContentLoader-Z8YmHBVJ.js";const p=500,l=100,_=h({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(d){const u=d,t=g(()=>u.art.split(`
`)),v=(n,o)=>{var e,a,r,c;return{animationDuration:`${n*l}ms, ${p}ms`,animationTimingFunction:`steps(${n}), step-end`,animationDelay:`${o*l}ms, 0ms`,animationIterationCount:`1, ${((((e=t.value)==null?void 0:e.length)??0)+(((c=(r=t.value)==null?void 0:r[((a=t.value)==null?void 0:a.length)-1])==null?void 0:c.length)??0)+5)*l/p}`}};return(n,o)=>(s(),i("div",{"aria-hidden":"true",class:k(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":n.animate}]),role:"presentation",inert:""},[(s(!0),i(y,null,f(t.value,(e,a)=>(s(),i("span",{key:a,class:"inline-block",style:m({width:`calc(${e.length+1}ch)`})},[x("span",{class:"inline-block whitespace-pre overflow-hidden",style:m(v(e.length,a))},$(e),5)],4))),128))],2))}}),C=B(_,[["__scopeId","data-v-69ebd973"]]);export{C as i};
