(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{432:function(e,r,t){"use strict";t.r(r);var o=t(3),n=t(49),s=t(14),i=t(103),a=t(46),c=t(94),l=t(88),u=t(175),h="https://api.mapbox.com";function p(e){var r="mapbox://";return 0!==e.indexOf(r)?"":e.slice(r.length)}var f=function(e){function r(r){e.call(this,s.a.ERROR),this.error=r}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r}(n.a),d="vector",y=function(e){function r(r){var t=!("declutter"in r)||r.declutter,o=new l.a({state:a.a.LOADING,format:new i.a});e.call(this,{source:o,declutter:t,className:r.className,opacity:r.opacity,visible:r.visible,zIndex:r.zIndex,minResolution:r.minResolution,maxResolution:r.maxResolution,minZoom:r.minZoom,maxZoom:r.maxZoom,renderOrder:r.renderOrder,renderBuffer:r.renderBuffer,renderMode:r.renderMode,map:r.map,updateWhileAnimating:r.updateWhileAnimating,updateWhileInteracting:r.updateWhileInteracting,preload:r.preload,useInterimTilesOnError:r.useInterimTilesOnError}),this.sourceId=r.source,this.layers=r.layers,this.accessToken=r.accessToken,this.fetchStyle(r.styleUrl)}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.fetchStyle=function(e){var r=this,t=function(e,r){var t=p(e);if(!t)return e;var o="styles/";if(0!==t.indexOf(o))throw new Error("unexpected style url: "+e);var n=t.slice(o.length);return h+"/styles/v1/"+n+"?&access_token="+r}(e,this.accessToken);fetch(t).then((function(e){if(!e.ok)throw new Error("unexpected response when fetching style: "+e.status);return e.json()})).then((function(e){r.onStyleLoad(e)})).catch((function(e){r.handleError(e)}))},r.prototype.onStyleLoad=function(e){var r,t,o=this;if(this.layers){for(var n,s={},i=0;i