/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","./CloudyWeather","./FoggyWeather","./RainyWeather","./SnowyWeather","./SunnyWeather"],(function(e,t,r,o,n,a){"use strict";const i={key:"type",base:a,typeMap:{sunny:a,cloudy:t,rainy:o,snowy:n,foggy:r}},y=Object.keys(i.typeMap);function u(e,t){return!!y.includes(e)||(t.error(`"${e}" is not a valid weather type`),!1)}const c=1e4;function s(e,t){if(e.type!==t.type)return!1;switch(e.type){case"sunny":case"cloudy":return e.cloudCover===t.cloudCover;case"rainy":return e.cloudCover===t.cloudCover&&e.precipitation===t.precipitation;case"snowy":return e.cloudCover===t.cloudCover&&e.precipitation===t.precipitation&&e.snowCover===t.snowCover;case"foggy":return e.fogStrength===t.fogStrength}}e.validateWeatherType=u,e.weatherEquals=s,e.weatherHeightLimit=c,e.weatherTypes=i,e.weatherTypesArray=y,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
