msdfgen-ts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +85 -0
- package/dist/atlas-worker.js +2142 -0
- package/dist/msdfgen-ts.iife.js +2 -0
- package/dist/msdfgen-ts.js +2114 -0
- package/dist/types/atlas-gen.d.ts +165 -0
- package/dist/types/atlas-worker.d.ts +51 -0
- package/dist/types/font/font.d.ts +105 -0
- package/dist/types/font/reader.d.ts +55 -0
- package/dist/types/font/sfnt.d.ts +20 -0
- package/dist/types/font/tables/cmap.d.ts +21 -0
- package/dist/types/font/tables/glyf.d.ts +70 -0
- package/dist/types/font/tables/head.d.ts +30 -0
- package/dist/types/font/tables/hhea.d.ts +30 -0
- package/dist/types/font/tables/hmtx.d.ts +18 -0
- package/dist/types/font/tables/kern.d.ts +17 -0
- package/dist/types/font/tables/loca.d.ts +19 -0
- package/dist/types/font/tables/maxp.d.ts +10 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/math/cubic.d.ts +12 -0
- package/dist/types/math/scalar.d.ts +101 -0
- package/dist/types/msdf/edge-coloring.d.ts +36 -0
- package/dist/types/msdf/error-correction.d.ts +61 -0
- package/dist/types/msdf/generate.d.ts +42 -0
- package/dist/types/msdf/sdf.d.ts +53 -0
- package/dist/types/shape/contour.d.ts +7 -0
- package/dist/types/shape/normalize.d.ts +38 -0
- package/dist/types/shape/scanline.d.ts +75 -0
- package/dist/types/shape/segments.d.ts +148 -0
- package/dist/types/shape/shape.d.ts +12 -0
- package/package.json +100 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var MsdfgenTs=(function(At){"use strict";function so(e,n,t,s){return e*t+n*s}function J(e,n,t,s){return e*s-n*t}function oo(e,n,t){return(1-t)*e+t*n}function rt(e){return+(e>0)-+(e<0)}function Et(e){return 2*+(e>0)-1}function Zn(e,n,t,s){if(n===0||Math.abs(t)>1e12*Math.abs(n))return t===0?s===0?-1:0:(e[0]=-s/t,1);const i=t*t-4*n*s;if(i>0){const o=Math.sqrt(i);return e[0]=(-t+o)/(2*n),e[1]=(-t-o)/(2*n),2}else if(i===0)return e[0]=-t/(2*n),1;return 0}function io(e,n,t,s){const i=n*n,o=1/9*(i-3*t),l=1/54*(n*(2*i-9*t)+27*s),c=l*l,r=o*o*o,h=n*(1/3);if(c<r){let p=l/Math.sqrt(r);p<-1&&(p=-1),p>1&&(p=1),p=Math.acos(p);const a=-2*Math.sqrt(o);return e[0]=a*Math.cos(.3333333333333333*p)-h,e[1]=a*Math.cos(.3333333333333333*(p+2*Math.PI))-h,e[2]=a*Math.cos(.3333333333333333*(p-2*Math.PI))-h,3}else{const p=(l<0?1:-1)*Math.pow(Math.abs(l)+Math.sqrt(c-r),.3333333333333333),a=p===0?0:o/p;return e[0]=p+a-h,p===a||Math.abs(p-a)<1e-12*Math.abs(p+a)?(e[1]=-.5*(p+a)-h,2):1}}function eo(e,n,t,s,i){if(n!==0){const o=t/n;if(Math.abs(o)<1e6)return io(e,o,s/n,i/n)}return Zn(e,t,s,i)}const co=24;function St(e,n,t,s){return((s+e)*s+n)*s+t}function ro(e,n,t,s,i,o,l){const c=o<0;let r=s-o*(i-s)/(l-o);r>s&&r<i||(r=.5*(s+i));for(let h=0;h<co;h++){const p=St(e,n,t,r);if(p===0)return r;p<0===c?s=r:i=r;const a=(3*r+2*e)*r+n;let f=r-p/a;f>s&&f<i||(f=.5*(s+i));const y=f-r;if(r=f,(y<0?-y:y)<=1e-15*(r<0?-r:r))break}return r}function Ut(e,n,t,s,i,o,l,c,r){return o===0?c[r++]=s:o<0!=l<0&&(c[r++]=ro(e,n,t,s,i,o,l)),r}function ao(e,n,t,s,i,o){let l=0;if(e===0){if(n===0)return 0;const f=-t/n;return f>=s&&f<=i&&(o[l++]=f),l}const c=n*n-4*e*t;if(c<0)return 0;const r=Math.sqrt(c),h=-.5*(n+(n<0?-r:r));let p,a;if(h===0)p=0,a=0;else if(p=h/e,a=t/h,p>a){const f=p;p=a,a=f}return p>=s&&p<=i&&(o[l++]=p),a!==p&&a>=s&&a<=i&&(o[l++]=a),l}function ho(e,n,t,s,i,o,l){if(e===0)return ao(n,t,s,i,o,l);const c=1/e;n*=c,t*=c,s*=c;const r=St(n,t,s,i),h=St(n,t,s,o),p=n*n-3*t;let a=0;if(p<=0)a=Ut(n,t,s,i,o,r,h,l,0);else{const f=Math.sqrt(p)/3,y=-n/3,_=y-f,u=y+f;let x=i,M=r;if(_>i&&_<o){const w=St(n,t,s,_);a=Ut(n,t,s,x,_,M,w,l,a),x=_,M=w}if(u>i&&u<o){const w=St(n,t,s,u);a=Ut(n,t,s,x,u,M,w,l,a),x=u,M=w}a=Ut(n,t,s,x,o,M,h,l,a)}return h===0&&(l[a++]=o),a}const ot=0,tt=1,It=2,jn=4,lo=4,U=[0,0,0];class nt{constructor(n,t,s,i,o,l,c,r,h){this.type=n,this.p0x=t,this.p0y=s,this.p1x=i,this.p1y=o,this.p2x=l,this.p2y=c,this.p3x=r,this.p3y=h,this.color=7}endX(){switch(this.type){case ot:return this.p1x;case tt:return this.p2x;default:return this.p3x}}endY(){switch(this.type){case ot:return this.p1y;case tt:return this.p2y;default:return this.p3y}}point(n,t){const s=n;switch(this.type){case ot:{t[0]=this.p0x+s*(this.p1x-this.p0x),t[1]=this.p0y+s*(this.p1y-this.p0y);return}case tt:{const i=this.p0x+s*(this.p1x-this.p0x),o=this.p0y+s*(this.p1y-this.p0y),l=this.p1x+s*(this.p2x-this.p1x),c=this.p1y+s*(this.p2y-this.p1y);t[0]=i+s*(l-i),t[1]=o+s*(c-o);return}default:{const i=this.p0x+s*(this.p1x-this.p0x),o=this.p0y+s*(this.p1y-this.p0y),l=this.p1x+s*(this.p2x-this.p1x),c=this.p1y+s*(this.p2y-this.p1y),r=this.p2x+s*(this.p3x-this.p2x),h=this.p2y+s*(this.p3y-this.p2y),p=i+s*(l-i),a=o+s*(c-o),f=l+s*(r-l),y=c+s*(h-c);t[0]=p+s*(f-p),t[1]=a+s*(y-a);return}}}direction(n,t){const s=n;switch(this.type){case ot:{t[0]=this.p1x-this.p0x,t[1]=this.p1y-this.p0y;return}case tt:{const i=this.p1x-this.p0x+s*(this.p2x-this.p1x-(this.p1x-this.p0x)),o=this.p1y-this.p0y+s*(this.p2y-this.p1y-(this.p1y-this.p0y));i!==0||o!==0?(t[0]=i,t[1]=o):(t[0]=this.p2x-this.p0x,t[1]=this.p2y-this.p0y);return}default:{const i=this.p1x-this.p0x,o=this.p1y-this.p0y,l=this.p2x-this.p1x,c=this.p2y-this.p1y,r=this.p3x-this.p2x,h=this.p3y-this.p2y,p=i+s*(l-i)+s*(l+s*(r-l)-(i+s*(l-i))),a=o+s*(c-o)+s*(c+s*(h-c)-(o+s*(c-o)));p!==0||a!==0?(t[0]=p,t[1]=a):s===0?(t[0]=this.p2x-this.p0x,t[1]=this.p2y-this.p0y):s===1?(t[0]=this.p3x-this.p1x,t[1]=this.p3y-this.p1y):(t[0]=p,t[1]=a);return}}}splitInThirds(){const n=[0,0],t=[0,0];switch(this.type){case ot:{this.point(.3333333333333333,n),this.point(.6666666666666666,t);const s=new nt(ot,this.p0x,this.p0y,n[0],n[1],0,0,0,0),i=new nt(ot,n[0],n[1],t[0],t[1],0,0,0,0),o=new nt(ot,t[0],t[1],this.p1x,this.p1y,0,0,0,0);return s.color=i.color=o.color=this.color,[s,i,o]}case tt:{this.point(.3333333333333333,n),this.point(.6666666666666666,t);const s=this.p0x+1/3*(this.p1x-this.p0x),i=this.p0y+1/3*(this.p1y-this.p0y),o=this.p0x+5/9*(this.p1x-this.p0x),l=this.p0y+5/9*(this.p1y-this.p0y),c=this.p1x+4/9*(this.p2x-this.p1x),r=this.p1y+4/9*(this.p2y-this.p1y),h=o+.5*(c-o),p=l+.5*(r-l),a=this.p1x+2/3*(this.p2x-this.p1x),f=this.p1y+2/3*(this.p2y-this.p1y),y=new nt(tt,this.p0x,this.p0y,s,i,n[0],n[1],0,0),_=new nt(tt,n[0],n[1],h,p,t[0],t[1],0,0),u=new nt(tt,t[0],t[1],a,f,this.p2x,this.p2y,0,0);return y.color=_.color=u.color=this.color,[y,_,u]}default:{this.point(.3333333333333333,n),this.point(.6666666666666666,t);const s=this.p0x===this.p1x&&this.p0y===this.p1y?this.p0x:this.p0x+1/3*(this.p1x-this.p0x),i=this.p0x===this.p1x&&this.p0y===this.p1y?this.p0y:this.p0y+1/3*(this.p1y-this.p0y),o=this.p0x+1/3*(this.p1x-this.p0x),l=this.p0y+1/3*(this.p1y-this.p0y),c=this.p1x+1/3*(this.p2x-this.p1x),r=this.p1y+1/3*(this.p2y-this.p1y),h=this.p2x+1/3*(this.p3x-this.p2x),p=this.p2y+1/3*(this.p3y-this.p2y),a=o+1/3*(c-o),f=l+1/3*(r-l),y=c+1/3*(h-c),_=r+1/3*(p-r),u=a+2/3*(y-a),x=f+2/3*(_-f),M=this.p0x+2/3*(this.p1x-this.p0x),w=this.p0y+2/3*(this.p1y-this.p0y),v=this.p1x+2/3*(this.p2x-this.p1x),C=this.p1y+2/3*(this.p2y-this.p1y),A=this.p2x+2/3*(this.p3x-this.p2x),D=this.p2y+2/3*(this.p3y-this.p2y),I=M+2/3*(v-M),L=w+2/3*(C-w),m=v+2/3*(A-v),b=C+2/3*(D-C),N=I+1/3*(m-I),R=L+1/3*(b-L),q=this.p2x===this.p3x&&this.p2y===this.p3y?this.p3x:this.p2x+2/3*(this.p3x-this.p2x),P=this.p2x===this.p3x&&this.p2y===this.p3y?this.p3y:this.p2y+2/3*(this.p3y-this.p2y),X=new nt(It,this.p0x,this.p0y,s,i,a,f,n[0],n[1]),$=new nt(It,n[0],n[1],u,x,N,R,t[0],t[1]),V=new nt(It,t[0],t[1],m,b,q,P,this.p3x,this.p3y);return X.color=$.color=V.color=this.color,[X,$,V]}}}signedDistance(n,t,s){switch(this.type){case ot:{const i=this.p0x,o=this.p0y,l=this.p1x,c=this.p1y,r=n-i,h=t-o,p=l-i,a=c-o,f=p*p+a*a,y=(r*p+h*a)/f,_=y>.5,u=(_?l:i)-n,x=(_?c:o)-t,M=Math.sqrt(u*u+x*x);if(y>0&&y<1){const C=Math.sqrt(p*p+a*a),A=p/C,I=a/C*r-A*h;if(Math.abs(I)<M){s.distance=I,s.dot=0,s.param=y;return}}const w=r*a-h*p;s.distance=Et(w)*M;const v=Math.sqrt(p*p+a*a);s.dot=M===0||v===0?0:Math.abs((p*u+a*x)/(v*M)),s.param=y;return}case tt:{const i=this.p0x,o=this.p0y,l=this.p1x,c=this.p1y,r=this.p2x,h=this.p2y,p=i-n,a=o-t,f=l-i,y=c-o,_=r-l-f,u=h-c-y,x=_*_+u*u,M=3*(f*_+y*u),w=2*(f*f+y*y)+(p*_+a*u),v=p*f+a*y,C=ho(x,M,w,v,0,1,U);let A=f,D=y;const I=p*p+a*a;let L=Et(A*a-D*p),m=I,b=-(p*A+a*D)/(A*A+D*D);{const R=r-n,q=h-t,P=R*R+q*q;P<m&&(A=r-l,D=h-c,L=Et(A*q-D*R),m=P,b=((n-l)*A+(t-c)*D)/(A*A+D*D))}for(let R=0;R<C;++R){const q=U[R];if(q>0&&q<1){const P=p+2*q*f+q*q*_,X=a+2*q*y+q*q*u,$=P*P+X*X;if($<=m){const V=f+q*_,et=y+q*u;L=Et(V*X-et*P),m=$,b=q}}}const N=L*Math.sqrt(m);if(b>=0&&b<=1){s.distance=N,s.dot=0,s.param=b;return}if(s.distance=N,s.param=b,b<.5){const R=Math.sqrt(f*f+y*y),q=Math.sqrt(I);s.dot=q===0||R===0?0:Math.abs((f*p+y*a)/(R*q))}else{const R=r-l,q=h-c,P=r-n,X=h-t,$=Math.sqrt(R*R+q*q),V=Math.sqrt(P*P+X*X);s.dot=$===0||V===0?0:Math.abs((R*P+q*X)/($*V))}return}default:{const i=this.p0x,o=this.p0y,l=this.p1x,c=this.p1y,r=this.p2x,h=this.p2y,p=this.p3x,a=this.p3y,f=i-n,y=o-t,_=l-i,u=c-o,x=r-l-_,M=h-c-u,w=p-r-(r-l)-x,v=a-h-(h-c)-M;let C=_,A=u;C===0&&A===0&&(C=r-i,A=h-o);const D=Math.sqrt(f*f+y*y);let I=Et(C*y-A*f)*D,L=-(f*C+y*A)/(C*C+A*A);{const m=p-n,b=a-t,N=Math.sqrt(m*m+b*b);if(N<Math.abs(I)){let R=p-r,q=a-h;R===0&&q===0&&(R=p-l,q=a-c),C=R,A=q,I=Et(C*b-A*m)*N,L=((C-m)*C+(A-b)*A)/(C*C+A*A)}}for(let m=0;m<=jn;++m){let b=1/jn*m,N=f+3*b*_+3*b*b*x+b*b*b*w,R=y+3*b*u+3*b*b*M+b*b*b*v,q=3*_+6*b*x+3*b*b*w,P=3*u+6*b*M+3*b*b*v,X=6*x+6*b*w,$=6*M+6*b*v,V=b-(N*q+R*P)/(q*q+P*P+(N*X+R*$));if(V>0&&V<1){let et=lo;do{if(b=V,N=f+3*b*_+3*b*b*x+b*b*b*w,R=y+3*b*u+3*b*b*M+b*b*b*v,q=3*_+6*b*x+3*b*b*w,P=3*u+6*b*M+3*b*b*v,!--et)break;X=6*x+6*b*w,$=6*M+6*b*v,V=b-(N*q+R*P)/(q*q+P*P+(N*X+R*$))}while(V>0&&V<1);const H=Math.sqrt(N*N+R*R);H<Math.abs(I)&&(I=Et(q*R-P*N)*H,L=b)}}if(L>=0&&L<=1){s.distance=I,s.dot=0,s.param=L;return}if(s.distance=I,s.param=L,L<.5){let m=_,b=u;m===0&&b===0&&(m=r-i,b=h-o);const N=Math.sqrt(m*m+b*b);s.dot=D===0||N===0?0:Math.abs((m*f+b*y)/(N*D))}else{let m=p-r,b=a-h;m===0&&b===0&&(m=p-l,b=a-c);const N=p-n,R=a-t,q=Math.sqrt(m*m+b*b),P=Math.sqrt(N*N+R*R);s.dot=q===0||P===0?0:Math.abs((m*N+b*R)/(q*P))}return}}}scanlineIntersections(n,t,s){switch(this.type){case ot:{const i=this.p0y,o=this.p1y;if(n>=i&&n<o||n>=o&&n<i){const l=(n-i)/(o-i);return t[0]=oo(this.p0x,this.p1x,l),s[0]=rt(o-i),1}return 0}case tt:{const i=this.p0x,o=this.p0y,l=this.p1x,c=this.p1y,r=this.p2x,h=this.p2y;let p=0,a=n>o?1:-1;t[p]=i,o===n&&(o<c||o===c&&o<h?s[p++]=1:a=1);{const f=l-i,y=c-o,_=r-l-f,u=h-c-y,x=Zn(U,u,2*y,o-n);if(x>=2&&U[0]>U[1]){const M=U[0];U[0]=U[1],U[1]=M}for(let M=0;M<x&&p<2;++M){const w=U[M];w>=0&&w<=1&&(t[p]=i+2*w*f+w*w*_,a*(y+w*u)>=0&&(s[p++]=a,a=-a))}}return h===n&&(a>0&&p>0&&(--p,a=-1),(h<c||h===c&&h<o)&&p<2&&(t[p]=r,a<0&&(s[p++]=-1,a=1))),a!==(n>=h?1:-1)&&(p>0?--p:(Math.abs(h-n)<Math.abs(o-n)&&(t[p]=r),s[p++]=a)),p}default:{const i=this.p0x,o=this.p0y,l=this.p1x,c=this.p1y,r=this.p2x,h=this.p2y,p=this.p3x,a=this.p3y;let f=0,y=n>o?1:-1;t[f]=i,o===n&&(o<c||o===c&&(o<h||o===h&&o<a)?s[f++]=1:y=1);{const _=p-3*r+3*l-i,u=a-3*h+3*c-o,x=3*r-6*l+3*i,M=3*h-6*c+3*o,w=3*l-3*i,v=3*c-3*o,C=eo(U,u,M,v,o-n);if(C>=2){if(U[0]>U[1]){const A=U[0];U[0]=U[1],U[1]=A}if(C>=3&&U[1]>U[2]){const A=U[1];if(U[1]=U[2],U[2]=A,U[0]>U[1]){const D=U[0];U[0]=U[1],U[1]=D}}}for(let A=0;A<C&&f<3;++A){const D=U[A];D>=0&&D<=1&&(t[f]=((_*D+x)*D+w)*D+i,y*((3*u*D+2*M)*D+v)>=0&&(s[f++]=y,y=-y))}}return a===n&&(y>0&&f>0&&(--f,y=-1),(a<h||a===h&&(a<c||a===c&&a<o))&&f<3&&(t[f]=p,y<0&&(s[f++]=-1,y=1))),y!==(n>=a?1:-1)&&(f>0?--f:(Math.abs(a-n)<Math.abs(o-n)&&(t[f]=p),s[f++]=y)),f}}}convertToCubic(){const n=this.p0x+.6666666666666666*(this.p1x-this.p0x),t=this.p0y+2/3*(this.p1y-this.p0y),s=this.p1x+1/3*(this.p2x-this.p1x),i=this.p1y+1/3*(this.p2y-this.p1y),o=new nt(It,this.p0x,this.p0y,n,t,s,i,this.p2x,this.p2y);return o.color=this.color,o}}class ut{constructor(n,t=0){this._view=new DataView(n),this._pos=t}get pos(){return this._pos}seek(n){this._pos=n}skip(n){this._pos+=n}u8(){return this._view.getUint8(this._pos++)}u16(){const n=this._view.getUint16(this._pos,!1);return this._pos+=2,n}i16(){const n=this._view.getInt16(this._pos,!1);return this._pos+=2,n}u32(){const n=this._view.getUint32(this._pos,!1);return this._pos+=4,n}i32(){const n=this._view.getInt32(this._pos,!1);return this._pos+=4,n}f2dot14(){return this.i16()/16384}offset16(){return this.u16()}offset32(){return this.u32()}peekU16(n){return this._view.getUint16(n,!1)}peekU32(n){return this._view.getUint32(n,!1)}peekI16(n){return this._view.getInt16(n,!1)}}function po(e,n){const t=new ut(e,n);t.skip(2);const s=t.u16();let i=null;for(let l=0;l<s;l++){const c=t.u16(),r=t.u16(),h=t.u32(),p=n+h,a=t.peekU16(p);let f=-1;c===3&&r===10&&a===12?f=5:c===0&&r===6&&a===12?f=4:c===0&&r===4&&a===12?f=3:c===3&&r===1&&a===4?f=2:c===0&&r<=3&&a===4&&(f=1),f>((i==null?void 0:i.priority)??-1)&&(i={priority:f,subtableAbsOffset:p})}if(!i)return()=>0;const o=t.peekU16(i.subtableAbsOffset);return o===12?fo(e,i.subtableAbsOffset):o===4?yo(e,i.subtableAbsOffset):()=>0}function fo(e,n){const t=new ut(e,n);t.skip(2),t.skip(2),t.skip(4),t.skip(4);const s=t.u32(),i=new Uint32Array(s),o=new Uint32Array(s),l=new Uint32Array(s);for(let c=0;c<s;c++)i[c]=t.u32(),o[c]=t.u32(),l[c]=t.u32();return c=>{let r=0,h=s-1;for(;r<=h;){const p=r+h>>>1,a=i[p]??0,f=o[p]??0;if(c<a)h=p-1;else if(c>f)r=p+1;else return(l[p]??0)+(c-a)}return 0}}function yo(e,n){const t=new ut(e,n);t.skip(2),t.skip(2),t.skip(2);const i=t.u16()>>>1;t.skip(6);const o=new Uint16Array(i);for(let a=0;a<i;a++)o[a]=t.u16();t.skip(2);const l=new Uint16Array(i);for(let a=0;a<i;a++)l[a]=t.u16();const c=new Int16Array(i);for(let a=0;a<i;a++)c[a]=t.i16();const r=new Int32Array(i),h=new Uint16Array(i);for(let a=0;a<i;a++)r[a]=t.pos,h[a]=t.u16();const p=new DataView(e);return a=>{if(a>65535)return 0;let f=0,y=i-1;for(;f<=y;){const _=f+y>>>1,u=o[_]??0;if(a>u)f=_+1;else if(a<(l[_]??0))y=_-1;else{if((o[_]??0)===65535)return 0;const M=h[_]??0,w=c[_]??0,v=l[_]??0;if(M===0)return a+w&65535;const C=(r[_]??0)+M+(a-v)*2,A=p.getUint16(C,!1);return A===0?0:A+w&65535}}return 0}}function uo(e,n){const t=new ut(e,n);t.skip(4),t.skip(4),t.skip(4),t.skip(4),t.skip(2);const s=t.u16();t.skip(16),t.skip(8),t.skip(2),t.skip(2),t.skip(2);const i=t.i16();return{unitsPerEm:s,indexToLocFormat:i}}function _o(e,n){const t=new ut(e,n);t.skip(4);const s=t.i16(),i=t.i16(),o=t.i16();t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(8),t.skip(2);const l=t.u16();return{ascender:s,descender:i,lineGap:o,numberOfHMetrics:l}}function xo(e,n,t,s){const i=new ut(e,n),o=new Array(t);let l=0;for(let c=0;c<s;c++){const r=i.u16(),h=i.i16();o[c]={advanceWidth:r,lsb:h},l=r}for(let c=s;c<t;c++){const r=i.i16();o[c]={advanceWidth:l,lsb:r}}return o}function Mo(e,n,t,s){const i=new ut(e,n),o=t+1,l=new Array(o);if(s===0)for(let c=0;c<o;c++)l[c]=i.u16()*2;else for(let c=0;c<o;c++)l[c]=i.u32();return l}function go(e,n){const t=new ut(e,n);return t.skip(4),{numGlyphs:t.u16()}}const bo=1,Ao=2,wo=4,Do=8,Jn=16,ts=32,Eo=1,ns=2,qo=8,vo=32,Co=64,Io=128;function Ro(e,n,t,s,i){const o=ss(e,n,t,s,i),l=[];for(const c of o){const r=Fo(c);r.length>0&&l.push(r)}return{contours:l,inverseYAxis:!1}}function ss(e,n,t,s,i){if(s===0)return[];const o=n+t,l=new ut(e,o),c=l.i16();return l.skip(8),c>=0?To(l,c):ko(e,l,n,i)}function To(e,n){if(n===0)return[];const t=new Array(n);for(let a=0;a<n;a++)t[a]=e.u16();const s=(t[n-1]??0)+1,i=e.u16();e.skip(i);const o=new Uint8Array(s);for(let a=0;a<s;){const f=e.u8();if(o[a++]=f,f&Do){let y=e.u8();for(;y-- >0;)o[a++]=f}}const l=new Float64Array(s);let c=0;for(let a=0;a<s;a++){const f=o[a]??0;if(f&Ao){const y=e.u8();c+=f&Jn?y:-y}else f&Jn||(c+=e.i16());l[a]=c}const r=new Float64Array(s);c=0;for(let a=0;a<s;a++){const f=o[a]??0;if(f&wo){const y=e.u8();c+=f&ts?y:-y}else f&ts||(c+=e.i16());r[a]=c}const h=[];let p=0;for(let a=0;a<n;a++){const f=t[a]??0,y=mo(o,l,r,p,f);y.length>0&&h.push(y),p=f+1}return h}function mo(e,n,t,s,i){const o=i-s+1;if(o<=0)return[];const l=[];for(let c=0;c<o;c++){const r=e[s+c]??0,h=n[s+c]??0,p=t[s+c]??0;l.push({x:h,y:p,onCurve:(r&bo)!==0})}return l}function Fo(e){const n=e.length;if(n<=0)return[];const t=[];for(let c=0;c<n;c++){const r=e[c],h=e[(c+1)%n];t.push(r),!r.onCurve&&!h.onCurve&&t.push({x:Math.trunc((r.x+h.x)/2),y:Math.trunc((r.y+h.y)/2),onCurve:!0})}const s=t.length;let i=0;if(!t[0].onCurve){for(let c=1;c<s;c++)if(t[c].onCurve){i=c;break}}const o=[];let l=0;for(;l<s;){const c=t[(i+l)%s],r=t[(i+l+1)%s];if(r.onCurve)o.push(new nt(ot,c.x,c.y,r.x,r.y,0,0,0,0)),l+=1;else{const h=t[(i+l+2)%s];o.push(new nt(tt,c.x,c.y,r.x,r.y,h.x,h.y,0,0)),l+=2}}return o}function ko(e,n,t,s){const i=[];let o=0;do{o=n.u16();const l=n.u16();let c,r;o&Eo?(c=n.i16(),r=n.i16()):(c=n.u8(),r=n.u8(),o&ns&&(c>127&&(c-=256),r>127&&(r-=256)));let h=0,p=0;o&ns&&(h=c,p=r);let a=1,f=0,y=0,_=1;o&qo?a=_=n.f2dot14():o&Co?(a=n.f2dot14(),_=n.f2dot14()):o&Io&&(a=n.f2dot14(),f=n.f2dot14(),y=n.f2dot14(),_=n.f2dot14());const u=s(l),x=So(u,a,f,y,_,h,p);for(const M of x)i.push(M)}while(o&vo);return i}function os(e){return e>=0?Math.floor(e+.5):Math.ceil(e-.5)}function So(e,n,t,s,i,o,l){if(n===1&&t===0&&s===0&&i===1&&o===0&&l===0)return e;const r=n===1&&t===0&&s===0&&i===1;return e.map(h=>h.map(p=>r?{x:p.x+o,y:p.y+l,onCurve:p.onCurve}:{x:os(n*p.x+t*p.y+o),y:os(s*p.x+i*p.y+l),onCurve:p.onCurve}))}function Lo(e,n){const t=new ut(e,n);if(t.u16()!==0)return is;const i=t.u16(),o=new Map;for(let l=0;l<i;l++){const c=t.pos;t.skip(2);const r=t.u16(),h=t.u16(),p=h>>8&255,a=!(h&2),f=!!(h&4);if(p!==0||!a||f){t.seek(c+r);continue}const y=t.u16();t.skip(6);for(let _=0;_<y;_++){const u=t.u16(),x=t.u16(),M=t.i16(),w=(u&65535)<<16|x&65535;o.set(w,M)}t.seek(c+r)}return o.size===0?is:(l,c)=>{const r=(l&65535)<<16|c&65535;return o.get(r)??0}}const is=()=>0;function Go(e){const n=new ut(e);if(n.u32()===1953784678){if(n.skip(4),n.u32()===0)throw new Error("TTC contains no fonts");const i=n.u32();n.seek(i)}else n.seek(0);return Oo(e,n)}function Oo(e,n){n.skip(4);const t=n.u16();n.skip(6);const s=new Map;for(let i=0;i<t;i++){const o=String.fromCharCode(n.u8(),n.u8(),n.u8(),n.u8());n.skip(4);const l=n.u32(),c=n.u32();s.set(o,{offset:l,length:c})}return s}class Po{constructor(n){this._buffer=n,this._tables=Go(n);const t=this._tables.get("head"),s=this._tables.get("maxp"),i=this._tables.get("hhea"),o=this._tables.get("hmtx"),l=this._tables.get("loca"),c=this._tables.get("cmap");if(!t)throw new Error("Font missing required `head` table");if(!s)throw new Error("Font missing required `maxp` table");if(!i)throw new Error("Font missing required `hhea` table");if(!o)throw new Error("Font missing required `hmtx` table");if(!l)throw new Error("Font missing required `loca` table");if(!c)throw new Error("Font missing required `cmap` table");this._head=uo(n,t.offset);const r=go(n,s.offset);this._hhea=_o(n,i.offset),this._hmtx=xo(n,o.offset,r.numGlyphs,this._hhea.numberOfHMetrics),this._loca=Mo(n,l.offset,r.numGlyphs,this._head.indexToLocFormat),this._cmap=po(n,c.offset);const h=this._tables.get("kern");this._kern=h?Lo(n,h.offset):()=>0,this.metrics={unitsPerEm:this._head.unitsPerEm,ascender:this._hhea.ascender,descender:this._hhea.descender,lineGap:this._hhea.lineGap}}glyphId(n){return this._cmap(n)}get numGlyphs(){return this._loca.length-1}advance(n){return(this._hmtx[n]??this._hmtx[this._hmtx.length-1]??{advanceWidth:0}).advanceWidth}lsb(n){return(this._hmtx[n]??this._hmtx[this._hmtx.length-1]??{lsb:0}).lsb}kerning(n,t){return this._kern(n,t)}shape(n){const t=this._tables.get("glyf");if(!t)return{contours:[],inverseYAxis:!1};const s=this._loca,i=s[n]??0,l=(s[n+1]??i)-i;return Ro(this._buffer,t.offset,i,l,c=>this._glyphRaw(c))}_glyphRaw(n){const t=this._tables.get("glyf");if(!t)return[];const s=this._loca,i=s[n]??0,l=(s[n+1]??i)-i;return ss(this._buffer,t.offset,i,l,c=>this._glyphRaw(c))}}function No(e,n){const t=1/n;for(const s of e.contours)for(let i=0;i<s.length;i++){const o=s[i];if(o.p0x*=t,o.p0y*=t,o.p1x*=t,o.p1y*=t,o.p2x*=t,o.p2y*=t,o.p3x*=t,o.p3y*=t,o.type===tt){const l=o.p1x-o.p0x,c=o.p1y-o.p0y,r=o.p2x-o.p1x,h=o.p2y-o.p1y;J(l,c,r,h)===0&&(s[i]=new nt(ot,o.p0x,o.p0y,o.p2x,o.p2y,0,0,0,0))}}}const es=1e-6,Uo=1.1111111111111112,Yo=new Float64Array(16);function cs(e,n,t){switch(n[t]=e.p0x,n[t+1]=e.p0y,n[t+2]=e.p1x,n[t+3]=e.p1y,e.type){case ot:return 1;case tt:return n[t+4]=e.p2x,n[t+5]=e.p2y,2;default:return n[t+4]=e.p2x,n[t+5]=e.p2y,n[t+6]=e.p3x,n[t+7]=e.p3y,3}}function rs(e,n,t){if(t===3){const s=e[n],i=e[n+1],o=e[n+2],l=e[n+3],c=e[n+4],r=e[n+5],h=e[n+6],p=e[n+7];(o===s&&l===i||o===h&&l===p)&&(c===s&&r===i||c===h&&r===p)&&(e[n+2]=h,e[n+3]=p,t=1)}if(t===2){const s=e[n],i=e[n+1],o=e[n+2],l=e[n+3],c=e[n+4],r=e[n+5];(o===s&&l===i||o===c&&l===r)&&(e[n+2]=c,e[n+3]=r,t=1)}return t===1&&e[n]===e[n+2]&&e[n+1]===e[n+3]&&(t=0),t}function Xo(e,n){const t=Yo;let s=cs(e,t,0),i=cs(n,t,8);if(!(s>=1&&s<=3&&i>=1&&i<=3)||t[s*2]!==t[8]||t[s*2+1]!==t[9])return 0;s=rs(t,0,s),i=rs(t,8,i);const o=t[s*2],l=t[s*2+1];let c=0,r=0,h=0,p=0,a=0,f=0,y=0,_=0,u=0,x=0,M=0,w=0;if(s>=1&&(c=t[(s-1)*2]-o,r=t[(s-1)*2+1]-l),s>=2){const H=t[(s-2)*2]-t[(s-1)*2],B=t[(s-2)*2+1]-t[(s-1)*2+1];h=H-c,p=B-r}if(s>=3){const H=t[(s-3)*2]-t[(s-2)*2],B=t[(s-3)*2+1]-t[(s-2)*2+1],ft=t[(s-2)*2]-t[(s-1)*2],ct=t[(s-2)*2+1]-t[(s-1)*2+1];a=H-ft-h,f=B-ct-p,h*=3,p*=3}if(i>=1&&(y=t[10]-o,_=t[11]-l),i>=2){const H=t[12]-t[10],B=t[13]-t[11];u=H-y,x=B-_}if(i>=3){const H=t[14]-t[12],B=t[15]-t[13],ft=t[12]-t[10],ct=t[13]-t[11];M=H-ft-u,w=B-ct-x,u*=3,x*=3}c*=s,r*=s,y*=i,_*=i;const v=c!==0||r!==0;if(v&&(y!==0||_!==0)){const H=Math.sqrt(c*c+r*r),B=Math.sqrt(y*y+_*_),ft=H*J(c,r,u,x)+B*J(h,p,y,_);if(ft)return rt(ft);const ct=H*H*J(c,r,M,w)+H*B*J(h,p,u,x)+B*B*J(a,f,y,_);if(ct)return rt(ct);const Nt=H*J(h,p,M,w)+B*J(a,f,u,x);return rt(Nt||J(a,f,M,w))}let A=1,D=h,I=p,L=a,m=f,b=y,N=_,R=u,q=x,P=M,X=w;if(v&&(D=u,I=x,L=M,m=w,b=c,N=r,R=h,q=p,P=a,X=f,A=-1),b!==0||N!==0){const H=J(L,m,b,N);if(H)return A*rt(H);const B=J(D,I,R,q);if(B)return A*rt(B);const ft=J(L,m,R,q);if(ft)return A*rt(ft);const ct=J(D,I,P,X);return ct?A*rt(ct):A*rt(J(L,m,P,X))}const $=Math.sqrt(D*D+I*I),V=Math.sqrt(R*R+q*q),et=Math.sqrt($)*J(D,I,P,X)+Math.sqrt(V)*J(L,m,R,q);return rt(et||J(L,m,P,X))}function as(e,n,t,s,i){let o=e[n];if(o.type===tt){const l=o.convertToCubic();e[n]=l,o=l}if(o.type===It)if(t===0){const l=Math.sqrt((o.p1x-o.p0x)**2+(o.p1y-o.p0y)**2);o.p1x+=l*s,o.p1y+=l*i}else{const l=Math.sqrt((o.p2x-o.p3x)**2+(o.p2y-o.p3y)**2);o.p2x+=l*s,o.p2y+=l*i}}const Lt=[0,0],Gt=[0,0];function Wo(e){for(let n=0;n<e.contours.length;n++){const t=e.contours[n];let s=0;for(let i=0;i<t.length;i++){const o=t[i];(o.p0x!==o.endX()||o.p0y!==o.endY())&&(t[s++]=o)}t.length=s}for(const n of e.contours)if(n.length===1){const[t,s,i]=n[0].splitInThirds();n.length=0,n.push(t,s,i)}else if(n.length>0){const t=n.length;for(let s=0;s<t;s++){const i=(s+t-1)%t,o=n[i],l=n[s];o.direction(1,Lt),l.direction(0,Gt);const c=Math.sqrt(Lt[0]**2+Lt[1]**2),r=Math.sqrt(Gt[0]**2+Gt[1]**2);if(c===0||r===0)continue;const h=Lt[0]/c,p=Lt[1]/c,a=Gt[0]/r,f=Gt[1]/r;if(so(h,p,a,f)<es-1){const y=es-1,_=Uo*Math.sqrt(1-y*y)/y;let u=a-h,x=f-p;const M=Math.sqrt(u*u+x*x);if(M===0)continue;u=_*u/M,x=_*x/M,Xo(o,l)<0&&(u=-u,x=-x),as(n,i,1,-x,u),as(n,s,0,x,-u)}}}}const Yt=1,Xt=2,Ho=3,Wt=4,Vo=5,Bo=6,en=7,it=[0,0],qt=[0,0];function zo(e,n){return Math.trunc(3+2.875*e/(n-1)-1.4375+.5)-3}function Qo(e,n,t,s,i){return e*t+n*s<=0||Math.abs(e*s-n*t)>i}function $o(e){const n=Number(e.v&1n);return e.v>>=1n,n}function Ko(e){const n=Number(e.v%3n);return e.v/=3n,n}function hs(e){return[Bo,Vo,Ho][Ko(e)]}function Ot(e,n){const t=e.v<<1+$o(n);e.v=(t|t>>3)&en}function Zo(e,n,t){const s=e.v&t;s===Yt||s===Xt||s===Wt?e.v=s^en:Ot(e,n)}function jo(e,n,t=0n){const s=Math.sin(n),i={v:hs({v:t})},o={v:t};o.v=t,i.v=hs(o);const l=[];for(const c of e.contours){if(c.length===0)continue;l.length=0,c[c.length-1].direction(1,it);const h=Math.sqrt(it[0]*it[0]+it[1]*it[1]);let p=h>0?it[0]/h:0,a=h>0?it[1]/h:0;for(let f=0;f<c.length;f++){const y=c[f];y.direction(0,qt);const _=Math.sqrt(qt[0]*qt[0]+qt[1]*qt[1]),u=_>0?qt[0]/_:0,x=_>0?qt[1]/_:0;Qo(p,a,u,x,s)&&l.push(f),y.direction(1,it);const M=Math.sqrt(it[0]*it[0]+it[1]*it[1]);p=M>0?it[0]/M:0,a=M>0?it[1]/M:0}if(l.length===0){Ot(i,o);for(const f of c)f.color=i.v}else if(l.length===1){const f=[0,en,0];Ot(i,o),f[0]=i.v,Ot(i,o),f[2]=i.v;const y=l[0],_=c.length;if(_>=3)for(let u=0;u<_;u++){const x=zo(u,_);c[(y+u)%_].color=f[1+x]}else if(_>=1){const u=[null,null,null,null,null,null,null],x=c[0].splitInThirds();if(u[0+3*y]=x[0],u[1+3*y]=x[1],u[2+3*y]=x[2],_>=2){const M=c[1].splitInThirds();u[3-3*y]=M[0],u[4-3*y]=M[1],u[5-3*y]=M[2],u[0].color=u[1].color=f[0],u[2].color=u[3].color=f[1],u[4].color=u[5].color=f[2]}else u[0].color=f[0],u[1].color=f[1],u[2].color=f[2];c.length=0;for(const M of u)M!==null&&c.push(M)}}else{const f=l.length;let y=0;const _=l[0],u=c.length;Ot(i,o);const x=i.v;for(let M=0;M<u;M++){const w=(_+M)%u;y+1<f&&l[y+1]===w&&(++y,Zo(i,o,y===f-1?x:0)),c[w].color=i.v}}}}const Y=Number.MAX_VALUE,T=[0,0],ht=[0,0];let ls=0,z=new Float64Array(0),K=new Float64Array(0),k=new Float64Array(0),S=new Float64Array(0),Z=new Int32Array(0),j=new Float64Array(0),Rt=new Float64Array(0),Tt=new Float64Array(0),mt=new Float64Array(0),vt=new Int32Array(0);const Q=[0,0];let ps=0,cn=new Float64Array(0),rn=new Float64Array(0),an=new Float64Array(0),hn=new Float64Array(0),ln=new Float64Array(0),pn=new Float64Array(0),fn=new Float64Array(0),yn=new Float64Array(0),un=new Float64Array(0),_n=new Float64Array(0),xn=new Float64Array(0),Mn=new Float64Array(0),fs=0,Pt=new Int32Array(0);function Jo(e){const n=e.length;if(n===0)return 0;let t=0;if(n===1){e[0].point(0,Q);const s=Q[0],i=Q[1];e[0].point(.3333333333333333,Q);const o=Q[0],l=Q[1];e[0].point(.6666666666666666,Q);const c=Q[0],r=Q[1];t+=s*l-i*o,t+=o*r-l*c,t+=c*i-r*s}else if(n===2){e[0].point(0,Q);const s=Q[0],i=Q[1];e[0].point(.5,Q);const o=Q[0],l=Q[1];e[1].point(0,Q);const c=Q[0],r=Q[1];e[1].point(.5,Q);const h=Q[0],p=Q[1];t+=s*l-i*o,t+=o*r-l*c,t+=c*p-r*h,t+=h*i-p*s}else{const s=e[n-1];let i=s.p0x,o=s.p0y;for(let l=0;l<n;l++){const c=e[l].p0x,r=e[l].p0y;t+=i*r-o*c,i=c,o=r}}return t>0?-1:t<0?1:0}function ti(e,n,t,s,i,o,l){const c=l[e][n];let r=t;if(o<0){c.direction(0,T);const h=Math.sqrt(T[0]*T[0]+T[1]*T[1]);if(h>0){const p=T[0]/h,a=T[1]/h;c.point(0,ht);const f=s-ht[0],y=i-ht[1];if(f*p+y*a<0){const u=f*a-y*p;Math.abs(u)<=Math.abs(r)&&(r=u)}}}if(o>1){c.direction(1,T);const h=Math.sqrt(T[0]*T[0]+T[1]*T[1]);if(h>0){const p=T[0]/h,a=T[1]/h;c.point(1,ht);const f=s-ht[0],y=i-ht[1];if(f*p+y*a>0){const u=f*a-y*p;Math.abs(u)<=Math.abs(r)&&(r=u)}}}return r}function lt(e,n,t,s,i,o,l,c,r){let h=e<0?n:t;if(i>=0){const p=ti(s,i,e,l,c,o,r);Math.abs(p)<Math.abs(h)&&(h=p)}return h}function _t(e,n,t){return Math.max(Math.min(e,n),Math.min(Math.max(e,n),t))}function ni(e,n,t,s,i,o,l,c){if(c.length!==n*t*3)throw new Error(`generateMSDF: out.length ${c.length} !== ${n*t*3}`);const r=e.contours,h=r.length;if(h===0){c.fill(0);return}const p=s/l;vt.length<h&&(vt=new Int32Array(h));for(let y=0;y<h;y++)vt[y]=Jo(r[y]);fs<h+1&&(Pt=new Int32Array(h+1),fs=h+1);let a=0;for(let y=0;y<h;y++)Pt[y]=a,a+=r[y].length;Pt[h]=a,ps<a&&(cn=new Float64Array(a),rn=new Float64Array(a),an=new Float64Array(a),hn=new Float64Array(a),ln=new Float64Array(a),pn=new Float64Array(a),fn=new Float64Array(a),yn=new Float64Array(a),un=new Float64Array(a),_n=new Float64Array(a),xn=new Float64Array(a),Mn=new Float64Array(a),ps=a);for(let y=0;y<h;y++){const _=r[y],u=_.length,x=Pt[y];for(let M=0;M<u;M++){const w=_[M],v=_[(M+u-1)%u],C=_[(M+1)%u],A=x+M;w.point(0,ht),cn[A]=ht[0],rn[A]=ht[1],w.point(1,ht),an[A]=ht[0],hn[A]=ht[1],w.direction(0,T);let D=Math.sqrt(T[0]*T[0]+T[1]*T[1]);const I=D>0?T[0]/D:0,L=D>0?T[1]/D:0;ln[A]=I,pn[A]=L,w.direction(1,T),D=Math.sqrt(T[0]*T[0]+T[1]*T[1]);const m=D>0?T[0]/D:0,b=D>0?T[1]/D:0;fn[A]=m,yn[A]=b,v.direction(1,T),D=Math.sqrt(T[0]*T[0]+T[1]*T[1]);const N=D>0?T[0]/D:0,R=D>0?T[1]/D:0;C.direction(0,T),D=Math.sqrt(T[0]*T[0]+T[1]*T[1]);const q=D>0?T[0]/D:0,P=D>0?T[1]/D:0,X=N+I,$=R+L,V=Math.sqrt(X*X+$*$);un[A]=V>0?X/V:0,_n[A]=V>0?$/V:0;const et=m+q,H=b+P,B=Math.sqrt(et*et+H*H);xn[A]=B>0?-(et/B):0,Mn[A]=B>0?-(H/B):0}}if(ls<h){const y=h*3;z=new Float64Array(y),K=new Float64Array(y),k=new Float64Array(y),S=new Float64Array(y),Z=new Int32Array(y),j=new Float64Array(y),Rt=new Float64Array(h),Tt=new Float64Array(h),mt=new Float64Array(h),ls=h}const f={distance:0,dot:0,param:0};for(let y=0;y<t;y++)for(let _=0;_<n;_++){const u=(_+.5)/s-i,x=(y+.5)/s-o;for(let E=0;E<h;E++){const d=r[E],at=d.length,g=E*3,G=Pt[E];z[g]=z[g+1]=z[g+2]=-Y,K[g]=K[g+1]=K[g+2]=0,k[g]=k[g+1]=k[g+2]=-Y,S[g]=S[g+1]=S[g+2]=Y,Z[g]=Z[g+1]=Z[g+2]=-1,j[g]=j[g+1]=j[g+2]=0;for(let O=0;O<at;O++){const W=d[O],Xn=W.color,Wn=(Xn&Yt)!==0,Hn=(Xn&Xt)!==0,Vn=(Xn&Wt)!==0;W.signedDistance(u,x,f);const on=f.distance,kt=f.dot,Bn=f.param,Dt=Math.abs(on);if(Wn){const bt=Math.abs(z[g]);(Dt<bt||Dt===bt&&kt<K[g])&&(z[g]=on,K[g]=kt,Z[g]=O,j[g]=Bn)}if(Hn){const bt=Math.abs(z[g+1]);(Dt<bt||Dt===bt&&kt<K[g+1])&&(z[g+1]=on,K[g+1]=kt,Z[g+1]=O,j[g+1]=Bn)}if(Vn){const bt=Math.abs(z[g+2]);(Dt<bt||Dt===bt&&kt<K[g+2])&&(z[g+2]=on,K[g+2]=kt,Z[g+2]=O,j[g+2]=Bn)}const yt=G+O,zn=u-cn[yt],Qn=x-rn[yt],$n=u-an[yt],Kn=x-hn[yt],js=ln[yt],Js=pn[yt],to=fn[yt],no=yn[yt],Ei=zn*un[yt]+Qn*_n[yt],qi=$n*xn[yt]+Kn*Mn[yt];if(Ei>0&&-(zn*js+Qn*Js)>0){const F=zn*Js-Qn*js;Math.abs(F)<Dt&&(Wn&&(F<=0&&F>k[g]?k[g]=F:F>0&&F<S[g]&&(S[g]=F)),Hn&&(F<=0&&F>k[g+1]?k[g+1]=F:F>0&&F<S[g+1]&&(S[g+1]=F)),Vn&&(F<=0&&F>k[g+2]?k[g+2]=F:F>0&&F<S[g+2]&&(S[g+2]=F)))}if(qi>0&&$n*to+Kn*no>0){const F=$n*no-Kn*to;Math.abs(F)<Dt&&(Wn&&(F<=0&&F>k[g]?k[g]=F:F>0&&F<S[g]&&(S[g]=F)),Hn&&(F<=0&&F>k[g+1]?k[g+1]=F:F>0&&F<S[g+1]&&(S[g+1]=F)),Vn&&(F<=0&&F>k[g+2]?k[g+2]=F:F>0&&F<S[g+2]&&(S[g+2]=F)))}}Rt[E]=lt(z[g],k[g],S[g],E,Z[g],j[g],u,x,r),Tt[E]=lt(z[g+1],k[g+1],S[g+1],E,Z[g+1],j[g+1],u,x,r),mt[E]=lt(z[g+2],k[g+2],S[g+2],E,Z[g+2],j[g+2],u,x,r)}let M=-Y,w=0,v=-Y,C=Y,A=-1,D=-1,I=0,L=-Y,m=0,b=-Y,N=Y,R=-1,q=-1,P=0,X=-Y,$=0,V=-Y,et=Y,H=-1,B=-1,ft=0,ct=-Y,Nt=0,qn=-Y,vn=Y,Ds=-1,Es=-1,qs=0,Kt=-Y,vs=0,Cn=-Y,In=Y,Cs=-1,Is=-1,Rs=0,Zt=-Y,Ts=0,Rn=-Y,Tn=Y,ms=-1,Fs=-1,ks=0,jt=-Y,Ss=0,mn=-Y,Fn=Y,Ls=-1,Gs=-1,Os=0,Jt=-Y,Ps=0,kn=-Y,Sn=Y,Ns=-1,Us=-1,Ys=0,tn=-Y,Xs=0,Ln=-Y,Gn=Y,Ws=-1,Hs=-1,Vs=0;for(let E=0;E<h;E++){const d=E*3,at=vt[E],g=_t(Rt[E],Tt[E],mt[E]);{const G=z[d],O=K[d],W=Math.abs(G);(W<Math.abs(M)||W===Math.abs(M)&&O<w)&&(M=G,w=O,A=E,D=Z[d],I=j[d]),k[d]>v&&(v=k[d]),S[d]<C&&(C=S[d])}{const G=z[d+1],O=K[d+1],W=Math.abs(G);(W<Math.abs(L)||W===Math.abs(L)&&O<m)&&(L=G,m=O,R=E,q=Z[d+1],P=j[d+1]),k[d+1]>b&&(b=k[d+1]),S[d+1]<N&&(N=S[d+1])}{const G=z[d+2],O=K[d+2],W=Math.abs(G);(W<Math.abs(X)||W===Math.abs(X)&&O<$)&&(X=G,$=O,H=E,B=Z[d+2],ft=j[d+2]),k[d+2]>V&&(V=k[d+2]),S[d+2]<et&&(et=S[d+2])}if(at>0&&g>=0){{const G=z[d],O=K[d],W=Math.abs(G);(W<Math.abs(ct)||W===Math.abs(ct)&&O<Nt)&&(ct=G,Nt=O,Ds=E,Es=Z[d],qs=j[d]),k[d]>qn&&(qn=k[d]),S[d]<vn&&(vn=S[d])}{const G=z[d+1],O=K[d+1],W=Math.abs(G);(W<Math.abs(Kt)||W===Math.abs(Kt)&&O<vs)&&(Kt=G,vs=O,Cs=E,Is=Z[d+1],Rs=j[d+1]),k[d+1]>Cn&&(Cn=k[d+1]),S[d+1]<In&&(In=S[d+1])}{const G=z[d+2],O=K[d+2],W=Math.abs(G);(W<Math.abs(Zt)||W===Math.abs(Zt)&&O<Ts)&&(Zt=G,Ts=O,ms=E,Fs=Z[d+2],ks=j[d+2]),k[d+2]>Rn&&(Rn=k[d+2]),S[d+2]<Tn&&(Tn=S[d+2])}}if(at<0&&g<=0){{const G=z[d],O=K[d],W=Math.abs(G);(W<Math.abs(jt)||W===Math.abs(jt)&&O<Ss)&&(jt=G,Ss=O,Ls=E,Gs=Z[d],Os=j[d]),k[d]>mn&&(mn=k[d]),S[d]<Fn&&(Fn=S[d])}{const G=z[d+1],O=K[d+1],W=Math.abs(G);(W<Math.abs(Jt)||W===Math.abs(Jt)&&O<Ps)&&(Jt=G,Ps=O,Ns=E,Us=Z[d+1],Ys=j[d+1]),k[d+1]>kn&&(kn=k[d+1]),S[d+1]<Sn&&(Sn=S[d+1])}{const G=z[d+2],O=K[d+2],W=Math.abs(G);(W<Math.abs(tn)||W===Math.abs(tn)&&O<Xs)&&(tn=G,Xs=O,Ws=E,Hs=Z[d+2],Vs=j[d+2]),k[d+2]>Ln&&(Ln=k[d+2]),S[d+2]<Gn&&(Gn=S[d+2])}}}const On=lt(M,v,C,A,D,I,u,x,r),Pn=lt(L,b,N,R,q,P,u,x,r),Nn=lt(X,V,et,H,B,ft,u,x,r),Di=_t(On,Pn,Nn),Bs=lt(ct,qn,vn,Ds,Es,qs,u,x,r),zs=lt(Kt,Cn,In,Cs,Is,Rs,u,x,r),Qs=lt(Zt,Rn,Tn,ms,Fs,ks,u,x,r),nn=_t(Bs,zs,Qs),$s=lt(jt,mn,Fn,Ls,Gs,Os,u,x,r),Ks=lt(Jt,kn,Sn,Ns,Us,Ys,u,x,r),Zs=lt(tn,Ln,Gn,Ws,Hs,Vs,u,x,r),sn=_t($s,Ks,Zs);let xt,Mt,gt,Un=0;if(nn>=0&&Math.abs(nn)<=Math.abs(sn)){xt=Bs,Mt=zs,gt=Qs,Un=1;for(let E=0;E<h;E++)if(vt[E]>0){const d=Rt[E],at=Tt[E],g=mt[E],G=_t(d,at,g);Math.abs(G)<Math.abs(sn)&&G>_t(xt,Mt,gt)&&(xt=d,Mt=at,gt=g)}}else if(sn<=0&&Math.abs(sn)<Math.abs(nn)){xt=$s,Mt=Ks,gt=Zs,Un=-1;for(let E=0;E<h;E++)if(vt[E]<0){const d=Rt[E],at=Tt[E],g=mt[E],G=_t(d,at,g);Math.abs(G)<Math.abs(nn)&&G<_t(xt,Mt,gt)&&(xt=d,Mt=at,gt=g)}}else{const E=(y*n+_)*3;c[E+0]=On*p+.5,c[E+1]=Pn*p+.5,c[E+2]=Nn*p+.5;continue}for(let E=0;E<h;E++)if(vt[E]!==Un){const d=Rt[E],at=Tt[E],g=mt[E],G=_t(d,at,g),O=_t(xt,Mt,gt);G*O>=0&&Math.abs(G)<Math.abs(O)&&(xt=d,Mt=at,gt=g)}_t(xt,Mt,gt)===Di&&(xt=On,Mt=Pn,gt=Nn);const Yn=(y*n+_)*3;c[Yn+0]=xt*p+.5,c[Yn+1]=Mt*p+.5,c[Yn+2]=gt*p+.5}}const ys=0,si=1,oi=2,ii=3;function ei(e,n){switch(n){case ys:return e!==0;case si:return(e&1)!==0;case oi:return e>0;case ii:return e<0}return!1}class ci{constructor(){this._intersections=[],this._lastIndex=0}setIntersections(n){if(this._intersections=n,this._lastIndex=0,n.length>0){n.sort((s,i)=>rt(s.x-i.x));let t=0;for(let s=0;s<n.length;s++)t+=n[s].direction,n[s].direction=t}}_moveTo(n){const t=this._intersections.length;if(t===0)return-1;let s=this._lastIndex;if(n<this._intersections[s].x)do{if(s===0)return this._lastIndex=0,-1;--s}while(n<this._intersections[s].x);else for(;s<t-1&&n>=this._intersections[s+1].x;)++s;return this._lastIndex=s,s}sumIntersections(n){const t=this._moveTo(n);return t>=0?this._intersections[t].direction:0}filled(n,t){return ei(this.sumIntersections(n),t)}}const us=[0,0,0],_s=[0,0,0];function ri(e,n,t){const s=[];for(const i of e.contours)for(const o of i){const l=o.scanlineIntersections(n,us,_s);for(let c=0;c<l;c++)s.push({x:us[c],direction:_s[c]})}t.setIntersections(s)}const Ft=2,xs=1,gn=1.001,ai=1.1111111111111112,Ht=.01;function hi(e,n,t,s,i,o,l){if(t===0||s===0)return;const c=new ci,r=new Int8Array(t*s);for(let h=0;h<s;h++){const p=(h+.5)/i-l;ri(n,p,c);for(let a=0;a<t;a++){const f=(a+.5)/i-o,y=c.filled(f,ys),_=(h*t+a)*3,u=e[_],x=e[_+1],M=e[_+2],w=st(u,x,M),v=h*t+a;w===.5?r[v]=0:w>.5!==y?(e[_]=1-u,e[_+1]=1-x,e[_+2]=1-M,r[v]=-1):r[v]=1}}for(let h=0;h<s;h++)for(let p=0;p<t;p++){const a=h*t+p;if(r[a]!==0)continue;let f=0;if(p>0&&(f+=r[a-1]),p<t-1&&(f+=r[a+1]),h>0&&(f+=r[a-t]),h<s-1&&(f+=r[a+t]),f<0){const y=(h*t+p)*3;e[y]=1-e[y],e[y+1]=1-e[y+1],e[y+2]=1-e[y+2]}}}const dn=[0,0];function li(e,n,t,s,i,o,l,c){const r=new Uint8Array(t*s);pi(r,n,t,s,i,o,l),fi(r,e,t,s,i,c),xi(r,e,t,s,c,ai),Mi(r,e,t,s)}function pi(e,n,t,s,i,o,l){for(const c of n.contours){if(c.length===0)continue;let r=c[c.length-1];for(const h of c){const p=r.color&h.color;if(!(p&p-1)){h.point(0,dn);const a=i*(dn[0]+o),f=i*(dn[1]+l),y=Math.floor(a-.5)|0,_=Math.floor(f-.5)|0,u=y+1,x=_+1;y<t&&_<s&&u>=0&&x>=0&&(y>=0&&_>=0&&(e[_*t+y]|=Ft),u<t&&_>=0&&(e[_*t+u]|=Ft),y>=0&&x<s&&(e[x*t+y]|=Ft),u<t&&x<s&&(e[x*t+u]|=Ft))}r=h}}}function Vt(e,n,t){let s=0;for(let i=0;i<3;i++){const o=e[n+i],l=e[t+i],c=o-l;if(c===0)continue;const r=(o-.5)/c;if(r>0&&r<1){const h=1-r,p=h*e[n]+r*e[t],a=h*e[n+1]+r*e[t+1],f=h*e[n+2]+r*e[t+2],y=i===0?p:i===1?a:f;st(p,a,f)===y&&(s|=i===0?Yt:i===1?Xt:Wt)}}return s}function wt(e,n,t,s,i,o){(o&Yt&&t[s]!==i||o&Xt&&t[s+1]!==i||o&Wt&&t[s+2]!==i)&&(e[n]|=Ft)}function fi(e,n,t,s,i,o){const l=gn/o,c=gn/o,r=gn*Math.SQRT2/o;for(let h=0;h<s;h++)for(let p=0;p<t-1;p++){const a=(h*t+p)*3,f=a+3,y=st(n[a],n[a+1],n[a+2]),_=st(n[f],n[f+1],n[f+2]);if(Math.abs(y-.5)+Math.abs(_-.5)<l){const u=Vt(n,a,f);wt(e,h*t+p,n,a,y,u),wt(e,h*t+p+1,n,f,_,u)}}for(let h=0;h<s-1;h++)for(let p=0;p<t;p++){const a=(h*t+p)*3,f=((h+1)*t+p)*3,y=st(n[a],n[a+1],n[a+2]),_=st(n[f],n[f+1],n[f+2]);if(Math.abs(y-.5)+Math.abs(_-.5)<c){const u=Vt(n,a,f);wt(e,h*t+p,n,a,y,u),wt(e,(h+1)*t+p,n,f,_,u)}}for(let h=0;h<s-1;h++)for(let p=0;p<t-1;p++){const a=(h*t+p)*3,f=(h*t+p+1)*3,y=((h+1)*t+p)*3,_=((h+1)*t+p+1)*3,u=st(n[a],n[a+1],n[a+2]),x=st(n[f],n[f+1],n[f+2]),M=st(n[y],n[y+1],n[y+2]),w=st(n[_],n[_+1],n[_+2]);if(Math.abs(u-.5)+Math.abs(w-.5)<r){const v=Vt(n,a,_);wt(e,h*t+p,n,a,u,v),wt(e,(h+1)*t+p+1,n,_,w,v)}if(Math.abs(x-.5)+Math.abs(M-.5)<r){const v=Vt(n,f,y);wt(e,h*t+p+1,n,f,x,v),wt(e,(h+1)*t+p,n,y,M,v)}}}function yi(e,n,t){const s=n<e?n:e,i=e<n?n:e,o=t<i?t:i;return s<o?o:s}function ui(e,n,t,s){return st(e[n]+s*(e[t]-e[n]),e[n+1]+s*(e[t+1]-e[n+1]),e[n+2]+s*(e[t+2]-e[n+2]))}function bn(e,n,t,s){return yi(Math.fround(s*(s*t[0]+n[0])+e[0]),Math.fround(s*(s*t[1]+n[1])+e[1]),Math.fround(s*(s*t[2]+n[2])+e[2]))}const Ct=[0,0,0],dt=[0,0,0],An=[0,0,0],pt=[0,0,0],Ms=1,gs=2;function wn(e,n,t,s,i,o,l,c){if(s>.5&&i>.5&&o<=.5||s<.5&&i<.5&&o>=.5||!c&&_i(s,i,o)!==o){const r=(t-e)*l,h=(n-t)*l;return o>=s-r&&o<=s+r&&o>=i-h&&o<=i+h?Ms:Ms|gs}return 0}function ds(e){return(e&gs)!==0}function _i(e,n,t){return Math.max(Math.min(e,n),Math.min(Math.max(e,n),t))}function Bt(e,n,t,s,i,o){const l=st(e[t],e[t+1],e[t+2]);if(Math.abs(s-.5)<Math.abs(l-.5))return!1;for(let c=0;c<3;c++){const r=e[n+c]-e[n+(c+1)%3],h=e[t+c]-e[t+(c+1)%3],p=r-h;if(p===0)continue;const a=r/p;if(a>Ht&&a<1-Ht){const f=ui(e,n,t,a),y=wn(0,1,a,s,l,f,i,o);if(ds(y))return!0}}return!1}function bs(e,n,t,s,i,o,l,c,r){if(!(r>0&&r<1))return 0;const h=r>l?0:r,p=r>l?r:1;pt[0]=e[n],pt[1]=e[n+1],pt[2]=e[n+2];const a=r>l?t:bn(pt,Ct,dt,r);pt[0]=e[n],pt[1]=e[n+1],pt[2]=e[n+2];const f=r>l?bn(pt,Ct,dt,r):s;return wn(h,p,l,a,f,c,i,o)}function zt(e,n,t,s,i,o,l,c,r){if(!(l>Ht&&l<1-Ht))return!1;pt[0]=e[n],pt[1]=e[n+1],pt[2]=e[n+2];const h=bn(pt,Ct,dt,l);let p=wn(0,1,l,t,s,h,i,o);return p|=bs(e,n,t,s,i,o,l,h,c),p|=bs(e,n,t,s,i,o,l,h,r),ds(p)}function Dn(e,n,t,s,i,o,l,c,r,h,p,a,f){const y=Math.fround(e[n+h]-e[n+p]),_=Math.fround(Math.fround(e[t+h]-e[t+p])+Math.fround(e[s+h]-e[s+p])),u=Math.fround(e[i+h]-e[i+p]),x=Math.fround(Math.fround(u-_)+y),M=Math.fround(Math.fround(_-y)-y),w=y;if(x===0||Math.abs(M)>1e12*Math.abs(x)){if(M!==0){const C=-w/M;if(zt(e,n,o,l,c,r,C,a,f))return!0}return!1}const v=M*M-4*x*w;if(v>0){const C=Math.sqrt(v),A=(-M+C)/(2*x);if(zt(e,n,o,l,c,r,A,a,f))return!0;const D=(-M-C)/(2*x);if(zt(e,n,o,l,c,r,D,a,f))return!0}else if(v===0){const C=-M/(2*x);if(zt(e,n,o,l,c,r,C,a,f))return!0}return!1}function Qt(e,n,t,s,i,o,l,c){const r=st(e[i],e[i+1],e[i+2]);if(Math.abs(o-.5)<Math.abs(r-.5))return!1;for(let f=0;f<3;f++)An[f]=Math.fround(Math.fround(e[n+f]-e[t+f])-e[s+f]),Ct[f]=Math.fround(-e[n+f]-An[f]),dt[f]=Math.fround(e[i+f]+An[f]);const h=dt[0]!==0?-.5*Ct[0]/dt[0]:-1,p=dt[1]!==0?-.5*Ct[1]/dt[1]:-1,a=dt[2]!==0?-.5*Ct[2]/dt[2]:-1;return!!(Dn(e,n,t,s,i,o,r,l,c,0,1,h,p)||Dn(e,n,t,s,i,o,r,l,c,1,2,p,a)||Dn(e,n,t,s,i,o,r,l,c,2,0,a,h))}function xi(e,n,t,s,i,o){const l=o/i,c=o/i,r=o*Math.SQRT2/i;for(let h=0;h<s;h++)for(let p=0;p<t;p++){const a=h*t+p,f=a*3,y=st(n[f],n[f+1],n[f+2]),_=(e[a]&Ft)!==0,u=p>0,x=p<t-1,M=h>0,w=h<s-1,v=u?(a-1)*3:-1,C=x?(a+1)*3:-1,A=M?(a-t)*3:-1,D=w?(a+t)*3:-1;let I=!1;if(u&&Bt(n,f,v,y,l,_)&&(I=!0),!I&&M&&Bt(n,f,A,y,c,_)&&(I=!0),!I&&x&&Bt(n,f,C,y,l,_)&&(I=!0),!I&&w&&Bt(n,f,D,y,c,_)&&(I=!0),!I&&u&&M){const L=(a-t-1)*3;Qt(n,f,v,A,L,y,r,_)&&(I=!0)}if(!I&&x&&M){const L=(a-t+1)*3;Qt(n,f,C,A,L,y,r,_)&&(I=!0)}if(!I&&u&&w){const L=(a+t-1)*3;Qt(n,f,v,D,L,y,r,_)&&(I=!0)}if(!I&&x&&w){const L=(a+t+1)*3;Qt(n,f,C,D,L,y,r,_)&&(I=!0)}I&&(e[a]|=xs)}}function Mi(e,n,t,s){const i=t*s;for(let o=0;o<i;o++)if(e[o]&xs){const l=o*3,c=st(n[l],n[l+1],n[l+2]);n[l]=c,n[l+1]=c,n[l+2]=c}}function st(e,n,t){return Math.max(Math.min(e,n),Math.min(Math.max(e,n),t))}function gi(e){let n=0,t=0;for(const c of e)n+=c.w*c.h,t=Math.max(t,c.w);e.sort((c,r)=>r.h-c.h);const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(n/.95)),t),h:1/0}];let o=0,l=0;for(const c of e)for(let r=i.length-1;r>=0;r--){const h=i[r];if(!(c.w>h.w||c.h>h.h)){if(c.x=h.x,c.y=h.y,l=Math.max(l,c.y+c.h),o=Math.max(o,c.x+c.w),c.w===h.w&&c.h===h.h){const p=i.pop();p&&r<i.length&&(i[r]=p)}else c.h===h.h?(h.x+=c.w,h.w-=c.w):c.w===h.w?(h.y+=c.h,h.h-=c.h):(i.push({x:h.x+c.w,y:h.y,w:h.w-c.w,h:c.h}),h.y+=c.h,h.h-=c.h);break}}return{w:o,h:l,fill:n/(o*l)||0}}const di=3,bi=0n,As=4,ws=16;function $t(e){const n=e<0?0:e>1?1:e;return~Math.trunc(255.5-255*n)&255}class Ai{constructor(n,t={}){this._width=0,this._height=0,this._pixels=new Uint8Array(0),this._cache=new Map,this._cacheByGid=new Map,this._font=n,this._pxPerEm=t.pixelsPerEm??40,this._pxrange=t.pxrange??4,this.pxrangeEm=this._pxrange/this._pxPerEm}get width(){return this._width}get height(){return this._height}get texture(){return this._pixels}glyphs(n){const t=[];let s=0;for(const i of n){const o=this._cache.get(i);if(o){t.push(o.glyph);continue}const l=this._generateForGlyphId(this._font.glyphId(i));this._cache.set(i,l),t.push(l.glyph),s++}return s>0&&this._repack(),t}glyph(n){return this.glyphs([n])[0]}glyphsByIndex(n){const t=[];let s=0;for(const i of n){const o=this._cacheByGid.get(i);if(o){t.push(o.glyph);continue}const l=this._generateForGlyphId(i);this._cacheByGid.set(i,l),t.push(l.glyph),s++}return s>0&&this._repack(),t}glyphByIndex(n){return this.glyphsByIndex([n])[0]}_generateForGlyphId(n){const t=this._font,s=t.metrics.unitsPerEm,i=t.advance(n)/s,o=t.shape(n);if(No(o,s),o.contours.length===0)return{glyph:{x:0,y:0,w:0,h:0,advance:i,planeLeft:0,planeBottom:0,planeRight:0,planeTop:0},msdf:null};const l=wi(o),c=this._pxPerEm,r=this._pxrange,h=Math.max(1,Math.ceil((l.maxX-l.minX)*c))+2*r,p=Math.max(1,Math.ceil((l.maxY-l.minY)*c))+2*r,a=r/c-l.minX,f=r/c-l.minY;Wo(o),jo(o,di,bi);const y=new Float32Array(h*p*3);return ni(o,h,p,c,a,f,r,y),hi(y,o,h,p,c,a,f),li(y,o,h,p,c,a,f,r),{glyph:{x:0,y:0,w:h,h:p,advance:i,planeLeft:-a,planeBottom:-f,planeRight:h/c-a,planeTop:p/c-f},msdf:y}}layout(n){const t=[];for(const r of n)t.push(r.codePointAt(0));this.glyphs(t);const s=[],i=this._font,o=i.metrics.unitsPerEm;let l=0,c=-1;for(const r of t){const h=i.glyphId(r);c>=0&&(l+=i.kerning(c,h)/o);const p=this._cache.get(r).glyph;s.push({glyph:p,penX:l,penY:0}),l+=p.advance,c=h}return{glyphs:s,widthEm:l}}layoutMultiline(n){const t=this._font,s=t.metrics.unitsPerEm,i=(t.metrics.ascender-t.metrics.descender+t.metrics.lineGap)/s,o=n.split(`
|
|
2
|
+
`),l=[];let c=0;for(let r=0;r<o.length;r++){const{glyphs:h,widthEm:p}=this.layout(o[r]),a=-r*i;for(const f of h)l.push({glyph:f.glyph,penX:f.penX,penY:a});p>c&&(c=p)}return{glyphs:l,widthEm:c,heightEm:o.length*i}}_repack(){const n=[];for(const i of this._cache.values())i.msdf!==null&&n.push({w:i.glyph.w,h:i.glyph.h,x:0,y:0,entry:i});for(const i of this._cacheByGid.values())i.msdf!==null&&n.push({w:i.glyph.w,h:i.glyph.h,x:0,y:0,entry:i});const{w:t,h:s}=gi(n);this._width=t,this._height=s,this._pixels=new Uint8Array(t*s*As);for(const i of n)i.entry.glyph.x=i.x,i.entry.glyph.y=i.y,this._blit(i.entry.msdf,i.x,i.y,i.w,i.h)}_blit(n,t,s,i,o){const l=this._width,c=this._pixels;for(let r=0;r<o;r++){const h=s+(o-1-r);for(let p=0;p<i;p++){const a=(r*i+p)*3,f=(h*l+(t+p))*As;c[f]=$t(n[a]),c[f+1]=$t(n[a+1]),c[f+2]=$t(n[a+2]),c[f+3]=255}}}}const En=[0,0];function wi(e){let n=1/0,t=1/0,s=-1/0,i=-1/0;for(const o of e.contours)for(const l of o)for(let c=0;c<=ws;c++){l.point(c/ws,En);const r=En[0],h=En[1];r<n&&(n=r),h<t&&(t=h),r>s&&(s=r),h>i&&(i=h)}return{minX:n,minY:t,maxX:s,maxY:i}}return At.Atlas=Ai,At.CUBIC=It,At.EdgeSegment=nt,At.Font=Po,At.LINEAR=ot,At.QUADRATIC=tt,At.pixelFloatToByte=$t,Object.defineProperty(At,Symbol.toStringTag,{value:"Module"}),At})({});
|