????

Your IP : 3.17.81.34


Current Path : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/
Upload File :
Current File : C:/inetpub/vhost/binhdinhinvest.gdtvietnam.com/www/67.18ab9ae2146dd95c79b3.js

(function(){var e={"esri/views/2d/engine/vectorTiles/tileInfoUtils":"0btR","esri/views/2d/engine/vectorTiles/style/VectorTileSource":"OpTb","esri/layers/VectorTileLayer":"UW67","esri/layers/support/SpriteSource":"iS0c","esri/layers/support/vectorTileLayerLoader":"qBbE","esri/views/2d/engine/vectorTiles/SchemaHelper":"rN/e","esri/views/2d/engine/webgl/definitions":"tI6k"},t=this||window,r=t.webpackJsonp=t.webpackJsonp||[];r.registerAbsMids?r.registerAbsMids(e):(r.absMidsWaiting=r.absMidsWaiting||[]).push(e)})(),(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{"0btR":function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("pMLx")],void 0===(i=(function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.areSchemasOverlapping=function(e,t){if(e===t)return!0;if(!e&&null!=t)return!1;if(null!=e&&!t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;var r,o,i=e.origin,n=t.origin;if(Math.abs(i.x-n.x)>=1e-6||Math.abs(i.y-n.y)>=1e-6)return!1;e.lods[0].scale>t.lods[0].scale?(r=e,o=t):(o=e,r=t);for(var l=r.lods[0].scale;l>=o.lods[o.lods.length-1].scale-1e-6;l/=2)if(Math.abs(l-o.lods[0].scale)<1e-6)return!0;return!1},t.unionTileInfos=function(e,t){if(e===t)return e;if(!e&&null!=t)return t;if(null!=e&&!t)return e;for(var o=e.size[0],i=e.format,n=e.dpi,l={x:e.origin.x,y:e.origin.y},s=e.spatialReference.toJSON(),a=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],u=(e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1]).scale,p=[],c=a.scale,d=a.resolution,y=0;c>u;)p.push({level:y,resolution:d,scale:c}),y++,c/=2,d/=2;return new r({size:[o,o],dpi:n,format:i||"pbf",origin:l,lods:p,spatialReference:s})}}).apply(null,o))||(e.exports=i)},OpTb:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("rg9i"),r("jfWY"),r("N7S/"),r("ddAr"),r("Cobz"),r("soIt")],void 0===(i=(function(e,t,r,o,i,n,l,s,a){return function(){function e(e,t,r){this.tileMapURL="",this.tilemapCache=null,this.parsedUrl=null,this.tileInfo=null,this.capabilities=null,this.tileIndex=null,this.fullExtent=null,this.name=e,this.sourceUrl=t,t&&(this.parsedUrl=i.urlToObject(this.sourceUrl));var u=o.clone(r),p=u.tiles;t&&p.forEach((function(e,r){i.isAbsolute(e)||(p[r]=i.join(t,e))})),this.tileServers=p,r.tileMap&&(this.tileMapURL=i.join(t,r.tileMap));var c=r.capabilities&&r.capabilities.split(",").map((function(e){return e.toLowerCase().trim()})),d=!!r.exportTilesAllowed,y=!!c&&-1!==c.indexOf("tilemap"),f=d&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:d,supportsTileMap:y},exportTiles:d?{maxExportTilesCount:+f}:null},this.tileInfo=l.readServiceTileInfo(u.tileInfo,u,null,{ignoreMinMaxLOD:!0}),y&&(this.type="vector-tile",this.tilemapCache=new s.TilemapCache({layer:this}),this.tilemapCache&&(this.tileIndex=new a(this.tilemapCache))),this.fullExtent=n.fromJSON(r.fullExtent)}return e.prototype.getRefKey=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(r){return this.tileIndex?[2,this.tileIndex.dataKey(e,t)]:[2,e]}))}))},e.prototype.getSourceTileUrl=function(e,t,r){return this.tileServers[t%this.tileServers.length].replace(/\{z\}/gi,e.toString()).replace(/\{y\}/gi,t.toString()).replace(/\{x\}/gi,r.toString())},e.prototype.isCompatibleWith=function(e){var t=this.tileInfo,r=e.tileInfo;if(!t.spatialReference.equals(r.spatialReference))return!1;if(!t.origin.equals(r.origin))return!1;if(Math.round(t.dpi)!==Math.round(r.dpi))return!1;for(var o=t.lods,i=r.lods,n=Math.min(o.length,i.length),l=0;l<n;l++){var s=o[l],a=i[l];if(s.level!==a.level||Math.round(s.scale)!==Math.round(a.scale))return!1}return!0},e}()}).apply(null,o))||(e.exports=i)},UW67:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("zp6E"),r("ma1f"),r("J3YA"),r("EUqE"),r("qMld"),r("jfWY"),r("jfWY"),r("Vx27"),r("N7S/"),r("Z4y+"),r("0RER"),r("WhPF"),r("2fnV"),r("FEX1"),r("QJ8R"),r("OXmT"),r("iS0c"),r("pMLx"),r("Cobz"),r("qBbE"),r("OECU"),r("rN/e"),r("0btR"),r("Am75")],i=(function(e,t,r,o,i,n,l,s,a,u,p,c,d,y,f,h,_,S,v,g,m,T,I,E,b,O,R){return function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=e.apply(this,t)||this;return o._spriteSourceMap=new Map,o.currentStyleInfo=null,o.style=null,o.isReference=null,o.operationalLayerType="VectorTileLayer",o.type="vector-tile",o.url=null,o}return r.__extends(t,e),t.prototype.normalizeCtorArgs=function(e,t){return"string"==typeof e?r.__assign({url:e},t):e},t.prototype.destroy=function(){this._spriteSourceMap.clear()},t.prototype.prefetchResources=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,this.loadSpriteSource(n.devicePixelRatio||1,e)];case 1:return t.sent(),[2]}}))}))},t.prototype.load=function(e){var t=this,i=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).then((function(){return r.__awaiter(t,void 0,void 0,(function(){var t;return r.__generator(this,(function(i){switch(i.label){case 0:return this.portalItem&&this.portalItem.id?[4,o(t=this.portalItem.itemUrl+"/resources/styles/root.json",r.__assign(r.__assign({},e),{query:{f:"json"}}))]:[2];case 1:return i.sent().data&&this.read({url:t},E.createForItem(this.portalItem)),[2]}}))}))})).then((function(){return t._loadStyle(e)}),(function(){return t._loadStyle(e)}));return this.addResolvingPromise(i),s.resolve(this)},Object.defineProperty(t.prototype,"attributionDataUrl",{get:function(){var e=this.currentStyleInfo,t=e&&e.serviceUrl&&u.urlToObject(e.serviceUrl);return t?this._getDefaultAttribution(t.path):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"capabilities",{get:function(){var e=this._getPrimarySource();return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullExtent",{get:function(){var e=this._getPrimarySource();return e?e.fullExtent:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parsedUrl",{get:function(){return this.serviceUrl?a.urlToObject(this.serviceUrl):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceUrl",{get:function(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"spatialReference",{get:function(){return this.tileInfo&&this.tileInfo.spatialReference||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"styleUrl",{get:function(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null},enumerable:!0,configurable:!0}),t.prototype.writeStyleUrl=function(e,t){e&&u.isProtocolRelative(e)&&(e="https:"+e),t.styleUrl=e},Object.defineProperty(t.prototype,"tileIndexType",{get:function(){var e=this._getPrimarySource();return e?e.type:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tileIndexUrl",{get:function(){var e=this._getPrimarySource();return e?e.tileMapURL:""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tileInfo",{get:function(){var e=[];for(var t in this.sourceNameToSource)e.push(this.sourceNameToSource[t]);var r=this._getPrimarySource().tileInfo;if(e.length>1)for(var o=0;o<e.length;o++)O.areSchemasOverlapping(r,e[o].tileInfo)&&(r=O.unionTileInfos(r,e[o].tileInfo));return r},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tilemapCache",{get:function(){var e=this._getPrimarySource();return e&&e.capabilities.operations.supportsTileMap?e.tilemapCache:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tileServers",{get:function(){var e=this._getPrimarySource();return e?e.tileServers:[]},enumerable:!0,configurable:!0}),t.prototype.readVersion=function(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)},Object.defineProperty(t.prototype,"compatibleTileInfo256",{get:function(){return b.create256x256CompatibleTileInfo(this.tileInfo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compatibleTileInfo512",{get:function(){return b.create512x512CompatibleTileInfo(this.tileInfo)},enumerable:!0,configurable:!0}),t.prototype.loadSpriteSource=function(e,t){return void 0===e&&(e=1),r.__awaiter(this,void 0,void 0,(function(){var o,i;return r.__generator(this,(function(r){return this._spriteSourceMap.has(e)||(o=new g.default(this.styleRepository.sprite,e),this._spriteSourceMap.set(e,o.load())),i=this._spriteSourceMap.get(e),[2,s.create((function(e,r){i.then(e,r),s.onAbortOrThrow(t,r)}))]}))}))},t.prototype.loadStyle=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var o,i,n,l=this;return r.__generator(this,(function(r){return o=e||this.style||this.url,this._loadingPromise&&"string"==typeof o&&this.url===o&&!s.isAborted(this._abortController)||((i=this._abortController)&&i.abort(),n=s.createAbortController(),this._loadingPromise=s.create((function(e,r){var i={signal:n.signal};l._spriteSourceMap.clear(),l._getSourceAndStyle(o,i).then(e,r),s.onAbort(t,(function(){n.abort()}))})),this._abortController=n),[2,this._loadingPromise]}))}))},t.prototype.getStyleLayerId=function(e){return this.styleRepository.getStyleLayerId(e)},t.prototype.getPaintProperties=function(e){return this.styleRepository.getPaintProperties(e)},t.prototype.setPaintProperties=function(e,t){var r=this.styleRepository.isPainterDataDriven(e),o=this.styleRepository.setPaintProperties(e,t),i=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:o,paint:t}),(r||i)&&this.emit("layout-change",{layer:o,layout:this.styleRepository.getLayoutProperties(e)})},t.prototype.getLayoutProperties=function(e){return this.styleRepository.getLayoutProperties(e)},t.prototype.setLayoutProperties=function(e,t){var r=this.styleRepository.setLayoutProperties(e,t);this.emit("layout-change",{layer:r,layout:t})},t.prototype.getTileUrl=function(e,t,r){return this.tileServers[t%this.tileServers.length].replace(/\{z\}/gi,e.toString()).replace(/\{y\}/gi,t.toString()).replace(/\{x\}/gi,r.toString())},t.prototype.write=function(t,r){return r&&r.origin&&!this.styleUrl?(r.messages&&r.messages.push(new i("vectortilelayer:unsupported","VectorTileLayer ("+this.title+", "+this.id+") with style defined by JSON only are not supported",{layer:this})),null):e.prototype.write.call(this,t,r)},t.prototype._getSourceAndStyle=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var o;return r.__generator(this,(function(r){switch(r.label){case 0:if(!e)throw new Error("invalid style!");return[4,I.loadMetadata(e,t)];case 1:return o=r.sent(),this._set("currentStyleInfo",{serviceUrl:o.serviceUrl,styleUrl:o.styleUrl,spriteUrl:o.spriteUrl,glyphsUrl:o.glyphsUrl,style:o.style,layerDefinition:o.layerDefinition}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",o.sourceNameToSource),this._set("primarySourceName",o.primarySourceName),this._set("styleRepository",new R(o.style,o)),this.read(o.layerDefinition,{origin:"service"}),[2]}}))}))},t.prototype._getDefaultAttribution=function(e){var t=e.match(/^https?:\/\/(basemaps|basemapsbeta|basemapsdev)\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i);if(t){var r=t[3]&&t[3].toLowerCase();if(r)for(var o=t[2]||"",i=0,n=["OpenStreetMap_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84"];i<n.length;i++){var l=n[i];if(l.toLowerCase().indexOf(r)>-1)return u.normalize("//static.arcgis.com/attribution/Vector"+o+"/"+l)}}},t.prototype._getPrimarySource=function(){return this.sourceNameToSource&&this.primarySourceName in this.sourceNameToSource?this.sourceNameToSource[this.primarySourceName]:null},t.prototype._loadStyle=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return this._loadingPromise?[2,this._loadingPromise]:[2,this.loadStyle(null,e)]}))}))},r.__decorate([p.property({readOnly:!0,dependsOn:["currentStyleInfo"]})],t.prototype,"attributionDataUrl",null),r.__decorate([p.property({type:["show","hide"]})],t.prototype,"listMode",void 0),r.__decorate([p.property({json:{read:!1},readOnly:!0,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"capabilities",null),r.__decorate([p.property({readOnly:!0})],t.prototype,"currentStyleInfo",void 0),r.__decorate([p.property({json:{read:!1},readOnly:!0,type:c,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"fullExtent",null),r.__decorate([p.property()],t.prototype,"style",void 0),r.__decorate([p.property({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:function(){return{enabled:!1}}}}})],t.prototype,"isReference",void 0),r.__decorate([p.property({type:["VectorTileLayer"]})],t.prototype,"operationalLayerType",void 0),r.__decorate([p.property({readOnly:!0,dependsOn:["serviceUrl"]})],t.prototype,"parsedUrl",null),r.__decorate([p.property({readOnly:!0,dependsOn:["currentStyleInfo"]})],t.prototype,"serviceUrl",null),r.__decorate([p.property({type:d,dependsOn:["tileInfo"],readOnly:!0})],t.prototype,"spatialReference",null),r.__decorate([p.property({readOnly:!0})],t.prototype,"styleRepository",void 0),r.__decorate([p.property({readOnly:!0})],t.prototype,"sourceNameToSource",void 0),r.__decorate([p.property({readOnly:!0})],t.prototype,"primarySourceName",void 0),r.__decorate([p.property({type:String,readOnly:!0,dependsOn:["currentStyleInfo"],json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],t.prototype,"styleUrl",null),r.__decorate([p.writer(["portal-item","web-document"],"styleUrl")],t.prototype,"writeStyleUrl",null),r.__decorate([p.property({json:{read:!1},readOnly:!0,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"tileIndexType",null),r.__decorate([p.property({json:{read:!1},readOnly:!0,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"tileIndexUrl",null),r.__decorate([p.property({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:m,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"tileInfo",null),r.__decorate([p.property({json:{read:!1},readOnly:!0,type:T.TilemapCache,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"tilemapCache",null),r.__decorate([p.property({json:{read:!1},readOnly:!0,dependsOn:["sourceNameToSource","primarySourceName"]})],t.prototype,"tileServers",null),r.__decorate([p.property({json:{read:!1},readOnly:!0,value:"vector-tile"})],t.prototype,"type",void 0),r.__decorate([p.property({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],t.prototype,"url",void 0),r.__decorate([p.property({readOnly:!0})],t.prototype,"version",void 0),r.__decorate([p.reader("version",["version","currentVersion"])],t.prototype,"readVersion",null),r.__decorate([p.property({readOnly:!0,dependsOn:["tileInfo"]})],t.prototype,"compatibleTileInfo256",null),r.__decorate([p.property({readOnly:!0,dependsOn:["tileInfo"]})],t.prototype,"compatibleTileInfo512",null),r.__decorate([p.subclass("esri.layers.VectorTileLayer")],t)}(v.ScaleRangeLayer(f.ArcGISCachedService(h.ArcGISService(_.OperationalLayer(S.PortalLayer(l.MultiOriginJSONMixin(y)))))))}).apply(null,o),void 0===i||(e.exports=i)},iS0c:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("zp6E"),r("ma1f"),r("H1tY"),r("qsST"),r("qMld")],void 0===(i=(function(e,t,r,o,i,n,l,s){Object.defineProperty(t,"__esModule",{value:!0});var a=l.getLogger("esri.layers.support.SpriteSource"),u=function(){function e(e,t){this.baseURL=e,this.devicePixelRatio=t,this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded"}return Object.defineProperty(e.prototype,"spriteNames",{get:function(){var e=[];for(var t in this._spritesData)e.push(t);return e.sort(),e},enumerable:!0,configurable:!0}),e.prototype.getSpriteInfo=function(e){return this._spritesData[e]},e.prototype.load=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:if(s.throwIfAborted(e),this.loadStatus="loading",!this.baseURL)return[2,s.resolve(this)];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._loadSprites(e)];case 2:return t.sent(),this.loadStatus="loaded",[3,4];case 3:return t.sent(),this.loadStatus="failed",[3,4];case 4:return[2,this]}}))}))},e.prototype._loadSprites=function(e){var t=this;this._isRetina=this.devicePixelRatio>1.15;var l=this.baseURL,u=this._isRetina?"@2x":"",p=""+l+u+".png";return s.all([o(l+u+".json",e),o(p,r.__assign({responseType:"image"},e))]).then((function(e){var r=e[0],o=e[1],u=Object.keys(r.data);if(!u||0===u.length||1===u.length&&"_ssl"===u[0]||!o||!o.data)return t._spritesData=t.image=null,t.width=t.height=0,s.resolve(null);t._spritesData=r.data;var p=o.data,c=Math.max(n("esri-webgl-max-texture-size"),4096);if(p.width>c||p.height>c){var d="Sprite resource for style "+l+" is bigger than the maximum allowed of "+c+" pixels}";throw a.error(d),new i("SpriteSource",d)}t.width=p.width,t.height=p.height;var y=document.createElement("canvas"),f=y.getContext("2d");y.width=p.width,y.height=p.height,f.drawImage(p,0,0,p.width,p.height);for(var h,_=f.getImageData(0,0,p.width,p.height),S=new Uint8Array(_.data),v=0;v<S.length;v+=4)S[v]=S[v]*(h=S[v+3]/255),S[v+1]=S[v+1]*h,S[v+2]=S[v+2]*h;t.image=S}))},e}();t.default=u}).apply(null,o))||(e.exports=i)},qBbE:function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("zOht"),r("0J3i"),r("zp6E"),r("qMld"),r("jfWY"),r("OpTb")],i=(function(e,t,r,o,i,n,l,s){Object.defineProperty(t,"__esModule",{value:!0});var a=o.defaults&&o.defaults.io.corsEnabledServers;function u(e){if(e){var t=l.getOrigin(e);a&&-1===a.indexOf(t)&&a.push(t)}}function p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=void 0,o=0;o<e.length;++o)if(l.isProtocolRelative(e[o])){if(r){var i=r.split("://")[0];r=i+":"+e[o].trim()}}else r=l.isAbsolute(e[o])?e[o]:l.join(r,e[o]);return l.removeTrailingSlash(r)}function c(e,t,o,s,a){return r.__awaiter(this,void 0,void 0,(function(){var p,c,h,_,S,v;return r.__generator(this,(function(g){switch(g.label){case 0:return n.throwIfAborted(a),"string"!=typeof o?[3,2]:(u(_=l.normalize(o)),S=l.urlToObject(_),[4,i(S.path,r.__assign({query:{f:"json"},responseType:"json"},a))]);case 1:return h=g.sent(),p=_,c=_,[3,3];case 2:h={data:o},p=o.jsonUrl||null,c=s,g.label=3;case 3:return v=h.data,h.ssl&&(p&&(p=p.replace(/^http:/i,"https:")),c&&(c=c.replace(/^http:/i,"https:"))),d(v)?(e.styleUrl=p||null,[2,y(e,v,c,a)]):d(v)?[2,n.reject("You must specify the URL or the JSON for a service or for a style.")]:e.sourceUrl?[2,f(e,v,c,!1,t,a)]:(e.sourceUrl=p||null,[2,f(e,v,c,!0,t,a)])}}))}))}function d(e){return!!e.sources}function y(e,t,o,i){return r.__awaiter(this,void 0,void 0,(function(){var s,a,d,y,f,h;return r.__generator(this,(function(r){switch(r.label){case 0:return s=o?l.removeFile(o):l.appBaseUrl,e.styleBase=s,e.style=t,e.styleUrl&&u(e.styleUrl),a=[],t.sources&&t.sources.esri?(d=t.sources.esri).url?[4,c(e,"esri",p(s,d.url),void 0,i)]:[3,2]:[3,3];case 1:return r.sent(),[3,3];case 2:a.push(c(e,"esri",d,s,i)),r.label=3;case 3:for(y=0,f=Object.keys(t.sources);y<f.length;y++)"esri"!==(h=f[y])&&"vector"===t.sources[h].type&&a.push(t.sources[h].url?c(e,h,p(s,t.sources[h].url),void 0,i):c(e,h,t.sources[h],s,i));return[4,n.all(a)];case 4:return r.sent(),[2]}}))}))}function f(e,t,o,i,a,d){return r.__awaiter(this,void 0,void 0,(function(){var y,f,h,_;return r.__generator(this,(function(r){if(y=o?l.removeTrailingSlash(o)+"/":l.appBaseUrl,f=function(e,t){if(e.hasOwnProperty("tileInfo"))return e;for(var r={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}},o=78271.51696400007,i=295828763.7957775,n=[],l=e.hasOwnProperty("minzoom")?parseFloat(e.minzoom):0,s=e.hasOwnProperty("maxzoom")?parseFloat(e.maxzoom):22,a=0;a<=s;a++)a>=l&&n.push({level:a,scale:i,resolution:o}),o/=2,i/=2;for(var c=0,d=e.tiles;c<d.length;c++)u(p(t,d[c]));return{capabilities:"TilesOnly",initialExtent:r,fullExtent:r,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:n,spatialReference:{wkid:102100}}}}(t,y),h=new s(a,y,f),!i&&e.primarySourceName in e.sourceNameToSource){if(!(_=e.sourceNameToSource[e.primarySourceName]).isCompatibleWith(h))return[2,n.resolve()];null!=h.fullExtent&&(null!=_.fullExtent?_.fullExtent.union(h.fullExtent):_.fullExtent=h.fullExtent.clone()),_.tileInfo.lods.length<h.tileInfo.lods.length&&(_.tileInfo=h.tileInfo)}return i?(e.sourceBase=y,e.source=t,e.validatedSource=f,e.primarySourceName=a,e.sourceUrl&&u(e.sourceUrl)):u(y),e.sourceNameToSource[a]=h,e.style?[2]:null==t.defaultStyles?[2,n.reject()]:"string"==typeof t.defaultStyles?[2,c(e,"",p(y,t.defaultStyles,"root.json"),void 0,d)]:[2,c(e,"",t.defaultStyles,p(y,"root.json"),d)]}))}))}t.loadMetadata=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var o,i,n,s,a,d;return r.__generator(this,(function(r){switch(r.label){case 0:return o={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:""},s=(i="string"==typeof e?[e,null]:[null,e.jsonUrl])[1],a=(n=i[0])?l.urlToObject(n):null,[4,c(o,"esri",e,s,t)];case 1:return r.sent(),u((d={layerDefinition:o.validatedSource,url:n,parsedUrl:a,serviceUrl:o.sourceUrl,style:o.style,styleUrl:o.styleUrl,spriteUrl:o.style.sprite&&p(o.styleBase,o.style.sprite),glyphsUrl:o.style.glyphs&&p(o.styleBase,o.style.glyphs),sourceNameToSource:o.sourceNameToSource,primarySourceName:o.primarySourceName}).spriteUrl),u(d.glyphsUrl),[2,d]}}))}))}}).apply(null,o),void 0===i||(e.exports=i)},"rN/e":function(e,t,r){var o,i;o=[r.dj.c(e.i),t,r("r2fF"),r("pMLx")],void 0===(i=(function(e,t,r,o){return function(){function e(e,t){this.lockedSchemaPixelSize=e,this.isGCS=t}return e.prototype.getLevelRowColumn=function(e){return this.isGCS?[e[0],e[1]>>1,e[2]>>1]:256===this.lockedSchemaPixelSize&&e[0]>0?[e[0]-1,e[1]>>1,e[2]>>1]:e},e.prototype.adjustLevel=function(e){return this.isGCS?e:256===this.lockedSchemaPixelSize?e>0?e-1:0:e},e.prototype.getShift=function(e,t){var r=0,o=0;return(256===this.lockedSchemaPixelSize||this.isGCS)&&(e[2]%2&&(r=t),e[1]%2&&(o=t)),[r,o]},e.prototype.getScale=function(e){if(this.isGCS){if(512===this.lockedSchemaPixelSize)return 4}else if(256===this.lockedSchemaPixelSize&&0===e)return 1;return 2},e.create256x256CompatibleTileInfo=function(e){if(!e)return null;if(256===e.size[0]&&256===e.size[1])return e;for(var t=e.spatialReference.isGeographic,i=[],n=e.lods.length,l=0;l<n;l++){var s=e.lods[l];i.push(new r({level:s.level,scale:s.scale,resolution:t?s.resolution:2*s.resolution}))}return new o({size:[256,256],dpi:e.dpi,format:e.format,compressionQuality:e.compressionQuality,origin:e.origin,spatialReference:e.spatialReference,lods:i})},e.create512x512CompatibleTileInfo=function(e){if(!e)return null;if(256===e.size[0]||256===e.size[1])return null;for(var t=[],i=e.lods.length,n=0;n<i;n++){var l=e.lods[n];t.push(new r({level:l.level,scale:l.scale,resolution:.5*l.resolution}))}return new o({size:[512,512],dpi:e.dpi,format:e.format,compressionQuality:e.compressionQuality,origin:e.origin,spatialReference:e.spatialReference,lods:t})},e}()}).apply(null,o))||(e.exports=i)},tI6k:function(e,t,r){var o,i;o=[r.dj.c(e.i),t],void 0===(i=(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WEBGL_MAX_STOPS=8,t.WEBGL_MAX_INNER_STOPS=t.WEBGL_MAX_STOPS-2,t.NAN_MAGIC_NUMBER=1e-30,t.EXTRUDE_SCALE=64,t.PICTURE_FILL_COLOR=4294967295,t.TILE_SIZE=512,t.RASTER_TILE_SIZE=256,t.ANGLE_FACTOR_256=256/360,t.DEBUG_LABELS=!1,t.COLLISION_BUCKET_SIZE=128,t.DOT_DENSITY_MAX_FIELDS=8,t.MAGIC_LABEL_LINE_HEIGHT=29,t.COLLISION_MAX_ZOOM_DELTA=1,t.COLLISION_EARLY_REJECT_BUCKET_SIZE=16,t.COLLISION_BOX_PADDING=16,t.COLLISION_TILE_BOX_SIZE=t.TILE_SIZE/t.COLLISION_BUCKET_SIZE,t.COLLISION_PLACEMENT_PADDING=8,t.HEURISTIC_GLYPHS_PER_LINE=50,t.HEURISTIC_GLYPHS_PER_FEATURE=10,t.GLYPH_SIZE=24,t.TEXT_PLACEMENT_PADDING=8,t.AVERAGE_GLYPH_MOSAIC_ITEM={metrics:{width:15,height:17,left:0,top:-7,advance:14}},t.ATTRIBUTE_STORE_TEXTURE_SIZE=1024,t.TEXTURE_BINDING_SPRITE_ATLAS=0,t.TEXTURE_BINDING_GLYPH_ATLAS=0,t.TEXTURE_BINDING_BITMAP=0,t.TEXTURE_BINDING_ATTRIBUTE_DATA_0=1,t.TEXTURE_BINDING_ATTRIBUTE_DATA_1=2,t.TEXTURE_BINDING_ATTRIBUTE_DATA_2=3,t.TEXTURE_BINDING_ATTRIBUTE_DATA_3=4,t.TEXTURE_BINDING_HIGHLIGHT_0=5,t.TEXTURE_BINDING_HIGHLIGHT_1=6,t.TEXTURE_BINDING_RENDERER_0=5,t.TEXTURE_BINDING_RENDERER_1=6,t.ATTRIBUTE_DATA_FILTER_FLAGS=0,t.ATTRIBUTE_DATA_ANIMATION=1,t.ATTRIBUTE_DATA_VV=2,t.ATTRIBUTE_DATA_DD0=3,t.ATTRIBUTE_DATA_DD1=3,t.MAX_FILTERS=2,t.HIGHLIGHT_FLAG=1,t.FILTER_FLAG_0=2,t.EFFECT_FLAG_0=4,t.THIN_LINE_THRESHOLD=2.5,t.HITTEST_SEARCH_SIZE=24,t.MAX_ANIMATION_TIME_MS=2e3,t.VTL_TEXTURE_BINDING_UNIT_SPRITES=5,t.VTL_TEXTURE_BINDING_UNIT_GLYPHS=6,t.VTL_HIGH_RES_CUTOFF=1.15,t.MAX_GPU_UPLOADS_PER_FRAME=2}).apply(null,o))||(e.exports=i)}}]);