// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/conversion/ConversionUtil",["dojo/_base/lang","esri/dijit/geoenrichment/utils/PageUnitsConverter","esri/dijit/geoenrichment/utils/ColorUtil"],function(m,n,p){var a={};m.mixin(a,n);var f={"font-size":"fontSize","font-family":"fontFamily","font-style":"fontStyle","font-weight":"fontWeight","text-decoration":"textDecoration",color:"color","background-color":"backgroundColor"},h={},g;for(g in f)h[f[g]]=g;a.splitTrim=function(b,d,a){b=String(b).split(d).map(function(b){return b.trim()});
return a?b.filter(function(b){return!!b}):b};a.parseStyleString=function(b){var d={};a.splitTrim(b||"",";",!0).forEach(function(b){var c=a.splitTrim(b,":");if(b=f[c[0]])c=c[1],"rgba(0, 0, 0, 0)"===c&&(c="transparent"),d[b]=c});return d};a.composeStyleString=function(b){var d="",a;for(a in b){var c=h[a];if(c){var e=b[a];e&&("backgroundColor"===a&&(e=p.toCSSColor(e)),d+=c+":"+e+";")}}return d};a.removeZeroProperties=function(b){Object.keys(b).forEach(function(a){0===Number(b[a])&&delete b[a]});return b};
var k={valign:{center:"middle"}},l={valign:{middle:"center"}};a.getPropValuePtoE=function(b,a){return k[b]&&k[b][a]||a};a.getPropValueEtoP=function(b,a){return l[b]&&l[b][a]||a};a.KEY_OPERATOR_RE=/^(!=|>=|<=|<|>|=)/;a.ONE_FIELD_KEY_TEST=/^(default|(<|>|<=|>=|!=|=|)(\d+\.\d+|\d+))$/;a.KEY_INTERVAL_SEPARATOR=";";return a});