1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,847747,t=>{"use strict";t.s(["getOrientationOfPoints",0,function(t){let e=t.length;if(e<6)return 1;let i=0;for(let r=0,s=t[e-2],n=t[e-1];r<e;r+=2){let e=t[r],a=t[r+1];i+=(e-s)*(a+n),s=e,n=a}return i<0?-1:1}])},439877,751676,160098,t=>{"use strict";let e,i;var r=t.i(231519),s=t.i(847747);function n(t,e,i,r,s,n){let a,l,h=s-i,o=n-r,u=h*h+o*o,c=-1;0!==u&&(c=((t-i)*h+(e-r)*o)/u),c<0?(a=i,l=r):c>1?(a=s,l=n):(a=i+c*h,l=r+c*o);let d=t-a,f=e-l;return d*d+f*f}t.s(["squaredDistanceToLineSegment",0,n],751676);var a=t.i(583092);t.s(["Polygon",0,class t{constructor(...t){this.type="polygon";let e=Array.isArray(t[0])?t[0]:t;if("number"!=typeof e[0]){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i].x,e[i].y);e=t}this.points=e,this.closePath=!0}isClockwise(){let t=0,e=this.points,i=e.length;for(let r=0;r<i;r+=2){let s=e[r],n=e[r+1];t+=(e[(r+2)%i]-s)*(e[(r+3)%i]+n)}return t<0}containsPolygon(t){let r=this.getBounds(e),s=t.getBounds(i);if(!r.containsRect(s))return!1;let n=t.points;for(let t=0;t<n.length;t+=2){let e=n[t],i=n[t+1];if(!this.contains(e,i))return!1}return!0}clone(){let e=new t(this.points.slice());return e.closePath=this.closePath,e}contains(t,e){let i=!1,r=this.points.length/2;for(let s=0,n=r-1;s<r;n=s++){let r=this.points[2*s],a=this.points[2*s+1],l=this.points[2*n],h=this.points[2*n+1];a>e!=h>e&&t<(e-a)/(h-a)*(l-r)+r&&(i=!i)}return i}strokeContains(t,e,i,r=.5){let{points:a}=this,l=i*(.5===r?r:(r-.5)*(0,s.getOrientationOfPoints)(a)+.5),h=i-l,o=l*l,u=h*h,c=a.length-2*!this.closePath;for(let i=0;i<c;i+=2){let r=a[i],s=a[i+1],l=a[(i+2)%a.length],h=a[(i+3)%a.length];if(n(t,e,r,s,l,h)<=(0>Math.sign((l-r)*(e-s)-(h-s)*(t-r))?o:u))return!0}return!1}getBounds(t){t||(t=new a.Rectangle);let e=this.points,i=1/0,r=-1/0,s=1/0,n=-1/0;for(let t=0,a=e.length;t<a;t+=2){let a=e[t],l=e[t+1];i=a<i?a:i,r=a>r?a:r,s=l<s?l:s,n=l>n?l:n}return t.x=i,t.width=r-i,t.y=s,t.height=n-s,t}copyFrom(t){return this.points=t.points.slice(),this.closePath=t.closePath,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:PolygoncloseStroke=${this.closePath}points=${this.points.reduce((t,e)=>`${t}, ${e}`,"")}]`}get lastX(){return this.points[this.points.length-2]}get lastY(){return this.points[this.points.length-1]}get x(){return(0,r.deprecation)("8.11.0","Polygon.lastX is deprecated, please use Polygon.lastX instead."),this.points[this.points.length-2]}get y(){return(0,r.deprecation)("8.11.0","Polygon.y is deprecated, please use Polygon.lastY instead."),this.points[this.points.length-1]}get startX(){return this.points[0]}get startY(){return this.points[1]}}],439877);let l=(t,e,i,r,s,n,a)=>{let l=t-i,h=e-r,o=Math.sqrt(l*l+h*h);return o>=s-n&&o<=s+a};t.s(["RoundedRectangle",0,class t{constructor(t=0,e=0,i=0,r=0,s=20){this.type="roundedRectangle",this.x=t,this.y=e,this.width=i,this.height=r,this.radius=s}getBounds(t){return t||(t=new a.Rectangle),t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}clone(){return new t(this.x,this.y,this.width,this.height,this.radius)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this.radius=t.radius,this}copyTo(t){return t.copyFrom(this),t}contains(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){let i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;let r=t-(this.x+i),s=e-(this.y+i),n=i*i;if(r*r+s*s<=n||(r=t-(this.x+this.width-i))*r+s*s<=n||r*r+(s=e-(this.y+this.height-i))*s<=n||(r=t-(this.x+i))*r+s*s<=n)return!0}return!1}strokeContains(t,e,i,r=.5){let{x:s,y:n,width:a,height:h,radius:o}=this,u=i*(1-r),c=i-u,d=s+o,f=n+o,p=a-2*o,x=h-2*o,y=s+a,g=n+h;return(t>=s-u&&t<=s+c||t>=y-c&&t<=y+u)&&e>=f&&e<=f+x||(e>=n-u&&e<=n+c||e>=g-c&&e<=g+u)&&t>=d&&t<=d+p||t<d&&e<f&&l(t,e,d,f,o,c,u)||t>y-o&&e<f&&l(t,e,y-o,f,o,c,u)||t>y-o&&e>g-o&&l(t,e,y-o,g-o,o,c,u)||t<d&&e>g-o&&l(t,e,d,g-o,o,c,u)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}],160098)},457336,28319,714741,628318,t=>{"use strict";
1t.s(["buildSimpleUvs",0,function(t,e,i,r){let s=0;for(e*=i;s<r;)t[e]=0,t[e+1]=0,e+=i,s++},"buildUvs",0,function(t,e,i,r,s,n,a,l=null){let h=0;i*=e,s*=n;let o=l.a,u=l.b,c=l.c,d=l.d,f=l.tx,p=l.ty;for(;h<a;){let a=t[i],l=t[i+1];r[s]=o*a+c*l+f,r[s+1]=u*a+d*l+p,s+=n,i+=e,h++}}],457336),t.s(["transformVertices",0,function(t,e,i,r,s){let n=e.a,a=e.b,l=e.c,h=e.d,o=e.tx,u=e.ty;i||(i=0),r||(r=2),s||(s=t.length/r-i);let c=i*r;for(let e=0;e<s;e++){let e=t[c],i=t[c+1];t[c]=n*e+l*i+o,t[c+1]=a*e+h*i+u,c+=r}}],28319);var e=t.i(440477),i=t.i(658960);let r=new e.Matrix;t.s(["BatchableGraphics",0,class{constructor(){this.packAsQuad=!1,this.batcherName="default",this.topology="triangle-list",this.applyTransform=!0,this.roundPixels=0,this._batcher=null,this._batch=null}get uvs(){return this.geometryData.uvs}get positions(){return this.geometryData.vertices}get indices(){return this.geometryData.indices}get blendMode(){return this.renderable&&this.applyTransform?this.renderable.groupBlendMode:"normal"}get color(){let t=this.baseColor,e=t>>16|65280&t|(255&t)<<16,r=this.renderable;return r?(0,i.multiplyHexColors)(e,r.groupColor)+(this.alpha*r.groupAlpha*255<<24):e+(255*this.alpha<<24)}get transform(){return this.renderable?.groupTransform||r}copyTo(t){t.indexOffset=this.indexOffset,t.indexSize=this.indexSize,t.attributeOffset=this.attributeOffset,t.attributeSize=this.attributeSize,t.baseColor=this.baseColor,t.alpha=this.alpha,t.texture=this.texture,t.geometryData=this.geometryData,t.topology=this.topology}reset(){this.applyTransform=!0,this.renderable=null,this.topology="triangle-list"}destroy(){this.renderable=null,this.texture=null,this.geometryData=null,this._batcher=null,this._batch=null}}],714741);let s={extension:{type:t.i(116447).ExtensionType.ShapeBuilder,name:"circle"},build(t,e){let i,r,s,n,a,l;if("circle"===t.type){if((a=l=t.radius)<=0)return!1;i=t.x,r=t.y,s=n=0}else if("ellipse"===t.type){if(a=t.halfWidth,l=t.halfHeight,a<=0||l<=0)return!1;i=t.x,r=t.y,s=n=0}else{let e=t.width/2,h=t.height/2;i=t.x+e,r=t.y+h,a=l=Math.max(0,Math.min(t.radius,Math.min(e,h))),s=e-a,n=h-l}if(s<0||n<0)return!1;let h=Math.ceil(2.3*Math.sqrt(a+l)),o=8*h+4*!!s+4*!!n;if(0===o)return!1;if(0===h)return e[0]=e[6]=i+s,e[1]=e[3]=r+n,e[2]=e[4]=i-s,e[5]=e[7]=r-n,!0;let u=0,c=4*h+2*!!s+2,d=c,f=o,p=s+a,x=n,y=i+p,g=i-p,m=r+x;if(e[u++]=y,e[u++]=m,e[--c]=m,e[--c]=g,n){let t=r-x;e[d++]=g,e[d++]=t,e[--f]=t,e[--f]=y}for(let t=1;t<h;t++){let o=Math.PI/2*(t/h),p=s+Math.cos(o)*a,x=n+Math.sin(o)*l,y=i+p,g=i-p,m=r+x,b=r-x;e[u++]=y,e[u++]=m,e[--c]=m,e[--c]=g,e[d++]=g,e[d++]=b,e[--f]=b,e[--f]=y}p=s,x=n+l,y=i+p,g=i-p,m=r+x;let b=r-x;return e[u++]=y,e[u++]=m,e[--f]=b,e[--f]=y,s&&(e[u++]=g,e[u++]=m,e[--f]=b,e[--f]=g),!0},triangulate(t,e,i,r,s,n){if(0===t.length)return;let a=0,l=0;for(let e=0;e<t.length;e+=2)a+=t[e],l+=t[e+1];a/=t.length/2,l/=t.length/2;let h=r;e[h*i]=a,e[h*i+1]=l;let o=h++;for(let r=0;r<t.length;r+=2)e[h*i]=t[r],e[h*i+1]=t[r+1],r>0&&(s[n++]=h,s[n++]=o,s[n++]=h-1),h++;s[n++]=o+1,s[n++]=o,s[n++]=h-1}},n={...s,extension:{...s.extension,name:"ellipse"}},a={...s,extension:{...s.extension,name:"roundedRectangle"}};t.s(["buildCircle",0,s,"buildEllipse",0,n,"buildRoundedRectangle",0,a],628318)},229232,880887,157103,t=>{"use strict";var e=t.i(329723),i=t.i(453042),r=t.i(440477),s=t.i(800597),n=t.i(382827),a=t.i(906021),l=t.i(231519),h=t.i(63038),o=t.i(412307),u=t.i(233617),c=t.i(204133),d=t.i(227188);function f(t){return t instanceof d.FillPattern}function p(t){return t instanceof c.FillGradient}function x(t,e,i){return t.fill=e,t.color=0xffffff,t.texture=e.texture,t.matrix=e.transform,t.textureSpace=e.textureSpace,{...i,...t}}function y(t,e,i){return e.buildGradient(),t.fill=e,t.color=0xffffff,t.texture=e.texture,t.matrix=e.transform,t.textureSpace=e.textureSpace,{...i,...t}}function g(t,e){let r,s;if(null==t)return null;let a={};if(i.Color.isColorLike(t)){let r;return a.color=(r=i.Color.shared.setValue(t??0)).toNumber(),a.alpha=1===r.alpha?e.alpha:r.alpha,a.texture=n.Texture.WHITE,{...e,...a}}if(t instanceof n.Texture)return a.texture=t,{...e,...a};if(f(t))return x(a,t,e);if(p(t))return y(a,t,e);else if(t.fill&&f(t.fill))return x(t,t.fill,e);else if(t.fill&&p(t.fill))return y(t,t.fill,e);return r={...e,...t},s=i.Color.shared.setValue(r.color),r.alpha*=s.alpha,r.color=s.toNumber(),r}function m(t,e){let{width:i,alignment:r,miterLimit:s,cap:n,join:a,pixelLine:l,...h}=e,o=g(t,h);return o?{width:i,alignment:r,miterLimit:s,cap:n,join:a,pixelLine:l,...o}:null}function b(t,e){let i=1,r=t.shapePath.shapePrimitives;for(let t=0;t<r.length;t++){let s=r[t].shape;if("polygon"!==s.type)continue;let n=s.points,a=n.length;if(a<6)continue;let l=s.closePath;for(let t=0;t<a;t+=2){if(!l&&(0===t||t===a-2))continue;let r=(t-2+a)%a,s=(t+2)%a,h=n[r],o=n[r+1],u=n[t],c=n[t+1],d=n[s],f=n[s+1],p=h-u,x=o-c,y=d-u,g=f-c,m=p*p+x*x,b=y*y+g*g;if(m<1e-12||b<1e-12)continue;let _=(p*y+x*g)/Math.sqrt(m*b);_<-1?_=-1:_>1&&(_=1);let P=Math.sqrt((1-_)*.5);if(P<1e-6)continue;let v=Math.min(1/P,e);v>i&&(i=v)}}return i}t.s(["toFillStyle",0,g,"toStrokeStyle",0,m],880887),t.s(["getMaxMiterRatio",0,b],157103);let _=new s.Point,P=new r.Matrix,v=class t extends e.default{constructor(){super(...arguments),this._gpuData=Object.create(null),this.autoGarbageCollect=!0,this._gcLastUsed=-1,this.uid=(0,a.uid)("graphicsContext"),this.dirty=!0,this.batchMode="auto",this.instructions=[],this.destroyed=!1,this._activePath=new o.GraphicsPath,this._transform=new r.Matrix,this._fillStyle={...t.defaultFillStyle},this._strokeStyle={...t.defaultStrokeStyle},this._stateStack=[],this._tick=0,this._bounds=new h.Bounds,this._boundsDirty=!0}clone(){let e=new t;return e.batchMode=this.batchMode,e.instructions=this.instructions.slice(),e._activePath=this._activePath.clone(),e._transform=this._transform.clone(),e._fillStyle={...this._fillStyle},e._strokeStyle={...this._strokeStyle},e._stateStack=this._stateStack.slice(),e._bounds=this._bounds.clone(),e._boundsDirty=!0,e}get fillStyle(){return this._fillStyle}set fillStyle(e){this._fillStyle=g(e,t.defaultFillStyle)}get strokeStyle(){return this._strokeStyle}set strokeStyle(e){this._strokeStyle=m(e,t.defaultStrokeStyle)}
1setFillStyle(e){return this._fillStyle=g(e,t.defaultFillStyle),this}setStrokeStyle(e){return this._strokeStyle=g(e,t.defaultStrokeStyle),this}texture(t,e,r,s,n,a){return this.instructions.push({action:"texture",data:{image:t,dx:r||0,dy:s||0,dw:n||t.frame.width,dh:a||t.frame.height,transform:this._transform.clone(),alpha:this._fillStyle.alpha,style:e||0===e?i.Color.shared.setValue(e).toNumber():0xffffff}}),this.onUpdate(),this}beginPath(){return this._activePath=new o.GraphicsPath,this}fill(e,i){let r,s=this.instructions[this.instructions.length-1];return(r=0===this._tick&&s?.action==="stroke"?s.data.path:this._activePath.clone())&&(null!=e&&(void 0!==i&&"number"==typeof e&&((0,l.deprecation)(l.v8_0_0,"GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"),e={color:e,alpha:i}),this._fillStyle=g(e,t.defaultFillStyle)),this.instructions.push({action:"fill",data:{style:this.fillStyle,path:r}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}_initNextPathLocation(){let{x:t,y:e}=this._activePath.getLastPoint(s.Point.shared);this._activePath.clear(),this._activePath.moveTo(t,e)}stroke(e){let i,r=this.instructions[this.instructions.length-1];return(i=0===this._tick&&r?.action==="fill"?r.data.path:this._activePath.clone())&&(null!=e&&(this._strokeStyle=m(e,t.defaultStrokeStyle)),this.instructions.push({action:"stroke",data:{style:this.strokeStyle,path:i}}),this.onUpdate(),this._initNextPathLocation(),this._tick=0),this}cut(){for(let t=0;t<2;t++){let e=this.instructions[this.instructions.length-1-t],i=this._activePath.clone();if(e&&("stroke"===e.action||"fill"===e.action))if(e.data.hole)e.data.hole.addPath(i);else{e.data.hole=i;break}}return this._initNextPathLocation(),this}arc(t,e,i,r,s,n){this._tick++;let a=this._transform;return this._activePath.arc(a.a*t+a.c*e+a.tx,a.b*t+a.d*e+a.ty,i,r,s,n),this}arcTo(t,e,i,r,s){this._tick++;let n=this._transform;return this._activePath.arcTo(n.a*t+n.c*e+n.tx,n.b*t+n.d*e+n.ty,n.a*i+n.c*r+n.tx,n.b*i+n.d*r+n.ty,s),this}arcToSvg(t,e,i,r,s,n,a){this._tick++;let l=this._transform;return this._activePath.arcToSvg(t,e,i,r,s,l.a*n+l.c*a+l.tx,l.b*n+l.d*a+l.ty),this}bezierCurveTo(t,e,i,r,s,n,a){this._tick++;let l=this._transform;return this._activePath.bezierCurveTo(l.a*t+l.c*e+l.tx,l.b*t+l.d*e+l.ty,l.a*i+l.c*r+l.tx,l.b*i+l.d*r+l.ty,l.a*s+l.c*n+l.tx,l.b*s+l.d*n+l.ty,a),this}closePath(){return this._tick++,this._activePath?.closePath(),this}ellipse(t,e,i,r){return this._tick++,this._activePath.ellipse(t,e,i,r,this._transform.clone()),this}circle(t,e,i){return this._tick++,this._activePath.circle(t,e,i,this._transform.clone()),this}path(t){return this._tick++,this._activePath.addPath(t,this._transform.clone()),this}lineTo(t,e){this._tick++;let i=this._transform;return this._activePath.lineTo(i.a*t+i.c*e+i.tx,i.b*t+i.d*e+i.ty),this}moveTo(t,e){this._tick++;let i=this._transform,r=this._activePath.instructions,s=i.a*t+i.c*e+i.tx,n=i.b*t+i.d*e+i.ty;return 1===r.length&&"moveTo"===r[0].action?(r[0].data[0]=s,r[0].data[1]=n):this._activePath.moveTo(s,n),this}quadraticCurveTo(t,e,i,r,s){this._tick++;let n=this._transform;return this._activePath.quadraticCurveTo(n.a*t+n.c*e+n.tx,n.b*t+n.d*e+n.ty,n.a*i+n.c*r+n.tx,n.b*i+n.d*r+n.ty,s),this}rect(t,e,i,r){return this._tick++,this._activePath.rect(t,e,i,r,this._transform.clone()),this}roundRect(t,e,i,r,s){return this._tick++,this._activePath.roundRect(t,e,i,r,s,this._transform.clone()),this}poly(t,e){return this._tick++,this._activePath.poly(t,e,this._transform.clone()),this}regularPoly(t,e,i,r,s=0,n){return this._tick++,this._activePath.regularPoly(t,e,i,r,s,n),this}roundPoly(t,e,i,r,s,n){return this._tick++,this._activePath.roundPoly(t,e,i,r,s,n),this}roundShape(t,e,i,r){return this._tick++,this._activePath.roundShape(t,e,i,r),this}filletRect(t,e,i,r,s){return this._tick++,this._activePath.filletRect(t,e,i,r,s),this}chamferRect(t,e,i,r,s,n){return this._tick++,this._activePath.chamferRect(t,e,i,r,s,n),this}star(t,e,i,r,s=0,n=0){return this._tick++,this._activePath.star(t,e,i,r,s,n,this._transform.clone()),this}svg(t){return this._tick++,(0,u.SVGParser)(t,this),this}restore(){let t=this._stateStack.pop();return t&&(this._transform=t.transform,this._fillStyle=t.fillStyle,this._strokeStyle=t.strokeStyle),this}save(){return this._stateStack.push({transform:this._transform.clone(),fillStyle:{...this._fillStyle},strokeStyle:{...this._strokeStyle}}),this}getTransform(){return this._transform}resetTransform(){return this._transform.identity(),this}rotate(t){return this._transform.rotate(t),this}scale(t,e=t){return this._transform.scale(t,e),this}setTransform(t,e,i,s,n,a){return t instanceof r.Matrix?this._transform.set(t.a,t.b,t.c,t.d,t.tx,t.ty):this._transform.set(t,e,i,s,n,a),this}transform(t,e,i,s,n,a){return t instanceof r.Matrix?this._transform.append(t):(P.set(t,e,i,s,n,a),this._transform.append(P)),this}translate(t,e=t){return this._transform.translate(t,e),this}clear(){return this._activePath.clear(),this.instructions.length=0,this.resetTransform(),this.onUpdate(),this}
1onUpdate(){this._boundsDirty=!0,this.dirty=!0,this.emit("update",this,16)}get bounds(){if(!this._boundsDirty)return this._bounds;this._boundsDirty=!1;let t=this._bounds;t.clear();for(let e=0;e<this.instructions.length;e++){let i=this.instructions[e],r=i.action;if("fill"===r){let e=i.data;t.addBounds(e.path.bounds)}else if("texture"===r){let e=i.data;t.addFrame(e.dx,e.dy,e.dx+e.dw,e.dy+e.dh,e.transform)}if("stroke"===r){let e=i.data,r=e.style.alignment,s=e.style.width*(1-r);"miter"===e.style.join&&(s*=b(e.path,e.style.miterLimit));let n=e.path.bounds;t.addFrame(n.minX-s,n.minY-s,n.maxX+s,n.maxY+s)}}return t.isValid||t.set(0,0,0,0),t}containsPoint(t){if(!this.bounds.containsPoint(t.x,t.y))return!1;let e=this.instructions,i=!1;for(let r=0;r<e.length;r++){let s=e[r],n=s.data,a=n.path;if(!s.action||!a)continue;let l=n.style,h=a.shapePath.shapePrimitives;for(let e=0;e<h.length;e++){let r=h[e].shape;if(!l||!r)continue;let a=h[e].transform,o=a?a.applyInverse(t,_):t;i="fill"===s.action?r.contains(o.x,o.y):r.strokeContains(o.x,o.y,l.width,l.alignment);let u=n.hole;if(u){let t=u.shapePath?.shapePrimitives;if(t)for(let e=0;e<t.length;e++)t[e].shape.contains(o.x,o.y)&&(i=!1)}if(i)return!0}}return i}unload(){for(let t in this.emit("unload",this),this._gpuData)this._gpuData[t]?.destroy();this._gpuData=Object.create(null)}destroy(t=!1){if(!this.destroyed){if(this.destroyed=!0,this._stateStack.length=0,this._transform=null,this.unload(),this.emit("destroy",this),this.removeAllListeners(),"boolean"==typeof t?t:t?.texture){let e="boolean"==typeof t?t:t?.textureSource;this._fillStyle.texture&&(this._fillStyle.fill&&"uid"in this._fillStyle.fill?this._fillStyle.fill.destroy():this._fillStyle.texture.destroy(e)),this._strokeStyle.texture&&(this._strokeStyle.fill&&"uid"in this._strokeStyle.fill?this._strokeStyle.fill.destroy():this._strokeStyle.texture.destroy(e))}this._fillStyle=null,this._strokeStyle=null,this.instructions=null,this._activePath=null,this._bounds=null,this._stateStack=null,this.customShader=null,this._transform=null}}};v.defaultFillStyle={color:0xffffff,alpha:1,texture:n.Texture.WHITE,matrix:null,fill:null,textureSpace:"local"},v.defaultStrokeStyle={width:1,color:0xffffff,alpha:1,alignment:.5,miterLimit:10,cap:"butt",join:"miter",texture:n.Texture.WHITE,matrix:null,fill:null,textureSpace:"local",pixelLine:!1},t.s(["GraphicsContext",0,v],229232)},754695,464360,t=>{"use strict";var e=t.i(847747),i=t.i(800597);function r(t,e,i,r,s,n,a,l){let h,o;a?(h=r,o=-i):(h=-r,o=i);let u=t-i*s+h,c=e-r*s+o,d=t+i*n+h,f=e+r*n+o;return l.push(u,c),l.push(d,f),2}function s(t,e,i,r,s,n,a,l){let h=i-t,o=r-e,u=Math.atan2(h,o),c=Math.atan2(s-t,n-e);l&&u<c?u+=2*Math.PI:!l&&u>c&&(c+=2*Math.PI);let d=u,f=c-u,p=Math.sqrt(h*h+o*o),x=(15*Math.abs(f)*Math.sqrt(p)/Math.PI|0)+1,y=f/x;if(d+=y,l){a.push(t,e),a.push(i,r);for(let i=1,r=d;i<x;i++,r+=y)a.push(t,e),a.push(t+Math.sin(r)*p,e+Math.cos(r)*p);a.push(t,e),a.push(s,n)}else{a.push(i,r),a.push(t,e);for(let i=1,r=d;i<x;i++,r+=y)a.push(t+Math.sin(r)*p,e+Math.cos(r)*p),a.push(t,e);a.push(s,n),a.push(t,e)}return 2*x}t.s(["closePointEps",0,1e-4,"curveEps",0,1e-4],464360),t.s(["buildLine",0,function(t,n,a,l,h,o){if(0===t.length)return;let u=n.alignment;if(.5!==n.alignment){let i=(0,e.getOrientationOfPoints)(t);a&&(i*=-1),u=(u-.5)*i+.5}let c=new i.Point(t[0],t[1]),d=new i.Point(t[t.length-2],t[t.length-1]),f=1e-4>Math.abs(c.x-d.x)&&1e-4>Math.abs(c.y-d.y);if(l){t=t.slice(),f&&(t.pop(),t.pop(),d.set(t[t.length-2],t[t.length-1]));let e=(c.x+d.x)*.5,i=(d.y+c.y)*.5;t.unshift(e,i),t.push(e,i)}let p=t.length/2,x=t.length,y=h.length/2,g=n.width/2,m=g*g,b=n.miterLimit*n.miterLimit,_=t[0],P=t[1],v=t[2],S=t[3],M=0,k=0,w=-(P-S),T=_-v,C=0,R=0,z=Math.sqrt(w*w+T*T);w/=z,T/=z,w*=g,T*=g;let B=u,D=(1-B)*2,G=2*B;l||("round"===n.cap?x+=s(_-w*(D-G)*.5,P-T*(D-G)*.5,_-w*D,P-T*D,_+w*G,P+T*G,h,!0)+2:"square"===n.cap&&(x+=r(_,P,w,T,D,G,!0,h))),h.push(_-w*D,P-T*D),h.push(_+w*G,P+T*G);for(let e=1;e<p-1;++e){_=t[(e-1)*2],P=t[(e-1)*2+1],v=t[2*e],S=t[2*e+1],M=t[(e+1)*2],k=t[(e+1)*2+1],z=Math.sqrt((w=-(P-S))*w+(T=_-v)*T),w/=z,T/=z,w*=g,T*=g,z=Math.sqrt((C=-(S-k))*C+(R=v-M)*R),C/=z,R/=z,C*=g,R*=g;let i=v-_,r=P-S,a=v-M,l=k-S,o=i*a+r*l,u=r*a-l*i,c=u<0;if(Math.abs(u)<.001*Math.abs(o)){h.push(v-w*D,S-T*D),h.push(v+w*G,S+T*G),o>=0&&("round"===n.join?x+=s(v,S,v-w*D,S-T*D,v-C*D,S-R*D,h,!1)+4:x+=2,h.push(v-C*G,S-R*G),h.push(v+C*D,S+R*D));continue}let d=(-w+_)*(-T+S)-(-w+v)*(-T+P),f=(-C+M)*(-R+S)-(-C+v)*(-R+k),p=(i*f-a*d)/u,y=(l*d-r*f)/u,B=(p-v)*(p-v)+(y-S)*(y-S),q=v+(p-v)*D,F=S+(y-S)*D,I=v-(p-v)*G,A=S-(y-S)*G,L=c?D:G;B<=Math.min(i*i+r*r,a*a+l*l)+L*L*m?"bevel"===n.join||B/m>b?(c?(h.push(q,F),h.push(v+w*G,S+T*G),h.push(q,F),h.push(v+C*G,S+R*G)):(h.push(v-w*D,S-T*D),h.push(I,A),h.push(v-C*D,S-R*D),h.push(I,A)),x+=2):"round"===n.join?c?(h.push(q,F),h.push(v+w*G,S+T*G),x+=s(v,S,v+w*G,S+T*G,v+C*G,S+R*G,h,!0)+4,h.push(q,F),h.push(v+C*G,S+R*G)):(h.push(v-w*D,S-T*D),h.push(I,A),x+=s(v,S,v-w*D,S-T*D,v-C*D,S-R*D,h,!1)+4,h.push(v-C*D,S-R*D),h.push(I,A)):(h.push(q,F),h.push(I,A)):(h.push(v-w*D,S-T*D),h.push(v+w*G,S+T*G),"round"===n.join?c?x+=s(v,S,v+w*G,S+T*G,v+C*G,S+R*G,h,!0)+2:x+=s(v,S,v-w*D,S-T*D,v-C*D,S-R*D,h,!1)+2:"miter"===n.join&&B/m<=b&&(c?(h.push(I,A),h.push(I,A)):(h.push(q,F),h.push(q,F)),x+=2),h.push(v-C*D,S-R*D),h.push(v+C*G,S+R*G),x+=2)}_=t[(p-2)*2],P=t[(p-2)*2+1],v=t[(p-1)*2],z=Math.sqrt((w=-(P-(S=t[(p-1)*2+1])))*w+(T=_-v)*T),w/=z,T/=z,w*=g,T*=g,h.push(v-w*D,S-T*D),h.push(v+w*G,S+T*G),l||("round"===n.cap?x+=s(v-w*(D-G)*.5,S-T*(D-G)*.5,v-w*D,S-T*D,v+w*G,S+T*G,h,!1)+2:"square"===n.cap&&(x+=r(v,S,w,T,D,G,!1,h)));let q=1e-4*1e-4;for(let t=y;t<x+y-2;++t)_=h[2*t],P=h[2*t+1],v=h[(t+1)*2],S=h[(t+1)*2+1],M=h[(t+2)*2],Math.abs(_*(S-(k=h[(t+2)*2+1]))+v*(k-P)+M*(P-S))<q||o.push(t,t+1,t+2)}],754695)},606415,356499,61784,914560,536666,324728,t=>{"use strict";var e=t.i(464360);t.s(["buildPixelLine",0,function(t,i,r,s){let n=e.closePointEps;if(0===t.length)return;let a=t[0],l=t[1],h=t[t.length-2],o=t[t.length-1],u=i||Math.abs(a-h)<n&&Math.abs(l-o)<n,c=t.length/2,d=r.length/2;for(let e=0;e<c;e++)r.push(t[2*e]),r.push(t[2*e+1]);for(let t=0;t<c-1;t++)s.push(d+t,d+t+1);u&&s.push(d+c-1,d)}],606415);var i=t.i(116447);let r=new Set,s=!1;function n(t,e,i=2){let d=e&&e.length,f=d?e[0]*i:t.length;r.size&&r.clear();let P=a(t,0,f,i,!0),C=[];if(!P||P.next===P.prev)return C;let B=0,G=0,q=0;
1if(d&&(P=function(t,e,i,s){var n;let d,f=[];for(let i=0,n=e.length;i<n;i++){let l=e[i]*s,h=i<n-1?e[i+1]*s:t.length,o=a(t,l,h,s,!1);o===o.next&&r.add(o),f.push(function(t){let e=t,i=t;do(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next;while(e!==t)return i}(o))}f.sort(o),d=Math.ceil((t.length/s+2*(n=e.length))/16)+n+2,u.length<4*d&&(u=new Float64Array(4*d)),c=0,p(i,i),h=!0;for(let t=0;t<f.length;t++)i=function(t,e){let i=function(t,e){let i,r=e,s=t.x,n=t.y,a=-1/0;if(w(t,r))return r;for(let e=0,l=0;e<c;e++,l+=4){if(n<u[l+1]||n>u[l+3]||u[l]>s||u[l+2]<=a)continue;let h=x(e);r=y(e);do{if(r.prev.next===r){if(w(t,r.next))return r.next;else if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let t=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=s&&t>a&&(a=t,i=r.x<r.next.x?r:r.next,t===s))return i}}r=r.next}while(r!==h)}if(!i)return null;let l=i.x,h=i.y,o=Math.min(n,h),d=Math.max(n,h),f=1/0;for(let e=0,m=0;e<c;e++,m+=4){if(u[m+2]<l||u[m]>s||u[m+3]<o||u[m+1]>d)continue;let c=x(e);r=y(e);do{if(r.prev.next===r&&s>=r.x&&r.x>=l&&s!==r.x&&M(n<h?s:a,n,l,h,n<h?a:s,n,r.x,r.y)){var p,g;let e=Math.abs(n-r.y)/(s-r.x);(R(r,t)||r.y===n&&r.next.y===n&&r.next.x>s)&&(e<f||e===f&&(r.x>i.x||r.x===i.x&&(p=i,g=r,0>k(p.prev,p,g.prev)&&0>k(g.next,p,p.next))))&&(i=r,f=e)}r=r.next}while(r!==c)}return i}(t,e);if(!i)return e;let r=z(i,t);return p(i,r.next.next),l(r,r.next),l(i,i.next)}(f[t],i);return h=!1,l(i)}(t,e,P,i)),t.length>80*i){B=t[0],G=t[1];let e=B,r=G;for(let s=i;s<f;s+=i){let i=t[s],n=t[s+1];i<B&&(B=i),n<G&&(G=n),i>e&&(e=i),n>r&&(r=n)}q=0!==(q=Math.max(e-B,r-G))?32767/q:0}return function t(e,i,r,n,a){a&&function(t,e,i,r){let s=t,n=0;do s.z=S(s.x,s.y,e,i,r),g[n++]=s,s=s.next;while(s!==t)!function(t){if(t<=32){for(let e=1;e<t;e++){let t=g[e],i=t.z,r=e-1;for(;r>=0&&g[r].z>i;)g[r+1]=g[r],r--;g[r+1]=t}return}b.length<t&&(b=new Uint32Array(t),_=new Uint32Array(t),m=Array(t));for(let e=0;e<t;e++)b[e]=g[e].z;v(t,g,b,m,_,0),v(t,m,_,g,b,8),v(t,g,b,m,_,16),v(t,m,_,g,b,24)}(n);let a=null;for(let t=0;t<n;t++){let e=g[t];e.prevZ=a,a&&(a.nextZ=e),a=e}a.nextZ=null}(e,r,n,a);let h=e,o=!1;for(;e.prev!==e.next;){let u=e.prev,c=e.next;if(0>k(u,e,c)&&(a?function(t,e,i,r){let s=t.prev,n=t.next,a=s.x,l=t.x,h=n.x,o=s.y,u=t.y,c=n.y,d=Math.min(a,l,h),f=Math.min(o,u,c),p=Math.max(a,l,h),x=Math.max(o,u,c),y=S(d,f,e,i,r),g=S(p,x,e,i,r),m=t.prevZ;for(;m&&m.z>=y;){if(m.x>=d&&m.x<=p&&m.y>=f&&m.y<=x&&m!==n&&(a!==m.x||o!==m.y)&&M(a,o,l,u,h,c,m.x,m.y)&&k(m.prev,m,m.next)>=0)return!1;m=m.prevZ}let b=t.nextZ;for(;b&&b.z<=g;){if(b.x>=d&&b.x<=p&&b.y>=f&&b.y<=x&&b!==n&&(a!==b.x||o!==b.y)&&M(a,o,l,u,h,c,b.x,b.y)&&k(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}(e,r,n,a):function(t){let e=t.prev,i=t.next,r=e.x,s=t.x,n=i.x,a=e.y,l=t.y,h=i.y,o=Math.min(r,s,n),u=Math.min(a,l,h),c=Math.max(r,s,n),d=Math.max(a,l,h),f=i.next;for(;f!==e;){if(f.x>=o&&f.x<=c&&f.y>=u&&f.y<=d&&(r!==f.x||a!==f.y)&&M(r,a,s,l,n,h,f.x,f.y)&&k(f.prev,f,f.next)>=0)return!1;f=f.next}return!0}(e))){i.push(u.i,e.i,c.i),D(e),e=c,h=c;continue}if((e=c)===h){if(s=!1,e=l(e),s){h=e;continue}if(!o){h=e=function(t,e){let i=t,r=!1;do{let s=i.prev,n=i.next.next;T(s,i,i.next,n,!1)&&R(s,n)&&R(n,s)&&(e.push(s.i,i.i,n.i),D(i),D(i.next),i=t=n,r=!0),i=i.next}while(i!==t)return r?l(i):i}(e,i),o=!0;continue}!function(e,i,r,s,n){let a=e;do{let e=a.next.next;for(;e!==a.prev;){if(a.i!==e.i&&function(t,e){let i=w(t,e)&&k(t.prev,t,t.next)>0&&k(e.prev,e,e.next)>0;return t.next.i!==e.i&&(i||R(t,e)&&R(e,t)&&(0!==k(t.prev,t,e.prev)||0!==k(t,e.prev,e)))&&!function(t,e){let i=Math.min(t.x,e.x),r=Math.max(t.x,e.x),s=Math.min(t.y,e.y),n=Math.max(t.y,e.y),a=t;do{let l=a.next;if(a.x>r&&l.x>r||a.x<i&&l.x<i||a.y>n&&l.y>n||a.y<s&&l.y<s){a=l;continue}if(a.i!==t.i&&l.i!==t.i&&a.i!==e.i&&l.i!==e.i&&T(a,l,t,e))return!0;a=l}while(a!==t)return!1}(t,e)&&(i||function(t,e){let i=t,r=!1,s=(t.x+e.x)/2,n=(t.y+e.y)/2;do{let t=i.next;i.y>n!=t.y>n&&s<(t.x-i.x)*(n-i.y)/(t.y-i.y)+i.x&&(r=!r),i=t}while(i!==t)return r}(t,e))}(a,e)){let h=z(a,e);a=l(a,a.next),h=l(h,h.next),t(a,i,r,s,n),t(h,i,r,s,n);return}e=e.next}a=a.next}while(a!==e)}(e,i,r,n,a);break}}}(P,C,B,G,q),C}function a(t,e,i,r,s){let n=null;
1if(s===function(t,e,i,r){let s=0;for(let n=e,a=i-r;n<i;n+=r)s+=(t[a]-t[n])*(t[n+1]+t[a+1]),a=n;return s}(t,e,i,r)>0)for(let s=e;s<i;s+=r)n=B(s/r|0,t[s],t[s+1],n);else for(let s=i-r;s>=e;s-=r)n=B(s/r|0,t[s],t[s+1],n);return n&&w(n,n.next)&&(D(n),n=n.next),n}function l(t,e=t){let i=e===t,n=t,a;do a=!1,n!==n.next&&(0===r.size||!r.has(n))&&(w(n,n.next)||0===k(n.prev,n,n.next))?((i||n===e)&&(e=n.prev),s=!0,D(n),n=n.prev,a=!0):(i||n!==e)&&(n=n.next,a=!i);while(a||n!==e)return e}let h=!1;function o(t,e){return t.x-e.x||t.y-e.y||(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)}let u=new Float64Array(0),c=0,d=[],f=[];function p(t,e){let i=t;do{let t=c++;d[t]=i;let r=1/0,s=1/0,n=-1/0,a=-1/0,l=0;do{let e=i.next;i.z=t,i.x<r&&(r=i.x),i.x>n&&(n=i.x),i.y<s&&(s=i.y),i.y>a&&(a=i.y),e.x<r&&(r=e.x),e.x>n&&(n=e.x),e.y<s&&(s=e.y),e.y>a&&(a=e.y),i=e}while(++l<16&&i!==e)f[t]=i;let h=4*t;u[h]=r,u[h+1]=s,u[h+2]=n,u[h+3]=a}while(i!==e)}function x(t){let e=f[t];for(;e.prev.next!==e;)e=e.next;return f[t]=e,e}function y(t){let e=d[t];for(;e.prev.next!==e;)e=e.next;return d[t]=e,e}let g=[],m=[],b=new Uint32Array(0),_=new Uint32Array(0),P=new Uint32Array(256);function v(t,e,i,r,s,n){P.fill(0);for(let e=0;e<t;e++)P[i[e]>>>n&255]++;let a=0;for(let t=0;t<256;t++){let e=P[t];P[t]=a,a+=e}for(let a=0;a<t;a++){let t=i[a],l=P[t>>>n&255]++;r[l]=e[a],s[l]=t}}function S(t,e,i,r,s){return(t=((t=((t=((t=((t=(t-i)*s|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(e=((e=((e=((e=((e=(e-r)*s|0)|e<<8)&0xff00ff)|e<<4)&0xf0f0f0f)|e<<2)&0x33333333)|e<<1)&0x55555555)<<1}function M(t,e,i,r,s,n,a,l){return(s-a)*(e-l)>=(t-a)*(n-l)&&(t-a)*(r-l)>=(i-a)*(e-l)&&(i-a)*(n-l)>=(s-a)*(r-l)}function k(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function w(t,e){return t.x===e.x&&t.y===e.y}function T(t,e,i,r,s=!0){let n=k(t,e,i),a=k(t,e,r),l=k(i,r,t),h=k(i,r,e);return(n>0&&a<0||n<0&&a>0)&&(l>0&&h<0||l<0&&h>0)||!!s&&!!(0===n&&C(t,i,e)||0===a&&C(t,r,e)||0===l&&C(i,t,r)||0===h&&C(i,e,r))}function C(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function R(t,e){return 0>k(t.prev,t,t.next)?k(t,e,t.next)>=0&&k(t,t.prev,e)>=0:0>k(t,e,t.prev)||0>k(t,t.next,e)}function z(t,e){let i=G(t.i,t.x,t.y),r=G(e.i,e.x,e.y),s=t.next,n=e.prev;return t.next=e,e.prev=t,i.next=s,s.prev=i,r.next=i,i.prev=r,n.next=r,r.prev=n,r}function B(t,e,i,r){let s=G(t,e,i);return r?(s.next=r.next,s.prev=r,r.next.prev=s,r.next=s):(s.prev=s,s.next=s),s}function D(t){var e,i;let r;t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),h&&(e=t.prev,i=t.next,r=4*e.z,i.x<u[r]&&(u[r]=i.x),i.y<u[r+1]&&(u[r+1]=i.y),i.x>u[r+2]&&(u[r+2]=i.x),i.y>u[r+3]&&(u[r+3]=i.y))}function G(t,e,i){return{i:t,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null}}t.i(329723);let q=n.default||n;function F(t,e,i,r,s,n,a){let l=q(t,e,2);if(!l)return;for(let t=0;t<l.length;t+=3)n[a++]=l[t]+s,n[a++]=l[t+1]+s,n[a++]=l[t+2]+s;let h=s*r;for(let e=0;e<t.length;e+=2)i[h]=t[e],i[h+1]=t[e+1],h+=r}t.s(["earcut",0,q],356499),t.s(["triangulateWithHoles",0,F],61784);let I=[],A={extension:{type:i.ExtensionType.ShapeBuilder,name:"polygon"},build(t,e){for(let i=0;i<t.points.length;i++)e[i]=t.points[i];return!0},triangulate(t,e,i,r,s,n){F(t,I,e,i,r,s,n)}};t.s(["buildPolygon",0,A],914560);let L={extension:{type:i.ExtensionType.ShapeBuilder,name:"rectangle"},build(t,e){let i=t.x,r=t.y,s=t.width,n=t.height;return!!(s>0&&n>0)&&(e[0]=i,e[1]=r,e[2]=i+s,e[3]=r,e[4]=i+s,e[5]=r+n,e[6]=i,e[7]=r+n,!0)},triangulate(t,e,i,r,s,n){let a=0;e[(r*=i)+a]=t[0],e[r+a+1]=t[1],a+=i,e[r+a]=t[2],e[r+a+1]=t[3],a+=i,e[r+a]=t[6],e[r+a+1]=t[7],a+=i,e[r+a]=t[4],e[r+a+1]=t[5],a+=i;let l=r/i;s[n++]=l,s[n++]=l+1,s[n++]=l+2,s[n++]=l+1,s[n++]=l+3,s[n++]=l+2}};t.s(["buildRectangle",0,L],536666);let O={extension:{type:i.ExtensionType.ShapeBuilder,name:"triangle"},build:(t,e)=>(e[0]=t.x,e[1]=t.y,e[2]=t.x2,e[3]=t.y2,e[4]=t.x3,e[5]=t.y3,!0),triangulate(t,e,i,r,s,n){let a=0;e[(r*=i)+a]=t[0],e[r+a+1]=t[1],a+=i,e[r+a]=t[2],e[r+a+1]=t[3],a+=i,e[r+a]=t[4],e[r+a+1]=t[5];let l=r/i;s[n++]=l,s[n++]=l+1,s[n++]=l+2}};t.s(["buildTriangle",0,O],324728)},204133,t=>{"use strict";var e=t.i(453042),i=t.i(72145),r=t.i(440477),s=t.i(388408),n=t.i(382827),a=t.i(906021),l=t.i(231519),h=t.i(128797);let o=[{offset:0,color:"white"},{offset:1,color:"black"}],u=class t{constructor(...e){this.uid=(0,a.uid)("fillGradient"),this._tick=0,this.type="linear",this.colorStops=[];let i=function(t){let e=t[0]??{};return("number"==typeof e||t[1])&&((0,l.deprecation)("8.5.2","use options object instead"),e={type:"linear",start:{x:t[0],y:t[1]},end:{x:t[2],y:t[3]},textureSpace:t[4],textureSize:t[5]??u.defaultLinearOptions.textureSize}),e}(e);i={..."radial"===i.type?t.defaultRadialOptions:t.defaultLinearOptions,...(0,h.definedProps)(i)},this._textureSize=i.textureSize,this._wrapMode=i.wrapMode,"radial"===i.type?(this.center=i.center,this.outerCenter=i.outerCenter??this.center,this.innerRadius=i.innerRadius,this.outerRadius=i.outerRadius,this.scale=i.scale,this.rotation=i.rotation):(this.start=i.start,this.end=i.end),this.textureSpace
1=i.textureSpace,this.type=i.type,i.colorStops.forEach(t=>{this.addColorStop(t.offset,t.color)})}addColorStop(t,i){return this.colorStops.push({offset:t,color:e.Color.shared.setValue(i).toHexa()}),this}buildLinearGradient(){if(this.texture)return;let{x:t,y:e}=this.start,{x:i,y:a}=this.end,l=i-t,h=a-e,u=l<0||h<0;if("clamp-to-edge"===this._wrapMode){if(l<0){let e=t;t=i,i=e,l*=-1}if(h<0){let t=e;e=a,a=t,h*=-1}}let f=this.colorStops.length?this.colorStops:o,p=this._textureSize,{canvas:x,context:y}=d(p,1),g=u?y.createLinearGradient(this._textureSize,0,0,0):y.createLinearGradient(0,0,this._textureSize,0);c(g,f),y.fillStyle=g,y.fillRect(0,0,p,1),this.texture=new n.Texture({source:new s.ImageSource({resource:x,addressMode:this._wrapMode})});let m=Math.sqrt(l*l+h*h),b=Math.atan2(h,l),_=new r.Matrix;_.scale(m/p,1),_.rotate(b),_.translate(t,e),"local"===this.textureSpace&&_.scale(p,p),this.transform=_}buildGradient(){!this.texture&&this._tick++,"linear"===this.type?this.buildLinearGradient():this.buildRadialGradient()}buildRadialGradient(){if(this.texture)return;let t=this.colorStops.length?this.colorStops:o,e=this._textureSize,{canvas:i,context:a}=d(e,e),{x:l,y:h}=this.center,{x:u,y:f}=this.outerCenter,p=this.innerRadius,x=this.outerRadius,y=u-x,g=f-x,m=e/(2*x),b=(l-y)*m,_=(h-g)*m,P=a.createRadialGradient(b,_,p*m,(u-y)*m,(f-g)*m,x*m);c(P,t),a.fillStyle=t[t.length-1].color,a.fillRect(0,0,e,e),a.fillStyle=P,a.translate(b,_),a.rotate(this.rotation),a.scale(1,this.scale),a.translate(-b,-_),a.fillRect(0,0,e,e),this.texture=new n.Texture({source:new s.ImageSource({resource:i,addressMode:this._wrapMode})});let v=new r.Matrix;"local"===this.textureSpace?v.scale(2*x,2*x):v.scale(1/m,1/m),v.translate(y,g),this.transform=v}destroy(){this.texture?.destroy(!0),this.texture=null,this.transform=null,this.colorStops=[],this.start=null,this.end=null,this.center=null,this.outerCenter=null}get styleKey(){return`fill-gradient-${this.uid}-${this._tick}`}};function c(t,e){for(let i=0;i<e.length;i++){let r=e[i];t.addColorStop(r.offset,r.color)}}function d(t,e){let r=i.DOMAdapter.get().createCanvas(t,e),s=r.getContext("2d");return{canvas:r,context:s}}u.defaultLinearOptions={start:{x:0,y:0},end:{x:0,y:1},colorStops:[],textureSpace:"local",type:"linear",textureSize:256,wrapMode:"clamp-to-edge"},u.defaultRadialOptions={center:{x:.5,y:.5},innerRadius:0,outerRadius:.5,colorStops:[],scale:1,rotation:0,textureSpace:"local",type:"radial",textureSize:256,wrapMode:"clamp-to-edge"},t.s(["FillGradient",0,u])},227188,t=>{"use strict";var e=t.i(440477),i=t.i(906021);let r={repeat:{addressModeU:"repeat",addressModeV:"repeat"},"repeat-x":{addressModeU:"repeat",addressModeV:"clamp-to-edge"},"repeat-y":{addressModeU:"clamp-to-edge",addressModeV:"repeat"},"no-repeat":{addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge"}};t.s(["FillPattern",0,class{constructor(t,s){this.uid=(0,i.uid)("fillPattern"),this._tick=0,this.transform=new e.Matrix;const n=!function(t){return void 0!==t.texture}(t)?{texture:t,repetition:s}:t;this.texture=n.texture,this.textureSpace=n.textureSpace??"global";const a=n.repetition;a&&(this.texture.source.style.addressModeU=r[a].addressModeU,this.texture.source.style.addressModeV=r[a].addressModeV)}setTransform(t){if(t){if(this.transform.equals(t))return;this.transform.copyFrom(t)}else{if(this.transform.isIdentity())return;this.transform.identity()}this._tick++}get texture(){return this._texture}set texture(t){this._texture!==t&&(this._texture=t,this._tick++)}get styleKey(){return`fill-pattern-${this.uid}-${this._tick}`}destroy(){this.texture.destroy(!0),this.texture=null}}])},412307,549929,419941,184937,961730,811848,435696,657360,952154,987617,63538,521497,694727,397980,72676,233617,t=>{"use strict";var e=t.i(800597),i=t.i(906021),r=t.i(412263),s=t.i(915924),n=t.i(845474),a=t.i(849992),l=t.i(439877),h=t.i(583092),o=t.i(160098),u=t.i(63038),c=t.i(116447),d=t.i(301941),f=t.i(419109),p=t.i(138628),x=t.i(530697),y=t.i(231519),g=t.i(406011),m=t.i(624905);class b{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}
1reset(){this.batches&&this.batches.forEach(t=>{g.BigPool.return(t)}),this.graphicsData&&g.BigPool.return(this.graphicsData),this.isBatchable=!1,this.context=null,this.batches.length=0,this.geometryData.indices.length=0,this.geometryData.vertices.length=0,this.geometryData.uvs.length=0,this.graphicsData=null}destroy(){this.reset(),this.batches=null,this.geometryData=null}}class _{constructor(){this.instructions=new p.InstructionSet}init(t){let e=t.maxTextures;this.batcher?this.batcher._updateMaxTextures(e):this.batcher=new f.DefaultBatcher({maxTextures:e}),this.instructions.reset()}get geometry(){return(0,y.deprecation)(y.v8_3_4,"GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead."),this.batcher.geometry}destroy(){this.batcher.destroy(),this.instructions.destroy(),this.batcher=null,this.instructions=null}}let P=class t{constructor(t){this._renderer=t,this._managedContexts=new x.GCManagedHash({renderer:t,type:"resource",name:"graphicsContext"})}init(e){t.defaultOptions.bezierSmoothness=e?.bezierSmoothness??t.defaultOptions.bezierSmoothness}getContextRenderData(t){return t._gpuData[this._renderer.uid].graphicsData||this._initContextRenderData(t)}updateGpuContext(t){let e=!!t._gpuData[this._renderer.uid],i=t._gpuData[this._renderer.uid]||this._initContext(t);if(t.dirty||!e){e&&i.reset(),(0,m.buildContextBatches)(t,i);let r=t.batchMode;t.customShader||"no-batch"===r?i.isBatchable=!1:"auto"===r?i.isBatchable=i.geometryData.vertices.length<400:i.isBatchable=!0,t.dirty=!1}return i}getGpuContext(t){return t._gpuData[this._renderer.uid]||this._initContext(t)}_initContextRenderData(t){let e=g.BigPool.get(_,{maxTextures:this._renderer.limits.maxBatchableTextures}),i=t._gpuData[this._renderer.uid],{batches:r,geometryData:s}=i;i.graphicsData=e;let n=s.vertices.length,a=s.indices.length;for(let t=0;t<r.length;t++)r[t].applyTransform=!1;let l=e.batcher;l.ensureAttributeBuffer(n),l.ensureIndexBuffer(a),l.begin();for(let t=0;t<r.length;t++){let e=r[t];l.add(e)}l.finish(e.instructions);let h=l.geometry;h.indexBuffer.setDataWithSize(l.indexBuffer,l.indexSize,!0),h.buffers[0].setDataWithSize(l.attributeBuffer.float32View,l.attributeSize,!0);let o=l.batches;for(let t=0;t<o.length;t++){let e=o[t];e.bindGroup=(0,d.getTextureBatchBindGroup)(e.textures.textures,e.textures.count,this._renderer.limits.maxBatchableTextures)}return e}_initContext(t){let e=new b;return e.context=t,t._gpuData[this._renderer.uid]=e,this._managedContexts.add(t),e}destroy(){this._managedContexts.destroy(),this._renderer=null}};function v(t,e,i,r,s,n,a,l,h,o){var u,c,d;let f=(1-Math.min(.99,Math.max(0,o??P.defaultOptions.bezierSmoothness)))/1;return f*=f,function t(e,i,r,s,n,a,l,h,o,u,c){if(c>8)return;let d=(e+r)/2,f=(i+s)/2,p=(r+n)/2,x=(s+a)/2,y=(n+l)/2,g=(a+h)/2,m=(d+p)/2,b=(f+x)/2,_=(p+y)/2,P=(x+g)/2,v=(m+_)/2,S=(b+P)/2;if(c>0){let t=l-e,c=h-i,d=Math.abs((r-l)*c-(s-h)*t),f=Math.abs((n-l)*c-(a-h)*t);if(d>11920929e-14&&f>11920929e-14){if((d+f)*(d+f)<=u*(t*t+c*c))return void o.push(v,S)}else if(d>11920929e-14){if(d*d<=u*(t*t+c*c))return void o.push(v,S)}else if(f>11920929e-14){if(f*f<=u*(t*t+c*c))return void o.push(v,S)}else if((t=v-(e+l)/2)*t+(c=S-(i+h)/2)*c<=u)return void o.push(v,S)}t(e,i,d,f,m,b,v,S,o,u,c+1),t(v,S,_,P,y,g,l,h,o,u,c+1)}(e,i,r,s,n,a,u=l,c=h,d=t,f,0),d.push(u,c),t}function S(t,e,i,r,s,n,a,l){var h,o,u,c,d,f,p;let x=(1-Math.min(.99,Math.max(0,l??P.defaultOptions.bezierSmoothness)))/1;return x*=x,h=e,o=i,u=r,c=s,d=n,f=a,function t(e,i,r,s,n,a,l,h,o){if(o>8)return;let u=(i+s)/2,c=(r+n)/2,d=(s+a)/2,f=(n+l)/2,p=(u+d)/2,x=(c+f)/2,y=a-i,g=l-r,m=Math.abs((s-a)*g-(n-l)*y);if(m>11920929e-14){if(m*m<=h*(y*y+g*g))return void e.push(p,x)}else if((y=p-(i+a)/2)*y+(g=x-(r+l)/2)*g<=h)return void e.push(p,x);t(e,i,r,u,c,p,x,h,o+1),t(e,p,x,d,f,a,l,h,o+1)}(p=t,h,o,u,c,d,f,x,0),p.push(d,f),t}function M(t,e,i,r,s,n,a,l){let h=Math.abs(s-n);!a&&s>n?h=2*Math.PI-h:a&&n>s&&(h=2*Math.PI-h),l||(l=Math.max(6,Math.floor(6*Math.pow(r,1/3)*(h/Math.PI))));let o=h/(l=Math.max(l,3)),u=s;o*=a?-1:1;for(let s=0;s<l+1;s++){let s=e+Math.cos(u)*r,n=i+Math.sin(u)*r;t.push(s,n),u+=o}}function k(t,e,i,r,s,n){let a=t[t.length-2],l=t[t.length-1]-i,h=a-e,o=s-i,u=r-e,c=Math.abs(l*u-h*o);if(c<1e-8||0===n){(t[t.length-2]!==e||t[t.length-1]!==i)&&t.push(e,i);return}let d=l*l+h*h,f=o*o+u*u,p=l*o+h*u,x=n*Math.sqrt(d)/c,y=n*Math.sqrt(f)/c,g=x*p/d,m=y*p/f,b=x*u+y*h,_=x*o+y*l,P=M
1ath.atan2(l*(y+g)-_,h*(y+g)-b),v=Math.atan2(o*(x+m)-_,u*(x+m)-b);M(t,b+e,_+i,n,P,v,h*o>u*l)}P.extension={type:[c.ExtensionType.WebGLSystem,c.ExtensionType.WebGPUSystem],name:"graphicsContext"},P.defaultOptions={bezierSmoothness:.5},t.s(["GpuGraphicsContext",0,b,"GraphicsContextRenderData",0,_,"GraphicsContextSystem",0,P],549929),t.s(["buildAdaptiveBezier",0,v],419941),t.s(["buildAdaptiveQuadratic",0,S],184937),t.s(["buildArc",0,M],961730),t.s(["buildArcTo",0,k],811848);let w=2*Math.PI,T={centerX:0,centerY:0,ang1:0,ang2:0},C=({x:t,y:e},i,r,s,n,a,l,h)=>{let o=s*(t*=i)-n*(e*=r),u=n*t+s*e;return h.x=o+a,h.y=u+l,h},R=(t,e,i,r)=>{let s=t*i+e*r;return s>1&&(s=1),s<-1&&(s=-1),(t*r-e*i<0?-1:1)*Math.acos(s)};function z(t,e,i,r,s,n,a,l=0,h=0,o=0){var u,c;let d,f,p,x,y,g,m,b,_,P,S;if(0===n||0===a)return;let M=Math.sin(l*w/360),k=Math.cos(l*w/360),B=k*(e-r)/2+M*(i-s)/2,D=-M*(e-r)/2+k*(i-s)/2;if(0===B&&0===D)return;let G=Math.pow(B,2)/Math.pow(n=Math.abs(n),2)+Math.pow(D,2)/Math.pow(a=Math.abs(a),2);G>1&&(n*=Math.sqrt(G),a*=Math.sqrt(G)),u=n,c=a,d=Math.pow(u,2),f=Math.pow(c,2),p=Math.pow(B,2),(y=d*f-d*(x=Math.pow(D,2))-f*p)<0&&(y=0),y/=d*x+f*p,g=(y=Math.sqrt(y)*(h===o?-1:1))*u/c*D,m=-(y*c)/u*B,P=R(1,0,b=(B-g)/u,_=(D-m)/c),S=R(b,_,(-B-g)/u,(-D-m)/c),0===o&&S>0&&(S-=w),1===o&&S<0&&(S+=w),T.centerX=k*g-M*m+(e+r)/2,T.centerY=M*g+k*m+(i+s)/2,T.ang1=P,T.ang2=S;let{ang1:q,ang2:F}=T,{centerX:I,centerY:A}=T,L=Math.abs(F)/(w/4);1e-7>Math.abs(1-L)&&(L=1);let O=Math.max(Math.ceil(L),1);F/=O;let V=t[t.length-2],N=t[t.length-1],E={x:0,y:0};for(let e=0;e<O;e++){let e=function(t,e){let i=-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=1.5707963267948966===e?.551915024494:i,s=Math.cos(t),n=Math.sin(t),a=Math.cos(t+e),l=Math.sin(t+e);return[{x:s-n*r,y:n+s*r},{x:a+l*r,y:l-a*r},{x:a,y:l}]}(q,F),{x:i,y:r}=C(e[0],n,a,k,M,I,A,E),{x:s,y:l}=C(e[1],n,a,k,M,I,A,E),{x:h,y:o}=C(e[2],n,a,k,M,I,A,E);v(t,V,N,i,r,s,l,h,o),V=h,N=o,q+=F}}function B(t,e,i){let r=(t,e)=>{let i=e.x-t.x,r=e.y-t.y,s=Math.sqrt(i*i+r*r);return{len:s,nx:i/s,ny:r/s}},s=(e,i)=>{0===e?t.moveTo(i.x,i.y):t.lineTo(i.x,i.y)},n=e[e.length-1];for(let a=0;a<e.length;a++){let l,h=e[a%e.length],o=h.radius??i;if(o<=0){s(a,h),n=h;continue}let u=e[(a+1)%e.length],c=r(h,n),d=r(h,u);if(c.len<1e-4||d.len<1e-4){s(a,h),n=h;continue}let f=Math.asin(c.nx*d.ny-c.ny*d.nx),p=1,x=!1;c.nx*d.nx- -(c.ny*d.ny)<0?f<0?f=Math.PI+f:(f=Math.PI-f,p=-1,x=!0):f>0&&(p=-1,x=!0);let y=f/2,g=Math.abs(Math.cos(y)*o/Math.sin(y));l=g>Math.min(c.len/2,d.len/2)?Math.abs((g=Math.min(c.len/2,d.len/2))*Math.sin(y)/Math.cos(y)):o;let m=h.x+d.nx*g+-d.ny*l*p,b=h.y+d.ny*g+d.nx*l*p,_=Math.atan2(c.ny,c.nx)+Math.PI/2*p,P=Math.atan2(d.ny,d.nx)-Math.PI/2*p;0===a&&t.moveTo(m+Math.cos(_)*l,b+Math.sin(_)*l),t.arc(m,b,l,_,P,x),n=h}}function D(t,e,i,r){let s=(t,e)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),n=(t,e,i)=>({x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}),a=e.length;for(let l=0;l<a;l++){let h,o,u=e[(l+1)%a],c=u.radius??i;if(c<=0){0===l?t.moveTo(u.x,u.y):t.lineTo(u.x,u.y);continue}let d=e[l],f=e[(l+2)%a],p=s(d,u);h=p<1e-4?u:n(u,d,Math.min(p/2,c)/p);let x=s(f,u);o=x<1e-4?u:n(u,f,Math.min(x/2,c)/x),0===l?t.moveTo(h.x,h.y):t.lineTo(h.x,h.y),t.quadraticCurveTo(u.x,u.y,o.x,o.y,r)}}t.s(["buildArcToSvg",0,z],435696),t.s(["roundedShapeArc",0,B,"roundedShapeQuadraticCurve",0,D],657360);let G=new h.Rectangle;class q{constructor(t){this.shapePrimitives=[],this._currentPoly=null,this._bounds=new u.Bounds,this._graphicsPath2D=t,this.signed=t.checkForHoles}moveTo(t,e){return this.startPoly(t,e),this}lineTo(t,e){this._ensurePoly();let i=this._currentPoly.points,r=i[i.length-2],s=i[i.length-1];return(r!==t||s!==e)&&i.push(t,e),this}arc(t,e,i,r,s,n){return this._ensurePoly(!1),M(this._currentPoly.points,t,e,i,r,s,n),this}arcTo(t,e,i,r,s){return this._ensurePoly(),k(this._currentPoly.points,t,e,i,r,s),this}arcToSvg(t,e,i,r,s,n,a){return z(this._currentPoly.points,this._currentPoly.lastX,this._currentPoly.lastY,n,a,t,e,i,r,s),this}bezierCurveTo(t,e,i,r,s,n,a){this._ensurePoly();let l=this._currentPoly;return v(this._currentPoly.points,l.lastX,l.lastY,t,e,i,r,s,n,a),this}quadraticCurveTo(t,e,i,r,s){this._ensurePoly();let n=this._currentPoly;return S(this._currentPoly.points,n.lastX,n.lastY,t,e,i,r,s),this}closePath(){return this.endPoly(!0),this}addPath(t,e){this.endPoly(),e&&!e.isIdentity()&&(t=t.clone(!0)).transform(e);let i=this.shapePrimitives,r=i.length;for(let e=0;e<t.instructions.length;e++){let i=t.instructions[e];this[i.action](...i.data)}if(t.checkForHoles&&i.length-r>1){let t=null;for(let e=r;e<i.length;e++){let r=i[e];if("polygon"===r.shape.type){let s=r.shape,n=t?.shape;n&&n.containsPolygon(s)?(t.holes||(t.holes=[]),t.holes.push(r),i.copyWithin(e,e+1),i.length--,e--):t=r}}}return this}finish(t=!1){this.endPoly(t)}rect(t,e,i,r,s){return this.drawShape(new h.Rectangle(t,e,i,r),s),this}circle(t,e,i,r){return this.drawShape(new n.Circle(t,e,i),r),this}poly(t,e,i){let r=new l.Polygon(t);return r.closePath=e,this.drawShape(r,i),this}regularPoly(t,e,i,r,s=0,n){let a=-1*Math.PI/2+s,l=2*Math.PI/(r=Math.max(0|r,3)),h=[];for(let s=0;s<r;s++){let r=a-s*l;h.push(t+i*Math.cos(r),e+i*Math.sin(r))}return this.poly(h,!0,n),this}
1roundPoly(t,e,i,r,s,n=0,a){if(r=Math.max(0|r,3),s<=0)return this.regularPoly(t,e,i,r,n);s=Math.min(s,i*Math.sin(Math.PI/r)-.001);let l=-1*Math.PI/2+n,h=2*Math.PI/r,o=(r-2)*Math.PI/r/2;for(let n=0;n<r;n++){let r=n*h+l,u=t+i*Math.cos(r),c=e+i*Math.sin(r),d=r+Math.PI+o,f=r-Math.PI-o,p=u+s*Math.cos(d),x=c+s*Math.sin(d),y=u+s*Math.cos(f),g=c+s*Math.sin(f);0===n?this.moveTo(p,x):this.lineTo(p,x),this.quadraticCurveTo(u,c,y,g,a)}return this.closePath()}roundShape(t,e,i=!1,r){return t.length<3?this:(i?D(this,t,e,r):B(this,t,e),this.closePath())}filletRect(t,e,i,r,s){if(0===s)return this.rect(t,e,i,r);let n=Math.min(i,r)/2,a=Math.min(n,Math.max(-n,s)),l=t+i,h=e+r,o=a<0?-a:0,u=Math.abs(a);return this.moveTo(t,e+u).arcTo(t+o,e+o,t+u,e,u).lineTo(l-u,e).arcTo(l-o,e+o,l,e+u,u).lineTo(l,h-u).arcTo(l-o,h-o,t+i-u,h,u).lineTo(t+u,h).arcTo(t+o,h-o,t,h-u,u).closePath()}chamferRect(t,e,i,r,s,n){if(s<=0)return this.rect(t,e,i,r);let a=Math.min(s,Math.min(i,r)/2),l=t+i,h=e+r,o=[t+a,e,l-a,e,l,e+a,l,h-a,l-a,h,t+a,h,t,h-a,t,e+a];for(let t=o.length-1;t>=2;t-=2)o[t]===o[t-2]&&o[t-1]===o[t-3]&&o.splice(t-1,2);return this.poly(o,!0,n)}ellipse(t,e,i,r,s){return this.drawShape(new a.Ellipse(t,e,i,r),s),this}roundRect(t,e,i,r,s,n){return this.drawShape(new o.RoundedRectangle(t,e,i,r,s),n),this}drawShape(t,e){return this.endPoly(),this.shapePrimitives.push({shape:t,transform:e}),this}startPoly(t,e){let i=this._currentPoly;return i&&this.endPoly(),(i=new l.Polygon).points.push(t,e),this._currentPoly=i,this}endPoly(t=!1){let e=this._currentPoly;return e&&e.points.length>2&&(e.closePath=t,this.shapePrimitives.push({shape:e})),this._currentPoly=null,this}_ensurePoly(t=!0){if(!this._currentPoly&&(this._currentPoly=new l.Polygon,t)){let t=this.shapePrimitives[this.shapePrimitives.length-1];if(t){let e=t.shape.x,i=t.shape.y;if(t.transform&&!t.transform.isIdentity()){let r=t.transform,s=e;e=r.a*e+r.c*i+r.tx,i=r.b*s+r.d*i+r.ty}this._currentPoly.points.push(e,i)}else this._currentPoly.points.push(0,0)}}buildPath(){let t=this._graphicsPath2D;this.shapePrimitives.length=0,this._currentPoly=null;for(let e=0;e<t.instructions.length;e++){let i=t.instructions[e];this[i.action](...i.data)}this.finish()}get bounds(){let t=this._bounds;t.clear();let e=this.shapePrimitives;for(let i=0;i<e.length;i++){let r=e[i],s=r.shape.getBounds(G);r.transform?t.addRect(s,r.transform):t.addRect(s)}return t}}t.s(["ShapePath",0,q],952154);class F{constructor(t,e=!1){this.instructions=[],this.uid=(0,i.uid)("graphicsPath"),this._dirty=!0,this.checkForHoles=e,"string"==typeof t?(0,s.parseSVGPath)(t,this):this.instructions=t?.slice()??[]}get shapePath(){return this._shapePath||(this._shapePath=new q(this)),this._dirty&&(this._dirty=!1,this._shapePath.buildPath()),this._shapePath}addPath(t,e){return t=t.clone(),this.instructions.push({action:"addPath",data:[t,e]}),this._dirty=!0,this}arc(...t){return this.instructions.push({action:"arc",data:t}),this._dirty=!0,this}arcTo(...t){return this.instructions.push({action:"arcTo",data:t}),this._dirty=!0,this}arcToSvg(...t){return this.instructions.push({action:"arcToSvg",data:t}),this._dirty=!0,this}bezierCurveTo(...t){return this.instructions.push({action:"bezierCurveTo",data:t}),this._dirty=!0,this}bezierCurveToShort(t,i,r,s,n){let a=this.instructions[this.instructions.length-1],l=this.getLastPoint(e.Point.shared),h=0,o=0;if(a&&"bezierCurveTo"===a.action){h=a.data[2],o=a.data[3];let t=l.x,e=l.y;h=t+(t-h),o=e+(e-o)}else h=l.x,o=l.y;return this.instructions.push({action:"bezierCurveTo",data:[h,o,t,i,r,s,n]}),this._dirty=!0,this}closePath(){return this.instructions.push({action:"closePath",data:[]}),this._dirty=!0,this}ellipse(...t){return this.instructions.push({action:"ellipse",data:t}),this._dirty=!0,this}lineTo(...t){return this.instructions.push({action:"lineTo",data:t}),this._dirty=!0,this}moveTo(...t){return this.instructions.push({action:"moveTo",data:t}),this}quadraticCurveTo(...t){return this.instructions.push({action:"quadraticCurveTo",data:t}),this._dirty=!0,this}quadraticCurveToShort(t,i,r){let s=this.instructions[this.instructions.length-1],n=this.getLastPoint(e.Point.shared),a=0,l=0;if(s&&"quadraticCurveTo"===s.action){a=s.data[0],l=s.data[1];let t=n.x,e=n.y;a=t+(t-a),l=e+(e-l)}else a=n.x,l=n.y;return this.instructions.push({action:"quadraticCurveTo",data:[a,l,t,i,r]}),this._dirty=!0,this}rect(t,e,i,r,s){return this.instructions.push({action:"rect",data:[t,e,i,r,s]}),this._dirty=!0,this}circle(t,e,i,r){return this.instructions.push({action:"circle",data:[t,e,i,r]}),this._dirty=!0,this}
1roundRect(...t){return this.instructions.push({action:"roundRect",data:t}),this._dirty=!0,this}poly(...t){return this.instructions.push({action:"poly",data:t}),this._dirty=!0,this}regularPoly(...t){return this.instructions.push({action:"regularPoly",data:t}),this._dirty=!0,this}roundPoly(...t){return this.instructions.push({action:"roundPoly",data:t}),this._dirty=!0,this}roundShape(...t){return this.instructions.push({action:"roundShape",data:t}),this._dirty=!0,this}filletRect(...t){return this.instructions.push({action:"filletRect",data:t}),this._dirty=!0,this}chamferRect(...t){return this.instructions.push({action:"chamferRect",data:t}),this._dirty=!0,this}star(t,e,i,r,s,n,a){s||(s=r/2);let l=-1*Math.PI/2+n,h=2*i,o=2*Math.PI/h,u=[];for(let i=0;i<h;i++){let n=i%2?s:r,a=i*o+l;u.push(t+n*Math.cos(a),e+n*Math.sin(a))}return this.poly(u,!0,a),this}clone(t=!1){let e=new F;if(e.checkForHoles=this.checkForHoles,t)for(let t=0;t<this.instructions.length;t++){let i=this.instructions[t];e.instructions.push({action:i.action,data:i.data.slice()})}else e.instructions=this.instructions.slice();return e}clear(){return this.instructions.length=0,this._dirty=!0,this}transform(t){if(t.isIdentity())return this;let e=t.a,i=t.b,s=t.c,n=t.d,a=t.tx,l=t.ty,h=0,o=0,u=0,c=0,d=0,f=0,p=0,x=0;for(let y=0;y<this.instructions.length;y++){let g=this.instructions[y],m=g.data;switch(g.action){case"moveTo":case"lineTo":h=m[0],o=m[1],m[0]=e*h+s*o+a,m[1]=i*h+n*o+l;break;case"bezierCurveTo":u=m[0],c=m[1],d=m[2],f=m[3],h=m[4],o=m[5],m[0]=e*u+s*c+a,m[1]=i*u+n*c+l,m[2]=e*d+s*f+a,m[3]=i*d+n*f+l,m[4]=e*h+s*o+a,m[5]=i*h+n*o+l;break;case"quadraticCurveTo":u=m[0],c=m[1],h=m[2],o=m[3],m[0]=e*u+s*c+a,m[1]=i*u+n*c+l,m[2]=e*h+s*o+a,m[3]=i*h+n*o+l;break;case"arcToSvg":h=m[5],o=m[6],p=m[0],x=m[1],m[0]=e*p+s*x,m[1]=i*p+n*x,m[5]=e*h+s*o+a,m[6]=i*h+n*o+l;break;case"circle":m[4]=I(m[3],t);break;case"rect":m[4]=I(m[4],t);break;case"ellipse":m[8]=I(m[8],t);break;case"roundRect":case"regularPoly":case"chamferRect":m[5]=I(m[5],t);break;case"addPath":m[0].transform(t);break;case"poly":m[2]=I(m[2],t);break;case"closePath":break;default:(0,r.warn)("unknown transform action",g.action)}}return this._dirty=!0,this}get bounds(){return this.shapePath.bounds}getLastPoint(t){let e=this.instructions.length-1,i=this.instructions[e];if(!i)return t.x=0,t.y=0,t;for(;"closePath"===i.action;){if(--e<0)return t.x=0,t.y=0,t;i=this.instructions[e]}switch(i.action){case"moveTo":case"lineTo":t.x=i.data[0],t.y=i.data[1];break;case"quadraticCurveTo":t.x=i.data[2],t.y=i.data[3];break;case"bezierCurveTo":t.x=i.data[4],t.y=i.data[5];break;case"arc":case"arcToSvg":t.x=i.data[5],t.y=i.data[6];break;case"addPath":i.data[0].getLastPoint(t)}return t}}function I(t,e){return t?t.prepend(e):e.clone()}t.s(["GraphicsPath",0,F],412307);var A=t.i(453042),L=t.i(204133);function O(t,e,i){let r=t.getAttribute(e);return r?Number(r):i}function V(t,e){let i=t.querySelectorAll("defs");for(let t=0;t<i.length;t++){let r=i[t];for(let t=0;t<r.children.length;t++){let i=r.children[t];switch(i.nodeName.toLowerCase()){case"lineargradient":e.defs[i.id]=function(t){let e=N(t,"x1",0),i=N(t,"y1",0),r=N(t,"x2",1),s=N(t,"y2",0);return new L.FillGradient({type:"linear",start:{x:e,y:i},end:{x:r,y:s},textureSpace:E(t),colorStops:H(t)})}(i);break;case"radialgradient":e.defs[i.id]=function(t){let e=N(t,"cx",.5),i=N(t,"cy",.5),r=N(t,"r",.5),s=N(t,"fx",e),n=N(t,"fy",i),a=N(t,"fr",0);return new L.FillGradient({type:"radial",center:{x:s,y:n},innerRadius:a,outerCenter:{x:e,y:i},outerRadius:r,textureSpace:E(t),colorStops:H(t)})}(i)}}}}function N(t,e,i){let r=t.getAttribute(e);if(r?.trim().endsWith("%")){let t=Number(r.trim().slice(0,-1));return Number.isNaN(t)?i:t/100}return O(t,e,i)}function E(t){return"objectBoundingBox"===(t.getAttribute("gradientUnits")||"objectBoundingBox")?"local":"global"}function H(t){let e=[];for(let i=0;i<t.children.length;i++){let r=t.children[i],s=N(r,"offset",0),n=A.Color.shared.setValue(r.getAttribute("stop-color")).toNumber();e.push({offset:s,color:n})}return e}function U(t){let e=t.match(/url\s*\(\s*['"]?\s*#([^'"\s)]+)\s*['"]?\s*\)/i);return e?e[1]:""}t.s(["parseSVGFloatAttribute",0,O],987617),t.s(["parseSVGDefinitions",0,V],63538),t.s(["extractSvgUrlId",0,U],521497);let W={fill:{type:"paint",default:0},"fill-opacity":{type:"number",default:1},stroke:{type:"paint",default:0},"stroke-width":{type:"number",default:1},"stroke-opacity":{type:"number",default:1},"stroke-linecap":{type:"string",default:"butt"},"stroke-linejoin":{type:"string",default:"miter"},"stroke-miterlimit":{type:"number",default:10},"stroke-dasharray":{type:"string",default:"none"},"stroke-dashoffset":{type:"number",default:0},opacity:{type:"number",default:1}};function $(t,e){let i=t.getAttribute("style"),r={},s={},n={strokeStyle:r,fillStyle:s,useFill:!1,useStroke:!1};for(let i in W){let r=t.getAttribute(i);r&&Z(e,n,i,r.trim())}if(i){let t=i.split(";");for(let i=0;i<t.length;i++){let[r,s]=t[i].trim().split(":");W[r]&&Z(e,n,r,s.trim())}}return{strokeStyle:n.useStroke?r:null,fillStyle:n.useFill?s:null,useFill:n.useFill,useStroke:n.useStroke}}
1function Z(t,e,i,r){switch(i){case"stroke":if("none"!==r){if(r.startsWith("url(")){let i=U(r);e.strokeStyle.fill=t.defs[i]}else e.strokeStyle.color=A.Color.shared.setValue(r).toNumber();e.useStroke=!0}break;case"stroke-width":e.strokeStyle.width=Number(r);break;case"fill":if("none"!==r){if(r.startsWith("url(")){let i=U(r);e.fillStyle.fill=t.defs[i]}else e.fillStyle.color=A.Color.shared.setValue(r).toNumber();e.useFill=!0}break;case"fill-opacity":e.fillStyle.alpha=Number(r);break;case"stroke-opacity":e.strokeStyle.alpha=Number(r);break;case"opacity":e.fillStyle.alpha=Number(r),e.strokeStyle.alpha=Number(r)}}function j(t){if(t.length<=2)return!0;let e=t.map(t=>t.area).sort((t,e)=>e-t),[i,r]=e,s=e[e.length-1];return!(i/r>3)||!(r/s<2)}function X(t){return t.split(/(?=[Mm])/).filter(t=>t.trim().length>0)}function Y(t){let e=t.match(/[-+]?[0-9]*\.?[0-9]+/g);if(!e||e.length<4)return 0;let i=e.map(Number),r=[],s=[];for(let t=0;t<i.length;t+=2)t+1<i.length&&(r.push(i[t]),s.push(i[t+1]));if(0===r.length||0===s.length)return 0;let n=Math.min(...r),a=Math.min(...s);return(Math.max(...r)-n)*(Math.max(...s)-a)}function K(t,e){for(let i of new F(t,!1).instructions)e.instructions.push(i)}t.s(["parseSVGStyle",0,$,"styleAttributes",0,W],694727),t.s(["checkForNestedPattern",0,j,"getFillInstructionData",0,function(t,e=0){let i=t.instructions[e];if(!i||"fill"!==i.action)throw Error(`Expected fill instruction at index ${e}, got ${i?.action||"undefined"}`);return i.data}],397980),t.s(["appendSVGPath",0,K,"calculatePathArea",0,Y,"extractSubpaths",0,X],72676),t.s(["SVGParser",0,function(t,e){if("string"==typeof t){let e=document.createElement("div");e.innerHTML=t.trim(),t=e.querySelector("svg")}let i={context:e,defs:{},path:new F};V(t,i);let s=t.children,{fillStyle:n,strokeStyle:a}=$(t,i);for(let t=0;t<s.length;t++){let e=s[t];"defs"!==e.nodeName.toLowerCase()&&function t(e,i,s,n){let a,l,h,o,u,c,d,f,p,x,y,g,m,b,_,P,v=e.children,{fillStyle:S,strokeStyle:M}=$(e,i);S&&s?s={...s,...S}:S&&(s=S),M&&n?n={...n,...M}:M&&(n=M);let k=!s&&!n;switch(k&&(s={color:0}),e.nodeName.toLowerCase()){case"path":{m=e.getAttribute("d");let t=e.getAttribute("fill-rule"),r=X(m),a=r.length>1;if("evenodd"===t&&a){let t=r.map(t=>({path:t,area:Y(t)}));if(t.sort((t,e)=>e.area-t.area),r.length>3||!j(t))for(let e=0;e<t.length;e++){let r=t[e],a=0===e;i.context.beginPath();let l=new F(void 0,!0);K(r.path,l),i.context.path(l),a?(s&&i.context.fill(s),n&&i.context.stroke(n)):i.context.cut()}else for(let e=0;e<t.length;e++){let r=t[e],a=e%2==1;i.context.beginPath();let l=new F(void 0,!0);K(r.path,l),i.context.path(l),a?i.context.cut():(s&&i.context.fill(s),n&&i.context.stroke(n))}}else b=new F(m,!t||"evenodd"===t),i.context.path(b),s&&i.context.fill(s),n&&i.context.stroke(n);break}case"circle":d=O(e,"cx",0),f=O(e,"cy",0),p=O(e,"r",0),i.context.ellipse(d,f,p,p),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"rect":a=O(e,"x",0),l=O(e,"y",0),_=O(e,"width",0),P=O(e,"height",0),x=O(e,"rx",0),y=O(e,"ry",0),x||y?i.context.roundRect(a,l,_,P,x||y):i.context.rect(a,l,_,P),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"ellipse":d=O(e,"cx",0),f=O(e,"cy",0),x=O(e,"rx",0),y=O(e,"ry",0),i.context.beginPath(),i.context.ellipse(d,f,x,y),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"line":h=O(e,"x1",0),o=O(e,"y1",0),u=O(e,"x2",0),c=O(e,"y2",0),i.context.beginPath(),i.context.moveTo(h,o),i.context.lineTo(u,c),n&&i.context.stroke(n);break;case"polygon":g=e.getAttribute("points").match(/-?\d+/g).map(t=>parseInt(t,10)),i.context.poly(g,!0),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"polyline":g=e.getAttribute("points").match(/-?\d+/g).map(t=>parseInt(t,10)),i.context.poly(g,!1),n&&i.context.stroke(n);break;case"g":case"svg":break;default:(0,r.warn)(`[SVG parser] <${e.nodeName}> elements unsupported`)}k&&(s=null);for(let e=0;e<v.length;e++)t(v[e],i,s,n)}(e,i,n,a)}return e}],233617)},915924,845474,849992,t=>{"use strict";let e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi,r=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;var s=t.i(412263);t.s(["parseSVGPath",0,function(t,n){let a,l=(a=[],t.replace(i,(t,i,s)=>{let n,l=i.toLowerCase(),h=i,o=(n=s.match(r))?n.map(Number):[];for("m"===l&&o.length>2&&(a.push([h,...o.splice(0,2)]),l="l",h="m"===h?"l":"L");;){if(o.length===e[l])return a.push([h,...o]),"";if(o.length<e[l])throw Error("malformed path data");a.push([h,...o.splice(0,e[l])])}}),a),h=[],o=null,u=0,c=0;for(let t=0;t<l.length;t++){let e=l[t],i=e[0];switch(i){case"M":u=e[1],c=e[2],n.moveTo(u,c);break;case"m":u+=e[1],c+=e[2],n.moveTo(u,c);break;case"H":u=e[1],n.lineTo(u,c);break;case"h":u+=e[1],n.lineTo(u,c);break;case"V":c=e[1],n.lineTo(u,c);break;case"v":c+=e[1],n.lineTo(u,c);break;case"L":u=e[1],c=e[2],n.lineTo(u,c);break;case"l":u+=e[1],c+=e[2],n.lineTo(u,c);break;case"C":u=e[5],c=e[6],n.bezierCurveTo(e[1],e[2],e[3],e[4],u,c);break;case"c":n.bezierCurveTo(u+e[1],c+e[2],u+e[3],c+e[4],u+e[5],c+e[6]),u+=e[5],c+=e[6];break;case"S":u=e[3],c=e[4],n.bezierCurveToShort(e[1],e[2],u,c);break;case"s":n.bezierCurveToShort(u+e[1],c+e[2],u+e[3],c+e[4]),u+=e[3],c+=e[4];break;case"Q":u=e[3],c=e[4],n.quadraticCurveTo(e[1],e[2],u,c);break;case"q":n.quadraticCurveTo(u+e[1],c+e[2],u+e[3],c+e[4]),u+=e[3],c+=e[4];break;case"T":u=e[1],c=e[2],n.quadraticCurveToShort(u,c);break;case"t":u+=e[1],c+=e[2],n.quadraticCurveToShort(u,c);break;case"A":u=e[6],c=e[7],n.arcToSvg(e[1],e[2],e[3],e[4],e[5],u,c);break;case"a":u+=e[6],c+=e[7],n.arcToSvg(e[1],e[2],e[3],e[4],e[5],u,c);break;case"Z":case"z":n.closePath(),h.length>0&&((o=h.pop())?(u=o.startX,c=o.startY):(u=0,c=0)),o=null;break;default:(0,s.warn)(`Unknown SVG path command: ${i}`)}"Z"!==i&&"z"!==i&&null===o&&(o={startX:u,startY:c},h.push(o))}return n}],915924);var n=t.i(583092);t.s(["Circle",0,class t{constructor(t=0,e=0,i=0){this.type="circle",this.x=t,this.y=e,this.radius=i}clone(){return new t(this.x,this.y,this.radius)}contains(t,e){if(this.radius<=0)return!1;let i=this.radius*this.radius,r=this.x-t,s=this.y-e;return r*=r,s*=s,r+s<=i}strokeContains(t,e,i,r=.5){if(0===this.radius)return!1;let s=this.x-t,n=this.y-e,a=this.radius,l=(1-r)*i,h=Math.sqrt(s*s+n*n);return h<=a+l&&h>a-(i-l)}getBounds(t){return t||(t=new n.Rectangle),t.x=this.x-this.radius,t.y=this.y-this.radius,t.width=2*this.radius,t.height=2*this.radius,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.radius=t.radius,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}],845474),t.s(["Ellipse",0,class t{constructor(t=0,e=0,i=0,r=0){this.type="ellipse",this.x=t,this.y=e,this.halfWidth=i,this.halfHeight=r}clone(){return new t(this.x,this.y,this.halfWidth,this.halfHeight)}contains(t,e){if(this.halfWidth<=0||this.halfHeight<=0)return!1;let i=(t-this.x)/this.halfWidth,r=(e-this.y)/this.halfHeight;return i*=i,r*=r,i+r<=1}strokeContains(t,e,i,r=.5){let{halfWidth:s,halfHeight:n}=this;if(s<=0||n<=0)return!1;let a=i*(1-r),l=i-a,h=s-l,o=n-l,u=s+a,c=n+a,d=t-this.x,f=e-this.y;return d*d/(h*h)+f*f/(o*o)>1&&d*d/(u*u)+f*f/(c*c)<=1}getBounds(t){return t||(t=new n.Rectangle),t.x=this.x-this.halfWidth,t.y=this.y-this.halfHeight,t.width=2*this.halfWidth,t.height=2*this.halfHeight,t}copyFrom(t){return this.x=t.x,this.y=t.y,this.halfWidth=t.halfWidth,this.halfHeight=t.halfHeight,this}copyTo(t){return t.copyFrom(this),t}toString(){return`[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`}}],849992)},624905,916535,t=>{"use strict";var e=t.i(116447),i=t.i(440477),r=t.i(583092),s=t.i(457336),n=t.i(28319),a=t.i(382827),l=t.i(406011),h=t.i(714741),o=t.i(628318),u=t.i(754695),c=t.i(606415),d=t.i(914560),f=t.i(536666),p=t.i(324728),x=t.i(204133);let y=new i.Matrix,g=new r.Rectangle,m=new i.Matrix;function b(t,e,i,r){let s=e.matrix?t.copyFrom(e.matrix).invert():t.identity();if("local"===e.textureSpace){let t=i.getBounds(g);e.width&&t.pad(e.width);let{x:r,y:n}=t,a=1/t.width,l=1/t.height,h=-r*a,o=-n*l,u=s.a,c=s.b,d=s.c,f=s.d;s.a*=a,s.b*=a,s.c*=l,s.d*=l,s.tx=h*u+o*d+s.tx,s.ty=h*c+o*f+s.ty}else if(e.texture.rotate){let{uvs:t,orig:i}=e.texture;s.scale(1/i.width,1/i.height),s.prepend(m.set(t.x1-t.x0,t.y1-t.y0,t.x3-t.x0,t.y3-t.y0,t.x0,t.y0))}else s.translate(e.texture.frame.x,e.texture.frame.y),s.scale(1/e.texture.source.width,1/e.texture.source.height);let n=e.texture.source.style;return e.fill instanceof x.FillGradient||"clamp-to-edge"!==n.addressMode||(n.addressMode="repeat",n.update()),r&&s.append(y.copyFrom(r).invert()),s}t.s(["generateTextureMatrix",0,b],916535);var _=t.i(61784);let P={};e.extensions.handleByMap(e.ExtensionType.ShapeBuilder,P),e.extensions.add(f.buildRectangle,d.buildPolygon,p.buildTriangle,o.buildCircle,o.buildEllipse,o.buildRoundedRectangle);let v=new r.Rectangle,S=new i.Matrix;function M(t,e,i,r,o){let{vertices:d,uvs:f,indices:p}=o;
1t.shapePrimitives.forEach(({shape:t,transform:x,holes:y})=>{let g=[],m=P[t.type];if(!m.build(t,g))return;let v=p.length,M=d.length/2,k="triangle-list";if(x&&(0,n.transformVertices)(g,x),i){let i=t.closePath??!0;e.pixelLine?((0,c.buildPixelLine)(g,i,d,p),k="line-list"):(0,u.buildLine)(g,e,!1,i,d,p)}else if(y){let t=[],e=g.slice();(function(t){let e=[];for(let i=0;i<t.length;i++){let r=t[i].shape,s=[];P[r.type].build(r,s)&&e.push(s)}return e})(y).forEach(i=>{t.push(e.length/2),e.push(...i)}),(0,_.triangulateWithHoles)(e,t,d,2,M,p,v)}else m.triangulate(g,d,2,M,p,v);let w=f.length/2,T=e.texture;if(T!==a.Texture.WHITE){let i=b(S,e,t,x);(0,s.buildUvs)(d,2,M,f,w,2,d.length/2-M,i)}else(0,s.buildSimpleUvs)(f,w,2,d.length/2-M);let C=l.BigPool.get(h.BatchableGraphics);C.indexOffset=v,C.indexSize=p.length-v,C.attributeOffset=M,C.attributeSize=d.length/2-M,C.baseColor=e.color,C.alpha=e.alpha,C.texture=T,C.geometryData=o,C.topology=k,r.push(C)})}t.s(["buildContextBatches",0,function(t,e){let{geometryData:i,batches:r}=e;r.length=0,i.indices.length=0,i.vertices.length=0,i.uvs.length=0;for(let e=0;e<t.instructions.length;e++){let s=t.instructions[e];if("texture"===s.action)!function(t,e,i){let r=[],s=P.rectangle;v.x=t.dx,v.y=t.dy,v.width=t.dw,v.height=t.dh;let a=t.transform;if(!s.build(v,r))return;let{vertices:o,uvs:u,indices:c}=i,d=c.length,f=o.length/2;a&&(0,n.transformVertices)(r,a),s.triangulate(r,o,2,f,c,d);let p=t.image,x=p.uvs;u.push(x.x0,x.y0,x.x1,x.y1,x.x3,x.y3,x.x2,x.y2);let y=l.BigPool.get(h.BatchableGraphics);y.indexOffset=d,y.indexSize=c.length-d,y.attributeOffset=f,y.attributeSize=o.length/2-f,y.baseColor=t.style,y.alpha=t.alpha,y.texture=p,y.geometryData=i,e.push(y)}(s.data,r,i);else if("fill"===s.action||"stroke"===s.action){let t="stroke"===s.action,e=s.data.path.shapePath,n=s.data.style,a=s.data.hole;t&&a&&M(a.shapePath,n,!0,r,i),a&&(e.shapePrimitives[e.shapePrimitives.length-1].holes=a.shapePath.shapePrimitives),M(e,n,t,r,i)}}},"shapeBuilders",0,P],624905)}]);
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.