/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{isSome as e}from"../../../core/arrayUtils.js";import{execute as r,executeMany as t}from"../gx/operatorIntersection.js";import{fromGeometry as o,toGeometry as n,fromGeometryToGXGeometry as s,fromGeometries as a}from"../support/jsonConverter.js";function c(e,t){const a=o(e),c=a.getSpatialReference();return n(r(a.getGeometry(),s(t),c),c)}function i(r,o){const[c,i]=a(r);return t(c,s(o),i,7).map(e=>n(e,i)).filter(e)}export{c as execute,i as executeMany};
