https://www.shipbob.com/wp-content/themes/shipbob-2022/dist/chunk/1088.3c86b785cdd8b472ad25.chunk.js
1"use strict";(self.webpackChunkshipbob_2022=self.webpackChunkshipbob_2022||[]).push([[1088],{61088:function(t,e,i){i.r(e),i.d(e,{BingMaps:function(){return o.A},CartoDB:function(){return a.A},Cluster:function(){return l.A},DataTile:function(){return h.A},GeoTIFF:function(){return u.A},Google:function(){return c.A},IIIF:function(){return d.A},Image:function(){return g.Ay},ImageArcGISRest:function(){return p.A},ImageCanvas:function(){return _.A},ImageMapGuide:function(){return f.A},ImageStatic:function(){return m.A},ImageTile:function(){return v.A},ImageWMS:function(){return E.A},OGCMapTile:function(){return T.A},OGCVectorTile:function(){return y.A},OSM:function(){return S},Raster:function(){return b.Ay},Source:function(){return w.A},StadiaMaps:function(){return O},Tile:function(){return L.A},TileArcGISRest:function(){return N},TileDebug:function(){return J},TileImage:function(){return U.A},TileJSON:function(){return H.A},TileWMS:function(){return Q},UTFGrid:function(){return lt},UrlTile:function(){return $.A},Vector:function(){return ht.A},VectorTile:function(){return ut.A},WMTS:function(){return dt},XYZ:function(){return x.A},Zoomify:function(){return gt.A},createArcGISRestLoader:function(){return n.E},createMapGuideLoader:function(){return A.E},createStaticLoader:function(){return j.E},createWMSLoader:function(){return B.Eq},sourcesFromTileGrid:function(){return pt}});var r=i(36905),s=i(18299),n=i(77596),o=i(42206),a=i(79430),l=i(71709),h=i(4379),u=i(30429),c=i(80604),d=i(26114),g=i(4846),p=i(15565),_=i(44434),f=i(8684),m=i(85544),v=i(62242),E=i(18305),A=i(90833),T=i(36168),y=i(39279),x=i(65928);const R='© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.';class F extends x.A{constructor(t){let e;e=void 0!==(t=t||{}).attributions?t.attributions:[R];const i=void 0!==t.url?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:void 0!==t.crossOrigin?t.crossOrigin:"anonymous",referrerPolicy:t.referrerPolicy||"origin-when-cross-origin",interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:19,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:i,wrapX:t.wrapX,zDirection:t.zDirection})}}var S=F,b=i(92630),w=i(31646);const I={stamen_terrain:{extension:"png"},stamen_terrain_background:{extension:"png"},stamen_terrain_labels:{extension:"png"},stamen_terrain_lines:{extension:"png"},stamen_toner_background:{extension:"png"},stamen_toner:{extension:"png"},stamen_toner_labels:{extension:"png"},stamen_toner_lines:{extension:"png"},stamen_toner_lite:{extension:"png"},stamen_toner_dark:{extension:"png"},stamen_toner_blacklite:{extension:"png"},stamen_watercolor:{extension:"jpg"},alidade_smooth:{extension:"png"},alidade_smooth_dark:{extension:"png"},alidade_satellite:{extension:"png"},outdoors:{extension:"png"},osm_bright:{extension:"png"}},C={stamen_terrain:{minZoom:0,maxZoom:18,retina:!0},stamen_toner:{minZoom:0,maxZoom:20,retina:!0},stamen_toner_dark:{minZoom:0,maxZoom:20,retina:!0},stamen_toner_blacklite:{minZoom:0,maxZoom:20,retina:!0},stamen_watercolor:{minZoom:1,maxZoom:18,retina:!1}};class G extends x.A{constructor(t){const e=t.layer.indexOf("-"),i=-1==e?t.layer:t.layer.slice(0,e),r=C[i]||{minZoom:0,maxZoom:20,retina:!0},s=I[t.layer],n=t.apiKey?"?api_key="+t.apiKey:"",o=r.retina&&t.retina?"@2x":"",a=void 0!==t.url?t.url:"https://tiles.stadiamaps.com/tiles/"+t.layer+"/{z}/{x}/{y}"+o+"."+s.extension+n,l=['© <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a>','© <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a>',R];t.layer.startsWith("stamen_")&&l.splice(1,0,'© <a href="https://stamen.com/" target="_blank">Stamen Design</a>'),super({attributions:l,cacheSize:t.cacheSize,crossOrigin:"anonymous",interpolate:t.interpolate,maxZoom:void 0!==t.maxZoom?t.maxZoom:r.maxZoom,minZoom:void 0!==t.minZoom?t.minZoom:r.minZoom,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:a,tilePixelRatio:o?2:1,wrapX:t.wrapX,zDirection:t.zDirection})}}var O=G,j=i(59841),L=i(61811),P=i(32991),D=i(20016),z=i(77440),U=i(6898);class M extends U.A{constructor(t){super({attributions:(t=t||{}).attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.params_=Object.assign({},t.params),this.hidpi_=void 0===t.hidpi||t.hidpi,this.tmpExtent_=(0,r.S5)(),this.setKey(this.getKeyForParams_())}getKeyForParams_(){let t=0;const e=[];for(const i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")}getParams(){return this.params_}getRequestUrl_(t,e,i,r,s,o){const a=this.urls;if(!a)return;let l;
1return l=1==a.length?a[0]:a[(0,P.xP)((0,z.tW)(t),a.length)],(0,n.r)(l,i,(this.tileGrid||this.getTileGridForProjection(s)).getResolution(t[0]),r,s,o)}getTilePixelRatio(t){return this.hidpi_?t:1}setParams(t){this.params_=Object.assign({},t),this.setKey(this.getKeyForParams_())}updateParams(t){Object.assign(this.params_,t),this.setKey(this.getKeyForParams_())}tileUrlFunction(t,e,i){let r=this.getTileGrid();if(r||(r=this.getTileGridForProjection(i)),r.getResolutions().length<=t[0])return;1==e||this.hidpi_||(e=1);const s=r.getTileCoordExtent(t,this.tmpExtent_);let n=(0,D.xq)(r.getTileSize(t[0]),this.tmpSize);1!=e&&(n=(0,D.hs)(n,e,this.tmpSize));const o={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Object.assign(o,this.params_),this.getRequestUrl_(t,n,s,e,i,o)}}var N=M,k=(i(62953),i(43009)),K=i(28631),X=i(11083),q=i(55891);class Z extends v.A{constructor(t){const e=(t=t||{}).template||"z:{z} x:{x} y:{y}",i=t.source,r=t.color||"grey";super({transition:0,wrapX:void 0!==t.wrapX?t.wrapX:void 0!==i?i.getWrapX():void 0});const s=()=>{var s;this.projection=void 0!==t.projection?(0,X.get)(t.projection):void 0!==i?i.getProjection():this.projection,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:void 0!==i?i.getTileGrid():this.tileGrid,this.zDirection=void 0!==t.zDirection?t.zDirection:void 0!==i?i.zDirection:this.zDirection,i instanceof h.A&&(this.transformMatrix=(null===(s=i.transformMatrix)||void 0===s?void 0:s.slice())||null);const n=this.tileGrid;n&&this.setTileSizes(n.getResolutions().map((t,e)=>(0,D.xq)(n.getTileSize(e)).map(t=>Math.max(Math.floor(t),1)))),this.setLoader((t,i,s,n)=>{const o=(0,q.M)(e,t,i,s,n.maxY),[a,l]=this.getTileSize(t),h=(0,k.Y)(a,l);return h.strokeStyle=r,h.strokeRect(.5,.5,a+.5,l+.5),h.fillStyle=r,h.strokeStyle="white",h.textAlign="center",h.textBaseline="middle",h.font="24px sans-serif",h.lineWidth=4,h.strokeText(o,a/2,l/2,a),h.fillText(o,a/2,l/2,a),Promise.resolve(h.canvas)}),this.setState("ready")};if(void 0===i||"ready"===i.getState())s();else{const t=()=>{"ready"===i.getState()&&(i.removeEventListener(K.A.CHANGE,t),s())};i.addEventListener(K.A.CHANGE,t)}}}var J=Z,H=i(14409),W=i(55731),Y=i(41856),B=i(64770);class V extends U.A{constructor(t){t=t||{};const e=Object.assign({},t.params);super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0,this.params_=e,this.v13_=!0,this.serverType_=t.serverType,this.hidpi_=void 0===t.hidpi||t.hidpi,this.tmpExtent_=(0,r.S5)(),this.updateV13_(),this.setKey(this.getKeyForParams_())}getFeatureInfoUrl(t,e,i,s){const n=(0,X.get)(i),o=this.getProjection()||n;let a=this.getTileGrid();a||(a=this.getTileGridForProjection(o));const l=(0,X.transform)(t,n,o),h=(0,W.KQ)(o,n,t,e),u=a.getZForResolution(h,this.zDirection),c=a.getResolution(u),d=a.getTileCoordForCoordAndZ(l,u);if(a.getResolutions().length<=d[0])return;let g=a.getTileCoordExtent(d,this.tmpExtent_);const p=this.gutter_;0!==p&&(g=(0,r.r)(g,c*p,g));const _={QUERY_LAYERS:this.params_.LAYERS};Object.assign(_,(0,B.W3)(this.params_,"GetFeatureInfo"),s);const f=Math.floor((l[0]-g[0])/c),m=Math.floor((g[3]-l[1])/c);return _[this.v13_?"I":"X"]=f,_[this.v13_?"J":"Y"]=m,this.getRequestUrl_(d,g,1,o||n,_)}getLegendUrl(t,e){if(void 0===this.urls[0])return;const i={SERVICE:"WMS",VERSION:B.jD,REQUEST:"GetLegendGraphic",FORMAT:"image/png"};if(void 0===e||void 0===e.LAYER){const t=this.params_.LAYERS;if(Array.isArray(t)&&1!==t.length)return;i.LAYER=t}if(void 0!==t){const e=this.getProjection()?this.getProjection().getMetersPerUnit():1,r=28e-5;i.SCALE=t*e/r}return Object.assign(i,e),(0,q.LW)(this.urls[0],i)}getGutter(){return this.gutter_}getParams(){return this.params_}getRequestUrl_(t,e,i,r,s){const n=this.urls;if(!n)return;let o;return o=1==n.length?n[0]:n[(0,P.xP)((0,z.tW)(t),n.length)],(0,B.AE)(e,(this.tileGrid||this.getTileGridForProjection(r)).getResolution(t[0]),i,r,o,s,this.serverType_)}getTilePixelRatio(t){return this.hidpi_&&void 0!==this.serverType_?t:1}getKeyForParams_(){let t=0;const e=[];for(const i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")}setParams_(t){this.params_=t,this.updateV13_(),this.setKey(this.getKeyForParams_())}setParams(t){this.setParams_(Object.assign({},t))}updateParams(t){this.setParams_(Object.assign(this.params_,t))}updateV13_(){const t=this.params_.VERSION||B.jD;this.v13_=(0,Y.Z)(t,"1.3")>=0}
1tileUrlFunction(t,e,i){let s=this.getTileGrid();if(s||(s=this.getTileGridForProjection(i)),s.getResolutions().length<=t[0])return;1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);const n=s.getResolution(t[0]);let o=s.getTileCoordExtent(t,this.tmpExtent_);const a=this.gutter_;0!==a&&(o=(0,r.r)(o,n*a,o));const l=Object.assign({},(0,B.W3)(this.params_,"GetMap"));return this.getRequestUrl_(t,o,e,i,l)}}var Q=V,$=i(20622),tt=i(93745),et=i(40048),it=i(69076),rt=i(49326),st=i(48649),nt=i(4332);class ot extends tt.A{constructor(t,e,i,r,s,n){super(t,e),this.src_=i,this.extent_=r,this.preemptive_=s,this.grid_=null,this.keys_=null,this.data_=null,this.jsonp_=n}getImage(){return null}getData(t){if(!this.grid_||!this.keys_)return null;const e=(t[0]-this.extent_[0])/(this.extent_[2]-this.extent_[0]),i=(t[1]-this.extent_[1])/(this.extent_[3]-this.extent_[1]),r=this.grid_[Math.floor((1-i)*this.grid_.length)];if("string"!=typeof r)return null;let s=r.charCodeAt(Math.floor(e*r.length));s>=93&&s--,s>=35&&s--,s-=32;let n=null;if(s in this.keys_){const t=this.keys_[s];n=this.data_&&t in this.data_?this.data_[t]:t}return n}forDataAtCoordinate(t,e,i){this.state==et.A.EMPTY&&!0===i?(this.state=et.A.IDLE,(0,it.Jz)(this,K.A.CHANGE,i=>{e(this.getData(t))}),this.loadInternal_()):!0===i?setTimeout(()=>{e(this.getData(t))},0):e(this.getData(t))}getKey(){return this.src_}handleError_(){this.state=et.A.ERROR,this.changed()}handleLoad_(t){this.grid_=t.grid,this.keys_=t.keys,this.data_=t.data,this.state=et.A.LOADED,this.changed()}loadInternal_(){if(this.state==et.A.IDLE)if(this.state=et.A.LOADING,this.jsonp_)(0,rt.FQ)(this.src_,this.handleLoad_.bind(this),this.handleError_.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",this.src_),t.send()}}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let t;try{t=JSON.parse(e.responseText)}catch(t){return void this.handleError_()}this.handleLoad_(t)}else this.handleError_()}onXHRError_(t){this.handleError_()}load(){this.preemptive_?this.loadInternal_():this.setState(et.A.EMPTY)}}class at extends L.A{constructor(t){if(super({projection:(0,X.get)("EPSG:3857"),state:"loading",wrapX:void 0===t.wrapX||t.wrapX,zDirection:t.zDirection}),this.preemptive_=void 0===t.preemptive||t.preemptive,this.tileUrlFunction_=nt.lg,this.template_=void 0,this.jsonp_=t.jsonp||!1,this.tileCache_=new s.A(512),t.url)if(this.jsonp_)(0,rt.FQ)(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",t.url),e.send()}else{if(!t.tileJSON)throw new Error("Either `url` or `tileJSON` options must be provided");this.handleTileJSONResponse(t.tileJSON)}}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let t;try{t=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(t)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTemplate(){return this.template_}forDataAtCoordinateAndResolution(t,e,i,r){if(this.tileGrid){const s=this.tileGrid.getZForResolution(e,this.zDirection),n=this.tileGrid.getTileCoordForCoordAndZ(t,s),o=this.getTile(n[0],n[1],n[2],1,this.getProjection());o.getState()==et.A.IDLE&&o.load(),o.forDataAtCoordinate(t,i,r)}else!0===r?setTimeout(function(){i(null)},0):i(null)}handleTileJSONError(){this.setState("error")}handleTileJSONResponse(t){const e=(0,X.get)("EPSG:4326"),i=this.getProjection();let s;if(void 0!==t.bounds){const n=(0,X.getTransformFromProjections)(e,i);s=(0,r.NW)(t.bounds,n)}const n=(0,st.kZ)(i),o=t.minzoom||0,a=t.maxzoom||22,l=(0,st.EN)({extent:n,maxZoom:a,minZoom:o});this.tileGrid=l,this.template_=t.template;const h=t.grids;if(h){if(this.tileUrlFunction_=(0,nt.Qz)(h,l),t.attribution){const e=void 0!==s?s:n;this.setAttributions(function(i){return(0,r.HY)(e,i.extent)?[t.attribution]:null})}this.setState("ready")}else this.setState("error")}getTile(t,e,i,r,s){const n=[t,e,i],o=this.getTileCoordForTileUrlFunction(n,s),a=this.tileUrlFunction_(o,r,s
1),l=`${this.getKey()},${(0,z.dp)(t,e,i)}`;if(this.tileCache_.containsKey(l))return this.tileCache_.get(l);this.tileCache_.expireCache();const h=new ot(n,void 0!==a?et.A.IDLE:et.A.EMPTY,void 0!==a?a:"",this.tileGrid.getTileCoordExtent(n),this.preemptive_,this.jsonp_);return this.tileCache_.set(l,h),h}}var lt=at,ht=i(39932),ut=i(50360);i(74423),i(27495),i(25440);class ct extends U.A{constructor(t){const e=void 0!==t.requestEncoding?t.requestEncoding:"KVP",i=t.tileGrid;let r=t.urls;void 0===r&&void 0!==t.url&&(r=(0,q.Uu)(t.url)),super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,interpolate:t.interpolate,projection:t.projection,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:t.tileClass,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,urls:r,wrapX:void 0!==t.wrapX&&t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.version_=void 0!==t.version?t.version:"1.0.0",this.format_=void 0!==t.format?t.format:"image/jpeg",this.dimensions_=void 0!==t.dimensions?t.dimensions:{},this.layer_=t.layer,this.matrixSet_=t.matrixSet,this.style_=t.style,this.requestEncoding_=e,this.setKey(this.getKeyForDimensions_()
1),r&&r.length>0&&(this.tileUrlFunction=(0,nt.FD)(r.map(this.createFromWMTSTemplate.bind(this))))}setUrls(t){this.urls=t;const e=t.join("\n");this.setTileUrlFunction((0,nt.FD)(t.map(this.createFromWMTSTemplate.bind(this))),e)}getDimensions(){return this.dimensions_}getFormat(){return this.format_}getLayer(){return this.layer_}getMatrixSet(){return this.matrixSet_}getRequestEncoding(){return this.requestEncoding_}getStyle(){return this.style_}getVersion(){return this.version_}getKeyForDimensions_(){const t=this.urls?this.urls.slice(0):[];for(const e in this.dimensions_)t.push(e+"-"+this.dimensions_[e]);return t.join("/")}updateDimensions(t){Object.assign(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())}createFromWMTSTemplate(t){const e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};"KVP"==e&&Object.assign(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t="KVP"==e?(0,q.LW)(t,i):t.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in i?i[e.toLowerCase()]:t});const r=this.tileGrid,s=this.dimensions_;return function(i,n,o){if(!i)return;const a={TileMatrix:r.getMatrixId(i[0]),TileCol:i[1],TileRow:i[2]};Object.assign(a,s);let l=t;return l="KVP"==e?(0,q.LW)(l,a):l.replace(/\{(\w+?)\}/g,function(t,e){return encodeURIComponent(a[e])}),l}}}var dt=ct,gt=i(94456);function pt(t,e){const i=new s.A(32),n=t.getExtent();return function(s,o){i.expireCache(),n&&(s=(0,r._N)(n,s));const a=t.getZForResolution(o),l=[];return t.forEachTileCoord(s,a,t=>{const r=t.toString();if(!i.containsKey(r)){const s=e(t);i.set(r,s)}l.push(i.get(r))}),l}}},92630:function(t,e,i){i(54743),i(11745),i(22134),i(75044),i(28845),i(373),i(62953),i(3296),i(27208),i(48408);var r=i(12227),s=i(99536),n=i(22194),o=i(43009),a=i(47103),l=i(28631),h=i(36905),u=i(81190),c=i(19219),d=i(75253),g=i(13217),p=i(4846),_=i(31646),f=i(61811);function m(t){return function(e){const i=e.buffers,r=e.meta,s=e.imageOps,n=e.width,o=e.height,a=i.length,l=i[0].byteLength;if(s){const e=new Array(a);for(let t=0;t<a;++t)e[t]=new ImageData(new Uint8ClampedArray(i[t]),n,o);return t(e,r).data.buffer}const h=new Uint8ClampedArray(l),u=new Array(a),c=new Array(a);for(let t=0;t<a;++t)u[t]=new Uint8ClampedArray(i[t]),c[t]=[0,0,0,0];for(let e=0;e<l;e+=4){for(let t=0;t<a;++t){const i=u[t];c[t][0]=i[e],c[t][1]=i[e+1],c[t][2]=i[e+2],c[t][3]=i[e+3]}const i=t(c,r);h[e]=i[0],h[e+1]=i[1],h[e+2]=i[2],h[e+3]=i[3]}return h.buffer}}function v(t,e){const i=Object.keys(t.lib||{}).map(function(e){return"const "+e+" = "+t.lib[e].toString()+";"}).concat(["const __minion__ = ("+m.toString()+")(",t.operation.toString(),");",'self.addEventListener("message", function(event) {'," const buffer = __minion__(event.data);"," self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),r=new Worker("undefined"==typeof Blob?"data:text/javascript;base64,"+Buffer.from(i.join("\n"),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}class E extends r.A{constructor(t){let e;super(),this.imageOps_=!!t.imageOps,e=0===t.threads?0:this.imageOps_?1:t.threads||1;const i=new Array(e);if(e)for(let r=0;r<e;++r)i[r]=v(t,this.onWorkerMessage_.bind(this,r));else i[0]=function(t,e){const i=m(t.operation);let r=!1;return{postMessage:function(t){setTimeout(function(){r||e({data:{buffer:i(t),meta:t.meta}})},0)},terminate:function(){r=!0}}}(t,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=t.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}
1process(t,e,i){this.enqueue_({inputs:t,meta:e,callback:i}),this.dispatch_()}enqueue_(t){for(this.queue_.push(t);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||0===this.queue_.length)return;const t=this.queue_.shift();this.job_=t;const e=t.inputs[0].width,i=t.inputs[0].height,r=t.inputs.map(function(t){return t.data.buffer}),s=this.workers_.length;if(this.running_=s,1===s)return void this.workers_[0].postMessage({buffers:r,meta:t.meta,imageOps:this.imageOps_,width:e,height:i},r);const n=t.inputs[0].data.length,o=4*Math.ceil(n/4/s);for(let n=0;n<s;++n){const s=n*o,a=[];for(let t=0,e=r.length;t<e;++t)a.push(r[t].slice(s,s+o));this.workers_[n].postMessage({buffers:a,meta:t.meta,imageOps:this.imageOps_,width:e,height:i},a)}}onWorkerMessage_(t,e){this.disposed||(this.dataLookup_[t]=e.data,--this.running_,0===this.running_&&this.resolveJob_())}resolveJob_(){const t=this.job_,e=this.workers_.length;let i,r;if(1===e)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const s=t.inputs[0].data.length;i=new Uint8ClampedArray(s),r=new Array(e);const n=4*Math.ceil(s/4/e);for(let t=0;t<e;++t){const e=this.dataLookup_[t].buffer,s=t*n;i.set(new Uint8ClampedArray(e),s),r[t]=this.dataLookup_[t].meta}}this.job_=null,this.dataLookup_={},t.callback(null,new ImageData(i,t.inputs[0].width,t.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let t=0;t<this.workers_.length;++t)this.workers_[t].terminate();this.workers_.length=0}}class A extends a.Ay{constructor(t,e,i){super(t),this.extent=e.extent,this.resolution=e.viewState.resolution/e.pixelRatio,this.data=i}}class T extends p.Ay{constructor(t){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=void 0!==t.operationType?t.operationType:"pixel",this.threads_=void 0!==t.threads?t.threads:1,this.layers_=function(t){const e=t.length,i=new Array(e);for(let r=0;r<e;++r)i[r]=R(t[r]);return i}(t.sources);const e=this.changed.bind(this);for(let t=0,i=this.layers_.length;t<i;++t)this.layers_[t].addEventListener(l.A.CHANGE,e);var i;this.useResolutions_=null!==t.resolutions,this.tileQueue_=new n.A(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:(0,d.vt)(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:(i=this.layers_,i.map(function(t){return t.getLayerState()})),pixelRatio:1,pixelToCoordinateTransform:(0,d.vt)(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:(0,g.v6)(this),renderTargets:{}},this.setAttributions(function(e){const i=[];for(let s=0,n=t.sources.length;s<n;++s){var r;const n=t.sources[s],o=n instanceof _.A?n:n.getSource();if(!o)continue;const a=null===(r=o.getAttributions())||void 0===r?void 0:r(e);"string"==typeof a?i.push(a):void 0!==a&&i.push(...a)}return i}),void 0!==t.operation&&this.setOperation(t.operation,t.lib)}setOperation(t,e){this.processor_&&this.processor_.dispose(),this.processor_=new E({operation:t,imageOps:"image"===this.operationType_,queue:1,lib:e,threads:this.threads_}),this.changed()}updateFrameState_(t,e,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const s=(0,h.q1)(t);r.size[0]=Math.ceil((0,h.RG)(t)/e),r.size[1]=Math.ceil((0,h.Oq)(t)/e),r.extent=[s[0]-r.size[0]*e/2,s[1]-r.size[1]*e/2,s[0]+r.size[0]*e/2,s[1]+r.size[1]*e/2],r.time=Date.now();const n=r.viewState;return n.center=s,n.projection=i,n.resolution=e,r}allSourcesReady_(){let t,e=!0;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||"ready"!==t.getState()){e=!1;break}return e}getImage(t,e,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),e=this.findNearestResolution(e);const s=this.updateFrameState_(t,e,r);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const t=this.renderedImageCanvas_.getResolution(),i=this.renderedImageCanvas_.getExtent();e===t&&(0,h.aI)(s.extent,i)||(this.renderedImageCanvas_=null)}return this.renderedImageCanvas_&&this.getRevision()===this.renderedRevision_||this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const t=this.requestedFrameState_,e=this.layers_.length,i=new Array(e);for(let r=0;r<e;++r){t.layerIndex=r,t.renderTargets={};const e=x(this.layers_[r],t);if(!e)return;i[r]=e}const r={};this.dispatchEvent(new A("beforeoperations",t,r)),this.processor_.process(i,r,this.onWorkerComplete_.bind(this,t))}onWorkerComplete_(t,e,i,r){if(e||!i)return;const n=t.extent,a=t.viewState.resolution;if(a!==this.requestedFrameState_.viewState.resolution||!(0,h.aI)(n,this.requestedFrameState_.extent))return;let l;if(this.renderedImageCanvas_)l=this.renderedImageCanvas_.getImage().getContext("2d");else{const t=Math.round((0,h.RG)(n)/a),e=Math.round((0,h.Oq)(n)/a);l=(0,o.Y)(t,e),this.renderedImageCanvas_=new s.A(n,a,1,l.canvas)}l.putImageData(i,0,0),t.animate?requestAnimationFrame(this.changed.bind(this)):this.changed(),this.renderedRevision_=this.getRevision(),this.dispatchEvent(new A("afteroperations",t,r))}getResolutions(t){if(!this.useResolutions_)return null;let e=super.getResolutions();if(!e)for(let i=0,r=this.layers_.length;i<r&&(e=this.layers_[i].getSource().getResolutions(t),!e);++i);return e}disposeInternal(){this.processor_&&this.processor_.dispose(),super.disposeInternal()}}T.prototype.dispose;let y=null;function x(t,e){const i=t.getRenderer();if(!i)throw new Error("Unsupported layer type: "+t);if(!i.prepareFrame(e))return null;const r=e.size[0],s=e.size[1];if(0===r||0===s)return null;const n=i.renderFrame(e,null);let a;if(n instanceof HTMLCanvasElement)a=n;else{if(n&&(a=n.firstElementChild),!(a instanceof HTMLCanvasElement))throw new Error("Unsupported rendered element: "+a);if(a.width===r&&a.height===s)return a.getContext("2d").getImageData(0,0,r,s)}if(y){const t=y.canvas;t.width!==r||t.height!==s?y=(0,o.Y)(r,s,void 0,{willReadFrequently:!0}):y.clearRect(0,0,r,s)}else y=(0,o.Y)(r,s,void 0,{willReadFrequently:!0});return y.drawImage(a,0,0,r,s),y.getImageData(0,0,r,s)}function R(t){let e;return t instanceof _.A?t instanceof f.A?e=new c.A({source:t}):t instanceof p.Ay&&(e=new u.A({source:t})):e=t,e}e.Ay=T}
1,31646:function(t,e,i){var r=i(73522),s=i(11083);class n extends r.A{constructor(t){var e;super(),this.projection=(0,s.get)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=null===(e=t.attributionsCollapsible)||void 0===e||e,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const i=this;this.viewPromise_=new Promise(function(t,e){i.viewResolver=t,i.viewRejector=e})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=o(t),this.changed()}setState(t){this.state_=t,this.changed()}}function o(t){return t?"function"==typeof t?t:(Array.isArray(t)||(t=[t]),e=>t):null}e.A=n},61811:function(t,e,i){i.d(e,{c:function(){return u}});var r=i(47103),s=i(20016),n=i(77440),o=i(48649),a=i(13217),l=i(31646);class h extends l.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;this.tileGrid&&(0,s.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tmpSize=[0,0],this.key_=t.key||(0,a.v6)(this),this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,r,s,n){return(0,a.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:(0,o.pr)(t)}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const r=this.getTileGridForProjection(i),n=this.getTilePixelRatio(e),o=(0,s.xq)(r.getTileSize(t),this.tmpSize);return 1==n?o:(0,s.hs)(o,n,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){const i=void 0!==e?e:this.getProjection(),r=void 0!==e?this.getTileGridForProjection(i):this.tileGrid||this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=(0,o.Li)(r,t,i)),(0,n.N5)(t,r)?t:null}clear(){}refresh(){this.clear(),super.refresh()}}class u extends r.Ay{constructor(t,e){super(t),this.tile=e}}e.A=h},20419:function(t,e){e.A={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"}},6898:function(t,e,i){var r=i(1e3),s=i(40048),n=i(28631),o=i(95357),a=i(11083),l=i(1822),h=i(77440),u=i(48649),c=i(13217),d=i(20622);class g extends d.A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:p,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.referrerPolicy=t.referrerPolicy,this.tileClass=void 0!==t.tileClass?t.tileClass:r.A,this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(t){return this.getProjection()&&t&&!(0,a.equivalent)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,a.equivalent)(e,t)))return this.tileGrid;const i=(0,c.v6)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=(0,u.pr)(t)),this.tileGridForProjection[i]}createTile_(t,e,i,r,o,a){const l=[t,e,i],h=this.getTileCoordForTileUrlFunction(l,o),u=h?this.tileUrlFunction(h,r,o):void 0,c=new this.tileClass(l,void 0!==u?s.A.IDLE:s.A.EMPTY,void 0!==u?u:"",{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return c.key=a,c.addEventListener(n.A.CHANGE,this.handleTileChange.bind(this)),c}getTile(t,e,i,r,s,n){const o=this.getProjection();if(!o||!s||(0,a.equivalent)(o,s))return this.getTileInternal(t,e,i,r,o||s);const h=[t,e,i],u=this.getKey(),c=this.getTileGridForProjection(o),d=this.getTileGridForProjection(s),g=this.getTileCoordForTileUrlFunction(h,s),p=new l.A(o,c,s,d,h,g,this.getTilePixelRatio(r),this.getGutter(),(t,e,i,r)=>this.getTileInternal(t,e,i,r,o,n),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return p.key=u,p}getTileInternal(t,e,i,r,s,n){const o=this.getKey(),a=(0,h.et)(this,o,t,e,i);
1if(n&&n.containsKey(a))return n.get(a);const l=this.createTile_(t,e,i,r,s,o);return null==n||n.set(a,l),l}setRenderReprojectionEdges(t){this.renderReprojectionEdges_!=t&&(this.renderReprojectionEdges_=t,this.changed())}setTileGridForProjection(t,e){const i=(0,a.get)(t);if(i){const t=(0,c.v6)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}}function p(t,e){if(o.Wl){const i=t.getCrossOrigin();let r="same-origin",s="same-origin";"anonymous"===i||""===i?(r="cors",s="omit"):"use-credentials"===i&&(r="cors",s="include");const n={mode:r,credentials:s,referrerPolicy:t.getReferrerPolicy()};return void fetch(e,n).then(t=>{if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.blob()}).then(t=>createImageBitmap(t)).then(e=>{var i;const r=t.getImage();r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0),null===(i=e.close)||void 0===i||i.call(e),r.dispatchEvent(new Event("load"))}).catch(()=>{t.getImage().dispatchEvent(new Event("error"))})}t.getImage().src=e}e.A=g},14409:function(t,e,i){var r=i(36905),s=i(49326),n=i(11083),o=i(48649),a=i(4332),l=i(6898);class h extends l.A{constructor(t){if(super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,projection:(0,n.get)("EPSG:3857"),reprojectionErrorThreshold:t.reprojectionErrorThreshold,state:"loading",tileLoadFunction:t.tileLoadFunction,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:t.zDirection}),this.tileJSON_=null,this.tileSize_=t.tileSize,t.url)if(t.jsonp)(0,s.FQ)(t.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const e=new XMLHttpRequest;e.addEventListener("load",this.onXHRLoad_.bind(this)),e.addEventListener("error",this.onXHRError_.bind(this)),e.open("GET",t.url),e.send()}else{if(!t.tileJSON)throw new Error("Either `url` or `tileJSON` options must be provided");this.handleTileJSONResponse(t.tileJSON)}}onXHRLoad_(t){const e=t.target;if(!e.status||e.status>=200&&e.status<300){let t;try{t=JSON.parse(e.responseText)}catch(t){return void this.handleTileJSONError()}this.handleTileJSONResponse(t)}else this.handleTileJSONError()}onXHRError_(t){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(t){const e=(0,n.get)("EPSG:4326"),i=this.getProjection();let s;if(void 0!==t.bounds){const o=(0,n.getTransformFromProjections)(e,i);s=(0,r.NW)(t.bounds,o)}const l=(0,o.kZ)(i),h=t.minzoom||0,u=t.maxzoom||22,c=(0,o.EN)({extent:l,maxZoom:u,minZoom:h,tileSize:this.tileSize_});if(this.tileGrid=c,this.tileUrlFunction=(0,a.Qz)(t.tiles,c),t.attribution&&!this.getAttributions()){const e=void 0!==s?s:l;this.setAttributions(function(i){return(0,r.HY)(e,i.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState("ready")}handleTileJSONError(){this.setState("error")}}e.A=h},20622:function(t,e,i){var r=i(40048),s=i(4332),n=i(55891),o=i(13217),a=i(61811),l=i(20419);class h extends a.A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===h.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,i=(0,o.v6)(e),s=e.getState();let n;s==r.A.LOADING?(this.tileLoadingKeys_[i]=!0,n=l.A.TILELOADSTART):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],n=s==r.A.ERROR?l.A.TILELOADERROR:s==r.A.LOADED?l.A.TILELOADEND:void 0),null!=n&&this.dispatchEvent(new a.c(n,e))}setTileLoadFunction(t){this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=(0,n.Uu)(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction((0,s.Qz)(t,this.tileGrid),e):this.setKey(e)}
1tileUrlFunction(t,e,i){}}e.A=h},39932:function(t,e,i){i(62953);var r=i(80277),s=i(93529),n=i(96560),o=i(55736),a=i(26410),l=i(69076),h=i(47103),u=i(28631),c=i(36905),d=i(25028),g=i(19180),p=i(3556),_=i(19476),f=i(6564),m=i(41932),v=i(13217),E=i(31646),A=i(28646);class T extends h.Ay{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class y extends E.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=g.tV,this.format_=t.format||null,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,a.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=(0,d.nF)(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:p.Q7;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,s;this.featuresRtree_=e?new m.A:null,this.loadedExtentsRtree_=new m.A,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),e||void 0!==i||(i=new r.A(s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==i&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,v.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new T(A.A.ADDFEATURE,t))}setupChangeEvents_(t,e){e instanceof f.Ay||(this.featureChangeKeys_[t]=[(0,l.KT)(e,u.A.CHANGE,this.handleFeatureChange_,this),(0,l.KT)(e,n.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof f.Ay){const r=this.idIndex_[t];r instanceof f.Ay?Array.isArray(r)?r.push(e):this.idIndex_[t]=[r,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&((0,a.v)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],r=[];for(let e=0,r=t.length;e<r;e++){const r=t[e],s=(0,v.v6)(r);this.addToIndex_(s,r)&&i.push(r)}for(let t=0,s=i.length;t<s;t++){const s=i[t],n=(0,v.v6)(s);this.setupChangeEvents_(n,s);const o=s.getGeometry();if(o){const t=o.getExtent();e.push(t),r.push(s)}else this.nullGeometryFeatures_[n]=s}if(this.featuresRtree_&&this.featuresRtree_.load(e,r),this.hasListener(A.A.ADDFEATURE))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new T(A.A.ADDFEATURE,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(A.A.ADDFEATURE,function(i){e||(e=!0,t.push(i.feature),e=!1)}),this.addEventListener(A.A.REMOVEFEATURE,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),t.addEventListener(s.A.ADD,t=>{e||(e=!0,this.addFeature(t.element),e=!1)}),t.addEventListener(s.A.REMOVE,t=>{e||(e=!0,this.removeFeature(t.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(l.JH);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){this.featuresRtree_.forEach(t=>{this.removeFeatureInternal(t)});for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new T(A.A.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(i){const r=i.getGeometry();if(r instanceof f.Ay||r.intersectsCoordinate(t))return e(i)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){const r=i.getGeometry();if(r instanceof f.Ay||r.intersectsExtent(t)){const t=e(i);if(t)return t}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,_.p)(this.nullGeometryFeatures_)||(0,o.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=(0,c.QJ)(t,e);return[].concat(...i.map(t=>this.featuresRtree_.getInExtent(t)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],r=t[1];let s=null;const n=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||g.rT,this.featuresRtree_.forEachInExtent(a,function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof f.Ay?0:e.closestPointXY(i,r,n,o),o<l){s=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=r-e,a[2]=i+e,a[3]=r+e}}}),s}getExtent(t){var e,i;return null!==(e=null===(i=this.featuresRtree_)||void 0===i?void 0:i.getExtent(t))&&void 0!==e?e:null}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=(0,v.v6)(e),r=e.getGeometry();if(r){const t=r.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);const s=e.getId();if(void 0!==s){const t=s.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}
1else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new T(A.A.CHANGEFEATURE,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,v.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,_.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const r=this.loadedExtentsRtree_,s=this.strategy_(t,e,i);for(let t=0,n=s.length;t<n;++t){const n=s[t];if(!r.forEachInExtent(n,function(t){return(0,c.ms)(t.extent,n)})){this.loading=Number(this.loading)+1,this.dispatchEvent(new T(A.A.FEATURESLOADSTART));const t=t=>{this.loading=Number(this.loading)-1,this.dispatchEvent(new T(A.A.FEATURESLOADEND,void 0,t))},s=()=>{this.changed(),this.loading=Number(this.loading)-1,this.dispatchEvent(new T(A.A.FEATURESLOADERROR))};let o=!1;const a=this.loader_.call(this,n,e,i,e=>o||t(e),()=>o||s());a instanceof Promise?(o=!0,a.then(e=>{this.addFeatures(e),t(e)}).catch(s)):this.loader_.length<4&&(this.loading=!1),r.insert(n,{extent:n.slice()})}}}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_,i=e.forEachInExtent(t,function(e){if((0,c.aI)(e.extent,t))return e});i&&e.remove(i)}removeFeatures(t){let e=!1;for(let i=0,r=t.length;i<r;++i)e=this.removeFeatureInternal(t[i])||e;e&&this.changed()}removeFeature(t){t&&this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,v.v6)(t);if(!(e in this.uidIndex_))return!1;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const i=this.featureChangeKeys_[e];null==i||i.forEach(l.JH),delete this.featureChangeKeys_[e];const r=t.getId();if(void 0!==r){const e=r.toString(),i=this.idIndex_[e];i===t?delete this.idIndex_[e]:Array.isArray(i)&&(i.splice(i.indexOf(t),1),1===i.length&&(this.idIndex_[e]=i[0]))}return delete this.uidIndex_[e],this.hasListener(A.A.REMOVEFEATURE)&&this.dispatchEvent(new T(A.A.REMOVEFEATURE,t)),!0}removeFromIdIndex_(t){for(const e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e];break}}setLoader(t){this.loader_=t}setUrl(t){(0,a.v)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader((0,d.nF)(t,this.format_))}setOverlaps(t){this.overlaps_=t,this.changed()}}e.A=y},28646:function(t,e){e.A={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature",FEATURESLOADSTART:"featuresloadstart",FEATURESLOADEND:"featuresloadend",FEATURESLOADERROR:"featuresloaderror"}},50360:function(t,e,i){i.d(e,{Y:function(){return m}});var r=i(40048),s=i(37262),n=i(20054),o=i(28631),a=i(36905),l=i(25028),h=i(19476),u=i(11083),c=i(20016),d=i(48649),g=i(38216),p=i(37773),_=i(20622);class f extends _.A{constructor(t){const e=t.projection||"EPSG:3857",i=t.extent||(0,d.kZ)(e),r=t.tileGrid||(0,d.EN)({extent:i,maxResolution:t.maxResolution,maxZoom:void 0!==t.maxZoom?t.maxZoom:22,minZoom:t.minZoom,tileSize:t.tileSize||512});super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,cacheSize:t.cacheSize,interpolate:!0,projection:e,state:t.state,tileGrid:r,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:m,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,zDirection:void 0===t.zDirection?1:t.zDirection}),this.format_=t.format?t.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=null==t.overlaps||t.overlaps,this.tileClass=t.tileClass?t.tileClass:n.A,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(t,e,i,s){if(i.getState()===r.A.IDLE){i.setState(r.A.LOADING);const n=i.wrappedTileCoord,l=this.getTileGridForProjection(e);let c=l.getTileCoordExtent(n);const d=n[0],g=l.getResolution(d);(0,a.r)(c,-g,c);const p=this.projection;e&&this.projection&&!(0,u.equivalent)(e,p)&&(c=(0,u.transformExtent)(c,e,p));const _=this.tileGrid,f=_.getExtent();f&&(0,a._N)(c,f,c);let m=g;e&&p&&!(0,u.equivalent)(e,p)&&(m=g/p.getMetersPerUnit()/e.getMetersPerUnit());const v=_.getZForResolution(m,this.zDirection),E=s||this.tileUrlFunction;_.forEachTileCoord(c,v,s=>{const n=E(s,t,e);this.sourceTiles_[n]||(this.sourceTiles_[n]=new this.tileClass(s,n?r.A.IDLE:r.A.EMPTY,n,this.format_,this.tileLoadFunction));const a=this.sourceTiles_[n];i.sourceTiles.push(a),this.tileKeysBySourceTileUrl_[n]||(this.tileKeysBySourceTileUrl_[n]=[]),this.tileKeysBySourceTileUrl_[n].push(i.getKey());const l=a.getState();if(l<r.A.LOADED){const t=e=>{this.handleTileChange(e);const s=a.getState();if(s===r.A.LOADED||s===r.A.ERROR){const e=a.getKey();e in i.errorTileKeys?a.getState()===r.A.LOADED&&delete i.errorTileKeys[e]:i.loadingSourceTiles--,s===r.A.ERROR?i.errorTileKeys[e]=!0:a.removeEventListener(o.A.CHANGE,t),0===i.loadingSourceTiles&&i.setState((0,h.p)(i.errorTileKeys)?r.A.LOADED:r.A.ERROR)}};a.addEventListener(o.A.CHANGE,t),i.loadingSourceTiles++}l===r.A.IDLE&&(a.extent=_.getTileCoordExtent(s),a.projection=this.projection,a.resolution=_.getResolution(s[0]),a.load())}),i.loadingSourceTiles||i.setState(i.sourceTiles.some(t=>t.getState()===r.A.ERROR)?r.A.ERROR:r.A.LOADED)}return i.sourceTiles}removeSourceTiles(t){const e=t.getKey(),i=t.sourceTiles;for(let t=0,r=i.length;t<r;++t){const r=i[t].getTileUrl();if(!this.tileKeysBySourceTileUrl_[r])return;const s=this.tileKeysBySourceTileUrl_[r].indexOf(e);-1!==s&&(this.tileKeysBySourceTileUrl_[r].splice(s,1),0===this.tileKeysBySourceTileUrl_[r].length&&(delete this.tileKeysBySourceTileUrl_[r],delete this.sourceTiles_[r]))}}getTile(t,e,i,n,o){const l=[t,e,i];let h=this.getTileCoordForTileUrlFunction(l,o);const c=this.getTileGrid().getExtent(),d=this.projection,g=this.getTileGridForProjection(o);if(h&&c){const e=g.getTileCoordExtent(h);(0,a.r)(e,-g.getResolution(t),e),(0,a.HY)(c,o&&d&&!(0,u.equivalent)(o,d)?(0,u.transformExtent)(e,o,d):e)||(h=null)}let p=!0;if(null!==h){const e=this.tileGrid,i=g.getResolution(t);let r=i;o&&d&&!(0,u.equivalent)(o,d)&&(r=i/d.getMetersPerUnit()/o.getMetersPerUnit());const s=e.getZForResolution(r,1),l=g.getTileCoordExtent(h);(0,a.r)(l,-i,l),e.forEachTileCoord(o&&d&&!(0,u.equivalent)(o,d)?(0,u.transformExtent)(l,o,d):l,s,t=>{p=p&&!this.tileUrlFunction(t,n,d)})}const _=this.tileUrlFunction,f=new s.A(l,p?r.A.EMPTY:r.A.IDLE,h,t=>this.getSourceTiles(n,o,t,_),this.removeSourceTiles.bind(this));return f.key=this.getKey(),f}getTileGridForProjection(t){const e=t.getCode();let i=this.tileGrids_[e];
1if(!i){const r=this.projection;if(null!==r&&!(0,u.equivalent)(r,t))return(0,d.pr)(t);const s=this.tileGrid,n=s.getResolutions().slice(),o=n.map(function(t,e){return s.getOrigin(e)}),a=n.map(function(t,e){return s.getTileSize(e)}),l=p.L+1;for(let t=n.length;t<l;++t)n.push(n[t-1]/2),o.push(o[t-1]),a.push(a[t-1]);i=new g.A({extent:s.getExtent(),origins:o,resolutions:n,tileSizes:a}),this.tileGrids_[e]=i}return i}getTilePixelRatio(t){return t}getTilePixelSize(t,e,i){const r=this.getTileGridForProjection(i),s=(0,c.xq)(r.getTileSize(t),this.tmpSize);return[Math.round(s[0]*e),Math.round(s[1]*e)]}setOverlaps(t){this.overlaps_=t,this.changed()}}function m(t,e){t.setLoader(function(i,r,s){(0,l.m8)(e,t.getFormat(),i,r,s,t.onLoad.bind(t),t.onError.bind(t))})}e.A=f},65928:function(t,e,i){var r=i(48649),s=i(6898);class n extends s.A{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",i=void 0!==t.tileGrid?t.tileGrid:(0,r.EN)({extent:(0,r.kZ)(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,interpolate:t.interpolate,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}e.A=n},94456:function(t,e,i){i.d(e,{W:function(){return g}}),i(74423),i(94490),i(27495),i(25440);var r=i(1e3),s=i(40048),n=i(43009),o=i(36905),a=i(20016),l=i(38216),h=i(37773),u=i(4332),c=i(55891),d=i(6898);class g extends r.A{constructor(t,e,i,r,s,n,o){super(e,i,r,s,n,o),this.zoomifyImage_=null,this.tileSize_=t}getImage(){if(this.zoomifyImage_)return this.zoomifyImage_;const t=super.getImage();if(this.state==s.A.LOADED){const e=this.tileSize_;if(t.width==e[0]&&t.height==e[1])return this.zoomifyImage_=t,t;const i=(0,n.Y)(e[0],e[1]);return i.drawImage(t,0,0),this.zoomifyImage_=i.canvas,i.canvas}return t}}class p extends d.A{constructor(t){const e=t.size,i=void 0!==t.tierSizeCalculation?t.tierSizeCalculation:"default",r=t.tilePixelRatio||1,s=e[0],n=e[1],d=[],p=t.tileSize||h.R;let _=p*r;switch(i){case"default":for(;s>_||n>_;)d.push([Math.ceil(s/_),Math.ceil(n/_)]),_+=_;break;case"truncated":let t=s,e=n;for(;t>_||e>_;)d.push([Math.ceil(t/_),Math.ceil(e/_)]),t>>=1,e>>=1;break;default:throw new Error("Unknown `tierSizeCalculation` configured")}d.push([1,1]),d.reverse();const f=[r],m=[0];for(let t=1,e=d.length;t<e;t++)f.push(r<<t),m.push(d[t-1][0]*d[t-1][1]+m[t-1]);f.reverse();const v=new l.A({tileSize:p,extent:t.extent||[0,-n,s,0],resolutions:f});let E=t.url;!E||E.includes("{TileGroup}")||E.includes("{tileIndex}")||(E+="{TileGroup}/{z}-{x}-{y}.jpg");const A=(0,c.Uu)(E);let T=p*r;const y=(0,u.FD)(A.map(function(t){return function(e,i,r){if(!e)return;const s=e[0],n=e[1],o=e[2],a=n+o*d[s][0],l={z:s,x:n,y:o,tileIndex:a,TileGroup:"TileGroup"+((a+m[s])/T|0)};return t.replace(/\{(\w+?)\}/g,function(t,e){return l[e]})}})),x=g.bind(null,(0,a.xq)(p*r));super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,interpolate:t.interpolate,projection:t.projection,tilePixelRatio:r,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileClass:x,tileGrid:v,tileUrlFunction:y,transition:t.transition}),this.zDirection=t.zDirection;const R=y(v.getTileCoordForCoordAndResolution((0,o.q1)(v.getExtent()),f[f.length-1]),1,null),F=new Image;F.addEventListener("error",()=>{T=p,this.changed()}),F.src=R}}e.A=p},77596:function(t,e,i){i.d(e,{E:function(){return c},r:function(){return u}}),i(27495),i(25440);var r=i(63148),s=i(36905),n=i(32991),o=i(11083),a=i(55891),l=i(4846),h=i(55066);function u(t,e,i,r,o,l){const u=o.getCode().split(/:(?=\d+$)/).pop(),c=i/r,d=[(0,n.LI)((0,s.RG)(e)/c,h.B),(0,n.LI)((0,s.Oq)(e)/c,h.B)];l.SIZE=d[0]+","+d[1],l.BBOX=e.join(","),l.BBOXSR=u,l.IMAGESR=u,l.DPI=Math.round(l.DPI?l.DPI*r:90*r);const g=t.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage");return(0,a.LW)(g,l)}function c(t){var e,i;const n=t.load?t.load:r.D4,a=(0,o.get)(t.projection||"EPSG:3857"),h=null!==(e=t.ratio)&&void 0!==e?e:1.5,c=null!==(i=t.crossOrigin)&&void 0!==i?i:null,d=t.referrerPolicy;return function(e,i,r){r=t.hidpi?r:1;const o={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Object.assign(o,t.params),e=(0,l.QD)(e,i,r,h);const g=u(t.url,e,i,r,a,o),p=new Image;return p.crossOrigin=c,void 0!==d&&(p.referrerPolicy=d),n(p,g).then(t=>{const i=(0,s.RG)(e)/t.width*r;return{image:t,extent:e,resolution:i,pixelRatio:r}})}}}
1,55066:function(t,e,i){i.d(e,{B:function(){return r}});const r=4}}]); 2//# sourceMappingURL=1088.3c86b785cdd8b472ad25.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.