plotly.js 2.10.1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/CONTRIBUTING.md +17 -0
  3. package/README.md +3 -3
  4. package/dist/README.md +22 -22
  5. package/dist/plotly-basic.js +2 -2
  6. package/dist/plotly-basic.min.js +2 -2
  7. package/dist/plotly-cartesian.js +2 -2
  8. package/dist/plotly-cartesian.min.js +2 -2
  9. package/dist/plotly-finance.js +2 -2
  10. package/dist/plotly-finance.min.js +2 -2
  11. package/dist/plotly-geo-assets.js +2 -2
  12. package/dist/plotly-geo.js +2 -2
  13. package/dist/plotly-geo.min.js +2 -2
  14. package/dist/plotly-gl2d.js +380 -344
  15. package/dist/plotly-gl2d.min.js +10 -10
  16. package/dist/plotly-gl3d.js +2 -2
  17. package/dist/plotly-gl3d.min.js +2 -2
  18. package/dist/plotly-mapbox.js +2 -2
  19. package/dist/plotly-mapbox.min.js +2 -2
  20. package/dist/plotly-strict.js +40193 -939
  21. package/dist/plotly-strict.min.js +11 -11
  22. package/dist/plotly-with-meta.js +656 -615
  23. package/dist/plotly.js +627 -586
  24. package/dist/plotly.min.js +3 -3
  25. package/lib/index-strict.js +5 -0
  26. package/package.json +5 -4
  27. package/src/generated/regl-codegen/0919c57b995304312da30a5af7873a319bfb7b7e22ff6b4fa203ecbd5774ebfc +1462 -0
  28. package/src/generated/regl-codegen/13c0ae156483f2bcbd7ff29404f0abfd8689ff43f41791a6c7469868690a4260 +3391 -0
  29. package/src/generated/regl-codegen/19769c875db736c08a744c0a6aabe28276ed06aa24fdb7c36506a9f4c1f56f13 +3375 -0
  30. package/src/generated/regl-codegen/21cec01aa93887c70e86d7f1bc84d6837da0b1f5c1ff4cadd42ac6eb37f9f316 +2488 -0
  31. package/src/generated/regl-codegen/4df455b48c9de7d9f1de4b9481b505c09613ba7f90d2b4e360e673839566688e +662 -0
  32. package/src/generated/regl-codegen/53f2bf051e4ba66c90f343d29aa8da9e4029454c0d428f8e46e94dfddc97c8c6 +459 -0
  33. package/src/generated/regl-codegen/59568c77bcbe6343ee6109df49ceeb78c8a8a8a81872e88fb077f9a3d6dc0567 +637 -0
  34. package/src/generated/regl-codegen/6c3ff5a68d2906faf59307b58a799389f916ebdd3f7732ce75967575041988fc +2226 -0
  35. package/src/generated/regl-codegen/7c8e7f36e693904898ece5f7f8b49b23c69d98397567c3915a45647209eb7da4 +2052 -0
  36. package/src/generated/regl-codegen/8a43b073e4f3e9c0e499c8ac9c253f2aa1e3d3de2febfccc6526b52295dbf770 +664 -0
  37. package/src/generated/regl-codegen/909861c036d6f1ef40ba2dfcc33ef32489d2fe05fa7b7984d5ff315ddceb17b1 +454 -0
  38. package/src/generated/regl-codegen/c759965c8d66b2b356ae7455825df829f2ba7d4e7e903236f8c8d3bc5f45bd44 +2116 -0
  39. package/src/generated/regl-codegen/f9448a214a3e3cd439b767559aa71a4d1ccf5a8f39b8b756973e71acd33ff956 +2755 -0
  40. package/src/generated/regl-codegen/ff8495670417d5d0e4caa9942ad63b4dff0242a390ac1cb807c78ca326d6f3ce +639 -0
  41. package/src/lib/prepare_regl.js +7 -3
  42. package/src/traces/parcoords/base_index.js +24 -0
  43. package/src/traces/parcoords/index.js +4 -22
  44. package/src/traces/parcoords/plot-strict.js +9 -0
  45. package/src/traces/parcoords/plot.js +5 -2
  46. package/src/traces/parcoords/regl_precompiled.js +12 -0
  47. package/src/traces/parcoords/strict.js +7 -0
  48. package/src/traces/scattergl/base_index.js +29 -0
  49. package/src/traces/scattergl/index.js +3 -26
  50. package/src/traces/scattergl/plot.js +5 -2
  51. package/src/traces/scattergl/plot_strict.js +9 -0
  52. package/src/traces/scattergl/regl_precompiled.js +24 -0
  53. package/src/traces/scattergl/strict.js +7 -0
  54. package/src/traces/scatterpolargl/base_index.js +29 -0
  55. package/src/traces/scatterpolargl/index.js +3 -26
  56. package/src/traces/scatterpolargl/plot.js +4 -0
  57. package/src/traces/scatterpolargl/plot_strict.js +13 -0
  58. package/src/traces/scatterpolargl/regl_precompiled.js +24 -0
  59. package/src/traces/scatterpolargl/strict.js +7 -0
  60. package/src/traces/splom/base_index.js +36 -0
  61. package/src/traces/splom/base_plot.js +5 -2
  62. package/src/traces/splom/base_plot_strict.js +9 -0
  63. package/src/traces/splom/index.js +3 -33
  64. package/src/traces/splom/regl_precompiled.js +24 -0
  65. package/src/traces/splom/strict.js +7 -0
  66. package/src/version.js +1 -1
  67. package/tasks/bundle.js +18 -0
  68. package/tasks/partial_bundle.js +26 -23
  69. package/tasks/stats.js +3 -3
  70. package/tasks/util/constants.js +13 -1
