define(["exports","./arrayRemoveDuplicates-cea3b206","./Cartesian3-e0307675","./Cartesian2-bd414876","./defaultValue-81eec7ed","./Math-e73894ab","./PolylinePipeline-0e56eeb9"],(function(e,t,i,n,o,r,a){"use strict";const s={};function l(e,t){return r.CesiumMath.equalsEpsilon(e.latitude,t.latitude,r.CesiumMath.EPSILON10)&&r.CesiumMath.equalsEpsilon(e.longitude,t.longitude,r.CesiumMath.EPSILON10)}const h=new n.Cartographic,c=new n.Cartographic;const g=new Array(2),u=new Array(2),p={positions:void 0,height:void 0,granularity:void 0,ellipsoid:void 0};s.computePositions=function(e,s,d,y,m,P){const f=function(e,r,a,s){const g=(r=t.arrayRemoveDuplicates(r,i.Cartesian3.equalsEpsilon)).length;if(g<2)return;const u=o.defined(s),p=o.defined(a),d=new Array(g),y=new Array(g),m=new Array(g),P=r[0];d[0]=P;const f=e.cartesianToCartographic(P,h);p&&(f.height=a[0]),y[0]=f.height,m[0]=u?s[0]:0;let C=y[0]===m[0],A=1;for(let t=1;t