define(["exports","./Transforms-3ac41eb6","./ComponentDatatype-4a60b8d6","./defaultValue-94c3e563","./RuntimeError-c581ca93","./Matrix2-fc7e9822","./GeometryAttribute-a441ff32","./GeometryAttributes-7df9bef6","./GeometryPipeline-a88e5bfc","./IndexDatatype-db156785","./WebMercatorProjection-843df830"],(function(e,t,n,o,r,i,s,c,a,d,p){"use strict";function f(e,t,n){e=o.defaultValue(e,0),t=o.defaultValue(t,0),n=o.defaultValue(n,0),this.value=new Float32Array([e,t,n])}function u(e,t,n){let r=!n;const s=e.length;let c;if(!r&&s>1){const t=e[0].modelMatrix;for(c=1;c=0){const e=r[a];i=e.offset+e.count,c=e.index,s=n[c].indices.length}else i=0,c=0,s=n[c].indices.length;const d=e.length;for(let p=0;ps&&(i=0,s=n[++c].indices.length),r.push({index:c,offset:i,count:f}),i+=f}}function y(e,t){const n=[];return g(e,"geometry",t,n),g(e,"westHemisphereGeometry",t,n),g(e,"eastHemisphereGeometry",t,n),n}Object.defineProperties(f.prototype,{componentDatatype:{get:function(){return n.ComponentDatatype.FLOAT}},componentsPerAttribute:{get:function(){return 3}},normalize:{get:function(){return!1}}}),f.fromCartesian3=function(e){return r.Check.defined("offset",e),new f(e.x,e.y,e.z)},f.toValue=function(e,t){return r.Check.defined("offset",e),o.defined(t)||(t=new Float32Array([e.x,e.y,e.z])),t[0]=e.x,t[1]=e.y,t[2]=e.z,t};const b={};function x(e,t){const n=e.attributes;for(const r in n)if(n.hasOwnProperty(r)){const e=n[r];o.defined(e)&&o.defined(e.values)&&t.push(e.values.buffer)}o.defined(e.indices)&&t.push(e.indices.buffer)}function G(e,t){const n=e.length;for(let o=0;o0&&(n=h(e),n.length>0&&(r=a.GeometryPipeline.createAttributeLocations(n[0]),e.createPickOffsets&&(c=y(i,n))),o.defined(i[0].attributes)&&o.defined(i[0].attributes.offset)&&(d=new Array(s),p=!0));const f=new Array(s),u=new Array(s);for(let a=0;a0&&(r.set(n.indices,a),a+=m)}return n.push(r.buffer),{stringTable:i,packedData:r}},b.unpackCreateGeometryResults=function(e){const o=e.stringTable,r=e.packedData;let i;const a=new Array(r[0]);let p=0,f=1;while(f0){const e=G.length/S;for(C=d.IndexDatatype.createTypedArray(e,x),i=0;i