/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports"],(function(t){"use strict";const i={convertToGEGeometry:e,exportPoint:s,exportPolygon:h,exportPolyline:r,exportMultipoint:u,exportExtent:x};function e(t,i){return null==i?null:t.convertJSONToGeometry(i)}let n=function(t,i,e){this.x=t,this.y=i,this.spatialReference=e,this.z=void 0,this.m=void 0};function s(t,i,e){const s=new n(t.getPointX(i),t.getPointY(i),e),o=t.hasZ(i),h=t.hasM(i);return o&&(s.z=t.getPointZ(i)),h&&(s.m=t.getPointM(i)),s}let o=function(t,i,e,n){this.rings=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};function h(t,i,e){return new o(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))}let a=function(t,i,e,n){this.paths=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};function r(t,i,e){return new a(t.exportPaths(i),e,t.hasZ(i),t.hasM(i))}let c=function(t,i,e,n){this.points=t,this.spatialReference=i,this.hasZ=void 0,this.hasM=void 0,e&&(this.hasZ=e),n&&(this.hasM=n)};function u(t,i,e){return new c(t.exportPoints(i),e,t.hasZ(i),t.hasM(i))}let m=function(t,i,e,n,s){this.xmin=t,this.ymin=i,this.xmax=e,this.ymax=n,this.spatialReference=s,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0};function x(t,i,e){const n=t.hasZ(i),s=t.hasM(i),o=new m(t.getXMin(i),t.getYMin(i),t.getXMax(i),t.getYMax(i),e);if(n){const e=t.getZExtent(i);o.zmin=e.vmin,o.zmax=e.vmax}if(s){const e=t.getMExtent(i);o.mmin=e.vmin,o.mmax=e.vmax}return o}t.jsonAdapter=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
