/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{supportsCurves as o,executeMany as r}from"./gx/operatorPolygonOverlay.js";import{getSpatialReference as s,fromSpatialReference as t,fromPolygon as e,toPolygon as p}from"./support/apiConverter.js";function a(o,a){const{overlaps:n=!0,noOverlaps:u=!0,gaps:l,holes:m,multiPart:i}=a??{};let c=0;n&&(c|=1),u&&(c|=2),l&&(c|=4),m&&(c|=8),i&&(c|=16);const v=s(o),f=r(o.map(e),t(v),c),g=[],x=[];let y;for(;y=f.next();)g.push(p(y,v)),x.push(f.getGeometryIDs());return{results:g,ids:x}}const n=o();export{a as executeMany,n as supportsCurves};
