/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{createArea as o}from"../../core/quantity.js";import r from"../../geometry/Polygon.js";import{l as t,e}from"../../chunks/geodeticAreaOperator.js";async function n({polygon:n,options:s}){await t();const i=r.fromJSON(n),a=s?.unit??"square-meters",m={unit:a,...s},p=e(i,m);return o(p,a)}export{n as geodesicArea};
