{"version":3,"file":"app-bundle.js","sources":["webpack:///app-bundle.js"],"sourcesContent":["/*! For license information please see app-bundle.js.LICENSE */\n!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,\"a\",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p=\"/\",t(t.s=514)}([function(e,t,n){\"use strict\";e.exports=n(718)},function(e,t,n){\"use strict\";var r={ASSUME_TOUCH:!1,DEFAULT_MAX_ZOOM:42,DEFAULT_MIN_ZOOM:0,DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD:.5,DEFAULT_TILE_SIZE:256,DEFAULT_WMS_VERSION:\"1.3.0\",ENABLE_CANVAS:!0,ENABLE_PROJ4JS:!0,ENABLE_RASTER_REPROJECTION:!0,ENABLE_WEBGL:!0,DEBUG_WEBGL:!0,INITIAL_ATLAS_SIZE:256,MAX_ATLAS_SIZE:-1,MOUSEWHEELZOOM_MAXDELTA:1,OVERVIEWMAP_MAX_RATIO:.75,OVERVIEWMAP_MIN_RATIO:.1,RASTER_REPROJECTION_MAX_SOURCE_TILES:100,RASTER_REPROJECTION_MAX_SUBDIVISION:10,RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH:.25,SIMPLIFY_TOLERANCE:.5,WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK:1024,VERSION:\"v4.6.5\"};r.WEBGL_MAX_TEXTURE_SIZE,r.WEBGL_EXTENSIONS,r.inherits=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},r.nullFunction=function(){},r.getUid=function(e){return e.ol_uid||(e.ol_uid=++r.uidCounter_)},r.uidCounter_=0,t.a=r},function(e,t,n){e.exports=n(723)()},function(e,t,n){var r=n(11),i=n(55),o=n(42),a=n(43),s=n(56),l=function(e,t,n){var u,c,f,h,d=e&l.F,p=e&l.G,g=e&l.S,m=e&l.P,y=e&l.B,v=p?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,_=p?i:i[t]||(i[t]={}),b=_.prototype||(_.prototype={});for(u in p&&(n=t),n)f=((c=!d&&v&&void 0!==v[u])?v:n)[u],h=y&&c?s(f,r):m&&\"function\"==typeof f?s(Function.call,f):f,v&&a(v,u,f,e&l.U),_[u]!=f&&o(_,u,h),m&&b[u]!=f&&(b[u]=f)};r.core=i,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(25),i=n(415),o=n(416),a={boundingExtent:function(e){for(var t=a.createEmpty(),n=0,r=e.length;ni&&(u|=o.a.RIGHT),la&&(u|=o.a.ABOVE),u===o.a.UNKNOWN&&(u=o.a.INTERSECTING),u},createEmpty:function(){return[1/0,1/0,-1/0,-1/0]},createOrUpdate:function(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]},createOrUpdateEmpty:function(e){return a.createOrUpdate(1/0,1/0,-1/0,-1/0,e)},createOrUpdateFromCoordinate:function(e,t){var n=e[0],r=e[1];return a.createOrUpdate(n,r,n,r,t)},createOrUpdateFromCoordinates:function(e,t){var n=a.createOrUpdateEmpty(t);return a.extendCoordinates(n,e)},createOrUpdateFromFlatCoordinates:function(e,t,n,r,i){var o=a.createOrUpdateEmpty(i);return a.extendFlatCoordinates(o,e,t,n,r)},createOrUpdateFromRings:function(e,t){var n=a.createOrUpdateEmpty(t);return a.extendRings(n,e)},equals:function(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]},extend:function(e,t){return t[0]e[2]&&(e[2]=t[2]),t[1]e[3]&&(e[3]=t[3]),e},extendCoordinate:function(e,t){t[0]e[2]&&(e[2]=t[0]),t[1]e[3]&&(e[3]=t[1])},extendCoordinates:function(e,t){var n,r;for(n=0,r=t.length;nt[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]=t[0]&&e[1]<=t[3]&&e[3]>=t[1]},isEmpty:function(e){return e[2]=c&&l<=h),r||!(s&o.a.RIGHT)||i&o.a.RIGHT||(r=(u=y-(m-h)*v)>=f&&u<=d),r||!(s&o.a.BELOW)||i&o.a.BELOW||(r=(l=m-(y-f)/v)>=c&&l<=h),r||!(s&o.a.LEFT)||i&o.a.LEFT||(r=(u=y-(m-c)*v)>=f&&u<=d)}return r},applyTransform:function(e,t,n){var r=[e[0],e[1],e[0],e[3],e[2],e[1],e[2],e[3]];t(r,r,2);var i=[r[0],r[2],r[4],r[6]],o=[r[1],r[3],r[5],r[7]];return a.boundingExtentXYs_(i,o,n)}};t.default=a},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(722),i=n(369),o=n(729);n.d(t,\"Provider\",function(){return r.b}),n.d(t,\"createProvider\",function(){return r.a}),n.d(t,\"connectAdvanced\",function(){return i.a}),n.d(t,\"connect\",function(){return o.a})},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(783));r.setLevel(\"error\"),r.disableAll(),t.default=r},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var i=r(n(1108)),o=r(n(1110)),a=r(n(1130)),s=r(n(1131)),l=r(n(1132)),u=r(n(1133));t.hover=s.default,t.handleHover=s.default,t.handleActive=l.default,t.loop=u.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r>1)],t))<0?s=i+1:(l=i,u=!o);return u?s:~s},numberSafeCompareFunction:function(e,t){return e>t?1:e=0},linearFindNearest:function(e,t,n){var r,i=e.length;if(e[0]<=t)return 0;if(t<=e[i-1])return i-1;if(n>0){for(r=1;r-1;return r&&e.splice(n,1),r},find:function(e,t){for(var n,r=e.length>>>0,i=0;i0||n&&0===o)})}};t.a=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){\"use strict\";t.a={CHANGE:\"change\",CLEAR:\"clear\",CLICK:\"click\",DBLCLICK:\"dblclick\",DRAGENTER:\"dragenter\",DRAGOVER:\"dragover\",DROP:\"drop\",ERROR:\"error\",KEYDOWN:\"keydown\",KEYPRESS:\"keypress\",LOAD:\"load\",MOUSEDOWN:\"mousedown\",MOUSEMOVE:\"mousemove\",MOUSEOUT:\"mouseout\",MOUSEUP:\"mouseup\",MOUSEWHEEL:\"mousewheel\",MSPOINTERDOWN:\"MSPointerDown\",RESIZE:\"resize\",TOUCHSTART:\"touchstart\",TOUCHMOVE:\"touchmove\",TOUCHEND:\"touchend\",WHEEL:\"wheel\"}},function(e,t){e.exports=function(e){return\"object\"==typeof e?null!==e:\"function\"==typeof e}},function(e,t,n){\"use strict\";var r=n(25),i={clamp:function(e,t,n){return Math.min(Math.max(e,t),n)}};i.cosh=\"cosh\"in Math?Math.cosh:function(e){var t=Math.exp(e);return(t+1/t)/2},i.roundUpToPowerOfTwo=function(e){return r.a.assert(01?(n=o,r=a):u>0&&(n+=s*u,r+=l*u)}return i.squaredDistance(e,t,n,r)},i.squaredDistance=function(e,t,n,r){var i=n-e,o=r-t;return i*i+o*o},i.solveLinearSystem=function(e){for(var t=e.length,n=0;ni&&(i=a,r=o)}if(0===i)return null;var s=e[r];e[r]=e[n],e[n]=s;for(var l=n+1;l=0;h--){f[h]=e[h][t]/e[h][h];for(var d=h-1;d>=0;d--)e[d][t]-=e[d][h]*f[h]}return f},i.toDegrees=function(e){return 180*e/Math.PI},i.toRadians=function(e){return e*Math.PI/180},i.modulo=function(e,t){var n=e%t;return n*t<0?n+t:n},i.lerp=function(e,t,n){return e+n*(t-e)},t.a=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,l=void 0,u=void 0,c=void 0,f=void 0,h=void 0,d=void 0,p=!1,g=void 0,m=void 0,y=void 0,v=void 0,_=void 0,b=void 0;m=\"https://data-stg.epa.ie\",v=\"https://wfdapi-stg.edenireland.ie\",y=(h=\"https://gis-stg.epa.ie\")+\"/geoserver/wfs\",g=\"AvT67khSt1k6mvlgDAh9OXWJhzYbv4IwW-RxYl5kSEVBj3hanOdG55IzWsIj6Gr3\",_=\"https://gis-stg.epa.ie/printservice\",b=\"https://gis-stg.epa.ie/print/print\",o=\"\",a=h+\"/EsriProxy/proxy.ashx?\",d=\"-1JaZiR7olrMQVrg6G-3Vh7fXdX6aRmijQunYve2jTU4h7ivVRP_yRQGK1XTIHoN\",p=!0,r=h+\"/geoserver/wms\",i=h+\"/geoserver/gwc/service/wmts\",y=h+\"/geoserver/wfs\",l=h+\"/\"+(c=\"EPAMaps\")+\"/wms.xml\",u=h+\"/\"+c+\"/wmts.xml\",s=!0,f=h+\"/\"+c+\"_Help/index.htm\",t.APP_BASE_URL=\"\"+h,t.APP_HELP_PAGE=f,t.MAP_APP_NAME=c,t.MAP_PROXY=o,t.MAP_PROXY_DIGI=a,t.WMS_SERVER_URL=r,t.WMT_S_SERVER_URL=i,t.WFS_SERVER_URL=y,t.STATIC_CAPABILITIES_FILE=l,t.STATIC_WMTS_CAPABILITIES_FILE=u,t.CORS_PROXY_REQUIRED=s,t.DIGI_TOKEN=d,t.AATOOL_WEB_SERVICE_URL=h+\"/EpaLemaAaws/Api/Aaws\",t.ENVIRONMENTAL_REPORTS_WEB_SERVICE_URL=h+\"/EpaEnvironmentalReports/Api/Report\",t.ENVIRONMENTAL_CUSTOM_REPORTS_WEB_SERVICE_URL=h+\"/EpaEnvironmentalReports/Api/customReport\",t.ENVIRONMENTAL_CUSTOM_REPORTS_PARAMETERS_WEB_SERVICE_URL=h+\"/EpaEnvironmentalReports/Api/report/GetInputParameters\",t.SEARCH_API=h+\"/searchAPI/api\",t.WFD_API=v+\"/api\",t.PRTR_API=m+\"/epr/api/v1\",t.PRTR_DETAILS=h+\"/epr/#\",t.GIS_MAP_PROJECTION_DATA_NATIVE=\"EPSG:29902\",t.GIS_MAP_PROJECTION=\"EPSG:3857\",t.WMS_VERSION=\"1.3.0\",t.WMTS_VERSION=\"1.0.0\",t.IS_VECTOR_LAYER_ALLOWED=!0,t.BING_MAPS=p,t.BING_MAPS_KEY=g,t.PRINT_SERVICE_URL=_,t.MAPFISH_URL=b},function(e,t,n){var r=n(154)(\"wks\"),i=n(109),o=n(11).Symbol,a=\"function\"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)(\"Symbol.\"+e))}).store=r},function(e,t,n){\"use strict\";t.a={POINT:\"Point\",LINE_STRING:\"LineString\",LINEAR_RING:\"LinearRing\",POLYGON:\"Polygon\",MULTI_POINT:\"MultiPoint\",MULTI_LINE_STRING:\"MultiLineString\",MULTI_POLYGON:\"MultiPolygon\",GEOMETRY_COLLECTION:\"GeometryCollection\",CIRCLE:\"Circle\"}},function(e,t,n){var r=n(58),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){e.exports=!n(15)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(1136);Object.defineProperty(t,\"Alpha\",{enumerable:!0,get:function(){return r(i).default}});var o=n(328);Object.defineProperty(t,\"Checkboard\",{enumerable:!0,get:function(){return r(o).default}});var a=n(1139);Object.defineProperty(t,\"EditableInput\",{enumerable:!0,get:function(){return r(a).default}});var s=n(1140);Object.defineProperty(t,\"Hue\",{enumerable:!0,get:function(){return r(s).default}});var l=n(1142);Object.defineProperty(t,\"Raised\",{enumerable:!0,get:function(){return r(l).default}});var u=n(1156);Object.defineProperty(t,\"Saturation\",{enumerable:!0,get:function(){return r(u).default}});var c=n(510);Object.defineProperty(t,\"ColorWrap\",{enumerable:!0,get:function(){return r(c).default}});var f=n(1164);Object.defineProperty(t,\"Swatch\",{enumerable:!0,get:function(){return r(f).default}})},function(e,t,n){\"use strict\";var r=n(409),i={assert:function(e,t){if(!e)throw new r.a(t)}};t.a=i},function(e,t,n){var r=n(9),i=n(331),o=n(67),a=Object.defineProperty;t.f=n(23)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(68);e.exports=function(e){return Object(r(e))}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(418),o=n(4),a=n(18),s=n(908),l=n(909),u=n(210),c=n(73),f=n(419),h=n(910),d=n(911),p={};p.METERS_PER_UNIT=c.a.METERS_PER_UNIT,p.SPHERE_=new i.default(i.default.DEFAULT_RADIUS),r.a.ENABLE_PROJ4JS&&(p.setProj4=function(e){f.a.set(e)}),p.getPointResolution=function(e,t,n,r){var i,o=(e=p.get(e)).getPointResolutionFunc();if(o)i=o(t,n);else if(e.getUnits()==c.a.DEGREES&&!r||r==c.a.DEGREES)i=t;else{var a=p.getTransformFromProjections(e,p.get(\"EPSG:4326\")),s=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];s=a(s,s,2),i=(p.SPHERE_.haversineDistance(s.slice(0,2),s.slice(2,4))+p.SPHERE_.haversineDistance(s.slice(4,6),s.slice(6,8)))/2;var l=r?c.a.METERS_PER_UNIT[r]:e.getMetersPerUnit();void 0!==l&&(i/=l)}return i},p.addEquivalentProjections=function(e){p.addProjections(e),e.forEach(function(t){e.forEach(function(e){t!==e&&d.a.add(t,e,p.cloneTransform)})})},p.addEquivalentTransforms=function(e,t,n,r){e.forEach(function(e){t.forEach(function(t){d.a.add(e,t,n),d.a.add(t,e,r)})})},p.addProjection=function(e){h.a.add(e.getCode(),e),d.a.add(e,e,p.cloneTransform)},p.addProjections=function(e){e.forEach(p.addProjection)},p.clearAllProjections=function(){h.a.clear(),d.a.clear()},p.createProjection=function(e,t){return e?\"string\"==typeof e?p.get(e):e:p.get(t)},p.addCoordinateTransforms=function(e,t,n,r){var i=p.get(e),o=p.get(t);d.a.add(i,o,p.createTransformFromCoordinateTransform(n)),d.a.add(o,i,p.createTransformFromCoordinateTransform(r))},p.createTransformFromCoordinateTransform=function(e){return function(t,n,r){var i,o,a,s=t.length,l=void 0!==r?r:2,u=void 0!==n?n:new Array(s);for(o=0;o=2;--a)u[o+a]=t[o+a];return u}},p.fromLonLat=function(e,t){return p.transform(e,\"EPSG:4326\",void 0!==t?t:\"EPSG:3857\")},p.toLonLat=function(e,t){var n=p.transform(e,void 0!==t?t:\"EPSG:3857\",\"EPSG:4326\"),r=n[0];return(r<-180||r>180)&&(n[0]=a.a.modulo(r+180,360)-180),n},p.get=function(e){var t=null;if(e instanceof u.a)t=e;else if(\"string\"==typeof e){var n=e;if(t=h.a.get(n),r.a.ENABLE_PROJ4JS&&!t){var i=f.a.get();\"function\"==typeof i&&void 0!==i.defs(n)&&(t=new u.a({code:n}),p.addProjection(t))}}return t},p.equivalent=function(e,t){if(e===t)return!0;var n=e.getUnits()===t.getUnits();return e.getCode()===t.getCode()?n:p.getTransformFromProjections(e,t)===p.cloneTransform&&n},p.getTransform=function(e,t){var n=p.get(e),r=p.get(t);return p.getTransformFromProjections(n,r)},p.getTransformFromProjections=function(e,t){var n=e.getCode(),i=t.getCode(),o=d.a.get(n,i);if(r.a.ENABLE_PROJ4JS&&!o){var a=f.a.get();if(\"function\"==typeof a){var s=a.defs(n),l=a.defs(i);if(void 0!==s&&void 0!==l){if(s===l)p.addEquivalentProjections([t,e]);else{var u=a(i,n);p.addCoordinateTransforms(t,e,u.forward,u.inverse)}o=d.a.get(n,i)}}}return o||(o=p.identityTransform),o},p.identityTransform=function(e,t,n){if(void 0!==t&&e!==t){for(var r=0,i=e.length;r\"+i+\"\"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=\"\"[e]('\"');return t!==t.toLowerCase()||t.split('\"').length>3}),\"String\",n)}},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getSettlements=t.getWaterFeatures=t.getMetadata=t.getAddress=t.getTowns=t.getCounties=t.getLocalAuthorities=t.getDataFromUrlWithData=t.getFeaturesFromService=t.getFeatures=t.getWMSFeatureInfo=t.getCapabilities=t.getCapabilitiesWMTS=t.getAAtoolsRequestUrlWithData=t.getEnvReportsRequestUrlWithData=t.getEnvReportsRequestWithDataArray=t.getEnvReportsCustomParameters=t.getAppModules=t.parametarizeQueryString=void 0,n(406);var i=r(n(881)),o=r(n(885)),a=r(n(886)),s=n(889),l=r(n(890)),u=n(19),c=r(n(6)),f=function(e,t,n,r){if(!t)return\"no url provided\";var i=e||\"WMS\";if(\"\"!==u.STATIC_CAPABILITIES_FILE&&\"WMS\"===i)return u.STATIC_CAPABILITIES_FILE;if(\"\"!==u.STATIC_CAPABILITIES_FILE&&\"WMTS\"===i)return u.STATIC_WMTS_CAPABILITIES_FILE;var o=\"\";\"WMS\"!==i||o?\"WFS\"!==i||o?\"WMTS\"!==i||o?\"ArcGISMap\"!==i||o?\"WMTS\"!==i||o||(o=\"1.0.0\"):o=\"10\":o=\"1.0.0\":o=\"1.1.0\":o=\"1.3.0\";var a=n||o,s=function(e,t){var n=t.split(\"?\");return e+(n[0].indexOf(\"http\")>=0?n:\"http:\"+n)}(r,t);return\"ArcGISMap\"===i?s+\"?f=json\":s+\"?REQUEST=GetCapabilities&SERVICE=\"+i+\"&VERSION=\"+a},h=function(e){return new Promise(function(t,n){fetch(e).then(function(e){t(e)}).catch(function(e){return n(e)})})};t.parametarizeQueryString=function(e){return\"\"+(0,o.default)(e)},t.getAppModules=function(e){return new Promise(function(t,n){fetch(e).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.getEnvReportsCustomParameters=function(e){return new Promise(function(t,n){c.default.debug(\"query:\",e),e||n(\"Invalid URL\"),fetch(e,{headers:{\"Content-Type\":\"application/json\"}}).then(function(e){return e.json()}).then(function(e){e.SearchDirections||e.FeatureAttributeAliases?t(e):n(\"Error while getting web service parameters: ENVREPORTS\")}).catch(function(e){return n(e)})})},t.getEnvReportsRequestWithDataArray=function(e){var t=e.map(function(e){return fetch(e).then(function(e){return e.json()}).then(function(e){return e.QueryResults?(0,s.processEnvironmentalReportsResponse)(e):e.Message})});return Promise.all(t)},t.getEnvReportsRequestUrlWithData=function(e,t){return new Promise(function(n,r){var i=e+\"?\"+(0,o.default)(t);c.default.debug(\"query:\",i),fetch(i,{headers:{\"Content-Type\":\"application/json\"}}).then(function(e){return e.json()}).then(function(e){if(e.QueryResults){var t=(0,s.processEnvironmentalReportsResponse)(e);n(t)}else r(e.Message)}).catch(function(e){return r(e)})})},t.getAAtoolsRequestUrlWithData=function(e,t){return new Promise(function(n,r){var i=e+\"?\"+(0,o.default)(t);c.default.debug(\"query:\",i),fetch(i,{headers:{\"Content-Type\":\"application/json\"}}).then(function(e){return e.json()}).then(function(e){if(c.default.debug(\"response\",e),e.Results){var t=(0,s.processAAToolResults2)(e);n(t)}else r(e.Message)}).catch(function(e){return r(e)})})},t.getCapabilitiesWMTS=function(e,t,n){return new Promise(function(r,i){var o=f(\"WMTS\",t,n,e);h(o).then(function(e){return e.text()}).then(function(e){try{var n=(new a.default).xml_str2json(e),o=[];n.Capabilities.Contents.Layer.forEach(function(e){if(e.Format.includes(\"application/x-protobuf;type=mapbox-vector\")){var n={Title:e.Title.toString()+\" Vector Tiles\",Name:e.Identifier.toString()+\"__vector__\",Abstract:e.Abstract.toString(),isQueryable:!1,MetadataURL:null,zIndex:0,Style:null},r=new l.default(n,t,!0);o.push(r)}}),r(Object.assign([],o))}catch(e){i(\"Error occured while parsing WMTS capabilities response, please make sure that you have selected the right server type: \"+e)}}).catch(function(e){return i(e.statusText)})})},t.getCapabilities=function(e,t,n){return new Promise(function(r,o){var a=f(\"WMS\",t,n,e);h(a).then(function(e){return e.text()}).then(function(e){try{var n=(new i.default).read(e),a=[];n.Capability.Layer.Layer.forEach(function(e){var n=new l.default(e,t);a.push(n)}),r(Object.assign([],a))}catch(e){o(\"Error occured while parsing WMS capabilities response, please make sure that you have selected the right server type: \"+e)}}).catch(function(e){return o(e.statusText)})})},t.getWMSFeatureInfo=function(e){var t=e.map(function(e){return fetch(e).then(function(e){return e.json()}).then(function(e){return e})});return Promise.all(t)},t.getFeatures=function(e){return new Promise(function(t,n){fetch(e).then(function(e){return e.json()}).then(function(e){return t((n=[\"envelope\",\"point\",\"multipoint\",\"linestring\",\"multilineString\",\"polygon\",\"multipolygon\",\"multigeometry\"],e.featureTypes[0].properties.filter(function(e){if(-1===n.indexOf(e.localType.toLowerCase()))return e})));var n}).catch(function(e){return n(e)})})},t.getFeaturesFromService=function(e,t){var n=u.WFS_SERVER_URL+\"?request=GetFeature&version=2.0.0&typename=\"+e+\"&outputFormat=application/json&srsname=EPSG:3857&cql_filter=\"+t+\"&count=1\";return new Promise(function(e,t){fetch(n).then(function(t){return e(t.json())}).catch(function(e){return t(e)})})},t.getDataFromUrlWithData=function(e,t){return new Promise(function(n,r){fetch(e,{data:t}).then(function(e){return e.json()}).catch(function(e){return r(e)})})},t.getLocalAuthorities=function(){return new Promise(function(e,t){fetch(u.PRINT_SERVICE_URL+\"/api/v1/report/localauthorities\").then(function(e){return e.json()}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.getCounties=function(){return new Promise(function(e,t){fetch(u.SEARCH_API+\"/counties\").then(function(e){return e.json()}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.getTowns=function(e){return new Promise(function(t,n){fetch(u.SEARCH_API+\"/towns/\"+e).then(function(e){return e.json()}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.getAddress=function(e){return new Promise(function(t,n){fetch(u.SEARCH_API+\"/address/search/\"+e).then(function(e){return e.json()}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.getMetadata=function(e){return new Promise(function(t,n){var r=e;u.CORS_PROXY_REQUIRED&&(r=\"\"+u.MAP_PROXY+r),fetch(r).then(function(e){return e.text()}).then(function(e){var n=(new a.default).xml_str2json(e),r={abstract:n.MD_Metadata.identificationInfo.MD_DataIdentification.abstract.CharacterString.toString(),purpose:n.MD_Metadata.identificationInfo.MD_DataIdentification.purpose.CharacterString.toString()};t(r)}).catch(function(e){return n(e)})})},t.getWaterFeatures=function(e){return new Promise(function(t,n){fetch(u.WFD_API+\"/search?v=\"+e+\"&page=1&size=10\").then(function(e){return e.json()}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.getSettlements=function(e){return new Promise(function(t,n){fetch(u.PRINT_SERVICE_URL+\"/api/v1/search/settlement?search=\"+e).then(function(e){return e.json()}).then(function(e){return t(e)}).catch(function(e){return n(e)})})}},function(e,t,n){\"use strict\";t.__esModule=!0;var r,i=n(1023),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default||function(e){for(var t=1;t0?r:n)(e)}},function(e,t,n){\"use strict\";var r=n(15);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){\"use strict\";var r=function(){};e.exports=r},function(e,t,n){var r=n(385),i=\"object\"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function(\"return this\")();e.exports=o},function(e,t,n){\"use strict\";var r=n(1),i=n(37),o={},a=\"undefined\"!=typeof navigator?navigator.userAgent.toLowerCase():\"\";o.FIREFOX=-1!==a.indexOf(\"firefox\"),o.SAFARI=-1!==a.indexOf(\"safari\")&&-1==a.indexOf(\"chrom\"),o.WEBKIT=-1!==a.indexOf(\"webkit\")&&-1==a.indexOf(\"edge\"),o.MAC=-1!==a.indexOf(\"macintosh\"),o.DEVICE_PIXEL_RATIO=window.devicePixelRatio||1,o.CANVAS_LINE_DASH=!1,o.CANVAS=r.a.ENABLE_CANVAS&&function(){if(!(\"HTMLCanvasElement\"in window))return!1;try{var e=document.createElement(\"CANVAS\").getContext(\"2d\");return!!e&&(void 0!==e.setLineDash&&(o.CANVAS_LINE_DASH=!0),!0)}catch(e){return!1}}(),o.DEVICE_ORIENTATION=\"DeviceOrientationEvent\"in window,o.GEOLOCATION=\"geolocation\"in navigator,o.TOUCH=r.a.ASSUME_TOUCH||\"ontouchstart\"in window,o.POINTER=\"PointerEvent\"in window,o.MSPOINTER=!!navigator.msPointerEnabled,o.WEBGL,function(){if(r.a.ENABLE_WEBGL){var e,t=!1,n=[];if(\"WebGLRenderingContext\"in window)try{var a=document.createElement(\"CANVAS\"),s=i.a.getContext(a,{failIfMajorPerformanceCaveat:!0});s&&(t=!0,e=s.getParameter(s.MAX_TEXTURE_SIZE),n=s.getSupportedExtensions())}catch(e){}o.WEBGL=t,r.a.WEBGL_EXTENSIONS=n,r.a.WEBGL_MAX_TEXTURE_SIZE=e}}(),t.a=o},function(e,t,n){\"use strict\";t.a={XY:\"XY\",XYZ:\"XYZ\",XYM:\"XYM\",XYZM:\"XYZM\"}},function(e,t,n){\"use strict\";var r=n(1),i=n(31),o=n(4),a=n(209),s=n(63),l=n(85),u=n(10),c=function(){a.a.call(this),this.layout=s.a.XY,this.stride=2,this.flatCoordinates=null};r.a.inherits(c,a.a),c.getLayoutForStride_=function(e){var t;return 2==e?t=s.a.XY:3==e?t=s.a.XYZ:4==e&&(t=s.a.XYZM),t},c.getStrideForLayout=function(e){var t;return e==s.a.XY?t=2:e==s.a.XYZ||e==s.a.XYM?t=3:e==s.a.XYZM&&(t=4),t},c.prototype.containsXY=i.a.FALSE,c.prototype.computeExtent=function(e){return o.default.createOrUpdateFromFlatCoordinates(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)},c.prototype.getCoordinates=function(){},c.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},c.prototype.getFlatCoordinates=function(){return this.flatCoordinates},c.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},c.prototype.getLayout=function(){return this.layout},c.prototype.getSimplifiedGeometry=function(e){if(this.simplifiedGeometryRevision!=this.getRevision()&&(u.a.clear(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var t=e.toString();if(this.simplifiedGeometryCache.hasOwnProperty(t))return this.simplifiedGeometryCache[t];var n=this.getSimplifiedGeometryInternal(e);return n.getFlatCoordinates().lengthE;E++)if((h||E in v)&&(m=_(g=v[E],E,y),e))if(n)S[E]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return E;case 2:S.push(g)}else if(c)return!1;return f?-1:u||c?c:S}}},function(e,t,n){\"use strict\";!function e(){if(\"undefined\"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&\"function\"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),e.exports=n(719)},function(e,t){e.exports=function(e){return null!=e&&\"object\"==typeof e}},function(e,t,n){\"use strict\";var r={DEGREES:\"degrees\",FEET:\"ft\",METERS:\"m\",PIXELS:\"pixels\",TILE_PIXELS:\"tile-pixels\",USFEET:\"us-ft\",METERS_PER_UNIT:{}};r.METERS_PER_UNIT[r.DEGREES]=2*Math.PI*6370997/360,r.METERS_PER_UNIT[r.FEET]=.3048,r.METERS_PER_UNIT[r.METERS]=1,r.METERS_PER_UNIT[r.USFEET]=1200/3937,t.a=r},function(e,t,n){\"use strict\";t.a={CANVAS:\"canvas\",WEBGL:\"webgl\"}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(122),i=n(25),o=n(31),a=n(62),s={altKeyOnly:function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},altShiftKeysOnly:function(e){var t=e.originalEvent;return t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey}};s.always=o.a.TRUE,s.click=function(e){return e.type==r.a.CLICK},s.mouseActionButton=function(e){var t=e.originalEvent;return 0==t.button&&!(a.a.WEBKIT&&a.a.MAC&&t.ctrlKey)},s.never=o.a.FALSE,s.pointerMove=function(e){return\"pointermove\"==e.type},s.singleClick=function(e){return e.type==r.a.SINGLECLICK},s.doubleClick=function(e){return e.type==r.a.DBLCLICK},s.noModifierKeys=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&!t.shiftKey},s.platformModifierKeyOnly=function(e){var t=e.originalEvent;return!t.altKey&&(a.a.MAC?t.metaKey:t.ctrlKey)&&!t.shiftKey},s.shiftKeyOnly=function(e){var t=e.originalEvent;return!t.altKey&&!(t.metaKey||t.ctrlKey)&&t.shiftKey},s.targetNotEditable=function(e){var t=e.originalEvent.target.tagName;return\"INPUT\"!==t&&\"SELECT\"!==t&&\"TEXTAREA\"!==t},s.mouseOnly=function(e){return i.a.assert(e.pointerEvent,56),\"mouse\"==e.pointerEvent.pointerType},s.primaryAction=function(e){var t=e.pointerEvent;return t.isPrimary&&0===t.button},t.default=s},function(e,t,n){\"use strict\";var r={createOrUpdate:function(e,t,n,r){return void 0!==r?(r[0]=e,r[1]=t,r[2]=n,r):[e,t,n]},getKeyZXY:function(e,t,n){return e+\"/\"+t+\"/\"+n},getKey:function(e){return r.getKeyZXY(e[0],e[1],e[2])},fromKey:function(e){return e.split(\"/\").map(Number)},hash:function(e){return(e[1]<>=1;return i.join(\"\")},withinExtentAndZ:function(e,t){var n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;var o,a=t.getExtent();return!(o=a?t.getTileRangeForExtentAndZ(a,n):t.getFullTileRange(n))||o.containsXY(r,i)}};t.a=r},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default={eng:{ADMIRALTY_CHARTS_ADDED:\"Admiralty Charts is added to the map.\",EDITING_FINISHED:\"Editing graphics stopped\",START_EDITING_GRAPHICS:\"Start selecting and editing the graphics\",START_DRAWING:\"Start drawing on the map\",MEASURE_DISTANCE:\"Click on the map to measure a distance\",MEASURE_AREA:\"Click on the map to measure an area\",MEASURES_CLEARED:\"Measurements cleared\",MEASURE_COORDINATE:\"Click on the map to get coordinates\",LAYER_SAME_FILTER_EXISTS:\"Same filter is already applied to layer.\",INVALID_OPERATION:\"Invalid Operation.\",SELECT_LOCATION:\"Please select location first.\",SELECT_FEATURE:\"Please select feature.\",SELECT_DIRECTION:\"Please select direction.\",MISSING_INFORMATION:\"Missing information.\",NO_METADATA_AVAILABLE:\"No metadata available for this layer\",PRINTING_IS_FORBIDDEN:\"Printing is not available with custom layers added from tools. Please remove and then try again.\"}}},function(e,t,n){var r=n(313)(\"wks\"),i=n(231),o=n(102).Symbol,a=\"function\"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)(\"Symbol.\"+e))}).store=r},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var i=r(n(1161)),o=r(n(1163));t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,i.default)([\"r\",\"g\",\"b\",\"a\",\"h\",\"s\",\"l\",\"v\"],function(r){e[r]&&(t+=1,isNaN(e[r])||(n+=1),\"s\"===r||\"l\"===r)&&/^\\d+%$/.test(e[r])&&(n+=1)}),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:\"000000\"===s&&0===a.a?\"transparent\":\"#\"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t=\"#\"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return\"#fff\";var t=a(e);return\"transparent\"===t.hex?\"rgba(0,0,0,0.4)\":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?\"#000\":\"#fff\"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:\"#ff0000\",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},t.default=t},function(e,t,n){\"use strict\";if(n(23)){var r=n(90),i=n(11),o=n(15),a=n(3),s=n(189),l=n(262),u=n(56),c=n(115),f=n(108),h=n(42),d=n(117),p=n(58),g=n(22),m=n(359),y=n(111),v=n(67),_=n(49),b=n(133),E=n(17),S=n(27),x=n(251),T=n(112),w=n(52),C=n(113).f,P=n(253),R=n(109),O=n(20),M=n(70),A=n(179),I=n(158),L=n(256),k=n(135),N=n(184),F=n(114),D=n(255),j=n(348),G=n(26),U=n(51),B=G.f,W=U.f,z=i.RangeError,V=i.TypeError,q=i.Uint8Array,H=Array.prototype,Y=l.ArrayBuffer,X=l.DataView,K=M(0),Z=M(2),Q=M(3),J=M(4),$=M(5),ee=M(6),te=A(!0),ne=A(!1),re=L.values,ie=L.keys,oe=L.entries,ae=H.lastIndexOf,se=H.reduce,le=H.reduceRight,ue=H.join,ce=H.sort,fe=H.slice,he=H.toString,de=H.toLocaleString,pe=O(\"iterator\"),ge=O(\"toStringTag\"),me=R(\"typed_constructor\"),ye=R(\"def_constructor\"),ve=s.CONSTR,_e=s.TYPED,be=s.VIEW,Ee=M(1,function(e,t){return Ce(I(e,e[ye]),t)}),Se=o(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),xe=!!q&&!!q.prototype.set&&o(function(){new q(1).set({})}),Te=function(e,t){var n=p(e);if(n<0||n%t)throw z(\"Wrong offset!\");return n},we=function(e){if(E(e)&&_e in e)return e;throw V(e+\" is not a typed array!\")},Ce=function(e,t){if(!(E(e)&&me in e))throw V(\"It is not a typed array constructor!\");return new e(t)},Pe=function(e,t){return Re(I(e,e[ye]),t)},Re=function(e,t){for(var n=0,r=t.length,i=Ce(e,r);r>n;)i[n]=t[n++];return i},Oe=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Me=function(e){var t,n,r,i,o,a,s=S(e),l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,h=P(s);if(null!=h&&!x(h)){for(a=h.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&l>2&&(c=u(c,arguments[2],2)),t=0,n=g(s.length),i=Ce(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Ae=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Ie=!!q&&o(function(){de.call(new q(1))}),Le=function(){return de.apply(Ie?fe.call(we(this)):we(this),arguments)},ke={copyWithin:function(e,t){return j.call(we(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(we(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(we(this),arguments)},filter:function(e){return Pe(this,Z(we(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(we(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(we(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(we(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(we(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(we(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(we(this),arguments)},lastIndexOf:function(e){return ae.apply(we(this),arguments)},map:function(e){return Ee(we(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(we(this),arguments)},reduceRight:function(e){return le.apply(we(this),arguments)},reverse:function(){for(var e,t=we(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(we(this),e)},subarray:function(e,t){var n=we(this),r=n.length,i=y(e,r);return new(I(n,n[ye]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},Ne=function(e,t){return Pe(this,fe.call(we(this),e,t))},Fe=function(e){we(this);var t=Te(arguments[1],1),n=this.length,r=S(e),i=g(r.length),o=0;if(i+t>n)throw z(\"Wrong length!\");for(;o255?255:255&r),i.v[d](n*t+i.o,r,Se)}(this,n,e)},enumerable:!0})};_?(p=n(function(e,n,r,i){c(e,p,u,\"_d\");var o,a,s,l,f=0,d=0;if(E(n)){if(!(n instanceof Y||\"ArrayBuffer\"==(l=b(n))||\"SharedArrayBuffer\"==l))return _e in n?Re(p,n):Me.call(p,n);o=n,d=Te(r,t);var y=n.byteLength;if(void 0===i){if(y%t)throw z(\"Wrong length!\");if((a=y-d)<0)throw z(\"Wrong length!\")}else if((a=g(i)*t)+d>y)throw z(\"Wrong length!\");s=a/t}else s=m(n),o=new Y(a=s*t);for(h(e,\"_d\",{b:o,o:d,l:a,e:s,v:new X(o)});f0?e.animate({rotation:t,anchor:n,duration:r,easing:o.default.easeOut}):e.rotate(t,n)}},l.zoom=function(e,t,n,r,i){t=e.constrainResolution(t,0,i),l.zoomWithoutConstraints(e,t,n,r)},l.zoomByDelta=function(e,t,n,r){var i=e.getResolution(),o=e.constrainResolution(i,t,0);if(void 0!==o){var a=e.getResolutions();o=s.a.clamp(o,e.getMinResolution()||a[a.length-1],e.getMaxResolution()||a[0])}if(n&&void 0!==o&&o!==i){var u=e.getCenter(),c=e.calculateCenterZoom(o,n);c=e.constrainCenter(c),n=[(o*u[0]-i*c[0])/(o-i),(o*u[1]-i*c[1])/(o-i)]}l.zoomWithoutConstraints(e,o,n,r)},l.zoomWithoutConstraints=function(e,t,n,r){if(t){var i=e.getResolution(),a=e.getCenter();if(void 0!==i&&a&&t!==i&&r)e.animate({resolution:t,anchor:n,duration:r,easing:o.default.easeOut});else{if(n){var s=e.calculateCenterZoom(t,n);e.setCenter(s)}e.setResolution(t)}}},t.a=l},function(e,t,n){\"use strict\";var r,i,o=n(99),a=n(29),s=n(10),l=n(294),u=n(30),c={};c.defaultFont=\"10px sans-serif\",c.defaultFillStyle=[0,0,0,1],c.defaultLineCap=\"round\",c.defaultLineDash=[],c.defaultLineDashOffset=0,c.defaultLineJoin=\"round\",c.defaultMiterLimit=10,c.defaultStrokeStyle=[0,0,0,1],c.defaultTextAlign=\"center\",c.defaultTextBaseline=\"middle\",c.defaultPadding=[0,0,0,0],c.defaultLineWidth=1,c.labelCache=new l.a,c.checkedFonts_={},c.measureContext_=null,c.textHeights_={},c.checkFont=function(){function e(e){var t=c.getMeasureContext();t.font=u,r=t.measureText(f).width;var n=!0;return\"monospace\"!=e&&(t.font=\"32px \"+e+\",monospace\",n=t.measureText(f).width!=r),n}function t(){var t=!0;for(var r in a)a[r]=0&&(n=\"'\"+n+\"'\"),e.operator){case\"LIKE\":t.push(n+\" \"+e.operator+\" '%\"+e.value+\"%'\");break;case\"=\":t.push(n+\" \"+e.operator+\" '\"+e.value+\"'\");break;case\"IN\":var r=e.value.split(\",\").map(function(e){return\"'\"+e+\"',\"}).join(\"\");t.push(n+\" IN (\"+r.substring(0,r.length-1)+\")\");break;default:t.push(n+\" \"+e.operator+\" \"+e.value)}}),t.join(\" AND \"))},X=t.addLayerToGroup=function(e,t,n){q(n,t).getLayers().push(e)},K=(t.addWMSLayer=function(e,t,n,r,i,a){var d=void 0;void 0!==e&&((d=e.isVectorLayer?function(e){for(var t=\"\"+z.MAP_PROXY+e.serverUrl,n=S.default.get(\"EPSG:900913\").getExtent(),r=E.default.getWidth(n)/256,i=new Array(14),a=new Array(14),c=0;c<14;c+=1)i[c]=r/Math.pow(2,c),a[c]=\"EPSG:900913:\"+c;var f=new v.default({layer:e.layerName.replace(\"__vector__\",\"\"),url:t,matrixSet:\"EPSG:900913\",format:\"application/x-protobuf;type=mapbox-vector\",projection:\"EPSG:900913\",tiled:!0,tileGrid:new y.default({origin:E.default.getTopLeft(n),resolutions:i,matrixIds:a}),wrapX:!0}),d=new m.default({format:new g.default({}),tileUrlFunction:f.getTileUrlFunction(),tileGrid:f.getTileGrid()});return new h.default({declutter:!0,title:e.title,visible:!0,projection:\"EPSG:900913\",nameOfLayer:e.layerName,extentOfLayer:e.extentOfLayer,opacity:e.transperancy?e.transperancy/100:1,queryable:!0,layerType:\"vector\",type:\"WFS\",source:d,style:function(e,t){return new o.default({fill:new s.default({color:\"rgba(255, 255, 255, 0.2)\"}),stroke:new l.default({color:\"#ffcc33\",width:2}),image:new u.default({radius:7,fill:new s.default({color:\"#ffcc33\"})})})}})}(e):function(e){var t=\"\"+z.MAP_PROXY+e.serverUrl;t.indexOf(\"/wms&\")>-1&&t.replace(\"/wms&\",\"/wms?\");var n=new c.default({url:t,params:{LAYERS:e.layerName,TILED:!0,t:Math.random()},serverType:\"geoserver\",crossOrigin:\"anonymous\"});return new f.default({zIndex:e.zIndex,title:e.title,source:n,visible:!0,nameOfLayer:e.layerName,extentOfLayer:e.extentOfLayer,opacity:e.transperancy?e.transperancy/100:1,queryable:e.isQueryable,type:\"WMS\",layerType:\"image\"})}(e)).getSource().on(\"tileloadstart\",r),d.getSource().on(\"tileloadend\",i),d.getSource().on(\"tileloaderror\",a),X(d,t,n))},t.setVisibilityLayer=function(e,t,n){q(n,t).getLayers().forEach(function(t){t.get(\"nameOfLayer\")===e.id&&t.setVisible(e.visibility)})},t.removeLayer=function(e,t,n){var r=void 0;r=e.id?H(e.id,t,n):H(e.get(\"title\"),t,n),q(n,t,n).getLayers().remove(r)},t.moveLayerDown=function(e,t,n){var r=H(e.id,t,n),i=q(n,t),o=i.getLayers().getArray().indexOf(r),a=i.getLayers().getArray().length-1,s=o+1;B.default.debug(o),B.default.debug(s),s>0&&s<=a&&(i.getLayers().remove(r),i.getLayers().insertAt(s,r))},t.moveLayerUp=function(e,t,n){var r=H(e.id,t,n),i=q(n,t),o=i.getLayers().getArray().indexOf(r),a=i.getLayers().getArray().length-1,s=o-1;B.default.debug(o),B.default.debug(s),s>=0&&s1e3?b.default.unByKey(r):a.animate=!0});t.render()}},t.zoomToFeature=function(e,t,n){var r=e.feature,i=e.proj,o=H(\"vectorZoom\",t,n);o&&(r.getGeometry().transform(i[0],i[1]),o.getSource().clear(),o.getSource().addFeature(r))},t.flashFeature=function(e,t,n){if(!e.get(\"noflash\"))var r=(new Date).getTime(),i=n.on(\"postcompose\",function(n){try{var a=n.vectorContext,u=n.frameState,c=e.getGeometry().clone(),f=u.time-r,h=f/2e3,d=25*_.default.easeOut(h)+5,p=new s.default({color:\"rgba(42, 127, 120, 0.4)\"}),g=new l.default({color:\"#708D9C\",width:d/6}),m=new o.default({fill:p,stroke:g});if(a.setStyle(m),a.drawGeometry(c),f>2e3)return b.default.unByKey(i),void t.clear();u.animate=!0}catch(e){t.clear(),b.default.unByKey(i)}})},function(e,t){if(e&&t){var n=Z(e,t);e.removeInteraction(n)}}),Z=(t.buildGeometry=function(e,t,n,r){var i=[[e,t],[e,r],[n,r],[n,t],[e,t]],o=new T.default([i]);return new I.default(o)},t.buildGeometryFromCoordinates=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=void 0;if(null===n)r=new w.default([e,t]);else{G.default.defs(\"EPSG:29902\",\"+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=1.000035 +x_0=200000 +y_0=250000 +ellps=mod_airy +towgs84=482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15 +units=m +no_defs\"),G.default.defs(\"EPSG:2157\",\"+proj=tmerc +lat_0=53.5 +lon_0=-8 +k=0.99982 +x_0=600000 +y_0=750000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs\"),S.default.setProj4(G.default);var i=S.default.transform([e,t],n,z.GIS_MAP_PROJECTION_DATA_NATIVE);r=new w.default(i)}return new I.default({geometry:r})},t.requestOfLayers=function(e,t,n){var r=[],i=[];return e.forEach(function(e){if(e.get(\"queryable\")&&e.getVisible()&&\"WMS\"===e.get(\"type\")){var o=e.getSource().getGetFeatureInfoUrl(t,n.getView().getResolution(),n.getView().getProjection().getCode(),{INFO_FORMAT:\"application/json\",buffer:10,feature_count:10});r.push(o),i.push(e)}}),{listOfRequest:r,candidateLayers:i}},t.generateListQueryResults=function(e,t){var n=[];return t.forEach(function(t,r){if(t.features&&t.features.length>0){var i=e[r].get(\"title\"),o=t.features.map(function(e){return{layerName:i,geometry:e.geometry,properties:e.properties}});n.push(o)}}),n},t.cleanGraphicsOfLayerByName=function(e,t,n){H(\"measureGraphicLayer\",t,n).getSource().clear()},t.getMapInteractionWithName=function(e,t){if(!e||!t)return B.default.debug(\"missing parameters\"),null;var n=void 0;return e.getInteractions().forEach(function(e){e instanceof t&&(n=e)},void 0),n}),Q=(t.addMeasurementInteraction=function(e,t,n,r){K(e,L.default),K(e,k.default),K(e,N.default);var i=\"LineString\";t===W.mapOperationEnums.measureArea&&(i=\"Polygon\");var a=void 0,c=H(\"measureGraphicLayer\",e,n);Z(e,j.default).setActive(!1);var f=Z(e,D.default);f&&e.removeInteraction(f);var h=new D.default({source:c.getSource(),type:i,style:new o.default({fill:new s.default({color:\"rgba(255, 255, 255, 0.7)\"}),stroke:new l.default({color:\"black\",lineDash:[10,10],width:2}),image:new u.default({radius:5,stroke:new l.default({color:\"rgba(0, 0, 0, 0.7)\"}),fill:new s.default({color:\"rgba(255, 255, 255, 0.2)\"})})})});e.addInteraction(h),h.once(\"drawstart\",function(e){a=e.feature},a),h.once(\"drawend\",function(t){r(),e.removeInteraction(h),h.setActive(!1);var n=\"\";if(a){var i=a.getGeometry();i instanceof T.default?(n=function(e,t,n){var r=void 0;new x.default(6378137);if(!S.default)throw new Error(\"Openlayers3 is required\");if(!e||!t)throw new Error(\"missing parameters\");var i=e.getView().getProjection(),o=t.clone().transform(i,\"EPSG:29902\");try{r=o.getArea()}catch(e){throw new Error(\"polygon parameter is incorrect\")}return r>1e5?\"Area:\"+parseFloat(r/1e6).toFixed(3)+\"km2\":\"Area:\"+parseFloat(r).toFixed(3)+\"m2\"}(e,i),i.getInteriorPoint().getCoordinates()):i instanceof P.default&&(n=function(e,t,n){var r=void 0;new x.default(6378137);if(!S.default)throw new Error(\"Openlayers3 is required\");if(!e||!t)throw new Error(\"missing parameters\");var i=e.getView().getProjection(),o=t.clone().transform(i,\"EPSG:29902\");try{r=parseFloat(100*o.getLength()/100).toFixed(3)}catch(e){throw new Error(\"line parameter is incorrect\")}return r>1e3?\"Length:\"+parseFloat(r/1e3).toFixed(3)+\"km\":\"Length :\"+parseFloat(r).toFixed(3)+\" m\"}(e,i),i.getLastCoordinate()),a.setStyle(new o.default({fill:new s.default({color:\"rgba(255, 255, 255, 0.2)\"}),stroke:new l.default({color:\"magenta\",lineDash:[0,0],width:2}),image:new u.default({radius:5,stroke:new l.default({color:\"rgba(255, 255, 255, 0.7)\"}),fill:new s.default({color:\"rgba(255, 255, 255, 0.2)\"})}),text:new F.default({placement:\"point\",overflow:!0,font:\"bold 16px Arial\",text:n,fill:new s.default({color:\"black\"}),stroke:new l.default({color:\"white\",width:1}),offsetX:.5,offsetY:.5,rotation:0})}),{sketch:a,map:e})}a=null,setTimeout(function(){Z(e,j.default).setActive(!0)},1e3)},void 0)},t.addCustomGraphicsInteraction=function(e,t,n,r,i){K(e,L.default),K(e,k.default),K(e,N.default);var a=\"\",c=null;if(t===W.mapOperationEnums.graphicsDrawLine)a=\"LineString\";else if(t===W.mapOperationEnums.graphicsDrawPolygon)a=\"Polygon\";else if(t===W.mapOperationEnums.graphicsDrawCircle)a=\"Circle\";else if(t===W.mapOperationEnums.graphicsDrawAddText){a=\"Point\";var f=r.symbolSize;r.symbolSize=0,c=new F.default({font:\"normal \"+f+\"px Arial\",text:r.labelText,fill:new s.default({color:\"rgba(\"+r.fillColour.r+\",\"+r.fillColour.g+\",\\n \"+r.fillColour.b+\",\"+r.fillColour.a+\")\"}),stroke:new l.default({color:\"rgba(\"+r.strokeColour.r+\",\"+r.strokeColour.g+\",\\n \"+r.strokeColour.b+\",\"+r.strokeColour.a+\")\",width:1}),offsetX:1,offsetY:1,rotation:0})}var h=void 0,d=H(\"graphicDrawLayer\",e,n),p=Z(e,j.default),g=new k.default({source:d.getSource()});p.setActive(!1);var m=Z(e,D.default);m&&e.removeInteraction(m);var y=new D.default({source:d.getSource(),type:a,style:new o.default({fill:new s.default({color:\"rgba(\"+r.fillColour.r+\",\"+r.fillColour.g+\",\\n \"+r.fillColour.b+\",\"+r.fillColour.a+\")\"}),stroke:new l.default({color:\"rgba(\"+r.strokeColour.r+\",\"+r.strokeColour.g+\",\\n \"+r.strokeColour.b+\",\"+r.strokeColour.a+\")\",lineDash:[0,0],width:1*r.lineWidth}),image:new u.default({radius:1*r.symbolSize,stroke:new l.default({color:\"rgba(\"+r.strokeColour.r+\",\"+r.strokeColour.g+\",\\n \"+r.strokeColour.b+\",\"+r.strokeColour.a+\")\"}),fill:new s.default({color:\"rgba(\"+r.fillColour.r+\",\"+r.fillColour.g+\",\\n \"+r.fillColour.b+\",\"+r.fillColour.a+\")\"})}),text:c})});e.addInteraction(y),e.addInteraction(g),y.once(\"drawstart\",function(e){h=e.feature},h),y.once(\"drawend\",function(t){i(h);var n=e;n.removeInteraction(y),n.removeInteraction(g),y.setActive(!1),h&&(h.getGeometry(),h.setStyle(new o.default({fill:new s.default({color:\"rgba(\"+r.fillColour.r+\",\"+r.fillColour.g+\",\\n \"+r.fillColour.b+\",\"+r.fillColour.a+\")\"}),stroke:new l.default({color:\"rgba(\"+r.strokeColour.r+\",\"+r.strokeColour.g+\",\\n \"+r.strokeColour.b+\",\"+r.strokeColour.a+\")\",lineDash:[0,0],width:1*r.lineWidth}),image:new u.default({radius:1*r.symbolSize,stroke:new l.default({color:\"rgba(\"+r.strokeColour.r+\",\"+r.strokeColour.g+\",\\n \"+r.strokeColour.b+\",\"+r.strokeColour.a+\")\"}),fill:new s.default({color:\"rgba(\"+r.fillColour.r+\",\"+r.fillColour.g+\",\\n \"+r.fillColour.b+\",\"+r.fillColour.a+\")\"})}),text:c}))),h=null,setTimeout(function(){Z(e,j.default).setActive(!0)},1e3)},void 0)},t.startEditingCustomGraphics=function(e,t){K(e,L.default),K(e,k.default),K(e,N.default);var n=H(\"graphicDrawLayer\",e,t);if(0!==n.getSource().getFeatures().length){new k.default({source:n.getSource()});var r=new L.default({style:new o.default({image:new u.default({radius:5,fill:new s.default({color:\"yellow\"}),stroke:new l.default({color:\"black\"})})}),layers:[n],condition:A.default.singleClick}),i=new N.default({source:n.getSource(),deleteCondition:function(e){return A.default.shiftKeyOnly(e)&&A.default.singleClick(e)}});e.addInteraction(r),e.addInteraction(i)}else B.default.debug(\"There is no graphics to edit.\")},t.stopEditingCustomGraphics=function(e){K(e,k.default),K(e,L.default),K(e,N.default)},t.clearAllMapGraphics=function(e,t){K(e,L.default),K(e,k.default),K(e,N.default),H(\"graphicDrawLayer\",e,t).getSource().clear()},t.startDeleteGraphicsBySelection=function(e,t){K(e,L.default),K(e,k.default),K(e,N.default);var n=H(\"graphicDrawLayer\",e,t);if(0!==n.getSource().getFeatures().length){var r=new L.default({style:new o.default({image:new u.default({radius:5,fill:new s.default({color:\"blue\"}),stroke:new l.default({color:\"black\"})})}),layers:[n],condition:A.default.singleClick});r.set(\"layersEdit\",[]),r.set(\"layersDelete\",[r]),r.on(\"select\",function(e){!function(e){var t=void 0;if(e.target.get(\"layersEdit\")&&e.target.get(\"layersEdit\").length>0){if(e.selected.length>0)t=e.selected[0].getStyle(),e.selected[0].set(\"originalStyle\",t);else{if(!(e.deselected.length>0))return;t=e.deselected[0].get(\"originalStyle\"),e.deselected[0].setStyle(t),e.target.getFeatures().remove(e.deselected[0])}e.target.getFeatures().forEach(function(e){e.setStyle(new o.default({fill:new s.default({color:\"rgba(255, 255, 255, 0.7)\"}),stroke:new l.default({color:\"yellow\",lineDash:[10,10],width:4})}))})}else e.target.get(\"layersDelete\")&&e.target.get(\"layersDelete\").length>0&&e.target.getFeatures().forEach(function(n){t=n.getStyle(),n.setStyle(new o.default({fill:new s.default({color:\"rgba(255, 255, 255, 0.7)\"}),stroke:new l.default({color:\"yellow\",lineDash:[10,10],width:4}),text:t.getText()?null:new F.default({textAlign:\"Top\",textBaseline:\"Middle\",font:null===t.getText()?null:t.getText().getFont(),text:null===t.getText()?null:t.getText().getText(),fill:new s.default({color:\"black\"}),stroke:new l.default({color:\"white\",width:1}),offsetX:.5,offsetY:.5,rotation:0})})),confirm(\"Do you want to delete this graphic? You cannot undo this operation.\")?(e.target.getLayer(n).getSource().removeFeature(n),e.target.getFeatures().remove(n),e.target.getMap().removeInteraction(e.target)):(n.setStyle(t),e.target.getFeatures().remove(n),e.target.getMap().removeInteraction(e.target)),e.target.set(\"layersDelete\",[])})}(e)},void 0),e.addInteraction(r)}else B.default.debug(\"There is no graphics to delete.\")},t.zoomToInitialExtent=function(e){e.getView().setCenter(S.default.transform([-8,53.3442],\"EPSG:4326\",e.getView().getProjection())),e.getView().setZoom(7)},t.changeBaseLayerVisibility=function(e,t,n){q(n,t).getLayers().forEach(function(t){t.get(\"title\")===e.get(\"title\")?t.setVisible(!0):\"base\"===t.get(\"type\")&&t.setVisible(!1)})},t.printMap=function(e){HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,\"toBlob\",{value:function(e,t,n){var r=this;setTimeout(function(){for(var i=atob(r.toDataURL(t,n).split(\",\")[1]),o=i.length,a=new Uint8Array(o),s=0;s=s+1||(a.remove(i),a.insertAt(u,i)))}}},t.cleanLayers=function(e,t){q(t,e).getLayers().clear()},t.convertGeoJson=function(e){var t=(new d.default).writeFeatures(e,{dataProjection:z.GIS_MAP_PROJECTION,featureProjection:z.GIS_MAP_PROJECTION});return JSON.parse(t)},t.convertOnWKT=function(e){var t=e[0].getGeometry().clone().transform(z.GIS_MAP_PROJECTION,z.GIS_MAP_PROJECTION_DATA_NATIVE);return(new p.default).writeGeometry(t)},t.calculateBuffer=function(e,t,n,r){var i=void 0,o=new d.default;i=r?e[0].getGeometry().clone().transform(z.GIS_MAP_PROJECTION,z.GIS_MAP_PROJECTION_DATA_NATIVE):e[0].getGeometry().clone();var a=V.read(i).buffer(t);i=V.write(a);var s=o.writeGeometry(i);if(\"wkt\"===n)return(new p.default).writeGeometry(i);if(\"geojson\"===n)return JSON.parse(s);throw\"Parameter type not implemented\"},t.convertToFeature=function(e){return(new d.default).readFeatures(e)},t.getCenter=function(e){var t=(new jsts.io.GeoJSONReader).read(e).getCentroid().getCoordinate();return[t.x,t.y]}},function(e,t){e.exports=!1},function(e,t,n){var r=n(109)(\"meta\"),i=n(17),o=n(49),a=n(26).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(15)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:\"O\"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return\"symbol\"==typeof e?e:(\"string\"==typeof e?\"S\":\"P\")+e;if(!o(e,r)){if(!l(e))return\"F\";if(!t)return\"E\";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&f.NEED&&l(e)&&!o(e,r)&&c(e),e}}},function(e,t,n){var r=n(20)(\"unscopables\"),i=Array.prototype;null==i[r]&&n(42)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){\"use strict\";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(\"\"))return!1;var r={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(e){r[e]=e}),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}(e),l=1;l0;)this.pop()},l.prototype.extend=function(e){var t,n;for(t=0,n=e.length;t0&&e[1]>0},scale:function(e,t,n){return void 0===n&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n},toSize:function(e,t){return Array.isArray(e)?e:(void 0===t?t=[e,e]:t[0]=t[1]=e,t)}};t.a=r},function(e,t,n){\"use strict\";var r,i,o={};o.CLASS_HIDDEN=\"ol-hidden\",o.CLASS_SELECTABLE=\"ol-selectable\",o.CLASS_UNSELECTABLE=\"ol-unselectable\",o.CLASS_UNSUPPORTED=\"ol-unsupported\",o.CLASS_CONTROL=\"ol-control\",o.getFontFamilies=(i={},function(e){if(r||(r=document.createElement(\"div\").style),!(e in i)){r.font=e;var t=r.fontFamily;if(r.font=\"\",!t)return null;i[e]=t.split(/,\\s?/)}return i[e]}),t.a=o},function(e,t,n){\"use strict\";var r=n(1),i=n(31),o=n(122),a=n(288),s=n(87),l=n(10),u=function(e){var t=e||{},n=t.handleEvent?t.handleEvent:u.handleEvent;s.a.call(this,{handleEvent:n}),this.handleDownEvent_=t.handleDownEvent?t.handleDownEvent:u.handleDownEvent,this.handleDragEvent_=t.handleDragEvent?t.handleDragEvent:u.handleDragEvent,this.handleMoveEvent_=t.handleMoveEvent?t.handleMoveEvent:u.handleMoveEvent,this.handleUpEvent_=t.handleUpEvent?t.handleUpEvent:u.handleUpEvent,this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]};r.a.inherits(u,s.a),u.centroid=function(e){for(var t=e.length,n=0,r=0,i=0;i0}}else if(e.type==o.a.POINTERDOWN){var r=this.handleDownEvent_(e);this.handlingDownUpSequence=r,t=this.shouldStopEvent(r)}else e.type==o.a.POINTERMOVE&&this.handleMoveEvent_(e);return!t},u.prototype.shouldStopEvent=function(e){return e},t.a=u},function(e,t,n){var r=n(102),i=n(47),o=n(307),a=n(150),s=n(130),l=function(e,t,n){var u,c,f,h=e&l.F,d=e&l.G,p=e&l.S,g=e&l.P,m=e&l.B,y=e&l.W,v=d?i:i[t]||(i[t]={}),_=v.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(u in d&&(n=t),n)(c=!h&&b&&void 0!==b[u])&&s(v,u)||(f=c?b[u]:n[u],v[u]=d&&\"function\"!=typeof b[u]?n[u]:m&&c?o(f,r):y&&b[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):g&&\"function\"==typeof f?o(Function.call,f):f,g&&((v.virtual||(v.virtual={}))[u]=f,e&l.R&&_&&!_[u]&&a(_,u,f)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n=e.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=n)},function(e,t,n){var r=n(151),i=n(469),o=n(308),a=Object.defineProperty;t.f=n(104)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(153)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(e,t,n){\"use strict\";t.__esModule=!0;var r,i=n(474),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;ndocument.F=Object<\\/script>\"),e.close(),l=e.F;r--;)delete l.prototype[o[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(333),i=n(239).concat(\"length\",\"prototype\");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){\"use strict\";var r=n(11),i=n(26),o=n(23),a=n(20)(\"species\");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+\": incorrect invocation!\");return e}},function(e,t,n){var r=n(56),i=n(346),o=n(251),a=n(9),s=n(22),l=n(253),u={},c={};(t=e.exports=function(e,t,n,f,h){var d,p,g,m,y=h?function(){return e}:l(e),v=r(n,f,t?2:1),_=0;if(\"function\"!=typeof y)throw TypeError(e+\" is not iterable!\");if(o(y)){for(d=s(e.length);d>_;_++)if((m=t?v(a(p=e[_])[0],p[1]):v(e[_]))===u||m===c)return m}else for(g=y.call(e);!(p=g.next()).done;)if((m=i(g,v,p.value,t))===u||m===c)return m}).BREAK=u,t.RETURN=c},function(e,t,n){var r=n(43);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError(\"Incompatible receiver, \"+t+\" required!\");return e}},function(e,t,n){var r=n(137),i=n(790),o=n(791),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?\"[object Undefined]\":\"[object Null]\":a&&a in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(805),i=n(808);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){\"use strict\";t.a={ADD:\"add\",REMOVE:\"remove\"}},function(e,t,n){\"use strict\";var r=n(16),i={SINGLECLICK:\"singleclick\",CLICK:r.a.CLICK,DBLCLICK:r.a.DBLCLICK,POINTERDRAG:\"pointerdrag\",POINTERMOVE:\"pointermove\",POINTERDOWN:\"pointerdown\",POINTERUP:\"pointerup\",POINTEROVER:\"pointerover\",POINTEROUT:\"pointerout\",POINTERENTER:\"pointerenter\",POINTERLEAVE:\"pointerleave\",POINTERCANCEL:\"pointercancel\"};t.a=i},function(e,t,n){\"use strict\";var r=n(18),i=n(284),o={add:function(e,t){return e[0]+=t[0],e[1]+=t[1],e},closestOnCircle:function(e,t){var n=t.getRadius(),r=t.getCenter(),i=r[0],o=r[1],a=e[0]-i,s=e[1]-o;0===a&&0===s&&(a=1);var l=Math.sqrt(a*a+s*s);return[i+n*a/l,o+n*s/l]},closestOnSegment:function(e,t){var n,r,i=e[0],o=e[1],a=t[0],s=t[1],l=a[0],u=a[1],c=s[0],f=s[1],h=c-l,d=f-u,p=0===h&&0===d?0:(h*(i-l)+d*(o-u))/(h*h+d*d||0);return p<=0?(n=l,r=u):p>=1?(n=c,r=f):(n=l+p*h,r=u+p*d),[n,r]},createStringXY:function(e){return function(t){return o.toStringXY(t,e)}},degreesToStringHDMS:function(e,t,n){var o=r.a.modulo(t+180,360)-180,a=Math.abs(3600*o),s=n||0,l=Math.pow(10,s),u=Math.floor(a/3600),c=Math.floor((a-3600*u)/60),f=a-3600*u-60*c;return(f=Math.ceil(f*l)/l)>=60&&(f=0,c+=1),c>=60&&(c=0,u+=1),u+\"° \"+i.a.padNumber(c,2)+\"′ \"+i.a.padNumber(f,2,s)+\"″\"+(0==o?\"\":\" \"+e.charAt(o<0?1:0))},format:function(e,t,n){return e?t.replace(\"{x}\",e[0].toFixed(n)).replace(\"{y}\",e[1].toFixed(n)):\"\"},equals:function(e,t){for(var n=!0,r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n},rotate:function(e,t){var n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,o=e[1]*n+e[0]*r;return e[0]=i,e[1]=o,e},scale:function(e,t){return e[0]*=t,e[1]*=t,e},sub:function(e,t){return e[0]-=t[0],e[1]-=t[1],e},squaredDistance:function(e,t){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r},distance:function(e,t){return Math.sqrt(o.squaredDistance(e,t))},squaredDistanceToSegment:function(e,t){return o.squaredDistance(e,o.closestOnSegment(e,t))},toStringHDMS:function(e,t){return e?o.degreesToStringHDMS(\"NS\",e[1],t)+\" \"+o.degreesToStringHDMS(\"EW\",e[0],t):\"\"},toStringXY:function(e,t){return o.format(e,\"{x}, {y}\",t)}};t.a=o},function(e,t,n){\"use strict\";var r={coordinates:function(e,t,n,r,i){var o,a=void 0!==i?i:[],s=0;for(o=t;o=e.minResolution&&t=1024){var n,o=0;for(n in r)0==(3&o++)&&(delete r[n],--i)}t=s.fromStringInternal_(e),r[e]=t,++i}return t}),s.fromStringInternal_=function(e){var t,n,r,i,a,l;if(s.NAMED_COLOR_RE_.exec(e)&&(e=s.fromNamed(e)),s.HEX_COLOR_RE_.exec(e)){var u,c=e.length-1;u=c<=4?1:2;var f=4===c||8===c;t=parseInt(e.substr(1+0*u,u),16),n=parseInt(e.substr(1+1*u,u),16),r=parseInt(e.substr(1+2*u,u),16),i=f?parseInt(e.substr(1+3*u,u),16):255,1==u&&(t=(t<<4)+t,n=(n<<4)+n,r=(r<<4)+r,f&&(i=(i<<4)+i)),a=[t,n,r,i/255]}else 0==e.indexOf(\"rgba(\")?(l=e.slice(5,-1).split(\",\").map(Number),a=s.normalize(l)):0==e.indexOf(\"rgb(\")?((l=e.slice(4,-1).split(\",\").map(Number)).push(1),a=s.normalize(l)):o.a.assert(!1,14);return a},s.normalize=function(e,t){var n=t||[];return n[0]=a.a.clamp(e[0]+.5|0,0,255),n[1]=a.a.clamp(e[1]+.5|0,0,255),n[2]=a.a.clamp(e[2]+.5|0,0,255),n[3]=a.a.clamp(e[3],0,1),n},s.toString=function(e){var t=e[0];t!=(0|t)&&(t=t+.5|0);var n=e[1];n!=(0|n)&&(n=n+.5|0);var r=e[2];return r!=(0|r)&&(r=r+.5|0),\"rgba(\"+t+\",\"+n+\",\"+r+\",\"+(void 0===e[3]?1:e[3])+\")\"},t.a=s},function(e,t,n){\"use strict\";var r=n(37),i=function(e,t){this.arr_=void 0!==e?e:[],this.usage_=void 0!==t?t:i.Usage_.STATIC_DRAW};i.prototype.getArray=function(){return this.arr_},i.prototype.getUsage=function(){return this.usage_},i.Usage_={STATIC_DRAW:r.a.STATIC_DRAW,STREAM_DRAW:r.a.STREAM_DRAW,DYNAMIC_DRAW:r.a.DYNAMIC_DRAW},t.a=i},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(25),i=n(21),o=n(298),a=n(223),s=n(221),l=function(e){var t=e||{};this.geometry_=null,this.geometryFunction_=l.defaultGeometryFunction,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex};l.prototype.clone=function(){var e=this.getGeometry();return e&&e.clone&&(e=e.clone()),new l({geometry:e,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},l.prototype.getRenderer=function(){return this.renderer_},l.prototype.setRenderer=function(e){this.renderer_=e},l.prototype.getGeometry=function(){return this.geometry_},l.prototype.getGeometryFunction=function(){return this.geometryFunction_},l.prototype.getFill=function(){return this.fill_},l.prototype.setFill=function(e){this.fill_=e},l.prototype.getImage=function(){return this.image_},l.prototype.setImage=function(e){this.image_=e},l.prototype.getStroke=function(){return this.stroke_},l.prototype.setStroke=function(e){this.stroke_=e},l.prototype.getText=function(){return this.text_},l.prototype.setText=function(e){this.text_=e},l.prototype.getZIndex=function(){return this.zIndex_},l.prototype.setGeometry=function(e){\"function\"==typeof e?this.geometryFunction_=e:\"string\"==typeof e?this.geometryFunction_=function(t){return t.get(e)}:e?void 0!==e&&(this.geometryFunction_=function(){return e}):this.geometryFunction_=l.defaultGeometryFunction,this.geometry_=e},l.prototype.setZIndex=function(e){this.zIndex_=e},l.createFunction=function(e){var t,n;return\"function\"==typeof e?t=e:(Array.isArray(e)?n=e:(r.a.assert(e instanceof l,41),n=[e]),t=function(){return n}),t},l.default_=null,l.defaultFunction=function(e,t){if(!l.default_){var n=new a.default({color:\"rgba(255,255,255,0.4)\"}),r=new s.default({color:\"#3399CC\",width:1.25});l.default_=[new l({image:new o.default({fill:n,stroke:r,radius:5}),fill:n,stroke:r})]}return l.default_},l.createDefaultEditing=function(){var e={},t=[255,255,255,1],n=[0,153,255,1];return e[i.a.POLYGON]=[new l({fill:new a.default({color:[255,255,255,.5]})})],e[i.a.MULTI_POLYGON]=e[i.a.POLYGON],e[i.a.LINE_STRING]=[new l({stroke:new s.default({color:t,width:5})}),new l({stroke:new s.default({color:n,width:3})})],e[i.a.MULTI_LINE_STRING]=e[i.a.LINE_STRING],e[i.a.CIRCLE]=e[i.a.POLYGON].concat(e[i.a.LINE_STRING]),e[i.a.POINT]=[new l({image:new o.default({radius:6,fill:new a.default({color:n}),stroke:new s.default({color:t,width:1.5})}),zIndex:1/0})],e[i.a.MULTI_POINT]=e[i.a.POINT],e[i.a.GEOMETRY_COLLECTION]=e[i.a.POLYGON].concat(e[i.a.LINE_STRING],e[i.a.POINT]),e},l.defaultGeometryFunction=function(e){return e.getGeometry()},t.default=l},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(472),i=n(310);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(26).f,i=n(49),o=n(20)(\"toStringTag\");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(57),i=n(20)(\"toStringTag\"),o=\"Arguments\"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?\"Undefined\":null===e?\"Null\":\"string\"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):\"Object\"==(a=r(t))&&\"function\"==typeof t.callee?\"Arguments\":a}},function(e,t,n){var r=n(3),i=n(68),o=n(15),a=n(242),s=\"[\"+a+\"]\",l=RegExp(\"^\"+s+s+\"*\"),u=RegExp(s+s+\"*$\"),c=function(e,t,n){var i={},s=o(function(){return!!a[e]()||\"​…\"!=\"​…\"[e]()}),l=i[e]=s?t(f):a[e];n&&(i[n]=l),r(r.P+r.F*s,\"String\",i)},f=c.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(l,\"\")),2&t&&(e=e.replace(u,\"\")),e};e.exports=c},function(e,t){e.exports={}},function(e,t,n){\"use strict\";function r(e){return\"/\"===e.charAt(0)?e:\"/\"+e}function i(e){return\"/\"===e.charAt(0)?e.substr(1):e}function o(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!==\"/?#\".indexOf(e.charAt(t.length))}function a(e,t){return o(e,t)?e.substr(t.length):e}function s(e){return\"/\"===e.charAt(e.length-1)?e.slice(0,-1):e}function l(e){var t=e.pathname,n=e.search,r=e.hash,i=t||\"/\";return n&&\"?\"!==n&&(i+=\"?\"===n.charAt(0)?n:\"?\"+n),r&&\"#\"!==r&&(i+=\"#\"===r.charAt(0)?r:\"#\"+r),i}function u(e,t,n,r){var i;\"string\"==typeof e?(i=function(e){var t=e||\"/\",n=\"\",r=\"\",i=t.indexOf(\"#\");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf(\"?\");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:\"?\"===n?\"\":n,hash:\"#\"===r?\"\":r}}(e)).state=t:(void 0===(i=Object(E.a)({},e)).pathname&&(i.pathname=\"\"),i.search?\"?\"!==i.search.charAt(0)&&(i.search=\"?\"+i.search):i.search=\"\",i.hash?\"#\"!==i.hash.charAt(0)&&(i.hash=\"#\"+i.hash):i.hash=\"\",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname \"'+i.pathname+'\" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?\"/\"!==i.pathname.charAt(0)&&(i.pathname=Object(S.a)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname=\"/\"),i}function c(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(x.a)(e.state,t.state)}function f(){var e=null,t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o=\"function\"==typeof e?e(t,n):e;\"string\"==typeof o?\"function\"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){function n(){r&&e.apply(void 0,arguments)}var r=!0;return t.push(n),function(){r=!1,t=t.filter(function(e){return e!==n})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rn?r.splice(n,r.length-n,i):r.push(i),t({action:\"PUSH\",location:i,index:n,entries:r})}})},replace:function(e,r){var i=u(e,r,n(),b.location);g.confirmTransitionTo(i,\"REPLACE\",o,function(e){e&&(b.entries[b.index]=i,t({action:\"REPLACE\",location:i}))})},go:r,goBack:function(){r(-1)},goForward:function(){r(1)},canGo:function(e){var t=b.index+e;return t>=0&&t0},s.prototype.removeEventListener=function(e,t){var n=this.listeners_[e];if(n){var i=n.indexOf(t);e in this.pendingRemovals_?(n[i]=r.a.nullFunction,++this.pendingRemovals_[e]):(n.splice(i,1),0===n.length&&delete this.listeners_[e])}},t.a=s},function(e,t,n){\"use strict\";var r=n(18),i={lineString:function(e,t,n,r,o,a,s){var l=void 0!==s?s:[];return a||(n=i.radialDistance(e,t,n,r,o,l,0),e=l,t=0,r=2),l.length=i.douglasPeucker(e,t,n,r,o,l,0),l},douglasPeucker:function(e,t,n,i,o,a,s){var l=(n-t)/i;if(l<3){for(;t0;){var d=f.pop(),p=f.pop(),g=0,m=e[p],y=e[p+1],v=e[d],_=e[d+1];for(c=p+i;cg&&(h=c,g=S)}g>o&&(u[(h-t)/i]=1,p+io&&(a[s++]=c,a[s++]=f,l=c,u=f);return c==l&&f==u||(a[s++]=c,a[s++]=f),s},snap:function(e,t){return t*Math.round(e/t)},quantize:function(e,t,n,r,o,a,s){if(t==n)return s;var l,u,c=i.snap(e[t],o),f=i.snap(e[t+1],o);t+=r,a[s++]=c,a[s++]=f;do{if(l=i.snap(e[t],o),u=i.snap(e[t+1],o),(t+=r)==n)return a[s++]=l,a[s++]=u,s}while(l==c&&u==f);for(;t0&&m>p)&&(g<0&&y0&&y>g)?(l=h,u=d):(a[s++]=l,a[s++]=u,c=l,f=u,l=h,u=d)}}return a[s++]=l,a[s++]=u,s},quantizes:function(e,t,n,r,o,a,s,l){var u,c;for(u=0,c=n.length;u1)u=n;else{if(p>0){for(l=0;lo&&(o=c),a=l,s=u}return o},getsMaxSquaredDelta:function(e,t,n,r,o){var a,s;for(a=0,s=n.length;ao&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a},linearRingsContainsXY:function(e,t,n,r,o,a){if(0===n.length)return!1;if(!i.linearRingContainsXY(e,t,n[0],r,o,a))return!1;var s,l;for(s=1,l=n.length;s0},linearRingsAreOriented:function(e,t,n,r,o){var a,s,l=void 0!==o&&o;for(a=0,s=n.length;ar.width?r.width-c:g,R=l+f>r.height?r.height-f:l,O=this.tmpExtent_,M=y[3]+P*d+y[1],A=y[0]+R*d+y[2],I=t-y[3],L=n-y[0];(E||0!==h)&&(x=[I,L],T=[I+M,L],w=[I+M,L+A],C=[I,L+A]);var k=null;if(0!==h){var N=t+i,F=n+o;k=_.a.compose(S,N,F,1,1,h,-N,-F),a.default.createOrUpdateEmpty(O),a.default.extendCoordinate(O,_.a.apply(S,x)),a.default.extendCoordinate(O,_.a.apply(S,T)),a.default.extendCoordinate(O,_.a.apply(S,w)),a.default.extendCoordinate(O,_.a.apply(S,C))}else a.default.createOrUpdate(I,L,I+M,L+A,O);var D=e.canvas,j=O[0]<=D.width&&O[2]>=0&&O[1]<=D.height&&O[3]>=0;if(s){if(!j&&1==s[4])return;a.default.extend(s,O);var G=j?[e,k?k.slice(0):null,u,r,c,f,P,R,t,n,d]:null;G&&E&&G.push(v,b,x,T,w,C),s.push(G)}else j&&(E&&this.replayTextBackground_(e,x,T,w,C,v,b),m.a.drawImage(e,k,u,r,c,f,P,R,t,n,d))},b.prototype.applyPixelRatio=function(e){var t=this.pixelRatio;return 1==t?e:e.map(function(e){return e*t})},b.prototype.appendFlatCoordinates=function(e,t,n,r,i,o){var l=this.coordinates.length,u=this.getBufferedMaxExtent();o&&(t+=r);var c,f,h,d=[e[t],e[t+1]],p=[NaN,NaN],g=!0;for(c=t+r;c5){var n=e[4];if(1==n||n==e.length-5){var r={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};if(!this.declutterTree.collides(r)){this.declutterTree.insert(r);for(var i=m.a.drawImage,o=5,s=e.length;o11&&this.replayTextBackground_(l[0],l[13],l[14],l[15],l[16],l[11],l[12]),i.apply(void 0,l))}}e.length=5,a.default.createOrUpdateEmpty(e)}}},b.prototype.replay_=function(e,t,n,o,s,l){var u;this.pixelCoordinates_&&i.a.equals(t,this.renderedTransform_)?u=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),u=h.a.transform2D(this.coordinates,0,this.coordinates.length,2,t,this.pixelCoordinates_),_.a.setFromArray(this.renderedTransform_,t));for(var d,g,b,E,S,x,T,w,C,P=!p.a.isEmpty(n),R=0,O=o.length,M=0,A=0,I=0,L=null,k=null,N=this.coordinateCache_,F=this.viewRotation_,D={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:F},j=this.instructions!=o||this.overlaps?0:200;Rj&&(this.fill_(e),A=0),I>j&&(e.stroke(),I=0),A||I||(e.beginPath(),E=S=NaN),++R;break;case y.a.CIRCLE:var z=u[M=W[1]],V=u[M+1],q=u[M+2]-z,H=u[M+3]-V,Y=Math.sqrt(q*q+H*H);e.moveTo(z+Y,V),e.arc(z,V,Y,0,2*Math.PI,!0),++R;break;case y.a.CLOSE_PATH:e.closePath(),++R;break;case y.a.CUSTOM:M=W[1],d=W[2];var X=W[3],K=W[4],Z=6==W.length?W[5]:void 0;D.geometry=X,D.feature=G,R in N||(N[R]=[]);var Q=N[R];Z?Z(u,M,d,2,Q):(Q[0]=u[M],Q[1]=u[M+1],Q.length=2),K(Q,D),++R;break;case y.a.DRAW_IMAGE:M=W[1],d=W[2],C=W[3],g=W[4],b=W[5],w=s?null:W[6];var J,$,ee,te=W[7],ne=W[8],re=W[9],ie=W[10],oe=W[11],ae=W[12],se=W[13],le=W[14],ue=W[15];for(W.length>16?(J=W[16],$=W[17],ee=W[18]):(J=m.a.defaultPadding,$=ee=!1),oe&&(ae+=F);Mthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},b.prototype.applyFill=function(e,t){var n=e.fillStyle,r=[y.a.SET_FILL_STYLE,n];if(\"string\"!=typeof n){var i=t.getExtent();r.push([i[0],i[3]])}this.instructions.push(r)},b.prototype.applyStroke=function(e){this.instructions.push([y.a.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth*this.pixelRatio,e.lineCap,e.lineJoin,e.miterLimit,this.applyPixelRatio(e.lineDash),e.lineDashOffset*this.pixelRatio])},b.prototype.updateFillStyle=function(e,t,n){var r=e.fillStyle;\"string\"==typeof r&&e.currentFillStyle==r||(t.call(this,e,n),e.currentFillStyle=r)},b.prototype.updateStrokeStyle=function(e,t){var n=e.strokeStyle,r=e.lineCap,o=e.lineDash,a=e.lineDashOffset,s=e.lineJoin,l=e.lineWidth,u=e.miterLimit;(e.currentStrokeStyle!=n||e.currentLineCap!=r||o!=e.currentLineDash&&!i.a.equals(e.currentLineDash,o)||e.currentLineDashOffset!=a||e.currentLineJoin!=s||e.currentLineWidth!=l||e.currentMiterLimit!=u)&&(t.call(this,e),e.currentStrokeStyle=n,e.currentLineCap=r,e.currentLineDash=o,e.currentLineDashOffset=a,e.currentLineJoin=s,e.currentLineWidth=l,e.currentMiterLimit=u)},b.prototype.endGeometry=function(e,t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[y.a.END_GEOMETRY,t];this.instructions.push(n),this.hitDetectionInstructions.push(n)},b.prototype.finish=r.a.nullFunction,b.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=a.default.clone(this.maxExtent),this.maxLineWidth>0)){var e=this.resolution*(this.maxLineWidth+1)/2;a.default.buffer(this.bufferedMaxExtent_,e,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},t.a=b},function(e,t,n){\"use strict\";t.a={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(65),o=n(125),a=n(430),s=n(10),l=n(129),u=function(e){var t=e||{},n=s.a.assign({},t);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,o.a.call(this,n),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting,this.renderMode_=t.renderMode||a.a.VECTOR,this.type=i.a.VECTOR};r.a.inherits(u,o.a),u.prototype.getDeclutter=function(){return this.declutter_},u.prototype.setDeclutter=function(e){this.declutter_=e},u.prototype.getRenderBuffer=function(){return this.renderBuffer_},u.prototype.getRenderOrder=function(){return this.get(u.Property_.RENDER_ORDER)},u.prototype.getSource,u.prototype.getStyle=function(){return this.style_},u.prototype.getStyleFunction=function(){return this.styleFunction_},u.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},u.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},u.prototype.setRenderOrder=function(e){this.set(u.Property_.RENDER_ORDER,e)},u.prototype.setStyle=function(e){this.style_=void 0!==e?e:l.default.defaultFunction,this.styleFunction_=null===e?void 0:l.default.createFunction(this.style_),this.changed()},u.prototype.getRenderMode=function(){return this.renderMode_},u.Property_={RENDER_ORDER:\"renderOrder\"},t.default=u},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(95),o=n(121),a=n(206),s=n(14),l=n(25),u=n(13),c=n(36),f=n(16),h=n(4),d=n(449),p=n(31),g=n(968),m=n(10),y=n(300),v=n(97),_=n(301),b=n(222),E=function(e){var t=e||{};y.a.call(this,{attributions:t.attributions,logo:t.logo,projection:void 0,state:v.a.READY,wrapX:void 0===t.wrapX||t.wrapX}),this.loader_=r.a.nullFunction,this.format_=t.format,this.overlaps_=null==t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&(l.a.assert(this.format_,7),this.loader_=d.a.xhr(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:g.a.all;var n,o,a=void 0===t.useSpatialIndex||t.useSpatialIndex;this.featuresRtree_=a?new b.a:null,this.loadedExtentsRtree_=new b.a,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,t.features instanceof i.default?o=(n=t.features).getArray():Array.isArray(t.features)&&(o=t.features),a||void 0!==n||(n=new i.default(o)),void 0!==o&&this.addFeaturesInternal(o),void 0!==n&&this.bindFeaturesCollection_(n)};r.a.inherits(E,y.a),E.prototype.addFeature=function(e){this.addFeatureInternal(e),this.changed()},E.prototype.addFeatureInternal=function(e){var t=r.a.getUid(e).toString();if(this.addToIndex_(t,e)){this.setupChangeEvents_(t,e);var n=e.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,e)}else this.nullGeometryFeatures_[t]=e;this.dispatchEvent(new E.Event(_.a.ADDFEATURE,e))}},E.prototype.setupChangeEvents_=function(e,t){this.featureChangeKeys_[e]=[u.a.listen(t,f.a.CHANGE,this.handleFeatureChange_,this),u.a.listen(t,a.a.PROPERTYCHANGE,this.handleFeatureChange_,this)]},E.prototype.addToIndex_=function(e,t){var n=!0,r=t.getId();return void 0!==r?r.toString()in this.idIndex_?n=!1:this.idIndex_[r.toString()]=t:(l.a.assert(!(e in this.undefIdIndex_),30),this.undefIdIndex_[e]=t),n},E.prototype.addFeatures=function(e){this.addFeaturesInternal(e),this.changed()},E.prototype.addFeaturesInternal=function(e){var t,n,i,o,a=[],s=[],l=[];for(n=0,i=e.length;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(500),i=n(326);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++sc;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(57);e.exports=Array.isArray||function(e){return\"Array\"==r(e)}},function(e,t,n){var r=n(58),i=n(68);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),u=s.length;return l<0||l>=u?e?\"\":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){var r=n(17),i=n(57),o=n(20)(\"match\");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:\"RegExp\"==i(e))}},function(e,t,n){var r=n(20)(\"iterator\"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){\"use strict\";var r=n(133),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if(\"function\"==typeof n){var o=n.call(e,t);if(\"object\"!=typeof o)throw new TypeError(\"RegExp exec method returned something other than an Object or null\");return o}if(\"RegExp\"!==r(e))throw new TypeError(\"RegExp#exec called on incompatible receiver\");return i.call(e,t)}},function(e,t,n){\"use strict\";n(350);var r=n(43),i=n(42),o=n(15),a=n(68),s=n(20),l=n(257),u=s(\"species\"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:\"7\"},e},\"7\"!==\"\".replace(e,\"$\")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=\"ab\".split(e);return 2===n.length&&\"a\"===n[0]&&\"b\"===n[1]}();e.exports=function(e,t,n){var h=s(e),d=!o(function(){var t={};return t[h]=function(){return 7},7!=\"\"[e](t)}),p=d?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},\"split\"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[h](\"\"),!t}):void 0;if(!d||!p||\"replace\"===e&&!c||\"split\"===e&&!f){var g=/./[h],m=n(a,h,\"\"[e],function(e,t,n,r,i){return t.exec===l?d&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),y=m[0],v=m[1];r(String.prototype,e,y),i(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,n){var r=n(11).navigator;e.exports=r&&r.userAgent||\"\"},function(e,t,n){\"use strict\";var r=n(11),i=n(3),o=n(43),a=n(117),s=n(91),l=n(116),u=n(115),c=n(17),f=n(15),h=n(184),d=n(132),p=n(243);e.exports=function(e,t,n,g,m,y){var v=r[e],_=v,b=m?\"set\":\"add\",E=_&&_.prototype,S={},x=function(e){var t=E[e];o(E,e,\"delete\"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:\"has\"==e?function(e){return!(y&&!c(e))&&t.call(this,0===e?0:e)}:\"get\"==e?function(e){return y&&!c(e)?void 0:t.call(this,0===e?0:e)}:\"add\"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(\"function\"==typeof _&&(y||E.forEach&&!f(function(){(new _).entries().next()}))){var T=new _,w=T[b](y?{}:-0,1)!=T,C=f(function(){T.has(1)}),P=h(function(e){new _(e)}),R=!y&&f(function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)});P||((_=t(function(t,n){u(t,_,e);var r=p(new v,t,_);return null!=n&&l(n,m,r[b],r),r})).prototype=E,E.constructor=_),(C||R)&&(x(\"delete\"),x(\"has\"),m&&x(\"get\")),(R||w)&&x(b),y&&E.clear&&delete E.clear}else _=g.getConstructor(t,e,m,b),a(_.prototype,n),s.NEED=!0;return d(_,e),S[e]=_,i(i.G+i.W+i.F*(_!=v),S),y||g.setStrong(_,e,m),_}},function(e,t,n){for(var r,i=n(11),o=n(42),a=n(109),s=a(\"typed_array\"),l=a(\"view\"),u=!(!i.ArrayBuffer||!i.DataView),c=u,f=0,h=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");f<9;)(r=i[h[f++]])?(o(r.prototype,s,!0),o(r.prototype,l,!0)):c=!1;e.exports={ABV:u,CONSTR:c,TYPED:s,VIEW:l}},function(e,t,n){\"use strict\";e.exports=n(90)||!n(15)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(11)[e]})},function(e,t,n){\"use strict\";var r=n(3);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){\"use strict\";var r=n(3),i=n(32),o=n(56),a=n(116);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,l=arguments[1];return i(this),(t=void 0!==l)&&i(l),null==e?new this:(n=[],t?(r=0,s=o(l,arguments[2],2),a(e,!1,function(e){n.push(s(e,r++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){\"use strict\";function r(){return(r=Object.assign||function(e){for(var t=1;t=a[0]&&s[2]<=a[2]||s[1]>=a[1]&&s[3]<=a[3]||o.a.forEach(e,t,n,i,function(e,t){return r.default.intersectsSegment(a,e,t)}))},lineStrings:function(e,t,n,r,i){var o,s;for(o=0,s=n.length;othis.maxX&&(this.maxX=e.maxX),e.minYthis.maxY&&(this.maxY=e.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY},t.a=r},function(e,t,n){\"use strict\";var r=n(1),i=n(4),o=n(216),a=n(30),s=n(445),l=n(37),u=function(e,t){o.a.call(this),this.tolerance=e,this.maxExtent=t,this.origin=i.default.getCenter(t),this.projectionMatrix_=a.a.create(),this.offsetRotateMatrix_=a.a.create(),this.offsetScaleMatrix_=a.a.create(),this.tmpMat4_=s.a.create(),this.indices=[],this.indicesBuffer=null,this.startIndices=[],this.startIndicesFeature=[],this.vertices=[],this.verticesBuffer=null,this.lineStringReplay=void 0};r.a.inherits(u,o.a),u.prototype.getDeleteResourcesFunction=function(e){},u.prototype.finish=function(e){},u.prototype.setUpProgram=function(e,t,n,r){},u.prototype.shutDownProgram=function(e,t){},u.prototype.drawReplay=function(e,t,n,r){},u.prototype.drawHitDetectionReplayOneByOne=function(e,t,n,r,i){},u.prototype.drawHitDetectionReplay=function(e,t,n,r,i,o){return i?this.drawHitDetectionReplayOneByOne(e,t,n,r,o):this.drawHitDetectionReplayAll(e,t,n,r)},u.prototype.drawHitDetectionReplayAll=function(e,t,n,r){return e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.drawReplay(e,t,n,!0),r(null)||void 0},u.prototype.replay=function(e,t,n,r,i,o,u,c,f,h,d){var p,g,m,y,v,_,b,E,S=e.getGL();this.lineStringReplay&&(p=S.isEnabled(S.STENCIL_TEST),g=S.getParameter(S.STENCIL_FUNC),m=S.getParameter(S.STENCIL_VALUE_MASK),y=S.getParameter(S.STENCIL_REF),v=S.getParameter(S.STENCIL_WRITEMASK),_=S.getParameter(S.STENCIL_FAIL),b=S.getParameter(S.STENCIL_PASS_DEPTH_PASS),E=S.getParameter(S.STENCIL_PASS_DEPTH_FAIL),S.enable(S.STENCIL_TEST),S.clear(S.STENCIL_BUFFER_BIT),S.stencilMask(255),S.stencilFunc(S.ALWAYS,1,255),S.stencilOp(S.KEEP,S.KEEP,S.REPLACE),this.lineStringReplay.replay(e,t,n,r,i,o,u,c,f,h,d),S.stencilMask(0),S.stencilFunc(S.NOTEQUAL,1,255)),e.bindBuffer(l.a.ARRAY_BUFFER,this.verticesBuffer),e.bindBuffer(l.a.ELEMENT_ARRAY_BUFFER,this.indicesBuffer);var x=this.setUpProgram(S,e,i,o),T=a.a.reset(this.projectionMatrix_);a.a.scale(T,2/(n*i[0]),2/(n*i[1])),a.a.rotate(T,-r),a.a.translate(T,-(t[0]-this.origin[0]),-(t[1]-this.origin[1]));var w=a.a.reset(this.offsetScaleMatrix_);a.a.scale(w,2/i[0],2/i[1]);var C,P=a.a.reset(this.offsetRotateMatrix_);return 0!==r&&a.a.rotate(P,-r),S.uniformMatrix4fv(x.u_projectionMatrix,!1,s.a.fromTransform(this.tmpMat4_,T)),S.uniformMatrix4fv(x.u_offsetScaleMatrix,!1,s.a.fromTransform(this.tmpMat4_,w)),S.uniformMatrix4fv(x.u_offsetRotateMatrix,!1,s.a.fromTransform(this.tmpMat4_,P)),S.uniform1f(x.u_opacity,u),void 0===f?this.drawReplay(S,e,c,!1):C=this.drawHitDetectionReplay(S,e,c,f,h,d),this.shutDownProgram(S,x),this.lineStringReplay&&(p||S.disable(S.STENCIL_TEST),S.clear(S.STENCIL_BUFFER_BIT),S.stencilFunc(g,y,m),S.stencilMask(v),S.stencilOp(_,E,b)),C},u.prototype.drawElements=function(e,t,n,r){var i=t.hasOESElementIndexUint?l.a.UNSIGNED_INT:l.a.UNSIGNED_SHORT,o=r-n,a=n*(t.hasOESElementIndexUint?4:2);e.drawElements(l.a.TRIANGLES,o,i,a)},t.a=u},function(e,t,n){\"use strict\";var r={defaultFont:\"10px sans-serif\",defaultFillStyle:[0,0,0,1],defaultLineCap:\"round\",defaultLineDash:[],defaultLineDashOffset:0,defaultLineJoin:\"round\",defaultMiterLimit:10,defaultStrokeStyle:[0,0,0,1],defaultTextAlign:.5,defaultTextBaseline:.5,defaultLineWidth:1,triangleIsCounterClockwise:function(e,t,n,i,o,a){var s=(n-e)*(a-t)-(o-e)*(i-t);return s<=r.EPSILON&&s>=-r.EPSILON?void 0:s>0}};r.EPSILON=Number.EPSILON||2.220446049250313e-16,t.a=r},function(e,t,n){\"use strict\";var r=n(1),i=n(207),o=n(14),a=n(13),s=n(10),l=n(37),u=n(447),c=function(e,t){this.canvas_=e,this.gl_=t,this.bufferCache_={},this.shaderCache_={},this.programCache_={},this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null,this.hasOESElementIndexUint=o.a.includes(r.a.WEBGL_EXTENSIONS,\"OES_element_index_uint\"),this.hasOESElementIndexUint&&t.getExtension(\"OES_element_index_uint\"),a.a.listen(this.canvas_,u.a.LOST,this.handleWebGLContextLost,this),a.a.listen(this.canvas_,u.a.RESTORED,this.handleWebGLContextRestored,this)};r.a.inherits(c,i.a),c.prototype.bindBuffer=function(e,t){var n=this.getGL(),i=t.getArray(),o=String(r.a.getUid(t));if(o in this.bufferCache_){var a=this.bufferCache_[o];n.bindBuffer(e,a.buffer)}else{var s,u=n.createBuffer();n.bindBuffer(e,u),e==l.a.ARRAY_BUFFER?s=new Float32Array(i):e==l.a.ELEMENT_ARRAY_BUFFER&&(s=this.hasOESElementIndexUint?new Uint32Array(i):new Uint16Array(i)),n.bufferData(e,s,t.getUsage()),this.bufferCache_[o]={buf:t,buffer:u}}},c.prototype.deleteBuffer=function(e){var t=this.getGL(),n=String(r.a.getUid(e)),i=this.bufferCache_[n];t.isContextLost()||t.deleteBuffer(i.buffer),delete this.bufferCache_[n]},c.prototype.disposeInternal=function(){a.a.unlistenAll(this.canvas_);var e=this.getGL();if(!e.isContextLost()){var t;for(t in this.bufferCache_)e.deleteBuffer(this.bufferCache_[t].buffer);for(t in this.programCache_)e.deleteProgram(this.programCache_[t]);for(t in this.shaderCache_)e.deleteShader(this.shaderCache_[t]);e.deleteFramebuffer(this.hitDetectionFramebuffer_),e.deleteRenderbuffer(this.hitDetectionRenderbuffer_),e.deleteTexture(this.hitDetectionTexture_)}},c.prototype.getCanvas=function(){return this.canvas_},c.prototype.getGL=function(){return this.gl_},c.prototype.getHitDetectionFramebuffer=function(){return this.hitDetectionFramebuffer_||this.initHitDetectionFramebuffer_(),this.hitDetectionFramebuffer_},c.prototype.getShader=function(e){var t=String(r.a.getUid(e));if(t in this.shaderCache_)return this.shaderCache_[t];var n=this.getGL(),i=n.createShader(e.getType());return n.shaderSource(i,e.getSource()),n.compileShader(i),this.shaderCache_[t]=i,i},c.prototype.getProgram=function(e,t){var n=r.a.getUid(e)+\"/\"+r.a.getUid(t);if(n in this.programCache_)return this.programCache_[n];var i=this.getGL(),o=i.createProgram();return i.attachShader(o,this.getShader(e)),i.attachShader(o,this.getShader(t)),i.linkProgram(o),this.programCache_[n]=o,o},c.prototype.handleWebGLContextLost=function(){s.a.clear(this.bufferCache_),s.a.clear(this.shaderCache_),s.a.clear(this.programCache_),this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null},c.prototype.handleWebGLContextRestored=function(){},c.prototype.initHitDetectionFramebuffer_=function(){var e=this.gl_,t=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,t);var n=c.createEmptyTexture(e,1,1),r=e.createRenderbuffer();e.bindRenderbuffer(e.RENDERBUFFER,r),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,1,1),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,r),e.bindTexture(e.TEXTURE_2D,null),e.bindRenderbuffer(e.RENDERBUFFER,null),e.bindFramebuffer(e.FRAMEBUFFER,null),this.hitDetectionFramebuffer_=t,this.hitDetectionTexture_=n,this.hitDetectionRenderbuffer_=r},c.prototype.useProgram=function(e){return e!=this.currentProgram_&&(this.getGL().useProgram(e),this.currentProgram_=e,!0)},c.createTexture_=function(e,t,n){var r=e.createTexture();return e.bindTexture(e.TEXTURE_2D,r),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),void 0!==t&&e.texParameteri(l.a.TEXTURE_2D,l.a.TEXTURE_WRAP_S,t),void 0!==n&&e.texParameteri(l.a.TEXTURE_2D,l.a.TEXTURE_WRAP_T,n),r},c.createEmptyTexture=function(e,t,n,r,i){var o=c.createTexture_(e,r,i);return e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,n,0,e.RGBA,e.UNSIGNED_BYTE,null),o},c.createTexture=function(e,t,n,r){var i=c.createTexture_(e,n,r);return e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),i},t.a=c},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=function(e){var t=e||{};this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width,this.checksum_=void 0};i.prototype.clone=function(){var e=this.getColor();return new i({color:e&&e.slice?e.slice():e||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},i.prototype.getColor=function(){return this.color_},i.prototype.getLineCap=function(){return this.lineCap_},i.prototype.getLineDash=function(){return this.lineDash_},i.prototype.getLineDashOffset=function(){return this.lineDashOffset_},i.prototype.getLineJoin=function(){return this.lineJoin_},i.prototype.getMiterLimit=function(){return this.miterLimit_},i.prototype.getWidth=function(){return this.width_},i.prototype.setColor=function(e){this.color_=e,this.checksum_=void 0},i.prototype.setLineCap=function(e){this.lineCap_=e,this.checksum_=void 0},i.prototype.setLineDash=function(e){this.lineDash_=e,this.checksum_=void 0},i.prototype.setLineDashOffset=function(e){this.lineDashOffset_=e,this.checksum_=void 0},i.prototype.setLineJoin=function(e){this.lineJoin_=e,this.checksum_=void 0},i.prototype.setMiterLimit=function(e){this.miterLimit_=e,this.checksum_=void 0},i.prototype.setWidth=function(e){this.width_=e,this.checksum_=void 0},i.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_=\"s\",this.color_?\"string\"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=r.a.getUid(this.color_).toString():this.checksum_+=\"-\",this.checksum_+=\",\"+(void 0!==this.lineCap_?this.lineCap_.toString():\"-\")+\",\"+(this.lineDash_?this.lineDash_.toString():\"-\")+\",\"+(void 0!==this.lineDashOffset_?this.lineDashOffset_:\"-\")+\",\"+(void 0!==this.lineJoin_?this.lineJoin_:\"-\")+\",\"+(void 0!==this.miterLimit_?this.miterLimit_.toString():\"-\")+\",\"+(void 0!==this.width_?this.width_.toString():\"-\")),this.checksum_},t.default=i},function(e,t,n){\"use strict\";var r=n(1),i=n(295),o=n.n(i),a=n(4),s=n(10),l=function(e){this.rbush_=o()(e),this.items_={}};l.prototype.insert=function(e,t){var n={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3],value:t};this.rbush_.insert(n),this.items_[r.a.getUid(t)]=n},l.prototype.load=function(e,t){for(var n=new Array(t.length),i=0,o=t.length;i=this.transition_?1:o.default.easeIn(r/this.transition_)},l.prototype.inTransition=function(e){return!!this.transition_&&-1!==this.transitionStarts_[e]},l.prototype.endTransition=function(e){this.transition_&&(this.transitionStarts_[e]=-1)},t.a=l},function(e,t,n){\"use strict\";var r={appendParams:function(e,t){var n=[];Object.keys(t).forEach(function(e){null!==t[e]&&void 0!==t[e]&&n.push(e+\"=\"+encodeURIComponent(t[e]))});var r=n.join(\"&\");return(e=-1===(e=e.replace(/[?&]$/,\"\")).indexOf(\"?\")?e+\"?\":e+\"&\")+r}};t.a=r},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(65),o=n(125),a=n(456),s=n(10),l=function(e){var t=e||{},n=s.a.assign({},t);delete n.preload,delete n.useInterimTilesOnError,o.a.call(this,n),this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError),this.type=i.a.TILE};r.a.inherits(l,o.a),l.prototype.getPreload=function(){return this.get(a.a.PRELOAD)},l.prototype.getSource,l.prototype.setPreload=function(e){this.set(a.a.PRELOAD,e)},l.prototype.getUseInterimTilesOnError=function(){return this.get(a.a.USE_INTERIM_TILES_ON_ERROR)},l.prototype.setUseInterimTilesOnError=function(e){this.set(a.a.USE_INTERIM_TILES_ON_ERROR,e)},t.default=l},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(n(0)),o=r(n(2)),a=n(5),s=n(8),l={children:o.default.element.isRequired,setOptionPanel:o.default.func.isRequired},u=function(e){var t=e.children,n=e.setOptionPanel;return i.default.createElement(\"a\",{href:\"\",onClick:function(e){return e.preventDefault(),void n(0)},className:\"options-menu-top\"},t)};u.propTypes=l,t.default=(0,a.connect)(null,{setOptionPanel:s.setOptionPanel})(u)},function(e,t,n){var r=n(471),i=n(314);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return\"Symbol(\".concat(void 0===e?\"\":e,\")_\",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){\"use strict\";t.a=function(e,t,n,r){var o=a.a.unstable_batchedUpdates?function(e){a.a.unstable_batchedUpdates(n,e)}:n;return i()(e,t,o,r)};var r=n(1066),i=n.n(r),o=n(71),a=n.n(o)},function(e,t,n){var r=n(394),i=n(1115),o=n(138);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){\"use strict\";e.exports=n(1265).default},function(e,t,n){var r=n(17),i=n(11).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(11),i=n(55),o=n(90),a=n(332),s=n(26).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});\"_\"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(154)(\"keys\"),i=n(109);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(17),i=n(9),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+\": can't set as prototype!\")};e.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(e,t,r){try{(r=n(56)(Function.call,n(51).f(Object.prototype,\"__proto__\").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t){e.exports=\"\\t\\n\\v\\f\\r   ᠎              \\u2028\\u2029\\ufeff\"},function(e,t,n){var r=n(17),i=n(241).set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&\"function\"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t,n){\"use strict\";var r=n(58),i=n(68);e.exports=function(e){var t=String(i(this)),n=\"\",o=r(e);if(o<0||o==1/0)throw RangeError(\"Count can't be negative\");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){\"use strict\";var r=n(90),i=n(3),o=n(43),a=n(42),s=n(135),l=n(248),u=n(132),c=n(52),f=n(20)(\"iterator\"),h=!([].keys&&\"next\"in[].keys()),d=function(){return this};e.exports=function(e,t,n,p,g,m,y){l(n,t,p);var v,_,b,E=function(e){if(!h&&e in w)return w[e];switch(e){case\"keys\":case\"values\":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+\" Iterator\",x=\"values\"==g,T=!1,w=e.prototype,C=w[f]||w[\"@@iterator\"]||g&&w[g],P=C||E(g),R=g?x?E(\"entries\"):P:void 0,O=\"Array\"==t&&w.entries||C;if(O&&(b=c(O.call(new e)))!==Object.prototype&&b.next&&(u(b,S,!0),r||\"function\"==typeof b[f]||a(b,f,d)),x&&C&&\"values\"!==C.name&&(T=!0,P=function(){return C.call(this)}),r&&!y||!h&&!T&&w[f]||a(w,f,P),s[t]=P,s[S]=d,g)if(v={values:x?P:E(\"values\"),keys:m?P:E(\"keys\"),entries:R},y)for(_ in v)_ in w||o(w,_,v[_]);else i(i.P+i.F*(h||T),t,v);return v}},function(e,t,n){\"use strict\";var r=n(112),i=n(108),o=n(132),a={};n(42)(a,n(20)(\"iterator\"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+\" Iterator\")}},function(e,t,n){var r=n(183),i=n(68);e.exports=function(e,t,n){if(r(t))throw TypeError(\"String#\"+n+\" doesn't accept regex!\");return String(i(e))}},function(e,t,n){var r=n(20)(\"match\");e.exports=function(e){var t=/./;try{\"/./\"[e](t)}catch(n){try{return t[r]=!1,!\"/./\"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(135),i=n(20)(\"iterator\"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){\"use strict\";var r=n(26),i=n(108);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(133),i=n(20)(\"iterator\"),o=n(135);e.exports=n(55).getIteratorMethod=function(e){if(null!=e)return e[i]||e[\"@@iterator\"]||o[r(e)]}},function(e,t,n){var r=n(607);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){\"use strict\";var r=n(27),i=n(111),o=n(22);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);u>s;)t[s++]=e;return t}},function(e,t,n){\"use strict\";var r=n(92),i=n(349),o=n(135),a=n(50);e.exports=n(247)(Array,\"Array\",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,\"keys\"==t?n:\"values\"==t?e[n]:[n,e[n]])},\"values\"),o.Arguments=o.Array,r(\"keys\"),r(\"values\"),r(\"entries\")},function(e,t,n){\"use strict\";var r,i,o=n(157),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u=(r=/a/,i=/b*/g,a.call(r,\"a\"),a.call(i,\"a\"),0!==r.lastIndex||0!==i.lastIndex),c=void 0!==/()??/.exec(\"\")[1];(u||c)&&(l=function(e){var t,n,r,i,l=this;return c&&(n=new RegExp(\"^\"+l.source+\"$(?!\\\\s)\",o.call(l))),u&&(t=l.lastIndex),r=a.call(l,e),u&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),c&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;in;)t.push(arguments[n++]);return y[++m]=function(){s(\"function\"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete y[e]},\"process\"==n(57)(f)?r=function(e){f.nextTick(a(v,e,1))}:g&&g.now?r=function(e){g.now(a(v,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=_,r=a(o.postMessage,o,1)):c.addEventListener&&\"function\"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+\"\",\"*\")},c.addEventListener(\"message\",_,!1)):r=\"onreadystatechange\"in u(\"script\")?function(e){l.appendChild(u(\"script\")).onreadystatechange=function(){l.removeChild(this),v.call(e)}}:function(e){setTimeout(a(v,e,1),0)}),e.exports={set:h,clear:d}},function(e,t,n){var r=n(11),i=n(259).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l=\"process\"==n(57)(a);e.exports=function(){var e,t,n,u=function(){var r,i;for(l&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var c=s.resolve(void 0);n=function(){c.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,h=document.createTextNode(\"\");new o(u).observe(h,{characterData:!0}),n=function(){h.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){\"use strict\";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError(\"Bad Promise constructor\");t=e,n=r}),this.resolve=i(t),this.reject=i(n)}var i=n(32);e.exports.f=function(e){return new r(e)}},function(e,t,n){\"use strict\";function r(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<>1,c=23===t?j(2,-24)-j(2,-77):0,f=0,h=e<0||0===e&&1/e<0?1:0;for((e=D(e))!=e||e===N?(i=e!=e?1:0,r=l):(r=G(U(e)/B),e*(o=j(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?c/o:c*j(2,1-u))*o>=2&&(r++,o/=2),r+u>=l?(i=0,r=l):r+u>=1?(i=(e*o-1)*j(2,t),r+=u):(i=e*j(2,u-1)*j(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*h,a}function i(e,t,n){var r,i=8*n-t-1,o=(1<>1,s=i-7,l=n-1,u=e[l--],c=127&u;for(u>>=7;s>0;c=256*c+e[l],l--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return r?NaN:u?-N:N;r+=j(2,t),c-=a}return(u?-1:1)*r*j(2,c-t)}function o(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function a(e){return[255&e]}function s(e){return[255&e,e>>8&255]}function l(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function u(e){return r(e,52,8)}function c(e){return r(e,23,4)}function f(e,t,n){C(e[O],t,{get:function(){return this[n]}})}function h(e,t,n,r){var i=T(+n);if(i+t>e[z])throw k(M);var o=e[W]._b,a=i+e[V],s=o.slice(a,a+t);return r?s:s.reverse()}function d(e,t,n,r,i,o){var a=T(+n);if(a+t>e[z])throw k(M);for(var s=e[W]._b,l=a+e[V],u=r(+i),c=0;cX;)(q=Y[X++])in A||v(A,q,F[q]);m||(H.constructor=A)}var K=new I(new A(2)),Z=I[O].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||_(I[O],{setInt8:function(e,t){Z.call(this,e,t<<24>>24)},setUint8:function(e,t){Z.call(this,e,t<<24>>24)}},!0)}else A=function(e){E(this,A,\"ArrayBuffer\");var t=T(e);this._b=P.call(new Array(t),0),this[z]=t},I=function(e,t,n){E(this,I,\"DataView\"),E(e,A,\"DataView\");var r=e[z],i=S(t);if(i<0||i>r)throw k(\"Wrong offset!\");if(i+(n=void 0===n?r-i:x(n))>r)throw k(\"Wrong length!\");this[W]=e,this[V]=i,this[z]=n},g&&(f(A,\"byteLength\",\"_l\"),f(I,\"buffer\",\"_b\"),f(I,\"byteLength\",\"_l\"),f(I,\"byteOffset\",\"_o\")),_(I[O],{getInt8:function(e){return h(this,1,e)[0]<<24>>24},getUint8:function(e){return h(this,1,e)[0]},getInt16:function(e){var t=h(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=h(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return o(h(this,4,e,arguments[1]))},getUint32:function(e){return o(h(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(h(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(h(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){d(this,1,e,a,t)},setUint8:function(e,t){d(this,1,e,a,t)},setInt16:function(e,t){d(this,2,e,s,t,arguments[2])},setUint16:function(e,t){d(this,2,e,s,t,arguments[2])},setInt32:function(e,t){d(this,4,e,l,t,arguments[2])},setUint32:function(e,t){d(this,4,e,l,t,arguments[2])},setFloat32:function(e,t){d(this,4,e,c,t,arguments[2])},setFloat64:function(e,t){d(this,8,e,u,t,arguments[2])}});R(A,\"ArrayBuffer\"),R(I,\"DataView\"),v(I[O],y.VIEW,!0),t.ArrayBuffer=A,t.DataView=I},function(e,t,n){\"use strict\";t.a=function(e){\"undefined\"!=typeof console&&console.error;try{throw new Error(e)}catch(e){}}},function(e,t,n){\"use strict\";t.a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(371),i=n(743),o=n(744),a=n(745),s=n(375);n(374),n.d(t,\"createStore\",function(){return r.b}),n.d(t,\"combineReducers\",function(){return i.a}),n.d(t,\"bindActionCreators\",function(){return o.a}),n.d(t,\"applyMiddleware\",function(){return a.a}),n.d(t,\"compose\",function(){return s.a})},function(e,t,n){\"use strict\";var r=n(267);t.a=r.a},function(e,t,n){\"use strict\";function r(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!t||\"object\"!=typeof t&&\"function\"!=typeof t?e:t}var i=n(60),o=n.n(i),a=n(94),s=n.n(a),l=n(0),u=n.n(l),c=n(2),f=n.n(c),h=Object.assign||function(e){for(var t=1;t may have only one child element\"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){o()(this.props.history===e.history,\"You cannot change \")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?u.a.Children.only(e):null},t}(u.a.Component);d.propTypes={history:f.a.object.isRequired,children:f.a.node},d.contextTypes={router:f.a.object},d.childContextTypes={router:f.a.object.isRequired},t.a=d},function(e,t,n){\"use strict\";var r=n(382),i=n.n(r),o={},a=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];\"string\"==typeof t&&(t={path:t});var r=t,s=r.path,l=r.exact,u=void 0!==l&&l,c=r.strict,f=void 0!==c&&c,h=r.sensitive;if(null==s)return n;var d=function(e,t){var n=\"\"+t.end+t.strict+t.sensitive,r=o[n]||(o[n]={});if(r[e])return r[e];var s=[],l={re:i()(e,s,t),keys:s};return a<1e4&&(r[e]=l,a++),l}(s,{end:u,strict:f,sensitive:void 0!==h&&h}),p=d.re,g=d.keys,m=p.exec(e);if(!m)return null;var y=m[0],v=m.slice(1),_=e===y;return u&&!_?null:{path:s,url:\"/\"===s&&\"\"===y?\"/\":y,isExact:_,params:g.reduce(function(e,t,n){return e[t.name]=v[n],e},{})}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(385),i=\"object\"==typeof t&&t&&!t.nodeType&&t,o=i&&\"object\"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require(\"util\").types||a&&a.binding&&a.binding(\"util\")}catch(e){}}();e.exports=s}).call(t,n(274)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(34),i=n(202),o=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,a=/^\\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){\"use strict\";var r=n(0),i=n(865);if(void 0===r)throw Error(\"create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.\");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t){e.exports={positions:{tl:\"tl\",tr:\"tr\",tc:\"tc\",bl:\"bl\",br:\"br\",bc:\"bc\"},levels:{success:\"success\",error:\"error\",warning:\"warning\",info:\"info\"},notification:{title:null,message:null,level:null,position:\"tr\",autoDismiss:5,dismissible:\"both\",action:null}}},function(e,t,n){\"use strict\";var r={padNumber:function(e,t,n){var r=void 0!==n?e.toFixed(n):\"\"+e,i=r.indexOf(\".\");return(i=-1===i?r.length:i)>t?r:new Array(1+t-i).join(\"0\")+r},compareVersions:function(e,t){for(var n=(\"\"+e).split(\".\"),r=(\"\"+t).split(\".\"),i=0;ia)return 1;if(a>o)return-1}return 0}};t.a=r},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.setPrtrAdvanceResultToolQuery=t.setPrtrResultToolQuery=t.setPrtrAdvanceWasteResultToolQuery=t.setGraphicToolStyles=t.setEnvReportsToolQuery=t.setEnvReportsToolCustomQuery=t.setAAToolQuery=t.setMapToolPanelDockedMiddleMode=t.setMapToolPanelCollapsedMode=t.setMapToolPanelExpandedMode=t.setMapToolPanelUnDockedMode=t.setMapToolPanelDockedMode=t.setMapToolPanelCloseMode=t.setMapToolInteractionMode=void 0;var r,i=n(33),o=n(6),a=(r=o)&&r.__esModule?r:{default:r},s=n(45),l=n(286),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{type:i.SET_PROGRESS_BAR,payload:{percent:e,autoIncrement:t}}};t.setMapToolInteractionMode=function(e){return{type:i.SET_MAP_TOOL_PANEL,payload:e}},t.setMapToolPanelCloseMode=function(){return{type:i.SET_MAP_TOOL_PANEL_CLOSED}},t.setMapToolPanelDockedMode=function(){return{type:i.SET_MAP_TOOL_PANEL_DOCKED}},t.setMapToolPanelUnDockedMode=function(){return{type:i.SET_MAP_TOOL_PANEL_UNDOCKED}},t.setMapToolPanelExpandedMode=function(){return{type:i.SET_MOBILE_MAP_TOOL_PANEL_EXPANDED}},t.setMapToolPanelCollapsedMode=function(){return{type:i.SET_MOBILE_MAP_TOOL_PANEL_COLLAPSED}},t.setMapToolPanelDockedMiddleMode=function(){return{type:i.SET_MOBILE_MAP_TOOL_PANEL_DOCKED_MIDDLE}},t.setAAToolQuery=function(e,t,n){return function(r){r(u(60,!0)),(0,s.getAAtoolsRequestUrlWithData)(e,t).then(function(e){0===e.length&&r({type:i.SET_USER_MESSAGE,payload:\"No Results Found\"}),r({type:i.LOAD_QUERY_RESULT,payload:{results:e,retainPrevious:n}}),r(u(-1))}).catch(function(e){r({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+e}),r(u(-1))})}},t.setEnvReportsToolCustomQuery=function(e,t){return function(n){n(u(60,!0)),(0,s.getEnvReportsRequestWithDataArray)(e).then(function(e){0===e.length&&n({type:i.SET_USER_MESSAGE,payload:\"No Results Found\"}),n({type:i.LOAD_QUERY_RESULT,payload:{results:e,retainPrevious:t}}),n(u(-1))}).catch(function(e){a.default.error(e),n({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+e}),n(u(-1))})}},t.setEnvReportsToolQuery=function(e,t,n){return function(r){r(u(60,!0)),(0,s.getEnvReportsRequestUrlWithData)(e,t).then(function(e){0===e.length&&r({type:i.SET_USER_MESSAGE,payload:\"No Results Found\"}),r({type:i.LOAD_QUERY_RESULT,payload:{results:e,retainPrevious:n}}),r(u(-1))}).catch(function(e){a.default.error(e),r({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+e}),r(u(-1))})}},t.setGraphicToolStyles=function(e){return{type:i.SET_CUSTOM_GRAPHIC_STYLES,payload:e}},t.setPrtrAdvanceWasteResultToolQuery=function(e,t){var n=e.selectedYear,r=e.facilitySelected,o=e.selectedCounty,a=e.regNumberSelected,s=e.sectorSelected,c=e.activitySelected,f=e.wasteTypeSelected,h=e.wasteTreatmentSelected,d=e.wasteTransferSelected;return function(e){e(u(60,!0)),(0,l.prtrAdvanceWasteSearch)(n,r,o,a,s,c,f,h,d).then(function(n){e({type:i.LOAD_QUERY_RESULT,payload:{results:n,retainPrevious:t}}),e(u(-1))}).catch(function(t){e({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+t}),e(u(-1))})}},t.setPrtrResultToolQuery=function(e,t){var n=e.selectedYear,r=e.facilitySelected,o=e.selectedCounty,a=e.regNumberSelected,s=e.sectorSelected,c=e.activitySelected;return function(e){e(u(60,!0)),(0,l.prtrBasicSearch)(n,r,o,a,s,c).then(function(n){e({type:i.LOAD_QUERY_RESULT,payload:{results:n,retainPrevious:t}}),e(u(-1))}).catch(function(t){e({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+t}),e(u(-1))})}},t.setPrtrAdvanceResultToolQuery=function(e,t){var n=e.selectedYear,r=e.facilitySelected,o=e.selectedCounty,a=e.regNumberSelected,s=e.sectorSelected,c=e.activitySelected,f=e.mediumSelected,h=e.pollutantSelected;return function(e){e(u(60,!0)),(0,l.prtrAdvanceSearch)(n,r,o,a,s,c,f,h).then(function(n){e({type:i.LOAD_QUERY_RESULT,payload:{results:n,retainPrevious:t}}),e(u(-1))}).catch(function(t){e({type:i.SET_USER_MESSAGE,payload:\"Error Occured during the request \"+t}),e(u(-1))})}}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.prtrAdvanceWasteSearch=t.prtrAdvanceSearch=t.prtrBasicSearch=t.prtrFacilities=t.prtrGetWasteOptions=t.prtrPollutants=t.prtrPollutantMedia=t.prtrGetActivities=t.prtrGetSectors=t.prtrGetYears=t.prtrGetCounties=void 0,n(406);var r=n(19),i=function(e,t,n,r){return e.map(function(e){return{Id:null!==t?e[t]:e[n],Value:e[n],Description:null!==r?e[r]:\"\"}})},o=function(e,t){return e.map(function(e){return{layerName:\"PRTR Facility\",properties:{PrtrTitle:e.organisation_name+\": \"+e.current_reg_no,\"Reg. No\":e.current_reg_no,\"Licence Type\":e.current_licence_type,\"Main PRTR Sector\":e.main_sector,\"Main PRTR Activity\":e.main_reporting_class,\"Town / City\":e.facility_town_city,County:e.facility_county,URL:r.PRTR_DETAILS+\"/\"+e.facility_id+\"/\"+t,URLtext:\"View full PRTR report\",FromApi:!0},geometry:{type:\"Point\",coordinates:[e.facility_easting,e.facility_northing],isNative:!0}}})};t.prtrGetCounties=function(){return new Promise(function(e,t){fetch(r.PRTR_API+\"/counties\").then(function(e){return e.json()}).then(function(e){return i(e.list,\"county_id\",\"county\",null)}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.prtrGetYears=function(){return new Promise(function(e,t){fetch(r.PRTR_API+\"/reportingyears\").then(function(e){return e.json()}).then(function(e){return i(e.list,null,\"year\",null)}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.prtrGetSectors=function(){return new Promise(function(e,t){fetch(r.PRTR_API+\"/sectors\").then(function(e){return e.json()}).then(function(e){return i(e.list,\"sector_id\",\"sector\",null)}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.prtrGetActivities=function(e){return new Promise(function(t,n){fetch(r.PRTR_API+\"/sectors/\"+e+\"/activities\").then(function(e){return e.json()}).then(function(e){return i(e.list,\"activity_id\",\"activity_code\",\"activity_description\")}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.prtrPollutantMedia=function(){return new Promise(function(e,t){fetch(r.PRTR_API+\"/pollutantmedia\").then(function(e){return e.json()}).then(function(e){return i(e.list,\"medium_id\",\"medium\",null)}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.prtrPollutants=function(e){return new Promise(function(t,n){fetch(r.PRTR_API+\"/pollutants?mediumid=\"+e).then(function(e){return e.json()}).then(function(e){return i(e.list,\"pollutant_id\",\"pollutant_name\",null)}).then(function(e){return t(e)}).catch(function(e){return n(e)})})},t.prtrGetWasteOptions=function(){return new Promise(function(e,t){fetch(r.PRTR_API+\"/wastesearchoptions\").then(function(e){return e.json()}).then(function(e){return{wasteTypes:i(e.listOfWasteTypes.list,\"waste_type_id\",\"waste_type\",null),wasteTransfers:i(e.listOfWasteTransfersAbroad.list,\"transfer_abroad_id\",\"transfer_abroad\",null),wasteTreatments:i(e.listOfWasteTreatments.list,\"treatment_operation_id\",\"treatment_operation\",null)}}).then(function(t){return e(t)}).catch(function(e){return t(e)})})},t.prtrFacilities=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return new Promise(function(a,s){fetch(r.PRTR_API+\"/facilities/search?year=\"+e+\"&facilityname=\"+t+\"&countyid=\"+n+\"§or=\"+i+\"&activityId=\"+o).then(function(e){return e.json()}).then(function(e){return a(e.list)}).catch(function(e){return s(e)})})},t.prtrBasicSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\";return new Promise(function(l,u){fetch(r.PRTR_API+\"/reportdata/search?year=\"+e+\"&facilityid=\"+t+\"®no=\"+i+\"&countyid=\"+n+\"§orid=\"+a+\"&activityid=\"+s).then(function(e){return e.json()}).then(function(t){return o(t.list,e)}).then(function(e){return l(e)}).catch(function(e){return u(e)})})},t.prtrAdvanceSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\",u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:\"\";return new Promise(function(c,f){fetch(r.PRTR_API+\"/reportdata/advancedpollutantsearch?year=\"+e+\"&facilityid=\"+t+\"®no=\"+i+\"&countyid=\"+n+\"§orid=\"+a+\"&activityid=\"+s+\"&mediumid=\"+l+\"&pollutantid=\"+u).then(function(e){return e.json()}).then(function(t){return o(t.list,e)}).then(function(e){return c(e)}).catch(function(e){return f(e)})})},t.prtrAdvanceWasteSearch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"\",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"\",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:\"\",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:\"\",l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:\"\",u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:\"\",c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:\"\";return new Promise(function(f,h){fetch(r.PRTR_API+\"/reportdata/advancedwastesearch?year=\"+e+\"&facilityid=\"+t+\"®no=\"+i+\"&countyid=\"+n+\"§orid=\"+a+\"&activityid=\"+s+\"&wastetypeid=\"+l+\"&transferredabroadid=\"+c+\"&treatmentoperationid=\"+u).then(function(e){return e.json()}).then(function(t){return o(t.list,e)}).then(function(e){return f(e)}).catch(function(e){return h(e)})})}},function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(1),i=n(13),o=n(140),a=n(16),s=function(){o.a.call(this),this.revision_=0};r.a.inherits(s,o.a),s.unByKey=function(e){if(Array.isArray(e))for(var t=0,n=e.length;t>1},o.prototype.heapify_=function(){var e;for(e=(this.elements_.length>>1)-1;e>=0;e--)this.siftUp_(e)},o.prototype.isEmpty=function(){return 0===this.elements_.length},o.prototype.isKeyQueued=function(e){return e in this.queuedElements_},o.prototype.isQueued=function(e){return this.isKeyQueued(this.keyFunction_(e))},o.prototype.siftUp_=function(e){for(var t=this.elements_,n=this.priorities_,r=t.length,i=t[e],o=n[e],a=e;e>1;){var s=this.getLeftChildIndex_(e),l=this.getRightChildIndex_(e),u=le;){var a=this.getParentIndex_(t);if(!(r[a]>o))break;n[t]=n[a],r[t]=r[a],t=a}n[t]=i,r[t]=o},o.prototype.reprioritize=function(){var e,t,n,r=this.priorityFunction_,i=this.elements_,a=this.priorities_,s=0,l=i.length;for(t=0;tS&&(f=(h+d)/2,i.a.linearRingsContainsXY(e,t,n,o,f,m)&&(E=f,S=x)),h=d}return isNaN(E)&&(E=a[s]),l?(l.push(E,m,S),l):[E,m,S]},linearRingss:function(e,t,n,r,i){var a,s,l=[];for(a=0,s=n.length;athis.highWaterMark},s.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(a.a.CLEAR)},s.prototype.containsKey=function(e){return this.entries_.hasOwnProperty(e)},s.prototype.forEach=function(e,t){for(var n=this.oldest_;n;)e.call(t,n.value_,n.key_,this),n=n.newer},s.prototype.get=function(e){var t=this.entries_[e];return i.a.assert(void 0!==t,15),t===this.newest_?t.value_:(t===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(t.newer.older=t.older,t.older.newer=t.newer),t.newer=null,t.older=this.newest_,this.newest_.newer=t,this.newest_=t,t.value_)},s.prototype.remove=function(e){var t=this.entries_[e];return i.a.assert(void 0!==t,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_},s.prototype.getCount=function(){return this.count_},s.prototype.getKeys=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t},s.prototype.getValues=function(){var e,t=new Array(this.count_),n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t},s.prototype.peekLast=function(){return this.oldest_.value_},s.prototype.peekLastKey=function(){return this.oldest_.key_},s.prototype.peekFirstKey=function(){return this.newest_.key_},s.prototype.pop=function(){var e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_},s.prototype.replace=function(e,t){this.get(e),this.entries_[e].value_=t},s.prototype.set=function(e,t){i.a.assert(!(e in this.entries_),16);var n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_},s.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},t.a=s},function(e,t,n){\"use strict\";function r(e,t){if(!(this instanceof r))return new r(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&this._initFormat(t),this.clear()}function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r=e.minX&&t.maxY>=e.minY}function p(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,t,n,r,i){for(var o,a=[t,n];a.length;)(n=a.pop())-(t=a.pop())<=r||(o=t+Math.ceil((n-t)/r/2)*r,m(e,o,t,n,i),a.push(t,o,o,n))}e.exports=r;var m=n(933);r.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,n=[],r=this.toBBox;if(!d(e,t))return n;for(var i,o,a,s,l=[];t;){for(i=0,o=t.children.length;i=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)},_split:function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var a=this._chooseSplitIndex(n,i,r),s=p(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(e,t){this.data=p([e,t]),this.data.height=e.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,n){var r,i,o,s,l,u,f,h,d,p,g,m,y,v;for(u=f=1/0,r=t;r<=n-t;r++)i=a(e,0,r,this.toBBox),o=a(e,r,n,this.toBBox),d=i,p=o,g=void 0,m=void 0,y=void 0,v=void 0,g=Math.max(d.minX,p.minX),m=Math.max(d.minY,p.minY),y=Math.min(d.maxX,p.maxX),v=Math.min(d.maxY,p.maxY),s=Math.max(0,y-g)*Math.max(0,v-m),l=c(i)+c(o),s=t;i--)o=e.children[i],s(c,e.leaf?l(o):o),h+=f(c);return h},_adjustParentBBoxes:function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},_condense:function(e){for(var t,n=e.length-1;n>=0;n--)0===e[n].children.length?n>0?(t=e[n-1].children).splice(t.indexOf(e[n]),1):this.clear():o(e[n],this.toBBox)},_initFormat:function(e){var t=[\"return a\",\" - b\",\";\"];this.compareMinX=new Function(\"a\",\"b\",t.join(e[0])),this.compareMinY=new Function(\"a\",\"b\",t.join(e[1])),this.toBBox=new Function(\"a\",\"return {minX: a\"+e[0]+\", minY: a\"+e[1]+\", maxX: a\"+e[2]+\", maxY: a\"+e[3]+\"};\")}}},function(e,t,n){\"use strict\";var r=n(1),i=n(126),o=n(21),a=n(165),s={defaultOrder:function(e,t){return r.a.getUid(e)-r.a.getUid(t)},getSquaredTolerance:function(e,t){var n=s.getTolerance(e,t);return n*n},getTolerance:function(e,t){return r.a.SIMPLIFY_TOLERANCE*e/t},renderCircleGeometry_:function(e,t,n,r){var i=n.getFill(),o=n.getStroke();if(i||o){var s=e.getReplay(n.getZIndex(),a.a.CIRCLE);s.setFillStrokeStyle(i,o),s.drawCircle(t,r)}var l=n.getText();if(l){var u=e.getReplay(n.getZIndex(),a.a.TEXT);u.setTextStyle(l,e.addDeclutter(!1)),u.drawText(t,r)}},renderFeature:function(e,t,n,r,o,a){var l,u,c=!1;return(l=n.getImage())&&((u=l.getImageState())==i.a.LOADED||u==i.a.ERROR?l.unlistenImageChange(o,a):(u==i.a.IDLE&&l.load(),u=l.getImageState(),l.listenImageChange(o,a),c=!0)),s.renderFeature_(e,t,n,r),c},renderFeature_:function(e,t,n,r){var i=n.getGeometryFunction()(t);if(i){var o=i.getSimplifiedGeometry(r);n.getRenderer()?s.renderGeometry_(e,o,n,t):(0,s.GEOMETRY_RENDERERS_[o.getType()])(e,o,n,t)}},renderGeometry_:function(e,t,n,r){if(t.getType()!=o.a.GEOMETRY_COLLECTION)e.getReplay(n.getZIndex(),a.a.DEFAULT).drawCustom(t,r,n.getRenderer());else for(var i=t.getGeometries(),l=0,u=i.length;l0&&(s/=f)}return s},enlargeClipPoint_:function(e,t,n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);return[Math.round(n+i/a),Math.round(r+o/a)]},render:function(e,t,n,a,l,u,c,f,h,d,p){var g=r.a.createCanvasContext2D(Math.round(n*e),Math.round(n*t));if(0===h.length)return g.canvas;g.scale(n,n);var m=i.default.createEmpty();h.forEach(function(e,t,n){i.default.extend(m,e.extent)});var y=i.default.getWidth(m),v=i.default.getHeight(m),_=r.a.createCanvasContext2D(Math.round(n*y/a),Math.round(n*v/a)),b=n/a;h.forEach(function(e,t,n){var r=e.extent[0]-m[0],o=-(e.extent[3]-m[3]),a=i.default.getWidth(e.extent),s=i.default.getHeight(e.extent);_.drawImage(e.image,d,d,e.image.width-2*d,e.image.height-2*d,r*b,o*b,a*b,s*b)});var E=i.default.getTopLeft(c);return f.getTriangles().forEach(function(e,t,r){var i=e.source,l=e.target,c=i[0][0],f=i[0][1],h=i[1][0],d=i[1][1],p=i[2][0],y=i[2][1],v=(l[0][0]-E[0])/u,b=-(l[0][1]-E[1])/u,S=(l[1][0]-E[0])/u,x=-(l[1][1]-E[1])/u,T=(l[2][0]-E[0])/u,w=-(l[2][1]-E[1])/u,C=c,P=f;c=0,f=0;var R=[[h-=C,d-=P,0,0,S-v],[p-=C,y-=P,0,0,T-v],[0,0,h,d,x-b],[0,0,p,y,w-b]],O=o.a.solveLinearSystem(R);if(O){g.save(),g.beginPath();var M=(v+S+T)/3,A=(b+x+w)/3,I=s.enlargeClipPoint_(M,A,v,b),L=s.enlargeClipPoint_(M,A,S,x),k=s.enlargeClipPoint_(M,A,T,w);g.moveTo(L[0],L[1]),g.lineTo(I[0],I[1]),g.lineTo(k[0],k[1]),g.clip(),g.transform(O[0],O[2],O[1],O[3],v,b),g.translate(m[0]-C,m[3]-P),g.scale(a/n,-a/n),g.drawImage(_.canvas,0,0),g.restore()}}),p&&(g.save(),g.strokeStyle=\"black\",g.lineWidth=1,f.getTriangles().forEach(function(e,t,n){var r=e.target,i=(r[0][0]-E[0])/u,o=-(r[0][1]-E[1])/u,a=(r[1][0]-E[0])/u,s=-(r[1][1]-E[1])/u,l=(r[2][0]-E[0])/u,c=-(r[2][1]-E[1])/u;g.beginPath(),g.moveTo(a,s),g.lineTo(i,o),g.lineTo(l,c),g.closePath(),g.stroke()}),g.restore()),g.canvas}};t.a=s},function(e,t,n){\"use strict\";var r=n(25),i=n(18),o=n(76),a={createFromTemplate:function(e,t){var n=/\\{z\\}/g,i=/\\{x\\}/g,o=/\\{y\\}/g,a=/\\{-y\\}/g;return function(s,l,u){return s?e.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(o,function(){return(-s[2]-1).toString()}).replace(a,function(){var e=s[0],n=t.getFullTileRange(e);return r.a.assert(n,55),(n.getHeight()+s[2]).toString()}):void 0}},createFromTemplates:function(e,t){for(var n=e.length,r=new Array(n),i=0;i>1;o0?r:n)(e)}},function(e,t,n){var r=n(313)(\"keys\"),i=n(231);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(47),i=n(102),o=i[\"__core-js_shared__\"]||(i[\"__core-js_shared__\"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})(\"versions\",[]).push({version:r.version,mode:n(230)?\"pure\":\"global\",copyright:\"© 2019 Denis Pushkarev (zloirock.ru)\"})},function(e,t){e.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){\"use strict\";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=r(n(1032)),o=r(n(1042)),a=\"function\"==typeof o.default&&\"symbol\"==typeof i.default?function(e){return typeof e}:function(e){return e&&\"function\"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?\"symbol\":typeof e};t.default=\"function\"==typeof o.default&&\"symbol\"===a(i.default)?function(e){return void 0===e?\"undefined\":a(e)}:function(e){return e&&\"function\"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?\"symbol\":void 0===e?\"undefined\":a(e)}},function(e,t,n){var r=n(151),i=n(1036),o=n(314),a=n(312)(\"IE_PROTO\"),s=function(){},l=function(){var e,t=n(470)(\"iframe\"),r=o.length;for(t.style.display=\"none\",n(1037).appendChild(t),t.src=\"javascript:\",(e=t.contentWindow.document).open(),e.write(\"