define(["./GeometryOffsetAttribute-ff1e192c","./Transforms-75891ac8","./Matrix2-2fec35ad","./RuntimeError-ffe03243","./ComponentDatatype-17b06483","./CylinderGeometryLibrary-7b000e1b","./when-229515d6","./GeometryAttribute-c0946387","./GeometryAttributes-b253752a","./IndexDatatype-b10faa0b","./combine-8ce3f24b","./PixelFormat-daf99ebc","./WebGLConstants-4e26b85a"],(function(t,e,i,r,a,n,o,u,s,f,d,b,l){"use strict";var m=new i.Cartesian2;function c(t){var e=(t=o.defaultValue(t,o.defaultValue.EMPTY_OBJECT)).length,i=t.topRadius,r=t.bottomRadius,a=o.defaultValue(t.slices,128),n=Math.max(o.defaultValue(t.numberOfVerticalLines,16),0);this._length=e,this._topRadius=i,this._bottomRadius=r,this._slices=a,this._numberOfVerticalLines=n,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}c.packedLength=6,c.pack=function(t,e,i){return i=o.defaultValue(i,0),e[i++]=t._length,e[i++]=t._topRadius,e[i++]=t._bottomRadius,e[i++]=t._slices,e[i++]=t._numberOfVerticalLines,e[i]=o.defaultValue(t._offsetAttribute,-1),e};var p={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return c.unpack=function(t,e,i){e=o.defaultValue(e,0);var r=t[e++],a=t[e++],n=t[e++],u=t[e++],s=t[e++],f=t[e];return o.defined(i)?(i._length=r,i._topRadius=a,i._bottomRadius=n,i._slices=u,i._numberOfVerticalLines=s,i._offsetAttribute=-1===f?void 0:f,i):(p.length=r,p.topRadius=a,p.bottomRadius=n,p.slices=u,p.numberOfVerticalLines=s,p.offsetAttribute=-1===f?void 0:f,new c(p))},c.createGeometry=function(r){var d=r._length,b=r._topRadius,l=r._bottomRadius,c=r._slices,p=r._numberOfVerticalLines;if(!(d<=0||b<0||l<0||0===b&&0===l)){var y,_=2*c,h=n.CylinderGeometryLibrary.computePositions(d,b,l,c,!1),v=2*c;if(p>0){var A=Math.min(p,c);y=Math.round(c/A),v+=A}var R,G=f.IndexDatatype.createTypedArray(_,2*v),O=0;for(R=0;R0)for(R=0;R