define(["./when-229515d6","./Matrix2-f0fc6cd3","./ArcType-e1641d8d","./Transforms-4a1d2c0e","./Color-f48e883d","./ComponentDatatype-5f63ec93","./RuntimeError-8f3d96ee","./GeometryAttribute-4b6dfc85","./GeometryAttributes-b253752a","./IndexDatatype-c2b69fc2","./PolylinePipeline-8d9de722","./combine-6d9c3903","./WebGLConstants-f63312fc","./EllipsoidGeodesic-412b0c43","./EllipsoidRhumbLine-0893952b","./IntersectionTests-3a1d2826","./Plane-863ea815"],(function(e,o,t,l,r,n,i,a,s,c,p,d,f,y,u,h,C){"use strict";function T(e,o,t,l,n,i,a){const s=p.PolylinePipeline.numberOfPoints(e,o,n);let c;const d=t.red,f=t.green,y=t.blue,u=t.alpha,h=l.red,C=l.green,T=l.blue,g=l.alpha;if(r.Color.equals(t,l)){for(c=0;c0?new Array(a):void 0;for(i=0;i0&&(o.Cartesian3.pack(n,E,t),t+=3,w=f[B-1],G[l++]=r.Color.floatToByte(w.red),G[l++]=r.Color.floatToByte(w.green),G[l++]=r.Color.floatToByte(w.blue),G[l++]=r.Color.floatToByte(w.alpha)),b&&B===A-1)break;o.Cartesian3.pack(n,E,t),t+=3,e.defined(f)&&(w=f[B],G[l++]=r.Color.floatToByte(w.red),G[l++]=r.Color.floatToByte(w.green),G[l++]=r.Color.floatToByte(w.blue),G[l++]=r.Color.floatToByte(w.alpha))}}const L=new s.GeometryAttributes;L.position=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:E}),e.defined(f)&&(L.color=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:G,normalize:!0})),k=E.length/3;const V=2*(k-1),x=c.IndexDatatype.createTypedArray(k,V);let S=0;for(B=0;B