/*
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(e){"use strict";const a=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,t={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function s(e){const s=null==e?void 0:e.match(a);if(!s)return null;const[,o,r,l]=s;if(!o)return null;let c=null,n=null,m=null;const{devext:u,qaext:i,www:p}=t;if(r)if(c=o,l)switch(l.toLowerCase()){case"devext":({customBaseUrl:n,portalHostname:m}=u);break;case"qa":({customBaseUrl:n,portalHostname:m}=i);break;default:return null}else({customBaseUrl:n,portalHostname:m}=p);else switch(o.toLowerCase()){case"devext":({customBaseUrl:n,portalHostname:m}=u);break;case"qaext":({customBaseUrl:n,portalHostname:m}=i);break;case"www":({customBaseUrl:n,portalHostname:m}=p);break;default:return null}return{customBaseUrl:n,isPortal:!1,portalHostname:m,urlKey:c}}e.parseKnownArcGISOnlineDomain=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
