/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./maybe","./unitUtils"],(function(t,e,n){"use strict";function u(t,e){return{type:n.unitType(e),value:t,unit:e}}function i(t,e){return{type:n.unitType(e),value:t,unit:e}}function r(t,e){return{type:n.unitType(e),value:t,unit:e}}function o(t,e){return{type:n.unitType(e),value:t,unit:e}}function a(t,e,u="arithmetic"){return{type:n.unitType(e),value:t,unit:e,rotationType:u}}function c(t){return n.isBaseUnit(t.unit)}function s(t,e){return u(n.convertUnit(t.value,t.unit,e),e)}function l(t){return s(t,n.baseUnitForUnit(t.unit))}function v(t,u){return e.isNone(t)?u:e.isNone(u)||t.value>n.convertUnit(u.value,u.unit,t.unit)?t:u}function y(t,u){return e.isNone(t)?u:e.isNone(u)||t.value<n.convertUnit(u.value,u.unit,t.unit)?t:u}const f=i(0,"meters");t.createAngle=a,t.createArea=r,t.createLength=i,t.createQuantity=u,t.createVolume=o,t.isBaseUnit=c,t.max=v,t.min=y,t.toBaseUnit=l,t.toUnit=s,t.zeroMeters=f,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
