define(["exports","./Check-6c0211bc","./when-54c2dc71","./Math-44e92d6b"],function(e,t,a,r){"use strict";var h=r.CesiumMath.EPSILON10;e.arrayRemoveDuplicates=function(e,t,r){if(a.defined(e)){r=a.defaultValue(r,!1);var n,i,c,f=e.length;if(f<2)return e;for(n=1;n<f&&!t(i=e[n-1],c=e[n],h);++n);if(n===f)return r&&t(e[0],e[e.length-1],h)?e.slice(1):e;for(var u=e.slice(0,n);n<f;++n)t(i,c=e[n],h)||(u.push(c),i=c);return r&&1<u.length&&t(u[0],u[u.length-1],h)&&u.shift(),u}}});
