/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/_rollupPluginBabelHelpers","../../geometry/projection","../../geometry/SpatialReference","../../geometry/support/webMercatorUtils"],(function(e,t,r,n,o){"use strict";function i(e){return c.apply(this,arguments)}function c(){return(c=t._asyncToGenerator((function*(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return o.webMercatorToGeographic(e);const i=n.WGS84;return yield r.initializeProjection(t,i),r.project(e,i)}))).apply(this,arguments)}function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){var r;return!(null==(r=e.typeKeywords)||!r.includes(t))}function l(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e){return u.apply(this,arguments)}function u(){return(u=t._asyncToGenerator((function*(e){const t=e.clone().normalize();let r;if(t.length>1)for(const n of t)r?n.width>r.width&&(r=n):r=n;else r=t[0];return i(r)}))).apply(this,arguments)}const y={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table"};e.TypeKeyword=y,e.addTypeKeyword=s,e.getWGS84ExtentForItem=p,e.hasTypeKeyword=a,e.removeTypeKeyword=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
