1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74282,t=>{"use strict";var e=t.i(775703),i=t.i(972678),r=t.i(3117),s=t.i(543571),n=t.i(103191),a=t.i(993425),l=t.i(868936),h=t.i(806575);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=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,v=a.createRadialGradient(b,_,p*m,(u-y)*m,(f-g)*m,x*m);c(v,t),a.fillStyle=t[t.length-1].color,a.fillRect(0,0,e,e),a.fillStyle=v,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 P=new r.Matrix;P.scale(1/m,1/m),P.translate(y,g),"local"===this.textureSpace&&P.scale(e,e),this.transform=P}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,textureSpace:"local",type:"radial",textureSize:256,wrapMode:"clamp-to-edge"},t.s(["FillGradient",()=>u])},470884,t=>{"use strict";var e=t.i(3117),i=t.i(993425);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"}};class s{constructor(t,s){this.uid=(0,i.uid)("fillPattern"),this._tick=0,this.transform=new e.Matrix,this.texture=t,this.transform.scale(1/t.frame.width,1/t.frame.height),s&&(t.source.style.addressModeU=r[s].addressModeU,t.source.style.addressModeV=r[s].addressModeV)}setTransform(t){let e=this.texture;this.transform.copyFrom(t),this.transform.invert(),this.transform.scale(1/e.frame.width,1/e.frame.height),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}}t.s(["FillPattern",()=>s])},750176,(t,e,i)=>{e.exports=function(t){var e=[];return t.replace(s,function(t,i,s){var a,l=i.toLowerCase();for(s=(a=s.match(n))?a.map(Number):[],"m"==l&&s.length>2&&(e.push([i].concat(s.splice(0,2))),l="l",i="m"==i?"l":"L");;){if(s.length==r[l])return s.unshift(i),e.push(s);if(s.length<r[l])throw Error("malformed path data");e.push([i].concat(s.splice(0,r[l])))}}),e};var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},s=/([astvzqmhlc])([^astvzqmhlc]*)/ig,n=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig},153359,122494,99556,194721,71630,t=>{"use strict";let e,i;var r=t.i(750176),s=t.i(470901);function n(t,e){let i=(0,r.default)(t),n=[],a=null,l=0,h=0;for(let t=0;t<i.length;t++){let r=i[t],o=r[0];switch(o){case"M":l=r[1],h=r[2],e.moveTo(l,h);break;case"m":l+=r[1],h+=r[2],e.moveTo(l,h);break;case"H":l=r[1],e.lineTo(l,h);break;case"h":l+=r[1],e.lineTo(l,h);break;case"V":h=r[1],e.lineTo(l,h);break;case"v":h+=r[1],e.lineTo(l,h);break;case"L":l=r[1],h=r[2],e.lineTo(l,h);break;case"l":l+=r[1],h+=r[2],e.lineTo(l,h);break;case"C":l=r[5],h=r[6],e.bezierCurveTo(r[1],r[2],r[3],r[4],l,h);break;case"c":e.bezierCurveTo(l+r[1],h+r[2],l+r[3],h+r[4],l+r[5],h+r[6]),l+=r[5],h+=r[6];break;case"S":l=r[3],h=r[4],e.bezierCurveToShort(r[1],r[2],l,h);break;case"s":e.bezierCurveToShort(l+r[1],h+r[2],l+r[3],h+r[4]),l+=r[3],h+=r[4];break;case"Q":l=r[3],h=r[4],e.quadraticCurveTo(r[1],r[2],l,h);break;case"q":e.quadraticCurveTo(l+r[1],h+r[2],l+r[3],h+r[4]),l+=r[3],h+=r[4];break;case"T":l=r[1],h=r[2],e.quadraticCurveToShort(l,h);break;case"t":l+=r[1],h+=r[2],e.quadraticCurveToShort(l,h);break;case"A":l=r[6],h=r[7],e.arcToSvg(r[1],r[2],r[3],r[4],r[5],l,h);break;case"a":l+=r[6],h+=r[7],e.arcToSvg(r[1],r[2],r[3],r[4],r[5],l,h);break;case"Z":case"z":e.closePath(),n.length>0&&((a=n.pop())?(l=a.startX,h=a.startY):(l=0,h=0)),a=null;break;default:(0,s.warn)(`Unknown SVG path command: ${o}`)}"Z"!==o&&"z"!==o&&null===a&&(a={startX:l,startY:h},n.push(a))}return e}t.s(["parseSVGPath",()=>n],153359);var a=t.i(850384);class l{constructor(t=0,e=0,i=0){this.type="circle",this.x=t,this.y=e,this.radius=i}clone(){return new l(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 a.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}]`}}t.s(["Circle",()=>l],122494);class h{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 h(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 a.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}]`}}t.s(["Ellipse",()=>h],99556);var o=t.i(868936);class u{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 t=new u(this.points.slice());return t.closePath=this.closePath,t}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 s=i*i,n=s*(1-r),a=s-n,{points:l}=this,h=l.length-2*!this.closePath;for(let i=0;i<h;i+=2){let r=l[i],s=l[i+1],h=l[(i+2)%l.length],o=l[(i+3)%l.length];
1if(function(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,e,r,s,h,o)<=(0>Math.sign((h-r)*(e-s)-(o-s)*(t-r))?a:n))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,o.deprecation)("8.11.0","Polygon.lastX is deprecated, please use Polygon.lastX instead."),this.points[this.points.length-2]}get y(){return(0,o.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]}}t.s(["Polygon",()=>u],194721);let c=(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};class d{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 d(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}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:l,radius:h}=this,o=i*(1-r),u=i-o,d=s+h,f=n+h,p=a-2*h,x=l-2*h,y=s+a,g=n+l;return(t>=s-o&&t<=s+u||t>=y-u&&t<=y+o)&&e>=f&&e<=f+x||(e>=n-o&&e<=n+u||e>=g-u&&e<=g+o)&&t>=d&&t<=d+p||t<d&&e<f&&c(t,e,d,f,h,u,o)||t>y-h&&e<f&&c(t,e,y-h,f,h,u,o)||t>y-h&&e>g-h&&c(t,e,y-h,g-h,h,u,o)||t<d&&e>g-h&&c(t,e,d,g-h,h,u,o)}toString(){return`[pixi.js/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}t.s(["RoundedRectangle",()=>d],71630)},494636,388638,554104,958226,t=>{"use strict";function e(t,i,r,s,n,a,l,h=null){let o=0;r*=i,n*=a;let u=h.a,c=h.b,d=h.c,f=h.d,p=h.tx,x=h.ty;for(;o<l;){let e=t[r],l=t[r+1];s[n]=u*e+d*l+p,s[n+1]=c*e+f*l+x,n+=a,r+=i,o++}}function i(t,e,i,r){let s=0;for(e*=i;s<r;)t[e]=0,t[e+1]=0,e+=i,s++}function r(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}}t.s(["buildSimpleUvs",()=>i,"buildUvs",()=>e],494636),t.s(["transformVertices",()=>r],388638);var s=t.i(3117),n=t.i(936688);let a=new s.Matrix;class l{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,i=this.renderable;return i?(0,n.multiplyHexColors)(e,i.groupColor)+(this.alpha*i.groupAlpha*255<<24):e+(255*this.alpha<<24)}get transform(){return this.renderable?.groupTransform||a}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}}t.s(["BatchableGraphics",()=>l],554104);let h={extension:{type:t.i(115158).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}},o={...h,extension:{...h.extension,name:"ellipse"}},u={...h,extension:{...h.extension,name:"roundedRectangle"}};t.s(["buildCircle",()=>h,"buildEllipse",()=>o,"buildRoundedRectangle",()=>u],958226)},779469,900462,t=>{"use strict";var e=t.i(743924);function i(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 r(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;
1i++,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}function s(t,s,n,a,l,h){if(0===t.length)return;let o=s.alignment;if(.5!==s.alignment){let e=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}(t);n&&(e*=-1),o=(o-.5)*e+.5}let u=new e.Point(t[0],t[1]),c=new e.Point(t[t.length-2],t[t.length-1]),d=1e-4>Math.abs(u.x-c.x)&&1e-4>Math.abs(u.y-c.y);if(a){t=t.slice(),d&&(t.pop(),t.pop(),c.set(t[t.length-2],t[t.length-1]));let e=(u.x+c.x)*.5,i=(c.y+u.y)*.5;t.unshift(e,i),t.push(e,i)}let f=t.length/2,p=t.length,x=l.length/2,y=s.width/2,g=y*y,m=s.miterLimit*s.miterLimit,b=t[0],_=t[1],v=t[2],P=t[3],M=0,S=0,k=-(_-P),w=b-v,T=0,C=0,R=Math.sqrt(k*k+w*w);k/=R,w/=R,k*=y,w*=y;let z=o,B=(1-z)*2,D=2*z;a||("round"===s.cap?p+=r(b-k*(B-D)*.5,_-w*(B-D)*.5,b-k*B,_-w*B,b+k*D,_+w*D,l,!0)+2:"square"===s.cap&&(p+=i(b,_,k,w,B,D,!0,l))),l.push(b-k*B,_-w*B),l.push(b+k*D,_+w*D);for(let e=1;e<f-1;++e){b=t[(e-1)*2],_=t[(e-1)*2+1],v=t[2*e],P=t[2*e+1],M=t[(e+1)*2],S=t[(e+1)*2+1],R=Math.sqrt((k=-(_-P))*k+(w=b-v)*w),k/=R,w/=R,k*=y,w*=y,R=Math.sqrt((T=-(P-S))*T+(C=v-M)*C),T/=R,C/=R,T*=y,C*=y;let i=v-b,n=_-P,a=v-M,h=S-P,o=i*a+n*h,u=n*a-h*i,c=u<0;if(Math.abs(u)<.001*Math.abs(o)){l.push(v-k*B,P-w*B),l.push(v+k*D,P+w*D),o>=0&&("round"===s.join?p+=r(v,P,v-k*B,P-w*B,v-T*B,P-C*B,l,!1)+4:p+=2,l.push(v-T*D,P-C*D),l.push(v+T*B,P+C*B));continue}let d=(-k+b)*(-w+P)-(-k+v)*(-w+_),f=(-T+M)*(-C+P)-(-T+v)*(-C+S),x=(i*f-a*d)/u,z=(h*d-n*f)/u,q=(x-v)*(x-v)+(z-P)*(z-P),G=v+(x-v)*B,F=P+(z-P)*B,I=v-(x-v)*D,L=P-(z-P)*D,Z=c?B:D;q<=Math.min(i*i+n*n,a*a+h*h)+Z*Z*g?"bevel"===s.join||q/g>m?(c?(l.push(G,F),l.push(v+k*D,P+w*D),l.push(G,F),l.push(v+T*D,P+C*D)):(l.push(v-k*B,P-w*B),l.push(I,L),l.push(v-T*B,P-C*B),l.push(I,L)),p+=2):"round"===s.join?c?(l.push(G,F),l.push(v+k*D,P+w*D),p+=r(v,P,v+k*D,P+w*D,v+T*D,P+C*D,l,!0)+4,l.push(G,F),l.push(v+T*D,P+C*D)):(l.push(v-k*B,P-w*B),l.push(I,L),p+=r(v,P,v-k*B,P-w*B,v-T*B,P-C*B,l,!1)+4,l.push(v-T*B,P-C*B),l.push(I,L)):(l.push(G,F),l.push(I,L)):(l.push(v-k*B,P-w*B),l.push(v+k*D,P+w*D),"round"===s.join?c?p+=r(v,P,v+k*D,P+w*D,v+T*D,P+C*D,l,!0)+2:p+=r(v,P,v-k*B,P-w*B,v-T*B,P-C*B,l,!1)+2:"miter"===s.join&&q/g<=m&&(c?(l.push(I,L),l.push(I,L)):(l.push(G,F),l.push(G,F)),p+=2),l.push(v-T*B,P-C*B),l.push(v+T*D,P+C*D),p+=2)}b=t[(f-2)*2],_=t[(f-2)*2+1],v=t[(f-1)*2],R=Math.sqrt((k=-(_-(P=t[(f-1)*2+1])))*k+(w=b-v)*w),k/=R,w/=R,k*=y,w*=y,l.push(v-k*B,P-w*B),l.push(v+k*D,P+w*D),a||("round"===s.cap?p+=r(v-k*(B-D)*.5,P-w*(B-D)*.5,v-k*B,P-w*B,v+k*D,P+w*D,l,!1)+2:"square"===s.cap&&(p+=i(v,P,k,w,B,D,!1,l)));let q=1e-4*1e-4;for(let t=x;t<p+x-2;++t)b=l[2*t],_=l[2*t+1],v=l[(t+1)*2],P=l[(t+1)*2+1],M=l[(t+2)*2],Math.abs(b*(P-(S=l[(t+2)*2+1]))+v*(S-_)+M*(_-P))<q||h.push(t,t+1,t+2)}t.s(["closePointEps",()=>1e-4,"curveEps",()=>1e-4],900462),t.s(["buildLine",()=>s],779469)},155695,697153,532260,563587,896635,t=>{"use strict";var e=t.i(900462);function i(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)}t.s(["buildPixelLine",()=>i],155695);var r=t.i(115158);function s(t,e,i=2){let r,p,x,m=e&&e.length,_=m?e[0]*i:t.length,v=n(t,0,_,i,!0),P=[];if(!v||v.next===v.prev)return P;if(m&&(v=function(t,e,i,r){let s=[];for(let i=0,a=e.length;i<a;i++){let l=e[i]*r,h=i<a-1?e[i+1]*r:t.length,o=n(t,l,h,r,!1);o===o.next&&(o.steiner=!0),s.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))}s.sort(l);for(let t=0;t<s.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(d(t,r))return r;do{if(d(t,r.next))return r.next;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
1);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!==e)if(!i)return null;let l=i,h=i.x,u=i.y,f=1/0;r=i;do{if(s>=r.x&&r.x>=h&&s!==r.x&&o(n<u?s:a,n,h,u,n<u?a:s,n,r.x,r.y)){var p,x;let e=Math.abs(n-r.y)/(s-r.x);y(r,t)&&(e<f||e===f&&(r.x>i.x||r.x===i.x&&(p=i,x=r,0>c(p.prev,p,x.prev)&&0>c(x.next,p,p.next))))&&(i=r,f=e)}r=r.next}while(r!==l)return i}(t,e);if(!i)return e;let r=g(i,t);return a(r,r.next),a(i,i.next)}(s[t],i);return i}(t,e,v,i)),t.length>80*i){r=t[0],p=t[1];let e=r,s=p;for(let n=i;n<_;n+=i){let i=t[n],a=t[n+1];i<r&&(r=i),a<p&&(p=a),i>e&&(e=i),a>s&&(s=a)}x=0!==(x=Math.max(e-r,s-p))?32767/x:0}return function t(e,i,r,s,n,l,o){if(!e)return;!o&&l&&function(t,e,i,r){let s=t;do 0===s.z&&(s.z=h(s.x,s.y,e,i,r)),s.prevZ=s.prev,s.nextZ=s.next,s=s.next;while(s!==t)s.prevZ.nextZ=null,s.prevZ=null,function(t){let e,i=1;do{let r,s=t;t=null;let n=null;for(e=0;s;){e++;let a=s,l=0;for(let t=0;t<i&&(l++,a=a.nextZ);t++);let h=i;for(;l>0||h>0&&a;)0!==l&&(0===h||!a||s.z<=a.z)?(r=s,s=s.nextZ,l--):(r=a,a=a.nextZ,h--),n?n.nextZ=r:t=r,r.prevZ=n,n=r;s=a}n.nextZ=null,i*=2}while(e>1)}(s)}(e,s,n,l);let p=e;for(;e.prev!==e.next;){let x=e.prev,m=e.next;if(l?function(t,e,i,r){let s=t.prev,n=t.next;if(c(s,t,n)>=0)return!1;let a=s.x,l=t.x,o=n.x,d=s.y,f=t.y,p=n.y,x=Math.min(a,l,o),y=Math.min(d,f,p),g=Math.max(a,l,o),m=Math.max(d,f,p),b=h(x,y,e,i,r),_=h(g,m,e,i,r),v=t.prevZ,P=t.nextZ;for(;v&&v.z>=b&&P&&P.z<=_;){if(v.x>=x&&v.x<=g&&v.y>=y&&v.y<=m&&v!==s&&v!==n&&u(a,d,l,f,o,p,v.x,v.y)&&c(v.prev,v,v.next)>=0||(v=v.prevZ,P.x>=x&&P.x<=g&&P.y>=y&&P.y<=m&&P!==s&&P!==n&&u(a,d,l,f,o,p,P.x,P.y)&&c(P.prev,P,P.next)>=0))return!1;P=P.nextZ}for(;v&&v.z>=b;){if(v.x>=x&&v.x<=g&&v.y>=y&&v.y<=m&&v!==s&&v!==n&&u(a,d,l,f,o,p,v.x,v.y)&&c(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;P&&P.z<=_;){if(P.x>=x&&P.x<=g&&P.y>=y&&P.y<=m&&P!==s&&P!==n&&u(a,d,l,f,o,p,P.x,P.y)&&c(P.prev,P,P.next)>=0)return!1;P=P.nextZ}return!0}(e,s,n,l):function(t){let e=t.prev,i=t.next;if(c(e,t,i)>=0)return!1;let r=e.x,s=t.x,n=i.x,a=e.y,l=t.y,h=i.y,o=Math.min(r,s,n),d=Math.min(a,l,h),f=Math.max(r,s,n),p=Math.max(a,l,h),x=i.next;for(;x!==e;){if(x.x>=o&&x.x<=f&&x.y>=d&&x.y<=p&&u(r,a,s,l,n,h,x.x,x.y)&&c(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}(e)){i.push(x.i,e.i,m.i),b(e),e=m.next,p=m.next;continue}if((e=m)===p){o?1===o?t(e=function(t,e){let i=t;do{let r=i.prev,s=i.next.next;!d(r,s)&&f(r,i,i.next,s)&&y(r,s)&&y(s,r)&&(e.push(r.i,i.i,s.i),b(i),b(i.next),i=t=s),i=i.next}while(i!==t)return a(i)}(a(e),i),i,r,s,n,l,2):2===o&&function(e,i,r,s,n,l){let h=e;do{let e=h.next.next;for(;e!==h.prev;){var o,u;if(h.i!==e.i&&(o=h,u=e,o.next.i!==u.i&&o.prev.i!==u.i&&!function(t,e){let i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&f(i,i.next,t,e))return!0;i=i.next}while(i!==t)return!1}(o,u)&&(y(o,u)&&y(u,o)&&function(t,e){let i=t,r=!1,s=(t.x+e.x)/2,n=(t.y+e.y)/2;do i.y>n!=i.next.y>n&&i.next.y!==i.y&&s<(i.next.x-i.x)*(n-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next;while(i!==t)return r}(o,u)&&(c(o.prev,o,u.prev)||c(o,u.prev,u))||d(o,u)&&c(o.prev,o,o.next)>0&&c(u.prev,u,u.next)>0))){let o=g(h,e);h=a(h,h.next),o=a(o,o.next),t(h,i,r,s,n,l,0),t(o,i,r,s,n,l,0);return}e=e.next}h=h.next}while(h!==e)}(e,i,r,s,n,l):t(a(e),i,r,s,n,l,1);break}}}(v,P,i,r,p,x,0),P}function n(t,e,i,r,s){let n;if(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=m(s/r|0,t[s],t[s+1],n);else for(let s=i-r;s>=e;s-=r)n=m(s/r|0,t[s],t[s+1],n);return n&&d(n,n.next)&&(b(n),n=n.next),n}function a(t,e){if(!t)return t;e||(e=t);let i=t,r;do if(r=!1,!i.steiner&&(d(i,i.next)||0===c(i.prev,i,i.next))){if(b(i),(i=e=i.prev)===i.next)break;r=!0}else i=i.next;while(r||i!==e)return e}function l(t,e){let i=t.x-e.x;return 0===i&&0==(i=t.y-e.y)&&(i=(t.next.y-t.y)/(t.next.x-t.x)-(e.next.y-e.y)/(e.next.x-e.x)),i}function h(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 o(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)}
1function u(t,e,i,r,s,n,a,l){return(t!==a||e!==l)&&o(t,e,i,r,s,n,a,l)}function c(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function d(t,e){return t.x===e.x&&t.y===e.y}function f(t,e,i,r){let s=x(c(t,e,i)),n=x(c(t,e,r)),a=x(c(i,r,t)),l=x(c(i,r,e));return!!(s!==n&&a!==l||0===s&&p(t,i,e)||0===n&&p(t,r,e)||0===a&&p(i,t,r)||0===l&&p(i,e,r))}function p(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 x(t){return t>0?1:t<0?-1:0}function y(t,e){return 0>c(t.prev,t,t.next)?c(t,e,t.next)>=0&&c(t,t.prev,e)>=0:0>c(t,e,t.prev)||0>c(t,t.next,e)}function g(t,e){let i=_(t.i,t.x,t.y),r=_(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 m(t,e,i,r){let s=_(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 b(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function _(t,e,i){return{i:t,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}t.i(785373);let v=s.default||s;function P(t,e,i,r,s,n,a){let l=v(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(["triangulateWithHoles",()=>P],697153);let M=[],S={extension:{type:r.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){P(t,M,e,i,r,s,n)}};t.s(["buildPolygon",()=>S],532260);let k={extension:{type:r.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",()=>k],563587);let w={extension:{type:r.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",()=>w],896635)},663044,513713,t=>{"use strict";var e=t.i(115158),i=t.i(3117),r=t.i(850384),s=t.i(494636),n=t.i(388638),a=t.i(103191),l=t.i(488153),h=t.i(554104),o=t.i(958226),u=t.i(779469),c=t.i(155695),d=t.i(532260),f=t.i(563587),p=t.i(896635),x=t.i(74282);let y=new i.Matrix,g=new r.Rectangle;function m(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 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",()=>m],513713);var b=t.i(697153);let _={};e.extensions.handleByMap(e.ExtensionType.ShapeBuilder,_),e.extensions.add(f.buildRectangle,d.buildPolygon,p.buildTriangle,o.buildCircle,o.buildEllipse,o.buildRoundedRectangle);let v=new r.Rectangle,P=new i.Matrix;function M(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=_.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.alph
1a=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&&S(a.shapePath,n,!0,r,i),a&&(e.shapePrimitives[e.shapePrimitives.length-1].holes=a.shapePath.shapePrimitives),S(e,n,t,r,i)}}}function S(t,e,i,r,o){let{vertices:d,uvs:f,indices:p}=o;t.shapePrimitives.forEach(({shape:t,transform:x,holes:y})=>{let g=[],v=_[t.type];if(!v.build(t,g))return;let M=p.length,S=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=[];_[r.type].build(r,s)&&e.push(s)}return e})(y).forEach(i=>{t.push(e.length/2),e.push(...i)}),(0,b.triangulateWithHoles)(e,t,d,2,S,p,M)}else v.triangulate(g,d,2,S,p,M);let w=f.length/2,T=e.texture;if(T!==a.Texture.WHITE){let i=m(P,e,t,x);(0,s.buildUvs)(d,2,S,f,w,2,d.length/2-S,i)}else(0,s.buildSimpleUvs)(f,w,2,d.length/2-S);let C=l.BigPool.get(h.BatchableGraphics);C.indexOffset=M,C.indexSize=p.length-M,C.attributeOffset=S,C.attributeSize=d.length/2-S,C.baseColor=e.color,C.alpha=e.alpha,C.texture=T,C.geometryData=o,C.topology=k,r.push(C)})}t.s(["buildContextBatches",()=>M,"shapeBuilders",()=>_],663044)},966683,984889,673016,t=>{"use strict";var e=t.i(743924),i=t.i(993425),r=t.i(470901),s=t.i(153359),n=t.i(122494),a=t.i(99556),l=t.i(194721),h=t.i(850384),o=t.i(71630),u=t.i(875423),c=t.i(115158),d=t.i(300473),f=t.i(652231),p=t.i(166200),x=t.i(699481),y=t.i(868936),g=t.i(488153),m=t.i(663044);class b{constructor(){this.batches=[],this.geometryData={vertices:[],uvs:[],indices:[]}}reset(){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 v=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 P(t,e,i,r,s,n,a,l,h,o){var u,c,d;let f=(1-Math.min(.99,Math.max(0,o??v.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,v=(x+g)/2,P=(m+_)/2,M=(b+v)/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(P,M)}else if(d>11920929e-14){if(d*d<=u*(t*t+c*c))return void o.push(P,M)}else if(f>11920929e-14){if(f*f<=u*(t*t+c*c))return void o.push(P,M)}else if((t=P-(e+l)/2)*t+(c=M-(i+h)/2)*c<=u)return void o.push(P,M)}t(e,i,d,f,m,b,P,M,o,u,c+1),t(P,M,_,v,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 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}}v.extension={type:[c.ExtensionType.WebGLSystem,c.ExtensionType.WebGPUSystem],name:"graphicsContext"},v.defaultOptions={bezierSmoothness:.5},t.s(["GraphicsContextSystem",()=>v],984889);let S=2*Math.PI,k={centerX:0,centerY:0,ang1:0,ang2:0},w=({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},T=(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)},C=new h.Rectangle;class R{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}
1arcTo(t,e,i,r,s){return this._ensurePoly(),!function(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,v=Math.atan2(l*(y+g)-_,h*(y+g)-b),P=Math.atan2(o*(x+m)-_,u*(x+m)-b);M(t,b+e,_+i,n,v,P,h*o>u*l)}(this._currentPoly.points,t,e,i,r,s),this}arcToSvg(t,e,i,r,s,n,a){return!function(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,_,v,M;if(0===n||0===a)return;let C=Math.sin(l*S/360),R=Math.cos(l*S/360),z=R*(e-r)/2+C*(i-s)/2,B=-C*(e-r)/2+R*(i-s)/2;if(0===z&&0===B)return;let D=Math.pow(z,2)/Math.pow(n=Math.abs(n),2)+Math.pow(B,2)/Math.pow(a=Math.abs(a),2);D>1&&(n*=Math.sqrt(D),a*=Math.sqrt(D)),u=n,c=a,d=Math.pow(u,2),f=Math.pow(c,2),p=Math.pow(z,2),(y=d*f-d*(x=Math.pow(B,2))-f*p)<0&&(y=0),y/=d*x+f*p,g=(y=Math.sqrt(y)*(h===o?-1:1))*u/c*B,m=-(y*c)/u*z,v=T(1,0,b=(z-g)/u,_=(B-m)/c),M=T(b,_,(-z-g)/u,(-B-m)/c),0===o&&M>0&&(M-=S),1===o&&M<0&&(M+=S),k.centerX=R*g-C*m+(e+r)/2,k.centerY=C*g+R*m+(i+s)/2,k.ang1=v,k.ang2=M;let{ang1:q,ang2:G}=k,{centerX:F,centerY:I}=k,L=Math.abs(G)/(S/4);1e-7>Math.abs(1-L)&&(L=1);let Z=Math.max(Math.ceil(L),1);G/=Z;let H=t[t.length-2],E=t[t.length-1],V={x:0,y:0};for(let e=0;e<Z;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,G),{x:i,y:r}=w(e[0],n,a,R,C,F,I,V),{x:s,y:l}=w(e[1],n,a,R,C,F,I,V),{x:h,y:o}=w(e[2],n,a,R,C,F,I,V);P(t,H,E,i,r,s,l,h,o),H=h,E=o,q+=G}}(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 P(this._currentPoly.points,l.lastX,l.lastY,t,e,i,r,s,n,a),this}quadraticCurveTo(t,e,i,r,s){var n,a,l,h,o,u,c,d,f,p,x;let y;this._ensurePoly();let g=this._currentPoly;return n=this._currentPoly.points,a=g.lastX,l=g.lastY,y=(1-Math.min(.99,Math.max(0,s??v.defaultOptions.bezierSmoothness)))/1,h=a,o=l,u=t,c=e,d=i,f=r,p=n,x=y*=y,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,h,o,u,c,d,f,x,0),p.push(d,f),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}roundPoly(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?!function(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)}}
1(this,t,e,r):!function(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,v=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,_,v,x),n=h}}(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(C);r.transform?t.addRect(s,r.transform):t.addRect(s)}return t}}class z{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 R(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 z;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]=B(m[3],t);break;case"rect":m[4]=B(m[4],t);break;case"ellipse":m[8]=B(m[8],t);break;case"roundRect":m[5]=B(m[5],t);break;case"addPath":m[0].transform(t);break;case"poly":m[2]=B(m[2],t);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 B(t,e){return t?t.prepend(e):e.clone()}t.s(["GraphicsPath",()=>z],966683);var D=t.i(775703),q=t.i(74282);function G(t,e,i){let r=t.getAttribute(e);return r?Number(r):i}function F(t){let e=t.match(/url\s*\(\s*['"]?\s*#([^'"\s)]+)\s*['"]?\s*\)/i);return e?e[1]:""}let I={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 L(t,e){let i=t.getAttribute("style"),r={},s={},n={strokeStyle:r,fillStyle:s,useFill:!1,useStroke:!1};for(let i in I){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(":");I[r]&&Z(e,n,r,s.trim())}}return{strokeStyle:n.useStroke?r:null,fillStyle:n.useFill?s:null,useFill:n.useFill,useStroke:n.useStroke}}function Z(t,e,i,r){switch(i){case"stroke":if("none"!==r){if(r.startsWith("url(")){let i=F(r);e.strokeStyle.fill=t.defs[i]}else e.strokeStyle.color=D.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=F(r);e.fillStyle.fill=t.defs[i]}else e.fillStyle.color=D.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 H(t,e){for(let i of new z(t,!1).instructions)e.instructions.push(i)}function E(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 z};!function(t,e){let i=t.querySelectorAll("defs");for(let t=0;t<i.length;t++){let s=i[t];for(let t=0;t<s.children.length;t++){let i=s.children[t];switch(i.nodeName.toLowerCase()){case"lineargradient":e.defs[i.id]=function(t){let e=G(t,"x1",0),i=G(t,"y1",0),r=G(t,"x2",1),s=G(t,"y2",0),n=t.getAttribute("gradientUnits")||"objectBoundingBox",a=new q.FillGradient(e,i,r,s,"objectBoundingBox"===n?"local":"global");for(let e=0;e<t.children.length;e++){let i=t.children[e],r=G(i,"offset",0),s=D.Color.shared.setValue(i.getAttribute("stop-color")).toNumber();a.addColorStop(r,s)}return a}(i);break;case"radialgradient":e.defs[i.id]=((0,r.warn)("[SVG Parser] Radial gradients are not yet supported"),new q.FillGradient(0,0,1,0))}}}}(t,i);let s=t.children,{fillStyle:n,strokeStyle:a}=L(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,_,v,P=e.children,{fillStyle:M,strokeStyle:S}=L(e,i);M&&s?s={...s,...M}:M&&(s=M),S&&n?n={...n,...S}:S&&(n=S);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=m.split(/(?=[Mm])/).filter(t=>t.trim().length>0),a=r.length>1;if("evenodd"===t&&a){let t=r.map(t=>({path:t,area:function(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)}(t)}));if(t.sort((t,e)=>e.area-t.area),r.length>3||!function(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)}(t))for(let e=0;e<t.length;e++){let r=t[e],a=0===e;
1i.context.beginPath();let l=new z(void 0,!0);H(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 z(void 0,!0);H(r.path,l),i.context.path(l),a?i.context.cut():(s&&i.context.fill(s),n&&i.context.stroke(n))}}else b=new z(m,!t||"evenodd"===t),i.context.path(b),s&&i.context.fill(s),n&&i.context.stroke(n);break}case"circle":d=G(e,"cx",0),f=G(e,"cy",0),p=G(e,"r",0),i.context.ellipse(d,f,p,p),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"rect":a=G(e,"x",0),l=G(e,"y",0),_=G(e,"width",0),v=G(e,"height",0),x=G(e,"rx",0),y=G(e,"ry",0),x||y?i.context.roundRect(a,l,_,v,x||y):i.context.rect(a,l,_,v),s&&i.context.fill(s),n&&i.context.stroke(n);break;case"ellipse":d=G(e,"cx",0),f=G(e,"cy",0),x=G(e,"rx",0),y=G(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=G(e,"x1",0),o=G(e,"y1",0),u=G(e,"x2",0),c=G(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<P.length;e++)t(P[e],i,s,n)}(e,i,n,a)}return e}t.s(["SVGParser",()=>E],673016)},916468,646350,t=>{"use strict";var e=t.i(785373),i=t.i(775703),r=t.i(3117),s=t.i(743924),n=t.i(103191),a=t.i(993425),l=t.i(868936),h=t.i(875423),o=t.i(966683),u=t.i(673016),c=t.i(74282),d=t.i(470884);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,{...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}t.s(["toFillStyle",()=>g,"toStrokeStyle",()=>m],646350);let b=new s.Point,_=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)}setFillStyle(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||
10,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):(_.set(t,e,i,s,n,a),this._transform.append(_)),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||(this.emit("update",this,16),this.dirty=!0)}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),n=e.path.bounds;t.addFrame(n.minX-s,n.minY-s,n.maxX+s,n.maxY+s)}}return 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,b):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",()=>v],916468)}]);
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.