text: // All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  // See https://js.arcgis.com/3.38/esri/copyright.txt for details.
  //>>built
  define("esri/dijit/geoenrichment/utils/PortalQueryUtil",[],function(){var d={combineQueryString:function(a){var b="";a.type&&(b+='type:"'+a.type+'"');a.typeKeywords?b=Array.isArray(a.typeKeywords[0])?b+(" typekeywords:("+a.typeKeywords.map(function(c){return d.combineTypeKeywords(c)}).join(" OR ")+")"):b+(" typekeywords:"+d.combineTypeKeywords(a.typeKeywords,a.typeKeywordsNot)):a.typeKeywordsNot&&(b+=" typekeywords:"+d.combineTypeKeywords(null,a.typeKeywordsNot));a.owner&&(b+=" owner:"+a.owner);a.isShared&&
  (b+=a.orgId?" ((orgid:"+a.orgId+' AND access:"public") OR access:"shared" OR access:"org")':' (access:"shared" OR access:"org")');a.ownerNot&&(b+=" NOT owner:"+a.ownerNot);return b},combineTypeKeywords:function(a,b){a=a?d._combineArray(a):"";return b?(b=d._combineArray(b," OR "),"("+a+" NOT "+b+")"):a},_combineArray:function(a,b){var c="string"===typeof a?a:1===a.length?a[0]:null;return c?"("===c.charAt(0)||'"'===c.charAt(0)?c:'"'+c+'"':"("+a.map(function(e){return'"'+e+'"'}).join(b||" ")+")"}};return d});