@@ -0,0 +1,3375 @@
1
+ module.exports = function anonymous(g0,g18,g19,g52,g90,g97,g98,g100,g105,g106,g109,g111,g113,g127,g131,g133,g147,g151,g153,g167,g171,g173,g187,g191,g193,g207,g211,g213,g227,g231,g233,g247,g251,g253,g267,g271,g273,g287,g291,g292,g294,g295,g296,g298,g301,g302,g303,g305,g306,g308,g311,g313,g316,g318,g321,g323,g329,g331,g333,g346,g348,g350,g352,g354,g356,g358,g360,g362,g364,g375,g377,g389,g391,g393,g394,g397,g400,g403,g406,g409,g412,g415,g418,g434,g461,g488,g515,g542,g569,g596,g623,g650,g663,g665,g703,g704,g705,g706
2
+ ) {
3
+ "use strict";
4
+ var v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51;
5
+ v1=g0.gl;
6
+ v2=g0.context;
7
+ v3=g0.strings;
8
+ v4=g0.next;
9
+ v5=g0.current;
10
+ v6=g0.draw;
11
+ v7=g0.elements;
12
+ v8=g0.buffer;
13
+ v9=g0.shader;
14
+ v10=g0.attributes;
15
+ v11=g0.vao;
16
+ v12=g0.uniforms;
17
+ v13=g0.framebuffer;
18
+ v14=g0.extensions;
19
+ v15=g0.timer;
20
+ v16=g0.isBufferArgs;
21
+ v17=g0.isArrayLike;
22
+ v20=v4.blend_color;
23
+ v21=v5.blend_color;
24
+ v22=v4.blend_equation;
25
+ v23=v5.blend_equation;
26
+ v24=v4.blend_func;
27
+ v25=v5.blend_func;
28
+ v26=v4.depth_range;
29
+ v27=v5.depth_range;
30
+ v28=v4.colorMask;
31
+ v29=v5.colorMask;
32
+ v30=v4.polygonOffset_offset;
33
+ v31=v5.polygonOffset_offset;
34
+ v32=v4.sample_coverage;
35
+ v33=v5.sample_coverage;
36
+ v34=v4.stencil_func;
37
+ v35=v5.stencil_func;
38
+ v36=v4.stencil_opFront;
39
+ v37=v5.stencil_opFront;
40
+ v38=v4.stencil_opBack;
41
+ v39=v5.stencil_opBack;
42
+ v40=v4.scissor_box;
43
+ v41=v5.scissor_box;
44
+ v42=v4.viewport;
45
+ v43=v5.viewport;
46
+ v44={
47
+ "points":0,"point":0,"lines":1,"line":1,"triangles":4,"triangle":4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6}
48
+ ;
49
+ v45={
50
+ "never":512,"less":513,"<":513,"equal":514,"=":514,"==":514,"===":514,"lequal":515,"<=":515,"greater":516,">":516,"notequal":517,"!=":517,"!==":517,"gequal":518,">=":518,"always":519}
51
+ ;
52
+ v46={
53
+ "0":0,"1":1,"zero":0,"one":1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776}
54
+ ;
55
+ v47={
56
+ "add":32774,"subtract":32778,"reverse subtract":32779}
57
+ ;
58
+ v48={
59
+ "0":0,"zero":0,"keep":7680,"replace":7681,"increment":7682,"decrement":7683,"increment wrap":34055,"decrement wrap":34056,"invert":5386}
60
+ ;
61
+ v49={
62
+ "int8":5120,"int16":5122,"int32":5124,"uint8":5121,"uint16":5123,"uint32":5125,"float":5126,"float32":5126}
63
+ ;
64
+ v50={
65
+ "cw":2304,"ccw":2305}
66
+ ;
67
+ v51=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"];
68
+ return {
69
+ "draw":function(a0){
70
+ var v53,v54,v89,v91,v92,v93,v94,v95,v96,v99,v101,v102,v103,v104,v107,v108,v110,v112,v114,v115,v116,v117,v118,v119,v120,v121,v122,v123,v124,v125,v126,v128,v129,v130,v132,v134,v135,v136,v137,v138,v139,v140,v141,v142,v143,v144,v145,v146,v148,v149,v150,v152,v154,v155,v156,v157,v158,v159,v160,v161,v162,v163,v164,v165,v166,v168,v169,v170,v172,v174,v175,v176,v177,v178,v179,v180,v181,v182,v183,v184,v185,v186,v188,v189,v190,v192,v194,v195,v196,v197,v198,v199,v200,v201,v202,v203,v204,v205,v206,v208,v209,v210,v212,v214,v215,v216,v217,v218,v219,v220,v221,v222,v223,v224,v225,v226,v228,v229,v230,v232,v234,v235,v236,v237,v238,v239,v240,v241,v242,v243,v244,v245,v246,v248,v249,v250,v252,v254,v255,v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,v268,v269,v270,v272,v274,v275,v276,v277,v278,v279,v280,v281,v282,v283,v284,v285,v286,v288,v289,v290,v293,v297,v299,v300,v304,v307,v309,v310,v312,v314,v315,v317,v319,v320,v322,v324,v325,v326,v327,v328,v330,v332,v334;
71
+ v53=v14.angle_instanced_arrays;
72
+ v54=v13.next;
73
+ if(v54!==v13.cur){
74
+ if(v54){
75
+ v1.bindFramebuffer(36160,v54.framebuffer);
76
+ }
77
+ else{
78
+ v1.bindFramebuffer(36160,null);
79
+ }
80
+ v13.cur=v54;
81
+ }
82
+ if(v5.dirty){
83
+ var v55,v56,v57,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,v76,v77,v78,v79,v80,v81,v82,v83,v84,v85,v86,v87,v88;
84
+ v55=v4.dither;
85
+ if(v55!==v5.dither){
86
+ if(v55){
87
+ v1.enable(3024);
88
+ }
89
+ else{
90
+ v1.disable(3024);
91
+ }
92
+ v5.dither=v55;
93
+ }
94
+ v56=v22[0];
95
+ v57=v22[1];
96
+ if(v56!==v23[0]||v57!==v23[1]){
97
+ v1.blendEquationSeparate(v56,v57);
98
+ v23[0]=v56;
99
+ v23[1]=v57;
100
+ }
101
+ v58=v4.depth_func;
102
+ if(v58!==v5.depth_func){
103
+ v1.depthFunc(v58);
104
+ v5.depth_func=v58;
105
+ }
106
+ v59=v26[0];
107
+ v60=v26[1];
108
+ if(v59!==v27[0]||v60!==v27[1]){
109
+ v1.depthRange(v59,v60);
110
+ v27[0]=v59;
111
+ v27[1]=v60;
112
+ }
113
+ v61=v4.depth_mask;
114
+ if(v61!==v5.depth_mask){
115
+ v1.depthMask(v61);
116
+ v5.depth_mask=v61;
117
+ }
118
+ v62=v28[0];
119
+ v63=v28[1];
120
+ v64=v28[2];
121
+ v65=v28[3];
122
+ if(v62!==v29[0]||v63!==v29[1]||v64!==v29[2]||v65!==v29[3]){
123
+ v1.colorMask(v62,v63,v64,v65);
124
+ v29[0]=v62;
125
+ v29[1]=v63;
126
+ v29[2]=v64;
127
+ v29[3]=v65;
128
+ }
129
+ v66=v4.cull_enable;
130
+ if(v66!==v5.cull_enable){
131
+ if(v66){
132
+ v1.enable(2884);
133
+ }
134
+ else{
135
+ v1.disable(2884);
136
+ }
137
+ v5.cull_enable=v66;
138
+ }
139
+ v67=v4.cull_face;
140
+ if(v67!==v5.cull_face){
141
+ v1.cullFace(v67);
142
+ v5.cull_face=v67;
143
+ }
144
+ v68=v4.frontFace;
145
+ if(v68!==v5.frontFace){
146
+ v1.frontFace(v68);
147
+ v5.frontFace=v68;
148
+ }
149
+ v69=v4.lineWidth;
150
+ if(v69!==v5.lineWidth){
151
+ v1.lineWidth(v69);
152
+ v5.lineWidth=v69;
153
+ }
154
+ v70=v4.polygonOffset_enable;
155
+ if(v70!==v5.polygonOffset_enable){
156
+ if(v70){
157
+ v1.enable(32823);
158
+ }
159
+ else{
160
+ v1.disable(32823);
161
+ }
162
+ v5.polygonOffset_enable=v70;
163
+ }
164
+ v71=v30[0];
165
+ v72=v30[1];
166
+ if(v71!==v31[0]||v72!==v31[1]){
167
+ v1.polygonOffset(v71,v72);
168
+ v31[0]=v71;
169
+ v31[1]=v72;
170
+ }
171
+ v73=v4.sample_alpha;
172
+ if(v73!==v5.sample_alpha){
173
+ if(v73){
174
+ v1.enable(32926);
175
+ }
176
+ else{
177
+ v1.disable(32926);
178
+ }
179
+ v5.sample_alpha=v73;
180
+ }
181
+ v74=v4.sample_enable;
182
+ if(v74!==v5.sample_enable){
183
+ if(v74){
184
+ v1.enable(32928);
185
+ }
186
+ else{
187
+ v1.disable(32928);
188
+ }
189
+ v5.sample_enable=v74;
190
+ }
191
+ v75=v32[0];
192
+ v76=v32[1];
193
+ if(v75!==v33[0]||v76!==v33[1]){
194
+ v1.sampleCoverage(v75,v76);
195
+ v33[0]=v75;
196
+ v33[1]=v76;
197
+ }
198
+ v77=v4.stencil_mask;
199
+ if(v77!==v5.stencil_mask){
200
+ v1.stencilMask(v77);
201
+ v5.stencil_mask=v77;
202
+ }
203
+ v78=v34[0];
204
+ v79=v34[1];
205
+ v80=v34[2];
206
+ if(v78!==v35[0]||v79!==v35[1]||v80!==v35[2]){
207
+ v1.stencilFunc(v78,v79,v80);
208
+ v35[0]=v78;
209
+ v35[1]=v79;
210
+ v35[2]=v80;
211
+ }
212
+ v81=v36[0];
213
+ v82=v36[1];
214
+ v83=v36[2];
215
+ v84=v36[3];
216
+ if(v81!==v37[0]||v82!==v37[1]||v83!==v37[2]||v84!==v37[3]){
217
+ v1.stencilOpSeparate(v81,v82,v83,v84);
218
+ v37[0]=v81;
219
+ v37[1]=v82;
220
+ v37[2]=v83;
221
+ v37[3]=v84;
222
+ }
223
+ v85=v38[0];
224
+ v86=v38[1];
225
+ v87=v38[2];
226
+ v88=v38[3];
227
+ if(v85!==v39[0]||v86!==v39[1]||v87!==v39[2]||v88!==v39[3]){
228
+ v1.stencilOpSeparate(v85,v86,v87,v88);
229
+ v39[0]=v85;
230
+ v39[1]=v86;
231
+ v39[2]=v87;
232
+ v39[3]=v88;
233
+ }
234
+ }
235
+ v89=a0["viewport"];
236
+ if(!(v89&&typeof v89==="object"))g18.commandRaise(g90,g19);
237
+ v91=v89.x|0;
238
+ v92=v89.y|0;
239
+ v93="width" in v89?v89.width|0:(v2.framebufferWidth-v91);
240
+ v94="height" in v89?v89.height|0:(v2.framebufferHeight-v92);
241
+ if(!(v93>=0&&v94>=0))g18.commandRaise(g90,g19);
242
+ v95=v2.viewportWidth;
243
+ v2.viewportWidth=v93;
244
+ v96=v2.viewportHeight;
245
+ v2.viewportHeight=v94;
246
+ v1.viewport(v91,v92,v93,v94);
247
+ v43[0]=v91;
248
+ v43[1]=v92;
249
+ v43[2]=v93;
250
+ v43[3]=v94;
251
+ v1.blendColor(0,0,0,1);
252
+ v21[0]=0;
253
+ v21[1]=0;
254
+ v21[2]=0;
255
+ v21[3]=1;
256
+ if(g97){
257
+ v1.enable(3042);
258
+ }
259
+ else{
260
+ v1.disable(3042);
261
+ }
262
+ v5.blend_enable=g97;
263
+ v1.blendFuncSeparate(770,771,773,1);
264
+ v25[0]=770;
265
+ v25[1]=771;
266
+ v25[2]=773;
267
+ v25[3]=1;
268
+ if(g98){
269
+ v1.enable(2929);
270
+ }
271
+ else{
272
+ v1.disable(2929);
273
+ }
274
+ v5.depth_enable=g98;
275
+ v99=a0["viewport"];
276
+ if(!(v99&&typeof v99==="object"))g18.commandRaise(g100,g19);
277
+ v101=v99.x|0;
278
+ v102=v99.y|0;
279
+ v103="width" in v99?v99.width|0:(v2.framebufferWidth-v101);
280
+ v104="height" in v99?v99.height|0:(v2.framebufferHeight-v102);
281
+ if(!(v103>=0&&v104>=0))g18.commandRaise(g100,g19);
282
+ v1.scissor(v101,v102,v103,v104);
283
+ v41[0]=v101;
284
+ v41[1]=v102;
285
+ v41[2]=v103;
286
+ v41[3]=v104;
287
+ if(g105){
288
+ v1.enable(3089);
289
+ }
290
+ else{
291
+ v1.disable(3089);
292
+ }
293
+ v5.scissor_enable=g105;
294
+ if(g106){
295
+ v1.enable(2960);
296
+ }
297
+ else{
298
+ v1.disable(2960);
299
+ }
300
+ v5.stencil_enable=g106;
301
+ v107=v5.profile;
302
+ if(v107){
303
+ v108=performance.now();
304
+ g52.count++;
305
+ }
306
+ v1.useProgram(g109.program);
307
+ v110=v14.angle_instanced_arrays;
308
+ v11.setVAO(null);
309
+ v112=g111.call(this,v2,a0,0);
310
+ if(!(v112&&(typeof v112==="object"||typeof v112==="function")&&(v16(v112)||v8.getBuffer(v112)||v8.getBuffer(v112.buffer)||v16(v112.buffer)||("constant" in v112&&(typeof v112.constant==="number"||v17(v112.constant))))))g18.commandRaise(g113,g19);
311
+ v114=false;
312
+ v115=1;
313
+ v116=0;
314
+ v117=0;
315
+ v118=0;
316
+ v119=0;
317
+ v120=null;
318
+ v121=0;
319
+ v122=false;
320
+ v123=5126;
321
+ v124=0;
322
+ v125=0;
323
+ v126=0;
324
+ if(v16(v112)){
325
+ v114=true;
326
+ v120=v8.createStream(34962,v112);
327
+ v123=v120.dtype;
328
+ }
329
+ else{
330
+ v120=v8.getBuffer(v112);
331
+ if(v120){
332
+ v123=v120.dtype;
333
+ }
334
+ else if("constant" in v112){
335
+ v115=2;
336
+ if(typeof v112.constant === "number"){
337
+ v116=v112.constant;
338
+ v117=v118=v119=0;
339
+ }
340
+ else{
341
+ v116=v112.constant.length>0?v112.constant[0]:0;
342
+ v117=v112.constant.length>1?v112.constant[1]:0;
343
+ v118=v112.constant.length>2?v112.constant[2]:0;
344
+ v119=v112.constant.length>3?v112.constant[3]:0;
345
+ }
346
+ }
347
+ else{
348
+ if(v16(v112.buffer)){
349
+ v120=v8.createStream(34962,v112.buffer);
350
+ }
351
+ else{
352
+ v120=v8.getBuffer(v112.buffer);
353
+ }
354
+ v123="type" in v112?v49[v112.type]:v120.dtype;
355
+ v122=!!v112.normalized;
356
+ v121=v112.size|0;
357
+ v124=v112.offset|0;
358
+ v125=v112.stride|0;
359
+ v126=v112.divisor|0;
360
+ }
361
+ }
362
+ v128=g127.location;
363
+ v129=v10[v128];
364
+ if(v115===1){
365
+ if(!v129.buffer){
366
+ v1.enableVertexAttribArray(v128);
367
+ }
368
+ v130=v121||4;
369
+ if(v129.type!==v123||v129.size!==v130||v129.buffer!==v120||v129.normalized!==v122||v129.offset!==v124||v129.stride!==v125){
370
+ v1.bindBuffer(34962,v120.buffer);
371
+ v1.vertexAttribPointer(v128,v130,v123,v122,v125,v124);
372
+ v129.type=v123;
373
+ v129.size=v130;
374
+ v129.buffer=v120;
375
+ v129.normalized=v122;
376
+ v129.offset=v124;
377
+ v129.stride=v125;
378
+ }
379
+ if(v129.divisor!==v126){
380
+ v110.vertexAttribDivisorANGLE(v128,v126);
381
+ v129.divisor=v126;
382
+ }
383
+ }
384
+ else{
385
+ if(v129.buffer){
386
+ v1.disableVertexAttribArray(v128);
387
+ v129.buffer=null;
388
+ }
389
+ if(v129.x!==v116||v129.y!==v117||v129.z!==v118||v129.w!==v119){
390
+ v1.vertexAttrib4f(v128,v116,v117,v118,v119);
391
+ v129.x=v116;
392
+ v129.y=v117;
393
+ v129.z=v118;
394
+ v129.w=v119;
395
+ }
396
+ }
397
+ v132=g131.call(this,v2,a0,0);
398
+ if(!(v132&&(typeof v132==="object"||typeof v132==="function")&&(v16(v132)||v8.getBuffer(v132)||v8.getBuffer(v132.buffer)||v16(v132.buffer)||("constant" in v132&&(typeof v132.constant==="number"||v17(v132.constant))))))g18.commandRaise(g133,g19);
399
+ v134=false;
400
+ v135=1;
401
+ v136=0;
402
+ v137=0;
403
+ v138=0;
404
+ v139=0;
405
+ v140=null;
406
+ v141=0;
407
+ v142=false;
408
+ v143=5126;
409
+ v144=0;
410
+ v145=0;
411
+ v146=0;
412
+ if(v16(v132)){
413
+ v134=true;
414
+ v140=v8.createStream(34962,v132);
415
+ v143=v140.dtype;
416
+ }
417
+ else{
418
+ v140=v8.getBuffer(v132);
419
+ if(v140){
420
+ v143=v140.dtype;
421
+ }
422
+ else if("constant" in v132){
423
+ v135=2;
424
+ if(typeof v132.constant === "number"){
425
+ v136=v132.constant;
426
+ v137=v138=v139=0;
427
+ }
428
+ else{
429
+ v136=v132.constant.length>0?v132.constant[0]:0;
430
+ v137=v132.constant.length>1?v132.constant[1]:0;
431
+ v138=v132.constant.length>2?v132.constant[2]:0;
432
+ v139=v132.constant.length>3?v132.constant[3]:0;
433
+ }
434
+ }
435
+ else{
436
+ if(v16(v132.buffer)){
437
+ v140=v8.createStream(34962,v132.buffer);
438
+ }
439
+ else{
440
+ v140=v8.getBuffer(v132.buffer);
441
+ }
442
+ v143="type" in v132?v49[v132.type]:v140.dtype;
443
+ v142=!!v132.normalized;
444
+ v141=v132.size|0;
445
+ v144=v132.offset|0;
446
+ v145=v132.stride|0;
447
+ v146=v132.divisor|0;
448
+ }
449
+ }
450
+ v148=g147.location;
451
+ v149=v10[v148];
452
+ if(v135===1){
453
+ if(!v149.buffer){
454
+ v1.enableVertexAttribArray(v148);
455
+ }
456
+ v150=v141||1;
457
+ if(v149.type!==v143||v149.size!==v150||v149.buffer!==v140||v149.normalized!==v142||v149.offset!==v144||v149.stride!==v145){
458
+ v1.bindBuffer(34962,v140.buffer);
459
+ v1.vertexAttribPointer(v148,v150,v143,v142,v145,v144);
460
+ v149.type=v143;
461
+ v149.size=v150;
462
+ v149.buffer=v140;
463
+ v149.normalized=v142;
464
+ v149.offset=v144;
465
+ v149.stride=v145;
466
+ }
467
+ if(v149.divisor!==v146){
468
+ v110.vertexAttribDivisorANGLE(v148,v146);
469
+ v149.divisor=v146;
470
+ }
471
+ }
472
+ else{
473
+ if(v149.buffer){
474
+ v1.disableVertexAttribArray(v148);
475
+ v149.buffer=null;
476
+ }
477
+ if(v149.x!==v136||v149.y!==v137||v149.z!==v138||v149.w!==v139){
478
+ v1.vertexAttrib4f(v148,v136,v137,v138,v139);
479
+ v149.x=v136;
480
+ v149.y=v137;
481
+ v149.z=v138;
482
+ v149.w=v139;
483
+ }
484
+ }
485
+ v152=g151.call(this,v2,a0,0);
486
+ if(!(v152&&(typeof v152==="object"||typeof v152==="function")&&(v16(v152)||v8.getBuffer(v152)||v8.getBuffer(v152.buffer)||v16(v152.buffer)||("constant" in v152&&(typeof v152.constant==="number"||v17(v152.constant))))))g18.commandRaise(g153,g19);
487
+ v154=false;
488
+ v155=1;
489
+ v156=0;
490
+ v157=0;
491
+ v158=0;
492
+ v159=0;
493
+ v160=null;
494
+ v161=0;
495
+ v162=false;
496
+ v163=5126;
497
+ v164=0;
498
+ v165=0;
499
+ v166=0;
500
+ if(v16(v152)){
501
+ v154=true;
502
+ v160=v8.createStream(34962,v152);
503
+ v163=v160.dtype;
504
+ }
505
+ else{
506
+ v160=v8.getBuffer(v152);
507
+ if(v160){
508
+ v163=v160.dtype;
509
+ }
510
+ else if("constant" in v152){
511
+ v155=2;
512
+ if(typeof v152.constant === "number"){
513
+ v156=v152.constant;
514
+ v157=v158=v159=0;
515
+ }
516
+ else{
517
+ v156=v152.constant.length>0?v152.constant[0]:0;
518
+ v157=v152.constant.length>1?v152.constant[1]:0;
519
+ v158=v152.constant.length>2?v152.constant[2]:0;
520
+ v159=v152.constant.length>3?v152.constant[3]:0;
521
+ }
522
+ }
523
+ else{
524
+ if(v16(v152.buffer)){
525
+ v160=v8.createStream(34962,v152.buffer);
526
+ }
527
+ else{
528
+ v160=v8.getBuffer(v152.buffer);
529
+ }
530
+ v163="type" in v152?v49[v152.type]:v160.dtype;
531
+ v162=!!v152.normalized;
532
+ v161=v152.size|0;
533
+ v164=v152.offset|0;
534
+ v165=v152.stride|0;
535
+ v166=v152.divisor|0;
536
+ }
537
+ }
538
+ v168=g167.location;
539
+ v169=v10[v168];
540
+ if(v155===1){
541
+ if(!v169.buffer){
542
+ v1.enableVertexAttribArray(v168);
543
+ }
544
+ v170=v161||4;
545
+ if(v169.type!==v163||v169.size!==v170||v169.buffer!==v160||v169.normalized!==v162||v169.offset!==v164||v169.stride!==v165){
546
+ v1.bindBuffer(34962,v160.buffer);
547
+ v1.vertexAttribPointer(v168,v170,v163,v162,v165,v164);
548
+ v169.type=v163;
549
+ v169.size=v170;
550
+ v169.buffer=v160;
551
+ v169.normalized=v162;
552
+ v169.offset=v164;
553
+ v169.stride=v165;
554
+ }
555
+ if(v169.divisor!==v166){
556
+ v110.vertexAttribDivisorANGLE(v168,v166);
557
+ v169.divisor=v166;
558
+ }
559
+ }
560
+ else{
561
+ if(v169.buffer){
562
+ v1.disableVertexAttribArray(v168);
563
+ v169.buffer=null;
564
+ }
565
+ if(v169.x!==v156||v169.y!==v157||v169.z!==v158||v169.w!==v159){
566
+ v1.vertexAttrib4f(v168,v156,v157,v158,v159);
567
+ v169.x=v156;
568
+ v169.y=v157;
569
+ v169.z=v158;
570
+ v169.w=v159;
571
+ }
572
+ }
573
+ v172=g171.call(this,v2,a0,0);
574
+ if(!(v172&&(typeof v172==="object"||typeof v172==="function")&&(v16(v172)||v8.getBuffer(v172)||v8.getBuffer(v172.buffer)||v16(v172.buffer)||("constant" in v172&&(typeof v172.constant==="number"||v17(v172.constant))))))g18.commandRaise(g173,g19);
575
+ v174=false;
576
+ v175=1;
577
+ v176=0;
578
+ v177=0;
579
+ v178=0;
580
+ v179=0;
581
+ v180=null;
582
+ v181=0;
583
+ v182=false;
584
+ v183=5126;
585
+ v184=0;
586
+ v185=0;
587
+ v186=0;
588
+ if(v16(v172)){
589
+ v174=true;
590
+ v180=v8.createStream(34962,v172);
591
+ v183=v180.dtype;
592
+ }
593
+ else{
594
+ v180=v8.getBuffer(v172);
595
+ if(v180){
596
+ v183=v180.dtype;
597
+ }
598
+ else if("constant" in v172){
599
+ v175=2;
600
+ if(typeof v172.constant === "number"){
601
+ v176=v172.constant;
602
+ v177=v178=v179=0;
603
+ }
604
+ else{
605
+ v176=v172.constant.length>0?v172.constant[0]:0;
606
+ v177=v172.constant.length>1?v172.constant[1]:0;
607
+ v178=v172.constant.length>2?v172.constant[2]:0;
608
+ v179=v172.constant.length>3?v172.constant[3]:0;
609
+ }
610
+ }
611
+ else{
612
+ if(v16(v172.buffer)){
613
+ v180=v8.createStream(34962,v172.buffer);
614
+ }
615
+ else{
616
+ v180=v8.getBuffer(v172.buffer);
617
+ }
618
+ v183="type" in v172?v49[v172.type]:v180.dtype;
619
+ v182=!!v172.normalized;
620
+ v181=v172.size|0;
621
+ v184=v172.offset|0;
622
+ v185=v172.stride|0;
623
+ v186=v172.divisor|0;
624
+ }
625
+ }
626
+ v188=g187.location;
627
+ v189=v10[v188];
628
+ if(v175===1){
629
+ if(!v189.buffer){
630
+ v1.enableVertexAttribArray(v188);
631
+ }
632
+ v190=v181||1;
633
+ if(v189.type!==v183||v189.size!==v190||v189.buffer!==v180||v189.normalized!==v182||v189.offset!==v184||v189.stride!==v185){
634
+ v1.bindBuffer(34962,v180.buffer);
635
+ v1.vertexAttribPointer(v188,v190,v183,v182,v185,v184);
636
+ v189.type=v183;
637
+ v189.size=v190;
638
+ v189.buffer=v180;
639
+ v189.normalized=v182;
640
+ v189.offset=v184;
641
+ v189.stride=v185;
642
+ }
643
+ if(v189.divisor!==v186){
644
+ v110.vertexAttribDivisorANGLE(v188,v186);
645
+ v189.divisor=v186;
646
+ }
647
+ }
648
+ else{
649
+ if(v189.buffer){
650
+ v1.disableVertexAttribArray(v188);
651
+ v189.buffer=null;
652
+ }
653
+ if(v189.x!==v176||v189.y!==v177||v189.z!==v178||v189.w!==v179){
654
+ v1.vertexAttrib4f(v188,v176,v177,v178,v179);
655
+ v189.x=v176;
656
+ v189.y=v177;
657
+ v189.z=v178;
658
+ v189.w=v179;
659
+ }
660
+ }
661
+ v192=g191.call(this,v2,a0,0);
662
+ if(!(v192&&(typeof v192==="object"||typeof v192==="function")&&(v16(v192)||v8.getBuffer(v192)||v8.getBuffer(v192.buffer)||v16(v192.buffer)||("constant" in v192&&(typeof v192.constant==="number"||v17(v192.constant))))))g18.commandRaise(g193,g19);
663
+ v194=false;
664
+ v195=1;
665
+ v196=0;
666
+ v197=0;
667
+ v198=0;
668
+ v199=0;
669
+ v200=null;
670
+ v201=0;
671
+ v202=false;
672
+ v203=5126;
673
+ v204=0;
674
+ v205=0;
675
+ v206=0;
676
+ if(v16(v192)){
677
+ v194=true;
678
+ v200=v8.createStream(34962,v192);
679
+ v203=v200.dtype;
680
+ }
681
+ else{
682
+ v200=v8.getBuffer(v192);
683
+ if(v200){
684
+ v203=v200.dtype;
685
+ }
686
+ else if("constant" in v192){
687
+ v195=2;
688
+ if(typeof v192.constant === "number"){
689
+ v196=v192.constant;
690
+ v197=v198=v199=0;
691
+ }
692
+ else{
693
+ v196=v192.constant.length>0?v192.constant[0]:0;
694
+ v197=v192.constant.length>1?v192.constant[1]:0;
695
+ v198=v192.constant.length>2?v192.constant[2]:0;
696
+ v199=v192.constant.length>3?v192.constant[3]:0;
697
+ }
698
+ }
699
+ else{
700
+ if(v16(v192.buffer)){
701
+ v200=v8.createStream(34962,v192.buffer);
702
+ }
703
+ else{
704
+ v200=v8.getBuffer(v192.buffer);
705
+ }
706
+ v203="type" in v192?v49[v192.type]:v200.dtype;
707
+ v202=!!v192.normalized;
708
+ v201=v192.size|0;
709
+ v204=v192.offset|0;
710
+ v205=v192.stride|0;
711
+ v206=v192.divisor|0;
712
+ }
713
+ }
714
+ v208=g207.location;
715
+ v209=v10[v208];
716
+ if(v195===1){
717
+ if(!v209.buffer){
718
+ v1.enableVertexAttribArray(v208);
719
+ }
720
+ v210=v201||1;
721
+ if(v209.type!==v203||v209.size!==v210||v209.buffer!==v200||v209.normalized!==v202||v209.offset!==v204||v209.stride!==v205){
722
+ v1.bindBuffer(34962,v200.buffer);
723
+ v1.vertexAttribPointer(v208,v210,v203,v202,v205,v204);
724
+ v209.type=v203;
725
+ v209.size=v210;
726
+ v209.buffer=v200;
727
+ v209.normalized=v202;
728
+ v209.offset=v204;
729
+ v209.stride=v205;
730
+ }
731
+ if(v209.divisor!==v206){
732
+ v110.vertexAttribDivisorANGLE(v208,v206);
733
+ v209.divisor=v206;
734
+ }
735
+ }
736
+ else{
737
+ if(v209.buffer){
738
+ v1.disableVertexAttribArray(v208);
739
+ v209.buffer=null;
740
+ }
741
+ if(v209.x!==v196||v209.y!==v197||v209.z!==v198||v209.w!==v199){
742
+ v1.vertexAttrib4f(v208,v196,v197,v198,v199);
743
+ v209.x=v196;
744
+ v209.y=v197;
745
+ v209.z=v198;
746
+ v209.w=v199;
747
+ }
748
+ }
749
+ v212=g211.call(this,v2,a0,0);
750
+ if(!(v212&&(typeof v212==="object"||typeof v212==="function")&&(v16(v212)||v8.getBuffer(v212)||v8.getBuffer(v212.buffer)||v16(v212.buffer)||("constant" in v212&&(typeof v212.constant==="number"||v17(v212.constant))))))g18.commandRaise(g213,g19);
751
+ v214=false;
752
+ v215=1;
753
+ v216=0;
754
+ v217=0;
755
+ v218=0;
756
+ v219=0;
757
+ v220=null;
758
+ v221=0;
759
+ v222=false;
760
+ v223=5126;
761
+ v224=0;
762
+ v225=0;
763
+ v226=0;
764
+ if(v16(v212)){
765
+ v214=true;
766
+ v220=v8.createStream(34962,v212);
767
+ v223=v220.dtype;
768
+ }
769
+ else{
770
+ v220=v8.getBuffer(v212);
771
+ if(v220){
772
+ v223=v220.dtype;
773
+ }
774
+ else if("constant" in v212){
775
+ v215=2;
776
+ if(typeof v212.constant === "number"){
777
+ v216=v212.constant;
778
+ v217=v218=v219=0;
779
+ }
780
+ else{
781
+ v216=v212.constant.length>0?v212.constant[0]:0;
782
+ v217=v212.constant.length>1?v212.constant[1]:0;
783
+ v218=v212.constant.length>2?v212.constant[2]:0;
784
+ v219=v212.constant.length>3?v212.constant[3]:0;
785
+ }
786
+ }
787
+ else{
788
+ if(v16(v212.buffer)){
789
+ v220=v8.createStream(34962,v212.buffer);
790
+ }
791
+ else{
792
+ v220=v8.getBuffer(v212.buffer);
793
+ }
794
+ v223="type" in v212?v49[v212.type]:v220.dtype;
795
+ v222=!!v212.normalized;
796
+ v221=v212.size|0;
797
+ v224=v212.offset|0;
798
+ v225=v212.stride|0;
799
+ v226=v212.divisor|0;
800
+ }
801
+ }
802
+ v228=g227.location;
803
+ v229=v10[v228];
804
+ if(v215===1){
805
+ if(!v229.buffer){
806
+ v1.enableVertexAttribArray(v228);
807
+ }
808
+ v230=v221||1;
809
+ if(v229.type!==v223||v229.size!==v230||v229.buffer!==v220||v229.normalized!==v222||v229.offset!==v224||v229.stride!==v225){
810
+ v1.bindBuffer(34962,v220.buffer);
811
+ v1.vertexAttribPointer(v228,v230,v223,v222,v225,v224);
812
+ v229.type=v223;
813
+ v229.size=v230;
814
+ v229.buffer=v220;
815
+ v229.normalized=v222;
816
+ v229.offset=v224;
817
+ v229.stride=v225;
818
+ }
819
+ if(v229.divisor!==v226){
820
+ v110.vertexAttribDivisorANGLE(v228,v226);
821
+ v229.divisor=v226;
822
+ }
823
+ }
824
+ else{
825
+ if(v229.buffer){
826
+ v1.disableVertexAttribArray(v228);
827
+ v229.buffer=null;
828
+ }
829
+ if(v229.x!==v216||v229.y!==v217||v229.z!==v218||v229.w!==v219){
830
+ v1.vertexAttrib4f(v228,v216,v217,v218,v219);
831
+ v229.x=v216;
832
+ v229.y=v217;
833
+ v229.z=v218;
834
+ v229.w=v219;
835
+ }
836
+ }
837
+ v232=g231.call(this,v2,a0,0);
838
+ if(!(v232&&(typeof v232==="object"||typeof v232==="function")&&(v16(v232)||v8.getBuffer(v232)||v8.getBuffer(v232.buffer)||v16(v232.buffer)||("constant" in v232&&(typeof v232.constant==="number"||v17(v232.constant))))))g18.commandRaise(g233,g19);
839
+ v234=false;
840
+ v235=1;
841
+ v236=0;
842
+ v237=0;
843
+ v238=0;
844
+ v239=0;
845
+ v240=null;
846
+ v241=0;
847
+ v242=false;
848
+ v243=5126;
849
+ v244=0;
850
+ v245=0;
851
+ v246=0;
852
+ if(v16(v232)){
853
+ v234=true;
854
+ v240=v8.createStream(34962,v232);
855
+ v243=v240.dtype;
856
+ }
857
+ else{
858
+ v240=v8.getBuffer(v232);
859
+ if(v240){
860
+ v243=v240.dtype;
861
+ }
862
+ else if("constant" in v232){
863
+ v235=2;
864
+ if(typeof v232.constant === "number"){
865
+ v236=v232.constant;
866
+ v237=v238=v239=0;
867
+ }
868
+ else{
869
+ v236=v232.constant.length>0?v232.constant[0]:0;
870
+ v237=v232.constant.length>1?v232.constant[1]:0;
871
+ v238=v232.constant.length>2?v232.constant[2]:0;
872
+ v239=v232.constant.length>3?v232.constant[3]:0;
873
+ }
874
+ }
875
+ else{
876
+ if(v16(v232.buffer)){
877
+ v240=v8.createStream(34962,v232.buffer);
878
+ }
879
+ else{
880
+ v240=v8.getBuffer(v232.buffer);
881
+ }
882
+ v243="type" in v232?v49[v232.type]:v240.dtype;
883
+ v242=!!v232.normalized;
884
+ v241=v232.size|0;
885
+ v244=v232.offset|0;
886
+ v245=v232.stride|0;
887
+ v246=v232.divisor|0;
888
+ }
889
+ }
890
+ v248=g247.location;
891
+ v249=v10[v248];
892
+ if(v235===1){
893
+ if(!v249.buffer){
894
+ v1.enableVertexAttribArray(v248);
895
+ }
896
+ v250=v241||1;
897
+ if(v249.type!==v243||v249.size!==v250||v249.buffer!==v240||v249.normalized!==v242||v249.offset!==v244||v249.stride!==v245){
898
+ v1.bindBuffer(34962,v240.buffer);
899
+ v1.vertexAttribPointer(v248,v250,v243,v242,v245,v244);
900
+ v249.type=v243;
901
+ v249.size=v250;
902
+ v249.buffer=v240;
903
+ v249.normalized=v242;
904
+ v249.offset=v244;
905
+ v249.stride=v245;
906
+ }
907
+ if(v249.divisor!==v246){
908
+ v110.vertexAttribDivisorANGLE(v248,v246);
909
+ v249.divisor=v246;
910
+ }
911
+ }
912
+ else{
913
+ if(v249.buffer){
914
+ v1.disableVertexAttribArray(v248);
915
+ v249.buffer=null;
916
+ }
917
+ if(v249.x!==v236||v249.y!==v237||v249.z!==v238||v249.w!==v239){
918
+ v1.vertexAttrib4f(v248,v236,v237,v238,v239);
919
+ v249.x=v236;
920
+ v249.y=v237;
921
+ v249.z=v238;
922
+ v249.w=v239;
923
+ }
924
+ }
925
+ v252=g251.call(this,v2,a0,0);
926
+ if(!(v252&&(typeof v252==="object"||typeof v252==="function")&&(v16(v252)||v8.getBuffer(v252)||v8.getBuffer(v252.buffer)||v16(v252.buffer)||("constant" in v252&&(typeof v252.constant==="number"||v17(v252.constant))))))g18.commandRaise(g253,g19);
927
+ v254=false;
928
+ v255=1;
929
+ v256=0;
930
+ v257=0;
931
+ v258=0;
932
+ v259=0;
933
+ v260=null;
934
+ v261=0;
935
+ v262=false;
936
+ v263=5126;
937
+ v264=0;
938
+ v265=0;
939
+ v266=0;
940
+ if(v16(v252)){
941
+ v254=true;
942
+ v260=v8.createStream(34962,v252);
943
+ v263=v260.dtype;
944
+ }
945
+ else{
946
+ v260=v8.getBuffer(v252);
947
+ if(v260){
948
+ v263=v260.dtype;
949
+ }
950
+ else if("constant" in v252){
951
+ v255=2;
952
+ if(typeof v252.constant === "number"){
953
+ v256=v252.constant;
954
+ v257=v258=v259=0;
955
+ }
956
+ else{
957
+ v256=v252.constant.length>0?v252.constant[0]:0;
958
+ v257=v252.constant.length>1?v252.constant[1]:0;
959
+ v258=v252.constant.length>2?v252.constant[2]:0;
960
+ v259=v252.constant.length>3?v252.constant[3]:0;
961
+ }
962
+ }
963
+ else{
964
+ if(v16(v252.buffer)){
965
+ v260=v8.createStream(34962,v252.buffer);
966
+ }
967
+ else{
968
+ v260=v8.getBuffer(v252.buffer);
969
+ }
970
+ v263="type" in v252?v49[v252.type]:v260.dtype;
971
+ v262=!!v252.normalized;
972
+ v261=v252.size|0;
973
+ v264=v252.offset|0;
974
+ v265=v252.stride|0;
975
+ v266=v252.divisor|0;
976
+ }
977
+ }
978
+ v268=g267.location;
979
+ v269=v10[v268];
980
+ if(v255===1){
981
+ if(!v269.buffer){
982
+ v1.enableVertexAttribArray(v268);
983
+ }
984
+ v270=v261||1;
985
+ if(v269.type!==v263||v269.size!==v270||v269.buffer!==v260||v269.normalized!==v262||v269.offset!==v264||v269.stride!==v265){
986
+ v1.bindBuffer(34962,v260.buffer);
987
+ v1.vertexAttribPointer(v268,v270,v263,v262,v265,v264);
988
+ v269.type=v263;
989
+ v269.size=v270;
990
+ v269.buffer=v260;
991
+ v269.normalized=v262;
992
+ v269.offset=v264;
993
+ v269.stride=v265;
994
+ }
995
+ if(v269.divisor!==v266){
996
+ v110.vertexAttribDivisorANGLE(v268,v266);
997
+ v269.divisor=v266;
998
+ }
999
+ }
1000
+ else{
1001
+ if(v269.buffer){
1002
+ v1.disableVertexAttribArray(v268);
1003
+ v269.buffer=null;
1004
+ }
1005
+ if(v269.x!==v256||v269.y!==v257||v269.z!==v258||v269.w!==v259){
1006
+ v1.vertexAttrib4f(v268,v256,v257,v258,v259);
1007
+ v269.x=v256;
1008
+ v269.y=v257;
1009
+ v269.z=v258;
1010
+ v269.w=v259;
1011
+ }
1012
+ }
1013
+ v272=g271.call(this,v2,a0,0);
1014
+ if(!(v272&&(typeof v272==="object"||typeof v272==="function")&&(v16(v272)||v8.getBuffer(v272)||v8.getBuffer(v272.buffer)||v16(v272.buffer)||("constant" in v272&&(typeof v272.constant==="number"||v17(v272.constant))))))g18.commandRaise(g273,g19);
1015
+ v274=false;
1016
+ v275=1;
1017
+ v276=0;
1018
+ v277=0;
1019
+ v278=0;
1020
+ v279=0;
1021
+ v280=null;
1022
+ v281=0;
1023
+ v282=false;
1024
+ v283=5126;
1025
+ v284=0;
1026
+ v285=0;
1027
+ v286=0;
1028
+ if(v16(v272)){
1029
+ v274=true;
1030
+ v280=v8.createStream(34962,v272);
1031
+ v283=v280.dtype;
1032
+ }
1033
+ else{
1034
+ v280=v8.getBuffer(v272);
1035
+ if(v280){
1036
+ v283=v280.dtype;
1037
+ }
1038
+ else if("constant" in v272){
1039
+ v275=2;
1040
+ if(typeof v272.constant === "number"){
1041
+ v276=v272.constant;
1042
+ v277=v278=v279=0;
1043
+ }
1044
+ else{
1045
+ v276=v272.constant.length>0?v272.constant[0]:0;
1046
+ v277=v272.constant.length>1?v272.constant[1]:0;
1047
+ v278=v272.constant.length>2?v272.constant[2]:0;
1048
+ v279=v272.constant.length>3?v272.constant[3]:0;
1049
+ }
1050
+ }
1051
+ else{
1052
+ if(v16(v272.buffer)){
1053
+ v280=v8.createStream(34962,v272.buffer);
1054
+ }
1055
+ else{
1056
+ v280=v8.getBuffer(v272.buffer);
1057
+ }
1058
+ v283="type" in v272?v49[v272.type]:v280.dtype;
1059
+ v282=!!v272.normalized;
1060
+ v281=v272.size|0;
1061
+ v284=v272.offset|0;
1062
+ v285=v272.stride|0;
1063
+ v286=v272.divisor|0;
1064
+ }
1065
+ }
1066
+ v288=g287.location;
1067
+ v289=v10[v288];
1068
+ if(v275===1){
1069
+ if(!v289.buffer){
1070
+ v1.enableVertexAttribArray(v288);
1071
+ }
1072
+ v290=v281||1;
1073
+ if(v289.type!==v283||v289.size!==v290||v289.buffer!==v280||v289.normalized!==v282||v289.offset!==v284||v289.stride!==v285){
1074
+ v1.bindBuffer(34962,v280.buffer);
1075
+ v1.vertexAttribPointer(v288,v290,v283,v282,v285,v284);
1076
+ v289.type=v283;
1077
+ v289.size=v290;
1078
+ v289.buffer=v280;
1079
+ v289.normalized=v282;
1080
+ v289.offset=v284;
1081
+ v289.stride=v285;
1082
+ }
1083
+ if(v289.divisor!==v286){
1084
+ v110.vertexAttribDivisorANGLE(v288,v286);
1085
+ v289.divisor=v286;
1086
+ }
1087
+ }
1088
+ else{
1089
+ if(v289.buffer){
1090
+ v1.disableVertexAttribArray(v288);
1091
+ v289.buffer=null;
1092
+ }
1093
+ if(v289.x!==v276||v289.y!==v277||v289.z!==v278||v289.w!==v279){
1094
+ v1.vertexAttrib4f(v288,v276,v277,v278,v279);
1095
+ v289.x=v276;
1096
+ v289.y=v277;
1097
+ v289.z=v278;
1098
+ v289.w=v279;
1099
+ }
1100
+ }
1101
+ v1.uniform1i(g291.location,false);
1102
+ v293=a0["opacity"];
1103
+ if(!(typeof v293==="number"))g18.commandRaise(g294,g19);
1104
+ v1.uniform1f(g292.location,v293);
1105
+ v297=g296.call(this,v2,a0,0);
1106
+ if(!(v17(v297)&&v297.length===2))g18.commandRaise(g298,g19);
1107
+ v299=v297[0];
1108
+ v300=v297[1];
1109
+ v1.uniform2f(g295.location,v299,v300);
1110
+ v1.uniform1i(g301.location,g302.bind());
1111
+ v304=v2["pixelRatio"];
1112
+ if(!(typeof v304==="number"))g18.commandRaise(g305,g19);
1113
+ v1.uniform1f(g303.location,v304);
1114
+ v307=a0["scale"];
1115
+ if(!(v17(v307)&&v307.length===2))g18.commandRaise(g308,g19);
1116
+ v309=v307[0];
1117
+ v310=v307[1];
1118
+ v1.uniform2f(g306.location,v309,v310);
1119
+ v312=a0["scaleFract"];
1120
+ if(!(v17(v312)&&v312.length===2))g18.commandRaise(g313,g19);
1121
+ v314=v312[0];
1122
+ v315=v312[1];
1123
+ v1.uniform2f(g311.location,v314,v315);
1124
+ v317=a0["translate"];
1125
+ if(!(v17(v317)&&v317.length===2))g18.commandRaise(g318,g19);
1126
+ v319=v317[0];
1127
+ v320=v317[1];
1128
+ v1.uniform2f(g316.location,v319,v320);
1129
+ v322=a0["translateFract"];
1130
+ if(!(v17(v322)&&v322.length===2))g18.commandRaise(g323,g19);
1131
+ v324=v322[0];
1132
+ v325=v322[1];
1133
+ v1.uniform2f(g321.location,v324,v325);
1134
+ v326=a0["elements"];
1135
+ v327=null;
1136
+ v328=v16(v326);
1137
+ if(v328){
1138
+ v327=v7.createStream(v326);
1139
+ }
1140
+ else{
1141
+ v327=v7.getElements(v326);
1142
+ if(!(!v326||v327))g18.commandRaise(g329,g19);
1143
+ }
1144
+ if(v327)v1.bindBuffer(34963,v327.buffer.buffer);
1145
+ v330=a0["offset"];
1146
+ if(!(v330>=0))g18.commandRaise(g331,g19);
1147
+ v332=a0["count"];
1148
+ if(!(typeof v332==="number"&&v332>=0&&v332===(v332|0)))g18.commandRaise(g333,g19);
1149
+ if(v332){
1150
+ v334=v6.instances;
1151
+ if(v334>0){
1152
+ if(v327){
1153
+ v110.drawElementsInstancedANGLE(0,v332,v327.type,v330<<((v327.type-5121)>>1),v334);
1154
+ }
1155
+ else{
1156
+ v110.drawArraysInstancedANGLE(0,v330,v332,v334);
1157
+ }
1158
+ }
1159
+ else if(v334<0){
1160
+ if(v327){
1161
+ v1.drawElements(0,v332,v327.type,v330<<((v327.type-5121)>>1));
1162
+ }
1163
+ else{
1164
+ v1.drawArrays(0,v330,v332);
1165
+ }
1166
+ }
1167
+ v5.dirty=true;
1168
+ v11.setVAO(null);
1169
+ v2.viewportWidth=v95;
1170
+ v2.viewportHeight=v96;
1171
+ if(v107){
1172
+ g52.cpuTime+=performance.now()-v108;
1173
+ }
1174
+ if(v114){
1175
+ v8.destroyStream(v120);
1176
+ }
1177
+ if(v134){
1178
+ v8.destroyStream(v140);
1179
+ }
1180
+ if(v154){
1181
+ v8.destroyStream(v160);
1182
+ }
1183
+ if(v174){
1184
+ v8.destroyStream(v180);
1185
+ }
1186
+ if(v194){
1187
+ v8.destroyStream(v200);
1188
+ }
1189
+ if(v214){
1190
+ v8.destroyStream(v220);
1191
+ }
1192
+ if(v234){
1193
+ v8.destroyStream(v240);
1194
+ }
1195
+ if(v254){
1196
+ v8.destroyStream(v260);
1197
+ }
1198
+ if(v274){
1199
+ v8.destroyStream(v280);
1200
+ }
1201
+ g302.unbind();
1202
+ if(v328){
1203
+ v7.destroyStream(v327);
1204
+ }
1205
+ }
1206
+ }
1207
+ ,"scope":function(a0,a1,a2){
1208
+ var v335,v336,v337,v338,v339,v340,v341,v342,v343,v344,v345,v347,v349,v351,v353,v355,v357,v359,v361,v363,v365,v366,v367,v368,v369,v370,v371,v372,v373,v374,v376,v378,v379,v380,v381,v382,v383,v384,v385,v386,v387,v388,v390,v392,v395,v396,v398,v399,v401,v402,v404,v405,v407,v408,v410,v411,v413,v414,v416,v417,v419,v420,v421,v422,v423,v424,v425,v426,v427,v428,v429,v430,v431,v432,v433,v435,v436,v437,v438,v439,v440,v441,v442,v443,v444,v445,v446,v447,v448,v449,v450,v451,v452,v453,v454,v455,v456,v457,v458,v459,v460,v462,v463,v464,v465,v466,v467,v468,v469,v470,v471,v472,v473,v474,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v489,v490,v491,v492,v493,v494,v495,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,v516,v517,v518,v519,v520,v521,v522,v523,v524,v525,v526,v527,v528,v529,v530,v531,v532,v533,v534,v535,v536,v537,v538,v539,v540,v541,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v570,v571,v572,v573,v574,v575,v576,v577,v578,v579,v580,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v597,v598,v599,v600,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,v616,v617,v618,v619,v620,v621,v622,v624,v625,v626,v627,v628,v629,v630,v631,v632,v633,v634,v635,v636,v637,v638,v639,v640,v641,v642,v643,v644,v645,v646,v647,v648,v649,v651,v652,v653,v654,v655,v656,v657,v658,v659,v660,v661,v662,v664,v666;
1209
+ v335=a0["viewport"];
1210
+ if(!(v335&&typeof v335==="object"))g18.commandRaise(g90,g19);
1211
+ v336=v335.x|0;
1212
+ v337=v335.y|0;
1213
+ v338="width" in v335?v335.width|0:(v2.framebufferWidth-v336);
1214
+ v339="height" in v335?v335.height|0:(v2.framebufferHeight-v337);
1215
+ if(!(v338>=0&&v339>=0))g18.commandRaise(g90,g19);
1216
+ v340=v2.viewportWidth;
1217
+ v2.viewportWidth=v338;
1218
+ v341=v2.viewportHeight;
1219
+ v2.viewportHeight=v339;
1220
+ v342=v42[0];
1221
+ v42[0]=v336;
1222
+ v343=v42[1];
1223
+ v42[1]=v337;
1224
+ v344=v42[2];
1225
+ v42[2]=v338;
1226
+ v345=v42[3];
1227
+ v42[3]=v339;
1228
+ v347=v20[0];
1229
+ v20[0]=g346;
1230
+ v349=v20[1];
1231
+ v20[1]=g348;
1232
+ v351=v20[2];
1233
+ v20[2]=g350;
1234
+ v353=v20[3];
1235
+ v20[3]=g352;
1236
+ v355=v4.blend_enable;
1237
+ v4.blend_enable=g354;
1238
+ v357=v24[0];
1239
+ v24[0]=g356;
1240
+ v359=v24[1];
1241
+ v24[1]=g358;
1242
+ v361=v24[2];
1243
+ v24[2]=g360;
1244
+ v363=v24[3];
1245
+ v24[3]=g362;
1246
+ v365=v4.depth_enable;
1247
+ v4.depth_enable=g364;
1248
+ v366=a0["viewport"];
1249
+ if(!(v366&&typeof v366==="object"))g18.commandRaise(g100,g19);
1250
+ v367=v366.x|0;
1251
+ v368=v366.y|0;
1252
+ v369="width" in v366?v366.width|0:(v2.framebufferWidth-v367);
1253
+ v370="height" in v366?v366.height|0:(v2.framebufferHeight-v368);
1254
+ if(!(v369>=0&&v370>=0))g18.commandRaise(g100,g19);
1255
+ v371=v40[0];
1256
+ v40[0]=v367;
1257
+ v372=v40[1];
1258
+ v40[1]=v368;
1259
+ v373=v40[2];
1260
+ v40[2]=v369;
1261
+ v374=v40[3];
1262
+ v40[3]=v370;
1263
+ v376=v4.scissor_enable;
1264
+ v4.scissor_enable=g375;
1265
+ v378=v4.stencil_enable;
1266
+ v4.stencil_enable=g377;
1267
+ v379=v5.profile;
1268
+ if(v379){
1269
+ v380=performance.now();
1270
+ g52.count++;
1271
+ }
1272
+ v381=a0["elements"];
1273
+ v382=null;
1274
+ v383=v16(v381);
1275
+ if(v383){
1276
+ v382=v7.createStream(v381);
1277
+ }
1278
+ else{
1279
+ v382=v7.getElements(v381);
1280
+ if(!(!v381||v382))g18.commandRaise(g329,g19);
1281
+ }
1282
+ v384=v6.elements;
1283
+ v6.elements=v382;
1284
+ v385=a0["offset"];
1285
+ if(!(v385>=0))g18.commandRaise(g331,g19);
1286
+ v386=v6.offset;
1287
+ v6.offset=v385;
1288
+ v387=a0["count"];
1289
+ if(!(typeof v387==="number"&&v387>=0&&v387===(v387|0)))g18.commandRaise(g333,g19);
1290
+ v388=v6.count;
1291
+ v6.count=v387;
1292
+ v390=v6.primitive;
1293
+ v6.primitive=g389;
1294
+ v392=v12[g391];
1295
+ v12[g391]=false;
1296
+ v395=v12[g394];
1297
+ v12[g394]=g393;
1298
+ v396=a0["opacity"];
1299
+ v398=v12[g397];
1300
+ v12[g397]=v396;
1301
+ v399=g296.call(this,v2,a0,a2);
1302
+ v401=v12[g400];
1303
+ v12[g400]=v399;
1304
+ v402=v2["pixelRatio"];
1305
+ v404=v12[g403];
1306
+ v12[g403]=v402;
1307
+ v405=a0["scale"];
1308
+ v407=v12[g406];
1309
+ v12[g406]=v405;
1310
+ v408=a0["scaleFract"];
1311
+ v410=v12[g409];
1312
+ v12[g409]=v408;
1313
+ v411=a0["translate"];
1314
+ v413=v12[g412];
1315
+ v12[g412]=v411;
1316
+ v414=a0["translateFract"];
1317
+ v416=v12[g415];
1318
+ v12[g415]=v414;
1319
+ v417=a0["markerTexture"];
1320
+ v419=v12[g418];
1321
+ v12[g418]=v417;
1322
+ v420=g211.call(this,v2,a0,a2);
1323
+ if(!(v420&&(typeof v420==="object"||typeof v420==="function")&&(v16(v420)||v8.getBuffer(v420)||v8.getBuffer(v420.buffer)||v16(v420.buffer)||("constant" in v420&&(typeof v420.constant==="number"||v17(v420.constant))))))g18.commandRaise(g213,g19);
1324
+ v421=false;
1325
+ v422=1;
1326
+ v423=0;
1327
+ v424=0;
1328
+ v425=0;
1329
+ v426=0;
1330
+ v427=null;
1331
+ v428=0;
1332
+ v429=false;
1333
+ v430=5126;
1334
+ v431=0;
1335
+ v432=0;
1336
+ v433=0;
1337
+ if(v16(v420)){
1338
+ v421=true;
1339
+ v427=v8.createStream(34962,v420);
1340
+ v430=v427.dtype;
1341
+ }
1342
+ else{
1343
+ v427=v8.getBuffer(v420);
1344
+ if(v427){
1345
+ v430=v427.dtype;
1346
+ }
1347
+ else if("constant" in v420){
1348
+ v422=2;
1349
+ if(typeof v420.constant === "number"){
1350
+ v423=v420.constant;
1351
+ v424=v425=v426=0;
1352
+ }
1353
+ else{
1354
+ v423=v420.constant.length>0?v420.constant[0]:0;
1355
+ v424=v420.constant.length>1?v420.constant[1]:0;
1356
+ v425=v420.constant.length>2?v420.constant[2]:0;
1357
+ v426=v420.constant.length>3?v420.constant[3]:0;
1358
+ }
1359
+ }
1360
+ else{
1361
+ if(v16(v420.buffer)){
1362
+ v427=v8.createStream(34962,v420.buffer);
1363
+ }
1364
+ else{
1365
+ v427=v8.getBuffer(v420.buffer);
1366
+ }
1367
+ v430="type" in v420?v49[v420.type]:v427.dtype;
1368
+ v429=!!v420.normalized;
1369
+ v428=v420.size|0;
1370
+ v431=v420.offset|0;
1371
+ v432=v420.stride|0;
1372
+ v433=v420.divisor|0;
1373
+ }
1374
+ }
1375
+ v435=g434.state;
1376
+ g434.state=v422;
1377
+ v436=g434.x;
1378
+ g434.x=v423;
1379
+ v437=g434.y;
1380
+ g434.y=v424;
1381
+ v438=g434.z;
1382
+ g434.z=v425;
1383
+ v439=g434.w;
1384
+ g434.w=v426;
1385
+ v440=g434.buffer;
1386
+ g434.buffer=v427;
1387
+ v441=g434.size;
1388
+ g434.size=v428;
1389
+ v442=g434.normalized;
1390
+ g434.normalized=v429;
1391
+ v443=g434.type;
1392
+ g434.type=v430;
1393
+ v444=g434.offset;
1394
+ g434.offset=v431;
1395
+ v445=g434.stride;
1396
+ g434.stride=v432;
1397
+ v446=g434.divisor;
1398
+ g434.divisor=v433;
1399
+ v447=g251.call(this,v2,a0,a2);
1400
+ if(!(v447&&(typeof v447==="object"||typeof v447==="function")&&(v16(v447)||v8.getBuffer(v447)||v8.getBuffer(v447.buffer)||v16(v447.buffer)||("constant" in v447&&(typeof v447.constant==="number"||v17(v447.constant))))))g18.commandRaise(g253,g19);
1401
+ v448=false;
1402
+ v449=1;
1403
+ v450=0;
1404
+ v451=0;
1405
+ v452=0;
1406
+ v453=0;
1407
+ v454=null;
1408
+ v455=0;
1409
+ v456=false;
1410
+ v457=5126;
1411
+ v458=0;
1412
+ v459=0;
1413
+ v460=0;
1414
+ if(v16(v447)){
1415
+ v448=true;
1416
+ v454=v8.createStream(34962,v447);
1417
+ v457=v454.dtype;
1418
+ }
1419
+ else{
1420
+ v454=v8.getBuffer(v447);
1421
+ if(v454){
1422
+ v457=v454.dtype;
1423
+ }
1424
+ else if("constant" in v447){
1425
+ v449=2;
1426
+ if(typeof v447.constant === "number"){
1427
+ v450=v447.constant;
1428
+ v451=v452=v453=0;
1429
+ }
1430
+ else{
1431
+ v450=v447.constant.length>0?v447.constant[0]:0;
1432
+ v451=v447.constant.length>1?v447.constant[1]:0;
1433
+ v452=v447.constant.length>2?v447.constant[2]:0;
1434
+ v453=v447.constant.length>3?v447.constant[3]:0;
1435
+ }
1436
+ }
1437
+ else{
1438
+ if(v16(v447.buffer)){
1439
+ v454=v8.createStream(34962,v447.buffer);
1440
+ }
1441
+ else{
1442
+ v454=v8.getBuffer(v447.buffer);
1443
+ }
1444
+ v457="type" in v447?v49[v447.type]:v454.dtype;
1445
+ v456=!!v447.normalized;
1446
+ v455=v447.size|0;
1447
+ v458=v447.offset|0;
1448
+ v459=v447.stride|0;
1449
+ v460=v447.divisor|0;
1450
+ }
1451
+ }
1452
+ v462=g461.state;
1453
+ g461.state=v449;
1454
+ v463=g461.x;
1455
+ g461.x=v450;
1456
+ v464=g461.y;
1457
+ g461.y=v451;
1458
+ v465=g461.z;
1459
+ g461.z=v452;
1460
+ v466=g461.w;
1461
+ g461.w=v453;
1462
+ v467=g461.buffer;
1463
+ g461.buffer=v454;
1464
+ v468=g461.size;
1465
+ g461.size=v455;
1466
+ v469=g461.normalized;
1467
+ g461.normalized=v456;
1468
+ v470=g461.type;
1469
+ g461.type=v457;
1470
+ v471=g461.offset;
1471
+ g461.offset=v458;
1472
+ v472=g461.stride;
1473
+ g461.stride=v459;
1474
+ v473=g461.divisor;
1475
+ g461.divisor=v460;
1476
+ v474=g231.call(this,v2,a0,a2);
1477
+ if(!(v474&&(typeof v474==="object"||typeof v474==="function")&&(v16(v474)||v8.getBuffer(v474)||v8.getBuffer(v474.buffer)||v16(v474.buffer)||("constant" in v474&&(typeof v474.constant==="number"||v17(v474.constant))))))g18.commandRaise(g233,g19);
1478
+ v475=false;
1479
+ v476=1;
1480
+ v477=0;
1481
+ v478=0;
1482
+ v479=0;
1483
+ v480=0;
1484
+ v481=null;
1485
+ v482=0;
1486
+ v483=false;
1487
+ v484=5126;
1488
+ v485=0;
1489
+ v486=0;
1490
+ v487=0;
1491
+ if(v16(v474)){
1492
+ v475=true;
1493
+ v481=v8.createStream(34962,v474);
1494
+ v484=v481.dtype;
1495
+ }
1496
+ else{
1497
+ v481=v8.getBuffer(v474);
1498
+ if(v481){
1499
+ v484=v481.dtype;
1500
+ }
1501
+ else if("constant" in v474){
1502
+ v476=2;
1503
+ if(typeof v474.constant === "number"){
1504
+ v477=v474.constant;
1505
+ v478=v479=v480=0;
1506
+ }
1507
+ else{
1508
+ v477=v474.constant.length>0?v474.constant[0]:0;
1509
+ v478=v474.constant.length>1?v474.constant[1]:0;
1510
+ v479=v474.constant.length>2?v474.constant[2]:0;
1511
+ v480=v474.constant.length>3?v474.constant[3]:0;
1512
+ }
1513
+ }
1514
+ else{
1515
+ if(v16(v474.buffer)){
1516
+ v481=v8.createStream(34962,v474.buffer);
1517
+ }
1518
+ else{
1519
+ v481=v8.getBuffer(v474.buffer);
1520
+ }
1521
+ v484="type" in v474?v49[v474.type]:v481.dtype;
1522
+ v483=!!v474.normalized;
1523
+ v482=v474.size|0;
1524
+ v485=v474.offset|0;
1525
+ v486=v474.stride|0;
1526
+ v487=v474.divisor|0;
1527
+ }
1528
+ }
1529
+ v489=g488.state;
1530
+ g488.state=v476;
1531
+ v490=g488.x;
1532
+ g488.x=v477;
1533
+ v491=g488.y;
1534
+ g488.y=v478;
1535
+ v492=g488.z;
1536
+ g488.z=v479;
1537
+ v493=g488.w;
1538
+ g488.w=v480;
1539
+ v494=g488.buffer;
1540
+ g488.buffer=v481;
1541
+ v495=g488.size;
1542
+ g488.size=v482;
1543
+ v496=g488.normalized;
1544
+ g488.normalized=v483;
1545
+ v497=g488.type;
1546
+ g488.type=v484;
1547
+ v498=g488.offset;
1548
+ g488.offset=v485;
1549
+ v499=g488.stride;
1550
+ g488.stride=v486;
1551
+ v500=g488.divisor;
1552
+ g488.divisor=v487;
1553
+ v501=g271.call(this,v2,a0,a2);
1554
+ if(!(v501&&(typeof v501==="object"||typeof v501==="function")&&(v16(v501)||v8.getBuffer(v501)||v8.getBuffer(v501.buffer)||v16(v501.buffer)||("constant" in v501&&(typeof v501.constant==="number"||v17(v501.constant))))))g18.commandRaise(g273,g19);
1555
+ v502=false;
1556
+ v503=1;
1557
+ v504=0;
1558
+ v505=0;
1559
+ v506=0;
1560
+ v507=0;
1561
+ v508=null;
1562
+ v509=0;
1563
+ v510=false;
1564
+ v511=5126;
1565
+ v512=0;
1566
+ v513=0;
1567
+ v514=0;
1568
+ if(v16(v501)){
1569
+ v502=true;
1570
+ v508=v8.createStream(34962,v501);
1571
+ v511=v508.dtype;
1572
+ }
1573
+ else{
1574
+ v508=v8.getBuffer(v501);
1575
+ if(v508){
1576
+ v511=v508.dtype;
1577
+ }
1578
+ else if("constant" in v501){
1579
+ v503=2;
1580
+ if(typeof v501.constant === "number"){
1581
+ v504=v501.constant;
1582
+ v505=v506=v507=0;
1583
+ }
1584
+ else{
1585
+ v504=v501.constant.length>0?v501.constant[0]:0;
1586
+ v505=v501.constant.length>1?v501.constant[1]:0;
1587
+ v506=v501.constant.length>2?v501.constant[2]:0;
1588
+ v507=v501.constant.length>3?v501.constant[3]:0;
1589
+ }
1590
+ }
1591
+ else{
1592
+ if(v16(v501.buffer)){
1593
+ v508=v8.createStream(34962,v501.buffer);
1594
+ }
1595
+ else{
1596
+ v508=v8.getBuffer(v501.buffer);
1597
+ }
1598
+ v511="type" in v501?v49[v501.type]:v508.dtype;
1599
+ v510=!!v501.normalized;
1600
+ v509=v501.size|0;
1601
+ v512=v501.offset|0;
1602
+ v513=v501.stride|0;
1603
+ v514=v501.divisor|0;
1604
+ }
1605
+ }
1606
+ v516=g515.state;
1607
+ g515.state=v503;
1608
+ v517=g515.x;
1609
+ g515.x=v504;
1610
+ v518=g515.y;
1611
+ g515.y=v505;
1612
+ v519=g515.z;
1613
+ g515.z=v506;
1614
+ v520=g515.w;
1615
+ g515.w=v507;
1616
+ v521=g515.buffer;
1617
+ g515.buffer=v508;
1618
+ v522=g515.size;
1619
+ g515.size=v509;
1620
+ v523=g515.normalized;
1621
+ g515.normalized=v510;
1622
+ v524=g515.type;
1623
+ g515.type=v511;
1624
+ v525=g515.offset;
1625
+ g515.offset=v512;
1626
+ v526=g515.stride;
1627
+ g515.stride=v513;
1628
+ v527=g515.divisor;
1629
+ g515.divisor=v514;
1630
+ v528=g191.call(this,v2,a0,a2);
1631
+ if(!(v528&&(typeof v528==="object"||typeof v528==="function")&&(v16(v528)||v8.getBuffer(v528)||v8.getBuffer(v528.buffer)||v16(v528.buffer)||("constant" in v528&&(typeof v528.constant==="number"||v17(v528.constant))))))g18.commandRaise(g193,g19);
1632
+ v529=false;
1633
+ v530=1;
1634
+ v531=0;
1635
+ v532=0;
1636
+ v533=0;
1637
+ v534=0;
1638
+ v535=null;
1639
+ v536=0;
1640
+ v537=false;
1641
+ v538=5126;
1642
+ v539=0;
1643
+ v540=0;
1644
+ v541=0;
1645
+ if(v16(v528)){
1646
+ v529=true;
1647
+ v535=v8.createStream(34962,v528);
1648
+ v538=v535.dtype;
1649
+ }
1650
+ else{
1651
+ v535=v8.getBuffer(v528);
1652
+ if(v535){
1653
+ v538=v535.dtype;
1654
+ }
1655
+ else if("constant" in v528){
1656
+ v530=2;
1657
+ if(typeof v528.constant === "number"){
1658
+ v531=v528.constant;
1659
+ v532=v533=v534=0;
1660
+ }
1661
+ else{
1662
+ v531=v528.constant.length>0?v528.constant[0]:0;
1663
+ v532=v528.constant.length>1?v528.constant[1]:0;
1664
+ v533=v528.constant.length>2?v528.constant[2]:0;
1665
+ v534=v528.constant.length>3?v528.constant[3]:0;
1666
+ }
1667
+ }
1668
+ else{
1669
+ if(v16(v528.buffer)){
1670
+ v535=v8.createStream(34962,v528.buffer);
1671
+ }
1672
+ else{
1673
+ v535=v8.getBuffer(v528.buffer);
1674
+ }
1675
+ v538="type" in v528?v49[v528.type]:v535.dtype;
1676
+ v537=!!v528.normalized;
1677
+ v536=v528.size|0;
1678
+ v539=v528.offset|0;
1679
+ v540=v528.stride|0;
1680
+ v541=v528.divisor|0;
1681
+ }
1682
+ }
1683
+ v543=g542.state;
1684
+ g542.state=v530;
1685
+ v544=g542.x;
1686
+ g542.x=v531;
1687
+ v545=g542.y;
1688
+ g542.y=v532;
1689
+ v546=g542.z;
1690
+ g542.z=v533;
1691
+ v547=g542.w;
1692
+ g542.w=v534;
1693
+ v548=g542.buffer;
1694
+ g542.buffer=v535;
1695
+ v549=g542.size;
1696
+ g542.size=v536;
1697
+ v550=g542.normalized;
1698
+ g542.normalized=v537;
1699
+ v551=g542.type;
1700
+ g542.type=v538;
1701
+ v552=g542.offset;
1702
+ g542.offset=v539;
1703
+ v553=g542.stride;
1704
+ g542.stride=v540;
1705
+ v554=g542.divisor;
1706
+ g542.divisor=v541;
1707
+ v555=g131.call(this,v2,a0,a2);
1708
+ if(!(v555&&(typeof v555==="object"||typeof v555==="function")&&(v16(v555)||v8.getBuffer(v555)||v8.getBuffer(v555.buffer)||v16(v555.buffer)||("constant" in v555&&(typeof v555.constant==="number"||v17(v555.constant))))))g18.commandRaise(g133,g19);
1709
+ v556=false;
1710
+ v557=1;
1711
+ v558=0;
1712
+ v559=0;
1713
+ v560=0;
1714
+ v561=0;
1715
+ v562=null;
1716
+ v563=0;
1717
+ v564=false;
1718
+ v565=5126;
1719
+ v566=0;
1720
+ v567=0;
1721
+ v568=0;
1722
+ if(v16(v555)){
1723
+ v556=true;
1724
+ v562=v8.createStream(34962,v555);
1725
+ v565=v562.dtype;
1726
+ }
1727
+ else{
1728
+ v562=v8.getBuffer(v555);
1729
+ if(v562){
1730
+ v565=v562.dtype;
1731
+ }
1732
+ else if("constant" in v555){
1733
+ v557=2;
1734
+ if(typeof v555.constant === "number"){
1735
+ v558=v555.constant;
1736
+ v559=v560=v561=0;
1737
+ }
1738
+ else{
1739
+ v558=v555.constant.length>0?v555.constant[0]:0;
1740
+ v559=v555.constant.length>1?v555.constant[1]:0;
1741
+ v560=v555.constant.length>2?v555.constant[2]:0;
1742
+ v561=v555.constant.length>3?v555.constant[3]:0;
1743
+ }
1744
+ }
1745
+ else{
1746
+ if(v16(v555.buffer)){
1747
+ v562=v8.createStream(34962,v555.buffer);
1748
+ }
1749
+ else{
1750
+ v562=v8.getBuffer(v555.buffer);
1751
+ }
1752
+ v565="type" in v555?v49[v555.type]:v562.dtype;
1753
+ v564=!!v555.normalized;
1754
+ v563=v555.size|0;
1755
+ v566=v555.offset|0;
1756
+ v567=v555.stride|0;
1757
+ v568=v555.divisor|0;
1758
+ }
1759
+ }
1760
+ v570=g569.state;
1761
+ g569.state=v557;
1762
+ v571=g569.x;
1763
+ g569.x=v558;
1764
+ v572=g569.y;
1765
+ g569.y=v559;
1766
+ v573=g569.z;
1767
+ g569.z=v560;
1768
+ v574=g569.w;
1769
+ g569.w=v561;
1770
+ v575=g569.buffer;
1771
+ g569.buffer=v562;
1772
+ v576=g569.size;
1773
+ g569.size=v563;
1774
+ v577=g569.normalized;
1775
+ g569.normalized=v564;
1776
+ v578=g569.type;
1777
+ g569.type=v565;
1778
+ v579=g569.offset;
1779
+ g569.offset=v566;
1780
+ v580=g569.stride;
1781
+ g569.stride=v567;
1782
+ v581=g569.divisor;
1783
+ g569.divisor=v568;
1784
+ v582=g151.call(this,v2,a0,a2);
1785
+ if(!(v582&&(typeof v582==="object"||typeof v582==="function")&&(v16(v582)||v8.getBuffer(v582)||v8.getBuffer(v582.buffer)||v16(v582.buffer)||("constant" in v582&&(typeof v582.constant==="number"||v17(v582.constant))))))g18.commandRaise(g153,g19);
1786
+ v583=false;
1787
+ v584=1;
1788
+ v585=0;
1789
+ v586=0;
1790
+ v587=0;
1791
+ v588=0;
1792
+ v589=null;
1793
+ v590=0;
1794
+ v591=false;
1795
+ v592=5126;
1796
+ v593=0;
1797
+ v594=0;
1798
+ v595=0;
1799
+ if(v16(v582)){
1800
+ v583=true;
1801
+ v589=v8.createStream(34962,v582);
1802
+ v592=v589.dtype;
1803
+ }
1804
+ else{
1805
+ v589=v8.getBuffer(v582);
1806
+ if(v589){
1807
+ v592=v589.dtype;
1808
+ }
1809
+ else if("constant" in v582){
1810
+ v584=2;
1811
+ if(typeof v582.constant === "number"){
1812
+ v585=v582.constant;
1813
+ v586=v587=v588=0;
1814
+ }
1815
+ else{
1816
+ v585=v582.constant.length>0?v582.constant[0]:0;
1817
+ v586=v582.constant.length>1?v582.constant[1]:0;
1818
+ v587=v582.constant.length>2?v582.constant[2]:0;
1819
+ v588=v582.constant.length>3?v582.constant[3]:0;
1820
+ }
1821
+ }
1822
+ else{
1823
+ if(v16(v582.buffer)){
1824
+ v589=v8.createStream(34962,v582.buffer);
1825
+ }
1826
+ else{
1827
+ v589=v8.getBuffer(v582.buffer);
1828
+ }
1829
+ v592="type" in v582?v49[v582.type]:v589.dtype;
1830
+ v591=!!v582.normalized;
1831
+ v590=v582.size|0;
1832
+ v593=v582.offset|0;
1833
+ v594=v582.stride|0;
1834
+ v595=v582.divisor|0;
1835
+ }
1836
+ }
1837
+ v597=g596.state;
1838
+ g596.state=v584;
1839
+ v598=g596.x;
1840
+ g596.x=v585;
1841
+ v599=g596.y;
1842
+ g596.y=v586;
1843
+ v600=g596.z;
1844
+ g596.z=v587;
1845
+ v601=g596.w;
1846
+ g596.w=v588;
1847
+ v602=g596.buffer;
1848
+ g596.buffer=v589;
1849
+ v603=g596.size;
1850
+ g596.size=v590;
1851
+ v604=g596.normalized;
1852
+ g596.normalized=v591;
1853
+ v605=g596.type;
1854
+ g596.type=v592;
1855
+ v606=g596.offset;
1856
+ g596.offset=v593;
1857
+ v607=g596.stride;
1858
+ g596.stride=v594;
1859
+ v608=g596.divisor;
1860
+ g596.divisor=v595;
1861
+ v609=g111.call(this,v2,a0,a2);
1862
+ if(!(v609&&(typeof v609==="object"||typeof v609==="function")&&(v16(v609)||v8.getBuffer(v609)||v8.getBuffer(v609.buffer)||v16(v609.buffer)||("constant" in v609&&(typeof v609.constant==="number"||v17(v609.constant))))))g18.commandRaise(g113,g19);
1863
+ v610=false;
1864
+ v611=1;
1865
+ v612=0;
1866
+ v613=0;
1867
+ v614=0;
1868
+ v615=0;
1869
+ v616=null;
1870
+ v617=0;
1871
+ v618=false;
1872
+ v619=5126;
1873
+ v620=0;
1874
+ v621=0;
1875
+ v622=0;
1876
+ if(v16(v609)){
1877
+ v610=true;
1878
+ v616=v8.createStream(34962,v609);
1879
+ v619=v616.dtype;
1880
+ }
1881
+ else{
1882
+ v616=v8.getBuffer(v609);
1883
+ if(v616){
1884
+ v619=v616.dtype;
1885
+ }
1886
+ else if("constant" in v609){
1887
+ v611=2;
1888
+ if(typeof v609.constant === "number"){
1889
+ v612=v609.constant;
1890
+ v613=v614=v615=0;
1891
+ }
1892
+ else{
1893
+ v612=v609.constant.length>0?v609.constant[0]:0;
1894
+ v613=v609.constant.length>1?v609.constant[1]:0;
1895
+ v614=v609.constant.length>2?v609.constant[2]:0;
1896
+ v615=v609.constant.length>3?v609.constant[3]:0;
1897
+ }
1898
+ }
1899
+ else{
1900
+ if(v16(v609.buffer)){
1901
+ v616=v8.createStream(34962,v609.buffer);
1902
+ }
1903
+ else{
1904
+ v616=v8.getBuffer(v609.buffer);
1905
+ }
1906
+ v619="type" in v609?v49[v609.type]:v616.dtype;
1907
+ v618=!!v609.normalized;
1908
+ v617=v609.size|0;
1909
+ v620=v609.offset|0;
1910
+ v621=v609.stride|0;
1911
+ v622=v609.divisor|0;
1912
+ }
1913
+ }
1914
+ v624=g623.state;
1915
+ g623.state=v611;
1916
+ v625=g623.x;
1917
+ g623.x=v612;
1918
+ v626=g623.y;
1919
+ g623.y=v613;
1920
+ v627=g623.z;
1921
+ g623.z=v614;
1922
+ v628=g623.w;
1923
+ g623.w=v615;
1924
+ v629=g623.buffer;
1925
+ g623.buffer=v616;
1926
+ v630=g623.size;
1927
+ g623.size=v617;
1928
+ v631=g623.normalized;
1929
+ g623.normalized=v618;
1930
+ v632=g623.type;
1931
+ g623.type=v619;
1932
+ v633=g623.offset;
1933
+ g623.offset=v620;
1934
+ v634=g623.stride;
1935
+ g623.stride=v621;
1936
+ v635=g623.divisor;
1937
+ g623.divisor=v622;
1938
+ v636=g171.call(this,v2,a0,a2);
1939
+ if(!(v636&&(typeof v636==="object"||typeof v636==="function")&&(v16(v636)||v8.getBuffer(v636)||v8.getBuffer(v636.buffer)||v16(v636.buffer)||("constant" in v636&&(typeof v636.constant==="number"||v17(v636.constant))))))g18.commandRaise(g173,g19);
1940
+ v637=false;
1941
+ v638=1;
1942
+ v639=0;
1943
+ v640=0;
1944
+ v641=0;
1945
+ v642=0;
1946
+ v643=null;
1947
+ v644=0;
1948
+ v645=false;
1949
+ v646=5126;
1950
+ v647=0;
1951
+ v648=0;
1952
+ v649=0;
1953
+ if(v16(v636)){
1954
+ v637=true;
1955
+ v643=v8.createStream(34962,v636);
1956
+ v646=v643.dtype;
1957
+ }
1958
+ else{
1959
+ v643=v8.getBuffer(v636);
1960
+ if(v643){
1961
+ v646=v643.dtype;
1962
+ }
1963
+ else if("constant" in v636){
1964
+ v638=2;
1965
+ if(typeof v636.constant === "number"){
1966
+ v639=v636.constant;
1967
+ v640=v641=v642=0;
1968
+ }
1969
+ else{
1970
+ v639=v636.constant.length>0?v636.constant[0]:0;
1971
+ v640=v636.constant.length>1?v636.constant[1]:0;
1972
+ v641=v636.constant.length>2?v636.constant[2]:0;
1973
+ v642=v636.constant.length>3?v636.constant[3]:0;
1974
+ }
1975
+ }
1976
+ else{
1977
+ if(v16(v636.buffer)){
1978
+ v643=v8.createStream(34962,v636.buffer);
1979
+ }
1980
+ else{
1981
+ v643=v8.getBuffer(v636.buffer);
1982
+ }
1983
+ v646="type" in v636?v49[v636.type]:v643.dtype;
1984
+ v645=!!v636.normalized;
1985
+ v644=v636.size|0;
1986
+ v647=v636.offset|0;
1987
+ v648=v636.stride|0;
1988
+ v649=v636.divisor|0;
1989
+ }
1990
+ }
1991
+ v651=g650.state;
1992
+ g650.state=v638;
1993
+ v652=g650.x;
1994
+ g650.x=v639;
1995
+ v653=g650.y;
1996
+ g650.y=v640;
1997
+ v654=g650.z;
1998
+ g650.z=v641;
1999
+ v655=g650.w;
2000
+ g650.w=v642;
2001
+ v656=g650.buffer;
2002
+ g650.buffer=v643;
2003
+ v657=g650.size;
2004
+ g650.size=v644;
2005
+ v658=g650.normalized;
2006
+ g650.normalized=v645;
2007
+ v659=g650.type;
2008
+ g650.type=v646;
2009
+ v660=g650.offset;
2010
+ g650.offset=v647;
2011
+ v661=g650.stride;
2012
+ g650.stride=v648;
2013
+ v662=g650.divisor;
2014
+ g650.divisor=v649;
2015
+ v664=v9.vert;
2016
+ v9.vert=g663;
2017
+ v666=v9.frag;
2018
+ v9.frag=g665;
2019
+ v5.dirty=true;
2020
+ a1(v2,a0,a2);
2021
+ v2.viewportWidth=v340;
2022
+ v2.viewportHeight=v341;
2023
+ v42[0]=v342;
2024
+ v42[1]=v343;
2025
+ v42[2]=v344;
2026
+ v42[3]=v345;
2027
+ v20[0]=v347;
2028
+ v20[1]=v349;
2029
+ v20[2]=v351;
2030
+ v20[3]=v353;
2031
+ v4.blend_enable=v355;
2032
+ v24[0]=v357;
2033
+ v24[1]=v359;
2034
+ v24[2]=v361;
2035
+ v24[3]=v363;
2036
+ v4.depth_enable=v365;
2037
+ v40[0]=v371;
2038
+ v40[1]=v372;
2039
+ v40[2]=v373;
2040
+ v40[3]=v374;
2041
+ v4.scissor_enable=v376;
2042
+ v4.stencil_enable=v378;
2043
+ if(v379){
2044
+ g52.cpuTime+=performance.now()-v380;
2045
+ }
2046
+ if(v383){
2047
+ v7.destroyStream(v382);
2048
+ }
2049
+ v6.elements=v384;
2050
+ v6.offset=v386;
2051
+ v6.count=v388;
2052
+ v6.primitive=v390;
2053
+ v12[g391]=v392;
2054
+ v12[g394]=v395;
2055
+ v12[g397]=v398;
2056
+ v12[g400]=v401;
2057
+ v12[g403]=v404;
2058
+ v12[g406]=v407;
2059
+ v12[g409]=v410;
2060
+ v12[g412]=v413;
2061
+ v12[g415]=v416;
2062
+ v12[g418]=v419;
2063
+ if(v421){
2064
+ v8.destroyStream(v427);
2065
+ }
2066
+ g434.state=v435;
2067
+ g434.x=v436;
2068
+ g434.y=v437;
2069
+ g434.z=v438;
2070
+ g434.w=v439;
2071
+ g434.buffer=v440;
2072
+ g434.size=v441;
2073
+ g434.normalized=v442;
2074
+ g434.type=v443;
2075
+ g434.offset=v444;
2076
+ g434.stride=v445;
2077
+ g434.divisor=v446;
2078
+ if(v448){
2079
+ v8.destroyStream(v454);
2080
+ }
2081
+ g461.state=v462;
2082
+ g461.x=v463;
2083
+ g461.y=v464;
2084
+ g461.z=v465;
2085
+ g461.w=v466;
2086
+ g461.buffer=v467;
2087
+ g461.size=v468;
2088
+ g461.normalized=v469;
2089
+ g461.type=v470;
2090
+ g461.offset=v471;
2091
+ g461.stride=v472;
2092
+ g461.divisor=v473;
2093
+ if(v475){
2094
+ v8.destroyStream(v481);
2095
+ }
2096
+ g488.state=v489;
2097
+ g488.x=v490;
2098
+ g488.y=v491;
2099
+ g488.z=v492;
2100
+ g488.w=v493;
2101
+ g488.buffer=v494;
2102
+ g488.size=v495;
2103
+ g488.normalized=v496;
2104
+ g488.type=v497;
2105
+ g488.offset=v498;
2106
+ g488.stride=v499;
2107
+ g488.divisor=v500;
2108
+ if(v502){
2109
+ v8.destroyStream(v508);
2110
+ }
2111
+ g515.state=v516;
2112
+ g515.x=v517;
2113
+ g515.y=v518;
2114
+ g515.z=v519;
2115
+ g515.w=v520;
2116
+ g515.buffer=v521;
2117
+ g515.size=v522;
2118
+ g515.normalized=v523;
2119
+ g515.type=v524;
2120
+ g515.offset=v525;
2121
+ g515.stride=v526;
2122
+ g515.divisor=v527;
2123
+ if(v529){
2124
+ v8.destroyStream(v535);
2125
+ }
2126
+ g542.state=v543;
2127
+ g542.x=v544;
2128
+ g542.y=v545;
2129
+ g542.z=v546;
2130
+ g542.w=v547;
2131
+ g542.buffer=v548;
2132
+ g542.size=v549;
2133
+ g542.normalized=v550;
2134
+ g542.type=v551;
2135
+ g542.offset=v552;
2136
+ g542.stride=v553;
2137
+ g542.divisor=v554;
2138
+ if(v556){
2139
+ v8.destroyStream(v562);
2140
+ }
2141
+ g569.state=v570;
2142
+ g569.x=v571;
2143
+ g569.y=v572;
2144
+ g569.z=v573;
2145
+ g569.w=v574;
2146
+ g569.buffer=v575;
2147
+ g569.size=v576;
2148
+ g569.normalized=v577;
2149
+ g569.type=v578;
2150
+ g569.offset=v579;
2151
+ g569.stride=v580;
2152
+ g569.divisor=v581;
2153
+ if(v583){
2154
+ v8.destroyStream(v589);
2155
+ }
2156
+ g596.state=v597;
2157
+ g596.x=v598;
2158
+ g596.y=v599;
2159
+ g596.z=v600;
2160
+ g596.w=v601;
2161
+ g596.buffer=v602;
2162
+ g596.size=v603;
2163
+ g596.normalized=v604;
2164
+ g596.type=v605;
2165
+ g596.offset=v606;
2166
+ g596.stride=v607;
2167
+ g596.divisor=v608;
2168
+ if(v610){
2169
+ v8.destroyStream(v616);
2170
+ }
2171
+ g623.state=v624;
2172
+ g623.x=v625;
2173
+ g623.y=v626;
2174
+ g623.z=v627;
2175
+ g623.w=v628;
2176
+ g623.buffer=v629;
2177
+ g623.size=v630;
2178
+ g623.normalized=v631;
2179
+ g623.type=v632;
2180
+ g623.offset=v633;
2181
+ g623.stride=v634;
2182
+ g623.divisor=v635;
2183
+ if(v637){
2184
+ v8.destroyStream(v643);
2185
+ }
2186
+ g650.state=v651;
2187
+ g650.x=v652;
2188
+ g650.y=v653;
2189
+ g650.z=v654;
2190
+ g650.w=v655;
2191
+ g650.buffer=v656;
2192
+ g650.size=v657;
2193
+ g650.normalized=v658;
2194
+ g650.type=v659;
2195
+ g650.offset=v660;
2196
+ g650.stride=v661;
2197
+ g650.divisor=v662;
2198
+ v9.vert=v664;
2199
+ v9.frag=v666;
2200
+ v5.dirty=true;
2201
+ }
2202
+ ,"batch":function(a0,a1){
2203
+ var v667,v668,v707,v708,v709,v710,v711;
2204
+ v667=v14.angle_instanced_arrays;
2205
+ v668=v13.next;
2206
+ if(v668!==v13.cur){
2207
+ if(v668){
2208
+ v1.bindFramebuffer(36160,v668.framebuffer);
2209
+ }
2210
+ else{
2211
+ v1.bindFramebuffer(36160,null);
2212
+ }
2213
+ v13.cur=v668;
2214
+ }
2215
+ if(v5.dirty){
2216
+ var v669,v670,v671,v672,v673,v674,v675,v676,v677,v678,v679,v680,v681,v682,v683,v684,v685,v686,v687,v688,v689,v690,v691,v692,v693,v694,v695,v696,v697,v698,v699,v700,v701,v702;
2217
+ v669=v4.dither;
2218
+ if(v669!==v5.dither){
2219
+ if(v669){
2220
+ v1.enable(3024);
2221
+ }
2222
+ else{
2223
+ v1.disable(3024);
2224
+ }
2225
+ v5.dither=v669;
2226
+ }
2227
+ v670=v22[0];
2228
+ v671=v22[1];
2229
+ if(v670!==v23[0]||v671!==v23[1]){
2230
+ v1.blendEquationSeparate(v670,v671);
2231
+ v23[0]=v670;
2232
+ v23[1]=v671;
2233
+ }
2234
+ v672=v4.depth_func;
2235
+ if(v672!==v5.depth_func){
2236
+ v1.depthFunc(v672);
2237
+ v5.depth_func=v672;
2238
+ }
2239
+ v673=v26[0];
2240
+ v674=v26[1];
2241
+ if(v673!==v27[0]||v674!==v27[1]){
2242
+ v1.depthRange(v673,v674);
2243
+ v27[0]=v673;
2244
+ v27[1]=v674;
2245
+ }
2246
+ v675=v4.depth_mask;
2247
+ if(v675!==v5.depth_mask){
2248
+ v1.depthMask(v675);
2249
+ v5.depth_mask=v675;
2250
+ }
2251
+ v676=v28[0];
2252
+ v677=v28[1];
2253
+ v678=v28[2];
2254
+ v679=v28[3];
2255
+ if(v676!==v29[0]||v677!==v29[1]||v678!==v29[2]||v679!==v29[3]){
2256
+ v1.colorMask(v676,v677,v678,v679);
2257
+ v29[0]=v676;
2258
+ v29[1]=v677;
2259
+ v29[2]=v678;
2260
+ v29[3]=v679;
2261
+ }
2262
+ v680=v4.cull_enable;
2263
+ if(v680!==v5.cull_enable){
2264
+ if(v680){
2265
+ v1.enable(2884);
2266
+ }
2267
+ else{
2268
+ v1.disable(2884);
2269
+ }
2270
+ v5.cull_enable=v680;
2271
+ }
2272
+ v681=v4.cull_face;
2273
+ if(v681!==v5.cull_face){
2274
+ v1.cullFace(v681);
2275
+ v5.cull_face=v681;
2276
+ }
2277
+ v682=v4.frontFace;
2278
+ if(v682!==v5.frontFace){
2279
+ v1.frontFace(v682);
2280
+ v5.frontFace=v682;
2281
+ }
2282
+ v683=v4.lineWidth;
2283
+ if(v683!==v5.lineWidth){
2284
+ v1.lineWidth(v683);
2285
+ v5.lineWidth=v683;
2286
+ }
2287
+ v684=v4.polygonOffset_enable;
2288
+ if(v684!==v5.polygonOffset_enable){
2289
+ if(v684){
2290
+ v1.enable(32823);
2291
+ }
2292
+ else{
2293
+ v1.disable(32823);
2294
+ }
2295
+ v5.polygonOffset_enable=v684;
2296
+ }
2297
+ v685=v30[0];
2298
+ v686=v30[1];
2299
+ if(v685!==v31[0]||v686!==v31[1]){
2300
+ v1.polygonOffset(v685,v686);
2301
+ v31[0]=v685;
2302
+ v31[1]=v686;
2303
+ }
2304
+ v687=v4.sample_alpha;
2305
+ if(v687!==v5.sample_alpha){
2306
+ if(v687){
2307
+ v1.enable(32926);
2308
+ }
2309
+ else{
2310
+ v1.disable(32926);
2311
+ }
2312
+ v5.sample_alpha=v687;
2313
+ }
2314
+ v688=v4.sample_enable;
2315
+ if(v688!==v5.sample_enable){
2316
+ if(v688){
2317
+ v1.enable(32928);
2318
+ }
2319
+ else{
2320
+ v1.disable(32928);
2321
+ }
2322
+ v5.sample_enable=v688;
2323
+ }
2324
+ v689=v32[0];
2325
+ v690=v32[1];
2326
+ if(v689!==v33[0]||v690!==v33[1]){
2327
+ v1.sampleCoverage(v689,v690);
2328
+ v33[0]=v689;
2329
+ v33[1]=v690;
2330
+ }
2331
+ v691=v4.stencil_mask;
2332
+ if(v691!==v5.stencil_mask){
2333
+ v1.stencilMask(v691);
2334
+ v5.stencil_mask=v691;
2335
+ }
2336
+ v692=v34[0];
2337
+ v693=v34[1];
2338
+ v694=v34[2];
2339
+ if(v692!==v35[0]||v693!==v35[1]||v694!==v35[2]){
2340
+ v1.stencilFunc(v692,v693,v694);
2341
+ v35[0]=v692;
2342
+ v35[1]=v693;
2343
+ v35[2]=v694;
2344
+ }
2345
+ v695=v36[0];
2346
+ v696=v36[1];
2347
+ v697=v36[2];
2348
+ v698=v36[3];
2349
+ if(v695!==v37[0]||v696!==v37[1]||v697!==v37[2]||v698!==v37[3]){
2350
+ v1.stencilOpSeparate(v695,v696,v697,v698);
2351
+ v37[0]=v695;
2352
+ v37[1]=v696;
2353
+ v37[2]=v697;
2354
+ v37[3]=v698;
2355
+ }
2356
+ v699=v38[0];
2357
+ v700=v38[1];
2358
+ v701=v38[2];
2359
+ v702=v38[3];
2360
+ if(v699!==v39[0]||v700!==v39[1]||v701!==v39[2]||v702!==v39[3]){
2361
+ v1.stencilOpSeparate(v699,v700,v701,v702);
2362
+ v39[0]=v699;
2363
+ v39[1]=v700;
2364
+ v39[2]=v701;
2365
+ v39[3]=v702;
2366
+ }
2367
+ }
2368
+ v1.blendColor(0,0,0,1);
2369
+ v21[0]=0;
2370
+ v21[1]=0;
2371
+ v21[2]=0;
2372
+ v21[3]=1;
2373
+ if(g703){
2374
+ v1.enable(3042);
2375
+ }
2376
+ else{
2377
+ v1.disable(3042);
2378
+ }
2379
+ v5.blend_enable=g703;
2380
+ v1.blendFuncSeparate(770,771,773,1);
2381
+ v25[0]=770;
2382
+ v25[1]=771;
2383
+ v25[2]=773;
2384
+ v25[3]=1;
2385
+ if(g704){
2386
+ v1.enable(2929);
2387
+ }
2388
+ else{
2389
+ v1.disable(2929);
2390
+ }
2391
+ v5.depth_enable=g704;
2392
+ if(g705){
2393
+ v1.enable(3089);
2394
+ }
2395
+ else{
2396
+ v1.disable(3089);
2397
+ }
2398
+ v5.scissor_enable=g705;
2399
+ if(g706){
2400
+ v1.enable(2960);
2401
+ }
2402
+ else{
2403
+ v1.disable(2960);
2404
+ }
2405
+ v5.stencil_enable=g706;
2406
+ v707=v5.profile;
2407
+ if(v707){
2408
+ v708=performance.now();
2409
+ g52.count+=a1;
2410
+ }
2411
+ v1.useProgram(g109.program);
2412
+ v709=v14.angle_instanced_arrays;
2413
+ var v911;
2414
+ v11.setVAO(null);
2415
+ v1.uniform1i(g291.location,false);
2416
+ v1.uniform1i(g301.location,g302.bind());
2417
+ v911=v6.instances;
2418
+ for(v710=0;
2419
+ v710<a1;
2420
+ ++v710){
2421
+ v711=a0[v710];
2422
+ var v712,v713,v714,v715,v716,v717,v718,v719,v720,v721,v722,v723,v724,v725,v726,v727,v728,v729,v730,v731,v732,v733,v734,v735,v736,v737,v738,v739,v740,v741,v742,v743,v744,v745,v746,v747,v748,v749,v750,v751,v752,v753,v754,v755,v756,v757,v758,v759,v760,v761,v762,v763,v764,v765,v766,v767,v768,v769,v770,v771,v772,v773,v774,v775,v776,v777,v778,v779,v780,v781,v782,v783,v784,v785,v786,v787,v788,v789,v790,v791,v792,v793,v794,v795,v796,v797,v798,v799,v800,v801,v802,v803,v804,v805,v806,v807,v808,v809,v810,v811,v812,v813,v814,v815,v816,v817,v818,v819,v820,v821,v822,v823,v824,v825,v826,v827,v828,v829,v830,v831,v832,v833,v834,v835,v836,v837,v838,v839,v840,v841,v842,v843,v844,v845,v846,v847,v848,v849,v850,v851,v852,v853,v854,v855,v856,v857,v858,v859,v860,v861,v862,v863,v864,v865,v866,v867,v868,v869,v870,v871,v872,v873,v874,v875,v876,v877,v878,v879,v880,v881,v882,v883,v884,v885,v886,v887,v888,v889,v890,v891,v892,v893,v894,v895,v896,v897,v898,v899,v900,v901,v902,v903,v904,v905,v906,v907,v908,v909,v910;
2423
+ v712=v711["viewport"];
2424
+ if(!(v712&&typeof v712==="object"))g18.commandRaise(g90,g19);
2425
+ v713=v712.x|0;
2426
+ v714=v712.y|0;
2427
+ v715="width" in v712?v712.width|0:(v2.framebufferWidth-v713);
2428
+ v716="height" in v712?v712.height|0:(v2.framebufferHeight-v714);
2429
+ if(!(v715>=0&&v716>=0))g18.commandRaise(g90,g19);
2430
+ v717=v2.viewportWidth;
2431
+ v2.viewportWidth=v715;
2432
+ v718=v2.viewportHeight;
2433
+ v2.viewportHeight=v716;
2434
+ v1.viewport(v713,v714,v715,v716);
2435
+ v43[0]=v713;
2436
+ v43[1]=v714;
2437
+ v43[2]=v715;
2438
+ v43[3]=v716;
2439
+ v719=v711["viewport"];
2440
+ if(!(v719&&typeof v719==="object"))g18.commandRaise(g100,g19);
2441
+ v720=v719.x|0;
2442
+ v721=v719.y|0;
2443
+ v722="width" in v719?v719.width|0:(v2.framebufferWidth-v720);
2444
+ v723="height" in v719?v719.height|0:(v2.framebufferHeight-v721);
2445
+ if(!(v722>=0&&v723>=0))g18.commandRaise(g100,g19);
2446
+ v1.scissor(v720,v721,v722,v723);
2447
+ v41[0]=v720;
2448
+ v41[1]=v721;
2449
+ v41[2]=v722;
2450
+ v41[3]=v723;
2451
+ v724=g111.call(this,v2,v711,v710);
2452
+ if(!(v724&&(typeof v724==="object"||typeof v724==="function")&&(v16(v724)||v8.getBuffer(v724)||v8.getBuffer(v724.buffer)||v16(v724.buffer)||("constant" in v724&&(typeof v724.constant==="number"||v17(v724.constant))))))g18.commandRaise(g113,g19);
2453
+ v725=false;
2454
+ v726=1;
2455
+ v727=0;
2456
+ v728=0;
2457
+ v729=0;
2458
+ v730=0;
2459
+ v731=null;
2460
+ v732=0;
2461
+ v733=false;
2462
+ v734=5126;
2463
+ v735=0;
2464
+ v736=0;
2465
+ v737=0;
2466
+ if(v16(v724)){
2467
+ v725=true;
2468
+ v731=v8.createStream(34962,v724);
2469
+ v734=v731.dtype;
2470
+ }
2471
+ else{
2472
+ v731=v8.getBuffer(v724);
2473
+ if(v731){
2474
+ v734=v731.dtype;
2475
+ }
2476
+ else if("constant" in v724){
2477
+ v726=2;
2478
+ if(typeof v724.constant === "number"){
2479
+ v727=v724.constant;
2480
+ v728=v729=v730=0;
2481
+ }
2482
+ else{
2483
+ v727=v724.constant.length>0?v724.constant[0]:0;
2484
+ v728=v724.constant.length>1?v724.constant[1]:0;
2485
+ v729=v724.constant.length>2?v724.constant[2]:0;
2486
+ v730=v724.constant.length>3?v724.constant[3]:0;
2487
+ }
2488
+ }
2489
+ else{
2490
+ if(v16(v724.buffer)){
2491
+ v731=v8.createStream(34962,v724.buffer);
2492
+ }
2493
+ else{
2494
+ v731=v8.getBuffer(v724.buffer);
2495
+ }
2496
+ v734="type" in v724?v49[v724.type]:v731.dtype;
2497
+ v733=!!v724.normalized;
2498
+ v732=v724.size|0;
2499
+ v735=v724.offset|0;
2500
+ v736=v724.stride|0;
2501
+ v737=v724.divisor|0;
2502
+ }
2503
+ }
2504
+ v738=g127.location;
2505
+ v739=v10[v738];
2506
+ if(v726===1){
2507
+ if(!v739.buffer){
2508
+ v1.enableVertexAttribArray(v738);
2509
+ }
2510
+ v740=v732||4;
2511
+ if(v739.type!==v734||v739.size!==v740||v739.buffer!==v731||v739.normalized!==v733||v739.offset!==v735||v739.stride!==v736){
2512
+ v1.bindBuffer(34962,v731.buffer);
2513
+ v1.vertexAttribPointer(v738,v740,v734,v733,v736,v735);
2514
+ v739.type=v734;
2515
+ v739.size=v740;
2516
+ v739.buffer=v731;
2517
+ v739.normalized=v733;
2518
+ v739.offset=v735;
2519
+ v739.stride=v736;
2520
+ }
2521
+ if(v739.divisor!==v737){
2522
+ v709.vertexAttribDivisorANGLE(v738,v737);
2523
+ v739.divisor=v737;
2524
+ }
2525
+ }
2526
+ else{
2527
+ if(v739.buffer){
2528
+ v1.disableVertexAttribArray(v738);
2529
+ v739.buffer=null;
2530
+ }
2531
+ if(v739.x!==v727||v739.y!==v728||v739.z!==v729||v739.w!==v730){
2532
+ v1.vertexAttrib4f(v738,v727,v728,v729,v730);
2533
+ v739.x=v727;
2534
+ v739.y=v728;
2535
+ v739.z=v729;
2536
+ v739.w=v730;
2537
+ }
2538
+ }
2539
+ v741=g131.call(this,v2,v711,v710);
2540
+ if(!(v741&&(typeof v741==="object"||typeof v741==="function")&&(v16(v741)||v8.getBuffer(v741)||v8.getBuffer(v741.buffer)||v16(v741.buffer)||("constant" in v741&&(typeof v741.constant==="number"||v17(v741.constant))))))g18.commandRaise(g133,g19);
2541
+ v742=false;
2542
+ v743=1;
2543
+ v744=0;
2544
+ v745=0;
2545
+ v746=0;
2546
+ v747=0;
2547
+ v748=null;
2548
+ v749=0;
2549
+ v750=false;
2550
+ v751=5126;
2551
+ v752=0;
2552
+ v753=0;
2553
+ v754=0;
2554
+ if(v16(v741)){
2555
+ v742=true;
2556
+ v748=v8.createStream(34962,v741);
2557
+ v751=v748.dtype;
2558
+ }
2559
+ else{
2560
+ v748=v8.getBuffer(v741);
2561
+ if(v748){
2562
+ v751=v748.dtype;
2563
+ }
2564
+ else if("constant" in v741){
2565
+ v743=2;
2566
+ if(typeof v741.constant === "number"){
2567
+ v744=v741.constant;
2568
+ v745=v746=v747=0;
2569
+ }
2570
+ else{
2571
+ v744=v741.constant.length>0?v741.constant[0]:0;
2572
+ v745=v741.constant.length>1?v741.constant[1]:0;
2573
+ v746=v741.constant.length>2?v741.constant[2]:0;
2574
+ v747=v741.constant.length>3?v741.constant[3]:0;
2575
+ }
2576
+ }
2577
+ else{
2578
+ if(v16(v741.buffer)){
2579
+ v748=v8.createStream(34962,v741.buffer);
2580
+ }
2581
+ else{
2582
+ v748=v8.getBuffer(v741.buffer);
2583
+ }
2584
+ v751="type" in v741?v49[v741.type]:v748.dtype;
2585
+ v750=!!v741.normalized;
2586
+ v749=v741.size|0;
2587
+ v752=v741.offset|0;
2588
+ v753=v741.stride|0;
2589
+ v754=v741.divisor|0;
2590
+ }
2591
+ }
2592
+ v755=g147.location;
2593
+ v756=v10[v755];
2594
+ if(v743===1){
2595
+ if(!v756.buffer){
2596
+ v1.enableVertexAttribArray(v755);
2597
+ }
2598
+ v757=v749||1;
2599
+ if(v756.type!==v751||v756.size!==v757||v756.buffer!==v748||v756.normalized!==v750||v756.offset!==v752||v756.stride!==v753){
2600
+ v1.bindBuffer(34962,v748.buffer);
2601
+ v1.vertexAttribPointer(v755,v757,v751,v750,v753,v752);
2602
+ v756.type=v751;
2603
+ v756.size=v757;
2604
+ v756.buffer=v748;
2605
+ v756.normalized=v750;
2606
+ v756.offset=v752;
2607
+ v756.stride=v753;
2608
+ }
2609
+ if(v756.divisor!==v754){
2610
+ v709.vertexAttribDivisorANGLE(v755,v754);
2611
+ v756.divisor=v754;
2612
+ }
2613
+ }
2614
+ else{
2615
+ if(v756.buffer){
2616
+ v1.disableVertexAttribArray(v755);
2617
+ v756.buffer=null;
2618
+ }
2619
+ if(v756.x!==v744||v756.y!==v745||v756.z!==v746||v756.w!==v747){
2620
+ v1.vertexAttrib4f(v755,v744,v745,v746,v747);
2621
+ v756.x=v744;
2622
+ v756.y=v745;
2623
+ v756.z=v746;
2624
+ v756.w=v747;
2625
+ }
2626
+ }
2627
+ v758=g151.call(this,v2,v711,v710);
2628
+ if(!(v758&&(typeof v758==="object"||typeof v758==="function")&&(v16(v758)||v8.getBuffer(v758)||v8.getBuffer(v758.buffer)||v16(v758.buffer)||("constant" in v758&&(typeof v758.constant==="number"||v17(v758.constant))))))g18.commandRaise(g153,g19);
2629
+ v759=false;
2630
+ v760=1;
2631
+ v761=0;
2632
+ v762=0;
2633
+ v763=0;
2634
+ v764=0;
2635
+ v765=null;
2636
+ v766=0;
2637
+ v767=false;
2638
+ v768=5126;
2639
+ v769=0;
2640
+ v770=0;
2641
+ v771=0;
2642
+ if(v16(v758)){
2643
+ v759=true;
2644
+ v765=v8.createStream(34962,v758);
2645
+ v768=v765.dtype;
2646
+ }
2647
+ else{
2648
+ v765=v8.getBuffer(v758);
2649
+ if(v765){
2650
+ v768=v765.dtype;
2651
+ }
2652
+ else if("constant" in v758){
2653
+ v760=2;
2654
+ if(typeof v758.constant === "number"){
2655
+ v761=v758.constant;
2656
+ v762=v763=v764=0;
2657
+ }
2658
+ else{
2659
+ v761=v758.constant.length>0?v758.constant[0]:0;
2660
+ v762=v758.constant.length>1?v758.constant[1]:0;
2661
+ v763=v758.constant.length>2?v758.constant[2]:0;
2662
+ v764=v758.constant.length>3?v758.constant[3]:0;
2663
+ }
2664
+ }
2665
+ else{
2666
+ if(v16(v758.buffer)){
2667
+ v765=v8.createStream(34962,v758.buffer);
2668
+ }
2669
+ else{
2670
+ v765=v8.getBuffer(v758.buffer);
2671
+ }
2672
+ v768="type" in v758?v49[v758.type]:v765.dtype;
2673
+ v767=!!v758.normalized;
2674
+ v766=v758.size|0;
2675
+ v769=v758.offset|0;
2676
+ v770=v758.stride|0;
2677
+ v771=v758.divisor|0;
2678
+ }
2679
+ }
2680
+ v772=g167.location;
2681
+ v773=v10[v772];
2682
+ if(v760===1){
2683
+ if(!v773.buffer){
2684
+ v1.enableVertexAttribArray(v772);
2685
+ }
2686
+ v774=v766||4;
2687
+ if(v773.type!==v768||v773.size!==v774||v773.buffer!==v765||v773.normalized!==v767||v773.offset!==v769||v773.stride!==v770){
2688
+ v1.bindBuffer(34962,v765.buffer);
2689
+ v1.vertexAttribPointer(v772,v774,v768,v767,v770,v769);
2690
+ v773.type=v768;
2691
+ v773.size=v774;
2692
+ v773.buffer=v765;
2693
+ v773.normalized=v767;
2694
+ v773.offset=v769;
2695
+ v773.stride=v770;
2696
+ }
2697
+ if(v773.divisor!==v771){
2698
+ v709.vertexAttribDivisorANGLE(v772,v771);
2699
+ v773.divisor=v771;
2700
+ }
2701
+ }
2702
+ else{
2703
+ if(v773.buffer){
2704
+ v1.disableVertexAttribArray(v772);
2705
+ v773.buffer=null;
2706
+ }
2707
+ if(v773.x!==v761||v773.y!==v762||v773.z!==v763||v773.w!==v764){
2708
+ v1.vertexAttrib4f(v772,v761,v762,v763,v764);
2709
+ v773.x=v761;
2710
+ v773.y=v762;
2711
+ v773.z=v763;
2712
+ v773.w=v764;
2713
+ }
2714
+ }
2715
+ v775=g171.call(this,v2,v711,v710);
2716
+ if(!(v775&&(typeof v775==="object"||typeof v775==="function")&&(v16(v775)||v8.getBuffer(v775)||v8.getBuffer(v775.buffer)||v16(v775.buffer)||("constant" in v775&&(typeof v775.constant==="number"||v17(v775.constant))))))g18.commandRaise(g173,g19);
2717
+ v776=false;
2718
+ v777=1;
2719
+ v778=0;
2720
+ v779=0;
2721
+ v780=0;
2722
+ v781=0;
2723
+ v782=null;
2724
+ v783=0;
2725
+ v784=false;
2726
+ v785=5126;
2727
+ v786=0;
2728
+ v787=0;
2729
+ v788=0;
2730
+ if(v16(v775)){
2731
+ v776=true;
2732
+ v782=v8.createStream(34962,v775);
2733
+ v785=v782.dtype;
2734
+ }
2735
+ else{
2736
+ v782=v8.getBuffer(v775);
2737
+ if(v782){
2738
+ v785=v782.dtype;
2739
+ }
2740
+ else if("constant" in v775){
2741
+ v777=2;
2742
+ if(typeof v775.constant === "number"){
2743
+ v778=v775.constant;
2744
+ v779=v780=v781=0;
2745
+ }
2746
+ else{
2747
+ v778=v775.constant.length>0?v775.constant[0]:0;
2748
+ v779=v775.constant.length>1?v775.constant[1]:0;
2749
+ v780=v775.constant.length>2?v775.constant[2]:0;
2750
+ v781=v775.constant.length>3?v775.constant[3]:0;
2751
+ }
2752
+ }
2753
+ else{
2754
+ if(v16(v775.buffer)){
2755
+ v782=v8.createStream(34962,v775.buffer);
2756
+ }
2757
+ else{
2758
+ v782=v8.getBuffer(v775.buffer);
2759
+ }
2760
+ v785="type" in v775?v49[v775.type]:v782.dtype;
2761
+ v784=!!v775.normalized;
2762
+ v783=v775.size|0;
2763
+ v786=v775.offset|0;
2764
+ v787=v775.stride|0;
2765
+ v788=v775.divisor|0;
2766
+ }
2767
+ }
2768
+ v789=g187.location;
2769
+ v790=v10[v789];
2770
+ if(v777===1){
2771
+ if(!v790.buffer){
2772
+ v1.enableVertexAttribArray(v789);
2773
+ }
2774
+ v791=v783||1;
2775
+ if(v790.type!==v785||v790.size!==v791||v790.buffer!==v782||v790.normalized!==v784||v790.offset!==v786||v790.stride!==v787){
2776
+ v1.bindBuffer(34962,v782.buffer);
2777
+ v1.vertexAttribPointer(v789,v791,v785,v784,v787,v786);
2778
+ v790.type=v785;
2779
+ v790.size=v791;
2780
+ v790.buffer=v782;
2781
+ v790.normalized=v784;
2782
+ v790.offset=v786;
2783
+ v790.stride=v787;
2784
+ }
2785
+ if(v790.divisor!==v788){
2786
+ v709.vertexAttribDivisorANGLE(v789,v788);
2787
+ v790.divisor=v788;
2788
+ }
2789
+ }
2790
+ else{
2791
+ if(v790.buffer){
2792
+ v1.disableVertexAttribArray(v789);
2793
+ v790.buffer=null;
2794
+ }
2795
+ if(v790.x!==v778||v790.y!==v779||v790.z!==v780||v790.w!==v781){
2796
+ v1.vertexAttrib4f(v789,v778,v779,v780,v781);
2797
+ v790.x=v778;
2798
+ v790.y=v779;
2799
+ v790.z=v780;
2800
+ v790.w=v781;
2801
+ }
2802
+ }
2803
+ v792=g191.call(this,v2,v711,v710);
2804
+ if(!(v792&&(typeof v792==="object"||typeof v792==="function")&&(v16(v792)||v8.getBuffer(v792)||v8.getBuffer(v792.buffer)||v16(v792.buffer)||("constant" in v792&&(typeof v792.constant==="number"||v17(v792.constant))))))g18.commandRaise(g193,g19);
2805
+ v793=false;
2806
+ v794=1;
2807
+ v795=0;
2808
+ v796=0;
2809
+ v797=0;
2810
+ v798=0;
2811
+ v799=null;
2812
+ v800=0;
2813
+ v801=false;
2814
+ v802=5126;
2815
+ v803=0;
2816
+ v804=0;
2817
+ v805=0;
2818
+ if(v16(v792)){
2819
+ v793=true;
2820
+ v799=v8.createStream(34962,v792);
2821
+ v802=v799.dtype;
2822
+ }
2823
+ else{
2824
+ v799=v8.getBuffer(v792);
2825
+ if(v799){
2826
+ v802=v799.dtype;
2827
+ }
2828
+ else if("constant" in v792){
2829
+ v794=2;
2830
+ if(typeof v792.constant === "number"){
2831
+ v795=v792.constant;
2832
+ v796=v797=v798=0;
2833
+ }
2834
+ else{
2835
+ v795=v792.constant.length>0?v792.constant[0]:0;
2836
+ v796=v792.constant.length>1?v792.constant[1]:0;
2837
+ v797=v792.constant.length>2?v792.constant[2]:0;
2838
+ v798=v792.constant.length>3?v792.constant[3]:0;
2839
+ }
2840
+ }
2841
+ else{
2842
+ if(v16(v792.buffer)){
2843
+ v799=v8.createStream(34962,v792.buffer);
2844
+ }
2845
+ else{
2846
+ v799=v8.getBuffer(v792.buffer);
2847
+ }
2848
+ v802="type" in v792?v49[v792.type]:v799.dtype;
2849
+ v801=!!v792.normalized;
2850
+ v800=v792.size|0;
2851
+ v803=v792.offset|0;
2852
+ v804=v792.stride|0;
2853
+ v805=v792.divisor|0;
2854
+ }
2855
+ }
2856
+ v806=g207.location;
2857
+ v807=v10[v806];
2858
+ if(v794===1){
2859
+ if(!v807.buffer){
2860
+ v1.enableVertexAttribArray(v806);
2861
+ }
2862
+ v808=v800||1;
2863
+ if(v807.type!==v802||v807.size!==v808||v807.buffer!==v799||v807.normalized!==v801||v807.offset!==v803||v807.stride!==v804){
2864
+ v1.bindBuffer(34962,v799.buffer);
2865
+ v1.vertexAttribPointer(v806,v808,v802,v801,v804,v803);
2866
+ v807.type=v802;
2867
+ v807.size=v808;
2868
+ v807.buffer=v799;
2869
+ v807.normalized=v801;
2870
+ v807.offset=v803;
2871
+ v807.stride=v804;
2872
+ }
2873
+ if(v807.divisor!==v805){
2874
+ v709.vertexAttribDivisorANGLE(v806,v805);
2875
+ v807.divisor=v805;
2876
+ }
2877
+ }
2878
+ else{
2879
+ if(v807.buffer){
2880
+ v1.disableVertexAttribArray(v806);
2881
+ v807.buffer=null;
2882
+ }
2883
+ if(v807.x!==v795||v807.y!==v796||v807.z!==v797||v807.w!==v798){
2884
+ v1.vertexAttrib4f(v806,v795,v796,v797,v798);
2885
+ v807.x=v795;
2886
+ v807.y=v796;
2887
+ v807.z=v797;
2888
+ v807.w=v798;
2889
+ }
2890
+ }
2891
+ v809=g211.call(this,v2,v711,v710);
2892
+ if(!(v809&&(typeof v809==="object"||typeof v809==="function")&&(v16(v809)||v8.getBuffer(v809)||v8.getBuffer(v809.buffer)||v16(v809.buffer)||("constant" in v809&&(typeof v809.constant==="number"||v17(v809.constant))))))g18.commandRaise(g213,g19);
2893
+ v810=false;
2894
+ v811=1;
2895
+ v812=0;
2896
+ v813=0;
2897
+ v814=0;
2898
+ v815=0;
2899
+ v816=null;
2900
+ v817=0;
2901
+ v818=false;
2902
+ v819=5126;
2903
+ v820=0;
2904
+ v821=0;
2905
+ v822=0;
2906
+ if(v16(v809)){
2907
+ v810=true;
2908
+ v816=v8.createStream(34962,v809);
2909
+ v819=v816.dtype;
2910
+ }
2911
+ else{
2912
+ v816=v8.getBuffer(v809);
2913
+ if(v816){
2914
+ v819=v816.dtype;
2915
+ }
2916
+ else if("constant" in v809){
2917
+ v811=2;
2918
+ if(typeof v809.constant === "number"){
2919
+ v812=v809.constant;
2920
+ v813=v814=v815=0;
2921
+ }
2922
+ else{
2923
+ v812=v809.constant.length>0?v809.constant[0]:0;
2924
+ v813=v809.constant.length>1?v809.constant[1]:0;
2925
+ v814=v809.constant.length>2?v809.constant[2]:0;
2926
+ v815=v809.constant.length>3?v809.constant[3]:0;
2927
+ }
2928
+ }
2929
+ else{
2930
+ if(v16(v809.buffer)){
2931
+ v816=v8.createStream(34962,v809.buffer);
2932
+ }
2933
+ else{
2934
+ v816=v8.getBuffer(v809.buffer);
2935
+ }
2936
+ v819="type" in v809?v49[v809.type]:v816.dtype;
2937
+ v818=!!v809.normalized;
2938
+ v817=v809.size|0;
2939
+ v820=v809.offset|0;
2940
+ v821=v809.stride|0;
2941
+ v822=v809.divisor|0;
2942
+ }
2943
+ }
2944
+ v823=g227.location;
2945
+ v824=v10[v823];
2946
+ if(v811===1){
2947
+ if(!v824.buffer){
2948
+ v1.enableVertexAttribArray(v823);
2949
+ }
2950
+ v825=v817||1;
2951
+ if(v824.type!==v819||v824.size!==v825||v824.buffer!==v816||v824.normalized!==v818||v824.offset!==v820||v824.stride!==v821){
2952
+ v1.bindBuffer(34962,v816.buffer);
2953
+ v1.vertexAttribPointer(v823,v825,v819,v818,v821,v820);
2954
+ v824.type=v819;
2955
+ v824.size=v825;
2956
+ v824.buffer=v816;
2957
+ v824.normalized=v818;
2958
+ v824.offset=v820;
2959
+ v824.stride=v821;
2960
+ }
2961
+ if(v824.divisor!==v822){
2962
+ v709.vertexAttribDivisorANGLE(v823,v822);
2963
+ v824.divisor=v822;
2964
+ }
2965
+ }
2966
+ else{
2967
+ if(v824.buffer){
2968
+ v1.disableVertexAttribArray(v823);
2969
+ v824.buffer=null;
2970
+ }
2971
+ if(v824.x!==v812||v824.y!==v813||v824.z!==v814||v824.w!==v815){
2972
+ v1.vertexAttrib4f(v823,v812,v813,v814,v815);
2973
+ v824.x=v812;
2974
+ v824.y=v813;
2975
+ v824.z=v814;
2976
+ v824.w=v815;
2977
+ }
2978
+ }
2979
+ v826=g231.call(this,v2,v711,v710);
2980
+ if(!(v826&&(typeof v826==="object"||typeof v826==="function")&&(v16(v826)||v8.getBuffer(v826)||v8.getBuffer(v826.buffer)||v16(v826.buffer)||("constant" in v826&&(typeof v826.constant==="number"||v17(v826.constant))))))g18.commandRaise(g233,g19);
2981
+ v827=false;
2982
+ v828=1;
2983
+ v829=0;
2984
+ v830=0;
2985
+ v831=0;
2986
+ v832=0;
2987
+ v833=null;
2988
+ v834=0;
2989
+ v835=false;
2990
+ v836=5126;
2991
+ v837=0;
2992
+ v838=0;
2993
+ v839=0;
2994
+ if(v16(v826)){
2995
+ v827=true;
2996
+ v833=v8.createStream(34962,v826);
2997
+ v836=v833.dtype;
2998
+ }
2999
+ else{
3000
+ v833=v8.getBuffer(v826);
3001
+ if(v833){
3002
+ v836=v833.dtype;
3003
+ }
3004
+ else if("constant" in v826){
3005
+ v828=2;
3006
+ if(typeof v826.constant === "number"){
3007
+ v829=v826.constant;
3008
+ v830=v831=v832=0;
3009
+ }
3010
+ else{
3011
+ v829=v826.constant.length>0?v826.constant[0]:0;
3012
+ v830=v826.constant.length>1?v826.constant[1]:0;
3013
+ v831=v826.constant.length>2?v826.constant[2]:0;
3014
+ v832=v826.constant.length>3?v826.constant[3]:0;
3015
+ }
3016
+ }
3017
+ else{
3018
+ if(v16(v826.buffer)){
3019
+ v833=v8.createStream(34962,v826.buffer);
3020
+ }
3021
+ else{
3022
+ v833=v8.getBuffer(v826.buffer);
3023
+ }
3024
+ v836="type" in v826?v49[v826.type]:v833.dtype;
3025
+ v835=!!v826.normalized;
3026
+ v834=v826.size|0;
3027
+ v837=v826.offset|0;
3028
+ v838=v826.stride|0;
3029
+ v839=v826.divisor|0;
3030
+ }
3031
+ }
3032
+ v840=g247.location;
3033
+ v841=v10[v840];
3034
+ if(v828===1){
3035
+ if(!v841.buffer){
3036
+ v1.enableVertexAttribArray(v840);
3037
+ }
3038
+ v842=v834||1;
3039
+ if(v841.type!==v836||v841.size!==v842||v841.buffer!==v833||v841.normalized!==v835||v841.offset!==v837||v841.stride!==v838){
3040
+ v1.bindBuffer(34962,v833.buffer);
3041
+ v1.vertexAttribPointer(v840,v842,v836,v835,v838,v837);
3042
+ v841.type=v836;
3043
+ v841.size=v842;
3044
+ v841.buffer=v833;
3045
+ v841.normalized=v835;
3046
+ v841.offset=v837;
3047
+ v841.stride=v838;
3048
+ }
3049
+ if(v841.divisor!==v839){
3050
+ v709.vertexAttribDivisorANGLE(v840,v839);
3051
+ v841.divisor=v839;
3052
+ }
3053
+ }
3054
+ else{
3055
+ if(v841.buffer){
3056
+ v1.disableVertexAttribArray(v840);
3057
+ v841.buffer=null;
3058
+ }
3059
+ if(v841.x!==v829||v841.y!==v830||v841.z!==v831||v841.w!==v832){
3060
+ v1.vertexAttrib4f(v840,v829,v830,v831,v832);
3061
+ v841.x=v829;
3062
+ v841.y=v830;
3063
+ v841.z=v831;
3064
+ v841.w=v832;
3065
+ }
3066
+ }
3067
+ v843=g251.call(this,v2,v711,v710);
3068
+ if(!(v843&&(typeof v843==="object"||typeof v843==="function")&&(v16(v843)||v8.getBuffer(v843)||v8.getBuffer(v843.buffer)||v16(v843.buffer)||("constant" in v843&&(typeof v843.constant==="number"||v17(v843.constant))))))g18.commandRaise(g253,g19);
3069
+ v844=false;
3070
+ v845=1;
3071
+ v846=0;
3072
+ v847=0;
3073
+ v848=0;
3074
+ v849=0;
3075
+ v850=null;
3076
+ v851=0;
3077
+ v852=false;
3078
+ v853=5126;
3079
+ v854=0;
3080
+ v855=0;
3081
+ v856=0;
3082
+ if(v16(v843)){
3083
+ v844=true;
3084
+ v850=v8.createStream(34962,v843);
3085
+ v853=v850.dtype;
3086
+ }
3087
+ else{
3088
+ v850=v8.getBuffer(v843);
3089
+ if(v850){
3090
+ v853=v850.dtype;
3091
+ }
3092
+ else if("constant" in v843){
3093
+ v845=2;
3094
+ if(typeof v843.constant === "number"){
3095
+ v846=v843.constant;
3096
+ v847=v848=v849=0;
3097
+ }
3098
+ else{
3099
+ v846=v843.constant.length>0?v843.constant[0]:0;
3100
+ v847=v843.constant.length>1?v843.constant[1]:0;
3101
+ v848=v843.constant.length>2?v843.constant[2]:0;
3102
+ v849=v843.constant.length>3?v843.constant[3]:0;
3103
+ }
3104
+ }
3105
+ else{
3106
+ if(v16(v843.buffer)){
3107
+ v850=v8.createStream(34962,v843.buffer);
3108
+ }
3109
+ else{
3110
+ v850=v8.getBuffer(v843.buffer);
3111
+ }
3112
+ v853="type" in v843?v49[v843.type]:v850.dtype;
3113
+ v852=!!v843.normalized;
3114
+ v851=v843.size|0;
3115
+ v854=v843.offset|0;
3116
+ v855=v843.stride|0;
3117
+ v856=v843.divisor|0;
3118
+ }
3119
+ }
3120
+ v857=g267.location;
3121
+ v858=v10[v857];
3122
+ if(v845===1){
3123
+ if(!v858.buffer){
3124
+ v1.enableVertexAttribArray(v857);
3125
+ }
3126
+ v859=v851||1;
3127
+ if(v858.type!==v853||v858.size!==v859||v858.buffer!==v850||v858.normalized!==v852||v858.offset!==v854||v858.stride!==v855){
3128
+ v1.bindBuffer(34962,v850.buffer);
3129
+ v1.vertexAttribPointer(v857,v859,v853,v852,v855,v854);
3130
+ v858.type=v853;
3131
+ v858.size=v859;
3132
+ v858.buffer=v850;
3133
+ v858.normalized=v852;
3134
+ v858.offset=v854;
3135
+ v858.stride=v855;
3136
+ }
3137
+ if(v858.divisor!==v856){
3138
+ v709.vertexAttribDivisorANGLE(v857,v856);
3139
+ v858.divisor=v856;
3140
+ }
3141
+ }
3142
+ else{
3143
+ if(v858.buffer){
3144
+ v1.disableVertexAttribArray(v857);
3145
+ v858.buffer=null;
3146
+ }
3147
+ if(v858.x!==v846||v858.y!==v847||v858.z!==v848||v858.w!==v849){
3148
+ v1.vertexAttrib4f(v857,v846,v847,v848,v849);
3149
+ v858.x=v846;
3150
+ v858.y=v847;
3151
+ v858.z=v848;
3152
+ v858.w=v849;
3153
+ }
3154
+ }
3155
+ v860=g271.call(this,v2,v711,v710);
3156
+ if(!(v860&&(typeof v860==="object"||typeof v860==="function")&&(v16(v860)||v8.getBuffer(v860)||v8.getBuffer(v860.buffer)||v16(v860.buffer)||("constant" in v860&&(typeof v860.constant==="number"||v17(v860.constant))))))g18.commandRaise(g273,g19);
3157
+ v861=false;
3158
+ v862=1;
3159
+ v863=0;
3160
+ v864=0;
3161
+ v865=0;
3162
+ v866=0;
3163
+ v867=null;
3164
+ v868=0;
3165
+ v869=false;
3166
+ v870=5126;
3167
+ v871=0;
3168
+ v872=0;
3169
+ v873=0;
3170
+ if(v16(v860)){
3171
+ v861=true;
3172
+ v867=v8.createStream(34962,v860);
3173
+ v870=v867.dtype;
3174
+ }
3175
+ else{
3176
+ v867=v8.getBuffer(v860);
3177
+ if(v867){
3178
+ v870=v867.dtype;
3179
+ }
3180
+ else if("constant" in v860){
3181
+ v862=2;
3182
+ if(typeof v860.constant === "number"){
3183
+ v863=v860.constant;
3184
+ v864=v865=v866=0;
3185
+ }
3186
+ else{
3187
+ v863=v860.constant.length>0?v860.constant[0]:0;
3188
+ v864=v860.constant.length>1?v860.constant[1]:0;
3189
+ v865=v860.constant.length>2?v860.constant[2]:0;
3190
+ v866=v860.constant.length>3?v860.constant[3]:0;
3191
+ }
3192
+ }
3193
+ else{
3194
+ if(v16(v860.buffer)){
3195
+ v867=v8.createStream(34962,v860.buffer);
3196
+ }
3197
+ else{
3198
+ v867=v8.getBuffer(v860.buffer);
3199
+ }
3200
+ v870="type" in v860?v49[v860.type]:v867.dtype;
3201
+ v869=!!v860.normalized;
3202
+ v868=v860.size|0;
3203
+ v871=v860.offset|0;
3204
+ v872=v860.stride|0;
3205
+ v873=v860.divisor|0;
3206
+ }
3207
+ }
3208
+ v874=g287.location;
3209
+ v875=v10[v874];
3210
+ if(v862===1){
3211
+ if(!v875.buffer){
3212
+ v1.enableVertexAttribArray(v874);
3213
+ }
3214
+ v876=v868||1;
3215
+ if(v875.type!==v870||v875.size!==v876||v875.buffer!==v867||v875.normalized!==v869||v875.offset!==v871||v875.stride!==v872){
3216
+ v1.bindBuffer(34962,v867.buffer);
3217
+ v1.vertexAttribPointer(v874,v876,v870,v869,v872,v871);
3218
+ v875.type=v870;
3219
+ v875.size=v876;
3220
+ v875.buffer=v867;
3221
+ v875.normalized=v869;
3222
+ v875.offset=v871;
3223
+ v875.stride=v872;
3224
+ }
3225
+ if(v875.divisor!==v873){
3226
+ v709.vertexAttribDivisorANGLE(v874,v873);
3227
+ v875.divisor=v873;
3228
+ }
3229
+ }
3230
+ else{
3231
+ if(v875.buffer){
3232
+ v1.disableVertexAttribArray(v874);
3233
+ v875.buffer=null;
3234
+ }
3235
+ if(v875.x!==v863||v875.y!==v864||v875.z!==v865||v875.w!==v866){
3236
+ v1.vertexAttrib4f(v874,v863,v864,v865,v866);
3237
+ v875.x=v863;
3238
+ v875.y=v864;
3239
+ v875.z=v865;
3240
+ v875.w=v866;
3241
+ }
3242
+ }
3243
+ v877=v711["opacity"];
3244
+ if(!(typeof v877==="number"))g18.commandRaise(g294,g19);
3245
+ if(!v710||v878!==v877){
3246
+ v878=v877;
3247
+ v1.uniform1f(g292.location,v877);
3248
+ }
3249
+ v879=g296.call(this,v2,v711,v710);
3250
+ if(!(v17(v879)&&v879.length===2))g18.commandRaise(g298,g19);
3251
+ v880=v879[0];
3252
+ v882=v879[1];
3253
+ if(!v710||v881!==v880||v883!==v882){
3254
+ v881=v880;
3255
+ v883=v882;
3256
+ v1.uniform2f(g295.location,v880,v882);
3257
+ }
3258
+ v884=v2["pixelRatio"];
3259
+ if(!(typeof v884==="number"))g18.commandRaise(g305,g19);
3260
+ if(!v710||v885!==v884){
3261
+ v885=v884;
3262
+ v1.uniform1f(g303.location,v884);
3263
+ }
3264
+ v886=v711["scale"];
3265
+ if(!(v17(v886)&&v886.length===2))g18.commandRaise(g308,g19);
3266
+ v887=v886[0];
3267
+ v889=v886[1];
3268
+ if(!v710||v888!==v887||v890!==v889){
3269
+ v888=v887;
3270
+ v890=v889;
3271
+ v1.uniform2f(g306.location,v887,v889);
3272
+ }
3273
+ v891=v711["scaleFract"];
3274
+ if(!(v17(v891)&&v891.length===2))g18.commandRaise(g313,g19);
3275
+ v892=v891[0];
3276
+ v894=v891[1];
3277
+ if(!v710||v893!==v892||v895!==v894){
3278
+ v893=v892;
3279
+ v895=v894;
3280
+ v1.uniform2f(g311.location,v892,v894);
3281
+ }
3282
+ v896=v711["translate"];
3283
+ if(!(v17(v896)&&v896.length===2))g18.commandRaise(g318,g19);
3284
+ v897=v896[0];
3285
+ v899=v896[1];
3286
+ if(!v710||v898!==v897||v900!==v899){
3287
+ v898=v897;
3288
+ v900=v899;
3289
+ v1.uniform2f(g316.location,v897,v899);
3290
+ }
3291
+ v901=v711["translateFract"];
3292
+ if(!(v17(v901)&&v901.length===2))g18.commandRaise(g323,g19);
3293
+ v902=v901[0];
3294
+ v904=v901[1];
3295
+ if(!v710||v903!==v902||v905!==v904){
3296
+ v903=v902;
3297
+ v905=v904;
3298
+ v1.uniform2f(g321.location,v902,v904);
3299
+ }
3300
+ v906=v711["elements"];
3301
+ v907=null;
3302
+ v908=v16(v906);
3303
+ if(v908){
3304
+ v907=v7.createStream(v906);
3305
+ }
3306
+ else{
3307
+ v907=v7.getElements(v906);
3308
+ if(!(!v906||v907))g18.commandRaise(g329,g19);
3309
+ }
3310
+ if(v907)v1.bindBuffer(34963,v907.buffer.buffer);
3311
+ v909=v711["offset"];
3312
+ if(!(v909>=0))g18.commandRaise(g331,g19);
3313
+ v910=v711["count"];
3314
+ if(!(typeof v910==="number"&&v910>=0&&v910===(v910|0)))g18.commandRaise(g333,g19);
3315
+ if(v910){
3316
+ if(v911>0){
3317
+ if(v907){
3318
+ v709.drawElementsInstancedANGLE(0,v910,v907.type,v909<<((v907.type-5121)>>1),v911);
3319
+ }
3320
+ else{
3321
+ v709.drawArraysInstancedANGLE(0,v909,v910,v911);
3322
+ }
3323
+ }
3324
+ else if(v911<0){
3325
+ if(v907){
3326
+ v1.drawElements(0,v910,v907.type,v909<<((v907.type-5121)>>1));
3327
+ }
3328
+ else{
3329
+ v1.drawArrays(0,v909,v910);
3330
+ }
3331
+ }
3332
+ v2.viewportWidth=v717;
3333
+ v2.viewportHeight=v718;
3334
+ if(v725){
3335
+ v8.destroyStream(v731);
3336
+ }
3337
+ if(v742){
3338
+ v8.destroyStream(v748);
3339
+ }
3340
+ if(v759){
3341
+ v8.destroyStream(v765);
3342
+ }
3343
+ if(v776){
3344
+ v8.destroyStream(v782);
3345
+ }
3346
+ if(v793){
3347
+ v8.destroyStream(v799);
3348
+ }
3349
+ if(v810){
3350
+ v8.destroyStream(v816);
3351
+ }
3352
+ if(v827){
3353
+ v8.destroyStream(v833);
3354
+ }
3355
+ if(v844){
3356
+ v8.destroyStream(v850);
3357
+ }
3358
+ if(v861){
3359
+ v8.destroyStream(v867);
3360
+ }
3361
+ if(v908){
3362
+ v7.destroyStream(v907);
3363
+ }
3364
+ }
3365
+ }
3366
+ g302.unbind();
3367
+ v5.dirty=true;
3368
+ v11.setVAO(null);
3369
+ if(v707){
3370
+ g52.cpuTime+=performance.now()-v708;
3371
+ }
3372
+ }
3373
+ ,}
3374
+
3375
+ }