/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{S as e,G as r}from"./SimpleGeometryCursor.js";import{d as t,a as s,c as i}from"./Geometry.js";import{s as n,t as m}from"./SpatialReference.js";class o{getOperatorType(){return 10104}accelerateGeometry(e,r,t){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,r,t,s,i){return 5===n(e,r,t,s,i)}executeMany(e,r,t,s){return new u(e,r,t,s)}execute(r,s,i,n){const m=new e([r]),o=this.executeMany(m,s,i,n).next();return o||t("null output"),o}}class u extends r{constructor(e,r,t,i){super(),e||s(""),this.m_progressTracker=i,this.m_bForceSimplify=t,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=r}next(){const e=this.m_inputGeometryCursor.next();return e?(i(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){e||s("");return m(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}export{o as O};
