define(["./when-92c6cf3c","./Rectangle-bab7abf0","./arrayFill-0358accf","./buildModuleUrl-3d15f25c","./Cartesian2-6033fa5d","./Cartographic-67e73ef9","./Check-52a7d806","./ComponentDatatype-81047f82","./GeometryAttribute-ef657318","./GeometryAttributes-7f66ea53","./GeometryInstance-da5e91bc","./GeometryOffsetAttribute-b4d599f5","./GeometryPipeline-f4eddf07","./IndexDatatype-4c0e98b8","./Math-92c3b5f7","./PrimitiveType-cdfe443e","./PolygonPipeline-b86e8785","./RectangleGeometryLibrary-12ead223","./VertexFormat-f496a3f1","./Intersect-b97e930a","./Event-3390cd7d","./RuntimeError-c6a62a80","./WebGLConstants-71f10989","./FeatureDetection-067cb23c","./Cartesian4-ad128b5d","./AttributeCompression-49f7b62a","./EncodedCartesian3-b86c8d65","./IntersectionTests-a42760d9","./Plane-f8d22530","./WindingOrder-1b9c8a87","./EllipsoidRhumbLine-8847d1a1"],(function(t,e,a,n,o,r,i,s,u,l,c,p,d,g,h,f,m,v,y,b,_,w,A,x,E,D,P,F,R,L,T){"use strict";var O=new r.t,C=new r.t,N=new r.t,I=new r.t,k=new e.h,S=new o.o,z=new n.i,G=new n.i;function M(t,e){var a=new u.I({attributes:new l.a,primitiveType:f._0x29ba75.TRIANGLES});return a.attributes.position=new u.o({componentDatatype:s.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e.positions}),t.normal&&(a.attributes.normal=new u.o({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.normals})),t.tangent&&(a.attributes.tangent=new u.o({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.tangents})),t.bitangent&&(a.attributes.bitangent=new u.o({componentDatatype:s.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e.bitangents})),a}var H=new r.t,V=new r.t;function U(t,e){var a=t._vertexFormat,n=t._ellipsoid,o=e.height,i=e.width,l=e.northCap,c=e.southCap,p=0,d=o,h=o,m=0;l&&(p=1,h-=1,m+=1),c&&(d-=1,h-=1,m+=1),m+=i*h;for(var y=a.position?new Float64Array(3*m):void 0,b=a.st?new Float32Array(2*m):void 0,_=0,w=0,A=O,x=S,E=Number.MAX_VALUE,D=Number.MAX_VALUE,P=-Number.MAX_VALUE,F=-Number.MAX_VALUE,R=p;R1||F>1))for(var T=0;T0;o-=A)dt=j(dt,yt,vt=3*o,D,L),yt+=6,f.st&&(ft=B(ft,bt,2*o,T),bt+=4),i&&(_t+=3,gt[_t++]=k[vt],gt[_t++]=k[vt+1],gt[_t++]=k[vt+2]),mt&&(ht[wt++]=1,wt+=1);if(ot){var Et=At;for(vt=3*Et,o=0;o<2;o++)dt=j(dt,yt,vt,D,L),yt+=6,f.st&&(ft=B(ft,bt,2*Et,T),bt+=4),i&&(_t+=3,gt[_t++]=k[vt],gt[_t++]=k[vt+1],gt[_t++]=k[vt+2]),mt&&(ht[wt++]=1,wt+=1)}else for(o=A-1;o>=0;o--)dt=j(dt,yt,vt=3*o,D,L),yt+=6,f.st&&(ft=B(ft,bt,2*o,T),bt+=4),i&&(_t+=3,gt[_t++]=k[vt],gt[_t++]=k[vt+1],gt[_t++]=k[vt+2]),mt&&(ht[wt++]=1,wt+=1);var Dt=function(t,e,a){var n=t.length,o=e.normal?new Float32Array(n):void 0,i=e.tangent?new Float32Array(n):void 0,s=e.bitangent?new Float32Array(n):void 0,u=0,l=0,c=0,p=!0,d=I,g=N,f=C;if(e.normal||e.tangent||e.bitangent)for(var m=0;m