vendor: 6,710 bytes, lines 1-9
1import{g as G}from"./HeNhjMI6.js";import{r as P,l as ue,V as ee,A as pe,x as fe,e as ce,o as ge,h as me,N as we,Q as ve}from"#entry";/*! 2 * SplitText 3.14.2 3 * https://gsap.com 4 * 5 * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. 6 * @author: Jack Doyle 7 */let H,j,te=typeof Symbol=="function"?Symbol():"_split",K,ye=()=>K||Q.register(window.gsap),ie=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter:0,V=e=>typeof e=="string"?V(document.querySelectorAll(e)):"length"in e?Array.from(e).reduce((t,i)=>(typeof i=="string"?t.push(...V(i)):t.push(i),t),[]):[e],se=e=>V(e).filter(t=>t instanceof HTMLElement),X=[],J=function(){},be={add:e=>e()},Se=/\s+/g,re=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),U={left:0,top:0,width:0,height:0},xe=(e,t)=>{for(;++t<e.length&&e[t]===U;);return e[t]||U},ne=({element:e,html:t,ariaL:i,ariaH:s})=>{e.innerHTML=t,i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label"),s?e.setAttribute("aria-hidden",s):e.removeAttribute("aria-hidden")},le=(e,t)=>{if(t){let i=new Set(e.join("").match(t)||X),s=e.length,d,h,r,l;if(i.size)for(;--s>-1;){h=e[s];for(r of i)if(r.startsWith(h)&&r.length>h.length){for(d=0,l=h;r.startsWith(l+=e[s+ ++d])&&l.length<r.length;);if(d&&l.length===r.length){e[s]=r,e.splice(s+1,d);break}}}}return e},ae=e=>window.getComputedStyle(e).display==="inline"&&(e.style.display="inline-block"),M=(e,t,i)=>t.insertBefore(typeof e=="string"?document.createTextNode(e):e,i),Y=(e,t,i)=>{let s=t[e+"sClass"]||"",{tag:d="div",aria:h="auto",propIndex:r=!1}=t,l=e==="line"?"block":"inline-block",a=s.indexOf("++")>-1,b=m=>{let u=document.createElement(d),y=i.length+1;return s&&(u.className=s+(a?" "+s+y:"")),r&&u.style.setProperty("--"+e,y+""),h!=="none"&&u.setAttribute("aria-hidden","true"),d!=="span"&&(u.style.position="relative",u.style.display=l),u.textContent=m,i.push(u),u};return a&&(s=s.replace("++","")),b.collection=i,b},_e=(e,t,i,s)=>{let d=Y("line",i,s),h=window.getComputedStyle(e).textAlign||"left";return(r,l)=>{let a=d("");for(a.style.textAlign=h,e.insertBefore(a,t[r]);r<l;r++)a.appendChild(t[r]);a.normalize()}},oe=(e,t,i,s,d,h,r,l,a,b)=>{var m;let u=Array.from(e.childNodes),y=0,{wordDelimiter:B,reduceWhiteSpace:A=!0,prepareText:$}=t,q=e.getBoundingClientRect(),k=q,D=!A&&window.getComputedStyle(e).whiteSpace.substring(0,3)==="pre",C=0,S=i.collection,o,g,I,n,w,x,O,p,f,W,E,N,T,R,v,c,L,_;for(typeof B=="object"?(I=B.delimiter||B,g=B.replaceWith||""):g=B===""?"":B||" ",o=g!==" ";y<u.length;y++)if(n=u[y],n.nodeType===3){for(v=n.textContent||"",A?v=v.replace(Se," "):D&&(v=v.replace(/\n/g,g+` 8`)),$&&(v=$(v,e)),n.textContent=v,w=g||I?v.split(I||g):v.match(l)||X,L=w[w.length-1],p=o?L.slice(-1)===" ":!L,L||w.pop(),k=q,O=o?w[0].charAt(0)===" ":!w[0],O&&M(" ",e,n),w[0]||w.shift(),le(w,a),h&&b||(n.textContent=""),f=1;f<=w.length;f++)if(c=w[f-1],!A&&D&&c.charAt(0)===` 9`&&((m=n.previousSibling)==null||m.remove(),M(document.createElement("br"),e,n),c=c.slice(1)),!A&&c==="")M(g,e,n);else if(c===" ")e.insertBefore(document.createTextNode(" "),n);else{if(o&&c.charAt(0)===" "&&M(" ",e,n),C&&f===1&&!O&&S.indexOf(C.parentNode)>-1?(x=S[S.length-1],x.appendChild(document.createTextNode(s?"":c))):(x=i(s?"":c),M(x,e,n),C&&f===1&&!O&&x.insertBefore(C,x.firstChild)),s)for(E=ie?le([...ie.segment(c)].map(z=>z.segment),a):c.match(l)||X,_=0;_<E.length;_++)x.appendChild(E[_]===" "?document.createTextNode(" "):s(E[_]));if(h&&b){if(v=n.textContent=v.substring(c.length+1,v.length),W=x.getBoundingClientRect(),W.top>k.top&&W.left<=k.left){for(N=e.cloneNode(),T=e.childNodes[0];T&&T!==x;)R=T,T=T.nextSibling,N.appendChild(R);e.parentNode.insertBefore(N,e),d&&ae(N)}k=W}(f<w.length||p)&&M(f>=w.length?" ":o&&c.slice(-1)===" "?" "+g:g,e,n)}e.removeChild(n),C=0}else n.nodeType===1&&(r&&r.indexOf(n)>-1?(S.indexOf(n.previousSibling)>-1&&S[S.length-1].appendChild(n),C=n):(oe(n,t,i,s,d,h,r,l,a,!0),C=0),d&&ae(n))};const de=class he{constructor(t,i){this.isSplit=!1,ye(),this.elements=se(t),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=i,this.elements.forEach(r=>{var l;i.overwrite!==!1&&((l=r[te])==null||l._data.orig.filter(({element:a})=>a===r).forEach(ne)),r[te]=this}),this._split=()=>this.isSplit&&this.split(this.vars);let s=[],d,h=()=>{let r=s.length,l;for(;r--;){l=s[r];let a=l.element.offsetWidth;if(a!==l.width){l.width=a,this._split();return}}};this._data={orig:s,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(d),d=setTimeout(h,200)})},J(this),this.split(i)}split(t){return(this._ctx||be).add(()=>{this.isSplit&&this.revert(),this.vars=t=t||this.vars||{};let{type:i="chars,words,lines",aria:s="auto",deepSlice:d=!0,smartWrap:h,onSplit:r,autoSplit:l=!1,specialChars:a,mask:b}=this.vars,m=i.indexOf("lines")>-1,u=i.indexOf("chars")>-1,y=i.indexOf("words")>-1,B=u&&!y&&!m,A=a&&("push"in a?new RegExp("(?:"+a.join("|")+")","gu"):a),$=A?new RegExp(A.source+"|"+re.source,"gu"):re,q=!!t.ignore&&se(t.ignore),{orig:k,animTime:D,obs:C}=this._data,S;(u||y||m)&&(this.elements.forEach((o,g)=>{k[g]={element:o,html:o.innerHTML,ariaL:o.getAttribute("aria-label"),ariaH:o.getAttribute("aria-hidden")},s==="auto"?o.setAttribute("aria-label",(o.textContent||"").trim()):s==="hidden"&&o.setAttribute("aria-hidden","true");let I=[],n=[],w=[],x=u?Y("char",t,I):null,O=Y("word",t,n),p,f,W,E;if(oe(o,t,O,x,B,d&&(m||B),q,$,A,!1),m){let N=V(o.childNodes),T=_e(o,N,t,w),R,v=[],c=0,L=N.map(F=>F.nodeType===1?F.getBoundingClientRect():U),_=U,z;for(p=0;p<N.length;p++)R=N[p],R.nodeType===1&&(R.nodeName==="BR"?((!p||N[p-1].nodeName!=="BR")&&(v.push(R),T(c,p+1)),c=p+1,_=xe(L,p)):(z=L[p],p&&z.top>_.top&&z.left<_.left+_.width-1&&(T(c,p),c=p),_=z));c<p&&T(c,p),v.forEach(F=>{var Z;return(Z=F.parentNode)==null?void 0:Z.removeChild(F)})}if(!y){for(p=0;p<n.length;p++)if(f=n[p],u||!f.nextSibling||f.nextSibling.nodeType!==3)if(h&&!m){for(W=document.createElement("span"),W.style.whiteSpace="nowrap";f.firstChild;)W.appendChild(f.firstChild);f.replaceWith(W)}else f.replaceWith(...f.childNodes);else E=f.nextSibling,E&&E.nodeType===3&&(E.textContent=(f.textContent||"")+(E.textContent||""),f.remove());n.length=0,o.normalize()}this.lines.push(...w),this.words.push(...n),this.chars.push(...I)}),b&&this[b]&&this.masks.push(...this[b].map(o=>{let g=o.cloneNode();return o.replaceWith(g),g.appendChild(o),o.className&&(g.className=o.className.trim()+"-mask"),g.style.overflow="clip",g}))),this.isSplit=!0,j&&m&&(l?j.addEventListener("loadingdone",this._split):j.status==="loading"&&console.warn("SplitText c
9alled before fonts loaded")),(S=r&&r(this))&&S.totalTime&&(this._data.anim=D?S.totalTime(D):S),m&&l&&this.elements.forEach((o,g)=>{k[g].width=o.offsetWidth,C&&C.observe(o)})}),this}kill(){let{obs:t}=this._data;t&&t.disconnect(),j?.removeEventListener("loadingdone",this._split)}revert(){var t,i;if(this.isSplit){let{orig:s,anim:d}=this._data;this.kill(),s.forEach(ne),this.chars.length=this.words.length=this.lines.length=s.length=this.masks.length=0,this.isSplit=!1,d&&(this._data.animTime=d.totalTime(),d.revert()),(i=(t=this.vars).onRevert)==null||i.call(t,this)}return this}static create(t,i){return new he(t,i)}static register(t){H=H||t||window.gsap,H&&(V=H.utils.toArray,J=H.core.context||J),!K&&window.innerWidth>0&&(j=document.fonts,K=!0)}};de.version="3.14.2";let Q=de;const Ne={__name:"LineByLine",props:{debug:{type:Boolean,default:!1},tag:{type:String,default:"div"},overflow:{type:Boolean,default:!0},auto:{type:Boolean,default:!0},delay:{type:Number,default:0},duration:{type:Number,default:1},stagger:{type:Number,default:.15},animated:{type:Boolean,default:!0},random:{type:Boolean,default:!1},scroll:{type:Boolean,default:!1},threshold:{type:Number,default:.1},margin:{type:String,default:"-20%"}},setup(e){G.registerPlugin(Q);const t=e,i=P(),s=P(),d=P(0),h=P(),r=P(!1),l=P(!1);let a;ue(()=>{document.fonts?.ready&&document.fonts.ready.then(()=>{b()}),window.addEventListener("resize",b),t.animated&&(t.scroll?(a=new IntersectionObserver(u=>{u.forEach(y=>{y.isIntersecting&&(m(),a.disconnect())})},{threshold:t.threshold,rootMargin:`0px 0px ${t.margin} 0px`}),a.observe(h.value)):t.auto&&m())});const b=async()=>{ee.windowWidth!==d.value&&(d.value=ee.windowWidth,h.value.style.height=null,s.value?.revert(),i.value?.revert(),await pe(),i.value=new Q(h.value,{type:"lines",linesClass:"split"}),t.overflow&&(s.value=new Q(h.value,{type:"lines",linesClass:"split-parent"})),r.value=!0,t.animated&&t.auto&&!t.scroll&&m())},m=()=>{if(!(r.value&&!l.value))return;l.value=!0;const u=G.timeline({delay:t.delay}),y=G.utils.selector(h.value);return u.set(h.value,{opacity:1}),u.from([y(".split")],{yPercent:-130,rotate:2,duration:1,stagger:{each:t.stagger,from:t.random?"random":"start"},ease:"power2.out",clearProps:"all"},"start"),u};return fe(()=>{window.removeEventListener("resize",b),a?.disconnect()}),(u,y)=>(ge(),ce(ve(e.tag),{ref_key:"root",ref:h,class:"line-by-line"},{default:me(()=>[we(u.$slots,"default")]),_:3},512))}};export{Ne 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.