PageSourceSearch

https://www.links8totomasuk.com/_next/static/chunks/18e4692dd9666c…=89013d4b35ac81437e45aeec2516e5e692cc55fd

js links8totomasuk.com collected 2026-10-09 23:25:58 UTC 32,770 bytes, 206 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,490772,157541,53717,158117,t=>{"use strict";var e,r=t.i(993425);class i{constructor(t){"number"==typeof t?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData),this.size=this.rawBinaryData.byteLength}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}get float64View(){return this._float64Array||(this._float64Array=new Float64Array(this.rawBinaryData)),this._float64Array}get bigUint64View(){return this._bigUint64Array||(this._bigUint64Array=new BigUint64Array(this.rawBinaryData)),this._bigUint64Array}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this.uint32View=null,this.float32View=null,this.uint16View=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._int32View=null,this._float64Array=null,this._bigUint64Array=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw Error(`${t} isn't a valid view type`)}}}var n=t.i(868936),a=t.i(272100);function s(t,e,r,i){if(r??(r=0),i??(i=Math.min(t.byteLength-r,e.byteLength)),7&r||7&i)if(3&r||3&i)new Uint8Array(e).set(new Uint8Array(t,r,i));else{let n=i/4;new Float32Array(e,0,n).set(new Float32Array(t,r,n))}else{let n=i/8;new Float64Array(e,0,n).set(new Float64Array(t,r,n))}}t.s(["fastCopy",()=>s],157541);let o={normal:"normal-npm",add:"add-npm",screen:"screen-npm"};var l=((e=l||{})[e.DISABLED=0]="DISABLED",e[e.RENDERING_MASK_ADD=1]="RENDERING_MASK_ADD",e[e.MASK_ACTIVE=2]="MASK_ACTIVE",e[e.INVERSE_MASK_ACTIVE=3]="INVERSE_MASK_ACTIVE",e[e.RENDERING_MASK_REMOVE=4]="RENDERING_MASK_REMOVE",e[e.NONE=5]="NONE",e);function h(t,e){return"no-premultiply-alpha"===e.alphaMode&&o[t]||t}t.s(["BLEND_TO_NPM",()=>o,"STENCIL_MODES",()=>l],53717);var u=t.i(141889);function d(t,e){if(0===t)throw Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");let r=e.createShader(e.FRAGMENT_SHADER);try{for(;;){let i="precision mediump float;\nvoid main(void){\nfloat test = 0.1;\n%forloop%\ngl_FragColor = vec4(0.0);\n}".replace(/%forloop%/gi,function(t){let e="";for(let r=0;r<t;++r)r>0&&(e+="\nelse "),r<t-1&&(e+=`if(test == ${r}.0){}`);return e}(t));if(e.shaderSource(r,i),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))break;t=t/2|0}}finally{e.deleteShader(r)}return t}t.s(["checkMaxIfStatementsInShader",()=>d],158117);let c=null;class x{constructor(){this.ids=Object.create(null),this.textures=[],this.count=0}clear(){for(let t=0;t<this.count;t++){let e=this.textures[t];this.textures[t]=null,this.ids[e.uid]=null}this.count=0}}class f{constructor(){this.renderPipeId="batch",this.action="startBatch",this.start=0,this.size=0,this.textures=new x,this.blendMode="normal",this.topology="triangle-strip",this.canBundle=!0}destroy(){this.textures=null,this.gpuBindGroup=null,this.bindGroup=null,this.batcher=null,this.elements=null}}let p=[],_=0;function m(){return _>0?p[--_]:new f}function g(t){t.elements=null,p[_++]=t}a.GlobalResourceRegistry.register({clear:()=>{if(p.length>0)for(let t of p)t&&t.destroy();p.length=0,_=0}});let b=0,v=class t{constructor(e){this.uid=(0,r.uid)("batcher"),this.dirty=!0,this.batchIndex=0,this.batches=[],this._elements=[],(e={...t.defaultOptions,...e}).maxTextures||((0,n.deprecation)("v8.8.0","maxTextures is a required option for Batcher now, please pass it in the options"),e.maxTextures=function(){if(c)return c;let t=(0,u.getTestContext)();return c=d(c=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),t),t.getExtension("WEBGL_lose_context")?.loseContext(),c}());const{maxTextures:a,attributesInitialSize:s,indicesInitialSize:o}=e;this.attributeBuffer=new i(4*s),this.indexBuffer=new Uint16Array(o),this.maxTextures=a}begin(){this.elementSize=0,this.elementStart=0,this.indexSize=0,this.attributeSize=0;for(let t=0;t<this.batchIndex;t++)g(this.batches[t]);this.batchIndex=0,this._batchIndexStart=0,this._batchIndexSize=0,this.dirty=!0}add(t){this._elements[this.elementSize++]=t,t._indexStart=this.indexSize,t._attributeStart=this.attributeSize,t._batcher=this,this.indexSize+=t.indexSize,this.attributeSize+=t.attributeSize*this.vertexSize}checkAndUpdateTexture(t,e){let r=t._batch.textures.ids[e._source.uid];return(!!r||0===r)&&(t._textureId=r,t.texture=e,!0)}updateElement(t){this.dirty=!0;let e=this.attributeBuffer;t.packAsQuad?this.packQuadAttributes(t,e.float32View,e.uint32View,t._attributeStart,t._textureId):this.packAttributes(t,e.float32View,e.uint32View,t._attributeStart,t._textureId)}break(t){let e=this._elements;if(!e[this.elementStart])return;let r=m(),i=r.textures;i.clear();let n=e[this.elementStart],a=h(n.blendMode,n.texture._source),s=n.topology;4*this.attributeSize>this.attributeBuffer.size&&this._resizeAttributeBuffer(4*this.attributeSize),this.indexSize>this.indexBuffer.length&&this._resizeIndexBuffer(this.indexSize);let o=this.attributeBuffer.float32View,l=this.attributeBuffer.uint32View,u=this.indexBuffer,d=this._batchIndexSize,c=this._batchIndexStart,x="startBatch",f=[],p=this.maxTextures;for(let n=this.elementStart;n<this.elementSize;++n){let _=e[n];e[n]=null;let g=_.texture._source,v=h(_.blendMode,g),y=a!==v||s!==_.topology;if(g._batchTick===b&&!y){_._textureId=g._textureBindLocation,d+=_.indexSize,_.packAsQuad?(this.packQuadAttributes(_,o,l,_._attributeStart,_._textureId),this.packQuadIndex(u,_._indexStart,_._attributeStart/this.vertexSize)):(this.packAttributes(_,o,l,_._attributeStart,_._textureId),this.packIndex(_,u,_._indexStart,_._attributeStart/this.vertexSize)),_._batch=r,f.push(_);continue}g._batchTick=b,(i.count>=p||y)&&(this._finishBatch(r,c,d-c,i,a,s,t,x,f),x="renderBatch",c=d,a=v,s=_.topology,(i=(r=m()).textures).clear(),f=[],++b),_._textureId=g._textureBindLocation=i.count,i.ids[g.uid]=i.count,i.textures[i.count++
1]=g,_._batch=r,f.push(_),d+=_.indexSize,_.packAsQuad?(this.packQuadAttributes(_,o,l,_._attributeStart,_._textureId),this.packQuadIndex(u,_._indexStart,_._attributeStart/this.vertexSize)):(this.packAttributes(_,o,l,_._attributeStart,_._textureId),this.packIndex(_,u,_._indexStart,_._attributeStart/this.vertexSize))}i.count>0&&(this._finishBatch(r,c,d-c,i,a,s,t,x,f),c=d,++b),this.elementStart=this.elementSize,this._batchIndexStart=c,this._batchIndexSize=d}_finishBatch(t,e,r,i,n,a,s,o,l){t.gpuBindGroup=null,t.bindGroup=null,t.action=o,t.batcher=this,t.textures=i,t.blendMode=n,t.topology=a,t.start=e,t.size=r,t.elements=l,++b,this.batches[this.batchIndex++]=t,s.add(t)}finish(t){this.break(t)}ensureAttributeBuffer(t){4*t<=this.attributeBuffer.size||this._resizeAttributeBuffer(4*t)}ensureIndexBuffer(t){t<=this.indexBuffer.length||this._resizeIndexBuffer(t)}_resizeAttributeBuffer(t){let e=new i(Math.max(t,2*this.attributeBuffer.size));s(this.attributeBuffer.rawBinaryData,e.rawBinaryData),this.attributeBuffer=e}_resizeIndexBuffer(t){let e=this.indexBuffer,r=Math.max(t,1.5*e.length);r+=r%2;let i=r>65535?new Uint32Array(r):new Uint16Array(r);if(i.BYTES_PER_ELEMENT!==e.BYTES_PER_ELEMENT)for(let t=0;t<e.length;t++)i[t]=e[t];else s(e.buffer,i.buffer);this.indexBuffer=i}packQuadIndex(t,e,r){t[e]=r+0,t[e+1]=r+1,t[e+2]=r+2,t[e+3]=r+0,t[e+4]=r+2,t[e+5]=r+3}packIndex(t,e,r,i){let n=t.indices,a=t.indexSize,s=t.indexOffset,o=t.attributeOffset;for(let t=0;t<a;t++)e[r++]=i+n[t+s]-o}destroy(t={}){if(null!==this.batches){for(let t=0;t<this.batchIndex;t++)g(this.batches[t]);this.batches=null,this.geometry.destroy(!0),this.geometry=null,t.shader&&(this.shader?.destroy(),this.shader=null);for(let t=0;t<this._elements.length;t++)this._elements[t]&&(this._elements[t]._batch=null);this._elements=null,this.indexBuffer=null,this.attributeBuffer.destroy(),this.attributeBuffer=null}}};v.defaultOptions={maxTextures:null,attributesInitialSize:4,indicesInitialSize:6},t.s(["Batcher",()=>v],490772)},867948,t=>{"use strict";var e=t.i(272810),r=t.i(34199),i=t.i(748385);let n=new Float32Array(1),a=new Uint32Array(1);class s extends i.Geometry{constructor(){const t=new e.Buffer({data:n,label:"attribute-batch-buffer",usage:r.BufferUsage.VERTEX|r.BufferUsage.COPY_DST,shrinkToFit:!1});super({attributes:{aPosition:{buffer:t,format:"float32x2",stride:24,offset:0},aUV:{buffer:t,format:"float32x2",stride:24,offset:8},aColor:{buffer:t,format:"unorm8x4",stride:24,offset:16},aTextureIdAndRound:{buffer:t,format:"uint16x2",stride:24,offset:20}},indexBuffer:new e.Buffer({data:a,label:"index-batch-buffer",usage:r.BufferUsage.INDEX|r.BufferUsage.COPY_DST,shrinkToFit:!1})})}}t.s(["BatchGeometry",()=>s])},92161,t=>{"use strict";var e=t.i(232166),r=t.i(909273),i=t.i(470901);function n(t,e,r){if(t)for(let n in t){let a=e[n.toLocaleLowerCase()];if(a){let e=t[n];"header"===n&&(e=e.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),r&&a.push(`//----${r}----//`),a.push(e)}else(0,i.warn)(`${n} placement hook does not exist in shader`)}}let a=/\{\{(.*?)\}\}/g;function s(t){let e={};return(t.match(a)?.map(t=>t.replace(/[{()}]/g,""))??[]).forEach(t=>{e[t]=[]}),e}function o(t,e){let r,i=/@in\s+([^;]+);/g;for(;null!==(r=i.exec(t));)e.push(r[1])}function l(t,e,r=!1){let i=[];o(e,i),t.forEach(t=>{t.header&&o(t.header,i)}),r&&i.sort();let n=i.map((t,e)=>`       @location(${e}) ${t},`).join("\n"),a=e.replace(/@in\s+[^;]+;\s*/g,"");return a.replace("{{in}}",`
2${n}
3`)}function h(t,e){let r,i=/@out\s+([^;]+);/g;for(;null!==(r=i.exec(t));)e.push(r[1])}function u(t,e){let r=t;for(let t in e){let i=e[t];r=i.join("\n").length?r.replace(`{{${t}}}`,`//-----${t} START-----//
4${i.join("\n")}
5//----${t} FINISH----//`):r.replace(`{{${t}}}`,"")}return r}let d=Object.create(null),c=new Map,x=0;function f(t,e){return e.map(t=>(c.has(t)||c.set(t,x++),c.get(t))).sort((t,e)=>t-e).join("-")+t.vertex+t.fragment}function p(t,e,r){let i=s(t),a=s(e);return r.forEach(t=>{n(t.vertex,i,t.name),n(t.fragment,a,t.name)}),{vertex:u(t,i),fragment:u(e,a)}}let _=`
6    @in aPosition: vec2<f32>;
7    @in aUV: vec2<f32>;
8
9    @out @builtin(position) vPosition: vec4<f32>;
10    @out vUV : vec2<f32>;
11    @out vColor : vec4<f32>;
12
13    {{header}}
14
15    struct VSOutput {
16        {{struct}}
17    };
18
19    @vertex
20    fn main( {{in}} ) -> VSOutput {
21
22        var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;
23        var modelMatrix = mat3x3<f32>(
24            1.0, 0.0, 0.0,
25            0.0, 1.0, 0.0,
26            0.0, 0.0, 1.0
27          );
28        var position = aPosition;
29        var uv = aUV;
30
31        {{start}}
32
33        vColor = vec4<f32>(1., 1., 1., 1.);
34
35        {{main}}
36
37        vUV = uv;
38
39        var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;
40
41        vPosition =  vec4<f32>((modelViewProjectionMatrix *  vec3<f32>
41(position, 1.0)).xy, 0.0, 1.0);
42
43        vColor *= globalUniforms.uWorldColorAlpha;
44
45        {{end}}
46
47        {{return}}
48    };
49`,m=`
50    @in vUV : vec2<f32>;
51    @in vColor : vec4<f32>;
52
53    {{header}}
54
55    @fragment
56    fn main(
57        {{in}}
58      ) -> @location(0) vec4<f32> {
59
60        {{start}}
61
62        var outColor:vec4<f32>;
63
64        {{main}}
65
66        var finalColor:vec4<f32> = outColor * vColor;
67
68        {{end}}
69
70        return finalColor;
71      };
72`,g=`
73    in vec2 aPosition;
74    in vec2 aUV;
75
76    out vec4 vColor;
77    out vec2 vUV;
78
79    {{header}}
80
81    void main(void){
82
83        mat3 worldTransformMatrix = uWorldTransformMatrix;
84        mat3 modelMatrix = mat3(
85            1.0, 0.0, 0.0,
86            0.0, 1.0, 0.0,
87            0.0, 0.0, 1.0
88          );
89        vec2 position = aPosition;
90        vec2 uv = aUV;
91
92        {{start}}
93
94        vColor = vec4(1.);
95
96        {{main}}
97
98        vUV = uv;
99
100        mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;
101
102        gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
103
104        vColor *= uWorldColorAlpha;
105
106        {{end}}
107    }
108`,b=`
109
110    in vec4 vColor;
111    in vec2 vUV;
112
113    out vec4 finalColor;
114
115    {{header}}
116
117    void main(void) {
118
119        {{start}}
120
121        vec4 outColor;
122
123        {{main}}
124
125        finalColor = outColor * vColor;
126
127        {{end}}
128    }
129`,v={name:"global-uniforms-bit",vertex:{header:`
130        struct GlobalUniforms {
131            uProjectionMatrix:mat3x3<f32>,
132            uWorldTransformMatrix:mat3x3<f32>,
133            uWorldColorAlpha: vec4<f32>,
134            uResolution: vec2<f32>,
135        }
136
137        @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;
138        `}},y={name:"global-uniforms-bit",vertex:{header:`
139          uniform mat3 uProjectionMatrix;
140          uniform mat3 uWorldTransformMatrix;
141          uniform vec4 uWorldColorAlpha;
142          uniform vec2 uResolution;
143        `}};function S({bits:t,name:e}){let i=function({template:t,bits:e}){let r=f(t,e);if(d[r])return d[r];let{vertex:i,fragment:n}=function(t,e){var r;let i,n,a,s,o,u=e.map(t=>t.vertex).filter(t=>!!t),d=e.map(t=>t.fragment).filter(t=>!!t),c=l(u,t.vertex,!0);return i=[],h(r=c,i),u.forEach(t=>{t.header&&h(t.header,i)}),n=0,a=i.sort().map(t=>t.indexOf("builtin")>-1?t:`@location(${n++}) ${t}`).join(",\n"),s=i.sort().map(t=>`       var ${t.replace(/@.*?\s+/g,"")};`).join("\n"),o=`return VSOutput(
144            ${i.sort().map(t=>{let e;return` ${(e=/\b(\w+)\s*:/g.exec(t))?e[1]:""}`}).join(",\n")});`,{vertex:c=r.replace(/@out\s+[^;]+;\s*/g,"").replace("{{struct}}",`
145${a}
146`).replace("{{start}}",`
147${s}
148`).replace("{{return}}",`
149${o}
150`),fragment:l(d,t.fragment,!0)}}(t,e);return d[r]=p(i,n,e),d[r]}({template:{fragment:m,vertex:_},bits:[v,...t]});return r.GpuProgram.from({name:e,vertex:{source:i.vertex,entryPoint:"main"},fragment:{source:i.fragment,entryPoint:"main"}})}function C({bits:t,name:r}){return new e.GlProgram({name:r,...function({template:t,bits:e}){let r=f(t,e);return d[r]||(d[r]=p(t.vertex,t.fragment,e)),d[r]}({template:{vertex:g,fragment:b},bits:[y,...t]})})}t.s(["compileHighShaderGlProgram",()=>C,"compileHighShaderGpuProgram",()=>S],92161)},194099,t=>{"use strict";let e={name:"color-bit",vertex:{header:`
151            @in aColor: vec4<f32>;
152        `,main:`
153            vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);
154        `}},r={name:"color-bit",vertex:{header:`
155            in vec4 aColor;
156        `,main:`
157            vColor *= vec4(aColor.rgb * aColor.a, aColor.a);
158        `}};t.s(["colorBit",()=>e,"colorBitGl",()=>r])},56478,t=>{"use strict";let e={};function r(t){return e[t]||(e[t]={name:"texture-batch-bit",vertex:{header:`
159                @in aTextureIdAndRound: vec2<u32>;
160                @out @interpolate(flat) vTextureId : u32;
161            `,main:`
162                vTextureId = aTextureIdAndRound.y;
163            `,end:`
164                if(aTextureIdAndRound.x == 1)
165                {
166                    vPosition = vec4<f32>(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
167                }
168            `},fragment:{header:`
169                @in @interpolate(flat) vTextureId: u32;
170
171                ${function(t){let e=[];
171if(1===t)e.push("@group(1) @binding(0) var textureSource1: texture_2d<f32>;"),e.push("@group(1) @binding(1) var textureSampler1: sampler;");else{let r=0;for(let i=0;i<t;i++)e.push(`@group(1) @binding(${r++}) var textureSource${i+1}: texture_2d<f32>;`),e.push(`@group(1) @binding(${r++}) var textureSampler${i+1}: sampler;`)}return e.join("\n")}(t)}
172            `,main:`
173                var uvDx = dpdx(vUV);
174                var uvDy = dpdy(vUV);
175
176                ${function(t){let e=[];if(1===t)e.push("outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);");else{e.push("switch vTextureId {");for(let r=0;r<t;r++)r===t-1?e.push("  default:{"):e.push(`  case ${r}:{`),e.push(`      outColor = textureSampleGrad(textureSource${r+1}, textureSampler${r+1}, vUV, uvDx, uvDy);`),e.push("      break;}");e.push("}")}return e.join("\n")}(t)}
177            `}}),e[t]}let i={};function n(t){return i[t]||(i[t]={name:"texture-batch-bit",vertex:{header:`
178                in vec2 aTextureIdAndRound;
179                out float vTextureId;
180
181            `,main:`
182                vTextureId = aTextureIdAndRound.y;
183            `,end:`
184                if(aTextureIdAndRound.x == 1.)
185                {
186                    gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
187                }
188            `},fragment:{header:`
189                in float vTextureId;
190
191                uniform sampler2D uTextures[${t}];
192
193            `,main:`
194
195                ${function(t){let e=[];for(let r=0;r<t;r++)r>0&&e.push("else"),r<t-1&&e.push(`if(vTextureId < ${r}.5)`),e.push("{"),e.push(`	outColor = texture(uTextures[${r}], vUV);`),e.push("}");return e.join("\n")}(t)}
196            `}}),i[t]}t.s(["generateTextureBatchBit",()=>r,"generateTextureBatchBitGl",()=>n])},97827,t=>{"use strict";let e={name:"round-pixels-bit",vertex:{header:`
197            fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32>
198            {
199                return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
200            }
201        `}},r={name:"round-pixels-bit",vertex:{header:`
202            vec2 roundPixels(vec2 position, vec2 targetSize)
203            {
204                return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
205            }
206        `}};t.s(["roundPixelsBit",()=>e,"roundPixelsBitGl",()=>r])},996250,t=>{"use strict";var e=t.i(883733);let r={};function i(t){let i=r[t];if(i)return i;let n=new Int32Array(t);for(let e=0;e<t;e++)n[e]=e;return r[t]=new e.UniformGroup({uTextures:{value:n,type:"i32",size:t}},{isStatic:!0})}t.s(["getBatchSamplersUniformGroup",()=>i])},652231,699481,t=>{"use strict";var e=t.i(115158),r=t.i(490772),i=t.i(867948),n=t.i(92161),a=t.i(194099),s=t.i(56478),o=t.i(97827),l=t.i(996250),h=t.i(496092);class u extends h.Shader{constructor(t){super({glProgram:(0,n.compileHighShaderGlProgram)({name:"batch",bits:[a.colorBitGl,(0,s.generateTextureBatchBitGl)(t),o.roundPixelsBitGl]}),gpuProgram:(0,n.compileHighShaderGpuProgram)({name:"batch",bits:[a.colorBit,(0,s.generateTextureBatchBit)(t),o.roundPixelsBit]}),resources:{batchSamplers:(0,l.getBatchSamplersUniformGroup)(t)}}),this.maxTextures=t}}let d=null,c=class t extends r.Batcher{constructor(e){super(e),this.geometry=new i.BatchGeometry,this.name=t.extension.name,this.vertexSize=6,d??(d=new u(e.maxTextures)),this.shader=d}packAttributes(t,e,r,i,n){let a=n<<16|65535&t.roundPixels,s=t.transform,o=s.a,l=s.b,h=s.c,u=s.d,d=s.tx,c=s.ty,{positions:x,uvs:f}=t,p=t.color,_=t.attributeOffset,m=_+t.attributeSize;for(let t=_;t<m;t++){let n=2*t,s=x[n],_=x[n+1];e[i++]=o*s+h*_+d,e[i++]=u*_+l*s+c,e[i++]=f[n],e[i++]=f[n+1],r[i++]=p,r[i++]=a}}packQuadAttributes(t,e,r,i,n){let a=t.texture,s=t.transform,o=s.a,l=s.b,h=s.c,u=s.d,d=s.tx,c=s.ty,x=t.bounds,f=x.maxX,p=x.minX,_=x.maxY,m=x.minY,g=a.uvs,b=t.color,v=n<<16|65535&t.roundPixels;e[i+0]=o*p+h*m+d,e[i+1]=u*m+l*p+c,e[i+2]=g.x0,e[i+3]=g.y0,r[i+4]=b,r[i+5]=v,e[i+6]=o*f+h*m+d,e[i+7]=u*m+l*f+c,e[i+8]=g.x1,e[i+9]=g.y1,r[i+10]=b,r[i+11]=v,e[i+12]=o*f+h*_+d,e[i+13]=u*_+l*f+c,e[i+14]=g.x2,e[i+15]=g.y2,r[i+16]=b,r[i+17]=v,e[i+18]=o*p+h*_+d,e[i+19]=u*_+l*p+c,e[i+20]=g.x3,e[i+21]=g.y3,r[i+22]=b,r[i+23]=v}_updateMaxTextures(t){this.shader.maxTextures!==t&&(d=new u(t),this.shader=d)}destroy(){this.shader=null,super.destroy()}};c.extension={type:[e.ExtensionType.Batcher],name:"default"},t.s(["DefaultBatcher",()=>c],652231);class x{constructor(t){this.items=Object.create(null);const{renderer:e,type:r,onUnload:i,priority:n,name:a}=t;this._renderer=e,e.gc.addResourceHash(this,"items",r,n??0),this._onUnload=i,this.name=a}add(t){return!this.items[t.uid]&&(this.items[t.uid]=t,t.once("unload",this.remove,this),t._gcLastUsed=this._renderer.gc.now,!0)}remove(t,...e){if(!this.items[t.uid])return;let r=t._gpuData[this._renderer.uid];r&&(this._onUnload?.(t,...e),r.destroy(),t._gpuData[this._renderer.uid]=null,this.items[t.uid]=null)}
206removeAll(...t){Object.values(this.items).forEach(e=>e&&this.remove(e,...t))}destroy(...t){this.removeAll(...t),this.items=Object.create(null),this._renderer=null,this._onUnload=null}}t.s(["GCManagedHash",()=>x],699481)},300473,t=>{"use strict";var e=t.i(478035),r=t.i(103191);let i={};function n(t,n,a){let s=0x811c9dc5;for(let e=0;e<n;e++)s^=t[e].uid,s=Math.imul(s,0x1000193)>>>0;return i[s]||function(t,n,a,s){let o={},l=0;for(let e=0;e<s;e++){let i=e<n?t[e]:r.Texture.EMPTY.source;o[l++]=i.source,o[l++]=i.style}let h=new e.BindGroup(o);return i[a]=h,h}(t,n,s,a)}t.s(["getTextureBatchBindGroup",()=>n])},46180,t=>{"use strict";let e={normal:0,add:1,multiply:2,screen:3,overlay:4,erase:5,"normal-npm":6,"add-npm":7,"screen-npm":8,min:9,max:10},r=class t{constructor(){this.data=0,this.blendMode="normal",this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(1&this.data)}set blend(t){!!(1&this.data)!==t&&(this.data^=1)}get offsets(){return!!(2&this.data)}set offsets(t){!!(2&this.data)!==t&&(this.data^=2)}set cullMode(t){if("none"===t){this.culling=!1;return}this.culling=!0,this.clockwiseFrontFace="front"===t}get cullMode(){return this.culling?this.clockwiseFrontFace?"front":"back":"none"}get culling(){return!!(4&this.data)}set culling(t){!!(4&this.data)!==t&&(this.data^=4)}get depthTest(){return!!(8&this.data)}set depthTest(t){!!(8&this.data)!==t&&(this.data^=8)}get depthMask(){return!!(32&this.data)}set depthMask(t){!!(32&this.data)!==t&&(this.data^=32)}get clockwiseFrontFace(){return!!(16&this.data)}set clockwiseFrontFace(t){!!(16&this.data)!==t&&(this.data^=16)}get blendMode(){return this._blendMode}set blendMode(t){this.blend="none"!==t,this._blendMode=t,this._blendModeId=e[t]||0}get polygonOffset(){return this._polygonOffset}set polygonOffset(t){this.offsets=!!t,this._polygonOffset=t}toString(){return`[pixi.js/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`}static for2d(){let e=new t;return e.depthTest=!1,e.blend=!0,e}};r.default2d=r.for2d(),t.s(["State",()=>r])},199046,t=>{"use strict";function e(t,e,r){let i=(t>>24&255)/255;e[r++]=(255&t)/255*i,e[r++]=(t>>8&255)/255*i,e[r++]=(t>>16&255)/255*i,e[r++]=i}t.s(["color32BitToUniform",()=>e])},359801,t=>{"use strict";var e=t.i(868936),r=t.i(450618),i=t.i(916468),n=t.i(115158),a=t.i(166200),s=t.i(699481);class o{constructor(){this.isBatchable=!1}reset(){this.isBatchable=!1,this.context=null,this.graphicsData&&(this.graphicsData.destroy(),this.graphicsData=null)}destroy(){this.reset()}}class l{constructor(){this.instructions=new a.InstructionSet}init(){this.instructions.reset()}destroy(){this.instructions.destroy(),this.instructions=null}}let h=class t{constructor(t){this._renderer=t,this._managedContexts=new s.GCManagedHash({renderer:t,type:"resource",name:"graphicsContext"})}init(e){t.defaultOptions.bezierSmoothness=e?.bezierSmoothness??t.defaultOptions.bezierSmoothness}getContextRenderData(t){return this.getGpuContext(t).graphicsData||this._initContextRenderData(t)}updateGpuContext(t){let e=t._gpuData,r=!!e[this._renderer.uid],i=e[this._renderer.uid]||this._initContext(t);return(t.dirty||!r)&&(r&&i.reset(),i.isBatchable=!1,t.dirty=!1),i}getGpuContext(t){return t._gpuData[this._renderer.uid]||this._initContext(t)}_initContextRenderData(t){let e=new l;return this.getGpuContext(t).graphicsData=e,e.init(),e}_initContext(t){let e=new o;return e.context=t,t._gpuData[this._renderer.uid]=e,this._managedContexts.add(t),e}destroy(){this._managedContexts.destroy(),this._renderer=null}};h.extension={type:[n.ExtensionType.CanvasSystem],name:"graphicsContext"},h.defaultOptions={bezierSmoothness:.5};var u=t.i(46180);class d{constructor(t,e){this.state=u.State.for2d(),this.renderer=t,this._adaptor=e,this.renderer.runners.contextChange.add(this),this._managedGraphics=new s.GCManagedHash({renderer:t,type:"renderable",priority:-1,name:"graphics"})}contextChange(){this._adaptor.contextChange(this.renderer)}validateRenderable(t){return!1}addRenderable(t,e){this._managedGraphics.add(t),this.renderer.renderPipes.batch.break(e),e.add(t)}updateRenderable(t){}execute(t){t.isRenderable&&this._adaptor.execute(this,t)}destroy(){this._managedGraphics.destroy(),this.renderer=null,this._adaptor.de
206stroy(),this._adaptor=null}}d.extension={type:[n.ExtensionType.CanvasPipes],name:"graphics"};var c=t.i(984889),x=t.i(488153),f=t.i(199046),p=t.i(554104);class _{constructor(){this.batches=[],this.batched=!1}destroy(){this.batches.forEach(t=>{x.BigPool.return(t)}),this.batches.length=0}}class m{constructor(t,e){this.state=u.State.for2d(),this.renderer=t,this._adaptor=e,this.renderer.runners.contextChange.add(this),this._managedGraphics=new s.GCManagedHash({renderer:t,type:"renderable",priority:-1,name:"graphics"})}contextChange(){this._adaptor.contextChange(this.renderer)}validateRenderable(t){let e=t.context,r=!!t._gpuData,i=this.renderer.graphicsContext.updateGpuContext(e);return!!i.isBatchable||r!==i.isBatchable}addRenderable(t,e){let r=this.renderer.graphicsContext.updateGpuContext(t.context);t.didViewUpdate&&this._rebuild(t),r.isBatchable?this._addToBatcher(t,e):(this.renderer.renderPipes.batch.break(e),e.add(t))}updateRenderable(t){let e=this._getGpuDataForRenderable(t).batches;for(let t=0;t<e.length;t++){let r=e[t];r._batcher.updateElement(r)}}execute(t){if(!t.isRenderable)return;let e=this.renderer,r=t.context;if(!e.graphicsContext.getGpuContext(r).batches.length)return;let i=r.customShader||this._adaptor.shader;this.state.blendMode=t.groupBlendMode;let n=i.resources.localUniforms.uniforms;n.uTransformMatrix=t.groupTransform,n.uRound=e._roundPixels|t._roundPixels,(0,f.color32BitToUniform)(t.groupColorAlpha,n.uColor,0),this._adaptor.execute(this,t)}_rebuild(t){let e=this._getGpuDataForRenderable(t),r=this.renderer.graphicsContext.updateGpuContext(t.context);e.destroy(),r.isBatchable&&this._updateBatchesForRenderable(t,e)}_addToBatcher(t,e){let r=this.renderer.renderPipes.batch,i=this._getGpuDataForRenderable(t).batches;for(let t=0;t<i.length;t++){let n=i[t];r.addToBatch(n,e)}}_getGpuDataForRenderable(t){return t._gpuData[this.renderer.uid]||this._initGpuDataForRenderable(t)}_initGpuDataForRenderable(t){let e=new _;return t._gpuData[this.renderer.uid]=e,this._managedGraphics.add(t),e}_updateBatchesForRenderable(t,e){let r=t.context,i=this.renderer.graphicsContext.getGpuContext(r),n=this.renderer._roundPixels|t._roundPixels;e.batches=i.batches.map(e=>{let r=x.BigPool.get(p.BatchableGraphics);return e.copyTo(r),r.renderable=t,r.roundPixels=n,r})}destroy(){this._managedGraphics.destroy(),this.renderer=null,this._adaptor.de
206stroy(),this._adaptor=null,this.state=null}}m.extension={type:[n.ExtensionType.WebGLPipes,n.ExtensionType.WebGPUPipes],name:"graphics"},n.extensions.add(d),n.extensions.add(m),n.extensions.add(h),n.extensions.add(c.GraphicsContextSystem);class g extends r.ViewContainer{constructor(t){t instanceof i.GraphicsContext&&(t={context:t});const{context:e,roundPixels:r,...n}=t||{};super({label:"Graphics",...n}),this.renderPipeId="graphics",e?this.context=e:(this.context=this._ownedContext=new i.GraphicsContext,this.context.autoGarbageCollect=this.autoGarbageCollect),this.didViewUpdate=!0,this.allowChildren=!1,this.roundPixels=r??!1}set context(t){t!==this._context&&(this._context&&(this._context.off("update",this.onViewUpdate,this),this._context.off("unload",this.unload,this)),this._context=t,this._context.on("update",this.onViewUpdate,this),this._context.on("unload",this.unload,this),this.onViewUpdate())}get context(){return this._context}get bounds(){return this._context.bounds}updateBounds(){}containsPoint(t){return this._context.containsPoint(t)}destroy(t){this._ownedContext&&!t?this._ownedContext.destroy(t):(!0===t||t?.context===!0)&&this._context.destroy(t),this._ownedContext=null,this._context=null,super.destroy(t)}_onTouch(t){this._gcLastUsed=t,this._context._gcLastUsed=t}_callContextMethod(t,e){return this.context[t](...e),this}setFillStyle(...t){return this._callContextMethod("setFillStyle",t)}setStrokeStyle(...t){return this._callContextMethod("setStrokeStyle",t)}fill(...t){return this._callContextMethod("fill",t)}stroke(...t){return this._callContextMethod("stroke",t)}texture(...t){return this._callContextMethod("texture",t)}beginPath(){return this._callContextMethod("beginPath",[])}cut(){return this._callContextMethod("cut",[])}arc(...t){return this._callContextMethod("arc",t)}arcTo(...t){return this._callContextMethod("arcTo",t)}arcToSvg(...t){return this._callContextMethod("arcToSvg",t)}bezierCurveTo(...t){return this._callContextMethod("bezierCurveTo",t)}closePath(){return this._callContextMethod("closePath",[])}ellipse(...t){return this._callContextMethod("ellipse",t)}circle(...t){return this._callContextMethod("circle",t)}path(...t){return this._callContextMethod("path",t)}lineTo(...t){return this._callContextMethod("lineTo",t)}moveTo(...t){return this._callContextMethod("moveTo",t)}quadraticCurveTo(...t){return this._callContextMethod("quadraticCurveTo",t)}rect(...t){return this._callContextMethod("rect",t)}roundRect(...t){return this._callContextMethod("roundRect",t)}poly(...t){return this._callContextMethod("poly",t)}regularPoly(...t){return this._callContextMethod("regularPoly",t)}roundPoly(...t){return this._callContextMethod("roundPoly",t)}roundShape(...t){return this._callContextMethod("roundShape",t)}filletRect(...t){return this._callContextMethod("filletRect",t)}chamferRect(...t){return this._callContextMethod("chamferRect",t)}star(...t){return this._callContextMethod("star",t)}svg(...t){return this._callContextMethod("svg",t)}restore(...t){return this._callContextMethod("restore",t)}save(){return this._callContextMethod("save",[])}getTransform(){return this.context.getTransform()}resetTransform(){return this._callContextMethod("resetTransform",[])}rotateTransform(...t){return this._callContextMethod("rotate",t)}scaleTransform(...t){return this._callContextMethod("scale",t)}setTransform(...t){return this._callContextMethod("setTransform",t)}transform(...t){return this._callContextMethod("transform",t)}translateTransform(...t){return this._callContextMethod("translate",t)}clear(){return this._callContextMethod("clear",[])}get fillStyle(){return this._context.fillStyle}set fillStyle(t){this._context.fillStyle=t}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(t){this._context.strokeStyle=t}clone(t=!1){return t?new g(this._context.clone()):(this._ownedContext=null,new g(this._context))}lineStyle(t,r,i){(0,e.deprecation)(e.v8_0_0,"Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");let n={};return t&&(n.width=t),r&&(n.color=r),i&&(n.alpha=i),this.context.strokeStyle=n,this}beginFill(t,r){(0,e.deprecation)(e.v8_0_0,"Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");let i={};return void 0!==t&&(i.color=t),void 0!==r&&(i.alpha=r),this.context.fillStyle=i,this}endFill(){(0,e.deprecation)(e.v8_0_0,"Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."),this.context.fill();let t=this.context.strokeStyle;return(t.width!==i.GraphicsContext.defaultStrokeStyle.width||t.color!==i.GraphicsContext.defaultStrokeStyle.color||t.alpha!==i.GraphicsContext.defaultStrokeStyle.alpha)&&this.context.stroke(),this}drawCircle(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawCircle has been renamed to Graphics#circle"),this._callContextMethod("circle",t)}drawEllipse(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawEllipse has been renamed to Graphics#ellipse"),this._callContextMethod("ellipse",t)}drawPolygon(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawPolygon has been renamed to Graphics#poly"),this._callContextMethod("poly",t)}drawRect(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawRect has been renamed to Graphics#rect"),this._callContextMethod("rect",t)}drawRoundedRect(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawRoundedRect has been renamed to Graphics#roundRect"),this._callContextMethod("roundRect",t)}drawStar(...t){return(0,e.deprecation)(e.v8_0_0,"Graphics#drawStar has been renamed to Graphics#star"),this._callContextMethod("star",t)}}t.s(["Graphics",()=>g],359801)}]);

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.