/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../chunks/vec2"],(function(e,t){"use strict";function n(e,t){const n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function i(e,t){const n=e.length===t.length&&e[0]===t[0]&&e[1]===t[1];switch(e.length){case 2:return n;case 3:return n&&e[2]===t[2];case 4:return n&&e[3]===t[3]}return!1}function r(e,n){n.sort(((n,i)=>t.squaredDistance(n.targetPoint,e)-t.squaredDistance(i.targetPoint,e)))}var E;e.LineSegmentHintType=void 0,(E=e.LineSegmentHintType||(e.LineSegmentHintType={}))[E.TARGET=0]="TARGET",E[E.REFERENCE=1]="REFERENCE",E[E.REFERENCE_EXTENSION=2]="REFERENCE_EXTENSION",e.objectEqual=i,e.sortCandidatesInPlace=r,e.squareDistance=n,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
