define(["./Transforms-4a1d2c0e","./BoxGeometry-91a65404","./Matrix2-f0fc6cd3","./Color-f48e883d","./CylinderGeometry-4c9fdff8","./when-229515d6","./EllipsoidGeometry-51deea95","./IndexDatatype-c2b69fc2","./createTaskProcessorWorker","./RuntimeError-8f3d96ee","./ComponentDatatype-5f63ec93","./WebGLConstants-f63312fc","./combine-6d9c3903","./GeometryOffsetAttribute-369d5efa","./GeometryAttribute-4b6dfc85","./GeometryAttributes-b253752a","./VertexFormat-af764a6f","./CylinderGeometryLibrary-6799e174"],(function(e,t,n,r,i,a,o,s,d,c,l,f,u,h,p,b,y,x){"use strict";function g(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}const m=new n.Cartesian3,C=n.Matrix4.packedLength+n.Cartesian3.packedLength,I=n.Matrix4.packedLength+2,k=n.Matrix4.packedLength+n.Cartesian3.packedLength,M=n.Cartesian3.packedLength+1,B={modelMatrix:new n.Matrix4,boundingVolume:new e.BoundingSphere};function w(e,t){let r=t*C;const i=n.Cartesian3.unpack(e,r,m);r+=n.Cartesian3.packedLength;const a=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(a,i,a);const o=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=Math.sqrt(3),B}function A(e,t){let r=t*I;const i=e[r++],a=e[r++],o=n.Cartesian3.fromElements(i,i,a,m),s=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(s,o,s);const d=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,d.center),d.radius=Math.sqrt(2),B}function O(e,t){let r=t*k;const i=n.Cartesian3.unpack(e,r,m);r+=n.Cartesian3.packedLength;const a=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(a,i,a);const o=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=1,B}function L(e,t){let r=t*M;const i=e[r++],a=n.Cartesian3.unpack(e,r,m),o=n.Matrix4.fromTranslation(a,B.modelMatrix);n.Matrix4.multiplyByUniformScale(o,i,o);const s=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,s.center),s.radius=1,B}const v=new n.Cartesian3;function E(t,i,o,s,d){if(!a.defined(i))return;const c=o.length,l=s.attributes.position.values,f=s.indices,u=t.positions,h=t.vertexBatchIds,p=t.indices,b=t.batchIds,y=t.batchTableColors,x=t.batchedIndices,m=t.indexOffsets,C=t.indexCounts,I=t.boundingVolumes,k=t.modelMatrix,M=t.center;let B=t.positionOffset,w=t.batchIdIndex,A=t.indexOffset;const O=t.batchedIndicesOffset;for(let t=0;t