define(["exports","./ArcType-fc72c06c","./arrayRemoveDuplicates-85770175","./Matrix2-e3fb4559","./Cartesian3-7e9cc2ff","./ComponentDatatype-aaeec80f","./defaultValue-81eec7ed","./EllipsoidRhumbLine-9c6b32ea","./GeometryAttribute-088ad91d","./GeometryAttributes-32b29525","./GeometryPipeline-1165e4c4","./IndexDatatype-f1e3f799","./Math-5f585871","./Matrix4-d34187af","./PolygonPipeline-88d66a90","./Transforms-99272364"],(function(e,t,n,i,o,r,a,s,c,l,u,h,f,p,d,y){"use strict";function g(){this._array=[],this._offset=0,this._length=0}Object.defineProperties(g.prototype,{length:{get:function(){return this._length}}}),g.prototype.enqueue=function(e){this._array.push(e),this._length++},g.prototype.dequeue=function(){if(0===this._length)return;const e=this._array;let t=this._offset;const n=e[t];return e[t]=void 0,t++,t>10&&2*t>e.length&&(this._array=e.slice(t),t=0),this._offset=t,this._length--,n},g.prototype.peek=function(){if(0!==this._length)return this._array[this._offset]},g.prototype.contains=function(e){return-1!==this._array.indexOf(e)},g.prototype.clear=function(){this._array.length=this._offset=this._length=0},g.prototype.sort=function(e){this._offset>0&&(this._array=this._array.slice(this._offset),this._offset=0),this._array.sort(e)};const m={computeHierarchyPackedLength:function(e){let t=0;const n=[e];for(;n.length>0;){const e=n.pop();if(!a.defined(e))continue;t+=2;const i=e.positions,r=e.holes;if(a.defined(i)&&(t+=i.length*o.Cartesian3.packedLength),a.defined(r)){const e=r.length;for(let t=0;t0;){const e=i.pop();if(!a.defined(e))continue;const r=e.positions,s=e.holes;if(t[n++]=a.defined(r)?r.length:0,t[n++]=a.defined(s)?s.length:0,a.defined(r)){const e=r.length;for(let i=0;i0?new Array(i):void 0;for(let i=0;i