define(["./when-229515d6","./Matrix2-f0fc6cd3","./ArcType-e1641d8d","./arrayRemoveDuplicates-7cd4e18c","./Transforms-4a1d2c0e","./Color-f48e883d","./ComponentDatatype-5f63ec93","./RuntimeError-8f3d96ee","./GeometryAttribute-4b6dfc85","./GeometryAttributes-b253752a","./IndexDatatype-c2b69fc2","./PolylinePipeline-8d9de722","./VertexFormat-af764a6f","./combine-6d9c3903","./WebGLConstants-f63312fc","./EllipsoidGeodesic-412b0c43","./EllipsoidRhumbLine-0893952b","./IntersectionTests-3a1d2826","./Plane-863ea815"],(function(e,t,o,n,r,a,i,l,s,c,p,d,u,y,m,f,h,C,g){"use strict";const _=[];function A(e,t,o,n,r){const i=_;let l;i.length=r;const s=o.red,c=o.green,p=o.blue,d=o.alpha,u=n.red,y=n.green,m=n.blue,f=n.alpha;if(a.Color.equals(o,n)){for(l=0;l0?new Array(l):void 0;for(i=0;i0){let e=0,t=w[0];m=m.filter((function(o,n){let r=!1;return r=f?n===t||0===n&&1===t:n+1===t,!r||(e++,t=w[e],!1)}))}let V=v.length;if(V<2||u<=0)return;if(h===o.ArcType.GEODESIC||h===o.ArcType.RHUMB){let t,n;h===o.ArcType.GEODESIC?(t=i.CesiumMath.chordLength(C,g.maximumRadius),n=d.PolylinePipeline.numberOfPoints):(t=C,n=d.PolylinePipeline.numberOfPointsRhumbLine);const r=d.PolylinePipeline.extractHeights(v,g);if(e.defined(m)){let e=1;for(E=0;E