1import{s as _,e as M,g as P}from"./CVyEAJON.js";var m,u,b=function(){return m||typeof window<"u"&&(m=window.gsap)&&m.registerPlugin&&m},w={version:"3.14.2",name:"text",init:function(n,e,d){typeof e!="object"&&(e={value:e});var i=n.nodeName.toUpperCase(),s=this,a=e,t=a.newClass,h=a.oldClass,C=a.preserveSpaces,o=a.rtl,c=s.delimiter=e.delimiter||"",x=s.fillChar=e.fillChar||(e.padSpace?" ":""),p,l,r,f,S,j,g,T;if(s.svg=n.getBBox&&(i==="TEXT"||i==="TSPAN"),!("innerHTML"in n)&&!s.svg)return!1;if(s.target=n,!("value"in e)){s.text=s.original=[""];return}for(r=_(n,c,!1,C,s.svg),u||(u=document.createElement("div")),u.innerHTML=e.value,l=_(u,c,!1,C,s.svg),s.from=d._from,(s.from||o)&&!(o&&s.from)&&(i=r,r=l,l=i),s.hasClass=!!(t||h),s.newClass=o?h:t,s.oldClass=o?t:h,i=r.length-l.length,p=i<0?r:l,i<0&&(i=-i);--i>-1;)p.push(x);if(e.type==="diff"){for(f=0,S=[],j=[],g="",i=0;i<l.length;i++)T=l[i],T===r[i]?g+=T:(S[f]=g+T,j[f++]=g+r[i],g="");l=S,r=j,g&&(l.push(g),r.push(g))}e.speed&&d.duration(Math.min(.05/e.speed*p.length,e.maxDuration||9999)),s.rtl=o,s.original=r,s.text=l,s._props.push("text")},render:function(n,e){n>1?n=1:n<0&&(n=0),e.from&&(n=1-n);var d=e.text,i=e.hasClass,s=e.newClass,a=e.oldClass,t=e.delimiter,h=e.target,C=e.fillChar,o=e.original,c=e.rtl,x=d.length,p=(c?1-n:n)*x+.5|0,l,r,f;i&&n?(l=s&&p,r=a&&p!==x,f=(l?"<span class='"+s+"'>":"")+d.slice(0,p).join(t)+(l?"</span>":"")+(r?"<span class='"+a+"'>":"")+t+o.slice(p).join(t)+(r?"</span>":"")):f=d.slice(0,p).join(t)+t+o.slice(p).join(t),e.svg?h.textContent=f:h.innerHTML=C===" "&&~f.indexOf(" ")?f.split(" ").join(" "):f}};w.splitInnerHTML=_;w.emojiSafeSplit=M;w.getText=P;b()&&m.registerPlugin(w);export{w as TextPlugin,w as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.