define(["./when-b60132fc","./Cartesian2-47311507","./ArcType-29cf2197","./buildModuleUrl-8958744c","./Cartographic-3309dd0d","./Color-2a095a27","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-06a41648","./GeometryAttributes-252e9929","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolylinePipeline-3454449c","./FeatureDetection-806b12f0","./Event-16a2dfbf","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Cartesian4-3ca25aab","./EllipsoidGeodesic-0f19ac62","./EllipsoidRhumbLine-ed1a6bf4","./IntersectionTests-a793ed08","./Plane-a3d8b3d2"],(function(e,o,r,t,a,l,i,n,s,p,d,c,y,u,f,h,C,g,T,m,v,b){"use strict";function P(e,o,r,t,a,i,n){var s,p=y.PolylinePipeline.numberOfPoints(e,o,a),d=r.red,c=r.green,u=r.blue,f=r.alpha,h=t.red,C=t.green,g=t.blue,T=t.alpha;if(l.Color.equals(r,t)){for(s=0;s
0?new Array(s):void 0;for(n=0;n0&&(a.Cartesian3.pack(q,f,W),W+=3,g=m[n-1],C[Y++]=l.Color.floatToByte(g.red),C[Y++]=l.Color.floatToByte(g.green),C[Y++]=l.Color.floatToByte(g.blue),C[Y++]=l.Color.floatToByte(g.alpha)),G&&n===w-1)break;a.Cartesian3.pack(q,f,W),W+=3,e.defined(m)&&(g=m[n],C[Y++]=l.Color.floatToByte(g.red),C[Y++]=l.Color.floatToByte(g.green),C[Y++]=l.Color.floatToByte(g.blue),C[Y++]=l.Color.floatToByte(g.alpha))}}var z=new p.GeometryAttributes;z.position=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:f}),e.defined(m)&&(z.color=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:C,normalize:!0}));var J=2*((h=f.length/3)-1),j=d.IndexDatatype.createTypedArray(h,J),K=0;for(n=0;n