/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__addDisposableResource as e,__disposeResources as r}from"tslib";import{a as t,c as o}from"./Geometry.js";import{G as a,m as s}from"./GeodeticDistanceCalculator-Ce-woMPw.js";class u{getOperatorType(){return 10316}supportsCurves(){return!0}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}execute(e,r,t,o,a){return this.executeEx(e,r,t,o,a,null,null,Number.NaN)}executeEx(u,n,c,i,m,l,p,y){const N={stack:[],error:void 0,hasError:!1};try{if(0===c.getCoordinateSystemType()&&t(""),o(u),o(n),u.isEmpty()||n.isEmpty())return Number.NaN;Number.isNaN(y)&&(y=Number.MAX_VALUE);const r=e(N,new a(c,i,m,y,1),!1),E=s(),x=s(),b=r.calculate(u,n,E,x);return l&&l.outPoint.assign(E.outPoint),p&&p.outPoint.assign(x.outPoint),b}catch(E){N.error=E,N.hasError=!0}finally{r(N)}}}export{u as OperatorGeodeticDistance,s as makeOutput};
