/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{isSome as e}from"../core/arrayUtils.js";import{convertToSpatialReferenceUnit as r}from"../core/units.js";import{supportsCurves as t,execute as o,executeMany as s}from"../geometry/operators/gx/operatorGeneralize.js";import{getSpatialReference as a,toGeometry as n,fromGeometry as p}from"../geometry/operators/support/apiConverter.js";function u(e,t,s={}){const{removeDegenerateParts:u=!1,unit:i}=s,m=a(e);return i&&(t=r(t,i,m)),n(o(p(e),t,u),m)}function i(t,o,u={}){const{removeDegenerateParts:i=!1,unit:m}=u,c=t.map(p),f=a(t);return m&&(o=r(o,m,f)),s(c,o,i).map(e=>n(e,f)).filter(e)}const m=t(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:u,executeMany:i,supportsCurves:m},Symbol.toStringTag,{value:"Module"}));export{i as a,u as e,c as g,m as s};
