(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a33b6"],{"00ff":function(e,t,o){"use strict";o.r(t),o.d(t,"default",(function(){return E}));var r=o("a4ee"),i=o("1325"),a=o("2eab"),l=(o("1fd7"),o("b2b2")),s=o("e694"),n=o("f4cc"),c=o("e041"),b=o("59b2"),y=(o("b50f"),o("c120"),o("cea0"),o("afcf")),p=o("d386"),u=o("3af1"),d=o("7f83"),h=o("a6a3"),j=o("997b"),O=o("b911"),f=o("0db5"),v=o("8e17"),S=o("5a62"),m=o("22f4"),g=o("0d93"),w=o("db52"),C=o("37e7"),k=o("4dc9"),G=o("0d76");const P=["atom","xml"],_={base:g["a"],key:"type",typeMap:{"simple-line":w["a"]},errorContext:"symbol"},x={base:g["a"],key:"type",typeMap:{"picture-marker":C["a"],"simple-marker":k["a"]},errorContext:"symbol"},R={base:g["a"],key:"type",typeMap:{"simple-fill":G["a"]},errorContext:"symbol"};let F=class extends(Object(j["a"])(Object(v["a"])(Object(O["a"])(Object(f["a"])(Object(S["a"])(Object(s["a"])(h["a"]))))))){constructor(...e){super(...e),this.description=null,this.fullExtent=null,this.legendEnabled=!0,this.lineSymbol=null,this.pointSymbol=null,this.polygonSymbol=null,this.operationalLayerType="GeoRSS",this.url=null,this.type="geo-rss"}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readFeatureCollections(e,t){return t.featureCollection.layers.forEach(e=>{var t;const o=e.layerDefinition.drawingInfo.renderer.symbol;o&&"esriSFS"===o.type&&null!=(t=o.outline)&&t.style.includes("esriSFS")&&(o.outline.style="esriSLSSolid")}),t.featureCollection.layers}get hasPoints(){return this._hasGeometry("esriGeometryPoint")}get hasPolylines(){return this._hasGeometry("esriGeometryPolyline")}get hasPolygons(){return this._hasGeometry("esriGeometryPolygon")}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?Object(c["m"])(this.url,P)||"GeoRSS":e||""}set title(e){this._set("title",e)}load(e){const t=Object(l["k"])(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service","Feature Service","Feature Collection","Scene Service"]},e).catch(n["u"]).then(()=>this._fetchService(t)).then(e=>{this.read(e,{origin:"service"})})),Promise.resolve(this)}async hasDataChanged(){const e=await this._fetchService();return this.read(e,{origin:"service",ignoreDefaults:!0}),!0}async _fetchService(e){var t;const o=this.spatialReference,{data:r}=await Object(a["default"])(i["a"].geoRSSServiceUrl,{query:{url:this.url,refresh:!!this.loaded||void 0,outSR:Object(d["m"])(o)?void 0:null!=(t=o.wkid)?t:JSON.stringify(o)},signal:e});return r}_hasGeometry(e){var t,o;return null!=(t=null==(o=this.featureCollections)?void 0:o.some(t=>{var o,r;return(null==(o=t.featureSet)?void 0:o.geometryType)===e&&(null==(r=t.featureSet.features)?void 0:r.length)>0}))&&t}};Object(r["a"])([Object(b["b"])()],F.prototype,"description",void 0),Object(r["a"])([Object(b["b"])()],F.prototype,"featureCollections",void 0),Object(r["a"])([Object(y["a"])("service","featureCollections",["featureCollection.layers"])],F.prototype,"readFeatureCollections",null),Object(r["a"])([Object(b["b"])({type:u["a"],json:{name:"lookAtExtent"}})],F.prototype,"fullExtent",void 0),Object(r["a"])([Object(b["b"])(m["c"])],F.prototype,"id",void 0),Object(r["a"])([Object(b["b"])(m["e"])],F.prototype,"legendEnabled",void 0),Object(r["a"])([Object(b["b"])({types:_,json:{write:!0}})],F.prototype,"lineSymbol",void 0),Object(r["a"])([Object(b["b"])({type:["show","hide"]})],F.prototype,"listMode",void 0),Object(r["a"])([Object(b["b"])({types:x,json:{write:!0}})],F.prototype,"pointSymbol",void 0),Object(r["a"])([Object(b["b"])({types:R,json:{write:!0}})],F.prototype,"polygonSymbol",void 0),Object(r["a"])([Object(b["b"])({type:["GeoRSS"]})],F.prototype,"operationalLayerType",void 0),Object(r["a"])([Object(b["b"])(m["n"])],F.prototype,"url",void 0),Object(r["a"])([Object(b["b"])({json:{origins:{service:{read:{source:"name",reader:e=>e||void 0}}}}})],F.prototype,"title",null),Object(r["a"])([Object(b["b"])({readOnly:!0,json:{read:!1},value:"geo-rss"})],F.prototype,"type",void 0),F=Object(r["a"])([Object(p["a"])("esri.layers.GeoRSSLayer")],F);const E=F}}]); //# sourceMappingURL=chunk-2d0a33b6.3a321513.js.map